how to set pivot column format

Description
Sheet A I have these data
A B C
1 10% eth
2 20% eth
3. 30% btc
4. 40% btc
Sheet B is a pivot view of sheet A
eth 30%
btc 70%
however it only show like this
eth 0.3
btc 0.7
what to do to slove the problem

Thanks for your issue. This issue was duplicated with #720. I just added a new NumFmt field in the PivotTableField data type, now you can set and get built-in number format of the pivot table data filed cells. For example:
package main

import (
    "fmt"

    "github.com/xuri/excelize/v2"
)

func main() {
    f := excelize.NewFile()
    defer func() {
        if err := f.Close(); err != nil {
            fmt.Println(err)
        }
    }()
    for idx, row := range [][]interface{}{
        {"Val", "Cat"},
        {0.1, "eth"},
        {0.2, "eth"},
        {0.3, "btc"},
        {0.4, "btc"},
    } {
        cell, err := excelize.CoordinatesToCellName(1, idx+1)
        if err != nil {
            fmt.Println(err)
            return
        }
        if err := f.SetSheetRow("Sheet1", cell, &row); err != nil {
            fmt.Println(err)
            return
        }
    }
    if err := f.AddPivotTable(&excelize.PivotTableOptions{
        DataRange:       "Sheet1!A1:B5",
        PivotTableRange: "Sheet1!G3:H6",
        Rows:            []excelize.PivotTableField{{Data: "Cat"}},
        Data:            []excelize.PivotTableField{{Data: "Val", Name: "Sum of Val", Subtotal: "Sum", NumFmt: 9}},
        RowGrandTotals:  true,
        ColGrandTotals:  true,
        ShowRowHeaders:  true,
        ShowColHeaders:  true,
        ShowLastColumn:  true,
    }); err != nil {
        fmt.Println(err)
        return
    }
    // Save spreadsheet by the given path.
    if err := f.SaveAs("Book1.xlsx"); err != nil {
        fmt.Println(err)
    }
}

Please upgrade to the master branch code by go get -u github.com/xuri/excelize/v2@master, and this feature will be released in the next version.


Sagmills causing large tps hit on server

Issue Description:
What happens:
Using Lagoggles to discover what is lowering our server tps on a host and a sagmill setup is hitting our tps by 4-6
I have screenshots of the setup
Our host is using the latest i7/i9 processors and we are on one at 4.8Ghz with nvme ssds and 12gb ram
when we disabled these our tps went up by 3-4
The sagmills are processing ores with vibrant alloy grinding balls and octadic capacitors
What you expected to happen:
Good tps and performance
Steps to reproduce:
Just using sagmills, at least in this setup

Affected Versions (Do not use "latest"):

EnderIO: 5.2.59
EnderCore: 1.12.2-0.5.76
Minecraft: 1.12.2
Forge: <IP_ADDRESS>54
SpongeForge? yes
Optifine? no
Single Player and/or Server?: Server

Your most recent log file where the issue was present:
I do not have a log file that records these issues, but here are the screenshots with lag goggles, if theres some info i can provide please lmk

This can be closed! i did some very deep digging and found out Cryo fluxducts from Thermal Dynamics is the culprit, every time something puts power in to its network, it iterates every single output node meaning it does that several times per tick.
This was causing any profiler to label the machines as the issue, when its in fact the fluxducts ticking so much.
I reported this to the dev, although they already know saying "its coded the best way it already can be"

I was pretty sure that was going to happen. Profilers such as laggogogles often misreport that as the machines fault for accepting energy when really its the ducts pushing it. Same with items.

And here's a nice label for the statistics.
And people wonder why I dislike both laggoggles and cryo fluxducts...I do have my reasons...


Job Parameters limited to 250 characters

Hello,
I have come to a problem where I cannot store composite 'graphs' greater that 250 characters nor composed-task-arguments  nor composed-task-propertires.  The root problem is in the string_val column within the BATCH_JOB_EXECUTION_PARAMS table.
I have seen some responses over internet recommending the creation of a different table to store extra metadata for the jobs or updating this column (string_val) with higher number (>250).
Since I am using kubernetes, I am planing to put these extra parameters into configmaps, so every deployment can pick its configuration.
Any other suggestions?
Thanks in advance

@jsa4000: Thanks for bringing this up. The CTR builds on Spring Batch foundation. Specifically, BATCH_JOB_EXECUTION_PARAMS table is associated with the core Spring Batch schema. I'm not sure increasing the column size is a feasible option; even if we do, we may still run into similar constraint issues on larger graphs.
While the config-map route seems like a reasonable workaround for K8s, we would have solve it for other platform users. Let's hear from the Spring Batch experts if there's anything else we can do to provide a consistent and polished experience.
cc:/ @mminella @benas @cppwfs

Spring Batch, as all Spring projects, provides "sensible defaults" for all aspects of the framework.  This includes column sizes for the job repository.  You are free to increase the size of the columns as you need to suit your requirements.  There should be nothing in the code that trims a parameter to a given column size so all you should need to do is increase the value in the schema.

@mminella: Thanks for the clarification.
@jsa4000: I believe this recommendation should address the situation in hand, and you don't need to muck around with the configmap.
I will close this issue for now. If you've any other feedback to share, feel free to comment on the issue, we can reopen then.

Sure, That surely responses to my answer.
Thanks you very much


the file type extension

since my nunjucks file type is *.tpl, so i have to change the filetypes in grammers/(nunjucks templates).cson manually. could you consider adding more filetypes?
'fileTypes': [
  'nunjucks'
  'Nunjucks'
  'njk'
  'tpl'
]

@jxintang we support these file types *.nunjucks, *.Nunjucks, *.njk  located here https://github.com/alohaas/language-nunjucks/blob/master/grammars/html (nunjucks templates).cson#L1 with the first two being the official ones and the last one due to popular community adaption. I am not aware of the *.tpl extension.
So I would like to ask you is it an official or a community extension, if so can you give me a reference to it?
Any other relevant information or discussion is absolutely welcome

I agree, .tpl is non-standard. Out of curiosity, @jxintang why do you use this extension, instead of usual-ones?

.tpl seems like a very generic file extension so I don't think having it automatically recognised as a Nunjucks file would be a good idea so I'm going to close the issue

Thanks @frasertmay.


Create travis deployment pipeline for new releases

Push new version of bluehoodie/crypt-controller docker image whenever a new release is tagged in the master branch.

done in 1535ec56d2858100f0a7f87fcb361b7e7aec2a66


update from googleapis

I'm good with this but on #67 you said there's "an update to the cloudtasks dir"? I don't see a difference between cloud task dirs from the two commit.

Shoot, you're right, the dir stuff is constrained to googleapis yaml config. My fault. I naively re-generated everything. Merging the former in.


Why is Gurobi slower than JuMP+Gurobi?

I am trying to solve a linear programming problem. I added Gurobi.jl package and installed the software Gurobi 8.0.1. Because I need to solve this problem millions of times, so I am trying to find a way to make it as fast as I can. First, I tried to code in JuMP and call Gurobi as the solver. Second, I code purely in Julia and am only using Gurobi. However, I find that the second approach is much slower than the first approach, which is very counter-intuitive. I thought the second approach should be faster as it saves the time for JuMP to analyze the problem. I will really appreciate if anyone can give me some suggestions. I can add my code and problem if needed. Thank you very much.

JuMP + Gurobi should be fast because we try very hard to make it so. I routinely solve millions of parameterized linear programs using JuMP + Gurobi.
If you haven't already, you can use JuMP in "direct mode" via
model = JuMP.direct_model(Gurobi.Optimizer())
@variable(model, x)

This should cut your memory usage in half, and should result in performance close to C.
One exception is deleting variables, which is currently O(n^2) in the number of variables to delete because of Gurobi's update semantics. We have some ideas for how to fix this though.

I find that the second approach is much slower than the first approach, which is very counter-intuitive.

It's impossible to say without seeing your code. You should read https://docs.julialang.org/en/v1/manual/performance-tips/index.html.
In general, I would stay with JuMP + Gurobi.

Thank you odow.
I am trying to maximize scalar W_ub subject to some linear equalities and inequalities in the form of say \lambda_i^1+\lambda_j^2 >= constant.
This is the code for JuMP+Gurobi.
        model_ub = Model(with_optimizer(Gurobi.Optimizer, Presolve=0, OutputFlag=0))
        # model_ub = JuMP.direct_model(Gurobi.Optimizer(Presolve=0, OutputFlag=0))
        @variable(model_ub, W_ub)
        @variable(model_ub, lambda_1[1:N])
        @variable(model_ub, lambda_2[1:N])
        for i_ub = 1:N
            for j_ub = 1:N
                if i_ub == i && j_ub == j
                    @constraint(model_ub, W_ub <= lambda_1[i_ub] + lambda_2[j_ub])
                elseif H_star[i_ub,j_ub] == 1
                    @constraint(model_ub, W[i_ub,j_ub] == lambda_1[i_ub] + lambda_2[j_ub])
                else H_star[i_ub,j_ub] == 0
                    @constraint(model_ub, W[i_ub,j_ub] <= lambda_1[i_ub] + lambda_2[j_ub])
                end
            end
        end
        @objective(model_ub, Max, W_ub)
        optimize!(model_ub)
        if termination_status(model_ub) == MOI.OPTIMAL || termination_status(model_ub) == MOI.LOCALLY_SOLVED
            W_bound = value.(W_ub)
            println("W_upper_bound($i,$j)=$W_bound")
        else
            error("The model_ub was not solved correctly.")
        end

This is my code for Gurobi only:
        model_ub = Gurobi.Model(env, "model_ub", :maximize)
        # add variables
        # add_cvar!(model, obj_coef, lower_bound, upper_bound)
        add_cvars!(model_ub, zeros(2N),  -Inf, Inf)  # lambda_1 and lambda_2
        add_cvar!(model_ub, 1.0, -Inf, Inf)  # W_ub

        # For Gurobi, you have to call update_model to have the
        # lastest changes take effect
        update_model!(model_ub)

        # add constraints
        # summarize coefficients of constraints into a matrix
        matrix_ub = zeros(N^2, 2N+1)
        for i_ub = 1:N
            for j_ub = 1:N
                matrix_ub[(i_ub-1)*N+j_ub, i_ub] = 1
                matrix_ub[(i_ub-1)*N+j_ub, N+j_ub] = 1
            end
        end
        matrix_ub[(i-1)*N+j, 2N+1] = -1
        vector_ub = zeros(N^2)
        for i_ub = 1:N
            for j_ub = 1:N
                vector_ub[(i_ub-1)*N+j_ub] = W[i_ub, j_ub]
            end
        end
        vector_ub[(i-1)*N+j] = 0

        # add_constr!(model, coefs, sense, rhs)
        for i_ub = 1:N
            for j_ub = 1:N
                if H_star[i_ub, j_ub] == 1
                    add_constr!(model_ub, matrix_ub[(i_ub-1)*N+j_ub,:], '=', vector_ub[(i_ub-1)*N+j_ub])
                else
                    add_constr!(model_ub, matrix_ub[(i_ub-1)*N+j_ub,:], '>', vector_ub[(i_ub-1)*N+j_ub])
                end
            end
        end

        update_model!(model_ub)
        optimize(model_ub)
        W_bound = get_objval(model_ub)

