Install instructions are outdated

Hello, I tried to install kube-iptables-tailer followiong the instructions in README, but ran into the following problems:

The command git clone github.com/box/kube-iptables-tailer fails. The correct command is git clone https://github.com/box/kube-iptables-tailer.git
The command cd $GOPATH/src/github.com/box/kube-iptables-tailer fails with "No such file or directory". The correct command is cd kube-iptables-tailer
I do not know what "CHAIN_NAME" to use in the command iptables -A CHAIN_NAME -j LOG --log-prefix "EXAMPLE_LOG_PREFIX: "

CHAIN_NAMEis just the selected chain where you want to append the rule-specification in that iptables command. You can find more details about chains in this page.
Created https://github.com/box/kube-iptables-tailer/pull/21 to address the first two issues above. Will ask one of my teammates to review and merge it on Monday.


Improve Documentation

What does this PR do?
Improves onnxruntime inference documentation and fixes links
Fixes # (issue)
Before submitting

[x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[ ] Did you make sure to update the documentation with your changes?
[ ] Did you write any new necessary tests?

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


How to use the drop down from the navigation bar's top right side

So the bar button item having ". . ." is where I want the dropdown to happen, instead of the title.
Any ideas as to how to accomplish this?

@ayushmandey97 currently the feature you're requesting is not supported. But I do want it because the rightButtonBarItem is also a part of navigation view. Thanks.
(just out of curious, why do you close this interesting feature request?)

Actually I was able to find a way to do that, so I closed it. My bad.
So this is how I did it:

Drag a UIView to the right side of the navigation bar. And create an outlet to it named "navOptionView".

Use this code snippet to make it work like I wanted it to.

       //Setting the toolbar for dropdown menu
        let menuView = BTNavigationDropdownMenu(title: ". . .",  items: items as [AnyObject])
        self.navOptionView.customView = menuView
        menuView.didSelectItemAtIndexHandler = {[weak self] (indexPath: Int) -> () in
            print("Did select item at index: \(indexPath)")
        }

Nice workaround. Thanks for sharing 👍

No problem. Just one more thing, incase someone implements this till the feature is ready.
Inside the BTNavigationDropdownMenu.swift file, comment out the following line.
func setMenuTitle(_ title: String) {
        //self.menuTitle.text = title
}

This is so that the ". . ." button doesn't change every time you select an option.

@ayushmandey97 Another option is to just set menuView.shouldChangeTitleText = false

Can I use Image ( three dots ) for right bar button and make dropdown ?


[AMQ-9554] Browsing a DLQ in transacted mode should allow redelivered messages

Reproduce project: https://github.com/hyteio/hyte-activemq-redelivery-inconsistent
Summary:
Message with 7 JMSXRedeliveryCount (on the broker)

Browse using AUTO_ACKNOWELEDGE .. no problem
Browse using SESSION_TRANSACTED .. message gets poisoned ack b/c redelivery policy is being applied
The poison ack creates a duplicate message on the broker b/c the broker sees this is a browser, and not a consumer. So message is copied to .dlq.dlq and the original message remains in the .dlq

Proposed default behavior:
Queue Browser should be consistent regardless of ack mode when browsing messages and not send a poison ack based on redelivery policy.
Planned fix path forward:

Apply a new redeliveryPolicy option: queueBrowserIgnored = false (default behavior today)
In 7.x set queueBrowserIgnored = true (more consistent behavior for out-of-the-box JMS browse tools)

so re-reading what you wrote, you said it applies to a DLQ which would be an edge case but your change seems like it changes the behavior for every consumer and every queue and not just DLQs which we would not want.
If the goal is to simply be able to browse the DLQ and preventing not being able to read messages that were previously exceeding the redelivery policy then for your DLQ consumer can you simply disable the redelivery policy? Seems like a simple solution.

@cshannon the updated test has the full repro scenario.
The issue comes down to:

Should a browser send a poison ack if the message redeliveryCounter is on the edge of max redeliveries?

Currently, ActiveMQMessageConsumer does send a poison ack. The problem with that is it creates two messages, as the original stays on the source queue (dlq or otherwise) AND a message to a DLQ (or .DLQ.DLQ when browsing a .DLQ).
My argument is that browser should not send a poison ack if the max redelivery count is reached.

If you don't want to create the poison ack then couldn't you simply disable the redelivery policy when browsing the DLQ since it's an edge case? This seems like a client side config issue because you are setting that policy....so just don't set it when browsing the DLQ.
Consumers (including browsers) are designed to process the messages and check things like the redelivery counter or even expiration.  A browser should not increment the redelivery counter, but I don't see how checking that counter and sending a poison ack is any different than checking expiration and expiring a message which it will do.

Planned fix path forward:

Apply a new redeliveryPolicy option: queueBrowserIgnored = false (default behavior today)
In 7.x set queueBrowserIgnored = true (more consistent behavior for out-of-the-box JMS browse tools)

Is the actual problem that browsing is incrementing the counter when dispatched to a browser and shouldn't be?

Yes! With the caveat that it is only when browsing in a transacted session. In AUTO_ACK mode this behavior does not occur.


Default Snippet doesn't respect spaces typed

VSCode Version: Version 1.20.0-insider
OS Version: 10.13.3

Steps to Reproduce:

Type in a JSON file with defaultSnippets
Type ':'
Press space
Select default snippet
Expect space before snippet to still be there - actual result is space is deleted

I would really like for the default snippet to adhere to the formatter if possible. Or even put the space there for me so I don't have to think about it. But at the least I think it should keep the space if it's typed

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

I'm not able to reproduce with the following sample:
bar.json
{
	"$schema": "./bar.schema.json",
	"foo":
}

bar.schema.json
{
	"type": "object",
	"properties": {
		"foo": {
			"required": [
				"id"
			],
			"type": "object",
			"properties": {
				"id": {
					"type": "string"
				}
			},
			"defaultSnippets" : [{
				"body": "goo"
			}]
		}
	}
}

Can you add a schema and sample that shows this?

bar.schema.json
{
	"type": "object",
	"properties": {
		"foo": {
			"required": [
				"id"
			],
			"type": "object",
			"properties": {
				"id": {
					"type": "string"
				}
			},
			"defaultSnippets" : [{
				"body": {
                    "id": "$1"
                }
			}]
		}
	}
}

bar.json
{
	"$schema": "./bar.schema.json",
	"foo"
}

Steps:

Type all of bar.json
Type a ':' just after "foo"
Hit space
Hit enter to select default snippet
expect space to still be there

NOTE: bug is not there if i enter two spaces before hitting enter
I would also expect a space to be inserted in this situation also:
Steps:

Type all of bar.json
Type a ':' just after "foo"
Hit enter to select default snippet
expect space be there

This looks like a bug in the completion processor when filtering the proposals after typing space:
   "items": [
        {
            "kind": 9,
            "label": "{\"id\":\"\"}",
            "insertText": "{\n\t\"id\": \"$1\"\n}",
            "insertTextFormat": 2,
            "filterText": "{\n\t\"id\": \"$1\"\n}",
            "textEdit": {
                "range": {
                    "start": {
                        "line": 2,
                        "character": 7
                    },
                    "end": {
                        "line": 2,
                        "character": 7
                    }
                },
                "newText": "{\n\t\"id\": \"$1\"\n}"
            }
        }
    ],
    "isIncomplete": false

After typing the space, the proposal still is considered valid, but not after two spaces. Not sure what the intended bahaviour is. If the proposals should stay valid after spaces, the text edit range should be updated to the new offset.
I admit that the new lines in the insertText are confusing. I fixed the JSON language service to not contain new lines in the insert text. With that change, the proposals are now filtered after the first space.
However, moving to @jrieken to clarify the expected behaviour.

That's not how suggestions work. You trigger suggestions, you type more characters to narrow down the result set, you select a suggestion which is then inserted from the trigger position. I agree this is a weird case because you type a space but in principal it's just suggestions.

@jrieken But I there's something weird about the filtering behaviour. It's not clear at all that after typing a space the proposal is still considered valid. It seems that it only happens when the insertText contains newline characters.

Well, filterText contains a space


Add tests for CompareFiles for different file lengths

The CompareFiles command was not correctly calculating the number of lines compared or the percent when the files were different length.  It was stopping after the end of one file was reached.

I added the tests.  Close the issue.


Map on patform web

Hello, thanks for this great Library. The problem I'm having is that when I try to load the map in the web version of my app it says: "React Native WebView does not support this platform."
I have tried some solutions but still no success.

Hello,
It's difficult to answer because I don't know your project. But I found this: https://stackoverflow.com/questions/60592332/reactnative-webview-not-rendering-on-web-but-works-fine-on-android
That may help. I'm not sure it's a problem with the lib.


AppImage for ARM please compile 32 and 64

Hi could you please compile ARM AppImages.
Many people have e.g. ChromeBooks with ARM cpu.
thx

We will have a look on this and check the compatibility, thank you for the suggestion 👍


Layout not displaying properly inside MD-Dialog

Bug, feature request, or proposal:
Bug
Using angular/flex-layout I am trying to create a layout that is 400px wide for use inside an .
<form role="form" (ngSubmit)="authorize(loginForm)" novalidate  #loginForm="ngForm">

Enter Login Credentials

{{authorisationErrorMessage}}

                <md-input-container class="fullwidth">
                    <input md-input
                        name="licenceNumber"
                        placeholder="Licence Number" >
                </md-input-container>

                <md-input-container class="fullwidth">
                    <input md-input
                        name="email"
                        placeholder="Email">
                </md-input-container>

                <md-input-container class="fullwidth">
                    <input md-input
                        name="plainPassword"
                        placeholder="Password"
                        type="password">
                </md-input-container>

                <button md-raised-button color="primary" type="submit">Login</button>

</form>

In this case I am expecting a form that is 400px wide yet when I measure it is only 320px. It appears as if the dimensions for the layout are being ignored.
This has been raised with the Flex-Layout team and they have indicated that this is a material problem. For the details see:
https://github.com/angular/flex-layout/issues/68
What are the steps to reproduce?
See Plunkr:
https://plnkr.co/edit/ea51R3?p=preview
What is the use-case or motivation for changing an existing behavior?
Which versions of Angular, Material, OS, browsers are affected?
Chrome on OSX
Is there anything else we should know?

It's because the minimum width for the wrappers is provided via flex-basis (e.g. flex: 1 1 400px), however this doesn't work inside the dialog, because we're using flexbox to center it. It can be reproduced with the following, which more or less represents what our DOM looks like:

This can be worked around by giving your elements a minimum width (in this case it's 400px). It might be worth adding the min-width, in addition to the flex-basis in the layouts module. What do you think @thomasburleson?

So if you add CSS to the Plunkr Demo
form > div {
  min-width:400px;
}

it definitely seems to work better.
@crisbeto  - I will check... mostly I worry about regressions. Thx.

I'll close this since https://github.com/angular/flex-layout/commit/3fe5ea3b16d1add8f7cf60636085db3237b966d1 should've sorted it out.


Improve README.md headers formatting

I couldn't resist fixing that ;).
Now README.md uses Markdown's headers correctly.

Thanks!


Exception handling for generate features

Handles exception for the liberty:generate-features goal.
When the goal runs standalone and an error occurs, a MojoExecutionException is thrown and users will see a build failure.
When running the goal as part of dev mode:
On startup if generate-features throws an error dev mode will exit. If there is a feature conflict (most likely reason generate-features will fail) we fail here first to show users a more relevant error message rather than continuing on to install-feature and failing there. Error message indicates that users can disable feature generation with -DgenerateFeatures=false
[ERROR] To disable the automatic generation of features, start dev mode with -DgenerateFeatures=false.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.870 s
[INFO] Finished at: 2021-12-09T22:12:26-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.4.1-SNAPSHOT:dev (default-cli) on project demo-devmode-maven: A working set of features could not be generated due to conflicts between configured features and the application's API usage: [cdi-2.0, batch-1.0, webProfile-8.0, jpa-2.2, jaxrs-2.1]. Review and update your server configuration and application to ensure they are not using conflicting features and APIs from different levels of MicroProfile, Java EE, or Jakarta EE. Refer to the following set of suggested features for guidance: [cdi-2.0, mpHealth-2.2, batch-1.0, jpa-2.2, jaxrs-2.1] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Once in the inner dev mode loop errors from generate-features will not fail dev mode, users will see the following error in their console:
[ERROR] A working set of features could not be generated due to conflicts between configured features and
the application's API usage: [cdi-2.0, batch-1.0, webProfile-8.0, jpa-2.2, jaxrs-2.1]. Review and update your
server configuration and application to ensure they are not using conflicting features and APIs from different
levels of MicroProfile, Java EE, or Jakarta EE. Refer to the following set of suggested features for guidance:
[cdi-2.0, mpHealth-2.2, batch-1.0, jpa-2.2, jaxrs-2.1].
To disable the automatic generation of features, type 'g' and press Enter.

Updated the error message shown when generate-features fails on dev mode startup to:
/config/server.xml1 for features and includes.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.513 s
[INFO] Finished at: 2021-12-11T15:38:21-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.openliberty.tools:liberty-maven-plugin:3.4.1-SNAPSHOT:dev (default-cli) on
project demo-devmode-maven: A working set of features could not be generated due to conflicts between
configured features and the application's API usage: [cdi-2.0, batch-1.0, webProfile-8.0, jpa-2.2, jaxrs-2.1].
Review and update your server configuration and application to ensure they are not using conflicting features
and APIs from different levels of MicroProfile, Java EE, or Jakarta EE. Refer to the following set of suggested
features for guidance: [cdi-2.0, mpHealth-2.2, batch-1.0, jpa-2.2, jaxrs-2.1]. To disable the automatic
generation of features, start dev mode with -DgenerateFeatures=false. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Also included an update to the comment created in the generated-features.xml file so that it now appears as:
<?xml version="1.0" encoding="UTF-8"?>
<server>
    <!--This file was generated by the Liberty Maven Plugin and will be overwritten on subsequent runs of the liberty:generate-features goal.
 It is recommended that you do not edit this file and that you commit this file to your version control.-->
    <featureManager>
        <!--The following features were generated based on API usage detected in your application-->
        <feature>cdi-2.0</feature>
        <feature>mpHealth-2.2</feature>
        <feature>batch-1.0</feature>
        <feature>jpa-2.2</feature>
        <feature>jaxrs-2.1</feature>
    </featureManager>
</server>


ISPN-16346 Allow security manager installation since JDK 18 including

https://issues.redhat.com/browse/ISPN-16346

Infinispan 15.0 has completely removed support for the SecurityManager, making this pr unnecessary


Query: incorrect sql generated for query with owned entities, left join and predicate using inner qsre

query:
from l1 in
    (from l1 in l1s
     join l2 in l2s on l1.Id equals l2.Level1_Optional_Id into grouping
     from l2 in grouping.DefaultIfEmpty()
     where l2.Name != "Foo"
     select l1).Distinct()
select l1.Id

query model after nav rewrite:
from Level1 l1 in
    (from Level1 l1 in DbSet<Level1>
    join Level2 l2 in
        from Level1 t in DbSet<Level1>
        join Level2 t.OneToOne_Required_PK in DbSet<Level2>
        on Property([t], "Id") equals Property([t.OneToOne_Required_PK], "Id") into t.OneToOne_Required_PK_group
        from Level2 t.OneToOne_Required_PK in
            (from Level2 t.OneToOne_Required_PK_groupItem in [t.OneToOne_Required_PK_group]
            select [t.OneToOne_Required_PK_groupItem]).DefaultIfEmpty()
        where Property([t.OneToOne_Required_PK], "Id") != null
        select [t.OneToOne_Required_PK]
    on (Nullable<int>)[l1].Id equals [l2]?.Level1_Optional_Id into grouping
    from Level2 l2 in
        (from Level2 <generated>_1 in [grouping]
        select [<generated>_1]).DefaultIfEmpty()
    where [l2]?.Name != "Foo"
    select [l1]).Distinct()
select (int)[l1]?.Id

generated sql:
SELECT [t1].[Id], [t1].[OneToOne_Required_PK_Date], [t1].[OneToOne_Required_PK_Level1_Optional_Id], [t1].[OneToOne_Required_PK_Level1_Required_Id], [t1].[OneToOne_Required_PK_Name], [t1].[OneToOne_Required_PK_OneToOne_Optional_PK_InverseId], [t1].[Id]
FROM (
	SELECT DISTINCT [t0].[Id], [t0].[OneToOne_Required_PK_Date], [t0].[OneToOne_Required_PK_Level1_Optional_Id], [t0].[OneToOne_Required_PK_Level1_Required_Id], [t0].[OneToOne_Required_PK_Name], [t0].[OneToOne_Required_PK_OneToOne_Optional_PK_InverseId]
	FROM [Level1] AS [l1]
	LEFT JOIN (
		SELECT [t].[Id], [t].[OneToOne_Required_PK_Date], [t].[OneToOne_Required_PK_Level1_Optional_Id], [t].[OneToOne_Required_PK_Level1_Required_Id], [t].[OneToOne_Required_PK_Name], [t].[OneToOne_Required_PK_OneToOne_Optional_PK_InverseId]
		FROM [Level1] AS [t]
		WHERE [t].[Id] IS NOT NULL
	) AS [t0] ON [l1].[Id] = [t0].[OneToOne_Required_PK_Level1_Optional_Id]
	WHERE ([t0].[OneToOne_Required_PK_Name] <> N'Foo') OR [t0].[OneToOne_Required_PK_Name] IS NULL
) AS [t1]

note that projected columns come from the joined entity (l2), instead of expected l1.
If the predicate is removed, or changed so that l1.Name is being used, everything works fine:
SELECT [t1].[Id]
            FROM (
                SELECT DISTINCT [l1].*
                FROM [Level1] AS [l1]
                LEFT JOIN (
                    SELECT [t].*
                    FROM [Level1] AS [t]
                    WHERE [t].[Id] IS NOT NULL
                ) AS [t0] ON [l1].[Id] = [t0].[OneToOne_Required_PK_Level1_Optional_Id]
                WHERE ([l1].[Name] <> N'Foo') OR [l1].[Name] IS NULL
            ) AS [t1]

Check materialization status for l1/l2. Probably l1 is not materialized (since we are picking up l1.id only & if l2 is materialized then we would copy over all projections while creating left join.

that's one issue for sure (l2 shouldn't be materialized), but on top of that, we should at least have l1.Id in the final projection - we do not. Instead, [t1].Id is present twice (pos 0 and pos 6), and the pos 6 one is used  in the final client selector

Both t1.Id could have different structure. Basically when we are binding l1.Id, we could try to find column Id property inside table t1 and that gives us t1.Id (since internal projections are incorrect, the external one was bound incorrectly too.

problem surfaces because RequiresMaterializationExpressionVisitor is not able to find entity type for [l2] qsre in the l2.Name != 'Foo'. For non-owned case we get that entity directly based on qsre type, but for owned we need to go thru navigation. Problem is that there is no navigation because the expression is a manually created groupjoin

If l2 is owned type then how can we do DbSet<Level2>?

its just how expression printer displays stuff

fixed in 552f70a330f7b93bfc55f17a8b29263b1c0487ae


feat: add multi-arch docker build

I noticed this PR was incomplete and has since been reverted https://github.com/nerdswords/yet-another-cloudwatch-exporter/pull/488 - I've expanded on this PR to fully support multi-arch docker builds in this repo.
I ran the action against my fork, which you can validate here
fixes https://github.com/nerdswords/yet-another-cloudwatch-exporter/issues/484

Awesome <3


fix the case where convex hull point 0 is removed

Convex hull point 0 was sometimes removed for me in testing leading to a "Internal error, this is a bug in the code" crash. This fix worked for me.

Hi,
Thanks for reporting this. I think this won't fully solve the problem though, since in forEachConvexHullVertex, the index 0 is also used as the starting index. (so the vertex at index 0 should always be part of the convex hull)
The fix is probably to swap nodes at the end of createInitialTriangulation, so that there is always a convex hull vertex at index 0.
Could you send me the input data so I can check and reproduce this too?

Sure here is the input: https://gist.github.com/ikoruk/18c7a85b7488a6b60f65307b020a13e8

Thank you, I've fixed the issue, and added the input as a test case.


[CLAR] Add flags to README

[ ] Check which flags are worth adding: https://shields.io/badges/
[ ] Update README;

PyPI version (https://shields.io/badges/py-pi-version)
License (https://shields.io/badges/git-hub-license)
PyPI status (https://shields.io/badges/py-pi-status)
Commits since last version (https://shields.io/badges/git-hub-commits-since-tagged-version)
Milestone percentage for next version (https://shields.io/badges/git-hub-milestone-details)
PyPI downloads (https://shields.io/badges/py-pi-downloads)
Size of repository (https://shields.io/badges/git-hub-repo-size)
pytest:100% (https://shields.io/badges/static-badge)


Documentation about breaking change for withText selector filter behavior

We have four filtering method for Selector, please see our examples to understand their behavior:

nth - overridable
withText - compound
withAttr - compound
filter - compound

There is BC only for withText (before it was overridable filter)

Done


Finite element calculation of 3D surface

Dear MFEM Maintainer
I have a finite element model of 3D curved surface, and I wonder if MFEM can solve it.
I input the mesh model into the EX2 of MFEM and try to solve it, but it seems that the EX2 of MEFM only solves the problems of 2D  plane model and 3D solid model.I input my model into the EX2 solution, but the node displacement is only in the X and Y directions, which is obviously not what I want.
For this 3D surface model, if it is in ANSYS, a thickness parameter needs to be specified, I would like to ask if MFEM can do the same.
If possible, please let me know what I need to know, I would be very grateful!

Hi @HFH104864,
We can solve PDEs on surface, see the *surf.mesh files in the data/ directory and e.g. this sample run:  ex1 -m ../data/star-surf.mesh.
The first step should be to export your 3D surface in the MFEM-compatible 3D surface mesh format. What mesh generator do you use?
Tzanio

Dear Tzanio
I use Gmsh as the mesh generator .
I used Gmsh to generate a VTK format quadrangular grid file, then I imported the VTK file into MFEM EX1 and ran it to get a GF file.I wonder what the meaning of this GF file is. And I looked at EX1, and there's no way to find code that applies boundary conditions like EX2.
Could you please help me , thank you !

Can you attach the VTK mesh you are using by any chance?
The GF file is the "GridFunction" solution, i.e. the vector of degrees of freedom of the finite element approximation.

This is my VTK file, and the GF file generated by running EX1 from this VTK file.
file.zip
I looked at the GF file and found that there was only an approximation of one degree of freedom, and I didn't know which one

It looks like there was a bug in the VTK mesh reader when loading surface meshes (meshes that are topologically 2D embedded in 3D space). Thanks for reporting this. It is fixed in #2566.
Using the fixed version, I can use your mesh with ex1 to solve the Laplace problem on the surface.

Thanks Will!

It really seems to work and I can't wait to try it out.
My MFEM version is 4.2, so I need to compile 4.3 to modify the code.
But when I compiled 4.3, it wasn't as smooth as when I compiled 4.2.I compiled MFEM4.3 using VS2019 on Windows and the error occurred.When I generated the project MFEM, C2644,C2065,C2530 and C3536 errors occured.They are
C2664 "void mfem: : IntegrationPointTransformation: : Transform (const mfem: : IntegrationPoint &, mfem: : IntegrationPoint &)" :cannot  convert parameter 1 from "int" to "const mfem::IntegrationPoint &"
C2065 "i" : undeclared identifier
C2530 “fip”: reference variable must be initialized
C3536 “fip": cannot be used before initialization
respetively
I tried  Project ->Properties -> Configuration Properties -> General -> Projectdefaults -> Character Set->multi-byte character sets , but it didn't work .
any help will be appreciated.d.

Are these error messages when you download the 4.3 release, or the latest commits on the master branch? Could you try cloning the repo and compiling with the latest master? Also, what are the files and line numbers associated with these errors?

I downloaded 4.3 Release and compiled it using Cmake to generate a project file mfem.sln. I opened the mfem.sln and tried to generate ALL_BUILD and these errors occurred.
These errors occur under project mfem, Estimators. CPP, line 241 Auto &fip = int_rule-intpoint (I);
There are other related errors that occur in this file.

Could you try with a clone of master instead of the release?
And that error is interesting. It complains about "i" : undeclared identifier on line 242, but clearly i is defined on line 239. Our CI also builds and tests with Visual Studio, so it really should compile.
Maybe it's a file encoding issue, and something goes wrong because of the unicode characters in the comment on line 238. Just a guess…

Thank you !
Oddly enough, after I deleted the comments, the compilation succeeded !!!
And using the fix version , my problem can be solved !!!


Publish the module in luarocks

Hello @2dengine
Would be nice having this module in luarocks so I can install it with the rest of the dependencies without linking it manually in src code.
Cheers.

Hello and thank you for the suggestion.
This is a standalone module (just a single file called "profile.lua") without any dependencies at all.
I will look into Luarocks, but cannot promise anything at the moment.

Upon further investigation it appears that Luarocks is affiliated with itch.io and is NOT an independently-hosted service. The MIT License should allow you to publish profile.lua on there if you want, although we have absolutely no interest in Luarocks

Thank you so much @2dengine for your feedback, fair enough. Cheers,


Change the package.Spec.Config field to a string

The string will be parsed as YAML and used as values for packages.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


Add function stubs as sketched in interface description

Pull Request Test Coverage Report for Build 846787731

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 82.456%

Totals

Change from base Build 839689895:
0.0%

Covered Lines:
47

Relevant Lines:
57

💛  - Coveralls


Add countDistinct/frequency/mode routines

See this example for a word frequency counting program.

We have countDistinct in streamly now so we do not need that here.

Frequency can be implemented as:
frequency :: Fold m a (Map a Int)
frequency = classifyWith id Fold.length

And mode would be the max in the frequency map:
mode :: Fold m a (a, Int)

Fixed by:https://github.com/composewell/streamly-statistics/pull/46


ld: library not found for -lFMDB

I am unable to build and run the iOS app on emulator or on physical device.
The terminal shows the following errors when I try to run the app in the emulator or physical device.

logs
/Users/alhoussen/Library/Developer/Xcode/DerivedData/Runner-ajxjljkcfncrzqepzwhbwsvavpbz/Build/Intermediates.noindex/Runner.bu
                            ild/Debug-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner_dependency_info.dat -o
                            /Users/mhbobalhoussen/Development/cross-word/build/ios/Debug-iphonesimulator/Runner.app/Runner
                        ld: library not found for -lFMDB
                        clang: error: linker command failed with exit code 1 (use -v to see invocation)

                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'FirebaseCoreDiagnosticsInterop' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'FirebaseAuthInterop' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'Flutter' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'GoogleAppMeasurement' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'Firebase' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'FirebaseAnalytics' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'BoringSSL-GRPC' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 5.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'leveldb-library' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'path_provider' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'abseil' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'GoogleUtilities' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'GoogleDataTransport' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'gRPC-Core' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'FirebaseCoreDiagnostics' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 7.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'gRPC-C++' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'FirebaseInstallations' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'FirebaseFirestore' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'firebase_core' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'firebase_analytics' from project 'Pods')
                        warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported
deployment target
                        versions is 9.0 to 14.0.99. (in target 'cloud_firestore' from project 'Pods')

[+10052 ms] Could not build the application for the simulator.
[        ] Error launching application on iPhone 11.
[   +4 ms] "flutter run" took 125.489ms.
[   +6 ms]
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
           #1      RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:607:7)
           <asynchronous suspension>
           #2      FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:972:18)
           #3      _rootRunUnary (dart:async/zone.dart:1198:47)
           #4      _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #5      _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #6      Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #7      Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #8      Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #9      _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:40:15)
           #10     _completeOnAsyncReturn (dart:async-patch/async_patch.dart:311:13)
           #11     RunCommand.usageValues (package:flutter_tools/src/commands/run.dart)
           #12     _rootRunUnary (dart:async/zone.dart:1198:47)
           #13     _CustomZone.runUnary (dart:async/zone.dart:1100:19)
           #14     _FutureListener.handleValue (dart:async/future_impl.dart:143:18)
           #15     Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:696:45)
           #16     Future._propagateToListeners (dart:async/future_impl.dart:725:32)
           #17     Future._completeWithValue (dart:async/future_impl.dart:529:5)
           #18     Future._asyncCompleteWithValue.<anonymous closure> (dart:async/future_impl.dart:567:7)
           #19     _rootRun (dart:async/zone.dart:1190:13)
           #20     _CustomZone.run (dart:async/zone.dart:1093:19)
           #21     _CustomZone.runGuarded (dart:async/zone.dart:997:7)
           #22     _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:1037:23)
           #23     _microtaskLoop (dart:async/schedule_microtask.dart:41:21)
           #24     _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)
           #25     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)
           #26     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

[  +94 ms] ensureAnalyticsSent: 89ms
[   +1 ms] Running shutdown hooks
[        ] Shutdown hook priority 4
[        ] Shutdown hooks complete
[        ] exiting with code 1`

flutter doctor -v
alhoussen@ alhoussen s-Mac-mini cross-word % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 1.22.0, on Mac OS X 10.15.7 19H2, locale de-DE)
[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
      You may also want to add it to your PATH environment variable.

[✓] Xcode - develop for iOS and macOS (Xcode 12.0.1)
[!] Android Studio (not installed)

[✓] Connected device (1 available)

! Doctor found issues in 2 categories.`

Hi @mahbobyosf
Did you modify the target in Xcode? Does this reproduce in a new project with the default code sample?
Can you please provide your flutter run --verbose (copy complete logs in plain text file .txt` and paste in the comments below)  and a complete reproducible minimal code sample
Thank you

There are no problems with new projects
But with my current project I deleted the pods and the podfile.lock and tried to restart the app and now I have this problem:
ld: library not found for -lBoringSSL-GRPC
logs.txt

I have found the solution to this problem by deleting all FrameWorks in "Other Linker Flags" except this
$(inherited)
-framwork
Flutter


Make Cybernetic Organism and Neural Network patches work with Doug's unofficial update.

This PR makes the currently existing patches for Cybernetic Organism and Neural Network work with Doug's unofficial update.

Thanks for the PR! Will push to the workshop soon.


build.yaml in root dir needs to be removed.

You have a build.yaml checked into the root dir.  It will break with the current versions of flutter and built_value, built_value_generator.

Hey there -- sorry, I don't quite see that file either on Github or on my local filesystem. The only build.yaml I can spot is inside the built_redux example.
Could you point me to a screenshot or similar of what you're seeing?

Right.  Sorry that was very inaccurate of me.  It's the build.yaml inside the built_redux example.
https://github.com/brianegan/flutter_architecture_samples/blob/master/example/built_redux/build.yaml.
It fails because both built_redux and built_value_generator have been updated to the latest build and source_gen versions so the build file being generated by running build_runner is different from the one you have checked in.  Unfortunately though it generates the right build file, somehow (and i don't know how) the runner picks up your version from the root file system for the "built_value_generator|built_value:" key and keeps it from generating the files.

Ah dang -- more builds more problems :P Thanks for the info!

Sure thing! Glad it was a helpful starting point :)

There's a  temporary check for this during the build:
https://github.com/brianegan/flutter_architecture_samples/blob/master/scripts/runTests.sh#L32
and
https://github.com/brianegan/flutter_architecture_samples/blob/master/scripts/ci.sh#L36
The existing generated files still work. But yes, should be fixed.
BTW: looks like I have a fix for current build... hopefully will have a PR soon.


Add possibility to skip saving version.properties

Is it possible to add skip parameter to be able to skip saving versioning file on specific tasks?
as for me - it would be useful to avoid changes for each build or assembleDebug tasks.
thanks

Hello thanks for opening this ticket.
This ticket is now linked to #29.


Fix bug that prevents features from opening in a new tab

Description
Clicking the giveaway extractor button does nothing.
Steps to Reproduce

Go to any train discussion page or first wagon
Click on giveaway extractor button
See that nothing happens.

Console Errors
none

ESGST Extension v8.8.5
Chrome Version 87.0.4280.66 (Official Build) (64-Bit)

Additional Context
No idea when it stopped working - last time I've used it is several months ago so I don't know with which version the button has stopped working.

Does this fix include the library/wishlist checker opening in a new tab?

What's wrong with the library/wishlist checker?

You've renamed the issue to "Fix bug that prevents features from opening in a new tab" - and as it seems the issue not only existed for the giveaway extractor but also the library/wishlist checker and the bookmarked giveaways.
All of them are supposed to open in a new tab and non of them are working.
I forgot to report but the new title of the issue suggests that all such issues could be fixed with it. Hence me asking.

I've just given it another try and it worked. A few days or one-two weeks back when I needed the feature it didn't. Hence I was assuming it was broken as well.


user can() from role or direct from user

Hi, my company manage a lot of user,
my manager needs to know this user had permission access from role or from user..
for example, when some permission attach direct to user
i need to check like this :
$user->canFromUser() // return true
$user->canFromRole() // return false
how to achieve this ?

Take a look at this function https://github.com/romanbican/roles/blob/master/src/Bican/Roles/Traits/HasRoleAndPermission.php#L209 might give you some insight.

I'll look at it soon.

And it's finally done. Sorry for delay. Have a look at can method. There is new argument from. You can leave it blank or you can pass "role" (permissions from roles) or "user" (permissions that are attached directly to the user). Hope it makes sense.


Revert "Revert "Bratseth/tensorflow models""

Reverts vespa-engine/vespa#4461

Allocated more build memory, it was a little low.

👍


Remove netbox plugin topic

Hello,
Could you kindly remove the netbox-plugin topic from your topic list on the repository. It is misleading as this is not a netbox-plugin that integrates into our plugin framework.
Thanks

Hi Daniel,
no problem, wasn't aware that theses topics were so essential. I removed it.


Document how to iterate on failed Haskell builds

Sometimes building Haskell packages fails. nix-build --keep-failed allows us to keep the directory.
But then what? How do we reproduce/iterate on the issue to debug it by cding into the kept directory?
That should be documented.

Some things to start with that I just got from @cleverca22 on IRC:
Run `nix-shell on the failed derivation:
% nix-shell /nix/store/457k4lfldz4h2w21bfqbf4zlk6id2gzq-example-project-<IP_ADDRESS>.drv
phases="compileBuildDriverPhase" genericBuild

eval "$compileBuildDriverPhase" also works sometimes, but genericBuild, as per @cleverca22:

phases can be both bash functions, or env vars of identical name
genericBuild deals with choosing which one to run, based on some internal priorities
and unpackPhase will fail to behave correctly if the user DID override it
https://github.com/NixOS/nixpkgs/blob/a835adc10c/pkgs/stdenv/generic/setup.sh#L1306
this line of code will either run $curPhase (a bash function by the name in the var), or eval $curPhase, (a bash var, named after the contents of a bash var)

For the case that one doesn't follow the above advice to use genericBuild and uses eval directly, quoting (eval "$thephase" instead of eval $thephase) is important because the phase script usually contains newlines, and it'll be a syntax error otherwise.
Also, if for some reason zsh is used in the nix shell environment, setopt shwordsplit should be used because zsh by default does not expand $stuffWithMultipleWords to multiple words, but puts implicit quotes around it (which surprises many phase scripts).

Also have a look at nixpkgs.makeSetupHook. It allows to enter the build context when the build is failing.


System.ObjectDisposedException: Cannot access a disposed object.

In Android 4.4 (API 19) we are getting this exception:
System.ObjectDisposedException: Cannot access a disposed object.  Object name: 'Javax.Net.Ssl.SSLSocketFactoryInvoker'.    at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <3beddfcb1eb547cd8ce47c3097f6eaeb>:0     at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeAbstractObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <3beddfcb1eb547cd8ce47c3097f6eaeb>:0     at Javax.Net.Ssl.SSLSocketFactoryInvoker.CreateSocket (Java.Net.Socket s, System.String host, System.Int32 port, System.Boolean autoClose) [0x00078] in <ff9f3f3d4e134974a889db1b532c9b6e>:0     at ModernHttpClient.TlsSslSocketFactory.CreateSocket (Java.Net.Socket s, System.String host, System.Int32 port, System.Boolean autoClose) [0x00000] in <a0c6ec8b12f94a1d94e152e02e7d070b>:0     at Javax.Net.Ssl.SSLSocketFactory.n_CreateSocket_Ljava_net_Socket_Ljava_lang_String_IZ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_s, System.IntPtr native_host, System.Int32 port, System.Boolean autoClose) [0x00019] in <ff9f3f3d4e134974a889db1b532c9b6e>:0     at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.35(intptr,intptr,intptr,intptr,int,bool)
It not happends in all calls, it just happends randomly when application is running for a few seconds.
Seems to works right in other android versions.

I will release a new version with a possible fix for this issue. Please, try it as soon as it is out.

Seems to work.
Thanks!

Hello Alex,
I am getting the same exception in android 4.4.3 but works fine on other OS versions. Is there any fix for this bug available?


总之，找一个在你的网络环境下最快的镜像就可以了，旁边有个测试按钮，可供你测试这个镜像服务器

一般情况下，更新OCAT只需5秒左右，速度是非常快的

如果所有的镜像都不能使用的话，你检查下是不是将OCAT墙了，这样OCAT就没法联网了

看这个帖子：https://github.com/ic005k/OCAuxiliaryTools/issues/102
这个用户就是将OCAT的下载工具墙了

OCAT的在线升级具有非常良好的用户体验，采用的是类似于迅雷的下载技术，整个过程3～5秒即可完成。

我另一台M1的MacBook更新正常。
不知道 是不是因为这台黑苹果 装了 aria2  1.36.0的原因。

我还以为你问题解决了
这个应该关系不大，OCAT使用的是绝对路径，但也不确定，你先卸载掉aria2 1.36.0看看

从图中看，你选的这个fastgit目前暂时是有问题的，换个别的镜像看看

换成https://git.yumenaka.net/https://github.com/试下
是不是每个镜像都无法下载？

还有，更新Kexts里面的下载是否正常？二者采用的是不同的下载方式

这还真是个奇怪的现象，不知道其他用户是否也遇到同样的问题

`Source: https://git.yumenaka.net/https://github.com/ic005k/OCAuxiliaryTools/releases/download/20220186/OCAT_Mac.dmg
Target: /Users/000/tempocat/OCAT_Mac.dmg
2022-02-21 21:53:38.698531 [INFO] [../../../src/Context.cc:179] <<--- --- --- ---
2022-02-21 21:53:38.698945 [INFO] [../../../src/Context.cc:180]   --- --- --- ---
2022-02-21 21:53:38.698948 [INFO] [../../../src/Context.cc:181]   --- --- --- --->>
2022-02-21 21:53:38.698953 [INFO] [../../../src/Context.cc:182] aria2 1.35.0
2022-02-21 21:53:38.698960 [INFO] [../../../src/Context.cc:183] Apple LLVM 11.0.0 (clang-1<IP_ADDRESS>)
built by  x86_64-apple-darwin18.7.0
on        Oct  6 2019 09:53:39
2022-02-21 21:53:38.698979 [INFO] [../../../src/Context.cc:184] Darwin 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_X86_64 x86_64
2022-02-21 21:53:38.698984 [INFO] [../../../src/Context.cc:185] zlib/1.2.11 expat/2.2.8 sqlite3/3.30.0 AppleTLS GMP/6.1.2 c-ares/1.15.0 libssh2/1.9.0
2022-02-21 21:53:38.698987 [INFO] [../../../src/Context.cc:186] Logging started.
2022-02-21 21:53:38.698992 [INFO] [../../../src/SocketCore.cc:1659] Checking configured addresses
2022-02-21 21:53:38.699311 [INFO] [../../../src/SocketCore.cc:1710] Not considered: <IP_ADDRESS>
2022-02-21 21:53:38.699321 [INFO] [../../../src/SocketCore.cc:1710] Not considered: ::1
2022-02-21 21:53:38.699371 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::1%lo0
2022-02-21 21:53:38.699407 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::c54:a1ff:b8d6:8ed4%en0
2022-02-21 21:53:38.699412 [INFO] [../../../src/SocketCore.cc:1707] Found configured address: <IP_ADDRESS>
2022-02-21 21:53:38.699445 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::146f:a497:8d6c:c62a%en1
2022-02-21 21:53:38.699449 [INFO] [../../../src/SocketCore.cc:1707] Found configured address: <IP_ADDRESS>
2022-02-21 21:53:38.699482 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::589a:e8ff:fe09:8d40%awdl0
2022-02-21 21:53:38.699516 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::589a:e8ff:fe09:8d40%llw0
2022-02-21 21:53:38.699549 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::7fe4:36ba:5623:da13%utun0
2022-02-21 21:53:38.699582 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::13ca:672a:9f42:9db9%utun1
2022-02-21 21:53:38.699615 [INFO] [../../../src/SocketCore.cc:1710] Not considered: fe80::ce81:b1c:bd2c:69e%utun2
2022-02-21 21:53:38.699618 [INFO] [../../../src/SocketCore.cc:1715] IPv4 configured=1, IPv6 configured=0
2022-02-21 21:53:38.700207 [NOTICE] [../../../src/Context.cc:311] Downloading 1 item(s)
02/21 21:53:38 [NOTICE] Downloading 1 item(s)
2022-02-21 21:53:38.701548 [INFO] [../../../src/AsyncNameResolverMan.cc:83] CUID#7 - Resolving hostname git.yumenaka.net
2022-02-21 21:53:38.704044 [INFO] [../../../src/AbstractCommand.cc:817] CUID#7 - Name resolution complete: git.yumenaka.net -> <IP_ADDRESS>
2022-02-21 21:53:38.704062 [INFO] [../../../src/HttpInitiateConnectionCommand.cc:123] CUID#7 - Connecting to <IP_ADDRESS>:443
2022-02-21 21:53:39.252982 [INFO] [../../../src/AppleTLSSession.cc:754] AppleTLS: Connected to git.yumenaka.net with TLSv1.2 (TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256)
2022-02-21 21:53:39.253108 [INFO] [../../../src/HttpConnection.cc:129] CUID#7 - Requesting:
GET /https://github.com/ic005k/OCAuxiliaryTools/releases/download/20220186/OCAT_Mac.dmg HTTP/1.1
User-Agent: aria2/1.35.0
Accept: /,application/metalink4+xml,application/metalink+xml
Host: git.yumenaka.net
Want-Digest: SHA-512;q=1, SHA-256;q=1, SHA;q=0.1
[#ec1ce3 0B/0B CN:1 DL:0B]
2022-02-21 21:53:39.914530 [INFO] [../../../src/HttpConnection.cc:164] CUID#7 - Response received:
HTTP/1.1 200 OK
Accept-Ranges: bytes
Age: 0
Content-Disposition: attachment; filename=OCAT_Mac.dmg
Content-Length: 26819624
Content-Md5: LXiGLUxK5+YNT4dRB1fxzQ==
Content-Type: application/octet-stream
Date: Mon, 21 Feb 2022 13:53:39 GMT
Etag: "0x8D9F5396783B24A"
Fastly-Restarts: 1
Last-Modified: Mon, 21 Feb 2022 12:55:14 GMT
Server: Caddy
Server: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0
Via: 1.1 varnish
X-Cache: MISS
X-Cache-Hits: 0
X-Ms-Blob-Type: BlockBlob
X-Ms-Creation-Time: Mon, 21 Feb 2022 12:55:14 GMT
X-Ms-Lease-State: available
X-Ms-Lease-Status: unlocked
X-Ms-Request-Id: 4a5382b9-801e-0058-452a-27fa3a000000
X-Ms-Server-Encrypted: true
X-Ms-Version: 2020-04-08
X-Served-By: cache-lax10659-LGB
X-Timer: S1645451620.742398,VS0,VE189
2022-02-21 21:53:39.914567 [INFO] [../../../src/HttpResponse.cc:130] CUID#7 - Content-Disposition detected. Use OCAT_Mac.dmg as filename
2022-02-21 21:53:39.915275 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:415] The segment file /Users/zh/tempocat/OCAT_Mac.dmg.aria2 does not exist.
2022-02-21 21:53:39.915330 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:415] The segment file /Users/zh/tempocat/OCAT_Mac.dmg.aria2 does not exist.
2022-02-21 21:53:39.915340 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:415] The segment file /Users/zh/tempocat/OCAT_Mac.dmg.aria2 does not exist.
2022-02-21 21:53:39.915344 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:415] The segment file /Users/zh/tempocat/OCAT_Mac.dmg.aria2 does not exist.
2022-02-21 21:53:39.956653 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:205] Saving the segment file /Users/zh/tempocat/OCAT_Mac.dmg.aria2
2022-02-21 21:53:39.957053 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:217] The segment file was saved successfully.
2022-02-21 21:53:39.957237 [INFO] [../../../src/AbstractCommand.cc:276] CUID#8 - No segment available.
2022-02-21 21:53:39.957247 [INFO] [../../../src/AbstractCommand.cc:276] CUID#9 - No segment available.
2022-02-21 21:53:39.957337 [INFO] [../../../src/AbstractCommand.cc:276] CUID#10 - No segment available.
2022-02-21 21:53:39.957340 [INFO] [../../../src/AbstractCommand.cc:276] CUID#11 - No segment available.
[#ec1ce3 832KiB/25MiB(3%) CN:1 DL:878KiB ETA:28s]
2022-02-21 21:53:40.916000 [INFO] [../../../src/AbstractCommand.cc:276] CUID#8 - No segment available.
2022-02-21 21:53:40.916020 [INFO] [../../../src/AbstractCommand.cc:276] CUID#9 - No segment available.
2022-02-21 21:53:40.916025 [INFO] [../../../src/AbstractCommand.cc:276] CUID#10 - No segment available.
2022-02-21 21:53:40.916028 [INFO] [../../../src/AbstractCommand.cc:276] CUID#11 - No segment available.
2022-02-21 21:53:40.919027 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.086619 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.150384 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.257014 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.316188 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.330817 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.420170 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.449808 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.504971 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.523794 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.629150 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.688093 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.704578 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.746745 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.824457 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.901940 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
[#ec1ce3 16MiB/25MiB(63%) CN:1 DL:8.3MiB ETA:1s]
2022-02-21 21:53:41.906029 [INFO] [../../../src/AbstractCommand.cc:276] CUID#8 - No segment available.
2022-02-21 21:53:41.906046 [INFO] [../../../src/AbstractCommand.cc:276] CUID#9 - No segment available.
2022-02-21 21:53:41.906050 [INFO] [../../../src/AbstractCommand.cc:276] CUID#10 - No segment available.
2022-02-21 21:53:41.906053 [INFO] [../../../src/AbstractCommand.cc:276] CUID#11 - No segment available.
2022-02-21 21:53:41.920896 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:41.996967 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.075938 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.092245 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.173642 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.192428 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.271248 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.289163 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.360764 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.374858 [INFO] [../../../src/DownloadCommand.cc:242] CUID#7 - The download for one segment completed successfully.
2022-02-21 21:53:42.376359 [INFO] [../../../src/DefaultPieceStorage.cc:483] The download was complete.
2022-02-21 21:53:42.376388 [INFO] [../../../src/DownloadEngine.cc:315] Pool socket for <IP_ADDRESS>(443)
2022-02-21 21:53:42.393174 [NOTICE] [../../../src/RequestGroup.cc:1216] Download complete: /Users/zh/tempocat/OCAT_Mac.dmg
02/21 21:53:42 [NOTICE] Download complete: /Users/zh/tempocat/OCAT_Mac.dmg
2022-02-21 21:53:42.393221 [INFO] [../../../src/DefaultBtProgressInfoFile.cc:411] The segment file /Users/zh/tempocat/OCAT_Mac.dmg.aria2 exists.
Download Results:
gid   |stat|avg speed  |path/URI
======+====+===========+=======================================================
ec1ce3|OK  |    10MiB/s|/Users/000/tempocat/OCAT_Mac.dmg
Status Legend:
(OK):download completed.
`

还有，更新Kexts里面的下载是否正常？二者采用的是不同的下载方式
不管用哪个镜像都不能下载。

更新Kexts 正常。

换成 https://git.yumenaka.net/https://github.com/ 试下 是不是每个镜像都无法下载？

每个镜像都无法下载。

每个镜像都无法下载。

那搞不好就是aria2c冲突了，因为OCAT的升级下载也是使用的aria2c，你删除掉你安装的aira2c看看？先排除一下故障

更新Kexts 正常。

这个下载是我自己写的，没有采用第三方的下载工具，所以现在可以肯定问题出在第三方的下载工具上面


Error happened when using ks_gpu  to run a certain data

When I implemented
n1=np.zeros((20, 1440))
n2=np.full((30, 1440), 614631)
n3=np.concatenate((n1,n2),axis=0)
univariate_ts_datasets = np.expand_dims(n3, axis=2)
gpu_model = ks_gpu(univariate_ts_datasets, 3, centroid_init='zero', max_iter=100)

I got error:
Intel MKL ERROR: Parameter 4 was incorrect on entry to SLASCL.

Intel MKL ERROR: Parameter 4 was incorrect on entry to SLASCL.
info: 89
, submat: 0
info: 1531
Traceback (most recent call last):
  File "D:/apps_data/attempt/k-shape.py", line 279, in <module>
    gpu_model = ks_gpu(univariate_ts_datasets, num_clusters, centroid_init='zero', max_iter=100)
  File "D:\apps_home\Download\anaconda\envs\pytorch\lib\site-packages\kshape\core_gpu.py", line 116, in kshape
    idx, centroids = _kshape(x, k, centroid_init=centroid_init, max_iter=max_iter)
  File "D:\apps_home\Download\anaconda\envs\pytorch\lib\site-packages\kshape\core_gpu.py", line 100, in _kshape
    centroids[j] = torch.unsqueeze(_extract_shape(idx, x, j, centroids[j]), dim=1)
  File "D:\apps_home\Download\anaconda\envs\pytorch\lib\site-packages\kshape\core_gpu.py", line 76, in _extract_shape
    _, vec = torch.symeig(m, eigenvectors=True)
RuntimeError: symeig_cuda: the algorithm failed to converge; 1531 off-diagonal elements of an intermediate tridiagonal form did not converge to zero.

Process finished with exit code 1

It seems that  y = zscore(a, axis=1, ddof=1) in core_gpu.py, line 67   got some huge elements, and s = y[:, :, 0].transpose(0, 1).mm(y[:, :, 0]) , line 69   got values containing inf.
ks_cpu can deal with this dataset successfully.
I use Python 3.7, Pytorch 1.8.0.

I believe, for the data you are using, zscore function for gpu version is generating NaN values because of division by zero. I fixed the code to handle NaN for GPU. It should be working now.


TAJO-1420: Support GROUPING SET syntax

Here is the build log with the same command with Travis CI on my laptop.
https://app.box.com/s/wcim6qvcz87k3a2una4amnvohggkev65

I recommend to implement the execution logic of the grouping set first.
I know that we support only the syntax of data cube without execution logic. However, it is the leavings of the removed data cube operator execution logic.
Honestly, we had code lines for data cube operator execution, but have removed them due to its low performance. However, we didn't removed the syntax part because we must support it again.

Thank you for telling me the behind story, @jihoonson . I didn't know the cause of inconsistency before.
By the way, in a social coding space, I think my small codes can be stepping stones to help someone who starts faster than me. So, we should break our big problems into small problems as possible as we can. Don't you think so? :)
IMO, if you open your code in your github and everyone can see your low-performance code, Tajo will get the better performance faster. Otherwise, you will see my or others' similar low-performance code again because nobody knows the performance cut-line. It would be a little bit waste of community efforts. What about making your code open, @jihoonson ?
In any way, I respect Tajo community's policy. I will keep this pull request and move on execution logic after finishing current ORC format issue.
Warmly,
Dongjoon.

Hi, @jihoonson , may I start execution logic implementation by reusing this issue number? :)

Definitely, we should break a big problem into smaller ones if possible and helpful.
IMO, this is not a case of the above one. You already break the big problem, that is supporting grouping sets, into small ones including supporting the syntax. I mean, we should do more important and core work first. I think that this tradition is commonly shared by many development projects. When we develop something, we first design the whole architecture, and then break it into several modules. After that, we implement core modules first because trivial modules are not anythings without the core ones.
On opening the legacy code, it may be helpful as you said. However, whether the legacy code exists or not,  we should adopt an efficient algorithm. To do so, we should investigate many other projects and papers, and then discuss them. This is one of the main reasons of using Jira.
Anyway, the performance of legacy code is not acceptable for practical workloads. So, it wouldn't be helpful so much.
Finally, you can reuse the issue if you want. Please update the issue title and description to be appropriate for the changed issue.

I see. I agree with you on the purpose of Jira as a architectural design discussion tools before implementation. For this trivial issue, it was not so important. But if we move on Grouping Set issue, we need more discussion. Also, now I understand your original recommendation to implement the execution logic of the grouping set first. I will study the links (which you given) and read related projects/materials and update this issue for discussion before implementation. Thank you, @jihoonson. Always. :)

Thanks for understanding. I'll wait for your work!


Makes redundant link test ensure that only one link is tested.

Removes potential false passing testcase that could occur if multiple hrefs were accepted since the test previously only looked at the first item and did not check if a second item was also added.

Good idea. Thanks!

Shit, I accidentally overwrote this with an interactive rebase. If you want, submit another PR and I'll merge it. If not, I'll add this change in my next update.

Opened #10 to resolve


How to use defaultFilter when we have array of values to filter

Hi,
I need to filter data initially to show the data first time. I can see the issue #355, here we have sent a single key and value to filter data initially. I have an array of key and values for the same column to filter data for initial rendering. How should I do it?
Here is my code -
<ReactTable
        data={makeData()}
        columns={columns}
	filterable
	defaultFiltered={[
				    {
					id: 'lastName',
					value: 'fan'
				    },
				    {
					id: 'lastName',
					value: 'babies'
				    }
			        ]}
/>

Thanks

Filter data before pass it to React-table


gstreamer: needs Xext build input when x11 is enabled

Motivation for this change
Fixes #102023
When x11 is enabled, gstreamer-plugins-base requires libXext as a build input.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

10.rebuild-linux: 1001-2500 labels

@paralin This needs to PR against staging because it's a mass rebuild, please rebase it and change the target branch using Github's Edit button above.
I've built the PR on top of master, there it builds fine, so beyond that, this is good to merge.

@nh2 Done.


Add PR review checklist

Overview
Adding a GitHub Actions workflow that will add a checklist for the PR reviewer when a new PR is created.

Closing and opening as another PR for testing purposes.


TensorFlow not logging any event files, tensorboard showing nothing

I'm currently running TensorFlow 1.10.0. My custom estimator is created with tf.estimator.Estimator, and run without a glitch. However, I don't find any event files under model_dir , and TensorBoard simply shows nothing.
Here's how I setup my estimator:
classifier= tf.estimator.Estimator(
    model_fn=lr_model_fn, model_dir=PATH)

and I open TensorBoard via tensorboard --logdir=tf_models/ --host=<IP_ADDRESS> where tf_models is the dir PATH.
Files logged in model_dir  include checkpoint, graph.pbtxt, model.ckpt-*, etc. No events.out.tfevents* files reside there. Is this normal? Did I have something misconfigured?
EDIT:
It seems that it only outputs events.out.tfevents.* file the very first time in a Jupyter session. If I clean up the PATH model_dir and re-train the model whatever times afterwards, there's always a events file missing there. And I have to restart Jupyter to make it work again. Is this a bug or something?

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

It has been 15 days with no activity and the awaiting response label was assigned. Is this still an issue?

It has been 30 days with no activity and the awaiting response label was assigned. Is this still an issue?

You can use tf.summary to write the data you want to visualize to the log directory.
Also, this question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!

It may happen when you delete the previously defined model_dir in your Estimator configuration: FileWriter will fail to write in the deleted directory (even a directory with the same path is created).
You can use tf.summary.FileWriterCache.clear() to clear current cache if this happens. You will lose anterior cached summaries though.

It may happen when you delete the previously defined model_dir in your Estimator configuration: FileWriter will fail to write in the deleted directory (even a directory with the same path is created).
You can use tf.summary.FileWriterCache.clear() to clear current cache if this happens. You will lose anterior cached summaries though.

this is exactly the solution.

How do we do this in tf2?

FYI for tf2 tf.summary.FileWriterCache.clear() is now in tf.compat.v1.summary.FileWriterCache.clear()
Also because i didn't understand what i was doing i eventually realised i needed this to be called just before my training.
tf.compat.v1.summary.FileWriterCache.clear()
tf.estimator.train_and_evaluate(estimator, train_spec, eval_spec)


feat(badge): add decoration prop

PR Title

:hammer_and_wrench: Type Of Change

[ ] Fix
[x] Feature
[ ] Refactoring
[ ] Documentation

:book: Description
Add decoration prop in badge component.
:bulb: Context
https://dialpad.atlassian.net/browse/DT-1028
:pencil: Checklist

[x] I have reviewed my changes
[x] I have added tests
[x] I have added all relevant documentation
[ ] I have validated components with a screen reader
[ ] I have validated components keyboard navigation
[x] I have considered the performance impact of my change
[x] I have checked that my change did not significantly increase bundle size
[ ] I am exporting any new components or constants in the index.js in the component directory
[ ] I am exporting any new components or constants in the index.js in the root

:camera: Screenshots / GIFs

Deploy preview failing for some reason... I'm going to try cleaning our github pages branch

Thank you so much for the awesome review everyone. 🤩

@braddialpad Do you mind releasing it so we can utilize it on some tasks?

Sure releasing now!


TextField Not working with Floating panel half state

Hello,
My requirement is to show floating panel in half view while I am using textview search initially panel is in tip state and I am changing it when I am editing anything in textfield but the issue is it showing panel in half view but does not allow me to write in textview.This issue arrive when I upgrade to latest Floating panel which is 2.0.1
Can you please help me out with this.
Thanks,
Priyanka

I tried to repro this using a simple panel containing a text view, but I couldn't. Could you give me more information about the pane condition or an example code to repro?

I tried to repro this using a simple panel containing a text view, but I couldn't. Could you give me more information about the pane condition or an example code to repro?

Hi.
I may see the same situation.
autolayout doesn't work correctly in half modal
to reproduce, please see here
https://github.com/shinsan/test_fp
thanks

Hi.
I may see the same situation.
autolayout doesn't work correctly in half modal
to reproduce, please see here
https://github.com/shinsan/test_fp
thanks

hi, @shinsan. I took a look at your project and video. However it's not the lib's issue, but a layout issue of NextViewController as follows This error also occurs when the view controller presents as a sheet modal.

The behavior of the UICollectionViewFlowLayout is not defined because:
the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values.
Please check the values returned by the delegate.
The relevant UICollectionViewFlowLayout instance is <test_fp.MyCollectionLayout: 0x7fab1f6120d0>, and it is attached to <UICollectionView: 0x7fab28030000; frame = (0 0; 375 514); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x60000028bd50>; layer = <CALayer: 0x600000cd7520>; contentOffset: {0, 0}; contentSize: {375, 50}; adjustedContentInset: {0, 0, 34, 0}; layout: <test_fp.MyCollectionLayout: 0x7fab1f6120d0>; dataSource: <test_fp.NextViewController: 0x7fab1f611650>>.
Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

hi, @shinsan. I took a look at your project and video. However it's not the lib's issue, but a layout issue of NextViewController as follows This error also occurs when the view controller presents as a sheet modal.

The behavior of the UICollectionViewFlowLayout is not defined because:
the item width must be less than the width of the UICollectionView minus the section insets left and right values, minus the content insets left and right values.
Please check the values returned by the delegate.
The relevant UICollectionViewFlowLayout instance is <test_fp.MyCollectionLayout: 0x7fab1f6120d0>, and it is attached to <UICollectionView: 0x7fab28030000; frame = (0 0; 375 514); clipsToBounds = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x60000028bd50>; layer = <CALayer: 0x600000cd7520>; contentOffset: {0, 0}; contentSize: {375, 50}; adjustedContentInset: {0, 0, 34, 0}; layout: <test_fp.MyCollectionLayout: 0x7fab1f6120d0>; dataSource: <test_fp.NextViewController: 0x7fab1f611650>>.
Make a symbolic breakpoint at UICollectionViewFlowLayoutBreakForInvalidSizes to catch this in the debugger.

@SCENEE
sorry, I didn't understand collectionview and autolayout, issue does'nt happen.


OOP school library: preserve data

[x] On exit from your app save all the data (books, people, and rentals) into JSON files. One per type of data you are storing and named accordingly (e.g. rentals.json)
[x] On startup of your app load all data from files. Remember to handle the case when one or more of the files are missing.

Hi @khanh-devos
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a pair programming project, that does not have commit from your partner 👍🏿
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification @prolajumokeoni.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

Thank you @thecodechaser and @tchasinga


Dissolutions framework

Issue #: /bcgov/entity#8838
Description of changes:

Directory restructure to isolate Incorporations and Dissolutions.
Base config files for supported dissolution entity types.
Baseline filing template methods to create/parse drafts.  *Needs expanding as we build out filing properties.
Some code clean up.
Testing updates.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the bcrs-entities-create-ui license (Apache 2.0).

Just going to add a new icon, provided from Tracey. Hold off on merge 😁

Just going to add a new icon, provided from Tracey. Hold off on merge 😁

Edit* It wasn't read, so never mind. Merging :)


HadoopMR/Spark/Hive/SparkSQL on TableStore

 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.Taoda seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.

@TimeExceed  Thanks for your contributions. I will  do a deep review of this, and now I have some minor suggestions:

convert alicloud to aliyun in package naming.
I have opened the 1.3.0-SNAPSHOT version, please keep this version and do a rebase.
Sign the CLA please.

LGTM, ship it.


Objects to unions converter

Let's say we have a dictionary:
const FEATURES = {
  SORTING: 'Sorting',
  FILTERING: 'Filtering',
  REORDERING: 'Reordering',
};

It can be used like this:
const features = [];

// or it can be a method of a class like "addFeature"
features.push(FEATURES.FILTERING);

I want to say to my features array that it can accept values of the FEATURES object only. But in order to avoid creating a separate union type and support (possible) changes there and in FEATURES object, I'd like to collect values from the object and keep them as a union type. Thus if it is necessary to add/remove value, it can be done in only one place - in the FEATURES object.
To achieve this goal, in TypeScript it is necessary to define such monstrous type:
const FEATURES = {
  SORTING: 'Sorting',
  FILTERING: 'Filtering',
  REORDERING: 'Reordering',
// 1. const assertions
} as const;

// 2. if we have a lot of such dictionaries, we have to repeat this stuff every time
type Feature = (typeof FEATURES)[keyof typeof FEATURES];

// if we want to get union type of keys
// type FeatureKeys = keyof typeof FEATURES;

const features: Feature[] = [];

// OK
features.push(FEATURES.FILTERING);

/*
  Should throw a type error
  Argument of type '"foo"' is not assignable to parameter of type
  '"Sorting" | "Filtering" | "Reordering"'.
*/
features.push('foo')

Are there any thoughts of optimizing this type generation to avoid repeating such boilerplate in Hegel? Like a help function or something.
And I'd like to know if it is a common thing to work with dictionaries this way or not. Because I'm new to strong type checking and maybe I think the wrong way here...
Thanks in advance.

Object.freeze function will do what as const does
$TypeOf magic type will do what typeof does
$Keys magic type does what keyof does but if you want values $Values magic type will do that

const FEATURES = Object.freeze({
  SORTING: 'Sorting',
  FILTERING: 'Filtering',
  REORDERING: 'Reordering'
})

type Feature = $Values<$TypeOf<FEATURES>>

const features: Array<Feature> = []

void features.push('Filtering') // ok
void features.push(FEATURES.FILTERING) // ok

void features.push('foo') // error as expected

try
only down side would be that FEATURES will be frozen on runtime as well (this may or may not be desired behavior)

if you don't like to freeze object on runtime you can create helper immutableId function that will refine type but don't change value for runtime
const immutableId = <T>(v: T): $Immutable<T> => v

const FEATURES = immutableId({
  SORTING: 'Sorting',
  FILTERING: 'Filtering',
  REORDERING: 'Reordering'
})

@thecotne, thanks for your examples. It makes the code a little bit easier, but the problem actually in Feature type definition repetition. I tried to apply immutableId approach to Feature, but failed of course :)
I tried to get something like this:
// without output type because have no ideas how to describe it
const makeUnion = (obj: object) => $Values<$TypeOf<obj>>;

type Feature = makeUnion(FEATURES);

but it seems that type definition doesn't work this way :)

this works perfectly fine you don't need to repeat anything ...
const immutableId = <T>(v: T): $Immutable<T> => v

const FEATURES = immutableId({
  SORTING: 'Sorting',
  FILTERING: 'Filtering',
  REORDERING: 'Reordering'
})

type Feature = $Values<$TypeOf<FEATURES>>

const features: Array<Feature> = []

void features.push('Filtering') // ok
void features.push(FEATURES.FILTERING) // ok

void features.push('foo') // error as expected

try
you just need to use either Object.freeze or immutableId to achieve same result as as const in typescript.

@vasilii-kovalev i have reported Values type issue separately https://github.com/JSMonk/hegel/issues/269


mobi file crashes Kindle for Mac

I have created a document and build script at https://github.com/gregturn/asciidoctor-epub3-mac-for-kindle-bug.
This repo also contains a build trace and stack trace.

clone my repo
./build
open Mobi file using Kindle for Mac
Ka-blam!

BTW, the epub3 doc opened just fine in iBook on my Mac.

I'll dive into this, probably by breaking out my OSX test machine to get a closer look. When I last worked on EPUB3, Kindle was frustrating me because their client for OSX still wasn't using the new KF8 engine. The KF8 engine uses WebKit. The earlier version used a pretty worthless rendering engine that only permitted a very limited set of HTML. I'm curious to see if KF8 is being used now. I can tell pretty easily when I see the interface which one it is.

iBooks is the web we know, which is why it works :)

Glad to help.
iBooks are nice, but since I have an iPad and my wife has an Android tablet, we have settled on the Kindle-formatted books. That way, we buy a book one time, and can read it anywhere.
It was super easy to experiment by staging books in my DropBox account. I'll see how they render on all my mobile devices. :)

I want to clarify that the Kindle app for Android is excellent. Probably the best ebook viewer on Android. For some reason, it's just (or was) the pits for OSX.

It was super easy to experiment by staging books in my DropBox account. I'll see how they render on all my mobile devices. :)

+1

We came across this problem in the JHipster book. I think it's caused by #46. The workaround is to give each of your chapters an explicit id.
[[conventions]]
=  Gradle's Conventions

:+1:

I've also observed that if there are any warnings when creating the mobi file with Kindlegen, this leads to a crash downstream in Kindle for Mac. It's extremely fussy. I guess we're going to have to start a running lists of things that crash it so we know what to look out for.

Though I really wish Amazon would just kill the terrible application that Kindle for Mac is and start over with the code base used for the app for Android.

After digging a bit deeper, I think it's this line that is killing Kindle for Mac.
body p {
  -webkit-hyphens: auto;
}

There's a media query we can use to disable this for Kindle.

I am happy to report that this repo now works properly at generating a mobi, so I'm deleting it.

:+1:


Mapbox API_KEY not recognized

Make sure these boxes are checked before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version
0.28.1
Expected results
show the underlying map
Actual results
Notifies "A valid API access token is required to use Mapbox data"
Steps to reproduce

followed https://superset.incubator.apache.org/installation.html installation instructions.
setup PYTHONPATH
obtained mapbox api key
created superset_config.py as in https://superset.incubator.apache.org/installation.html#configuration
started superset in virtualenv using superset runserver -d

I have also changed the default port to 8080 which works fine but the api key is still not recognized.
Edit: The API key works fine in other projects.

you could insert a print('superset_config.py loaded') into your superset_config.py to test it load by flask or not.

do you console print some log like Loaded your LOCAL configuration at [superset/superset_config.py]?
if not, try to set environment  SUPERSET_CONFIG_PATH=/path/to/your/superset/superset_config.py to tell superset where config file it is

do you console print some log like Loaded your LOCAL configuration at [superset/superset_config.py]?

Yes, it does.

I guess your config file isn't successfully loaded.
try to add  print('configuration loaded') to the bottom of your superset_config.py , to make sure it loaded ok

To test / debug, you can open an interpreter and run import superset_config, and see if it loads properly.
For more context, here's where it's auto-loaded:
https://github.com/apache/incubator-superset/blob/master/superset/config.py#L621-L625

I guess your config file isn't successfully loaded.
try to add print('configuration loaded') to the bottom of your superset_config.py , to make sure it loaded ok

I did this as you suggested but it didn't help.

how to obtain mapbox api key


Dots in cwebp filenames and 755 file permissions cause trouble

See https://github.com/rosell-dk/webp-express/issues/373

As I wrote here, the Wordpress plugin fails unzipping when there are dots in the filenames. It also needs the file permissions to be 775 rather than 755.


Week 1

I've finished designing the main page of the website. And tinkered with a travel page. Currently facing some issues where the main section of the travel page appears underneath the background image, and z-index doesn't seem to fix the issue.

Deleted unnecessary code and files~


manage file encoding

Right now, I have hard coded encoding for csv as "UTF-8" and px as "windows-1252" but we should be able to tell somehow which encoding to use.

Does not need to be handled for the first version.


[Doc Enhancement] Is there any documentation that identifies the vendor of Karpenter?

Hey folks,
I hope this message finds you well. We have developed a product based on Karpenter, but with many enhancements, including intelligent EC2 selection, fault-tolerant scheduling across multiple AZs, configure Spot percentage for each workload， easy onboarding, and more.
I am wondering if there is any documentation that identifies the vendor of Karpenter, in case some customers require good support/service and SLA guarantees.
Our official website: https://www.cloudpilot.ai
Thank you for your time and assistance.

What do you mean by "the vendor of Karpenter"? The core library has been donated to kubernetes (kubernetes-sigs/karpetner) and the AWS provider (this repo) is vended by AWS.


Successful authentication results in REVOKED_ACCESS_TOKEN error

Hey Jarrett :).
Pretty frequently when I successfully authenticate with LinkedIn I get the following error back:
{
"status":401,
"serviceErrorCode":65601,
"code":"REVOKED_ACCESS_TOKEN",
"message":"The token used in the request has been revoked by the user"
}
I'm pretty confident that authenticating is working because the app shows up as a "permitted service" authed with the correct scopes even after getting the error back.
I did a bit of digging and I saw some people saying that after linkedin generates the token it takes a bit for the token to become active, and we obviously try to create our token right after, which is where I'm guessing the problem happens.
Have you seen this before and thought of any work around, or is this a me thing?

Hi @BSierakowski, I can't say I have. Are you sure you enabled all of the scopes on your LinkedIn app?

I think so, but I'll triple check. I'm asking for openid profile email w_member_social, and I see the following granted permissions:
You have granted the following access to the service:
- Use the primary email address associated with your LinkedIn account
- Use your name and photo
- Create, modify, and delete posts, comments, and reactions on your behalf

I'm also getting the error back right after authentication, so it's not like I'm making a follow up request and getting unauthorized due to a missing scope (I think I've also done that and the error message is specific.)
If this is new to you I can mess around with it and figure out—very likely that I'm messing up something unrelated :).

Well let me know if you find anything. Happy to accept PRs or work to resolve together.

If I'm stuck for more than a week I'll come crawling back for help 😅

Same over here... I found out that the LinkedIn SSO login in my production environment has been very flaky last couple of days (we still use the old gem for that integration), and after creating a fresh new app on LinkedIn and setting up this gem I get the same REVOKED_ACCESS_TOKEN 90% of the time in my local.

This doesn't seem to be related to this particular gem. The deprecated gem with the previous LinkedIn strategy has an open issue from 2014 with the very same problem that is still active, and it looks like a problem with the LinkedIn API itself.
There are some possible solutions there as well. Hope this help anyone ✌

Thanks @batalla3692, that helps. This started happening for us when we created a new token on LinkedIn and I had assumed it was a config issue at our end.

Fixed and released in https://github.com/jclusso/omniauth-linkedin-openid/releases/tag/1.0.2

@batalla3692 the goat!! Thank you :).


Bug with add link

Hello,
I have a small bug with link in Draft js.
When the user creates a link in a different line than the first line. The link is created in the line where the cursor is located AND IN THE FIRST LINE.
I would like that the link will be added only where the cursor is located.
This is a small video of the bug :
https://www.loom.com/share/98643cc9e83746198551b59d2f4daa53
This is the code :
https://codesandbox.io/s/react-playground-forked-4zkxx?file=/MainPage.js

try createEmpty(decorator) and EditorState.push():
https://github.com/zhyd1997/Eorg/blob/89b02a6e4f6a235691f9b361c942c0a3685c246c/src/components/Editor/index.tsx#L54
https://github.com/zhyd1997/Eorg/blob/89b02a6e4f6a235691f9b361c942c0a3685c246c/src/components/Editor/index.tsx#L119

@007tom thank you, your solution fixed the issue in half.
Now, the  links is created in the line where the cursor is located, but it is created in duplicate.
I don't know if i applied your solution in the right way.
Could you maybe try to put your solution in the code :
https://codesandbox.io/s/react-playground-forked-4zkxx?file=/MainPage.js
Thank you

I found no duplications, maybe you have fixed it.

@007tom  the duplicate appear when you create a link in a new line

You not used draftjs but react-draft-wysiwg, maybe you can submit an issue on that repo.

Some advice in Draft.js file:
onAddLink:
// replace
let newState = EditorState.createWithContent(textWithEntity, decorator);
// with
let newState = EditorSate.push(editorState, textWithEntity, "insert-characters");

Draft:
// replace
const [editorState, setEditorState] = useState(EditorState.createEmpty())
// with
const [editorState, setEditorState] = useState(EditorState.createEmpty(createLinkDecorator()))

@007tom
I tried you solution with Draftjs library but i have this error :
EditorSate is not defined
I have this error in the line :
let newState = EditorSate.push(
editorState,
textWithEntity,
"insert-characters"
);
I recreate the project in this link.
https://codesandbox.io/s/react-playground-forked-om1db?file=/Draft.js:1761-1864

Sorry, typo error, EditorSate should be EditorState.

And check your focusEditor fn, ref.current.focus(), right?

Checkout your second useEffect, comment it and rerun

@007tom Thank you so muuuuch for your help.
The bug is gone
Thanks

Pleasure

Close this please

@zhyd1997
i'm coming back to you few months later about this bug. Actually when i comment the second useEffect, the bugs is gone but an important feature is gone with it.
Because this second "useEffect" is here to allow to delete the reference (when the link is erased in draft js, it deletes the reference that is related to below the page).
So, when the second "useEffect" is commented we have a problem when we create 2 links in Draft js and want to delete the first one, the removing become weird.
https://codesandbox.io/s/react-playground-forked-4zkxx?file=/Draft.js
If you have time to check it, you can find the code in the link above


echo bot deploy on azure

Thanks for release echo bot  sample
However  How do I deploy it on azure?
(Perfectly run on BotFramework Emulator)
Is there any operation guide?
We've need to use it to deploy LineBot for further Project by python
Thanks!!!

Hello,
You can refer to the following comment on a similar Python bot deployment issue which provides the steps to deploy your Python bot on Azure.
Hope this helps. Please try this and let me know if you have any issues.

Thanks for reply
Actually I've try that completely follow the operation. (Use App Service. And for test the echo.  I link it to bot channel service)
But get failure result at last
Also seems some interface had been change
Maybe need some update?

Are you getting an error while you 'Test in Web Chat'?
Yes!!  I got no error from his guide
Until his last part. Test in web chat
Because no description
So I just connect them.
Not really sure how to do?
Possible for publish more detail guide?
Thanks!!

The detailed steps for the last part:

Click on the 'All App service settings' blade on the left side under the App Service Settings section for your bot.

This will open up your app's Overview page which has the basic management tasks like browse, stop, start, restart, and delete. Click on 'Restart' to restart your App Service. Once you click, you will get a pop-up asking if you are sure you want to restart the app, click on 'Yes'(Note: It might take a few minutes for the changes to be propagated).

Then, you can navigate to your Web App Bot and click on the 'Test in Web Chat' blade under Bot management.

Send a message to your Python bot.

Hope this helps.

Thanks ~
And how about App_Id and App_Password?
The guide didn't say where to get them

As per the guide, "You will need to create a new app in the Application Registration Portal and generate a new password. Keep track of the Application Id and Password as you need them in the command below to create the bot registration and later on when we configure the environment variables."
Since the Application Registration Portal has been deprecated, you will need to make use of the 'App Registrations' on Azure.

Click on the 'Azure Active Directory' on the left blade under Favorites. This will open up the Overview page for the directory.

Click on the 'App registrations' under Manage section on the left blade. This page will display all the applications with the options of creating a new registration on the top panel.

Click on the + New Registration option. This will open up the registration page where you would fill in the name of the application, choose the account type(depending on your requirement) and then click on 'Register'. This will create the new app and display the overview page with the application ID, directory ID, display name etc. Copy the Application ID and save it on a notepad or any quick access tool for the next step.

Now click on the 'Certificates & secrets' under the Manage section on the left blade. It will open up the overview page for certificates and client secret. Click on the '+ New client secret' option under Client secrets.

This will open a pop-up which will ask you for a description and select 'Never' option for Expires and click on 'Add'.

Copy the value of the appSecret(Application Password) and save it some place secure as this is the only time you can view the value. If you lose the client secret, then you will have to create a new client secret.

This Application Id and Password will be needed in the 'az bot create' command  to create a new bot registration and later on when we configure the environment variables.
Hope this helps.

Great Thanks for support
Finally Successfully deploy
Will continue on LineBot development on azure webapp
I recommend the document here may merge with the guide
(Let's keep in contact on MS internal Team  Thanks!!!)

Is it possible to make an example
for Azure Bot Service or Azure Bot Channel
about Linebot(python version) Deployment sample?
Currently there's no sample for a merging version for Linebot(python version) with azure service
People usually use Line(something like WeChat) in Asia
I have a LineBot on Heroku Server now
But I hope to move it to Azure  However not sure how to change setting in my code
Thank!!
https://developers.line.biz/en/docs/messaging-api/line-bot-sdk/

Glad that you were able to successfully deploy your bot on Azure. I have put across your recommendation about having a Linebot deployment sample to the botbuilder-python team. Closing the issue as its resolved.