feat: erc 6492 signature validation

PR Documentation Outline:
Title: Add ERC-6942 Signature Validation for Pre-Deployed Contracts
Summary: This PR implements signature validation using ERC-6942, which enables verifying signatures for smart contract wallets even when they aren't deployed. This is necessary because some wallets delay contract deployment until the first transaction. By adopting ERC-6942, we validate signatures before wallet deployment.
Details:

isValidateSignature() currently validates deployed contract signatures.
ERC-6942 allows signature verification even when a contract is in the pre-deployment state.
This approach avoids delayed wallet interactions and enhances user experience.

Technical Changes:

Added new validation logic in accordance with ERC-6942 standards.
Ensured backward compatibility with already deployed contracts.

Changes Made:

Added signature verification logic compatible with ERC-6942.
Updated the isValidateSignature() method to support both deployed and pre-deployed contract signatures.
Comprehensive testing for deployed and pre-deployed wallet scenarios.

Why This Change? Some smart contract wallets only deploy upon the first transaction. With ERC-6942, we can validate signatures before deployment, ensuring users experience seamless wallet interactions.
This diagram shows the two flows:
Deployed Contract: Traditional signature verification for deployed wallets.
Pre-Deployed Contract (ERC-6942): Signature verification for wallets that haven't been deployed yet.

universal validator ref: https://github.com/AmbireTech/signature-validator/blob/main/index.ts#L32

@ganchoradkov have addressed the comments, review when free please
thanks 🙏


Why is there no Sharepoint Online version of this command-let

Is there an alternative PnP version for this for online?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: e7709132-eaba-7ae9-8f3d-76fe40cc4420
Version Independent ID: 7f5b5c75-601b-02d2-fd14-a4092aec52e8
Content: Backup-SPSite (sharepoint-server)
Content Source: sharepoint/sharepoint-ps/sharepoint-server/Backup-SPSite.md
Product: sharepoint-2016-powershell
GitHub Login: @techwriter40
Microsoft Alias: kirks

@mganeshphani Thank you for this feedback
We want to make sure your PnP issue is handled appropriately.
We have a separate repo for the PnP PowerShell issues. We want your issue to get the proper attention it deserves.
Please open your issue in this repo: https://github.com/SharePoint/PnP-PowerShell
I am going to close this issue so that we can track to correct one in the PnP PowerShell repo.


feat(demo): v0.5.0 docs + Kata Design System (KDS) page

Fixes #22.

After this PR is merged, we could start documenting all the components that we have, as well as adding documentations to new components.


Adding a short error format for Azure consumption

Adding a short error format for Azure consumption.
Azure requires exposing errors as a string in a short format without spaces. Since most of our errors resolve to a non standard string, I am adding a new function to provide this functionality. That said, I am open to feedback!

@madhanrm , if it is OK to break the name of the errors for march, then I can simplify this code. Thoughts?


Add an option to specify a different source directory.

One of the goals for Sculpin 3.0 is to have not just an --output-dir option, but also a --source-dir option. This PR attempts to deliver on that, and it also attempts to fix a potential issue with --output-dir as it relates to sculpin extensions like icelus (which in my testing was continuing to write to output_dev/ - not desirable).
This adds a DirectoryOverridePass compiler pass to update the existing container parameters with the newly-overridden values.

Attempts to address issue #250

It's not clear why Scrutinizer emits an error...


Add Taupo College

@XuaTheGrate Please provide us with a proof, which shows that the school recognizes the domain tnt.ac.nz that you are submitting as an official email domain for the students.

@XuaTheGrate Please provide us with a proof, which shows that the school recognizes the domain tnt.ac.nz that you are submitting as an official email domain for the students.

Does this qualify? If not, can I get a more specific response.

Does this qualify? If not, can I get a more specific response.

@XuaTheGrate Thank you!
Regrettably, the screenshot does not qualify. However I managed to find an independent confirmation to your request, thus I merge it without further discussion. Please wait an hour before requesting free licenses to allow the change to propagate through JetBrains' systems.

@XuaTheGrate Thank you!
Regrettably, the screenshot does not qualify. However I managed to find an independent confirmation to your request, thus I merge it without further discussion. Please wait an hour before requesting free licenses to allow the change to propagate through JetBrains' systems.


Undo the gorouter changes for 100-continue that are no longer needed from go 1.22.5

Proposed Change
Context
In https://github.com/cloudfoundry/gorouter/pull/418, #419, https://github.com/cloudfoundry/gorouter/pull/420, and #424, we worked around an issue in Golang by modifying the reverseproxy logic to make use of Director (for most cases) + Redirector (for 100-continue cases). Now that Golang has fixed the underlying issue, we can back out this workaround.
What
Revert all gorouter code changes (but not tests) from #418, #419, #420 and #424. Ensure that the tests added in #418, #419, #420, and #424 remain + pass.
Acceptance criteria
Tests should still pass
Related links
No response

FYI beginning work on this

Ok, the code is mostly done on https://github.com/cloudfoundry/gorouter/tree/revert-proxy-rewrite-divergence. However, our integration test is causing a race condition in Golang's http.Server to be triggered when Flushing buffers. We believe this will be fixed in golang 1.23 as part of other mutexes/locking of the http request/response buffers already done.
Pausing this until gorouter is updated to 1.23, and then resuming after that to make sure everthing is happy again.


fix: method name

non existing home.consumption changed to home.fetch_consumption

Thanks for spotting and fixing the mistake!


Support cases when delta is zero.

Fixes Python translation from https://github.com/facebook/prophet/blob/0d260699e4776c449703a957f08eca8013461a47/python/fbprophet/forecaster.py#L1162

Thanks @nasa42 for the PRs and including a test case! I think the test needs to use + n for it to pass.

Looks great, thanks @nasa42!


url-ify the ssh command printlns

should we add the feature to url-ify the ssh command printlns  in this PR?
webui:          http://localhost:8080
history server: http://locahost:18080
...

I added this in my fix branch: #213


Tips for training

Hello, I would like to ask you about your experience in training the dataset. About choosing the iteration 500 (training will take about one week), size_average in MSE_Loss ? Why you set up size_average = False ?
Thank you

Hi, if you set size_average = True, then the loss would become very small, and when you use the loss for gradient calculation, the gradient will also be very small. No good for the convergence speed.


Updating links

Updating a lot of links that were still pointing at flow.microsoft.com. The new URL is make.powerautomate.com

Anything else needed for this?