Stay with JuMP+Gurobi.
You can modify JuMP models in-place using:
https://www.juliaopt.org/JuMP.jl/v0.20.0/constraints/#JuMP.set_normalized_coefficient
https://www.juliaopt.org/JuMP.jl/v0.20.0/constraints/#JuMP.set_normalized_rhs

Ok, thank you so much. I will try to see if there is a way to reduce the running time significantly.

You should post a full minimal working example of your code. The snippet you posted above doesn't demonstrate how you are solving the problems in sequence, for example. Do H_star and W change?

Thanks again, I will do it.

The optimization problem is
max W_{i'j'}
s.t W_{ij} = \lambda^1_i + \lambda^2_j  if H_star[i,j] = 1
W_{ij} \leq \lambda^1_i + \lambda^2_j  if H_star[i,j] = 0
So the objective is just a scalar W_{i'j'}. All the other W_{ij} such that ij \neq i'j' are constants. H_star is an N by N matrix of constants. Index i and j are both from 1:N, where N could be say 500. W_{i'j'} and lambda are variables. The following code is in a big for loop indexed by i and j. It goes for all the N^2 number of ij combinations. Since N=500 which is big, I want to solve each one as fast as I can.
        model_ub = Model(with_optimizer(Gurobi.Optimizer, Presolve=0, OutputFlag=0))
        @variable(model_ub, W_ub)
        @variable(model_ub, lambda_1[1:N])
        @variable(model_ub, lambda_2[1:N])
        for i_ub = 1:N
            for j_ub = 1:N
                if i_ub == i && j_ub == j
                    # the constraint for the current ij, or variable W_ub
                    @constraint(model_ub, W_ub <= lambda_1[i_ub] + lambda_2[j_ub])
                elseif H_star[i_ub,j_ub] == 1
                    # the constraint for ij such that H_star[i,j] = 1
                    @constraint(model_ub, W[i_ub,j_ub] == lambda_1[i_ub] + lambda_2[j_ub])
                else H_star[i_ub,j_ub] == 0
                    # the constraint for ij such that H_star[i,j] = 0
                    @constraint(model_ub, W[i_ub,j_ub] <= lambda_1[i_ub] + lambda_2[j_ub])
                end
            end
        end
        @objective(model_ub, Max, W_ub)
        optimize!(model_ub)

To address your question, W and H_star do not change, and W_ub is the objective variable (which is W_{i'j'} in the optimization problem). Right now, it took about 4 seconds on my computer to solve one such problem. I would like to see if it is possible to solve it in milliseconds.

See point 3 here: https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757
Also https://stackoverflow.com/help/minimal-reproducible-example
In particular, I don't have data for N, H_star, or W.

Right now, it took about 4 seconds on my computer to solve one such problem. I would like to see if it is possible to solve it in milliseconds.

Did you look at the Gurobi log (i.e., OutputFlag = 1)? Most of the 4 seconds is probably problem set-up.
Does the time drop when you use JuMP.direct_mode?
Why did you set Presolve=0? Gurobi can probably efficiently resolve this model.
Is W or H_star symmetric? You potentially have lots of symmetry you could remove.

Because I need to solve this problem millions of times, so I am trying to find a way to make it as fast as I can.

Where does the million solves come into this? The first solve might be 4 seconds, but if you are solving small variations, future solves should be on the order of milliseconds (or even less).
Rather than continue posting here, this type of question is more appropriate for our Discourse forum: https://discourse.julialang.org/c/domain/opt/13. It has the added benefit that many more people will read it and may have suggestions.
I would create a full working example that someone can copy-paste into the REPL, run various timings with different settings to see what works and what doesn't, write up what you've found and what you've tried, and then post that in a new post on Discourse.  Make sure to link back to this issue so that people can read the back-story if they are interested._
Closing this issue because it is not a bug in Gurobi.jl.


Production Migration On Dec 8, 2023 19:00

This Production migration have 3 branches (6 tickets) involved.
[jp-0065] DEV - Admin report list - Charity Amount
[jp-0069] Donate Now pledges displayed in 2023 instead of 2024
[jp-0069] Donate Now pledges (admin) -- EE region should be based on EE office city (additional Change)
[jp-0070 <-- jp-0066] eForm - When user attaches Multiple files to eform,  some of the files are missing in admin-event pledge,
[jp-0070 <-- jp-0066] eForm - store eForm Attachments in Database instead of system folder
[jp-0070] eForm (admin) - event pledge detail view (Note: merged with jp-0066)

Pre Migration Steps:

Request User to setup mainetancen schedule timeframe in Production from Dec 8, 2023 7:00pm to 8:00pm.

Post Migration Steps:

php artisan optimize:clear
make sure all POD must be restarted
make background queue process started on each POD (command: ps -eF )
php artisan migrate
create new directory called 'tmp' under /var/www/html/storage/app
mkdir /var/www/html/storage/app/tmp
Run seeder (jp-0070 -- to import the attachment from system folder to database)
php artisan db:seed --class=BankDepositFormAttachmentsSeeder

Required by jp-0066 ticket, executed the following SQLs to fix the problem data before the revised program deployed:
mysql> select id, organization_id, emplid, yearcd, one_time_amount from donate_now_pledges where yearcd = 2023;
+----+-----------------+--------+--------+-----------------+
| id | organization_id | emplid | yearcd | one_time_amount |
+----+-----------------+--------+--------+-----------------+
|  1 |               5 | 010058 | 2023   |           20.00 |
|  3 |               5 | 064306 | 2023   |           20.00 |
|  4 |               5 | 160588 | 2023   |          300.00 |
|  5 |               5 | 160588 | 2023   |          150.00 |
|  6 |               5 | 160588 | 2023   |           50.00 |
|  7 |               5 | 136279 | 2023   |           50.00 |
|  8 |               5 | 131856 | 2023   |           20.00 |
|  9 |               5 | 127588 | 2023   |           20.00 |
| 10 |               5 | 194208 | 2023   |            5.00 |
| 11 |               5 | 129757 | 2023   |          100.00 |
| 12 |               5 | 198703 | 2023   |           10.00 |
| 13 |               5 | 198703 | 2023   |           10.00 |
| 14 |               5 | 198703 | 2023   |           10.00 |
| 15 |               5 | 134704 | 2023   |           20.00 |
| 16 |               5 | 012982 | 2023   |           50.00 |
| 17 |               5 | 136279 | 2023   |           50.00 |
| 18 |               5 | 171179 | 2023   |          100.00 |
| 19 |               5 | 161491 | 2023   |           50.00 |
| 20 |               5 | 161491 | 2023   |          100.00 |
| 21 |               5 | 166242 | 2023   |           40.00 |
| 22 |               5 | 097213 | 2023   |          500.00 |
+----+-----------------+--------+--------+-----------------+
21 rows in set (0.00 sec)
mysql> update donate_now_pledges set yearcd = 2024, updated_at = now() where yearcd = 2023;
Query OK, 21 rows affected (0.01 sec)
Rows matched: 21  Changed: 21  Warnings: 0
mysql> select id, organization_id, emplid, yearcd, one_time_amount from donate_now_pledges;
+----+-----------------+--------+--------+-----------------+
| id | organization_id | emplid | yearcd | one_time_amount |
+----+-----------------+--------+--------+-----------------+
|  1 |               5 | 010058 | 2024   |           20.00 |
|  2 |               5 | 010058 | 2024   |           75.00 |
|  3 |               5 | 064306 | 2024   |           20.00 |
|  4 |               5 | 160588 | 2024   |          300.00 |
|  5 |               5 | 160588 | 2024   |          150.00 |
|  6 |               5 | 160588 | 2024   |           50.00 |
|  7 |               5 | 136279 | 2024   |           50.00 |
|  8 |               5 | 131856 | 2024   |           20.00 |
|  9 |               5 | 127588 | 2024   |           20.00 |
| 10 |               5 | 194208 | 2024   |            5.00 |
| 11 |               5 | 129757 | 2024   |          100.00 |
| 12 |               5 | 198703 | 2024   |           10.00 |
| 13 |               5 | 198703 | 2024   |           10.00 |
| 14 |               5 | 198703 | 2024   |           10.00 |
| 15 |               5 | 134704 | 2024   |           20.00 |
| 16 |               5 | 012982 | 2024   |           50.00 |
| 17 |               5 | 136279 | 2024   |           50.00 |
| 18 |               5 | 171179 | 2024   |          100.00 |
| 19 |               5 | 161491 | 2024   |           50.00 |
| 20 |               5 | 161491 | 2024   |          100.00 |
| 21 |               5 | 166242 | 2024   |           40.00 |
| 22 |               5 | 097213 | 2024   |          500.00 |
| 23 |               5 | 135531 | 2024   |           20.00 |
| 24 |               5 | 116317 | 2024   |           50.00 |
+----+-----------------+--------+--------+-----------------+
24 rows in set (0.00 sec)


Add buildspec.yml, add init.groovy, update Dockerfile

What

Added buildspec.yml
Added init.groovy
Updated Dockerfile

Why

buildspec.yml allows AWS CodeBuild to build the Docker image and store it in an ECR repository

init.groovy script allows complete Jenkins automation including setting up the initial admin user, configuring security mode, jobs, slave access, and more

Dockerfile:

Sets Java ENV vars to disable Jenkins setup wizard UI
Installs Jenkins plugins
Calls init.groovy to automate Jenkins setup, e.g. configuring the initial admin user, security mode, and jobs executors
Exposes Jenkins HTTP port 8080 in the Docker container

References

http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html

http://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html

https://technologyconversations.com/2017/06/16/automating-jenkins-docker-setup

https://github.com/foxylion/docker-jenkins

My only concern is this breaks compatibility with our existing Jenkins helm chart. Can you confirm what ENVs that chart uses?

Not sure how I feel about including the sumologic/datadog/ansible stuff in this image. Maybe we should have a private image that extends this instead....


Add deprecation notes for helm features as they only relate to v2

Title should be sufficient description of the contents of this PR.

Merging this in given the usefulness of clarifying helm 2.


Difference in CO2-emissions in dashboard (PRO vs. BETA)

In the Nederlands (present - 2050) scenario, there is a difference in the CO2-emission KPI in the dashboard:

When I checked the CO2-emission chart for biomass, there seemed to be a difference of a few Mton as well between BETA and PRO:

I'm not sure if this is the only thing that causes the difference in the dashboard KPI for CO2-emissions.
@marliekeverweij, do you have any thoughts on this? I'll check the CO2-emissions for some other scenarios as well to see if there are any differences in emissions between PRO and BETA.

