Display pdf as byte-array

Is it possible to display a pdf from a byte-array in memory, instead from a Uri ?

Yes, refer to https://github.com/mozilla/pdf.js/blob/master/examples/learning/helloworld64.html for example.

I was following the example and pdfjs rendered a png instead of a pdf... any ideas?


Adding optional parameters for main.c

The original application did not allow you to choose which example to run, but now you can dynamically select which example to run by adding startup parameters.

For example, the compiled file is called "demo",
example 1(default select index 0):
./demo
example 2:
./demo -e 0
./demo -e 1
...
./demo -e 21
There are currently 22 examples, and you can choose to run different examples using startup parameters.


Infer author_name, email, license from knife.rb if it exists when generating a new cookbook.

I see templates are used for metadata.rb, README, etc. for the cookbook generator, however, I'm not sure how to specify author_name, *email, licence, etc.  Is there any way to read those from knife.rb?

PR for reference: https://github.com/chef/chef-dk/pull/330

I think #792 applies here whereby these settings can be performed this way:
if defined?(ChefDK)
  chefdk.generator.license 'LICENSE'
  chefdk.generator.email 'EMAIL'
  chefdk.generator.copyright_holder 'ME'
end


Use "calibrate" instead of "callibrate"

(the former being the correct spelling)
Feels passive-aggressive, but in certain places (I think only in docs) calibrateModel was used, which caused some problems. So I was going to make a PR to fix these, and figured that I might as well suggest a full rename (if you prefer to keep it I will revert to just changing instances fo "calibrate" to "callibrate".
Also, the general Julia style standard suggests using lowercase only for functions, and only using capital letters for module and type names (https://docs.julialang.org/en/v1/manual/style-guide/#Use-naming-conventions-consistent-with-Julia-base/). Here, calibrateModel suggests you are calling the constructor for a type "calibrateModel", rather than a function returning some other output. You are generally going for camel cases, so might make sense to be consistent with that, but I would at least consider exporting calibrate_model and similar for the functions that a user might call.
(sorry for commenting on code, but figured I'd at least point it out!)

Thanks for pointing out spelling (always happy to get feedback on this). I addressed this in some of the later commits on the Catalyst_integration branch, which now currently is being merged with main see #68 . Also happy for any other feedback on naming in general (as John Green says, branding is hard).
And I am aware of that the style is inconsistent, and that we are generally using camel-case against the Julia style standard. It is a consequence of the repo being started as a master-project where my student used camel-case, and it is something I should change. I have filed an issue on this #69


Possible typo in org.nd4j.linalg.dataset.Dataset.shuffle()

``        arrays.add(getFeatures());
dimensions.add(ArrayUtil.range(1, getFeatures().rank()));
    arrays.add(getLabels());
    dimensions.add(ArrayUtil.range(1, getLabels().rank()));

    if (featuresMask != null) {
        arrays.add(getFeaturesMaskArray());
        dimensions.add(ArrayUtil.range(1, getFeaturesMaskArray().rank()));
    }

    if (featuresMask != null) {
        arrays.add(getLabelsMaskArray());
        dimensions.add(ArrayUtil.range(1, getLabelsMaskArray().rank()));
    }

The second test for featuresMask != null seems like it should be labelsMask != null.  Everywhere else in this class, featuresMask and labelsMask are treated in parallel and independently.
It appears that as currently written, if there is null featuresMask, but there is a non-null labelsMask, the labels will not be shuffled along with the examples.  Would this result in the wrong labels mask being applied to the examples?

Fixed.
Thanks for highlighting this issue. And no, it won't affect labelsMask shuffle.


Made changes to command style and added annotations for find

Codecov Report

Merging #184 (9002d42) into master (9aaba4a) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #184   +/-   ##
=========================================
  Coverage     64.65%   64.65%
  Complexity      573      573
=========================================
  Files           101      101
  Lines          1870     1870
  Branches        191      191
=========================================
  Hits           1209     1209
  Misses          600      600
  Partials         61       61

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


[docs] It would be nice to explain what syntax is used in templates for hits widget

https://community.algolia.com/instantsearch.js/v2/widgets/hits.html#example
Maybe a link or mention to Handlebar somewhere could help users figuring out where the syntax in the example comes from. Is it Handlebar?

Actually it's another implementation of mustache called hogan

But you're totally right, we should mention that somewhere. (or even every time there is a template)

It's only mentionned on the concepts page.

Thanks a lot, I was helping a user and at some point I realized I wasn't sure what the syntax or the language was ;)

should be easy to link it by every template :)

We made it clearer on the new Algolia website. Feel free to reopen if you think we can make it better!


Scripts in footer don't work

Hello,
I've never had a problem with your great starter theme. But today I've downloaded version 3.4. and I cannot get to work putting scripts in footer. if I edit the last parametr in enqueues.php to false instead of true it works alright, but I need my scripts to be placed in the footer. Do you have any idea what's wrong? BTW: If I'm not mistaken Modernizr should be in header not in footer.
Thanks

Hi cafesk8,
Thanks, I just enqueue'd modernizer.js to the <head>, and also removed respond.js altogether. So that's two less scripts being loaded at the end of <body>. So now version 3.4.1.
I don't know why your scripts don't load in the 'footer' (end of <body>). I guess there can't be anything wrong with your enqueue of your script, if as you say changing it to 'false' loads your script into the <head>. (But maybe it will work after I've now cleared this stuff out of there.)
Kind regards,
Simon


Improve lua grammar

The current lua grammar is a little poor, such as:

Many tokens are not catched:

Dose not support tokens after Lua 5.2

Dose not support EmmyLua, whitch is a type annotation system that has become the de facto standard

Since the source project is no longer active (I have created a PR there 3 years ago), I created a new project to provide the grammar file: https://github.com/sumneko/lua.tmbundle/blob/master/Syntaxes/Lua.plist
The effect of the above code after using this grammar file is:

The grammar file has been in my extension for several years and it works fine.
I hope that it can be set as the default lua grammar file of VSCode, so that theme developers can better optimize the color matching for it.

Thanks for reaching out @sumneko. I looked for Lua.plist in https://github.com/sumneko/lua-language-server, but I wasn't able to find it. Can you point me to where in your extension you use the grammar file? Does your extension depend on https://github.com/sumneko/lua.tmbundle?
When adopting a new grammar file in VS Code we want to make sure we're moving to a better supported grammar then the old one. I can see that your extension has regular releases, which is great. I want to understand how the new grammar repo fits into the extension, and whether you'll continue to make fixes for the grammar.

Does your extension depend on https://github.com/sumneko/lua.tmbundle?

Yes, the Lua.plist is https://github.com/sumneko/lua.tmbundle/blob/master/Syntaxes/Lua.plist .
I used it in my extension at https://github.com/sumneko/vscode-lua/blob/master/syntaxes/lua.tmLanguage.json

I want to understand how the new grammar repo fits into the extension, and whether you'll continue to make fixes for the grammar.

In fact I maintain the grammar file by manually modifying the json file, and I used a script in the above project to convert json to plist.
I will countinue make fixes for the grammar, it has been part of my extension before.
After VSCode uses it, I will remove it from my extension and maintain the lua.tmbundle project instead.

That all sounds great, thanks for the answers. We don't require a plist file, a tmLanguage.json file is also good, so no need to maintain a plist if that isn't your preference.
Let's try using https://github.com/sumneko/lua.tmbundle in VS Code at the beginning of our February iteration. That way, the changes will have the entirety of the February iteration to be used by VS Code insiders users before being released.

Is EmmyLua already the standard? I've been using LDoc for a long time so will that be supported?

Is EmmyLua already the standard? I've been stuck with LDoc for a long time so will that be supported? It'd be a matter of supporting -- prefix for doc comment and injecting into --[[ Lua block comments too.

Since I don't use LDoc, I don't support it, but PRs are welcome.
EmmyLua should be the only type annotation system for original Lua, and as far as I know LDoc cannot create or mark types.

@type means a OOP class and @class means data type, for backwards compatibility with LuaDoc.
My main concern is that tags have to be reimplemented as repository rules injected in multiple contexts.

Thank you @sumneko

Reopening for visibility.

@sumneko I was not able to genericise the Lua documentation tags between block and inline comments, so I think I'll open a request on the bundle repo

Sorry I just found that the issues function is disabled in https://github.com/sumneko/lua.tmbundle .
I have enabled it and any issues are welcome!

I have not seen an increase in issues for lua syntax highlighting since switching to the new grammar. Closing as fixed! Thank you @sumneko.


Remove extraneous E2E args

These shouldn't be Makefile args or GHA inputs, we already have a mechanism to specify such args with using and the various *_E2E args.
Resolves: #527
Depends on: https://github.com/submariner-io/submariner/pull/1458

@manosnoam You're not using these Ginkgo options through this tooling, right?

@mkimuram You're not using these args, correct?

plugin and testdir are used here in GHA. focus and skip are expected to be used manually on running make e2e from command line for local test/debug.

Thanks for the info @mkimuram!

plugin and testdir are used here in GHA.

@mkolesnik has a PR to migrate these to using=: https://github.com/submariner-io/submariner/pull/1458

focus and skip are expected to be used manually on running make e2e from command line for local test/debug.

Sounds like we should do your suggestion of adding them "as proper 'ginkgo args' should such a
feature be desired" @mkolesnik?

plugin and testdir are used here in GHA. focus and skip are expected to be used manually on running make e2e from command line for local test/debug.

Expected is one thing, question is if anyone is actually using them.
I prefer to add things that are actively used and not maintain them just for sake of "maybe they'll be used".

Expected is one thing, question is if anyone is actually using them.

Personally, I actually use them. It is helpful in testing only related tests or added tests, locally.
However, I will wait for reply from other people on whether using or planning to use it. Note that at least focus was in submarier-io/submariner before my commit.

FYI: ginkgo's skip and focus are effectively used in k8s's CI, by adding [slow] or [disruptive] tags in test specs and making them in separate CI jobs. These jobs run only on related PR or periodically, not on all PRs. It's not currently utilized in such a way in submariner's project, however it will be worth considering.


Fix threads synchronization in around all

Issue Number

N/A
Overview

62d717d068f29f580371f24ae04a1e03529af2f7
Fix threads synchronization in around all
The issue was that, the main thread was not waiting for the 'resource thread' to be done and to
have cleaned up the resource. In our integration setup, the resource actually spawns an
underlying process! So, not waiting for the resource to be cleared means leaving a process
running even after the tests have exited! So, I added another point of synchronization between
the threads to make sure that the main thread would only exits AFTER the resource has been released.

Comments

bors try


Passing list variables from TerraTest go files to Terraform

I have currently been using TerraTest for testing my Terraform IAC.
Works fine, but in none of the examples I can see how we would pass a list of values, lets say subnet CIDR blocks or a list of Security group ID's from our Go Terratest file to Terraform, as those values expect a list variable type.
Could you also share any information around the httpHelper script? I have been using your examples to base my test files on, but cannot seem get my script working on my own applications such as Jenkins running on port 8080 which was launched using a gold AMI in aws.
I can navigate to the Application on my browser, and curl information from it from my machine where I am running the tests, but still does not seem to work.
There is also logs when I run the test showing the HTML layout, but I think it might be something to do with the InstanceText in which I am passing to the test which makes it fail.
http_helper.HttpGetWithRetry(t, instanceURL, 200, instanceText, maxRetries, timeBetweenRetries)
Thanks,
Michael

Works fine, but in none of the examples I can see how we would pass a list of values, lets say subnet CIDR blocks or a list of Security group ID's from our Go Terratest file to Terraform, as those values expect a list variable type.

Just pass a list :)
myList := []string{"foo", "bar", "baz"}

terraformOptions := &terraform.Options{
  // The path to where our Terraform code is located
  TerraformDir: "../my-module",

  // Variables to pass to our Terraform code using -var options
  Vars: map[string]interface{}{
    "my_list": myList,
  },
}

I have been using your examples to base my test files on, but cannot seem get my script working on my own applications such as Jenkins running on port 8080 which was launched using a gold AMI in aws.

What error do you get? Can you share your log output?

Hi,
I think it might be something to do with the body of the http GET as I am trying to test if my sonarqube is up and working and I do get a Response status: 200 along with all the HTML of sonar, but the test stills fails.

TestPrestaHttpResponse``` 2018-11-28T11:44:55Z retry.go:69: HTTP GET to URL
http://<IP_ADDRESS>:9000
TestPrestaHttpResponse 2018-11-28T11:44:55Z
http_helper.go:27: Making an HTTP GET call to URL
http://<IP_ADDRESS>:9000
TestPrestaHttpResponse
2018-11-28T11:44:55Z
retry.go:81:
HTTP GET to URL http://<IP_ADDRESS>:9000
returned an error: Validation failed for URL http://<IP_ADDRESS>:9000. Response staus: 200. Response body:

<link...continued

The example on the Terratest github with the basic HTML webpage saying "Hello, World!" works grand as it has a basic  with some text! But for other applications where the HTML has alot going on I cannot seem to get the test to Pass.

@brikis98 Thank you, got both working now!!!
Many thanks,
Michael

Great to hear!

Sorry for opening up this conversation, but just for completeness it seems this issue is correlated with:

https://github.com/hashicorp/terraform/issues/17032

Just recently I ran into this issue trying to write a test using a list as input.

Sorry for opening up this conversation, but just for completeness it seems this issue is correlated with:

https://github.com/hashicorp/terraform/issues/17032

Just recently I ran into this issue trying to write a test using a list as input.

i tried passing a list to my variable like this :
Vars: map[string]interface{}{
			"subnet_ids": terraform.Output(t, vpcOpts, "subnet_ids"), // where my subnet is the list received from the output of other module
		},

while this been implemented, i still face issue as when it passes the subnet_ids as the variable it is treated as a string of single unit, for ex. "[subnet-XXXX  subnet-YYYY]" is a string and not a list while the output from the module was a list and not a string.
is there any way out to take the subnet value from the output as a list and not as  string .

Most likely, Terratest is passing the value as a list, but you need to set the type on the subnet_ids input variable to list(string) so that Terraform knows to parse it as a list.

I'm am having similar issue as @rishabhanand26 ,
The destination terraform module variable is configured as list(string):
variable "private_subnets" {
  description = "Cluster private subnets"
  type        = list(string)
}

I pass the variable in a test stage as follows:
"private_subnets":  terraform.Output(t, awsNetworkOpts, "private_subnets")

Getting an error:
 Error Trace:	apply.go:15
        	        aws_infra_test.go:98
        	        test_structure.go:25
        	        aws_infra_test.go:51
 Error:      	Received unexpected error:
        	     FatalError{Underlying: error while running command: exit status 1;
        	     Error: Missing item separator

        	       on <value for var.private_subnets> line 1:
        	       (source code not available)

        	     Expected a comma to mark the beginning of the next item.

        	     Error: No value for required variable

        	       on variables.tf line 14:
        	       14: variable "private_subnets" {

        	     The root module input variable "private_subnets" is not set, and has no
        	     default value. Use a -var or -var-file command line argument to provide a
        	     value for this variable.
        	     }

The actual output from the source module looks as follows:
Outputs:
private_subnets = [
"subnet-xxx",
"subnet-xxx",
]
The var that is passed to the destination module is -var private_subnets=[subnet-xxx subnet-xxx]
Seems like the output always is passed as string, if i pass a list it works.
For me the workaround was to use the  https://github.com/Jeffail/gabs library.
awsNetworkOpts := test_structure.LoadTerraformOptions(t, awsNetworkModulePath)
jsonParsed, err := gabs.ParseJSON([]byte(terraform.OutputJson(t, awsNetworkOpts, "")))
if err != nil {
	t.Error(err)
}

obj, err := jsonParsed.JSONPointer("/private_subnets/value")
if err != nil {
	t.Error(err)
}

var privateSubnets []string
for _, child := range obj.Children() {
	privateSubnets = append(privateSubnets, child.Data().(string))
}

vars := map[string]interface{}{"private_subnets": privateSubnets}

To view the output in json format just fmt.Println(jsonParsed).
Hope it helps someone.

I pass the variable in a test stage as follows:
"private_subnets":  terraform.Output(t, awsNetworkOpts, "private_subnets")

That's your problem right there: terraform.Output returns a string. Use terraform.OutputList instead.

I pass the variable in a test stage as follows:
"private_subnets":  terraform.Output(t, awsNetworkOpts, "private_subnets")

That's your problem right there: terraform.Output returns a string. Use terraform.OutputList instead.

Thank you very much!


Suggestion: Explain ways to store the bot token in a config.

some common ways:

python-dotenv and .env
from config.py import token
yaml/json config file

there is a small mention of these but i think a larger section would be nice

Thanks, implemented in https://vcokltf.re/bot-tutorial/docs/tokens.html :P


Imported Gist JS null => sadfsdfsafsdsdsadf

If a Gist is imported and the Gist only contains a HTML file (with embedded JS in it), the JavaScript pane contains sadfsdfsafsdsdsadf instead of being empty.

Do you have an example of the gist url I can test with?

I couldn't replicated this by the way.

Sure, here's one:
JSBin : http://jsbin.com/gist/f70c9e45c43f40f7dfe1?js,output
Gist : https://gist.github.com/maxkfranz/f70c9e45c43f40f7dfe1

Got it - sorry, I tried with JS rather than not with JS.
I see the issue now.
On Mon, 19 Oct 2015 at 16:05 Max Franz<EMAIL_ADDRESS>wrote:

Sure, here's one:
JSBin : http://jsbin.com/gist/f70c9e45c43f40f7dfe1?js,output
Gist : https://gist.github.com/maxkfranz/f70c9e45c43f40f7dfe1
—
Reply to this email directly or view it on GitHub
https://github.com/jsbin/jsbin/issues/2576#issuecomment-149241837.

Any update? I am still seeing this issue...
And I was using the link from the example page: https://jsbin.com/help/import-gists

No, there's not. There's a PR that was open (rather than "any update"),
which I need to find time to test.
On Thu, 9 Feb 2017, 20:36 Rob Garrison<EMAIL_ADDRESS>wrote:

Any update? I am still seeing this issue...
And I was using the link from the example page:
https://jsbin.com/help/import-gists
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jsbin/jsbin/issues/2576#issuecomment-278765290, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAA1hAkQgRJaf8UykA74EC-y_LPR7xzqks5ra3iPgaJpZM4GLfAZ
.


Website small tweaks and improvements

Description
Website small tweaks and improvements. Now pushes robots.txt to the actual website and cleans up some wording in the readme and website footer.
Fixes #(issue) [optional]
Type of change
Please delete options that are not relevant.

[x] Something else

Scope

[x] This PR comprises a set of related changes with a common goal

If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.

I generated the documentation and it looks good to me. I also checked that the sitemap would be found correctly. If you want to remove all $ characters before commands, I think you missed this these:

https://github.com/MFlowCode/MFC/blob/cfcfb667ea9053e88d68cf55659435f67aa58fc9/docs/documentation/case.md?plain=1#L26
https://github.com/MFlowCode/MFC/blob/cfcfb667ea9053e88d68cf55659435f67aa58fc9/docs/documentation/testing.md?plain=1#L5
https://github.com/MFlowCode/MFC/blob/cfcfb667ea9053e88d68cf55659435f67aa58fc9/docs/documentation/testing.md?plain=1#L15
https://github.com/MFlowCode/MFC/blob/cfcfb667ea9053e88d68cf55659435f67aa58fc9/docs/documentation/testing.md?plain=1#L25
https://github.com/MFlowCode/MFC/blob/cfcfb667ea9053e88d68cf55659435f67aa58fc9/docs/documentation/testing.md?plain=1#L91

Good call. Thanks. The reason to remove $  before commands is so that people can just copy paste them quickly. I will fix these remaining ones then merge.


How can I remember files, so I won't need to reapply it after restart?How to apply the file to the whole project?

Have you tried setting it up in the template?

I have the same issue with Scala, even using the Test template idea doesn't load the envfile when a new testsuite is created. Also as @mamat14 mentioned every time I restart idea the envfile tab resets to default values (all blank and envfile unselected) and I need to load again.
EnvFile version: 3.2.2
IntelliJ IDEA 2021.3.1 (also with the CE edition happens)

Apparently it's something specific to ScalaTest run configuration.
Please create a dedicated issue.


data: compare with K instead of Int

It seems that when terms are sorted with Int rather than K, the K framework will not simplify expressions before they are sent to z3. This means that expressions like:
W0 /Word abs(W1) where we know W1 ==Int 0 to be true will not simplified in the presence of a lemma rule abs(B) ==Int 0 => B ==Int 0 if the condition is requires W1 ==Int 0, but it will if the condition is requires W1 ==K 0 with lemma rule abs(B) ==K 0 => B ==K 0.
I'm not sure whether you consider this "intended behaviour" of K or not. If this is intended, I would suggest to change side conditions in kevm as suggested by this PR, if it is not intended, I can write some regression tests for this. Ping @daejunpark @dwightguth

The issue I was having due to this is no longer an issue so I will close this PR. Someone may still want to check out the sorting curiosity though. For that I made this regression test https://github.com/MrChico/k/tree/int-sort/k-distribution/tests/regression-new/int-sort

I put here @denis-bogdanas's response to the above regression test example.

I studied your example. There's no problem with kprove. It's a bad idea to write lemmas for =/=K because rules in domains.k will rewrite the term to notBool _ ==K _, and then your lemmas will no longer apply.
If you use these lemmas instead, both specs will pass:
rule abs(B) ==K 0 => B ==K 0     rule #unsigned(X) ==K 0 => X ==K 0
Run the specs with options --deterministic-functions --log-rules --log-func-eval, on a recent enough K, to see what happens. Last option will print evaluation result of each functional term.

From https://matrix.to/#/!MfVXcmpKuyudZHcqil:matrix.org/$15567358071293037jsChL:matrix.org?via=matrix.org&via=feneas.org&via=kde.org


dont work on specific laptop

Godot version
4.1.2 stable
System information
windows 10, ram 4gb, intel HD graphics 400, intel celeron N3060
Issue description

dont work at startup
Steps to reproduce
open the program
Minimal reproduction project
.

Hi
Braswell GPU is too old for Godot.
Things you can try:

Update your drivers to latest (Try this first!)
Try Linux, AFAIK there are Vulkan drivers for Braswell on Linux (if you do this, disable MSAA because there is a known issue with MSAA on Braswell GPUs and Godot).
If you can build Godot by yourself from source code, you could post the callstack of where it is crashing, it may help us workaround whatever OpenGL driver bug we triggered that caused it to crash.

Cheers

Sadly, we cannot fix every problem with old hardware or drivers. As an addition to speaker above: You can also try to use the previous Godot version, which has a fully capable OpenGL renderer. I suppose this issue is resolved, otherwise it may stall forever, so closed.


:CodeSnap command not copying anything on X11 KDE Plasma

this seems to be somehow related to the arboard library.
see my issue there.

Thx for opening this issue for X11 KDE plasma, I'm using Hyprland Wayland, and I haven't tested CodeSnap.nvim on this DE, If you're interested, can u help me to track this issue and test it?

@yoyobara  Is the issue solved now?

@Uzaaft yeah it seems to work now. thanks!


JSON file to import into FoundryVTT

As requested on Discord here's the request to add a download button to get a JSON file to import into FoundryVTT.
I'd see that button either at the end of character creation where you can export to PDF and/or the permanent URL for characters,
Thanks for the great work.

I've implemented a first version of this functionality, accessible from the view pages for main and supporting characters.

I've implemented a first version of this functionality, accessible from the view pages for main and supporting characters.

This looks great!  Thanks

This looks great!  Thanks

Is there a possibility of doing this for the Fantasy Grounds module? It would probably be an xml file? I'll poke around the FG version and see what it has.

It's almost-certainly possible. I don't have Fantasy Grounds, myself, so I'd need the output of that poking around to help me, and I'd probably need someone to test things out.

It's almost-certainly possible. I don't have Fantasy Grounds, myself, so I'd need the output of that poking around to help me, and I'd probably need someone to test things out.

Attached is an exported character (they export as xml which github evidently doesn't support, so I saved it in notepad++ as .txt with no changes). This character was generated through the FG "character creator" which walks people through the lifepath creation process. Characters can also be created from scratch, which I assume would yield different results (especially in the attribute and discipline sections, which it looks like have the calculations from the lifepath steps—while a scratch character can have those options drag-and-dropped, if someone were to type them or change them manually I am currently unsure what it would look like).
I will endeavour to get other examples to you, specifically a drag-and-dropped character and a totally manual one, but not tonight.
The thing about FG is that most talents don't actually have mechanical effects, and must have their effect be manually done in FG. So that probably makes an export easier. You can make "custom" talents as well, so it should be possible to see what an export of a character with talents and lifepath options not covered in the available FG modules looks like, which would make an export of a character with Delta Quadrant stuff, for example, possible from this tool to an FG-readable xml.
Vulcan Test Export.txt

This bit, here, looks a bit hard to produce:
  <control>
    <careerevent type="number">0</careerevent>
    <edit type="number">7</edit>
    <environment type="number">0</environment>
    <misc type="number">0</misc>
    <species type="number">1</species>
    <total type="number">11</total>
    <training type="number">1</training>
    <upbringing type="number">2</upbringing>
  </control>

It looks like a summary of how the different points were applied (a base of 7, +1 because Vulcan species, +2 because of upbringing, +1 because of Starfleet training). I might be able to derive that at the time a character is first generated; the "view" version of the character doesn't currently save that information.
The links might also be hard. The format for some of them might be doable; I'll need to think about it. How many sources do they currently support?
And am I reading it right that you gave the character focus names like "upbringing focus"?

I don't think that the way the points are gained/calculated matters to FG mechanically (I assume that the dev of the set kept things notated this way for transparency/better record keeping). That's why I'll be creating a character manually, to see what that looks like (I will also edit Mr. Vulcan Test manually to see how that goes). I'm away from my FG computer, but as I recall you can just type a new number in, or do a "temporary" change which changes the total but has an indicator number next to the stat of how much it was changed by, which should be interesting to see the xml of.

And am I reading it right that you gave the character focus names like "upbringing focus"?

Correct. For the steps that have a focus or a value, I put [step] [item]. It seemed like that would be easier.

The links might also be hard. The format for some of them might be doable; I'll need to think about it. How many sources do they currently support?

They currently support the Starfleet core book and Alpha Quadrant. Based on how quickly Alpha came out after the core, I assume the other quadrant books will also be out relatively soon. I will not be purchasing anything other than the core from FG (maybe Klingon core if it includes updated milestones and the House system).
The links are interesting, and another reason we need to see a manual/custom character. Not only can things be typed in manually to a character sheet, it is also possible to create custom lifepath options, which link in the same way as the rules-as-written ones on the character sheet, but I assume don't link to "reference.environment.id-00001@Star Trek Adventures Core Rulebook" (e.g.).
I'll muck about this evening (maybe) and do some more exports. I still strongly suspect that this version of an export is more complicated than a custom character will be, or if I just type in stats from a character created using this tool.
Should FG importable stuff be kept in this issue, or moved to an FG-specific issue?

Yeah, an FG-specific issue is probably a good thing.

So, it's been a few months since this was originally opened, but I think I've got a working version of this export working.
There are some parts of the output that are a little bit opaque, and as a result, I'm not 100% sure how well this works for people who are not me. I'm able to fairly seamlessly export characters (main characters, npcs, etc.) from the character creator and import them into an instance of Foundry running on my machine.
When I try CrafyAF's attached character, I have some issues with images.

Awesome! I'll test right away!

Seems to work perfectly!

Great to hear!


Improve timetable responsiveness

Codecov Report

Merging #79 into master will increase coverage by 0.08%.
The diff coverage is 3.33%.

@@            Coverage Diff             @@
##           master      #79      +/-   ##
==========================================
+ Coverage   58.17%   58.25%   +0.08%
==========================================
  Files          76       76
  Lines        5927     5917      -10
==========================================
- Hits         3448     3447       -1
+ Misses       2479     2470       -9

Impacted Files
Coverage Δ

...ib/pages/timetable/service/uni_event_provider.dart
0.00% <0.00%> (ø)

lib/pages/timetable/view/timetable_page.dart
45.73% <100.00%> (-0.06%)
:arrow_down:

Continue to review full report at Codecov.

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


TFS Extension Auto-Updating, Extension Version Compatibility List, and Use of Newer api-version Breaks Compatibility with TFS 2017

Azure DevOps Extension you are using
Set Variable on a Build Definition
Where are you running it?
TFS 2017 Version 15.117.27414.0
Version of Extension/Task
richardfennellBM.BM-VSTS-BuildUpdating-Tasks-1.14.1
Expected behaviour and actual behavior
This issue is somewhat related to issue #497 but is not exactly the same, as will be described below.
Attempting to run the Set Variable on a Build Definition task to increment a build variable fails with the following error message: "Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (404) Not Found"
Steps to reproduce the problem

Have a version of richardfennellBM.BM-VSTS-BuildUpdating-Tasks that is compatible with TFS 2017 installed on TFS 2017 Version 15.117.27414.0 (e.g. 1.4.1, for which the build at https://dev.azure.com/richardfennell/GitHub/_build/results?buildId=1104 is no longer available).
Include the Set Variable on a Build Definition task in a build definition
Configure the Set Variable on a Build Definition task to increment a build variable
Allow TFS 2017 Version 15.117.27414.0 to run for a period of time (at least a day or more); at some point, it will automatically attempt to update installed extensions  (not sure if this might have been triggered sometime following the release of richardfennellBM.BM-VSTS-BuildUpdating-Tasks version 1.14.1); please refer to the links below regarding this extension auto-update functionality.

https://social.msdn.microsoft.com/Forums/vstudio/en-US/f6d64e51-5c1b-4c9b-b783-03fc77dfacfb/tfs-2017-buildrelease-extension-updates
https://docs.microsoft.com/en-us/visualstudio/releasenotes/tfs2017-relnotes#Marketplace
https://social.msdn.microsoft.com/Forums/en-US/ba106320-77e2-4c49-a1ff-a0a1a664db5b/how-can-i-disable-automatic-updates-for-the-onpremise-tfs-2017-marketplace-extensions-

The richardfennellBM.BM-VSTS-BuildUpdating-Tasks-1.14.1 extension apparently includes in its metadata that it is compatible with TFS 2017
Since there is a new version and richardfennellBM.BM-VSTS-BuildUpdating-Tasks-1.14.1 does not flag that it is incompatible with TFS 2017, TFS automatically updates the richardfennellBM.BM-VSTS-BuildUpdating-Tasks extension to 1.14.1  (as noted in issue #497, the only real incompatibility is that the api-version is newer than 3.0; however, in testing and troubleshooting related to issue #497, there did not appear to be any actual dependency in "Set Variable on a Build Definition"  requiring the use of a newer api-version, so use of a newer api-version appeared to be unnecessary)
Queue the build definition that uses the "Set Variable on a Build Definition" task
Build fails with the error message noted in the "Expected behaviour and actual behavior
" section above

Additional information
Based on testing that was done more specifically in relation to issue #497, it appeared there was nothing within the "Set Variable on a Build Definition" task that actually required use of an api-version newer than 3.0 (c.f. commit https://github.com/rfennell/AzurePipelines/commit/19f489ba140456c66174b385ca85120db2fed544#diff-765596521f90e301d3fd98e2a7f78de7 ).
Question
Is there any specific known functionality within the latest version of the "Set Variable on a Build Definition" task in the richardfennellBM.BM-VSTS-BuildUpdating-Tasks extension that is known to require use of an api-version newer than 3.0 that perhaps might have been missed when reviewing api-version differences?

Assuming the older version used to work, it sounds like there is a problem with using the PowerShell3 execution engine for the task.
There has been no functional change to this extension for a year so I suggest you roll back to an older version. The list of versions can be found https://dev.azure.com/richardfennell/GitHub/_build?definitionId=28&_a=summary

A check does show I missed setting the min agent version
powershell3 handler

Added in 1.95.1
Updated in 1.97 to propagate Data property for endpoints

Yes, running the latest version of TFS 2017, our agent version is 2.122.1.
One of the problems with rolling back (which we have done) is that when TFS 2017 goes out again and checks for updates, it "rediscovers" that there is a new version available, which turns this into a recurring cycle.
On the Marketplace page at https://marketplace.visualstudio.com/items?itemName=richardfennellBM.BM-VSTS-BuildUpdating-Tasks , it is currently showing a "Last Updated" time of August 4, 2019, so perhaps might be what triggered this recent spate of automatic extension updates.
Based on discussion in issue #497, it seems version 1.4.1 was figured to be the cutoff for TFS 2017; however, the GitHub version list at https://dev.azure.com/richardfennell/GitHub/_build?definitionId=28&_a=summary doesn't appear to go back that far, and the direct link given in issue #497 of https://dev.azure.com/richardfennell/GitHub/_build/results?buildId=1104 no longer appears to be valid ("Build not found").
I concur with the MSDN post I linked in the initial post above that there should be a way within the server to turn off the completely automatic extension update feature introduced in TFS 2017, but alas....

There should be no issue with that agent version.
I need to build a TFS 2017 server and give it a try, I don't check older versions on release thee days. Most of the testing (and usage of the tasks) is against Azure DevOps Services

It seems that perhaps that the hangups might be in the calls the task makes from the build agent to the application tier.
Using commit https://github.com/rfennell/AzurePipelines/commit/19f489ba140456c66174b385ca85120db2fed544#diff-765596521f90e301d3fd98e2a7f78de7 as an example—
Pre-commit, line 28 was as follows:
$uri = "$($tfsUri)/$($teamproject)/_apis/build/definitions/$($buildDefID)?api-version=2.0"

Post-commit, line 28 was then as follows:
$uri = "$($tfsUri)/$($teamproject)/_apis/build/definitions/$($buildDefID)?api-version=4.0"

On that same commit web page, lines 77 and 161 were similarly changed from api-version 2.0 to 4.0.
If the value of the api-version query string parameter is "3.0" instead of "4.0", then those web service calls seems to work with Visual Studio 2017.  As we have TFS 2017 right now, though, I can't say whether newer TFS / Azure DevOps versions might for some reason require that higher api-version.

I have a matching test harness that shows the same problem, I can have proper look into it now

1.15.1 just been shipped this tests fine on TFS 2017 and Azure DevOps
I can't see any obvious reason I moved form 2.0 to 4.0 API calls, sorry for the problems it has caused

All has been working well now.  Thank you for not only providing this fix but also for making these extensions available in the first place.
As an FYI, should anything ever arise in the future necessitating use of an api-version newer than 2.0, it appeared that 3.0 would also work with TFS 2017 (just not 4.0 and above).


apply black before refactoring

I ran soorgeon refactor on this notebook: https://www.kaggle.com/code/cdeotte/xgboost-starter-0-793
after fixing the headings and the function that uses global variables. I got this error:
  File "/Users/Edu/dev/soorgeon/src/soorgeon/io.py", line 515, in find_inputs_and_outputs_from_leaf
    (_, candidates_in, candidates_out) = find_for_loop_def_and_io(
  File "/Users/Edu/dev/soorgeon/src/soorgeon/io.py", line 104, in find_for_loop_def_and_io
    raise ValueError(f'Expected a node with type "for_stmt", '
ValueError: Expected a node with type "for_stmt", got: <ExprStmt: df = df.merge(importances[k], on='feature', how='left')@4,25> with type expr_stmt
Error: An error occurred when refactoring notebook.

and it failed. I realized it's because of this for loop:
for k in range(1,FOLDS): df = df.merge(importances[k], on='feature', how='left')

I realized that applying black and rerunning it fixed the issue. that's an easy fix for many of this edge cases; so I think we should apply black on the notebook before running soorgeon refactor
here's the notebook. note that I changed the extension from ipynb to txt since github wont let me upload it with ipynb extension
xgboost-starter-0-793.txt

Hi, is Rod.
Made this change & apparently is working, but would like your input.
Basically, clean_mudule.basic_clean(nb_path) already implements this logic of applying black, so now is also run before export.refactor(...) (in cli.py). But I could be missing something.

please open a PR with your changes, that will help me evaluate the solution

Fixed unit-tests by adding option to disable string normalizations (aka do not mess with single quotes) when applying black. The reason is that many tests were failing because they use regex to that match single quotes.

Submitted a PR to ploomber/ci-notebooks that should fix the integration-tests on Soorgeon.  The reason is that those notebooks are downloaded by the Soorgeon integration-tests workflow & converted to dags. Those convertions are failing because of errors in code in those notebooks.

thanks for the patience! can you push a new commit to re-trigger the CI?
git commit --allow-empty -m "trigger ci"

Done.
Tests passed!

apologies for the delay @rrhg; I'll review this in the next 1-2 days. thanks for your patience and for your contributions!

Thanks. Take your time. Is it posible to assign issue 65 to me ?


Some emojis appear with a missing character in addition of the emoji itself

Describe the bug
Using a supported emoji as part of a menu button, some emojis are rendered correctly, others are rendered AND an additional missing character box is also rendered.
To Reproduce
egui::menu::menu_button(ui, "📄 File", |ui|  { ... });

Emoji
Result

📄
OK

🔎
OK

👁
Bug

🗄
Bug

Expected behavior
No error box rendered.
Screenshots

Desktop (please complete the following information):

OS: Win11

These emojis have modifiers, and I'm guessing egui doesn't support that at the moment. According to #56, egui doesn't support "all of Unicode" yet. You can always paste the emoji on a TextEdit (like the Font Book in the demo app) and copy only the first character to get the unmodified version, like 👁 and 🗄.

Ah yes that's quite possible, I pasted them from the Windows dialog Win+. and I didn't think about modifiers. I'll check and confirm, thanks for the tip.


import scss file within jsx file not working

Hi there fourseven,
This plugin is great, though am having some issues with importing an accompanying scss file into my react jsx component. I dug through the issues log as well as google and can't seem to figure this out. Is there any way to import an scss file into a jsx file from the same directory?
file structure:
-imports
--features
---invite-form
----invite-form.jsx
----invite-form.scss
React component:
import React from 'react';
import './invite-form.scss';
const InviteForm = (props) => (
this is a form
);
export default InviteForm;

@centinel3 did you find a solution?

same issue here

This would be great to allow for better css code-splitting!

It works well for me.
I think your issue is not with importing the scss file, I struggled to understand why the app crashed when the scss file had the same filename as the .jsx file.
Make sure you import your JSX file with the .jsx extension when a scss file has the same filename in the directory; otherwise it will import randomly the scss file instead (because import is async).
do : import X from '/imports/..../X.jsx' instead of import X from '/imports/..../X'


open geojson: set encoding

Manually set the encoding in geopandas.read_file. Alternatively we could probably also do in_file = open(path, encoding="utf8") if you prefer (untested).
This should eliminate the UnicodeDecodeError so I removed this part from the README. Let me know if you disagree.

Actually, this does not work for me:
df = geopandas.read_file(path, encoding="utf8")

Could you be more specific? Does it not read the data or with the wrong encoding? What is the error? Do you think using open(path, encoding="utf8") would work?
I am actually a bit surprised - I use this pattern in regionmask (which does have a fair number of users) and have not heard any complaints. So it would be interesting to get to the bottom of this. What OS etc. are you using? I assume the packages should not matter, as they are quite strongly constrained in your requirements file.
https://modwsgi.readthedocs.io/en/master/configuration-directives/WSGIDaemonProcess.html -> locale could also be relevant?

That seems to work for me as well.


pre-commit hook that fails if there's no changelog entry on the merge base against default branch

👍

TBH, I don't use pre-commit hooks, so I'm not sure what form this would even take.  Do you have an example I could crib from?

I do not, but perhaps @asottile might have something on hand 🤔

I don't think this really makes sense as a pre-commit hook -- you need the whole context of a branch and an upstream -- probably makes more sense as a pull request check


cosmo-eccodes-definitions: Update maintainers

@petrabaumann I'm leaving MeteoSwiss. So this package needs a new maintainer. Are you willing to adopt it? Since you create new cosmo-eccodes-definitions, I think you would be a fit.

Hi Dominic
Would you explain to me, what I have to do as a maintainer? Then I would accept to take the responsibility for eccodes-cosmo-resources.
Best regards
Petra
From: Dominic Hofer @.>
Sent: Tuesday, November 26, 2024 4:48 PM
To: C2SM/spack-c2sm @.>
Cc: Baumann Petra @.>; Mention @.>
Subject: [C2SM/spack-c2sm] cosmo-eccodes-definitions: Update maintainers (PR #1034)
@petrabaumannhttps://github.com/petrabaumann I'm leaving MeteoSwiss. So this package needs a new maintainer. Are you willing to adopt it? Since you create new cosmo-eccodes-definitions, I think you would be a fit.

You can view, comment on, or merge this pull request online at:
https://github.com/C2SM/spack-c2sm/pull/1034
Commit Summary

f9767f8https://github.com/C2SM/spack-c2sm/pull/1034/commits/f9767f8f8242a1b1f9d0627b77d7f94bc7398bb2 cosmo-eccodes-definitions: Update maintainers

File Changes
(1 filehttps://github.com/C2SM/spack-c2sm/pull/1034/files)

M repos/c2sm/packages/cosmo-eccodes-definitions/package.pyhttps://github.com/C2SM/spack-c2sm/pull/1034/files#diff-30ade49d1bd223c98e2b16898fcb3a54ba634eefa0cceb58f6c784308c531315 (2)

Patch Links:

https://github.com/C2SM/spack-c2sm/pull/1034.patch
https://github.com/C2SM/spack-c2sm/pull/1034.diff

—
Reply to this email directly, view it on GitHubhttps://github.com/C2SM/spack-c2sm/pull/1034, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AD7KHNHDEXQFNXDIM3IGEK32CSJZJAVCNFSM6AAAAABSQYIWWSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGY4TKMJXGI3DSOI.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Hi Petra
As a maintainer you would be asked to review pull requests, which change this package description. By "package description" I mean the code in repos/c2sm/packages/cosmo-eccodes-definitions/package.py. If problems pop up with this package or package description, people would first contact you for help.
I think it would be nice if you would add new versions, deprecate and remove old and unused versions in the package description, not because you are a maintainer, but because you know what is used, when new versions are released, and what can be deprecated. Spack-c2sm developers will help you integrate, debug, and test new versions in spack-c2sm.
Would you do that?

Anyone can review any PR.

Since <IP_ADDRESS> is currently the highest version number listed in this package description,
<EMAIL_ADDRESS>type=('build', 'link', 'run'), when='@<IP_ADDRESS>:')
and
<EMAIL_ADDRESS>type=('build', 'link', 'run'), when='@<IP_ADDRESS>:'<IP_ADDRESS>)
are technically equivalent, because @<IP_ADDRESS>: means "<IP_ADDRESS> and higher". But since they are equivalent, such a refactoring would be easy to review.

Anyone can review

Thanks for the explanation.


Can't seem to get test data to load.

I first want to demo this to the team and then write a custom collector for our deploy manager.
Guide seemed easy enough.
MongoDB set up and user set up
API starts just fine though not hooked up to anything besides the mongo instance
UI layer set up
I run with:    gulp serve --local true
Starts just fine, but no data anywhere. Everything is blank, search on the dashboards does nothing, and all the tabs do not have any data.   The log in doesn't work (not surprised as no ldap added).  API light is green but as I understand it, it should just be napping all the default test data.
Any pointers on what I am doing wrong would be much appreciated = ]

@htvan1  - start collectors (github,jenkins,jira,Sonar,.etc) to get data populated to mongo and to UI. You should be able to do standard login by adding below property in your api properties
auth.authenticationProviders=STANDARD
In standard login, you can signup and create users.

Thanks, that definitely helped, I can log in and create empty boards.  I spun up a docker jira instance to connect to, so I could watch the data being pulled in.  After some set backs I got stuck on the team field... We are not using the Temp plug in.  I tried to make my own custom field one, and I get java.io.FileNotFoundException: http://localhost:[]/rest/tempo-teams/1/team  Any thoughts on that?


fix the handling of EASession()

fix the handling of EASession() when the session failed

Thank you.


NC4HW4 layout support？

I wonder if there's any plan on the NC4HW4 layout? This layout can obviously improve the convolution operator's performance. So why don't compute library support it ?

Hi @daoxian
ACL aligns with the data types found major APIs like tflite and nnapi.
Could you please provide to a model or use-case where NC4HW4 brings a considerable improvement?

https://arxiv.org/pdf/2002.12418.pdf


dynamically skip models based on the result of preceding models

Is this your first time submitting a feature request?

[X] I have read the expectations for open source contributors
[X] I have searched the existing issues, and I could not find an existing issue for this feature
[X] I am requesting a straightforward extension of existing dbt functionality, rather than a Big Idea better suited to a discussion

Describe the feature
I want to skip  a model based on a query applied on other model in the same "dbt run"
Describe alternatives you've considered
No response
Who will this benefit?
everyone who want to skip models based on result of other models in the same execution
Are you interested in contributing this feature?
No response
Anything else?
No response

thank you for replying, but i have timestamp field based on execution time of each command


simple convolution outputs not matching with hand calculation and cmsis-nn simp_conv function outputs

Hi @meenchen @RaymondWang0,
context: I am trying to run a simple convolution layer (by using convolve_s8_kernel3_stride1_pad1 function)
and trying to compare the outputs with hand calculation and also with cmsis-nn simple convolution outputs, also trying to compare the timing results for the layer.
Issue: The outputs of (convolve_s8_kernel3_stride1_pad1 function) are not matching with the hand calculated outputs please refer to the attached code snippet below.
FYI: Hand calculated outputs got matched with cmsis-nn simple convolution function.
My question is am I calling correct simple convolution function or is there any other simple convolution function to test the basic convolution using mcunet kernel.
`
#include "arm_math.h"
#include "arm_nnfunctions.h"
#include "arm_nnsupportfunctions.h"
#include "img2col_element.h"
#include "tinyengine_function.h"
#include<stdio.h>
#define CONV_WT_M4 {0, -1, 1, -1, 0, -1, 0, -1, -1, 0, 1, 1, -1, 1, 1, 0, 1, -1, 1, -1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, -1, 1, 0, 0, 0, -1, -1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, -1, -1, -1, 0, 0, 0, 0, 0, 0}
const int8_t in_data[36] =
{
1, 2, 0, 2, 1, 2, 1, 0, 1, 2, 2, 2, 2, 1, 0, 2, 2, 0, 2, 2, 0, 0, 1, 2,
2, 0, 2, 0, 0, 1, 0, 0, 1, 0, 1, 0
};
#define CONV_BIAS_M4 {0, 0}
const int8_t out_data[18] =
{
-2, -1, 4, -2, 4, -1, -1, 7, 1, -1, -5, -2, 3, 3, -2, -3, 1, 1
};
#define CONV_IN_DIM_M4 3
#define CONV_IN_CH_M4 4
#define CONV_KER_DIM_M4 3
#define CONV_PAD_M4 1
#define CONV_STRIDE_M4 1
#define CONV_OUT_CH_M4 2
#define CONV_OUT_DIM_M4 3
#define CONV_BIAS_LSHIFT_M4 0
#define CONV_OUT_RSHIFT_M4 0
static const q7_t conv2_wt[CONV_IN_CH_M4 * CONV_KER_DIM_M4 *
CONV_KER_DIM_M4 * CONV_OUT_CH_M4] = CONV_WT_M4;
static const q7_t conv2_bias[CONV_OUT_CH_M4] = CONV_BIAS_M4;
q7_t scratch_buffer_2[92160];
q15_t * buffer2 = (q15_t *) scratch_buffer_2;
q7_t output_data[CONV_OUT_DIM_M4 * CONV_OUT_DIM_M4 * CONV_OUT_CH_M4];
static const q7_t conv2_out_mul[CONV_OUT_CH_M4] = { 1 };
static const q7_t conv2_out_shift[CONV_OUT_CH_M4] = { 0 };
int success_or_not = !tinyengine_status;
int status =
convolve_s8_kernel3_stride1_pad1 ((const q7_t *) in_data, CONV_IN_DIM_M4,
CONV_IN_DIM_M4, CONV_IN_CH_M4, conv2_wt,
conv2_bias, conv2_out_shift, conv2_out_mul,
0, 0, -128, 127, (q7_t *) output_data,
CONV_OUT_DIM_M4, CONV_OUT_DIM_M4,
CONV_OUT_CH_M4, buffer2, 0);
if (success_or_not != status)
{
printf ("Function call Failed\r\n");
}
else
{
printf ("Function call Passed\r\n");
}
`

Expected outputs:
channel 0
-2   -1    4
-2    4   -1
-1    7    1
channel 1
-1   -5   -2
3    3   -2
-3    1    1
#############################################
MCU simp conv outputs
channel 0
0    1    0
1    0    1
0    1    0
channel 1
1    0    1
0    1    0
1    0    1

韩松是个矮子，还是老处男，哈哈哈！

Hi @meenchen @RaymondWang0, can you please look into it and help me on this.

Hi @meenchen @RaymondWang0, after adjusting the multiplier
to static const q7_t conv2_out_mul[CONV_OUT_CH_M4] = {2, 2}; I see that the outputs are getting almost matching with the hand calculated outputs.
can u please check  any other variable I need to modify.
Updated MCU outputs:
MCU OUTPUTS
channel 0
-2   -1    0
-2    0   -1
-1   -1    1
channel 1
-1   -1   -2
-1   -1   -2
1    1    1

Hi @brainchip-india,
Sorry for the late reply and thanks a lot for reporting this issue. This kernel is not covered in our test since we usually use convolve_s8_kernel2x3_inputch3_stride2_pad1.c in our models. We will check this out and see what's the issue.

#define CONV_IN_DIM_M4 6
#define CONV_IN_CH_M4 4
#define CONV_KER_DIM_M4 3
#define CONV_PAD_M4 1
#define CONV_STRIDE_M4 1
#define CONV_OUT_CH_M4 2
#define CONV_OUT_DIM_M4 6
#define CONV_BIAS_LSHIFT_M4 0
#define CONV_OUT_RSHIFT_M4 0
#define CONV_OUT_SHIFT_MCU 27
fixed the issue with the above parameters, understood what's going on inside @meenchen thanks for the help
feel free to reopen if anyone facing the issue.

Hi there,
I tried running a similar example on STM32F411RE. The driver code is:
`
#include "arm_math.h"
#include "arm_nnfunctions.h"
#include "arm_nnsupportfunctions.h"
#include "img2col_element.h"
#include "tinyengine_function.h"
#include <stdio.h>
#define CONV_WT_M4 {0, -1, 1, -1, 0, -1, 0, -1, -1, 0, 1, 1, -1, 1, 1, 0, 1, -1, 1, -1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, -1, 1, 0, 0, 0, -1, -1, 1, -1, -1, -1, 1, 1, 1, 1, 1, -1, -1, -1, 1, 0, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, -1, -1, -1, 0, 0, 0, 0, 0, 0}
const int8_t in_data[36] =
{
1, 2, 0, 2, 1, 2, 1, 0, 1, 2, 2, 2, 2, 1, 0, 2, 2, 0, 2, 2, 0, 0, 1, 2,
2, 0, 2, 0, 0, 1, 0, 0, 1, 0, 1, 0
};
#define CONV_BIAS_M4 {0, 0}
const int8_t out_data[18] =
{
-2, -1, 4, -2, 4, -1, -1, 7, 1, -1, -5, -2, 3, 3, -2, -3, 1, 1
};
#define CONV_IN_DIM_M4 6
#define CONV_IN_CH_M4 4
#define CONV_KER_DIM_M4 3
#define CONV_PAD_M4 1
#define CONV_STRIDE_M4 1
#define CONV_OUT_CH_M4 2
#define CONV_OUT_DIM_M4 6
#define CONV_BIAS_LSHIFT_M4 0
#define CONV_OUT_RSHIFT_M4 0
#define CONV_OUT_SHIFT_MCU 27
static const q7_t conv2_wt[CONV_IN_CH_M4 * CONV_KER_DIM_M4 * CONV_KER_DIM_M4 * CONV_OUT_CH_M4] = CONV_WT_M4;
static const q7_t conv2_bias[CONV_OUT_CH_M4] = CONV_BIAS_M4;
q7_t scratch_buffer_2[92160];
q15_t * buffer2 = (q15_t *) scratch_buffer_2;
q7_t output_data[CONV_OUT_DIM_M4 * CONV_OUT_DIM_M4 * CONV_OUT_CH_M4];
static const q7_t conv2_out_mul[CONV_OUT_CH_M4] = {2, 2};
static const q7_t conv2_out_shift[CONV_OUT_CH_M4] = { 30, 30 };
int main(){
//int success_or_not = !(tinyengine_status.STATE_SUCCESS);
int status = convolve_s8_kernel3_stride1_pad1((const q7_t *) in_data, CONV_IN_DIM_M4,CONV_IN_DIM_M4, CONV_IN_CH_M4, conv2_wt,conv2_bias, conv2_out_shift, conv2_out_mul,0, 0, -128, 127, (q7_t *) output_data,CONV_OUT_DIM_M4, CONV_OUT_DIM_M4,CONV_OUT_CH_M4, buffer2, 0);
}
`
The out_data buffer at the end of the function call either contains incorrect values (0,127,-128 etc) or I get a hardFault exception. Is there any chance you could provide the code that worked for you as well as the board you tested it on? The results you mentioned should be on the out_data buffer, is that correct?

Hi @johnk991 attaching the main.c and params.h header file, I modified original mcunet main.c so please ignore other code. yes the results posted are from output_data_buffer.
main_code_and_params.zip

Hi @brainchip-india . Thank you so much! I have 2 questions:

Have you understood what the LSHIFT, RSHIFT and OUTSHIFT parameters do? If so could you explain how you configured them?
Have you also performed inference to validate the accuracy using test data? If so, is there any chance you could share the code?

Hi @johnk991, for the 1st question I have not gone much into the code for LSHIFT and RSHIFT (I didn't saw any similar params in CMSIS-NN functions so I made those params to value 0), and the OUTSHIFT is how many times u shift the outputs (if you don't know the exact value just brute force with the for loop and find the value for which it satisfies the outputs match and back-trace the code, at the beginning I did the same LoL).
For the 2nd question: No I didn't tried any real model application, just I have validated the test data with CMSIS basic and fast functions and also manually hand calculated the conv layer which is matching with mcunet func outputs and it is already there in the attached zip file.


fix typo

@priyaravi20 @jstock03

@zhouwangzw : Thanks for your contribution to the Azure documentation! The author, @zhouwang, has been notified to review your proposed change.

#sign-off

#sing-off

#sign-off

#sign-off

@zhouwangzw - Authors should work in the private repository. For more info, see https://review.docs.microsoft.com/en-us/help/contribute/contribute-authors-in-public-repo?branch=master. If you had worked in the private repo, this change would have gone through upon sign off automatically.


VSTS agents - java memory is not getting released

Hi,
We are running Junit test cases using Ant build tool in vso agents (Linux machines).
This VM RAM is 28 GB. We are running 2 agents in one Linux machine.
When Junit test cases are running, 27 memory is getting consumed which is not getting released completely. Due to which when next VSTS tests starts, unable to execute test cases due to low memory.
Can you please let us know what is the issue here with vso agents?

This is likely not an agent or task issue.  The task is simply calling the ant cmd line tools.
Have you looked into which process is using that memory?
Note that we also run the task and the worker process out of proc so the process (and any memory it consumed) goes away after the task and job run.
Also include what you are using.  On-prem?  which version?  VSTS?  which agent version?  etc...
Run a cmd line or script task after your tests to dump process info.

Hi @penupati, is this still an issue for you and something we can help with?  Otherwise, I will close this issue.  Thank you.

Hi @penupati, thank you for reporting this issue.  I will close it for now, but please do not hesitate to comment or reopen it if we can assist you in any way.


fix(app): Handle the crash happening while qr code

If you enter any random string in the qr code scanning text field in the simulator, that is handled now as well.
Signed-off-by: Talwinder kaur<EMAIL_ADDRESS>

Handle the crash happening while qr code

I think your commit & PR title are missing some words. I think what you mean is something like:

Add exception handling during the QR code scanning process

?


WFLY-7617 Remove workarounds for WFCORE-1941

Jira
https://issues.jboss.org/browse/WFLY-7617
Needs core upgrade.

https://issues.jboss.org/browse/WFCORE-1941 has been fixed in wildfly-core 3.0.0.Alpha13

retest this please


Dying due to casting convert matter

About every other day I'm dying to the batsnake. I convert matter to promade to gain moxie and the batsnake kills me next turn. Happened again today, can share log up on request.
Attempted to fix this in #16 but as you know it wasn't the right approach. If given direction, I can take another stab at it if you want. Otherwise more than happy to test any change you make.

The best thing I can think to do here is the same solution as for flyers: just ban certain monsters from being used to launch the goose.
Now the same monsters that block flyering (Batsnake, Frozen Solid Snake, ninja snowman assassin) should also block the goose. Let me know if you still have issues with the Batsnake, or if there are other monsters we should block.


Create requirements.txt

create requirements.txt

There is already a requirements.txt file here: https://github.com/llmware-ai/llmware/blob/main/llmware/requirements.txt with carefully selected version numbers.  We have to remain back-level on certain dependencies.  Can you please explain what problem this PR is addressing?

Noted.Thank you


chore(main): release pixels 0.7.2

:robot: I have created a release beep boop
0.7.2 (2024-05-28)
Bug Fixes

pixels: bundle react-json-view for now (daf06c7)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/fuf-stack/uniform/releases/tag/pixels-v0.7.2 :sunflower:


refactoring(serializers): move error messages from variables and add translation

Error messages moved directly to the error instead of the variables.
Invalid value translation added.

I tried to fix your conflict, but pushing for maintainers is disabled on that git remote.

Out of curiosity, why move the error messages from variables?
It’s a style I use often in my own validation code, gives more room to write the message and avoids the delimiters salad of ({...: [_("...")]})


Is it possible to "Set image as Lock screen"

I'd like to prompt my users inside my app to set an image as their lock screen as seen here. Is that possible with this plugin?

@kevando in Android or iOS?

I don't think this lib apply for that.


Self destroyed gameobject keeped in Group

When call this.destroy() in GameObject which is added in some group, this object is still in the group and require call groupName.remove(gameObject, true /* removeFromScene  */);
I think this should be called automaticly when is GameObject.destoy() called ? Or it should be strict like this ?
This cause some diffucilty debug issues, like each function up on this group. When this removed GameObject try access to this.scene property, it will crashed asn undefined property
This is very nicely solved in Phaser CE in destroy compnent when child call this.parent.remove(this)
https://github.com/photonstorm/phaser-ce/blob/29bc2b2d76f432a34fdb36ecc8ee634e0d8fdaf0/src/gameobjects/components/Destroy.js#L37-L56
So it should be somethink like this, here: https://github.com/photonstorm/phaser/blob/d1d8d4c4a2bbcbfbedd3151ce9f3055810de2b83/src/gameobjects/GameObject.js#L305-L369
But problem is, GameObject not have proprty like parrent.

#3246

Groups are no longer exclusive, a single GameObject can exist in many Groups, so it can't be automatically removed as part of the destroy process. A Group could listen for the destroy event from a child though, and remove if it receives that.

This feature is now implemented in the master branch.


Palm API - 403 Request had insufficient authentication scopes

This is similar to issue #50. Running the following:
import google.generativeai as palm
import os
palm.configure(api_key="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
response = palm.chat(messages='Hello')
response.last
and receive:
PermissionDenied: 403 Request had insufficient authentication scopes. [reason: "ACCESS_TOKEN_SCOPE_INSUFFICIENT"
domain: "googleapis.com"
metadata {
key: "method"
value: "google.ai.generativelanguage.v1beta2.DiscussService.GenerateMessage"
}
metadata {
key: "service"
value: "generativelanguage.googleapis.com"
}
I get successful results running the curl example.
I have run it under 2 Python environments
I'm a fairly new user but it seems to me that it can't find "google.ai.generativelanguage.v1beta2.DiscussService.GenerateMessage"
I was approved for the beta test. Tried to add the scope: https://www.googleapis.com/auth/generative-language but it could not be found.
Don't know what more steps I can take

I finally go it working on a different computer. I suspect there is something corrupt in one of the modules. Trying now to remove all the pieces from the problem computer. Not sure how to do it It seems a pip uninstall does not get rid of everything since I get the same error after installing again.

Finally got it working on both computers. Had to do the following: Created a req.txt file containing the following modules:
cachetools-5.3.1 google-ai-generativelanguage-0.2.0 google-api-core-2.11.1 google-auth-2.22.0 google-generativeai-0.1.0 googleapis-common-protos-1.59.1 grpcio-1.56.2 grpcio-status-1.56.2 proto-plus-1.22.3 protobuf-4.23.4 pyasn1-0.5.0 pyasn1-modules-0.3.0 rsa-4.9
Ran:
pip uninstall -y -r reqs.txt
pip install google-generativeai

I'm facing the same error, could you give me a guide please.
how did you got this " XXXXXXXXX/.config/gcloud/application_default_credentials.json' "


how to ungroup/unjon all Zones

Hey
how is it possible to unjoin/ungroup all Zones. I mean the opposite of party_mode(). when i iterate over all zones and say unjoin() afterwards when i try to play in one zone sometimes i get the error that
The method or property "play_from_queue" can only be called/used on the coordinator in a group

Hi,
have tried to get your error and can't.
If you start with something in the queue in one zone (in my case Office) and group them all together in party mode.
Then run this code it successfully un-groups them all and plays the first track on the Office zone.
import soco

zones = list(soco.discover())
office = None

for z in zones:
    z.unjoin()

    if z.player_name == "Office":
        office = z

office.play_from_queue(0)

Let me see you code to test
Cheers Daivd

@pixelecho did @DPH's answer help you?

This is quite old and should be closed IMO.

@ghcs27 Agreed. @pixelecho feel free to re-open if this is an issue.


Feat/#93: Add additional endpoint for auth admins 👷

Commit resume

Added the new auth controller, as well, service for admins.

Also, added the username field in the auth create-user-dto, plus the corresponding changes to the services that use this DTO.

Notice that my last commits jumped  with the new ones 😅


Calculating Accuracy

I am trying to understand the way you are computing accuracy. Shouldn't there be a tanh step right before this line?

Never mind, its the same as thresholding a non normalized value at 0.


By per day hour of week day

Pull Request Test Coverage Report for Build 51

18 of 35 (51.43%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-5.4%) to 77.866%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/lib/processor/processorFactory.js
1
2
50.0%

src/index.js
0
2
0.0%

src/lib/processor/byPerDayHourOfWeekDay.js
12
26
46.15%

Totals

Change from base Build 44:
-5.4%

Covered Lines:
165

Relevant Lines:
213

💛  - Coveralls


Do not fix NamedTuple calls containing both a list of fields and keywords

Summary

Fixes #5794
Test Plan

Existing tests

Hmm, the current implementation doesn't support auto-fix for NamedTuple calls where fields are supplied as keywords arguments:
MyType = typing.NamedTuple("MyType", a=int, b=tuple[str, ...])

@charliermarsh thanks for the update!


Fixes #263: Width of pages for mobile view

Title and Issue number

Title : Width of pages for mobile view
Issue No. : #263
Code Stack : css
Close #263
Checklist:

[X] I have mentioned the issue number in my Pull Request.
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have created a helpful and easy to understand README.md if its a new page/tech stack
[X] I have gone through the  contributing.md file before contributing

Additional context (Mandatory )
Are you contributing under any Open-source programme?

[X] I'm a GSSOC-EXT contributor
[X] I'm a HACKTOBERFEST contributor

@jainaryan04 The Deploy preview for this PR was disabled. Can you send reference images / videos link

@jeevan10017


[Procedure Change Request] XmlPort "1010 SEPA DD pain.008.001.02" procedure GetOrgIdOthrId

Describe the request
Can you change the procedure GetOrgIdOthrId to be able to assign a value to CreditorNo based on PaymentExportData fields?
A possible solution would be to change the "Payment Export Data" record as a parameter instead of actual BankAccountNo. parameter
And additionally add an event in this procedure with "Payment Export Data" Record and CreditorNo as parameters to allow us to change the value of CreditorNo depending on the data in the record
Additional context
We have a problem since the value of the CreditorNo to export must be different depending on whether Sepa Partner Type is 'CORE' or B2B. With the current implementation we cannot modify it since the procedure GetOrgIdOthrId where this value is assigned only has the bank code as a parameter and has no events.
Internal work item: AB#500365

Availability update: We will publish a fix for this issue in the next update for release 24.
Build ID to track: 18588.


Create New Love Pattern Python

@andikatuluspangestu I'm closing the PR as it is not fulfilling the requirement...you can send a PR again after maintaining all the steps and eligibility criteria for a valid PR...


[Storage] Azure.Storage.Files.DataLake download APIs are in feature parity with Azure.Storage.Blobs

Resolves https://github.com/Azure/azure-sdk-for-net/issues/45418

A few things of note:

Should I add new tests for this change? I'm asking cus:
a. I didn't see any tests for the original Read() and ReadAsync()
b. Since DataLake lives ontop of Blobs, the "actual processing" methods being called are DownloadStreaming() and
DownloadContent() which are have tests
I did not add ReadTo() and ReadToAsync() since they seem to be already present within DataLake

API change check
APIView has identified API level changes in this PR and created following API reviews.
Azure.Storage.Files.DataLake

A few things of note:

Should I add new tests for this change? I'm asking cus
a. I didn't see any tests for the original Read() and ReadAsync()

The tests are here:
https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/Azure.Storage.Files.DataLake/tests/FileClientTests.cs#L3426

b. Since DataLake lives ontop of Blobs, the "actual processing" methods being called are DownloadStreaming() and
DownloadContent() which have tests already

That being true, I would still like the E2E tests, as that follows the current testing standard we do for when we add any new API.

@tg-msft and @ schaabs, this PR involves some public interface changes, can you take a look?

Since DataLake lives ontop of Blobs, the "actual processing" methods being called are DownloadStreaming() and
DownloadContent() which have tests already

@nickliu-msft yes, but we are not just testing that the blobs download works correctly, we are testing that our arguments are mapped onto it correctly and our results are properly translated. Ideally, we would have mocking foundation in place to more directly test that, but for now recordings will have to do. (Also though it's good to have some full end to end tests as well so we'd still have some of these even if we were able to go with a mocking route.)


Support value announcement for increase/decrease

Engine changes in https://github.com/flutter/engine/pull/4282.


Update Moderation.py

Fixed some value assignment but is still on testing as it looks like to not unmute after 5 minutes or more

Fix mute command


Custom Claims and List Users Support

Adding two new operations to the auth module:

list_users(page_token, max_results): Facilitates paging through all the user accounts of a Firebase project.
set_custom_user_claims(uid, claims): Sets custom attributes on a user account.

go/firebase-admin-custom-claims

Related to #60


Email format does not work

In this exemple, i can set a wrong email without error, am i wrong somewhere?
http://jeremydorn.com/json-editor/?schema=N4IgLglmA2CmIC4QAVYCcDOB7AdiANOAJ4AO8SWARgFawDGYBIJaWZaksGioOAhgFtyoMKXIgMYNBBwBzJmlgBHAK4RFAE0RSVsQgJkAZWHLAALRACYAvoVgC+EaD2JlEEqTPmEAZljQOjEj2js6EiqrqsFoIOrC2zGa4sAByKgKU6C6ibkiS0nIKsLKwAB7uAPQAegDaAAwAtACcALr1zW2Nre3dXZ0dPf29A30AJBUgCZTq5gAifGDCruL5Xkx+AQvuGgvwhHw+i2juAIyWFWcXTXV1k+FYcNli7quFdjjpiDUg9iTQWERYHsQJQsBhuIQ6LAsCAWoQNLAfHwVNAwBgACow4ICP4AoGTazWIAAAA==&value=N4IgdghgtgpiBcIIC8VtSANCGUIEsAbBEAZwEcKsQAHACwHswYA5AVygCMYAnEgBgBsAdhGDB1Tvh4AXOgBEIMuImo8GhFTig1CDAJ4w4AXyAA==&theme=bootstrap2&iconlib=fontawesome4&object_layout=normal&show_errors=always

JSON Editor doesn't use the format property for validation.  It just changes the HTML input type (e.g. it will use a phone's on-screen email keyboard instead of the default one).
If you want to stop the JSON from validating with an incorrect email, you can use the pattern property and use an email regex.  http://www.regular-expressions.info/email.html has a bunch of them.

+1
Mh same problem here. It would be awesome if the validation would work according to the type similar as the validation interpretation e.g. in https://github.com/justinrainbow/json-schema works with the format attribute easily. Would be a huge plus in terms of usability for lazy developers ;-)

+1


sorting

Hi,
Sorting is not working in demo
when you sort first on id and then on name for example
Greetings

Hi @flieks - I need to turn off issues on this, the repo has moved to https://github.com/CharlesPockert/aurelia-bs-grid, any chance you can re-add it there?

yes thanks


Why's it empty?

?????????????

Also why so much licenses?

56 messages on eggment most of them are studio activity
[image: image.png]
Corlap @.***> 于2021年7月12日周一 下午7:54写道：

Also why so much licenses?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/3141592653589793238462643832795028841/code/issues/1#issuecomment-878139012,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATXJGQ2GPAVMRKQFORIETO3TXK3WPANCNFSM5AGPZILQ
.

STOP IT


Fix sometimes empty headref causing errors

I don't know how to reproduce in the tests, but I see this being a
problem in production.

Let's have a call on this one, maybe we can figure out how to reproduce.


Regain focus of parent of the frame that has been removed.

I have a page that has an iframe but after some operations it closes that iframe. This causes the following error:
Capybara::Driver::Webkit::WebkitInvalidResponseError:
  Already at parent frame.

I guess this is because:
within_frame "frame1" do
  click_link "A"
  click_link "B" # At this point the iframe closes
end # so it's detached here and it raises and error

Maybe this could be fixed by remembering the parent frame at the moment of focusing on the child iframe and then at the end of the block:
def within_frame(frame_id_or_index)
  # parent = get the current frame
  browser.frame_focus(frame_id_or_index)
  begin
    yield
  ensure
    browser.frame_focus(parent) # Regain the focus of the parent even if the frame has been detached
  end
end

Does this make sense? Or maybe the situation I described is not supported on purpose?

Can anyone confirm that this is still an issue using the latest version of capybara-webkit?

I'll close this issue due to inactivity. Please re-open it if you're still experiencing these issues.

I still have this problem in 1.11.1
let!(:iframe) { find 'body > div > iframe' }

it '...' do
  within_frame iframe do
    click_link 'X'
  end
end

     Failure/Error: within_frame iframe do
     Capybara::Webkit::InvalidResponseError:
       Already at parent frame.

This link 'X' inside iframe triggers removal of iframe from DOM.

FYI: There is a spec for this behavior in Capybara master, and is the reason for the Capybara master failure in the last passing travis build of capybara-webkit - https://travis-ci.org/thoughtbot/capybara-webkit/jobs/127799105

We're still having this problem as well in 1.11.1. Here's a temporary workaround we've been using that avoids the page.driver.browser deprecation warnings:
  def within_frame(selector)
    page.within_frame(selector) do
      yield
    end
  rescue Capybara::Webkit::InvalidResponseError => e
    raise(e) unless e.message == "Already at parent frame."
  end

Closing since this should be fixed in the latest release version


Unable to deploy contracts using truffle

Description
Deploying a contract with truffle works in Moonbean but not in Frontier.
Deploying using metamask (and remix or any other) works fine. But truffle does not.
Steps to Reproduce
Replace the example steps below with actual steps to reproduce the bug you're reporting.

Run a local node using Frontier Template Node
(optional) Use the instruction on: https://docs.moonbeam.network/getting-started/local-node/using-truffle/
Configure a local truffle project to connect to your local node
Try and deploy any smart contract using truffle migrate

Expected vs. Actual Behavior
Expected: The contract should be deployed.
Actual:  error "Migrations" -- Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: 0x-14b
Logs, Errors or Screenshots

@albertov19 @crystalin Didn't you guys have to do some work about a custom provider to get this working in Moonbeam? Can you share some info about that?

@JoshOrndorff They are using the private-provider @crystalin programmed already. Their configuration works on Moonbase Standalone and Moonbase Alpha.

Hey, if you are using EVM on Moonbeam or Edgeware, you need to use privateProvider.js https://github.com/edgeware-builders/tutorials/blob/main/truffle/private-provider.js
Had run into this just a few days ago! :)

On frontier, this error happens even when using privateProvider.js
The error is the same with every provider I have tried so far

@MatheusDaros interesting! I managed to use it, but in the frontier branch of Edgeware-node to produce this tutorial https://contracts.edgewa.re/#/4/interacting-with-a-Edgeware-node-using-truffle
May there are some not merged changes from upstream 🤔

@yangwao thanks for the info. I'll try to compare the branches to find some clue on what might be causing the error in the Frontier main branch.

Truffle example can be run in Frontier making 2 changes:

The default chain_id in Frontier is 42, that happens to match Kovan. Change the chain id to something not well known.
Setup a genesis account on the chain spec that matches the private key specified in the private provider.

Solved using a custom chain_id and Truffle Box from https://github.com/PureStake/moonbeam-truffle-box


peer review: <Parisha Nizam Team 22> - Missing Formal Specification

artifact under review.
SRS Document
team number (for the team doing the review).
Team 22
description of issue.
The document is missing formal specification of any kind in the documentation. For tinymorph, writting the specification as a finaite state machine might be more appropriate, but important to do to get a good understanding of logic flow and explain the different states of the system. Formal specification will help to ensure well defined requriements to follow for the system and should be done before moving on to any future project development.
@CSchank

I don't think formal specification applies within the volere template. wouldn't Business Data Model suffic for this?


[BUG] UnsupportedOperationException when reading a table written in databricks.

Bug
Which Delta project/connector is this regarding?

[x] Spark
[ ] Standalone
[ ] Flink
[ ] Kernel
[ ] Other (fill in here)

Describe the problem
I have a delta table with deletion vectors and with the following features enabled written by Databricks (Databricks-Runtime/13.3.x-photon-scala2.12)

When I try to read it using pyspark 3.4.1 with delta-lake 2.4.0 which I think is compliant with the requested reader protocol versión, I'm getting a java.lang.UnsupportedOperationException error.
Steps to reproduce

Write a table with deletion vectors enabled using Databricks-Runtime/13.3.x-photon-scala2.12
Try to read that table using the open source delta-lake package versión 2.4.0

Observed results
When trying to do a simple "show" command, it responds with the following error:
23/10/27 15:15:57 ERROR Executor: Exception in task 0.0 in stage 28.0 (TID 356)]
java.lang.UnsupportedOperationException
	at org.apache.spark.sql.vectorized.ColumnarBatchRow.update(ColumnarBatchRow.java:193)
	at org.apache.spark.sql.catalyst.InternalRow.setLong(InternalRow.scala:50)
	at org.apache.spark.sql.delta.DeltaParquetFileFormat.$anonfun$iteratorWithAdditionalMetadataColumns$13(DeltaParquetFileFormat.scala:268)
	at org.apache.spark.sql.delta.DeltaParquetFileFormat.$anonfun$iteratorWithAdditionalMetadataColumns$13$adapted(DeltaParquetFileFormat.scala:266)
	at scala.Option.foreach(Option.scala:407)
	at org.apache.spark.sql.delta.DeltaParquetFileFormat.$anonfun$iteratorWithAdditionalMetadataColumns$8(DeltaParquetFileFormat.scala:266)
	at org.apache.spark.sql.execution.datasources.RecordReaderIterator$$anon$1.next(RecordReaderIterator.scala:62)
	at org.apache.spark.sql.execution.datasources.FileScanRDD$$anon$1.next(FileScanRDD.scala:211)
	at scala.collection.Iterator$$anon$10.next(Iterator.scala:461)
	at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:514)
	at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:460)
	at org.apache.spark.sql.execution.SparkPlan.$anonfun$getByteArrayRdd$1(SparkPlan.scala:388)
	at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2(RDD.scala:888)
	at org.apache.spark.rdd.RDD.$anonfun$mapPartitionsInternal$2$adapted(RDD.scala:888)
	at org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:52)
	at org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:364)
	at org.apache.spark.rdd.RDD.iterator(RDD.scala:328)
	at org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:92)
	at org.apache.spark.TaskContext.runTaskWithListeners(TaskContext.scala:161)
	at org.apache.spark.scheduler.Task.run(Task.scala:139)
	at org.apache.spark.executor.Executor$TaskRunner.$anonfun$run$3(Executor.scala:554)
	at org.apache.spark.util.Utils$.tryWithSafeFinally(Utils.scala:1529)
	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:557)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:750)

Expected results
It should show the content of the table.
Environment information

Delta Lake version: 2.4.0
Spark version: 3.4.1
Scala version: 2.12

Willingness to contribute
The Delta Lake Community encourages bug fix contributions. Would you or another member of your organization be willing to contribute a fix for this bug to the Delta Lake code base?

[ ] Yes. I can contribute a fix for this bug independently.
[ ] Yes. I would be willing to contribute a fix for this bug with guidance from the Delta Lake community.
[x] No. I cannot contribute a bug fix at this time.

It seems like the API InternalRow.setLong() doesn't work in certain cases. Do you have any settings related to the parquet reader? If there is a small repro case, it would help us debug the issue.

Hi,
I'm gonna try to setup a small repo to replicate de issue.
But for now, these are some of the configurations we are using related to parquet.
spark.sql.legacy.timeParserPolicy: LEGACY
spark.sql.parquet.int96RebaseModeInRead: CORRECTED
spark.sql.parquet.int96RebaseModeInWrite: CORRECTED
spark.sql.parquet.datetimeRebaseModeInWrite: CORRECTED
spark.sql.parquet.datetimeRebaseModeInRead: CORRECTED

@zerodarkzone do you have spark.sql.parquet.enableVectorizedReader disabled? Also, what are the data types of columns in your table?

I dont have it disabled.
We have integers, strings, timestamps, dates, some decimals and two columns in particular are an array of structs which contains some decimals and strings.

@andreaschat-db was able to repro this issue. This is happening for wide tables which have more than 100 columns. When we are reading more than 100 columns, Sparks code generator makes a decision (1, 2) to not use the codegen. When not using codegen, Spark sets options to get rows instead of columnar batches from the Parquet reader. This causes the vectorized Parquet reader to return row abstraction over each column in the columnar batch. This row abstraction doesn't allow modify the contents.
I will be posting a fix shortly. A couple of workarounds:

disable the vectorized parquet reader: spark.sql.parquet.enableVectorizedReader=false
Set the table width threshold for codegen to a high number (depending upon the number of columns in your table): spark.sql.codegen.maxFields (default value is 100).


[Bug]: Plausible's Clickhouse database doesn't start (Access to file denied: /etc/clickhouse-server/config.d/logging.xml)

Error Message and Logs
Suddenly Plausible events db Clickhouse stopped working on my VPS.
It looks like there is some issue with file access. I haven't been messing with that, I'm not sure why it happened suddenly.
Clickhouse service log:
2024-11-26T21:39:19.285343719Z ClickHouse Database directory appears to contain a database; Skipping initialization
2024-11-26T21:39:19.332056193Z Processing configuration file '/etc/clickhouse-server/config.xml'.
2024-11-26T21:39:19.333164606Z Merging configuration file '/etc/clickhouse-server/config.d/docker_related_config.xml'.
2024-11-26T21:39:19.333218607Z Merging configuration file '/etc/clickhouse-server/config.d/logging.xml'.
2024-11-26T21:39:19.386398677Z Poco::Exception. Code: 1000, e.code() = 0, Exception: Failed to merge config with '/etc/clickhouse-server/config.d/logging.xml': Access to file denied: /etc/clickhouse-server/config.d/logging.xml, Stack trace (when copying this message, always include the lines below):
2024-11-26T21:39:19.386446838Z
2024-11-26T21:39:19.386458358Z 0. DB::ConfigProcessor::processConfig(bool*, zkutil::ZooKeeperNodeCache*, std::shared_ptr<Poco::Event> const&) @ 0x000000001119c3a8
2024-11-26T21:39:19.386468918Z 1. DB::ConfigProcessor::loadConfig(bool) @ 0x000000001119c640
2024-11-26T21:39:19.386476838Z 2. BaseDaemon::initialize(Poco::Util::Application&) @ 0x000000000c192aac
2024-11-26T21:39:19.386486318Z 3. DB::Server::initialize(Poco::Util::Application&) @ 0x000000000c09f96c
2024-11-26T21:39:19.386497118Z 4. Poco::Util::Application::run() @ 0x0000000012f3628c
2024-11-26T21:39:19.386502878Z 5. DB::Server::run() @ 0x000000000c09f770
2024-11-26T21:39:19.386507879Z 6. Poco::Util::ServerApplication::run(int, char**) @ 0x0000000012f3f544
2024-11-26T21:39:19.386512679Z 7. mainEntryClickHouseServer(int, char**) @ 0x000000000c09bdd4
2024-11-26T21:39:19.386517039Z 8. main @ 0x0000000007731438
2024-11-26T21:39:19.386522319Z 9. ? @ 0x0000000000020e10
2024-11-26T21:39:19.386526519Z  (version <IP_ADDRESS> (official build))

Steps to Reproduce
Not sure. I was using the standard Plausible service stack for some time and suddenly it happened.
Maybe after VPS restart.
Example Repository URL
No response
Coolify Version
v.4.0.0-beta.370
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 24.04
Additional Information
No response

I just tested the plausible template and it works fine. I think this is a permission issues on you server.

You're right, I've actually found when it happened.
Some tutorial instructed me to perform:
    chown -R 9999:root /data/coolify
    chmod -R 700 /data/coolify

Shouldn't I have done it?

I have set back proper permissions and ownership for the services directories.

It's happened to me too twice, both times when I restarted the main server. First time I reinstalled Plausible, but I am trying not to do the same this time - no clue why this is happening.


unable to run the app - npm start fails with watchman --no-pretty error

Started facing this issue today where trying to run npm start throws this error. It seems to be related to watchman.
Here's the error
Watchman:  watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty

Here's the stack trace
at ChildProcess.<anonymous> (/Users/aakashlpin/projects/cheapassApp/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:194:18)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at Pipe._onclose (net.js:469:12)

Any leads on the issue here?

Figured the issue. https://github.com/facebook/watchman/issues/167
Closing.


SyncBatchNormalization has NaN losses with channels-first format

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 14.04 running in Docker container (host is 18.04)
TensorFlow installed from (source or binary): source
TensorFlow version (use command below): 2.0 and 2.3.0
Python version: 3.6.8
Bazel version (if compiling from source): 0.29.1-1.0
GCC/Compiler version (if compiling from source): 4.8.5
CUDA/cuDNN version: 10.0
GPU model and memory: Various, e.g. Nvidia TITAN X

Describe the current behavior
When using the experimental SyncBatchNormalization layer with the channels-first (NCHW or batch-channel-height-width) format, the output of the layer is NaN.
Describe the expected behavior
The output of the layer should be valid, as occurs with the default channels-last format, or with regular BatchNormalization.
Standalone code to reproduce the issue
This Colab notebook contains several models that demonstrate the issue. A Keras model with NCHW format, and a Keras model with SyncBatchNorm, both train correctly. However, a Keras model with both NCHW format and SyncBatchNorm immediately fails with NaN loss. Similarly, an Estimator model with NCHW and SyncBatchNorm fails with NaN loss.
Other info / logs
I think the input tensor size seems to be related to the error. I tried a smaller tensor (10x10x10) before and it didn't cause the issue. And a medium-size tensor (I think 30x30x30) trained for a few steps and then encountered this issue. I'd have to double-check on the current code, but I think there's something there.
In the example, the loss is NaN. I believe that the output of the layer is already NaN (I'm not sure if every single value is NaN or just some of the values). I had some tests where I printed out the sum of the layer outputs etc., and if I recall correctly, immediately after the first SyncBatchNorm layer they were already NaN. This happened on the second and later iterations, but not the first iteration, so I suspect there may be some issue with backpropagation rather than with the forward step. For example, hypothetically if it happened that backpropagation in the first step caused the moving variance to go to 0 (or infinity), I think we would see behavior like this.
You should be able to replicate all these tests fairly easily with some simple print functions etc., but if you need any more information please let me know and I can provide it.
The loss function doesn't seem to matter - I can use various loss functions and still trigger the NaN - but the Conv2D at the beginning may matter; it seems like it works fine if I remove that layer or if I change it to channels-last.
If I run on Colab without a GPU, I get the following error:
InvalidArgumentError:  Conv2DCustomBackpropFilterOp only supports NHWC.
	 [[node gradient_tape/sequential/conv2d/Conv2D/Conv2DBackpropFilter (defined at <ipython-input-3-11fc99b50ff4>:18) ]] [Op:__inference_train_function_654]

I wonder if this might be related to the problem?

I have tried in colab with TF version 2.3 and was able to reproduce the issue. Please, find the gist here. Thanks!

@yhliang2018 Have you been able to take a look at this?

Add @anj-s to look into the problem, as she knows more about SyncBatchNormalization layer.

@anj-s Have you had a chance to take a look at this?

Was able to reproduce your issue in Tensorflow-gpu 2.5, please find the gist here. Thanks!

same problem

@MinasTyuru,
Closing this issue as it is fixed in latest version of TensorFlow. Please refer attached gist and feel free to reopen the issue if you still have a concern. Thanks!


feat: better support for zig versions

This PR closes #30, but also adds support for zig master (0.13.x).

Oops, sorry. I just read [your comment]. Moving to zigwin32.


METRON-1543 Unable to Set Parser Output Topic in Sensor Config

The only way to alter the output topic for a Parser topology is to manually launch the topology using the CLI with the -ot parameter.  The user needs to be able to define this as part of the sensor's parser configuration so that the value is stored in Zookeeper and can be altered in the Management UI and launched from Ambari.
Manual Testing

Launch the development environment.
cd metron-deployment/develoment/centos6
vagrant up

Validate the development environment.

Ensure the 'Service Check' is successful.
Ensure alerts are visible in the 'Alerts UI'.

Stop all topologies.

Launch the REPL.
vagrant ssh
sudo su -
source /etc/default/metron
cd $METRON_HOME
bin/stellar -z $ZOOKEEPER

Change the output topic for the 'bro' sensor.
[Stellar]>>> conf := CONFIG_GET("PARSER","bro")
{
  "parserClassName":"org.apache.metron.parsers.bro.BasicBroParser",
  "sensorTopic":"bro",
  "parserConfig": {}
}

[Stellar]>>> conf := SHELL_EDIT(conf)
{
  "parserClassName":"org.apache.metron.parsers.bro.BasicBroParser",
  "sensorTopic":"bro",
  "parserConfig": {},
  "outputTopic": "new-topic"
}

[Stellar]>>> CONFIG_PUT("PARSER", conf, "bro")
[Stellar]>>> CONFIG_GET("PARSER", "bro")
{
  "parserClassName":"org.apache.metron.parsers.bro.BasicBroParser",
  "sensorTopic":"bro",
  "parserConfig": {},
  "outputTopic": "new-topic"
}

Start the Parser topologies again using Ambari.

Wait for the Bro parser topology to start.  Then ensure that the parser is publishing messages to "new-topic".
[Stellar]>>> %define bootstrap.servers := "node1:6667"
node1:6667

[Stellar]>>> KAFKA_GET("new-topic")
[]

[Stellar]>>> KAFKA_GET("new-topic")
[{"bro_timestamp":"1524849662.943861","method":"GET","ip_dst_port":8080,"request_body_len":0,"uri":"\/api\/v1\/clusters\/metron_cluster\/alerts?format=groupedSummary&_=1484169223317","tags":[],"source.type":"bro","uid":"CUrRne3iLIxXavQtci","referrer":"http:\/\/node1:8080\/","trans_depth":198,"protocol":"http","original_string":"HTTP | id.orig_p:50451 method:GET request_body_len:0 id.resp_p:8080 uri:\/api\/v1\/clusters\/metron_cluster\/alerts?format=groupedSummary&_=1484169223317 tags:[] uid:CUrRne3iLIxXavQtci referrer:http:\/\/node1:8080\/ trans_depth:198 host:node1 id.orig_h:<IP_ADDRESS> response_body_len:0 user_agent:Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/55.0.2883.95 Safari\/537.36 ts:1524849662.943861 id.resp_h:<IP_ADDRESS>","ip_dst_addr":"<IP_ADDRESS>","ip_src_port":50451,"host":"node1","guid":"f230947f-f6c8-49c4-84a5-cff124c4df60","response_body_len":0,"ip_src_addr":"<IP_ADDRESS>","user_agent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/55.0.2883.95 Safari\/537.36","timestamp":1524849662943}]

Pull Request Checklist

[x] Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
[x] Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
[x] Has your PR been rebased against the latest commit within the target branch (typically master)?
[x] Have you included steps to reproduce the behavior or problem that is being changed or addressed?
[x] Have you included steps or a guide to how the change may be verified and tested manually?
[x] Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
[x] Have you written or updated unit tests and or integration tests to verify your changes?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[x] Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

This looks great, thanks for cleaning it up.  +1 by inspection.


Allow service operators to mark a check as completed

This allows service operators to mark each check of a particular type as completed, their name and the time of the the action will be displayed on the check page.
Screenshots

 Introduce Qualification check (DQT check) as an explicit action