Closing due to age (conflicts), but making this change in an internal PR, and the updates will go live soon (if they aren't already updated).


avoid recreating nested object for every run

This helps trigger caching (as it does on all the other tests)

I think this change probably ought be replicated across all other cases to ensure consistency

Good point, updated the PR for every lib.

I did that already in my complex-test-case PR... 😄
Except in the complex-test because the inline-vendor-prefixer I had to use for some libraries changes the style that has to be re-created each time (not sure if cloning it would be faster anyway).

So what I understand from @PhiLhoSoft, this PR is now redundant?

Yes.


Do native methods make there own buffers if not defined

Question
If you don’t include a memory stack or BufferUtils
Or other memory class when you call it
For native methods does it make one for example looped opengl

Example
{
glcircle(int size );
} yes I know it’s not a real one


[FullScreenDialog] Support for full screen dialogs

Can material-ui support the following part of the spec?
https://www.google.com/design/spec/components/dialogs.html#dialogs-full-screen-dialogs
It could be baked in to the existing Dialog component, or added as a new component.
There is some discussion in issue #1748 about this, which ultimately concluded with the "solution" of either manually setting the height of the content or setting negative margins, both of which seem less than ideal. Currently my only alternative is to change the source locally, which obviously isn't great since I can't (easily) receive future upgrades.
Having an easy way of making the dialog go full-screen without the rounded corners would be much appreciated.
Thanks!

Actually, changing the source locally is absolutely the best way to address this, since then you can submit it back as a PR so everyone can benefit! :+1:
https://github.com/callemall/material-ui/blob/master/CONTRIBUTING.md

I also have a need for this in two projects I'm working on. I'm considering implementing it since it's missing from material-ui. Before I take a stab at producing a PR, are there any thoughts on how this could be implemented, in a way that's inline with the other prevailing design philosophies which have been incorporated into material-ui? Another way of saying that: Anyone have any ideas on how they might implement full screen dialogs?
My current thoughts are to start off with the code for the existing Dialog component as suggested in #1748 but also add the ability to slide the dialog in from the left or right edge of the screen, implementing behaviour you might see in one of Google's mobile app such as gmail or hangout.

I did wrote a simple implementation of fullscreen dialog, that I called Window.
The dialog implementation is already very complicated, not sure we should add some more complication there, or some refactoring are needed to split concerns.
My 2 cents.
my code is not submitable, but I can try a new implementation with react-overlays.

@cgestes hold up for a moment, we're figuring out the best route forward esp considering #156 which has recently come to my attention.
Feel free to chime in there by the way if you want to help out with this :+1:

I'll check that if I work on it :)
On Sat, 9 Apr 2016, 02:26 Nathan<EMAIL_ADDRESS>wrote:

@cgestes https://github.com/cgestes hold up for a moment, we're
figuring out the best route forward esp considering #156
https://github.com/callemall/material-ui/issues/156 which has recently
come to my attention.
Feel free to chime in there by the way if you want to help out with this [image:
:+1:]
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/callemall/material-ui/issues/3553#issuecomment-207661622

I need this feature as well, now I did the tricky thing that sets the top style to a minus value, the thing is that it's not going to work well on all devices.

In the interim you can use Bootstrap Modal. I know it's dirty to mix-n-match, but react-bootstrap's modal API is so similar to MUI's that it's a 30m swap; then full-screening via CSS is a breeze. Here's my own diff for such.

+1
Im trying to have my dialog turn full screen for mobile users but I'm running into issues using media queries and changing the length of the dialog.

@IrvingAxelB I ran into very similar issues on a recent project. My take is that the dialog should be mobile-first, but it's not, and is therefore difficult to use responsively. It also behaves strangely when flexbox is turned on.

I am also trying to achieve a fullscreen modal. I was a bit disappointed to see the lack of className hooks int the dialog options. There are 5 divs inside of the base Dialog component that come with styling, but there isn't a hook into the div that sets the max-height so it can easily be overridden with CSS. I'd imagine tying in this hook would be pretty easy.

+1 not having fullscreen dialogs is massive issue on mobile. Is this on the roadmap?

@zuhair-naqvi I think I could roll this in to work I'm doing to address #156 for 0.16.0.

The dialog implementation is already very complicated, not sure we should add some more complication there

I agree, having a look at the material specification, I don't think that we should be using the actual Dialog to implement it. The UI look exactly like a normal view.
What's the point of reusing the Dialog?

Any update on this? Adding this would be of amazing value.

Why shouldn't we reuse Dialog for this? Shouldn't Dialog just be responsive? Ie. on big screens we show the actions on the bottom and keep space around it and on mobile we make it fullscreen and put the actions on top?

I've managed to get modal full size via these styles, but this came at a cost of slide-out animation:
<Dialog repositionOnUpdate={false}
                autoDetectWindowHeight={false}
                modal={false}
                open={true}
                onRequestClose={() => this.closeDialog()}
                contentStyle={{width: '100%', transform: 'translate(0, 0)'}}
                bodyStyle={{padding: 0}}
                style={{paddingTop: 0, height: '100vh'}}
        >

Why shouldn't we reuse Dialog for this? Shouldn't Dialog just be responsive?

@m19 I'm quite opposed to this approach.
Reading the material design specification, I strongly think that the Full-screen dialogs behavior described is from an UX point of view not from a component point of view.
I most cases, you will not display the same information on mobile and desktop. Making the Dialog a responsive component will lead to a poor UX. I think that the Dialog should stay a low level component that can be combined to provide a great UX experience.
The Full-screen dialogs is a high level component. We haven't invested much in high level component.
We believe that we should focus on low level components so that the community can build one responsive component like this one.
Let me know what you think.

@oliviertassinari that makes sense. Thanks!
Nobody in the community is working on this. Correct?

Nobody in the community is working on this.

Not I have heard of.
That shouldn't be too hard to do. Like building a castle with legos. The most challenging block I'm aware of is the animation.

Is anyone modifying it so you can put a close [X] in the title?

@oliviertassinari can you elaborate on "you will not display the same information on mobile and desktop"?  For example, on the current project we're working on, we're displaying a contact us dialog.  It has the same information on mobile and desktop but I would like the dialog full screen on mobile.

can you elaborate on

@joshunger What I'm saying is your business case might require you to need more than a responsive Dialog. E.g. You might want to add some IconButton on the left side of the AppBar.
What about the dialog's action, where should they be displayed?
The type of responsiveness needed here is high level. We can't get away with just styles.
Some JavaScript are definitely going to be needed.

I think that Dialog responsiveness  and Dialog fullscreen are two different things. Dialog responsiveness must be the responsibility of the developer.

I know I'm late to the party, but I recently started implementing a FullscreenDialog, with animation and all. After reading this issue, I finally had some motivation to extract it into it's own project.
Once I have a little more spare time, I'll see if I can port it to next and provide a PR. :wink:

@leMaik Thank you!

its already done in next https://material-ui-1dab0.firebaseapp.com/#/component-demos/dialogs

@stunaz unfortunately not available now. and I'm launching asap

@stunaz Thanks for reminding us that the next branch is now supporting it. @pradel Did a great job adding it. I'm closing.

Is it not available right now?

I had use case when I needed all modals to be full screen only on xs screens.
What I did is to add these tree tags in Dialog definition:
bodyClassName="global--modal-body"
contentClassName="global--modal-content"
paperClassName="global--modal-paper"

and then I defined those classes globally like this:
@media (max-width: 600px) {
  .global--modal-content {
    width: 100% !important;
    transform: translate(0, 0) !important;
    position: absolute !important;
    top: 0 !important;
    height: 100vh !important;
  }

  .global--modal-body {
    padding: 0 !important;
  }

  .global--modal-paper {
    height: 100vh !important;
  }
}

worked perfectly for me.

This sounds wonderful. However, and it could just be that I have the "itis" from lunch, I am not entirely sure what you mean by "tree tags" or "Dialog definition".
I am imagining you mean that you added:
bodyClassName="global--modal-body"
contentClassName="global--modal-content"
paperClassName="global--modal-paper"

to the actual implementation inside the node package? My understanding of monkey patching tells me that probably isn't what you meant, because it only solved the issue until you want to update material-ui.


Adding alexandernikitin to uploaders

Description

Submitter checklist for changing permissions

Always

[ ] Add link to plugin/component Git repository in description above

For a newly hosted plugin only

[ ] Add link to resolved HOSTING issue in description above

For a new permissions file only

[ ] Make sure the file is created in permissions/ directory
[ ] artifactId (pom.xml) is used for name (permissions YAML file).
[ ] groupId / artifactId (pom.xml) are correctly represented in path (permissions YAML file)
[ ] Check that the file is named plugin-${artifactId}.yml for plugins

When adding new uploaders (this includes newly created permissions files)

[ ] Make sure to @mention an existing maintainer to confirm the permissions request, if applicable
[ ] Use the Jenkins community (LDAP) account name in the YAML file, not the GitHub account name
[ ] All newly added users have logged in to Artifactory at least once

Merge permission to GitHub repository

[ ] Check this if newly added person also needs to be given merge permission to the GitHub repo. If needed, it can be done using an IRC bot command. Make sure to check that the $pluginId Developers team has Write permissions or above while granting the access.

Build failed; the context from the latest run is:
Expand to view
[2019-12-12T09:54:57.349Z] 	at groovy.json.JsonBuilder$toPrettyString$0.call(Unknown Source)
[2019-12-12T09:54:57.349Z] 	at io.jenkins.infra.repository_permissions_updater.ArtifactoryPermissionsUpdater$_generateApiPayloads_closure1.doCall(ArtifactoryPermissionsUpdater.groovy:194)
[2019-12-12T09:54:57.349Z] 	at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
[2019-12-12T09:54:57.349Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2019-12-12T09:54:57.349Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
[2019-12-12T09:54:57.349Z] 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
[2019-12-12T09:54:57.349Z] 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)
[2019-12-12T09:54:57.349Z] 	at groovy.lang.Closure.call(Closure.java:414)
[2019-12-12T09:54:57.349Z] 	at groovy.lang.Closure.call(Closure.java:430)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachFile(ResourceGroovyMethods.java:1070)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.runtime.ResourceGroovyMethods.eachFile(ResourceGroovyMethods.java:1088)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.runtime.dgm$936.invoke(Unknown Source)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
[2019-12-12T09:54:57.349Z] 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
[2019-12-12T09:54:57.350Z] 	at io.jenkins.infra.repository_permissions_updater.ArtifactoryPermissionsUpdater.generateApiPayloads(ArtifactoryPermissionsUpdater.groovy:135)
[2019-12-12T09:54:57.350Z] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2019-12-12T09:54:57.350Z] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2019-12-12T09:54:57.350Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2019-12-12T09:54:57.350Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite$StaticMetaMethodSiteNoUnwrapNoCoerce.invoke(StaticMetaMethodSite.java:151)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.callStatic(StaticMetaMethodSite.java:102)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:56)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:194)
[2019-12-12T09:54:57.350Z] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:214)
[2019-12-12T09:54:57.350Z] 	at io.jenkins.infra.repository_permissions_updater.ArtifactoryPermissionsUpdater.main(ArtifactoryPermissionsUpdater.groovy:318)
[2019-12-12T09:54:57.399Z] [Pipeline] }
[2019-12-12T09:54:57.466Z] [Pipeline] // stage
[2019-12-12T09:54:57.690Z] [Pipeline] stage
[2019-12-12T09:54:57.714Z] [Pipeline] { (Archive)
[2019-12-12T09:54:57.797Z] [Pipeline] archiveArtifacts
[2019-12-12T09:54:57.918Z] Archiving artifacts
[2019-12-12T09:54:59.487Z] [Pipeline] archiveArtifacts
[2019-12-12T09:54:59.522Z] Archiving artifacts
[2019-12-12T09:55:00.024Z] [Pipeline] }
[2019-12-12T09:55:00.091Z] [Pipeline] // stage
[2019-12-12T09:55:00.246Z] [Pipeline] }
[2019-12-12T09:55:00.493Z] [Pipeline] // node
[2019-12-12T09:55:00.763Z] [Pipeline] End of Pipeline
[2019-12-12T09:55:03.115Z]
[2019-12-12T09:55:03.115Z] GitHub has been notified of this commit’s build result
[2019-12-12T09:55:03.115Z]
[2019-12-12T09:55:03.116Z] ERROR: script returned exit code 1
[2019-12-12T09:55:03.116Z] Finished: FAILURE

Powered by the Comment Logger


[Event Request] TAB81 OnAfterUpdateSourceNo

Hello,
we Need a new Event in Table 81 after the souce no. and source type is set.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


Bug Report: Automatic Suggestion Menu Stops Appearing After File Addition via Prompt Instructions

Description
A bug occurs in the Aider tool where the automatic gray suggestion menu (for commands or files) disappears after a file is added indirectly via typing part of the filename into the prompt. This behavior differs from using the explicit /add command. After the bug manifests, the menu does not reappear unless Aider is restarted. The tab key still functions for autocompletion, but the absence of the menu significantly impacts usability.

Steps to Reproduce

Start typing a command or instruction in Aider that includes part of a filename (e.g., look into H(...)).
When the gray menu appears, use the tab key to autocomplete the filename (e.g., Hero.svelte).
Complete the command and press enter.
When prompted to add the file, select Y to confirm.
Observe that:

The command computes correctly, and the file is added.
The automatic gray menu does not appear for subsequent typing unless Aider is restarted.

Attempt using D for "Don't ask again" when prompted to add the file. Note that the file is not added, and Aider produces an error.

Expected Behavior
The automatic gray suggestion menu should continue to appear during typing after a file is added through prompt instructions, just as it does when using the /add command explicitly.

Actual Behavior

The menu disappears after adding a file via the typing-prompt method.
The menu does not reappear unless the tool is restarted.
Using the D option during the add prompt causes the file not to be added, and subsequent functionality depending on the file fails.

Additional Information

The issue does not occur if files are added explicitly via the /add command.
The issue negatively impacts usability as it forces manual knowledge of when to press the tab key for autocompletion.

Version and model info
Aider v0.69.1
Model: openrouter/anthropic/claude-3-5-haiku-20241022 with whole edit format +sonnet-3.5 with default options (unlimited output etc)
Windows CMD + PS on Win10

I have also observed the suggestion menu stops appearing immediately after Aider suggests adding a command or output to the chat, regardless if you respond yes or no to the prompt. You have to /quit and restart aider to get the suggestion menu back.
Windows 10
Sonnet 3.5
Aider v0.69.1

The fix should be available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you.

Hi Paul. I took a quick look, and the suggestion menu appears to be working again, but I'm not sure the /run command is working anymore.
This was working but generates no output/errors now:
/run main transcript.txt
This still works fine:
uv run main transcript.txt

Works. Thank you so much.

I think it is fixed. Run seems to work for me. I can open a new ticket, but I have a question if you could please help. I've been moving other agents, where they can see the outputs of the console and can run commands as well. I've been struggling to set this up with aider. I have been streaming the output of console to a log file and watching it, but its not that great. LLM keeps saying it wants me to add a new file  to see the latest changes even though its being watched.
Is there a native solution to this?
I have not seen much discussion on this. I'd appreciate it. Thanks again.


Promotion to queen for Black is broken

When playing Black Wowl omits the q suffix from the move when promoting to a queen. That affects both the PV and bestmove.
Sorry for missing that initially; the EPD I've been using to test whether engines promote correctly tested only White. Now thanks to Wowl I have the following FEN from one of its games vs. Wuttang (which played White):
8/1P3k2/8/4Kn2/R7/P7/6p1/8 b - - 0 62
In this position White and Black both have a pawn about to promote.
Currently, this is  Wowl 1.3.6's output for this position:
<Wowl 1.3.6(341): info score cp -356 depth 15 nodes 579948 time 31400 pv g2g1 b7b8q g1c5 e5f4 f5e7 b8b3 f7g7 f4f3 c5f5 f3g2 f5f2 g2h3 f2f1 h3h4 f1f2
<Wowl 1.3.6(341): move ordering 68.5
<Wowl 1.3.6(341): bestmove g2g1