As discussed, this is because we corrected the double counting of coal gas in Industry. See: https://github.com/quintel/etdataset/issues/621


[Bug] [UI] The task name is not displayed completely

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
The names of the people in the workflow cannot be displayed in full and cannot be searched.
Most of our workflows have a lot of tasks, which can be cumbersome.

What you expected to happen
The task name can be displayed in its entirety.
How to reproduce
see "What happened"
Anything else
No response
Version
2.0.3
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'll fix this issue.


[ISSUE #325] Fix unable to auto recover after follower isolation

fix #325

It has been fixed in #247


Multipayer Respawn Crash Bug Fix

Contains
The game crashes when any player on the server tries to respawn when multiple players are present in the server.
How to test

Start a local server and two clients using run configurations .
Join the server from both the clients.
Die and respawn any player.(This causes the game to crash in the version before fix)

Other Modules Affected
The fix will cause AdventureAssets module's spawn location to not work (need to handle the spawn override using the new listener , A PR for that https://github.com/Terasology/AdventureAssets/pull/25
What have I done
The bug was due to a player being rendered before his spawn location was set (because making the player available  for rendering and setting his spawn location was being done asynchronously).
I have fixed the issue by making it synchronous and also made default spawnLocation modification  possible by making a BeforeRespawnEvent to handle it.

Can one of the admins please verify this patch?

Can one of the admins please verify this patch?

Nice work! Can confirm this seems to fix the bug in one scenario - where you have two game clients and once of them hosts the server. However, if I run using the headless server and connect two clients to it I still hit the error which crashes the server. This might get into authority vs client events but I'm not sure and it is too late tonight to dig deeper.
I'd also like to ask if you'd take this a step further: I tried testing out AdventureAssets at the same time, where you can give altarofresurrectionroot block and place it, then e click the statue to reset your spawn point. That seems to have broken as it didn't work before I merged the PRs, nor does it work after. Could you try to see if you can get it to work?
The statue is also meant to switch appearance when you e click it, which isn't working either. But that might be a bit of a departure from the respawn logic you've examined so far. But if you can fix one or both those issues that'd be a great extra 👍

@Cervator Can I get the logs please? I did test using 1 server + two clients and the game did not crash! I'll test it again. Also did you run both server and clients using the run config? Looking into the spawn issue in AdventureAssets right now and I'll look into the switch appearance issue once I am done with my GSOC proposal.

 Log snippet:
...
00:12:15.938 [main] INFO  o.t.n.internal.NetworkSystemImpl - Component class org.terasology.logic.characters.AliveCharacterComponent added to EntityRef{id = 116, netId = 100, prefab = 'engine:player'}
00:12:16.035 [main] ERROR o.terasology.engine.TerasologyEngine - Uncaught exception, attempting clean game shutdown
java.lang.ArithmeticException: input is infinite or NaN
	at com.google.common.math.DoubleMath.roundIntermediate(DoubleMath.java:57)
	at com.google.common.math.DoubleMath.roundToInt(DoubleMath.java:132)
	at org.terasology.math.geom.Vector3i.<init>(Vector3i.java:87)
	at org.terasology.math.ChunkMath.calcChunkPos(ChunkMath.java:79)
	at org.terasology.world.chunks.internal.ChunkRelevanceRegion.calculateCenter(ChunkRelevanceRegion.java:132)
	at org.terasology.world.chunks.internal.ChunkRelevanceRegion.update(ChunkRelevanceRegion.java:110)
	at org.terasology.world.chunks.localChunkProvider.LocalChunkProvider.updateRelevance(LocalChunkProvider.java:479)
	at org.terasology.world.chunks.localChunkProvider.LocalChunkProvider.beginUpdate(LocalChunkProvider.java:343)
	at org.terasology.engine.subsystem.headless.renderer.HeadlessWorldRenderer.update(HeadlessWorldRenderer.java:109)
	at org.terasology.engine.modes.StateIngame.update(StateIngame.java:176)
	at org.terasology.engine.TerasologyEngine.tick(TerasologyEngine.java:462)
	at org.terasology.engine.TerasologyEngine.mainLoop(TerasologyEngine.java:425)
	at org.terasology.engine.TerasologyEngine.run(TerasologyEngine.java:401)
	at org.terasology.engine.Terasology.main(Terasology.java:151)
00:12:16.036 [main] INFO  o.terasology.engine.TerasologyEngine - Shutting down Terasology...
00:12:16.284 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Creating game snapshot
00:12:16.296 [main] INFO  o.t.p.i.ReadWriteStorageManager - Saving - Snapshot created: Writing phase starts
00:12:16.317 [main] INFO  o.t.n.internal.NetworkSystemImpl - Client disconnected: Cerv1
00:12:16.325 [main] INFO  o.t.n.internal.NetworkSystemImpl - Client disconnected: Cerv2
00:12:16.327 [main] ERROR o.t.p.t.TypeHandlerLibrary - Unsupported field: 'Health:Regen.regenEndTime'
00:12:16.329 [main] INFO  o.t.n.internal.NetworkSystemImpl - Network shutdown
00:12:17.870 [Saving-0] INFO  o.t.p.internal.SaveTransaction - Save game finished
java.lang.ArithmeticException: input is infinite or NaN
	at com.google.common.math.DoubleMath.roundIntermediate(DoubleMath.java:57)
	at com.google.common.math.DoubleMath.roundToInt(DoubleMath.java:132)
	at org.terasology.math.geom.Vector3i.<init>(Vector3i.java:87)
	at org.terasology.math.ChunkMath.calcChunkPos(ChunkMath.java:79)
...

@Cervator Upon testing again I ran into the issue again ! But I have fixed it now by not rendering entities with location containing NaN values.I am closing this PR and the new one is here : https://github.com/MovingBlocks/Terasology/pull/3855


Try it link dead

https://microsoft.github.io/language-server-protocol/inspector/. is dead

See microsoft/language-server-protocol#1089

See microsoft/language-server-protocol#1089

Thanks


Add Swedish

by cthulu.eth

@cthulu-dot-eth this is great, thanks! I'll handle your reward via email once we merge it


Fix possible bug with forbiddenPhrase search

 forbiddenPhrases.forEach((phrase) => {
            if (message.content.includes(phrase)) message.delete();
        });

In case there are multiple "forbiddenPhrases" found in the content, the bot would attempt to delete the same message multiple time, resulting in an error.
This is why I suggest you search for it first, then call delete once
and returning also avoids the case where there was a forbiddenPhrase and more than 5 users were mentioned

Thanks for your contribution :)


nextui-admin using @enalmada/next-themes until nonce is fixed

Current dependencies on/for this PR:

main

PR #11   👈

This comment was auto-generated by Graphite.


remove tabs component example because bugs

Where are the bugs. I just had a look and it seemed fine.


Update to latest cardano-ledger-specs

bors merge

bors stop

bors r-

Cancelled because I need to merge the PR in cardano-ledger first

Cancelled because I need to merge the PR in cardano-ledger first

Ok, you can squash your commits before merging.

bors merge


Support https with dfs.namenode with delegation tokens

https://github.com/vertica/spark-connector/blob/main/connector/src/main/scala/com/vertica/spark/datasource/jdbc/VerticaJdbcLayer.scala#L354
We use dfs.namenode.http-address, should also support https-address
First, reproduce problems when an https-address is used. Then add support for it with delegation tokens.

Update: Currently trying to connect to secure webhdfs using Kerberos via our Docker setup. We've been dealing with several errors due to differences in how webhdfs works and how it is set up. The issue we currently face is this: "Security enabled but user not authenticated by filter".


gpg: Log gpg output to LogWriter

Continuation of https://github.com/gopasspw/gopass/pull/2576 .

Aish I ran make test and it should be better to run make clean && make fulltest... I'm getting a different error though:
>> BUILD, version = 1.15.13/b1cbd097, output = gopass [OK]
mkdir -p ~/.gnupg
>> TEST, "full-mode": race detector off
     ok         github.com/gopasspw/gopass      0.072s  coverage: 47.1% of statements
        github.com/gopasspw/gopass/helpers/changelog            coverage: 0.0% of statements
        github.com/gopasspw/gopass/helpers/man          coverage: 0.0% of statements
        github.com/gopasspw/gopass/helpers/msipkg               coverage: 0.0% of statements
        github.com/gopasspw/gopass/helpers/postrel              coverage: 0.0% of statements
        github.com/gopasspw/gopass/helpers/release              coverage: 0.0% of statements
     ok         github.com/gopasspw/gopass/internal/action      5.093s  coverage: 60.2% of statements
     ok         github.com/gopasspw/gopass/internal/action/exit 0.004s  coverage: 100.0% of statements
     ok         github.com/gopasspw/gopass/internal/action/pwgen        0.007s  coverage: 51.6% of statements
     ok         github.com/gopasspw/gopass/internal/audit       0.043s  coverage: 24.1% of statements
     ok         github.com/gopasspw/gopass/internal/backend     0.079s  coverage: 55.4% of statements
     ?          github.com/gopasspw/gopass/internal/backend/crypto      [no test files]
     ok         github.com/gopasspw/gopass/internal/backend/crypto/age  0.047s  coverage: 2.6% of statements
     ok         github.com/gopasspw/gopass/internal/backend/crypto/gpg  0.003s  coverage: 93.6% of statements
     ok         github.com/gopasspw/gopass/internal/backend/crypto/gpg/cli      0.113s  coverage: 60.8% of statements
     ok         github.com/gopasspw/gopass/internal/backend/crypto/gpg/colons   0.004s  coverage: 39.1% of statements
     ok         github.com/gopasspw/gopass/internal/backend/crypto/gpg/gpgconf  0.003s  coverage: 27.3% of statements
     ok         github.com/gopasspw/gopass/internal/backend/crypto/plain        0.004s  coverage: 85.3% of statements
     ?          github.com/gopasspw/gopass/internal/backend/storage     [no test files]
        github.com/gopasspw/gopass/internal/backend/storage/fossilfs            coverage: 0.0% of statements
     ok         github.com/gopasspw/gopass/internal/backend/storage/fs  0.325s  coverage: 63.6% of statements
     ok         github.com/gopasspw/gopass/internal/backend/storage/gitfs       0.088s  coverage: 48.1% of statements
     ok         github.com/gopasspw/gopass/internal/cache       1.108s  coverage: 78.7% of statements
        github.com/gopasspw/gopass/internal/cache/ghssh         coverage: 0.0% of statements
     ok         github.com/gopasspw/gopass/internal/completion/fish     0.004s  coverage: 100.0% of statements
     ok         github.com/gopasspw/gopass/internal/completion/zsh      0.003s  coverage: 100.0% of statements
     ok         github.com/gopasspw/gopass/internal/config      0.064s  coverage: 68.4% of statements
     ok         github.com/gopasspw/gopass/internal/config/legacy       0.044s  coverage: 64.8% of statements
     ok         github.com/gopasspw/gopass/internal/create      0.040s  coverage: 17.5% of statements
     ok         github.com/gopasspw/gopass/internal/cui 0.007s  coverage: 57.0% of statements
     ok         github.com/gopasspw/gopass/internal/diff        0.002s  coverage: 100.0% of statements
     ok         github.com/gopasspw/gopass/internal/editor      0.007s  coverage: 53.6% of statements
        github.com/gopasspw/gopass/internal/env         coverage: 0.0% of statements
        github.com/gopasspw/gopass/internal/hashsum             coverage: 0.0% of statements
        github.com/gopasspw/gopass/internal/hook                coverage: 0.0% of statements
     ok         github.com/gopasspw/gopass/internal/notify      0.003s  coverage: 56.1% of statements
     ok         github.com/gopasspw/gopass/internal/out 0.003s  coverage: 38.3% of statements
     ok         github.com/gopasspw/gopass/internal/pwschemes/argon2i   0.795s  coverage: 72.7% of statements
     ok         github.com/gopasspw/gopass/internal/pwschemes/argon2id  1.816s  coverage: 72.7% of statements
     ok         github.com/gopasspw/gopass/internal/pwschemes/bcrypt    0.698s  coverage: 75.0% of statements
        github.com/gopasspw/gopass/internal/queue               coverage: 0.0% of statements
     ok         github.com/gopasspw/gopass/internal/recipients  0.004s  coverage: 81.8% of statements
        github.com/gopasspw/gopass/internal/reminder            coverage: 0.0% of statements
     ok         github.com/gopasspw/gopass/internal/set 0.005s  coverage: 92.7% of statements
     ok         github.com/gopasspw/gopass/internal/store       0.003s  coverage: 100.0% of statements
] 2 / 2
❌ Failed to decode public key A3683834: public key "A3683834" not found
git initialized at /tmp/TestGit4192319314/001/sub
git configured at /tmp/TestGit4192319314/001/sub
--- FAIL: TestSet (0.00s)
    write_test.go:25:
                Error Trace:    /home/doron/repos/gopass/internal/store/leaf/write_test.go:25
                Error:          An error is expected but got nil.
                Test:           TestSet
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
[] ❌ Invalid recipients found: Invalid Recipients: john.doe: no valid keys (expired?),
[] ❌ Failed to decode public key john.doe: public key "john.doe" not found
[] ❌ Failed to decode public key john.doe: public key "john.doe" not found
[] ⚠ failed to check "foo/bar":
    [fatal] [non-fatal] Missing recipients on foo/bar: [john.doe]
Run fsck with the --decrypt flag to re-encrypt it automatically, or edit this secret yourself., Extra recipients on foo/bar: [0xDEADBEEF 0xFEEDBEEF]
Run fsck with the --decrypt flag to re-encrypt it automatically, or edit this secret yourself., Run fsck with the --decrypt flag to re-encrypt it automatically, or edit the secret foo/bar yourself.
failed to check "foo/baz":
    [fatal] [non-fatal] Missing recipients on foo/baz: [john.doe]
Run fsck with the --decrypt flag to re-encrypt it automatically, or edit this secret yourself., Extra recipients on foo/baz: [0xDEADBEEF 0xFEEDBEEF]
Run fsck with the --decrypt flag to re-encrypt it automatically, or edit this secret yourself., Run fsck with the --decrypt flag to re-encrypt it automatically, or edit the secret foo/baz yourself.
failed to check "foo/zab":
    [fatal] [non-fatal] Missing recipients on foo/zab: [john.doe]
Run fsck with the --decrypt flag to re-encrypt it automatically, or edit this secret yourself., Extra recipients on foo/zab: [0xDEADBEEF 0xFEEDBEEF]
Run fsck with the --decrypt flag to re-encrypt it automatically, or edit this secret yourself., Run fsck with the --decrypt flag to re-encrypt it automatically, or edit the secret foo/zab yourself.

⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
⚠ No owner key found. Make sure your key is fully trusted.
FAIL
coverage: 53.6% of statements
FAIL    github.com/gopasspw/gopass/internal/store/leaf  8.770s
FAIL
make: *** [Makefile:96: fulltest] Error 1

I'll look into this later today hopefully.

Fixed the tests. Hopefully now on CI as well.

Finally green :heavy_check_mark: :)

Don't understand the CI errors unfortuenatly :/ On other PRs it is red also...

@doronbehar hi there, you can find more information on the CI errors by looking for the name between parenthesis on this link; on this PR it's mostly the MND linter complaining about naked numbers in function calls.  Just passing by and saw your question :)

Thanks for taking the time to try to help @tcodes0 ! It's nice to understand now the errors, and I'm more convinced that these are not related to my PR, and that fixing them is out of scope for this PR. I pushed a rebase of my commits, but according to the current latest commit that shows the same errors in CI, I don't hope the errors will be fixed.

I'm still waiting for replies by @AnomalRoil for my old comments :pray:.

Almost there. Please address my comments and we can finally merge this. Sorry for the delays.

Thanks for coming back to this.

The error in the Linux build seems like an error caused by the addition to the makefile, no?
--- FAIL: TestGPG (0.01s)
    gpg_test.go:30:
        	Error Trace:	/home/runner/work/gopass/gopass/internal/backend/crypto/gpg/cli/gpg_test.go:30
        	Error:      	Received unexpected error:
        	            	exit status 2: tru::1:1720345348:0:3:1:5
        	            	|gpg: WARNING: unsafe permissions on homedir '/home/runner/.gnupg'
        	            	gpg: /home/runner/.gnupg/trustdb.gpg: trustdb created
        	            	gpg: [don't know]: invalid packet (ctb=00)
        	            	gpg: keydb_search_first failed: Invalid packet
        	Test:       	TestGPG
FAIL

not sure if it needs the right set of permissions for it to work or not.

The error in the Linux build seems like an error caused by the addition to the makefile, no?

Could be.. make fulltest worked for me locally. I removed that last commit now. Let's see how CI goes now.

OK now only the old GOLANGCI-LINT errors are present.

Thanks!
On 7 July 2024 18:58:12 GMT+03:00, Dominik Schulz @.***> wrote:

Merged #2869 into master.
--
Reply to this email directly or view it on GitHub:
https://github.com/gopasspw/gopass/pull/2869#event-13414410780
You are receiving this because you were mentioned.
Message ID: @.***>


not found packages

Resolving junit#junit;4.7 ...
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: org.apache.thrift#libthrift;0.5.0: not found
[warn] 	:: com.twitter.common.zookeeper#client;0.0.35: not found
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
sbt.ResolveException: unresolved dependency: org.apache.thrift#libthrift;0.5.0: not found

@AllienPhone I'm not seeing this behavior, can you please confirm it's still broken for you?
Also, what is the command that is being executed originally?

With the merge of #503, the only potential way that I think this would be a problem is if a user were on a network that was blocking the maven repo. I'm going to close this out.
Please re-open if you can reproduce this error on HEAD of master


Empty output is generated

When I run the debugger for the commons-math-core module of commons-math, I get an empty output.

Looking into it.

It was happening because the breakpoint was never reached.

thanks for the clarification @algomaster99 !


Getting black screen when open the application running in background

Details

Run the below-attached sample, then minimize the application and wait for 30 sec then reopen the application.

custompaintersample.zip

In this sample, we have added the CustomPaint widget to a list and wrapped this list of widgets in the SingleChildScrollView and Column widget. Here, we have added the CustomPaint widget into the list in some time intervals using the Timer and rendered the widget. After that, we minimized the application, then reopened it after 30 - 40 sec it shows the black screen and then renders a CustomPaint widget. While analyzing this we found that the Paint method in CustomPaint is not called in the background, but the widget was added to the list while in the background. The paint method gets called only after reopening the application, so we suspect that it is because of paint method is called n number of times for the added widgets when reopening the application. If so can you please help me with how to overcome this.

Screen Record:
https://user-images.githubusercontent.com/61863686/162637849-f74a3918-df14-4d6f-9e7d-cc45330f3355.mp4
Logs

Logs

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19042.1586], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.2)
[√] Android Studio (version 4.1)
[√] VS Code (version 1.66.1)
[√] Connected device (5 available)
[√] HTTP Host Availability

• No issues found!

@Yuvaraj-Gajaraj
From the code you shared, you seem to be using https://pub.dev/packages/flutter_background which is third party plugin. Does the behavior persists without using this plugin's code and only using core framework code ?
If so, please provide complete updated minimal code sample that shows the black screen issue or if it only happens with plugin code added, you might need to open this issue in dedicated repo.


bug fix drag "Unrestricted" area repeating sound

Fix a bug causing a sound to be repeatedly played while dragging over
the "Unrestricted" area.

This is a great mod! I just wanted to fix a minor bug I found.


[enhancement] Please add function to reset existing state in ChipInputState

I have a use case where I am replacing the initialvalue provided to the ChipInputState. I need to clear previous selections once initial value is replaced. Now what happens is when I change the initial value the previous items also displayed in suggestion box.

Also How to set initial selected chips on flutter page load?


Generate ISOs with no host dependencies

Currently the build iso process is unfriendly - it requires deps from the host system, and moreover the dependency on luet-extensions make it rather complex to follow.
Keep in mind that the building process might require "external" artifacts as the EFI image, and those could be provided separately, or as part of the system that we are trying to boot from the ISO.
We should explore if it's feasable to replace the process with a single golang binary  which uses https://github.com/diskfs/go-diskfs/
https://github.com/diskfs/go-diskfs/blob/master/examples/bootable_iso.go
Update: a small PoC it's here: https://github.com/mudler/luet-makeiso

I think we can close this. https://github.com/rancher-sandbox/cOS-toolkit/pull/56 was merged and it's into this direction. We had to keep only xorriso and squashfs due to technical limitations of the underlying library, but the code to build the iso natively is there ( it just fails when booting on EFI when building natively).
This already simplified the build process and we got rid of the dependencies which made the UX a pitfall from the derivative perspective


[BUG] Windows package doesn't contain a logs folder and doesn't start

Describe the bug
If logs directory doesn't exist, startup will fail with Error opening log file 'logs/gc.log': No such file or directory.
To Reproduce
Coming from https://github.com/opensearch-project/opensearch-build/issues/33 I assembled an OpenSearch Windows distribution, extracted it, created a demo certificate, then ran bin\opensearch.bat.
C:\Users\ADMINI~1\AppData\Local\Temp\2\OpenSearch>bin\opensearch.bat
Picked up _JAVA_OPTIONS: -Xmx4096M
Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
[0.002s][error][logging] Error opening log file 'logs/gc.log': No such file or directory
[0.002s][error][logging] Initialization of output 'file=logs/gc.log' using options 'filecount=32,filesize=64m' failed.
error:
Picked up _JAVA_OPTIONS: -Xmx4096M
Invalid -Xlog option '-Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
        at org.opensearch.tools.launchers.JvmErgonomics.flagsFinal(JvmErgonomics.java:139)
        at org.opensearch.tools.launchers.JvmErgonomics.finalJvmOptions(JvmErgonomics.java:101)
        at org.opensearch.tools.launchers.JvmErgonomics.choose(JvmErgonomics.java:72)
        at org.opensearch.tools.launchers.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:152)
        at org.opensearch.tools.launchers.JvmOptionsParser.main(JvmOptionsParser.java:110)