Thanks again! Your testing has uncovered a lot of issues that I didn't catch. The problem should be fixed now.


What about pagination of results when using a POST request?

Hey, I have been looking into your project and it looks a good custom implementation of a generic filtering for a REST API.
I have not tested it yet, but at first glance I am thinking... what about enabling pagination of results?.. but mainly, how it can be made when using a POST request?.. I mean, I now you have not implemented this feature but that would be tricky to enable pagination on POST requests because how I will call the next pages... subsequents POST calls?. I guess it could be possisble, then I will need to handle the result's page to be returned, right?
What do you think?

It supports pagination either POST or GET.
Generally it supports everything JpaRepository supports, filtering happens before paging.
Here is one example,
@PostMapping("/persons")
public Page findPage(@RequestBody Filter filter){
int page = 0;
int size = 100;
return selectFrom(personRepository).where(filter).findPage(new PageRequest(page, size));
}

Hi, i have updated this library with OneToOne, ManyToOne, OneToMany, ManyToMany supported and added other functionalities like pagination in the rest filter, ignorecase and more.
Check it here: https://github.com/borja-glez/springify


how do i set it up

refere to this section @Scam-L1kely
https://github.com/nooodles-ahh/video_services?tab=readme-ov-file#building

so i put $Include "video_services\vpc_scripts\projects.vgc" in default.vpc


Milliseconds serialized incorrectly for iso8061date

In iso8061date-tests.js, the testFormat test asserts that the following should be equal:
var datetime = Date.UTC(2011, 6, 17, 14, 0, 23, 270);
var datetimeAtom = "2011-07-17T14:00:23.0000270Z";
This is incorrect, because the first date has 270 milliseconds = 270000 microseconds, while the second has 27 microseconds.
In iso8061date.js

In the format function the padding for getUTCMilliseconds should be only 3 (not 7) because adding extra zeros between a digit and the decimal point changes the value.
In the parse function needs to ensure that the ms[0]  needs to be right padded if the length of the string is less than 3 (because Azure Table omits right padding zeros), or if the string is longer than 3, the least signifigant digits need to be discarded (as Azure has 100-ns precision, while JavaScript has only 1-ms precision).

See the comments for https://github.com/WindowsAzure/azure-sdk-for-java/pull/12 for a similar issue that affects the Azure SDK for Java.

I believe this was addressed in pull request #81.  Let me know if you think it's still an issue.  Thanks!

Ah, yes!


NLog Target support ConnectionString with isolated TelemetryClient

Fix Issue #2714 - Add support for connection string to Microsoft.ApplicationInsights.NLogTarget
Changes

Added ConnectionString option for NLog Target with isolated TelemetryClient (instead of modifying global config)
Changed NLog Target Flush to use FlushAsync (instead of blocking)

Checklist

[ ] I ran Unit Tests locally.
[x] CHANGELOG.md updated with one line description of the fix, and a link to the original issue if available.

For significant contributions please make sure you have completed the following items:

[ ] Design discussion issue #
[ ] Changes in public surface reviewed

The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.
Notes for authors:

FxCop and other analyzers will fail the build. To see these errors yourself, compile localy using the Release configuration.

@cijothomas + @rajkumar-rangaraj + @TimothyMothra Fork of #2858 where I have changed to use isolated TelemetryConfiguration so not modifying the global config.
I don't mind also fixing log4net-appender if you like. Thus moving away from using InstrumentKey before fully deprecated.
Please review and merge.

With all due respect, we are eagerly awaiting this change as the deadline for discontinuing instrumentation keys is approaching.


upstream-community-operators dell-csi-operator (1.3.0)

Signed-off-by: Rensy Thomas<EMAIL_ADDRESS>Thanks submitting your Operator. Please check below list before you create your Pull Request.
New Submissions

[ ] Does your operator have nested directory structure?
[ ] Have you selected the Project Community Operator Submissions in your PR on the right-hand menu bar?
[ ] Are you familiar with our contribution guidelines?
[ ] Have you packaged and deployed your Operator for Operator Framework?

[ ] Have you tested your Operator in all supported installation modes?
[ ] Have you considered whether you want use semantic versioning order?
[ ] Is your submission signed?
[ ] Is operator icon set?

Updates to existing Operators

[x] Did you create a ci.yaml file according to the update instructions?
[x] Is your new CSV pointing to the previous version with the replaces property if you chose replaces-mode via the updateGraph property in ci.yaml?
[x] Is your new CSV referenced in the appropriate channel defined in the package.yaml or annotations.yaml ?
[x] Have you tested an update to your Operator when deployed via OLM?
[x] Is your submission signed?

Your submission should not

[x] Modify more than one operator
[x] Modify an Operator you don't own
[x] Rename an operator - please remove and add with a different name instead
[x] Submit operators to both upstream-community-operators and community-operators at once
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description about the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

@madhukirans since you are previous contributor, can you have a look at changes if ok with you?

@mvalarh
@madhukirans is not involved with this project and he may not get this notification at all.
I am the original submitter of this operator and I have reviewed the PR. The changes look good to me


rattler-build packages not installable via conda on windows

I'm trying to install a rattler-build built package with conda 23.3.1 on Windows and get the following error
Downloading and Extracting Packages

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(740): An error occurred while installing package 'my-channel::my-package-0.2.1-py312hf046059_0'.
Rolling back transaction: done

[Errno 2] No such file or directory: 'C:\\Users\\pavel\\miniforge3\\envs\\test-env\\Lib\\site-packages\\my_package\\__init__.py'
()