Expected behavior
The windows distribution to just work.
Probably the windows-zip target needs to create an empty logs folder.
Host/Environment (please complete the following information):

Windows

How do you assemble an Open Search Windows distribution? Is there a more appropriate way to discus this?


Adding geolocation to explore

🚧  work in progress
Trello Card
Idea
const [coordinates] = useGeolocation();

useEffect(() => {
  if (coordinates) {
    // find state, add to explore
  } else {
    // user didn't authorize, couldn't find the state (show alert, disable geolocation button)
  }
}, [coordinates])

Note to self

geoContains from d3-geo doesn't work with coordinates from our states dataset (two theories, spherical vs. planar coordinates, or clockwise vs. counterclockwise coordinates on the corresponding polygons). A workaround is to work with projected coordinates and use contains from d3-polygon , using any projection should work.
Enable sensors on Chrome Developer Tools and select a US location during development, see Override Geolocation in Chrome DevTools

Just a demo, closing for now


[VL]std::bad_cast under v1.0.0

Describe the bug
when running the 1.sql of tpch, there throws the following error:
...
caused by :org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 9.0 failed 1 times, ...
...
caused by : java.lang.RuntimeException: std::bad_cast
...
To Reproduce
use the following jars, start the spark server and run 1.sql:
/v1.0.0/gluten-velox-bundle-spark3.2_2.12-centos_7-1.0.0.jar
/0.5.0/gluten-thirdparty-lib-centos-7.jar
spark-3.2.2-bin-hadoop3.2.tgz

Hi @yonger001, 1.0.0 release has no third party jar published, as third party dependencies are statically linked. You can just use one corresponding gluten 1.0.0 release jar for test and to see whether the issue still exists.
BTW, could you please let us know which company you are from?

I have the same problem, is this the CPU type limit? The type of CPU I'm having trouble with is hygon？

java.lang.RuntimeException: std::bad_cast
at io.glutenproject.vectorized.PlanEvaluatorJniWrapper.nativeCreateKernelWithIterator(Native Method)
at io.glutenproject.vectorized.NativePlanEvaluator.createKernelWithBatchIterator(NativePlanEvaluator.java:79)
at io.glutenproject.backendsapi.velox.IteratorHandler.genFinalStageIterator(IteratorHandler.scala:292)
at io.glutenproject.execution.WholeStageZippedPartitionsRDD.$anonfun$genFinalStageIterator$1(WholeStageZippedPartitionsRDD.scala:61)
at io.glutenproject.execution.WholeStageZippedPartitionsRDD.compute(WholeStageZippedPartitionsRDD.scala:70)

java.lang.RuntimeException: std::bad_cast at io.glutenproject.vectorized.PlanEvaluatorJniWrapper.nativeCreateKernelWithIterator(Native Method) at io.glutenproject.vectorized.NativePlanEvaluator.createKernelWithBatchIterator(NativePlanEvaluator.java:79) at io.glutenproject.backendsapi.velox.IteratorHandler.genFinalStageIterator(IteratorHandler.scala:292) at io.glutenproject.execution.WholeStageZippedPartitionsRDD.$anonfun$genFinalStageIterator$1(WholeStageZippedPartitionsRDD.scala:61) at io.glutenproject.execution.WholeStageZippedPartitionsRDD.compute(WholeStageZippedPartitionsRDD.scala:70)

Do you know how to solve this problem? Thank you

If you are using our posted 1.0.0 release jar, please don't deploy third-party jar and disable the below config property:
spark.gluten.loadLibFromJar=false. Then, the std::bad_cast can be avoided, according to some user's feedback.

@PHILO-HE  yes  spark.gluten.loadLibFromJar=false  sometimes in effect。 I am in the ubuntu environment, and I will still report this error after disabling this configuration after replacing it with the arrow compiled by myself.


Fix InvalidOperationException in GetParentProcess() when running Kudu in Linux

When performing git push against a Linux kudu and if it fails due to some reason,  InvalidOperationException occurs from GetParentProcess() which obscures the original error information. This is because the logic to obtain the parent process ID does not work on Linux. This change will fix this problem by replacing the logic with reading /proc in case of non-Windows platform.
In addition, since there is a slight chance of the same issue happening on Windows as well, I added a small piece of code to safely retrieving the parent process ID.

@michimune,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla2.dotnetfoundation.org.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
.NET Foundation Pull Request Bot

Forgot to paste the stack trace:
"Process has exited, so the requested information is not available." stack
Trace="  at System.Diagnostics.Process.get_ProcessName () [0x00030] in <5071a
6e4a4564e19a2eda0f53e42f9bd>:0
at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:get_Process
Name ()
at Kudu.Core.Infrastructure.ProcessExtensions.GetParentProcess (System.Diagnostics.Process process, Kudu.Contracts.Tracing.ITracer tracer) [0x00047] in <15d44e8eb8af4635b61de41ffac6a5b9>:0
at Kudu.Core.Infrastructure.ProcessExtensions.GetProcessTree (Kudu.Contracts.Tracing.ITracer tracer) [0x00014] in <15d44e8eb8af4635b61de41ffac6a5b9>:0
at Kudu.Core.Infrastructure.ProcessExtensions.GetChildren (System.Diagnostics.Process process, Kudu.Contracts.Tracing.ITracer tracer, System.Boolean recursive) [0x00006] in <15d44e8eb8af4635b61de41ffac6a5b9>:0
at Kudu.Core.Infrastructure.ProcessExtensions.GetTotalProcessorTime (System.Diagnostics.Process process, Kudu.Contracts.Tracing.ITracer tracer) [0x00000] in <15d44e8eb8af4635b61de41ffac6a5b9>:0 " /

@nickwalkmsft can you review this one? Thanks!

Thank you!


FIX Provide correct replacement suggestion in deprecation message

Note that the (push) CI failures are irrelevant - we only care about the (pull_request) CI which is all green.

Nice simple change. Thanks


Likes and dislike counter overlaid with view counter

Ooh yeah, looks like it was probably caused by the same layout update that broke Return YouTube Dislike. Might release a fix later today.

Should be fixed in 1.2.2.


Nabu Casa: 503 Error

Just a reminder to try to figure out why this isnt working. Otherwise, just need to cancel Nabu Casa since we dont need it and only really use it to support the project.

User error. I had ip ban turned on and for some reason the k8s service was banned. To fix in the future, delete the ip_ban.yaml file from the /config folder on HA instance.


zarf tries to apply template replacements to large files that might be incorrectly assessed as text

Environment
Device and OS: linux/amd64
App version: 0.32.3
Kubernetes distro being used: k3s (Not applicable for this problem)
Other:
Steps to reproduce

Create a zarf package that pulls a self-executing script like the NVIDIA script:

    files:
      - source: https://us.download.nvidia.com/XFree86/Linux-x86_64/535.154.05/NVIDIA-Linux-x86_64-535.154.05.run
        target: /tmp/nvidia-driver.run
        executable: true

Attempt to deploy it using zarf package deploy

Expected result
FIle is simply copied to location
Actual Result
This particular type of file is technically a script with an archive concatenated with it and it is rather large. Zarf detects it as a text file since it has text up front and tries to apply templating (###ZARF_VAR_*) to it.
There should be a way perhaps in the zarf.yaml to force it to not take this behavior. Maybe something like this?
    files:
      - source: https://us.download.nvidia.com/XFree86/Linux-x86_64/535.154.05/NVIDIA-Linux-x86_64-535.154.05.run
        target: /tmp/nvidia-driver.run
        executable: true
        noTemplate: true                  // new optional boolean

OR
Change the detection to also check the last couple of bytes at the end of the file too, should not be text for these type of installers.
If you opt for the latter, I can probably submit a PR myself. If you want to do the former, I would prefer your team discuss how you want to proceed. Happy to help where I can!
Visual Proof (screenshots, videos, text, etc)
  📦 DRIVERS COMPONENT

  ⠦  Templating /tmp/nvidia-driver.run (9m10s)

Severity/Priority
I can work around this by using an action to tar.gz it up beforehand but would be nice if I didn't have to do that.
Additional Context
Looks like this is the area of concern:
https://github.com/defenseunicorns/zarf/blob/7e91d3b9823b52fe6d0f563d692c8af57faa6005/src/pkg/packager/deploy.go#L360

IMO we would want to add more detection logic to root out these kinds of files (rather than add a new key) - this could be done in two ways:

As you mentioned, check the last 512 bytes for binary data bytes (we wouldn't be able to fully trust the http.DetectContentType mimetype since it would be missing things like byte order marks but it likely would give a decent clue)
https://mimesniff.spec.whatwg.org/#sniffing-a-mislabeled-binary-resource
Simply check the file size and return if it exceeds ~20MiB - k8s resources are usually limited to ~1MiB in size and while these can be stitched together, once you reach these higher sizes the likelihood these are resources to template goes down significantly (and it is something to discourage anyway because it would be a lot to process).  If we go this route we should add a warning when we are refusing to template a file though.

1 is probably best to explore first since theoretically it is more flexible if it can properly detect these files.


add to existing laravel project

hi
thanks for your great admin panel
i have quation: how can i add to to my existing project?
thanks for your help

@PanJiaChen how can one add this awesome project to Laravel

https://github.com/tuandm/laravue/
try using this implementation of the UI


Question about: Migrate an API Management instance hosted on the stv1 platform to stv2

The documentation isn't 100% clear on the process how they will upgrade our instance.
From the documentation they explain the process as follows:
New virtual IP address (recommended) - If you choose this mode, API requests remain responsive during migration. Infrastructure configuration (such as custom domains, locations, and CA certificates) will be locked for 30 minutes. After migration, you'll need to update any network dependencies including DNS, firewall rules, and VNets to use the new VIP address.
What we need to know is if a replica of our instance is created and then the configuration is transferred over while the old instance stays active until we update the DNS to point to the new instance?

@schalkOV
It would be great if you could add a link to the documentation you are following for these steps? This would help us redirect the issue to the appropriate team. Thanks!

@ManoharLakkoju-MSFT  sure, no problem.
Migrate an API Management instance hosted on the stv1 platform to stv2

@schalkOV
Thanks for your feedback! We will investigate and update as appropriate.

@schalkOV - This week the team updated the migration guide with more detail about what happens during migration and added an extensive FAQ section for different scenarios. Please let us know if this helps answer your questions. Thanks for reaching out!
/cc @seenu433

Thank you very much. That clarifies a lot of things for us.

I'll now close this issue. Thanks for your questions.
#please-close


Allow to build models in-place.

This fixes the commands python setup.py develop and pip install -e.

Awesome, thanks!


refactor: Rebrand OpenWorld to ExpediaGroup

 Rebrand OpenWorld to ExpediaGroup.
:pencil: Description

:link: Related Issues

Update user-agent to expediagroup-python-sdk-( Python {python_version}; {os_name} {os_version})'


Implement transaction on outer zio-jdbc-context using fiber refs

Fixes #2300
Also #2293
TODO:

Change all jdbc-zio unit tests to use the outer context. Make a copy of postgres tests from low-level context and use that one context do do the tests.
Add docs

Future TODO

Change SBT file back to same scala versions as ci.yaml (check the outer-context-transactions-simpler branch)
Change DataSource with Closable to just DataSource wherever possible.

Process:

[ ] Unit test all changes
[ ] Update README.md if applicable
[X] Add [WIP] to the pull request title if it's work in progress
[ ] Squash commits that aren't meaningful changes
[X] Run sbt scalariformFormat test:scalariformFormat to make sure that the source files are formatted

@getquill/maintainers

Going to merge this now and work on continuation in a new PR.


[Add] UI Cookies to theme & templates

Site URL
https://uicookies.com/
Description of the above provided site
Discover a vibrant world of meticulously crafted website templates and stunning color schemes at UI Cookies, your go-to destination for captivating design inspiration. Unleash your creativity with an array of visually striking templates and harmonious color combinations, elevating your web projects to new heights.
Category
Frontend
Sub Category
themes & templates
Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (optional)
[ ] I am a GSSoC'23 contributor

@Oyebolade thanks, assigning to you


[node] How to properly install pnpm?

Which image/versions are related to this issue/feature request?
cgr.dev/chainguard/node:latest-dev

Issue/Feature description
This issue is solved and is a reference to anyone looking to do the same. I understand why pnpm isn't included by default although it would be nice... but you'll get requests for yarn etc.
Referencing the docker init setup to run node with pnpm the generated Dockerfile had to be altered to work with chaingaurd:
# Install pnpm; requires changing the global npm installation directory and explicitly setting the uid and gid.
RUN --mount=type=cache,target=/home/node/.npm,uid=65532,gid=65532 \
    npm config set prefix /home/node/.npm \
    && npm install -g pnpm@${PNPM_VERSION}

ENV PATH=/home/node/.npm/bin:$PATH

# Download dependencies as a separate step to take advantage of Docker's caching.
# Leverage cache mounts to /home/node/.npm and /home/node/.local/share/pnpm/store to speed up subsequent builds.
# Leverage bind mounts to package.json and pnpm-lock.yaml to avoid having to copy them into this layer.
RUN --mount=type=bind,source=package.json,target=package.json \
    --mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \
    --mount=type=cache,target=/home/node/.npm,uid=65532,gid=65532 \
    --mount=type=cache,target=/home/node/.local/share/pnpm/store,uid=65532,gid=65532 \
    pnpm install --prod --frozen-lockfile

hi, pnpm should now be included in the -dev image:
$ docker run --rm --entrypoint sh chainguard/node:latest-dev -c 'pnpm --version'
9.9.0


Unnecessary semicolon fixed  in "Functional Programming"

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #XXXX

Description

Fixed - Unnecessary semicolon in "Functional Programming: Apply Functional Programming to Convert Strings to URL Slugs"  closes #13171

@Quinn-H LGTM! 👍  Thanks for your contribution to FreeCodeCamp! ✨ 🎉 ✨


Powertoys Run Issue - Triggered Incorrectly

Environment
Windows build number: 10.0.18363.900
PowerToys version: 0.19.0
PowerToy module "Run"

Steps to reproduce
Cant repro at will.

Screenshots

We're doing a hotfix that includes a fix for #4578.  This may resolve this.  I haven't seen this style behavior.  Are there particular apps in focus?

Visual Studio 2019, or Notepad++, or Notepad.  If it  happens again, I will notate this.

are those apps run under admin?

No they aren’t generally run as admin.

hi @michaelakin , few asks:

so your PT is not running as admin?
does this happen with another shortcut (not Alt-Space), have you tried?
are there any keys remapped using PT?
once it happens, you can't get rid of it until you kill PT, can you share any event logs when that becomes the case?

so your PT is not running as admin?

no

does this happen with another shortcut (not Alt-Space), have you tried?

I havent tried many except for the one that shows hotkeys.  Hold Win

are there any keys remapped using PT?

no

once it happens, you can't get rid of it until you kill PT, can you share any event logs when that becomes the case?

I will when it does this again for me.  Where would I find the logs?

This bug was easily reproducible in 0.19.0 and should be fixed in 0.19.2. @michaelakin can you check if you are still facing this issue after updating?

I updated yesterday, but have not seen the problem appear again yet, and hopefully this is fixed.

marking as fixed.  please open a bug if it starts happening again

Thanks!  I sure will.


"Run Cell" fails to find Jupyter installed in conda environment

Environment data

VS Code version: 1.34.0
Extension version (available under the Extensions sidebar): 2019.4.12954
OS and version: macOS Mojave 10.14.5 Beta (18F108f)
Python version (& distribution if applicable, e.g. Anaconda): 3.7.3, Anaconda
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: Jupyter 4.4.0

Expected behaviour
Click "Run Cell", then the cell is executed.
Actual behaviour
An error pops up, saying: "Running cells requires Jupyter notebooks to be installed."
The problem may be similar to #3343, where Jupyter in conda environment succeeded.
Steps to reproduce:

Create a python file and type in :

#%%
msg = 'Hello, world!'
print(msg)

Click "Run Cell" or "Run Below".
Error message yields.

Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Starting Jedi Python language engine.
##########Linting Output - pylint##########

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

##########Linting Output - pylint##########

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
[Extension Host] Python Extension: Error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named jupyter
 for /opt/local/bin/python2.7
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3: No module named jupyter
 for /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /usr/local/bin/python3: No module named jupyter
 for /usr/local/bin/python3
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /usr/bin/python: No module named jupyter
 for /usr/bin/python
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No module named notebook
 for /opt/local/bin/python2.7
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /usr/bin/python: No module named notebook
 for /usr/bin/python
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /usr/local/bin/python3: No module named notebook
 for /usr/local/bin/python3
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3: No module named notebook
 for /Library/Frameworks/Python.framework/Versions/3.6/bin/python3
t.log @ workbench.main.js:238
2workbench.main.js:238 [Extension Host] Python Extension: Error: /anaconda3/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py:19: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed.
    Install tornado itself to use zmq with the tornado IOLoop.

  from jupyter_client.session import Session
 for /anaconda3/bin/python
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] Python Extension: Error: /anaconda3/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py:19: VisibleDeprecationWarning: zmq.eventloop.minitornado is deprecated in pyzmq 14.0 and will be removed.
    Install tornado itself to use zmq with the tornado IOLoop.

  from jupyter_client.session import Session

t.log @ workbench.main.js:238
workbench.main.js:2365 Running cells requires Jupyter notebooks to be installed.
onDidNotificationChange @ workbench.main.js:2365
workbench.main.js:238 [Extension Host] Python Extension: Error: Running cells requires Jupyter notebooks to be installed.

Dupe of #5102

@ronglums Well, actually, I did try updating packages as #5102 says. I even tried conda update --all to solve the problem. That didn't work, however.
My packages :
jupyter                   1.0.0                    py37_7    defaults
jupyter_client            5.2.4                    py37_0    defaults
jupyter_console           6.0.0                    py37_0    defaults
jupyter_core              4.4.0                    py37_0    defaults
jupyterlab                0.35.5           py37hf63ae98_0    defaults
jupyterlab_launcher       0.13.1                   py37_0    defaults
jupyterlab_server         0.2.0                    py37_0    defaults
tornado                   6.0.2            py37h1de35cc_0    defaults
pyzmq                     17.1.2           py37h1de35cc_0    defaults

Besides, the version of Jupyter Notebook is 5.7.8.

Problem resolved now. My oversight. The way to resolve the problem, for me, is to downgrade tornado to 5.1.1.


Unclear error on wrong config file

On this config:
containers:
  ubuntu:
    setup:
    !Ubuntu trusty

Note the missing - on !Ubuntu. The error will be:
thread '<main>' panicked at 'not yet implemented', target/.cargo/registry/src/github.com-0a35038f75765ae4/quire-0.1.4/src/decode.rs:263

@lilianmoraru which version of vagga do you use? I have the following:
Config /home/pc/tmp/vagga.yaml cannot be read: Error parsing config /home/pc/tmp/vagga.yaml: /home/pc/tmp/vagga.yaml:4:5: Parse Error: Expected mapping key or unindent, got Tag

Maybe this was fixed by recent upgrade of rust-quire in vagga 0.4.1-95-

Sorry, my mistake. I removed 2 spaces before posting the issue.
The actual config looks like this:
containers:
  ubuntu:
    setup:
      !Ubuntu trusty

And it throws the same panic on v0.4.1 and v0.4.1-95-gdcfebd4

Fixed. Thanks for reporting.


feat: Add service discovery to migration-graph

Remove and replace "file-dependency-graph" with "PackageDependencyGraph" object-oriented code.
Move the "resolveOptions" for each type of package we will crawl into the the respected PackageDependencyGraph implementation.
Currently the PackageDependencyGraph code is in packages/migration-graph. It should be broken apart into migration-graph-ember and migration-graph-shared respectively.
There is a problem with this because our test files are all in packages/migration-graph right now.

TODO

[x] EmberAppPackageDependencyGraph Add test TODO for a nested service relationship. // app uses a service `date` from `some-addon`
 // └── some-addon exposes `date` and consumes a service `time` from `another-addon`
 //     └── another-addon exposes a service `time`.

One thing I'd like to follow up with is a test-support package that I can store all the fixtures in. This way I can share test fixtures for a library and an ember between migration and CLI.

This PR should rebase off of #426 once it lands.


replace 'Brace Expansion' on 'Standard syntax'

'Brace Expansion' normally works in bash.
https://www.gnu.org/software/bash/manual/bash.html
On some system default shell interpreter could be another from Bash, for example
(flask) vagrant@vagrant:~/flask$ cat /etc/lsb-release
...
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
vagrant@vagrant:~/flask$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Feb 19  2014 /bin/sh -> dash
So, it's better to chose some standard syntax.
http://tldp.org/LDP/abs/html/loops1.html

Makes sense, sorry for letting this hang around for so long. Merged, thanks!


Fix #609 - Hoodie default page not showing

closes #609

actions.length = 0 is a way of resetting the stubbed behaviour, as spy.reset() only resets the logged calls. That way if we forget to change the behaviour between tests this should catch it and prevent a false positive.
Currently this fails, as public plugin currently determines the public webroot from the wrong config object path. Correcting this causes other tests to fail; I'll fix these tests as my next course of action.

but you don’t use actions.length anywhere else in the code? Am I missing something?

It's shorthand for emptying an array. I can change this to be a bit more explicit if required?
Deltas Software Ltd is a company registered in England & Wales with registration number 08878020 at registered office Ordman House, 31 Arden Close, Bradley Stoke, Bristol, BS32 8AX. All rights reserved. No kittens were harmed in the sending of this email.

Rebased and pushed, ready for review, also pending yay/nay on the actions.length = 0 array-emptying shorthand.

Actioned review changes, and rebased ready for review.

beautiful work, thanks a ton

ooops.. should we check if the server.paths key is present? otherwise I'm forced to define it like
paths:{}

I'm using ember-hoodie...

it gets defaulted here: https://github.com/hoodiehq/hoodie/blob/047a8ff004538e68ccf2a89df33108fec505c3f3/server/index.js#L35-L40

yes, but only if I dont define db.url.
We're setting db.url here, and our app started to break on this line just after I made the update. I had to define paths:{}...
Maybe that line could read like this?
var publicFolder = (options.config.paths && options.config.paths.public) || 'public'

FWIW, I'd be tempted to resolve this by moving this clause alongside this one, removing the 'data' key and letting this handle the data key.

@brunopedroso ooops that is definitely wrong
The way it’s currently handled is not very elegant. I’ve a lot of work stuff to catch up with and won’t be able to look into this, but if one of you could send a PR that will fix @brunopedroso’s problem, I’m happy to review and merge


[BUG] Error on first dev run

┏━━ Error ━━━━━━━━━━━━━━━━━━
┃ The option --overwrite-json is not supported.
┗━━━━━━━━━━━━━━━━━━━━━━━

My config:
node --version
v16.14.0
yarn --version
1.22.19
shopify version
3.43.0

Hey thank for reporting this I will look into it

Issue has been fixed make sure you use the latest Shopify CLI 3 thanks again

@blanklob I got the same error and I have the last version of shopify CLI (3.43.0)


Why MPS only support 6 GPU

Hi,
In the Salus paper, regarding inference, it says:
Salus needs only 1 GPU, achieving 42 utilization improvement,
while the average latency overhead is less than 5ms.
For comparison, MPS needs 6 GPUs.

Could you explain why MPS needs 6 GPUS, what is the limitation on GPU that stops from running more instances of inference tasks?

For MPS, you need to ensure that the summation for all persistent (model and framework-internal) and all ephemeral memory doesn't exceed the GPU memory capacity.
While for Salus, the safety condition is relaxed to the summation for all persistent and the max of ephemeral memory doesn't exceed the capacity.
It's explained in detail in section 3.3.2 in the paper.


Add args to keybinding

Fix for issue #31372

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

Thanks @jrieken!

Okay, I'm able to run and debug, I'm wondering how to test this feature. Should I write a new test for this or add to an existing suite.

I think there is no existing suite to piggy back on so for me it's OK if you manually test this. The easiest is to write an extension that configures an argument that it then passed to a command (a command it defines)

@nehayward Are you planning to finish this?

@jrieken yes I'm just blocked on the testing part. Sorry about the delay.

Do you need more info apart from this: https://github.com/Microsoft/vscode/pull/59911#issuecomment-430158182

@jrieken Is there a good source to get started on making an extension. I can build and run vscode, just having trouble with making an extension. I'd also like to try and write a new unit test and I'm wondering where that should go.

https://code.visualstudio.com/docs/extensions/example-hello-world

Thanks, Okay I got a hello world. I'm trying to grab the argument from the defined keyboard shortcut.
   "contributes": {
        "commands": [
            {
                "command": "extension.sayHello",
                "title": "Hello World"
            }
        ],
        "keybindings":[
            {
                "command": "extension.sayHello",
                "key": "shift+cmd+i",
                "args": "name"
            }
        ]
    },

I'm not sure what function to call here to display the args or at least identify the bug. 🐛
 let disposable = vscode.commands.registerCommand('extension.sayHello', () => {
        // The code you place here will be executed every time your command is executed

        // Display a message box to the user
        vscode.window.showInformationMessage('Hello World!');
    });

Do I need to update this function?

Have something like this: registerCommand('extension.sayHello', (myArgs) => {

Okay, yeah I'm blocked, it's still undefined. I'm trying to debug but I'm not seeing anything logging when I run vscode then run the extension and try to attach to host.


Error!

I am getting this error in terminal:
"HTTPS ERROR CODE: Error"
What should I do in this case?

Added more self explaining warnings. Added check for filetypes since JPEG is only one that uploadable.


Mixin with field triggers assert in MoveFieldInitializers

Compiling this code:
mixin M {
  int x = (() => 7)();
}

class C with M {}

main() {
  print(C().x);
}

with
DART_VM_FLAGS=--enable-asserts ./pkg/vm/tool/precompiler2 mixin_with_field_test.dart m.snapshot

triggers this assert:
'package:vm/transformations/type_flow/transformer.dart': Failed assertion: line 163 pos 12: 'constructors.isNotEmpty': is not true.
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:46:39)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:36:5)
#2      MoveFieldInitializers.transformClass (package:vm/transformations/type_flow/transformer.dart:163:12)
#3      MoveFieldInitializers.transformComponent (package:vm/transformations/type_flow/transformer.dart:137:9)
#4      transformComponent (package:vm/transformations/type_flow/transformer.dart:63:27)
#5      runGlobalTransformations (package:vm/kernel_front_end.dart:454:20)
#6      compileToKernel (package:vm/kernel_front_end.dart:376:11)

Removing the assert seems harmless. It's simply not the case for mixins.

I can confirm that it is safe to remove this assertion. We can also change it to
assert(constructors.isNotEmpty || cls.isMixinDeclaration);

in order to make sure we know what kind of class doesn't have constructors, as this transformation erases field initializers without a trace for such classes.


Since January update, copy and paste folder between 2 vscode instances doesn't work

Version: 1.31.0 (user setup)
Commit: 7c66f58312b48ed8ca4e387ebd9ffe9605332caa
Date: 2019-02-05T22:35:56.624Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134
Steps to Reproduce:

Open 2 VScode on 2 differents projects
Copy folder from first project
Right-Click to Paste in 2nd project: Paste option is greyed

Does this issue occur when all extensions are disabled?: Yes

Not sure that this is a duplicate... This was a feature, that got introduced in 1.21 (Feb 2018 update) and I used it quite a lot...
https://code.visualstudio.com/updates/v1_21#_copypaste-files-across-windows
When I select a single or multiple files in one instance, and CTRL-C (or copy via menu), I can't paste them in another instance.
Dragging / Dropping works, but differently. With copy-paste, when the file already existed, it would create it with a different name when pasting. With drag / drop, it would ask if it should replace.

/duplicate of #68031


Implement NBT filtering

Review is needed

Many forge mods have such feature, i think nany players will use it ;)