The __init__.py is in the correct spot in the package. If I compare the paths.json with the paths.json of a conda-installable package (built with boa), I can see that the paths use / instead of \\.
with rattler-build
{
  "paths": [
    {
      "_path": "Lib\\site-packages\\my_package\\__init__.py",
      "path_type": "hardlink",
      "sha256": "d76cf2832b9f3b53223f66acbad94a2969a6cde7f38e3fd9481227a16f35df6e",
      "size_in_bytes": 155
    },

with boa
{
  "paths": [
    {
      "_path": "Lib/site-packages/my_package-0.0.0.dist-info/INSTALLER",
      "path_type": "hardlink",
      "sha256": "d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8",
      "size_in_bytes": 5
    },

Installing the package via pixi or micromamba works, only conda and mamba fail to install it.

Bas has just pushed a fix to rattler: https://github.com/mamba-org/rattler/pull/416#event-11058084646
Once we update rattler here, this should be fixed.

I'd tend to say this is a bug in conda - forward-slashes should always work for paths on Windows so it must be some code e.g. naively comparing string representations.
In any case, I guess it's easier to fix here - conform to conda's expectations.

I guess either - on Windows you can use either forward slashes or backward slashes for paths and the filesystem doesn't complain.
That conda appears to require a particular convention could be viewed as a bug (since it's not a constraint imposed by the filesystem), or alternatively an undocumented internal api contract 😆

It is actually a better choice because if you build a noarch package on Windows, you want it to look similar on Linux etc. (and install fine on UNIX, too).


Remove useless dependencies

What problem does this PR solve?
Close #1073 and close #1074
Some dependencies are useless in TiSpark assembly jar.
What is changed and how it works?
I find useless scala-lang dependency in core, and useless jackson dependency in tikv-client.
Both dependencies can be fetched from spark.
Assembly Jar size reduce from 29.4 MB to 22 MB (-25.2%).
Check List
Tests

No code

Code changes

Has dependency change

/run-all-tests

This PR should fix https://github.com/pingcap/tispark/issues/1076

This PR should fix #1076

master branch does not include scala-lang, but release-2.1 branch does.

@birdstorm would u please fix #1076 on release-2.1 branch?

@marsishandsome Sure


Second order updates

Hello Patrick,
I hope you're doing well. I've been working with the Equinox package, and I appreciate the effort that's gone into it.
Currently, I'm working on implementing a second-order Taylor optimization of neural networks. A vital part of this implementation requires computing both the gradients and Hessians of the flattened parameters with respect to the loss function. This will allow me to define the updates for the model more effectively as below.
Here's a basic outline of what I'm trying to achieve:
`
def loss(params, shapes, input_data, labels):
return loss_0(params, shapes, input_data, labels)
grad_f = jax.grad(loss)
hessian_f = jax.hessian(loss)
lr = 0.9
grad_params = grad_f(params, shapes, input_data, labels)
hessian_params = hessian_f(params, shapes, input_data, labels)
delta_x = solve(hessian_params, grad_params)
params += (lr * delta_x)
`
Could you please guide me on whether Equinox supports this kind of operation or if there's a recommended approach within the broader Jax ecosystem to achieve this?
Thanks in advance for your assistance.

I don't see why there wouldn't be support, you can construct the hessian from vmap, vjp, and jvp all of which are supported by equinox (https://docs.kidger.site/equinox/api/filtering/transformations/#equinox.filter_jvp).

Any chance I can please get a simple working example?
If not, I will try and get one working through the course of the week and reply to this thread so others can piggyback off it.

Here is a simple example, probably not optimized for speed, but just a quick draft to help you get started in a direction.
import jax
import equinox as eqx
from jax import numpy as jnp
import matplotlib.pyplot as plt
from jax import flatten_util

key = jax.random.PRNGKey(42)
key, subkey1, subkey2 = jax.random.split(key, 3)
data = jnp.concatenate((jax.random.normal(subkey1, shape=(100, 2)) * 0.1 - 1, jax.random.normal(subkey2, shape=(100, 2)) * 0.1 + 1), axis=0)
labels = jnp.array([0] * 100 + [1] * 100)
plt.scatter(data[:,0], data[:,1])
plt.show()

class MLP(eqx.Module):
    layers: list

    def __init__(self, key):
        key1, key2, key3 = jax.random.split(key, 3)
        self.layers = [
            eqx.nn.Linear(2, 10, key=key1),
            jax.nn.relu,
            eqx.nn.Linear(10, 12, key=key2),
            jax.nn.relu,
            eqx.nn.Linear(12, 2, key=key3),
            jax.nn.log_softmax
        ]

    def __call__(self, x):
        for layer in self.layers:
            x = layer(x)
        return x

def loss_fn(model, ins, ytrue):
    pred_y = eqx.filter_vmap(model)(ins)
    return cross_entropy(ytrue, pred_y)

def cross_entropy(y, pred_y):
    pred_y = jnp.take_along_axis(pred_y, jnp.expand_dims(y, 1), axis=1)
    return -jnp.mean(pred_y)

@eqx.filter_jit
def compute_accuracy(m, x, y):
    pred_y = eqx.filter_vmap(m)(x)
    pred_y = jnp.argmax(pred_y, axis=1)
    return jnp.mean(y == pred_y)

key = jax.random.PRNGKey(42)

@eqx.filter_jit
def step(mlp, xs, ys):
    vals, grads = eqx.filter_value_and_grad(loss_fn)(mlp, xs, ys)
    updates = jax.tree_map(lambda g: -0.1 * g, grads)
    mlp = eqx.apply_updates(mlp, updates)
    return mlp, vals

epochs = 50
batch_size = 100
grad_loss = []
grad_acc = []

key, subkey = jax.random.split(key, 2)
model = MLP(subkey)

for e in range(epochs):
    if e % 20 == 0:
        print(e, "/", epochs)

    key, subkey = jax.random.split(key, 2)
    inds = jax.random.randint(subkey, minval=0, maxval=len(data), shape=(batch_size,))
    inputs = data[inds]
    ls = labels[inds]

    model, loss = step(model, inputs, ls)
    grad_loss.append(loss)
    grad_acc.append(compute_accuracy(model, data, labels))

@eqx.filter_jit
def loss_h(arrs, static, ins, ytrue, uf):
    arrs = uf(arrs)
    model = eqx.combine(arrs, static)
    pred_y = eqx.filter_vmap(model)(ins)
    return cross_entropy(ytrue, pred_y)

@eqx.filter_jit
def step_h(mlp, xs, ys):
    vals, grads = eqx.filter_value_and_grad(loss_fn)(mlp, xs, ys)
    a, s = eqx.partition(mlp, eqx.is_inexact_array)
    flat_a, unflat_a = flatten_util.ravel_pytree(a)
    h = jax.hessian(loss_h)(flat_a, s, xs, ys, unflat_a)
    g_flat, unflat = flatten_util.ravel_pytree(grads)
    updates = unflat(-1 * jnp.linalg.pinv(h) @ g_flat)
    mlp = eqx.apply_updates(mlp, updates)
    return mlp, vals

key = jax.random.PRNGKey(1)
key, subkey = jax.random.split(key, 2)
model_h = MLP(subkey)

epochs = 50
batch_size = 100
h_loss = []
h_acc = []

for e in range(epochs):
    if e % 20 == 0:
        print(e, "/", epochs)

    key, subkey = jax.random.split(key, 2)
    inds = jax.random.randint(subkey, minval=0, maxval=len(data), shape=(batch_size,))
    inputs = data[inds]
    ls = labels[inds]

    model_h, loss = step_h(model_h, inputs, ls)
    h_loss.append(loss_fn(model_h, data, labels))
    h_acc.append(compute_accuracy(model_h, data, labels))

fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 4))

ax1.plot(h_loss, label="Newton")
ax2.plot(h_acc, label="Newton")

ax1.plot(grad_loss, label="Grad")
ax2.plot(grad_acc, label="Grad")

plt.legend()
plt.show()

Yields

Thanks a lot for sharing this. Made my life so much easier.

Indeed, that's all my example does, partitions then uses jax.hessian then combines (there is also a flattening operation just to show the matrix inversion).

Great!
With respect to the original question, by the way -- on a related note, you might like Optimistix, which includes some second-order optimisers.

Thanks a lot for all the offers of help here.
I took a look at Optimistix over the weekend, but will dig deeper.
The examples come in handy a lot for people like myself so as many examples as we can put in the documentation the better for folks like me.


404 page on refresh

If you refresh the page on any of the content pages. A 404 error is thrown.

Perhaps add hash routing from npm


Website with the given name already exists

I want to deploy a standard logic app using github actions , for that i have created standard logic app  in different resource group and now i want to deploy this  logic app  using github actions , i'm getting error like this.
Error: ERROR: "status":"Failed","error":"code":"DeploymentFailed","target":"/subscriptions/a4bd6d8e-cfd8-43c2-a63c-83a8c0ff91f1/resourceGroups/rg-dcs-cicr-centralindia-dev/providers/Microsoft.Resources/deployments/LA_Standard_Basic","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":["code":"Conflict","target":"/subscriptions/a4bd6d8e-cfd8-43c2-a63c-83a8c0ff91f1/resourceGroups/rg-dcs-cicr-centralindia-dev/providers/Microsoft.Web/sites/Demo121","message":"\r\n  "Code": "Conflict",\r\n  "Message": "Website with given name Demo121 already exists.",\r\n  "Target": null,\r\n  "Details": [\r\n    ***\r\n      "Message": "Website with given name Demo121 already exists."\r\n    ***,\r\n    ***\r\n      "Code": "Conflict"\r\n    ***,\r\n    ***\r\n      "ErrorEntity": \r\n        "ExtendedCode": "54001",\r\n        "MessageTemplate": "Website with given name 0 already exists.",\r\n        "Parameters": [\r\n          "Demo121"\r\n        ],\r\n        "Code": "Conflict",\r\n        "Message": "Website with given name Demo121 already exists."\r\n      \r\n    \r\n  ],\r\n  "Innererror": null\r\n"]
Error: Deployment failed.
@YanaXu
Can anyone help me out from this. ASAP!

Hi @KiranKumarGowda, could you please share your workflow file with us?
I don't know if you use Azure Cli or Azure PowerShell to deploy the logic app or other GitHub Actions. If you're using other GitHub Actions, it's better to raise the issue in their repos. If you're using Azure Cli or Azure PowerShell, you can provide the information here and we'll see what we can do.

Hi @KiranKumarGowda, could you please share your workflow file with us? I don't know if you use Azure Cli or Azure PowerShell to deploy the logic app or other GitHub Actions. If you're using other GitHub Actions, it's better to raise the issue in their repos. If you're using Azure Cli or Azure PowerShell, you can provide the information here and we'll see what we can do.

Hi @YanaXu , I'm not using other github actions .
I have shared the workflows through mail , kindly check and let me know .

Hi @KiranKumarGowda ,
I see from your workflow file, you're using azure/arm-deploy@v1 to deploy the logic app.
      - uses: azure/arm-deploy@v1
        with:
          subscriptionId: ${{github.event.inputs.subscriptionId}}
          resourceGroupName: ${{github.event.inputs.resourceGroupName}}
          template:  ./ARMTemplates/LA_Standard_Basic.json
          parameters: ./ARMTemplates/LA_Standard_Basic_Param.json

It's out of our scope. I suggest you to raise an issue in its repo instead.
Based on your error message, it means you have created a Website named as Demo121. It's quite normal. You can try another name or delete it before the next try.

OK, please schedule a meeting with me.

OK, please schedule a meeting with me.

join the meet

Run azure/powershell@v1
Validating inputs
Module Az latest installed from hostedAgentFolder
Initializing Az Module
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command Test-Path (Join-Path /opt/hostedtoolcache az_)
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command $env:PSModulePath
/home/runner/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7-lts/Modules
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command try ***
$ErrorActionPreference = "Stop"
$WarningPreference = "SilentlyContinue"
$output = @**
$data = Get-Module -Name Az -ListAvailable | Sort-Object Version -Descending | Select-Object -First 1
$output['AzVersion'] = $data.Version.ToString()
$output['Success'] = "true"
***
catch ***
$output['Error'] = $_.exception.Message
***
return ConvertTo-Json $output
False

"AzVersion": "11.0.0",
"Success": "true"

/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command $env:PSModulePath
/opt/hostedtoolcache:/home/runner/.local/share/powershell/Modules:/usr/local/share/powershell/Modules:/opt/microsoft/powershell/7-lts/Modules
Initializing Az Module Complete
Running Az PowerShell Script
/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -Command /runner/_work/_temp/f2217c91-92e7-44d8-b57d-8516b06274c4.ps1
Get-AzWebAppPublishingProfile: /runner/_work/_temp/f2217c91-92e7-44d8-b57d-8516b06274c4.ps1:2
Line |
2 |  $profile = Get-AzWebAppPublishingProfile `
|             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Operation returned an invalid status code 'NotFound'
Error: Error: The process '/usr/bin/pwsh' failed with exit code 1

This is the workflow
name: build and deploy LA
on:
workflow_dispatch:
inputs:
ResourceGroupName:
description: 'Name of the Resource Group'
required: true
LogicAppName:
description: 'Name of the Logic App'
required: true
CONFIGURATION
For help, go to https://github.com/Azure/Actions

1. Paste the RBAC json into the following secret in your repository:
AZURE_RBAC_CREDENTIALS

2. Change these variables for your configuration:
jobs:
build-and-deploy:
runs-on: [ aks-gha-runners ]
environment: dev
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@v2
- name: Login to Azure
  uses: azure/login@v1
  with:
    creds: ${{secrets.AZURE_CREDENTIALS}}
    enable-AzPSSession: true

- name: Get publish Profile
  id: fncapp
  uses: azure/powershell@v1
  with:
    inlineScript: |
      $profile = Get-AzWebAppPublishingProfile `
          -ResourceGroupName ${{github.event.inputs.ResourceGroupName}} `
          -Name ${{github.event.inputs.LogicAppName}}
      $profile = $profile.Replace("`r", "").Replace("`n", "")
      Write-Output "::set-output name=profile::$profile"
    azPSVersion: latest

- name: Create project folder
  run: |
    mkdir output
    cp 'host.json' 'output/'
    #cp 'proxies.json' 'output/'
    #cp 'connections.json' 'output/'
    cp -r 'Stateful1' 'output/'
- name: Easy Zip Files
  uses: vimtor/action-zip@v1
  with:
    dest: '${{ github.run_id }}.zip'
    files: output/

- name: 'Run Azure Functions Action'
  uses: Azure/functions-action@v1
  id: fa
  with:
    app-name: ${{github.event.inputs.LogicAppName}}
    package: '${{ github.run_id }}.zip'
    publish-profile: ${{steps.fncapp.outputs.profile}}

Hi @YanaXu  Can u help me out this

Hi @KiranKumarGowda , the message Operation returned an invalid status code 'NotFound' said the resource is not found. It means it's not created.

Hi  , but yesterday we had run right  through  script , why did it was not
created ?
On Fri, 5 Jan 2024 at 7:52 AM, Yan Xu @.***> wrote:

Hi @KiranKumarGowda https://github.com/KiranKumarGowda , the message Operation
returned an invalid status code 'NotFound' said the resource is not
found. It means it's not created.
—
Reply to this email directly, view it on GitHub
https://github.com/Azure/login/issues/395#issuecomment-1878033968, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AUZAAMSPDBIQP3I3QMHJ2WTYM5PVVAVCNFSM6AAAAABBL4H2LCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYGAZTGOJWHA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@KiranKumarGowda , what you have seen is a nomal and reasonable response from Azure.
Whatever client tools you use (ARM Deploy Action or Azure PowerShell cmdlets), if the Azure resource is there, it returns.
If it's deleted, it returns "NotFound".
I think before you put every step in GitHub workflow file, it's better to test it locally. For example, on your laptop, connect to your Azure account, create the resource, get the resource, delete the resource, and try to get it again.
Maybe you can try some guides of "QuickStart" of Azure, Azure PowerShell, or other Azure Client tools.


No such file or directory

Hi, just playing with your plugin in my project. Every time I run jekyll serve and the plugin finds the icon, I get:
jekyll 3.7.3 | Error:  No such file or directory @ rb_file_s_stat - /var/folders/y9/m_5lr9mn471gxjxh9xgrmzs80000gn/T/favicon_template20180407-35527-1gy2ucn.png

My _config.yml:
favicon:
  source: assets/images/favicon.png
  path: /assets/images

My favicon is indeed in assets/images/favicon.png source. But even if I move it to project root, it does not work.
I'm using mmistakes theme if that might play a role somehow.

Unfortunately I'm very new to Jekyll so I can't really help with debugging unless you give me some hints what should I do.

Hi @MichalBryxi, I cloned your repo, bundled it and serve it and everything was OK, although I had to remove the suffix _nonexistent at the _config.yml. Can you give me details about your environment and the steps you are running to see if I can reproduce the error?
Thanks for your interest in this gem. It needs lots of work, so your feedback is really appreciated.

Log of the run of jekyll serve that fails (probably) on jekyll-favicon code
My environment

I don't really understand this line from the docs:

Note: this project depends on minimagick/minimagick, which depends on ImageMagick or GraphicsMagick.

So do I have to install minimagick explicitly? Do I have to install ImageMagick explicitly? I have the second one, but that's just an accident. If those are requirements, I'd suggest creating section "Prerequisites" and clearly state "Install XYZ".

p.s: I'm surprised that Jekyll community came with this only now. I mean managing favicons might be one-off thing. But it's not easy to do it right and quite a pain to do it for all the cases. So thank you for making this.

Thanks for your feedback @MichalBryxi!
I was able to reproduce the error and I'm going to look for a solution now.
I'll improve the Readme also!

@afaundez Works like a charm! Thank you! My website now has favicon 💃


Checking for the end of the URL when finding the debugging address

This pull request addresses #19618 by using lastIndexOf on the provided line to find the last slash in the URL. This will help it avoid anything that isn't an actual URL from the input.
I'm still pretty new to Dart, so I am not sure if this is the best way to do this, but it has helped me continue using Flutter.

I signed it!


How to output a raw partial (not a block)?

Hi there,
sorry I could not use the jsfiddle template as I work with assemble.io and handlebars.js.
I would like to output the raw partial (not compiled) for instance with a helper. Is this possible?
Like so:
Instead of trying to use raw (or markdown) like this:
{{{{raw}}}}
{{foo}}
{{{{/raw}}}}

I would like to output the contents of a partial (foo.hbs) in raw format:
{{{{raw}}}}
{{>foo}}
{{{{/raw}}}}

I tried this with markdown:
{{{{markdown}}}}
{{>foo}}
{{{{/markdown}}}}

and it outputs this: {{>foo}}
But I would like this:
This is the {{title}}

content of foo.hbs:

This is the {{title}}

Anybody could give me a hint on how to achieve this?
The gist here: https://gist.github.com/phobia/9110443 sometimes just returns functions as @doowb already stated, so it is no help to me.
Link to a fairly related github issue:
https://github.com/assemble/assemble.io/issues/73
Also related issues showed this, but this does not help either as far as I can see:
https://github.com/wycats/handlebars.js/issues/1385
Thanks for any help!

I had to deal with a similar issue and this might give you a different solution. I had a partial that I needed to output it's raw markdown for, for use in clientside rendering (and the partial needed to be defined inline due to how it was generated and saved). After reviewing the handlebars source, it appears that once a partial has been compiled, it cannot be "uncompiled". You can instead look to save that content (additional datastructure, output as a script for clientside rendering, etc) when defining the partial. For example, if you were defining the partial inline like I was:
{{{{partial "myPartial"}}}}

{{myVariable}}

{{{{/partial}}}}

Handlbars.registerHelper('partial', function(name, options) {
    // Register a partial and output the content in a script for clientside rendering
    Handlebars.registerPartial(name, Handlebars.compile(options.fn()));
    const script = `<script type="text/x-handlebars-template" class="${name}">${options.fn()}</script>`;
    return script;
},

Now I have both registered a partial and used the raw representation as needed. While not a direct answer to your question, I hope this helps you. Seems like an interesting thing you're trying to accomplish!

I had the exact same issue but I was using gulp-hb, so I simply created a helper that read and outputted the file. Eg: created a helper file:
const partial = (partialName, scriptId) => {
  const partialContent = fs.readFileSync(path.join('path-to', 'templates', partialName + '.hbs'))
  return `<script type="text/x-handlebars-template" id="${scriptId}">\n${partialContent}\n</script>`
}
module.exports = {partial}

Ensured that this helper was registered with my gulp config and set up a based watched task.
Now in my main .hbs file I simply passed the reference to the partial and an id for the dynamic script:

{{{{partial "profile/profile-card-photos" "profile-card-photos-template"}}}}{{{{/partial}}}}

Which renders:

This is all that I wanted.
In terms of passing additional attributes to this, I don't need to as I'm compiling on the front-end.
The alternative was to simply fetch the .hbs files from the client-side, parse, compile, add data, execute the template and inject the html, however, I didn't want to do the ajax calls. I wanted them to be inline on the initial request.

Closing, because the issue seems to to contain solutions to the problem.


Update PizzaOrderDialog.cs

Comments of how to get a key in LUIS services.

Removed the keys and commented how to get a new key at Luis Services website.

We have provided the app id and key so that people can plug and play this example.  Thank you for your contribution, but we are not going to accept this at this time.
If you would like to update your pull request with your comments and leaving the keys in the sample we can accept this.


Fixes for automated build

Fix a build break
Workaround an issue with using getenv in release builds which resulted in tests failing

LGTM, feel free to merge.


Upload file manually when camera is not available

In many mobile browsers (in my case iPhone - running iOS 10.3.3) mobile camera is not accessible when opening the demo site / instascan in general.
Do you have any plan to support switching to manual file upload from gallery and decode the barcode when the camera is not accessible?

In case you haven't seen it, see this note about compatibility. According to #54, it looks like WebRTC compat will be present in iOS 11, which I definitely want to support.
Scanning a user-supplied image is definitely possible and something I've thought about, but it just ended up being a lower-priority feature. It's mostly about updating the API to support other sources besides the camera.
Unfortunately, I can't think of any one-line hack to add this yourself since the camera, scanner, and analyzer are pretty entangled. Mostly, it comes down to the canvas that the Analyzer uses as a source (see scanner.js).
Let's keep this issue open for tracking this feature.

I whipped up some code in code pen https://codepen.io/amosboldor/full/brNvOw/
But I noticed if you don't get a good photo of the QR-Code then it will fail. That's why video[Instascan] is much better so if the first frame didn't get it the next one might be at a better angle for it to work.
Making me think if I should make it work to take a photo and a video.
If any one knows how to improve this code please comment.

Just fyi, in iOS11 beta the  needs attribute  playsinline . Seemed to be a bug for awhile but now that it's out of beta soon idk...
https://github.com/serratus/quaggaJS/commit/e8352c7017a2f7a7500fa054f342b9689ff5d8b7#diff-afd7828cb7f3e7a1f8fe7305f50b5021
https://github.com/PaulKinlan/qrcode/commit/b79718b2391969b2291db93ba388b4c2b2f3f9d4


On this webpage, the operation is slow

https://blazor.radzen.com/datagrid-inline-edit,    the operation is slow

Works pretty fast for me

When you edit, such as the "Freight" field, there is a slow feeling when delete character or Editing


Modified Dockerfile for New Depedency Pipeline

The python:3.5-onbuild image tag triggers a bunch of steps that assume dependencies are written to requirements.txt.
This PR moves us to the latest minor version (3.5.4), and manually copies over files needed to build pshtt.

@egyptiankarim, what do you think of this Dockerfile?

@jsf9k Looks great!


Require @spec on all public functions.

Coverage remained the same at 90.155% when pulling d1f2748b6f7b068249c060c330b65291e35b9793 on specs into d27257f559e380ff26b20be80b1ed58d873f5cd7 on master.

Coverage remained the same at 90.155% when pulling 048c022cb3dff98ea31c243169402d7dd6cc0e52 on specs into d27257f559e380ff26b20be80b1ed58d873f5cd7 on master.

Coverage remained the same at 90.155% when pulling e5a580bf2ca95601d9f75ec434e49faf871c082d on specs into d27257f559e380ff26b20be80b1ed58d873f5cd7 on master.

Coverage remained the same at 90.155% when pulling 10b46b3b0e66fc7aa5a83bd2be0fac91cb39496a on specs into d27257f559e380ff26b20be80b1ed58d873f5cd7 on master.

Coverage remained the same at 90.155% when pulling d79da9fb4a5aa316af7679bf578a0a4419cc9271 on specs into d27257f559e380ff26b20be80b1ed58d873f5cd7 on master.

Not merging. I think this is a net loss in readability.


Add cross cluster processing queue state to data/persistence interface

What changed?

Add cross cluster processing queue state to data/persistence interface

Why?

Supporting cross domain operations

How did you test it?
Existing test

Potential risks
N/A, new field not used or persisted.

Release notes

Documentation Changes

Pull Request Test Coverage Report for Build e7f3dd94-c90f-49ec-b595-4f129fff0bc2

61 of 66 (92.42%)  changed or added relevant lines in 3 files are covered.
3187 unchanged lines in 22 files lost coverage.
Overall coverage increased (+0.08%) to 59.875%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

common/persistence/sql/sqlShardManager.go
0
1
0.0%

common/persistence/shardManager.go
42
46
91.3%

Files with Coverage Reduction
New Missed Lines
%

common/task/weightedRoundRobinTaskScheduler.go
1
89.64%

service/history/task/task.go
1
82.52%

tools/cli/flags.go
1
99.75%

service/history/execution/mutable_state_builder.go
2
69.82%

service/history/queue/timer_queue_processor.go
2
58.77%

service/matching/taskListManager.go
2
74.72%

common/persistence/cassandra/cassandraPersistence.go
3
50.67%

client/admin/thriftClient.go
4
9.33%

common/task/fifoTaskScheduler.go
4
85.57%

service/history/task/transfer_standby_task_executor.go
4
90.42%

Totals

Change from base Build b15629f5-4249-4bb9-866b-19083dcdf7ea:
0.08%

Covered Lines:
88496

Relevant Lines:
147801

💛  - Coveralls


How to create my own TF-IDF matrix?

Hi there, I would like to create a custom train file based on en_ranker_tfidf_wiki.json, but I don't want to use the default Wikipedia vectors file. How can I create new vectors file, based on my own data?

Hi @w95,
For that you can modify the dataset_reader block in your config:
{
  "dataset_reader": {
    "class_name": "odqa_reader",
    "data_path": "~/path/to/documents/directory",
    "save_path": "~/path/to/resulting/sqlite.db",
    "dataset_format": "txt"
  },
  "dataset_iterator": {
    "class_name": "sqlite_iterator",
    "shuffle": false,
    "load_path": "~/path/to/resulting/sqlite.db"
  }
}

Where ~/path/to/documents/directory is a directory that contains your text documents.

@yoptar Thanks a lot for fast response, what about the .npz file ({MODELS_PATH}/odqa/enwiki_tfidf_matrix.npz), should I use the default one?

what about the .npz file ({MODELS_PATH}/odqa/enwiki_tfidf_matrix.npz), should I use the default one?

It should be overwritten, but I would change the location, just to be sure. You can also remove the metadata.download block from your config.

Thank you!


irb: warn: can't alias context from irb_context.

I get this whenever I load a console with rspec 3.5.0 for some reason. Not sure if there is some configuration change possible, but it doesn't happen in 3.4.0, so we rolled back.
Loading development environment (Rails <IP_ADDRESS>)
irb: warn: can't alias context from irb_context.
irb(main):001:0>

See this issue: https://github.com/rspec/rspec-rails/issues/1645 -- Seems to be fixed in the 3-5-maintenance branch and the fix has not been released yet. See commits here: https://github.com/rspec/rspec-rails/commits/3-5-maintenance

@joelmichael as pointed out by @mrnugget a fix for this is merged, but has not yet been released.

@samphippen -- thoughts on cutting an rspec-rails 3.5.2 release in the next week?

@myronmarston I can probably commit to doing it over the coming weekend. If you or @JonRowe can do it sooner that'd be shiny.

I've just released 3.5.2

the problem still persists for me
rails <IP_ADDRESS>
rspec-rails 3.5.2
Loading development environment (Rails <IP_ADDRESS>)
irb: warn: can't alias context from irb_context.

It's possible another gem is causing this issue for you, a vanilla rails install at <IP_ADDRESS> with the latest RSpec gems doesn't cause this issue.
For now I suggest making sure all of your rspec gems are update to date with:
bundle update rspec rspec-rails rspec-core rspec-mocks rspec-expectations rspec-support

If you can provide a cloneable minimal reproduction repo we'll happily reopen and have a look but for now I'd suggest remove gems one at a time until the console command runs without that warning.

ok, looks like draftsman gem is the culprit here, warning goes away when i remove it from Gemfile.
i will open an issue there i guess.


Total loss of control, apparently due to PX4_ERR

I have repeatedly experienced a total loss of control/crashes with my quad after making some minor changes to the position controller.
I have narrowed down the problem to a print statement.
Problem
The crash can go one of two ways:

The quad's rotors stop spinning mid-air, as if it was disarmed.
The quad becomes entirely unresponsive. Communication with QGC (through a RPi companion computer) is lost. Control via the RC is also lost. I am not able to change modes. Since the print statement I have added is in MulticopterPositionControl::control_auto, the problem occurs when I am in mission mode and I am thus completely unable to control the quad in any way. Position hold performance in mission loiter (the assumed state of the quad) is poor and becomes worse over time.

The latter of the two outcomes is of course far worse. I was forced to watch the quad as it circled around in the air with increasing radius and speed until the battery died and the quad crashed from a great altitude.
Symptoms prior to the crash/loss of communication are reports of mag or baro failure.
Looking at the logs (which are all corrupt as I have no way of disarming), there are large gaps in all logged data. I would guess they appear around the same time as the sensor failure messages.
How to reproduce
Through various tests and a string tied to the quad, I have narrowed down the problem to a simple  PX4_ERR statement in the control loop. With the following lines added to the top of MulticopterPositionControl::control_auto, based on master as of d98bbd9b825f3610b6c0dad6e2274ca3de5ab639, the issue can be reproduced:
static int printcnt = 0;
if (printcnt % 10 == 0) {
	PX4_ERR("control_auto %d, %f %f %f", printcnt, M_PI, 1.4, 1e-7);
}
printcnt++;

Note that a simpler print statement with fewer arguments does not produce the issues for me.
Logs
Logging cuts out entirely when the quad becomes unresponsive so the logs don't provide too much insight. Nevertheless, here is a log of a test flight where the quad dropped out of the sky:
http://logs.uaventure.com/view/vU58fzj6GYmeMJrHXRQyPJ
The corresponding messages are:
2016_09_20_15_03_20: ARMED by RC
2016_09_20_15_03_20: [blackbox] /fs/microsd/log/2016-09-20
2016_09_20_15_03_20: [blackbox] recording: 15_03_20.px4log
2016_09_20_15_03_21: Takeoff detected
2016_09_20_15_03_24: [lpe] lidar init: mean 52 cm stddev 19 cm
2016_09_20_15_03_25: [lpe] flow init: quality 233 std 32
2016_09_20_15_03_31: takeoff to 3.0 meters above home
2016_09_20_15_03_38: [lpe] lidar fault,  beta 54.76
2016_09_20_15_03_38: [lpe] lidar fault,  beta 27.02
2016_09_20_15_03_42: mission finished, loitering
2016_09_20_15_04_01: Executing mission
2016_09_20_15_04_06: Mag #0 failover : Data timeout!
2016_09_20_15_04_06: [lpe] flow timeout
2016_09_20_15_04_06: [lpe] lidar timeout
2016_09_20_15_04_07: [lpe] lidar init: mean 247 cm stddev 8 cm
2016_09_20_15_04_07: [lpe] flow init: quality 254 std 0
2016_09_20_15_04_07: [lpe] lidar fault,  beta  9.27
2016_09_20_15_04_08: [lpe] lidar fault,  beta 17.69
2016_09_20_15_04_09: [lpe] lidar fault,  beta 76.92
2016_09_20_15_04_09: [lpe] lidar fault,  beta 25.79
2016_09_20_15_04_12: mission finished, loitering
2016_09_20_15_04_32: Executing mission
2016_09_20_15_04_34: [lpe] lidar fault,  beta 194.74
2016_09_20_15_04_36: [lpe] lidar fault,  beta 12.63
2016_09_20_15_04_40: Mag #0 failover : Data timeout!
2016_09_20_15_04_41: mission finished, loitering
2016_09_20_15_04_51: no valid mission available, loitering
2016_09_20_15_05_02: Executing mission
2016_09_20_15_05_10: mission finished, loitering
2016_09_20_15_05_19: Executing mission
2016_09_20_15_05_27: mission finished, loitering
2016_09_20_15_05_39: no valid mission available, loitering
2016_09_20_15_05_43: Executing mission
2016_09_20_15_05_57: Mag #0 failover : Data timeout!
2016_09_20_15_05_57: [lpe] flow timeout
2016_09_20_15_05_57: [lpe] lidar timeout
2016_09_20_15_05_57: [lpe] baro fault, r 36.08 m, beta 143.99
2016_09_20_15_05_58: [lpe] lidar init: mean 265 cm stddev 12 cm
2016_09_20_15_05_58: [lpe] lidar fault,  beta 14.45
2016_09_20_15_05_58: [lpe] flow init: quality 252 std 2
2016_09_20_15_06_00: Mag #0 failover : Data timeout!
2016_09_20_15_06_00: [lpe] flow timeout
2016_09_20_15_06_00: [lpe] lidar timeout
2016_09_20_15_06_01: [lpe] lidar init: mean 291 cm stddev 4 cm
2016_09_20_15_06_01: [lpe] flow init: quality 239 std 47
2016_09_20_15_06_01: [lpe] lidar fault,  beta 38.60
2016_09_20_15_06_02: mission finished, loitering
2016_09_20_15_06_32: Executing mission
2016_09_20_15_06_32: takeoff to 3.0 meters above home
2016_09_20_15_06_36: Mag #0 failover : Data timeout!
2016_09_20_15_06_36: [lpe] flow timeout
2016_09_20_15_06_36: [lpe] lidar timeout
2016_09_20_15_06_37: [lpe] lidar init: mean 140 cm stddev 0 cm
2016_09_20_15_06_37: [lpe] flow init: quality 242 std 40
2016_09_20_15_06_39: [lpe] lidar fault,  beta 63.88
2016_09_20_15_06_39: [lpe] lidar fault,  beta 23.57
2016_09_20_15_06_40: Mag #0 failover : Data timeout!
2016_09_20_15_06_42: mission finished, loitering
2016_09_20_15_07_05: Executing mission
2016_09_20_15_07_08: Mag #0 failover : Data timeout!
2016_09_20_15_07_08: [lpe] flow timeout
2016_09_20_15_07_09: [lpe] lidar timeout
2016_09_20_15_07_09: [lpe] lidar init: mean 150 cm stddev 10 cm
2016_09_20_15_07_09: [lpe] flow init: quality 239 std 50
2016_09_20_15_07_10: [lpe] lidar fault,  beta 50.66
2016_09_20_15_07_11: [lpe] lidar fault,  beta 23.65
2016_09_20_15_07_14: mission finished, loitering

I am flying with a PixFalcon with the firmware based on the above mentioned master. I am using LPE and sdlog2.
I could remove those print statements and move on as I only put them in for some tests in SITL, but I do feel that the ramifications of such an innocuous change are quite severe and should be addressed.

You have a stack overflow. You need to increase the stack if you add print commands

Thanks for the response. How can I prevent running into this type of problem in the future? How do I check the stack size vs max allowable size?

@ndepal The "top" command in the shell will show you stack usage for all processes.
Generally when you made a considerable amount of changes to the code you should check if the process has some stack free. Consider also that you might have functions which consume lots of stack but which will only be called after a certain event.
Also you can use the "free" command to check how much memory you have left in general.

Thanks @tumbili !


ASC-475 Cherry-pick system gate from master

This PR pulls in the commits from the master branch that add the system action as a gating parameter in order to run rpc-openstack-system-tests on an MNAIO deploy.
Issue: ASC-406

recheck_cit_artifact

The artifact check is encountering the following apt error deploying percona-server:
[apt] fatal: [localhost]: FAILED! => {"changed": true, "cmd": "aptly publish snapshot -distribution=\"r14.14.0-trusty\" miko-r14.14.0-trusty integrated", "delta": "0:00:07.684747", "end": "2018-05-21 14:33:25.972005", "failed": true, "failed_when_result": true, "rc": 1, "start": "2018-05-21 14:33:18.287258", "stderr": "ERROR: unable to publish: unable to process packages: error linking file to /var/www/artifacts/apt/public/integrated/pool/main/p/percona-server-5.5/libperconaserverclient18_5.5.59-rel38.11-1.trusty_amd64.deb: file already exists and is different", "stdout": "Loading packages...\nGenerating metadata files and linking package files...", "stdout_lines": ["Loading packages...", "Generating metadata files and linking package files..."], "warnings": []}

@johnduarte Bother, it seems that they've republished a package again with a different SHA. I'll try and get that resolved asap - just dealing with the MNAIO test failures first.

@johnduarte Register https://rpc-openstack.atlassian.net/browse/RO-4222 for this issue. The republishing is in progress. I'll recheck the PR when it's done.

recheck_cit_artifact

https://rpc.jenkins.cit.rackspace.net/job/RPC-Artifact-Build_newton-pr/555/ testing this PR and passed.


Update to ASP.net Configuration page

The Configuration documentation page does not explicitly describe how one can collect configuration values from the IConfiguration service (provided via dependency injection).
I would like to add a section to this documentation article explicitly describing how one can do that.
Internal Preview URL.

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

Thanks @JohnSurina. 🥇


Develop Dipper documentation

Specifically to document how to use Dipper to integrate data to the BioLink model
Started here: https://d2s.semanticscience.org/docs/d2s-dipper

@vemonet thank you creating this and let us know if we can help in any way!


galaxy-buds-client: 4.5.2 -> 4.5.4

Description of changes
Updating package to latest released version.
Changelog

https://github.com/ThePBone/GalaxyBudsClient/releases/tag/4.5.4

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Apparently I'd forgotten to replace that part in the PR. Very strange that it did not complain about it when I'd built and tested the package. 🤯

Will try updating it now and verify if it does require an update or not. Appreciate the fast reply! :)

Apparently it did require an update.


"Expecting Value: line 1 column 1 (char 0)" Error encountered when adding large number of subdomains through cat

Running command cat file.txt | bbrf domain add - using a large file (> 40K lines) causes a "Expecting Value: line 1 column 1 (Char 0)" error as seen in the screenshot. This file only contains subdomains, one per line, but contains several thousand.

Hi @contaminatedesert - thanks for flagging this. This issue has popped up from time to time, so I figured to have a decent look at trying to fix this. I was able to reproduce this locally and the issue was the bbrf server times out with a 504, but the documents were added. Could you verify if this is also the case for you?
If not, could you please enable debugging mode by adding "debug":true to ~/.bbrf/config.json and add the output here?

Another possible issue is that the request size is too large, see this comment: https://github.com/honoki/bbrf-client/issues/78#issuecomment-1003755487
I am debating what is the most graceful way to handle either of these errors.

Hello @honoki,
Thank you for your response. I had not seen that original thread on this issue, so thank you for that. One interesting, though probably unrelated item, is that I too am importing .mil domains.
I have used my own workaround by breaking my file up in to pieces using head and tail and that works. One thing that I noticed is that it does not always fail on the same number, sometimes I can chunk my domains into >10,000, other times it only likes <10,000.
I'm not quite sure what you mean by request size being too large. What request? The request from BBRF to validate the domain? Some other request?
To answer your question, it did seem that even though I was receiving the error, they did seem to be added to the database, or at least most of them, there did seem to be some dropouts but that may have been the domain validation.
I am going to add more domains right now and turn debugging on and add everything here (I may obfuscate some data to maintain my privacy).
I will post what I find.

@honoki
Alright, so here's what I've done. I added the debug item and restarted bbrf-server.
I then counted the number of navy.mil domains already existing in my database and the result was 4,112.
I then counted the # of entries in the file I was about to import and that was 50,298.  I then proceeded to import the file in the usual way cat file.txt | bbrf domain add - > debug.txt as you can see I added the debug data to a file, which is attached.
I too encountered the 504 error. Interestingly, the debug data I saw was not the same as in the debug.txt file, so I will add it below.
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): <IP_ADDRESS>:443 DEBUG:urllib3.connectionpool:https://<IP_ADDRESS>:443 "GET /bbrf/dod HTTP/1.1" 200 None DEBUG:urllib3.connectionpool:https://<IP_ADDRESS>:443 "POST /bbrf/_bulk_docs HTTP/1.1" 504 167
The debug.txt file contains the steps taken by BBRF as well as the error we've been encountering.
debug.txt
I then redid the count of navy.mil domains and got the result 52,712. As you can see, most of my domains were properly added, though I am down roughly 1,700 for some reason.
I did not encounter the 413 error, although I think this is likely because I am using the docker image.
Another bit of information that may be helpful, is that when I encounter this issue, most of the time (but not all the time) I experience a significant decrease in system performance. This is corrected when I stop the docker images and restart bbrf-server.
Please let me know if there's anything else I can do to assist.

In my experience, when adding a large amount of data you need to check if the data is what it's supposed to be. Use grep to find garbage in your domain list (symbols, spaces, etc.) Then, to add the domains is better to do it in chunks, basically dividing the input in several parts, my default value is 1,000, but If you have more than 2vcpu and more than 4 GB RAM, you can go higher.


How to call Oracle Store Procedure

I have an oracle Procedure like, which returns a sys_refcursor:
PROCEDURE getTTVT
    (
        o_data OUT sys_refcursor
    )
    IS
     v_Query varchar2(4000);
    BEGIN
    v_Query :='
       select donvi_id, ten_dv
       from admin_hcm.donvi dv where donvi_id in (41, 42, 43, 44, 45, 56, 57, 59, 60)
    ';
     OPEN o_data FOR v_Query;
END getTTVT;

My go function is:
// Unit of list
type Unit struct {
	DonviID    int
	TenDV      string
	DonviChaID int
	TenDVQL    string
}
func ListAllUnits {
        stmt, err := db.oracleDB.Prepare("begin dashboard.getTTVT(); end;")
	if err != nil {
		fmt.Println("Error create statment")
		fmt.Println(err)
		return nil, err
	}
	defer stmt.Close()
	units := []models.Unit{}
	result, err := stmt.Exec(sql.Out{Dest: &units})
	fmt.Println(result)
}

func main() {
   ListAllUnits()
}

When I run command:

go run main.go

I only get nil
@sijms Can you explain how to call Oracle Store Procedure?

go to the code in connection.go and examine function GetNLS()
output parameter is supported when use the package directly as explained in readme file

if your problem solved please close the issue

if your problem solved please close the issue

Thank you, I'm trying, I will close after success and confirm.

@sijms I'm sorry I lasted, I'm back. I read code in connection.go and examine function GetNLS()
My code now is
cmdText := SET SERVEROUTPUT ON SIZE 1000000
DECLARE
o_cursor sys_refcursor;
BEGIN
dashboard.getTTVT(o_cursor);
END;`
stmt := go_ora.NewStmt(cmdText, db.oracleDB)
stmt.AddParam("o_cursor", "", 1000, go_ora.Output)
// defer stmt.Close()
result, err := stmt.Exec(nil)
if err != nil {
	fmt.Printf("Error execute query: %s\n", err)
	return nil, err
}
fmt.Println(result)`

I don't know how to add out put sys_refcursor.
stmt.AddParam("o_cursor", "", 1000, go_ora.Output)
When run I receive error

Error execute query: ORA-00922: missing or invalid option
How to add output of sys_refcursor and how can I add output to units array?
// Unit of list
type Unit struct {
DonviID    int
TenDV      string
DonviChaID int
TenDVQL    string
}

@sijms I'm sorry I lasted, I'm back. I read code in connection.go and examine function GetNLS()
My code now is
cmdText := SET SERVEROUTPUT ON SIZE 1000000
DECLARE
o_cursor sys_refcursor;
BEGIN
dashboard.getTTVT(o_cursor);
END;`
stmt := go_ora.NewStmt(cmdText, db.oracleDB)
stmt.AddParam("o_cursor", "", 1000, go_ora.Output)
// defer stmt.Close()
result, err := stmt.Exec(nil)
if err != nil {
	fmt.Printf("Error execute query: %s\n", err)
	return nil, err
}
fmt.Println(result)`

I don't know how to add out put sys_refcursor.
stmt.AddParam("o_cursor", "", 1000, go_ora.Output)
When run I receive error

Error execute query: ORA-00922: missing or invalid option
How to add output of sys_refcursor and how can I add output to units array?
// Unit of list
type Unit struct {
DonviID    int
TenDV      string
DonviChaID int
TenDVQL    string
}

I didn't test ref_cursor only simple binding only

I didn't test ref_cursor only simple binding only

I didn't test ref_cursor before only simple binding only
I think it need extra option to be added to network to let it working properly

If it just simple query, it's ok but almost all my procedure open sys_refcursor. Do you have a plan to update work with procedure open sys_refcursor now or near future?

I didn't test ref_cursor before only simple binding only
I think it need extra option to be added to network to let it working properly

If it just simple query, it's ok but almost all my procedure open sys_refcursor. Do you have a plan to update work with procedure open sys_refcursor now or near future?

OK,  no problem i will work on this and when finish i will update and inform you

OK,  no problem i will work on this and when finish i will update and inform you

I add support for RefCursor
please read the readme file first and see a simple example I make to explain how to use
download and test and if ok please close the issue

I add support for RefCursor
please read the readme file first and see a simple example I make to explain how to use
download and test and if ok please close the issue

PROCEDURE getTTVT (     i_unitID IN    number,      o_data  OUT sys_refcursor    );
if I have a procedure with input is number  or nvarchar2 and the output is sys_refcursor, my function is:
cmdText := BEGIN
test.getTTVT(:1, :2);
END;`
stmt := go_ora.NewStmt(cmdText, db.oracleDB)
stmt.AddParam("1", 41, go_ora.Input)
stmt.AddRefCursorParam("2")
defer stmt.Close()
// Query
_, err := stmt.Exec(nil)
if err != nil {
	fmt.Println("Error query")
	return nil, err
}`

when I run I get a loop forever nonstop. Do I add input AddParam wrong? @sijms

err = rows.Next(values)
// check for error and if == io.EOF break
if err == io.EOF {
break
}

here add check for other errors
if err != nil {
    if err == io.EOF {
        break
    }
    fmt.Println(err)
    break
}

did you get correct output?

Yes, my procedure return two column which are unitID number and unitName nvarchar2. If there only output sys_refcursor without any input condition then it work well and return correct output.
But when I add condition input such as i_unitID IN number then it just run. I think there is issue in the line

stmt.AddParam("1", 41, 100, go_ora.Input)

When change code check error to
if err != nil {
    if err == io.EOF {
        break
    }
    fmt.Println(err)
    break
}

There is nothing happen. It just run forever.

I make modification that solve the problem
please test and inform me about the result


Use HTTPS (not HTTP) for api.github.com

A handful of scripts include references to http://api.github.com. In order to use api.github.com, requests must be made via HTTPS, not HTTP.
This pull request replaces all instances of http://api.github.com with https://api.github.com so that developers reading these scripts don't run into issues trying to use HTTP instead of HTTPS.
$ curl -v http://api.github.com
* Rebuilt URL to: http://api.github.com/
*   Trying <IP_ADDRESS>...
* connect to <IP_ADDRESS> port 80 failed: Connection refused
* Failed to connect to api.github.com port 80: Connection refused
* Closing connection 0

/cc @kylemacey @gjtorikian for review

Eek! :+1:

Like


How to add red or purple color text on  the image?

var Jimp = require('jimp');
Jimp.read('test.jpg', (err, image) => {
if (err) throw err;
Jimp.loadFont(Jimp.FONT_SANS_32_BLACK).then(function(font) {
image.print(font, 10, 10, 'Hello world!');
image.write('lena-small-bw.jpg');
});
});
I can use the above source to write 'Hello world!' on the test.jpg picture, however, it seems that Jimp only can write white or black text on the image rather than other color: for example,  red or purple.  How to add red or purple color text on  the image?
Any help is much appreciated!!!

I think you have to find a bitmap font that is already colored. Printing seems to work by having a bitmap font file that maps characters to a special png with all the characters on it already. You might have to play around with a few tools to get your fonts to have color
some examples after a little googling
https://www.colorfonts.wtf/
https://learn.fontself.com/create-your-first-color-font-step-by-step-270ced3f0745
NOTE: I've never done this myself. Add to the readme if you figure it out!

@hipstersmoothie  Many thanks

U can use Hiero for change color and size

You don't have to create a color font.
Use black font on a transparent background and XOR if with your desired color:
 textImage.color([{ apply: 'xor', params: ["#ff0000"] }]); // red text

If you need a non-transparent background then create one as a separate image and blit it with the text image:
backgroundImage.blit(textImage, x, y);

You don't have to create a color font.
Use black font on a transparent background and XOR if with your desired color:
 textImage.color([{ apply: 'xor', params: ['#ff0000'] }]); // red text

If you need a non-transparent background then create one as a separate image and blit it with the text image:
backgroundImage.blit(textImage, x, y);

Works perfectly. Thank you

Hello
can you tell me where to insert this line of code.
thank you

You don't have to create a color font.
Use black font on a transparent background and XOR if with your desired color:
 textImage.color([{ apply: 'xor', params: ['#ff0000'] }]); // red text

If you need a non-transparent background then create one as a separate image and blit it with the text image:
backgroundImage.blit(textImage, x, y);

Works perfectly. Thank you

Hello
can you tell me where to insert this line of code.
thank you

Hello @LukaszWiktor, could you explain more where to insert this?

import jimp from 'jimp'

async function main() {
  const font = await jimp.loadFont(jimp.FONT_SANS_32_BLACK)

  const image = await jimp.read('test1.jpg')

  image.print(font, 0, 0,   {
    text: 'Hello, Dexter Morgan!',
    alignmentX: jimp.HORIZONTAL_ALIGN_CENTER,
    alignmentY: jimp.VERTICAL_ALIGN_MIDDLE
  },
    image.getWidth(),
    image.getHeight()
  )

  image.write('test2.jpg')
}

main()

@abdel78900 @gugamacedo
This stackOverflow answer has this example:
Jimp.read('testImage.jpg', (err, baseImage) => {
    if (err) throw err;

    let textImage = new Jimp(1000,1000, 0x0, (err, textImage) => {
        //((0x0 = 0 = rgba(0, 0, 0, 0)) = transparent)
        if (err) throw err;
    })

    Jimp.loadFont(Jimp.FONT_SANS_32_BLACK).then(font => {
        textImage.print(font, 0, 0, "My Text")
        textImage.color([{ apply: 'xor', params: [#00ff00] }]);
        image.blit(textImage, 0, 0)
        image.write('testOutput.jpg'); // save
    });
});

@abdel78900 @maitrungduc1410  @LukaszWiktor
Works perfectly. Thank you

If any changes to the docs are needed and wants to submit a PR to fix I'm able to review and merge!

Small correction to @codesport answer ("image" instead of "baseImage", and  quotes around '#00ff00'):
`Jimp.read('testImage.jpg', (err, image) => {
if (err) throw err;
let textImage = new Jimp(1000,1000, 0x0, (err, textImage) => {
    //((0x0 = 0 = rgba(0, 0, 0, 0)) = transparent)
    if (err) throw err;
})

Jimp.loadFont(Jimp.FONT_SANS_32_BLACK).then(font => {
    textImage.print(font, 0, 0, "My Text")
    textImage.color([{ apply: 'xor', params: ['#00ff00'] }]);
    image.blit(textImage, 0, 0)
    image.write('testOutput.jpg'); // save
});

});`


GSSAPI support on IBM i

When attempting to consume a topic from a Windows hosted Kafka server the connection fails due to the authority mechanisms supported by the server.
(kafka-consumer) N00SYS02:/home/NAVASM/kafka-consumer/src # ./consume-test.py
Traceback (most recent call last):
File "./consume-test.py", line 9, in
auto_offset_reset = 'earliest', sasl_mechanism = 'GSSAPI', security_protocol = 'SASL_PLAINTEXT')
File "/home/NAVASM/kafka-consumer/lib/python3.6/site-packages/kafka/consumer/group.py", line 356, in init
self._client = KafkaClient(metrics=self._metrics, **self.config)
File "/home/NAVASM/kafka-consumer/lib/python3.6/site-packages/kafka/client_async.py", line 244, in init
self.config['api_version'] = self.check_version(timeout=check_timeout)
File "/home/NAVASM/kafka-consumer/lib/python3.6/site-packages/kafka/client_async.py", line 901, in check_version
self._maybe_connect(try_node)
File "/home/NAVASM/kafka-consumer/lib/python3.6/site-packages/kafka/client_async.py", line 381, in _maybe_connect
**self.config)
File "/home/NAVASM/kafka-consumer/lib/python3.6/site-packages/kafka/conn.py", line 273, in init
assert gssapi is not None, 'GSSAPI lib not available'
AssertionError: GSSAPI lib not available
Using KafkaConsumer in Python 3.6 and missing the GSSAPI library.
When attempting to install GSSAPI libs, the krb5-config command is missing on IBM i.
Is this available from the IBM repo? Can’t see krb5-libs on the ACS OSS management tool and not able to install via yum
This is running on an IBM i with V7R3.
Any ideas? They’d be really appreciated 🙂

We do not have any Kerberos or GSSAPI libraries available yet, though it's something we've looked in to.


Enable start agent on windows

Change disables checking for linux container capabilities on windows
Realized I missed this change list when preparing PR https://github.com/rancher/k3s/pull/1653
@luthermonson - Due to windows issue

ping @KnicKnic

ping @KnicKnic

Whoops missed the last ping. I no longer have the hardware to test these changes. If someone else wants to take over than I am okay with it. But I am going to abandon the PR. Feel fee to start off my branch when making the requested changes.
@olljanat @brandond @dweomer @luthermonson

Whoops missed the last ping. I no longer have the hardware to test these changes. If someone else wants to take over than I am okay with it. But I am going to abandon the PR. Feel fee to start off my branch when making the requested changes.
@olljanat @brandond @dweomer @luthermonson


feat: Add support to create template module README from template

Description
Please include a summary of the change and which issue is fixed. Also, please include the motivation and context for the change. List any dependencies that are required for this change.
Check the relevant boxes:

[ ] Bug fix (nonbreaking change that fixes an issue)
[ ] New feature (nonbreaking change that adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Examples or tests (addition or updates of examples or tests)
[ ] Documentation update
[ ] CI related update (pipeline, etc.)

Checklist

[ ] If relevant, a test for the change has been added or updated as part of this PR.
[ ] If relevant, documentation for the change has been added or updated as part of this PR.

Merge

Merge using "Squash and merge".
Make sure to use a relevant conventional commit message that is based on the PR contents. The commit message determines whether a new version of the modules needs to be released, and if so, which semver number to use).

Is there a reason why the .yaml files are hidden? (start with a dot?)

terraform_docs example is using hidden files for precommit-config yaml file https://github.com/terraform-docs/terraform-docs#pre-commit-hook. for consistency I used as well. But it is not needed.


Allow for strict ACKs to be disabled on subscriber peer connections

Bumps pion/webrtc to v3.1.54 so the OnDial handler (https://github.com/pion/webrtc/pull/2392) can be used to disable strict ACKs on subscriber peer connections. When LiveKit is the dialing side (ie. for subscriber connections), it currently expects clients to send DCEP DATA_CHANNEL_ACK messages in response to DCEP DATA_CHANNEL_OPEN messages sent by pion. If this response is not received in x amount of time (I believe 30s), the LiveKit monitor will boot the peer.
Per the DCEP spec in RFC 8832, the reception of an ACK is not required to begin sending reliable, ordered data streams to clients. When using alternative publisher-oriented WebRTC clients such as Amazon's Kinesis SDK, sometimes ACKs are not sent for reliable channels. While LiveKit's Rust SDK is in progress, usage of such alternative SDKs is required in embedded contexts. Even once the SDK is ready, being able to support such devices on modern versions of LiveKit (ie. post v0.15.4) is desirable since embedded devices cannot necessarily be updated once they're in the field.

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


Store locale in arrow object

Addresses issue #309

The commits are admittedly a mess as I didn't take time to figure out how to test locally at first.


Using ESP32

Hello, Can this be implemented using ESP32 without modifications to the code?
Also can this work on 433MHz if the relevant changes are made to set frequency in the 433MHz range?

+1

I tried this on ESP32 without success. Lots of modifications were needed. Different libraries from ESP8266. Hope someone can MOD this for ESP32 soon.

I bought one, and will try to build one myself.

I have been able to implement a single channel gateway on the ESP32 and with the RFM95W LoRa Module. However i modified Pycom's code for their Lopy, inserting libraries for the SX1276 and modifying the code to achieve this. If interested, the source code is available from my github here https://github.com/aizukanne/micropython-lora.
There are a few issues though. I am not sure tx works. I probably commented out some lines i shouldn't have.

I found a mod for ESP32 here: https://github.com/kersing/ESP-1ch-Gateway-v5.0

I tried the link vshymanskyy posted but can not get it to compile, has anyone had luck with it and if so what did you have to do to get it to work?
I

Version 5.2.0 supports most of the functions of the Single Channel Gateway. Please swith to version 5.


Fix timer error message

Requires https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/99
Related to https://github.com/camunda/camunda-modeler/issues/3653

We shipped v1.3.0 with a change that is technically breaking. We dropped the legacy entry ID handling for the Timer group. This would have required an update of the properties panel peer dependency to v2.0.0 as well (cf. https://github.com/bpmn-io/bpmn-js-properties-panel/blob/master/CHANGELOG.md#200). I'd suggest we ship a v2 with that fix.


Fixes mount issues

Towards https://github.com/giantswarm/giantswarm/issues/5132
As the root / proc / sys volumes aren't mounted into the container,
we don't receive any alerts for disk space issues on tenant nodes.
This changeset adds the necessary mounts to provide metrics for disk space.

Pinging @giantswarm/team-batman cause I still don't get how to release this stuff :D

Oh, I thought this is one of the exporters that you added (those are managed without versioning), that do not use channels.
just checked, so as this is one of the "other" repos, you would usually need to change the version in Chart.yaml and then include that version in a new release in cluster-operator, otherwise you're overwriting the old version and changing it in-place within a release. @pipo02mix 	has done this recently IIRC and might be able to explain deeper.

So, if I just merge this now, everything gets updated, but I can spend ages with a PR to cluster-operator to not have everything updated? I know which one I'd rather do :D

Yeah true I thought was not tied to versions. SO there are two options:

Increase patched version of the chart and it will be automatically deployed to all clusters using channel stable 1 (current channel)

create a new release with a new channel. It means:

2.1) Bump chart version minor version (so 0.2.0)
2.2) Add a new key/controller folder in cluster operator which points to the stable channel
2.3) Change installations to have a new release version with the new cluster operator bundle version
2.4) Wait until clusters are updated to use it (in my case I added the new channel to WIP version bundle and a made a patch version bundle too for the clusters affected but it is work 🤷♂ )
P.D. BTW command to create a new release version bundle does not work fine for cluster operator

When do we decide whether to go with patch or minor? My gut feeling is that this is a patch (just fixing some mounts basically), unless you guys have further wisdom.

If it is not breaking change then I would say so.

@pipo02mix can you check that i've bumped the right version? I'm assuming it's version over appVersion.

yes exactly, right version!

do we have this in sync with g8s-prometheus node-exporter? would be cool so we don't have to fix PMs 2 times

Not yet - my hope is to use managed apps on the control plane for node-exporter / kube-state-metrics eventually. Right now, it's 2 PRs :D