@keke142 If you want we can also add the messages to the configuration

I'm currently doing that, I will commit it right away :)


Update the default CRI server defaults

Currently, the default CRI server is dockershim. This is a deprecated server with cri-tools. Also, does it make sense to even have a default as the user should explicitly define it.
This PR adds containerd and cri-o to the default list and it checks each in order till one works. It also adds some looging that the defaults are being used. This at least provdes better usability to the user if they don't configure the server.
Closes #597

Made a mistake with my branches. Closing in favour of #599


Add windows aliases

This adds non-exe aliases to user-facing executables:
         :tools/ar  -> :tools/ar.exe
     :tools/ld.lld  -> :tools/ld.lld.exe
   :tools/lld-link  -> :tools/lld-link.exe
:tools/zig-wrapper  -> :tools/zig-wrapper.exe

... so they can be used in either OSs without caring of the file extension.

Should we just always use the non suffixed versions instead?

Are you referring to c++.exe?
The files will need to be there anyway, since AFAIK Windows is not good with executing things without a suffix.
If you are referring to other files but c++.exe, please clarify.


Caroussel/Footer zIndex overlap issue

Description

On /about the caroussel zindex is higher than footer...as such it covers the footer element on scroll overlap
see attached screenshot

Screenshots

Additional information
No response

fixed in #148


🐛 Fix CERTIFICATE_VERIFY_FAILED

Really appreciate your work on this but I would appreciate some clarification:
Am I reading this correctly: this disables certificate checks on all API calls? Is that not a glaring security problem?

Hi @tribut thanks.
If you have a better solution, or a better idea, please let me know.

I see. I'll look into it and see what I can do.


onboarding ocm-agent into codecov.io

What type of PR is this?
onboarding com-agent into codecov.io

I was unable to get make coverage working as-is, this seems to be due to the codecov.sh script using a go-test target which the Makefile currently does not have.
What I'd recommend is the following changes:

remove the existing coverage target (https://github.com/openshift/ocm-agent/blob/4b83fa8ce0dd03e783cd3975080f97b287a9b11e/Makefile#L101) and the script that it calls (hack/test.sh)
rename the existing test target (https://github.com/openshift/ocm-agent/blob/4b83fa8ce0dd03e783cd3975080f97b287a9b11e/Makefile#L45) to go-test
introduce a new test target that just has go-test as a dependency (this aligns with boilerplate):

.PHONY: test
test: go-test

After doing that, make coverage should succeed and result in a coverage.out.

Thank you @mrbarge  for the review. I have updated the Makefile and make coverage is functional now.

Perfect, thanks!
/lgtm

/approve


Create a file of SQL Commands

Can I work in it after completing my issue?

@abhisheks008 complete that issue first

I have fixed the issue #85 by successfully merging the PR #89. Can I now work on this issue?
@Niketkumardheeryan Please assign this to me.
Thank you!

Do I have to create a SQL file or, I can explain the commands using a markdown file. Which one will be preferable? @Niketkumardheeryan

Can you please share the format, it will be easier for me to work on


chtimes The parameter is incorrect.

I use Hugo (gohugo.io) in the latest version.
I should report the error here.
E:\hugo>hugo
INFO 2019/07/28 17:55:17 Using config file:
Building sites … INFO 2019/07/28 17:55:17 removing all files from destination that don't exist in static dirs
INFO 2019/07/28 17:55:17 syncing static files to E:\hugo\public
Total in 2 ms
Error: Error copying static files: chtimes E:\hugo\public: The parameter is incorrect.

I'm wondering why there is an  invalid colon / double dot  E:\hugo\public:

<syscall> <path>: <error message>.
Also, this is the Go issue tracker, and you seem to be having a problem with Hugo, not Go.


automatically enable 404.php page when accessing from edge browser on mobile

i checked on iphone 13 pro ios version 15.4 using edge browser version 110.0.1587.57
iphone x 15.4 and edge ver 105.0.1343.53 has error too
chrome desktop & laptop is fine, but on mobile ios sometime has error ver 101.0.4951.44
safari is fine
edge on desktop and laptop is fine
if the 404 page is not installed, the site will automatically close, example: https://theajack.github.io/disable-devtool/ open on edge mobile ios
my setting:
<script disable-devtool-auto url='https://mysite.com/404.php' src='https://cdn.jsdelivr.net/npm/disable-devtool'></script>

I also reproduced this problem, I will check the reason later
@superantim

fixed in v0.3.4


Auth support for emulators

This allows constructing a shared_key_credential that can authenticate
with an emulator (e.g. Azurite)

Resolves #66

Hi @joe-maley , the canonicalized resource is formed with account name + uri path. In the case of Azurite, uri includes storage account, this is why storage account appears twice in canonicalized resource.
Cpplite failed to authenticate on Azurite because it put uri path together with domain name, so the path cannot be extracted when constructing string_to_sign. This is a bug. Your PR is fine because it actually works, but it didn't fix this bug, it circumvents this bug. I cannot merge your PR because we don't want to cover up any bugs, we should actually fix them.
This issue should've been fixed in the latest 0.3.0 release, please give it a try. Thanks for your contribution.

@JinmingHu-MSFT Totally fine, thanks for the explanation. We're using this patch locally as a work-around for Azurite but will update to 0.3.0 when it is released. Thanks!


Request:  Allow opening new file and renaming via right click on the file's tab

Request: Allow opening new file and renaming via right click on a file's tab.

Previously requested, e.g. #100591, #21919

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

We try to keep VS Code lean and we think the functionality you're asking for is great for a VS Code extension. Maybe you can already find one that suits you in the VS Code Marketplace. Just in case, in a few simple steps you can get started writing your own extension. See also our issue reporting guidelines.
Happy Coding!


NOT IN comparison

What do you think about adding a NOT IN (opposite to IN) comparison?
Amazing repo by the way ❤

@sambedingfield Thanks, I'm glad you like it!
Also, I am surprised we don't have the NOT IN, I will put it on the list for a future update.


POL-221 New Resource Table 2

Description
POL-221 New Resource Table 2
Contribution Check List

[ ] All tests pass.
[ ] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] New functionality has been documented in CHANGELOG.MD

          1 Warning

:warning:
Should this include readme changes

  Generated by :no_entry_sign: Danger

@SheikSena @KVivek03  Can one of you fix the conflicts in this PR.  It was changed from #518
Thank you.

@SheikSena @KVivek03 Can one of you fix the conflicts in this PR. It was changed from #518
Thank you.
Done!


Helm charts, RabbitMq

We will use the rabbitmq helm charts to deploy a rabbitmq cluster which provide a message broker for critik8s pods (mainly sending events from the backend to the frontend).

RabbitMq operator is designed for the lifecycle (creation, upgrade, graceful shutdown) of a RabbitMQ cluster.  https://github.com/rabbitmq/cluster-operator/tree/main
RabbitMq CLuster is the message broker https://github.com/rabbitmq/rabbitmq-server.

The charts are created using helmify  from the operator release manifest.
See  rabbitmq docs

can you please explain a bit in the description the meaning of this PR?
I see that you are importing a RabbitMq helm chart, won't be better use a submodule here pointing to that (assuming there is a github repo for that) ?

can you please explain a bit in the description the meaning of this PR? I see that you are importing a RabbitMq helm chart, won't be better use a submodule here pointing to that (assuming there is a github repo for that) ?

Adding more details in the description.

please add a rule to exclude helm yamls from lint like here: https://github.com/giubacc/chatterbox/blob/main/.pre-commit-config.yaml


Tests for Residue (R←X|Y)

Residue is a dyadic scalar function which gives the remainder of division between two real numbers. It takes the divisor as the left argument, and the dividend as the right argument.
Also valid for complex numbers

Also closes #27


Ability to navigate to a certain relative byte index

Move over a certain number of bytes over, rather than seek to offset
ex:
type 172 and then hit go and it will move the cursor that many bytes over (positive for seeking forward and negative for seeking backward)

We need to distinguish between absolute offsets and relative ones (go this many bytes forward or backward).  If the desire is to move 172 bytes forward, use +172 since 172 would indicate an absolute offset.  Of course -172 would move 172 bytes backward.  The current byte offset probably ought to have some visual indicator in the physical and logical viewports.

@scholarsmate @nlewis05 - That branch should be ready for PR, how do we want to handle reviews till v1.3.1 is released?

Probably best to leave it as a PR and wait, I don't think 1.3.1 review will take much longer and last time when we tried to implement an intermediary "development" branch to merge future changes into before going into main, people either didn't use it and we just had to merge each individual PR anyways, but I know that "main" being locked during a release is frustrating and we should look into how other apache projects handle this issue.


localePath('/career/my-slug') not returning default locales translation

Version
nuxt-i18n: 6.20.0
nuxt: ^2.12.2
Nuxt-i18n configuration
If relevant, please include the configuration you are using for this module.
For example:

export default {
  locales: [
    {
      code: 'de',
      iso: 'de-DE', // https://www.science.co.il/language/Locale-codes.php
      name: 'Deutsch',
      file: 'de-DE.json',
    }, {
      code: 'en',
      iso: 'en-US',
      name: 'English',
      file: 'en-US.json',
    },
  ],

  defaultLocale: 'de',

  // no `~/` necessary – nuxt automatically looks inside folder provided by `srcDir` in `nuxt.config.js`
  langDir: 'locales/',

  // needs to be `true` for language files to work
  lazy: true,

  seo: true,

  vueI18n: {
    // some test messages for nuxt's automatic route generation setup
    // must be in this file and not in locale files
    messages: {
      en: {
        welcome: 'Welcome',
      },
      de: {
        welcome: 'Willkommen',
      },
    },
    fallbackLocale: 'de',
  },
};

Reproduction Link
https://codesandbox.io/s/nuxt-i18n-localepath-test-3d651?file=/pages/career/index.vue
Steps to reproduce
go to /career and read the template and script snippets
What is Expected?
localePath('/career/my-slug') to return the translated url for my default locale DE: /karriere/my-slug
What is actually happening?
It's returning /career/my-slug, although the default locale is DE

detectBrowserLanguage option is enabled by default so if your browser is not set to prefer the de locale, you might get redirected to English instead.
It should work with detectBrowserLanguage set to false. Note that you might have to remove the i18n_redirected because it seems like it will be used even if detectBrowserLanguage is false (which seems to be a bug).

Hm. But neither do I get redirected to /en when I open the page, nor is my browser language english. My browser language is German, so if at all "detect browser language" should reinforce localePath('/career') to be /karriere, shouldn't it?
plus: lets say you're right and i18n somewhat assumes my locale is en, why does localePath('career') return the desired /karriere.
In any way: the way I understand the docs localePath('/career') and localePath('career') should return the same value.
But can you confirm this behavior, when you open the sandbox?

That's not what you've asked about but I've noticed that your example using an object parameter to localePath uses the wrong route. Should be career-slug rather than career. You can check the available routes with Vue Dev Tools:

As for your main issue, yes it's a bug. See #641.

According to the point "2" in my previous comment, this should be fixed.


Fix entrypoint for Vue app container

When deploying the javascript sample with the Vue app, the container failed to start with:
Unknown command: "dev"
Did you mean this?
npm run dev # run the "dev" package script

it appears that in the container the implied script name (unlike start) is not known.

This is invalid after #125 is approved/merged.


GHSA-8cp3-66vr-3r4c isn't considered a vulnerability by Synk

A recent commit added https://github.com/advisories/GHSA-8cp3-66vr-3r4c
However, it's not considered a vulnerability by Synk https://security.snyk.io/vuln/SNYK-JS-FORMIDABLE-2838956
I can see Github's advisory-database is using https://nvd.nist.gov/vuln/detail/CVE-2022-29622
Any suggestions here?

NVD disputed it, so the issue is gone now.


board.setBoardProperty not passing along value.

It looks like the setBoardProperty function does not pass along a value for body on the request options.
Jira returns a 400 error with the message "The property value can not be empty.".
Possible fix:
  this.setBoardProperty = function (opts, callback) {
    var options = {
      uri: this.jiraClient.buildAgileURL('/board/' + opts.boardId + '/properties/' + opts.propertyKey),
      method: 'PUT',
      json: true,
      followAllRedirects: true,
      body: opts.value
    };

    return this.jiraClient.makeRequest(options, callback);
  }

Such that the options would look like this:
{
  boardId: 1,
  propertyKey: '<string>',
  value: '<string>'
}

But this is assuming that the API behaves similar to the other properties API (project/issue/etc). For some reason, the documentation for the endpoint does not mention a payload.

It is rather strange that in the documentation there is no mention of the body parameter 🤔. And you can look for an issue about this problem? For example, here or elsewhere. I want to understand this problem in more detail. Maybe this is also found in other endpoints?

Fixed in version 2.16.0. Thanks for your contribution!


SyntaxError: Unexpected token '.' in the basicfiori app

Hi there,
I've tried to follow the instructions to deploy the basicfioriapp as mentioned in the readme and step 4 of the tutorial, all works fine with previous steps but step 4 of the tutorial, the pod is created but fails to start with the error as follows:
kubectl get pods -n sapfiori
NAME                        READY   STATUS             RESTARTS         AGE
fioriapp-8597569c67-cbxvb   0/1     CrashLoopBackOff   15 (2m38s ago)   56m

kubectl logs fioriapp-8597569c67-cbxvb -n sapfiori
/app/node_modules/@sap/audit-logging/node_modules/@sap/xssec/lib/requests.js:83
        const formData = options.configType?.toLowerCase() === IAS ? toFormArray(options.form) : options.form;
                                            ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/app/node_modules/@sap/audit-logging/node_modules/@sap/xssec/lib/ctx/xsuaa.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

I did not change the code on the basicfiori app, just the command to build the docker image. The images was pushed to my repository and got pulled in the deployment just fine
Any help would be appreciated.

Hi,
did you solve the issue?
I have the same problem.
Br
Wolfgang

Thanks for the answer,
I did stop trying, I was investigating the use of the whole platform and different ways of programing using Kyma to make a proof of concept presentation in the company. I used different examples.
I will try to make it work for futher reference, but thanks anyway.
Gustavo B.


Missing Flag for Azerbaijan (country code: AZ)

Describe the bug
When the following code is used:
<Flag country="AZ" />

The rendered output is:

The issue is probably due to the fact that 'AZ' is missing in the enumeration of country codes here: https://github.com/stephenway/react-flagkit/blob/master/src/countryCodes.ts#L15.
Additionally, I verified that a flag for Azerbaijan is available over the jsDeliver CDN<EMAIL_ADDRESS>Desktop:

OS: Mac OS Big Sur
Browser Chrome
Version 87.0.4280.141 (Official Build) (x86_64)

@stephenway any chance to have this solved?

This issue has been resolved. Thanks for the report!

Hello @stephenway, is it possible to tag the version ? it's not available yet on npm.