Create SECURITY.md

Apache License, Version 2.0 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

Definitions.

"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.

Grant of Copyright License.

Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.

Grant of Patent License.

Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.

Redistribution.

You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.

Submission of Contributions.

Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.

Trademarks.

This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.

Disclaimer of Warranty.

Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.

Limitation of Liability.

In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.

Accepting Warranty or Additional Liability.

While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
Copyright 2016 Shubham Shah (infosec-au)
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

We are waiting the day of the lunching the wonderful this big project


chore: remove duplicate words

Description

closes: #XXXX

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[ ] Targeted PR against the correct branch (see CONTRIBUTING.md).
[ ] Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work.
[ ] Code follows the module structure standards and Go style guide.
[ ] Wrote unit and integration tests.
[ ] Updated relevant documentation (docs/).
[ ] Added relevant godoc comments.
[ ] Provide a conventional commit message to follow the repository standards.
[ ] Include a descriptive changelog entry when appropriate. This may be left to the discretion of the PR reviewers. (e.g. chores should be omitted from changelog)
[ ] Re-reviewed Files changed in the GitHub PR explorer.
[ ] Review SonarCloud Report in the comment section below once CI passes.

Lgtm, will merge if markdown checker doesn't complain again.

@DimitrisJim  seems some .md check failed
ERROR: 1 dead links found!
[✖] https://github.com/cosmos/ibc-go/tree/main/.github/compatibility-test-matrices → Status: 404
(node:1527) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)


chore(master): release 1.14.6

:robot: I have created a release beep boop
1.14.6 (2023-06-11)
Bug Fixes

deps: update dependency pnpm to v8.6.2 (0cfc213)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-node/releases/tag/v1.14.6 :sunflower:


old embed view

Hello there! I hope I'm writing this to the correct repo.
Recently, the plunker embed mode shows also the code. Which I dislike. I only want to embed plunks for demos and have a button (like before) to switch to source.
Is there a possibility to get back the old view or change it in some settings?
thanks a lot in advance!

Update: I found this: https://groups.google.com/forum/#!topic/plunker/p-dwrB3pQwU
Please add settings for embedding views

I've been hearing this general request in a few different ways. The new embed is certainly heavier than the old one; the old embed contained no javascript at all.
I think this presents an interesting opportunity to take the framework from the old embed and use it as a no-js view for embeds that can be 'upgraded' at runtime to the full embed experience.
Thoughts?

I usually use this for tiny embeds. A full editing experience wouldn't fit into a ~500x600px iframe demo
See this for example: http://happy-css.com/lessons/riotjs/reusable-components-observing-events/#creating-our-event-api
My demo barely fits there ;) I always provide a link below the embedded plunker, to directly fiddle with it in fullscreen.
So it really depends on the usecase. I'd love to have a lightweight embedding mechanism. Or like in Codepen, you can share different links for full, editor and  details.
Having an almost borderless integration would be what I need. with an icon of plunker in the corner at least. The old version with the bar on the top was okay, since you can switch between code and preview.
Actually, this is what I did, when migrating to the new embeds:
<iframe width="<?=$attr['width']?>" height="<?=$attr['height']+100?>" src="<?=$attr['src']?>?show=preview"></iframe>

Most of the demos didn't fit anymore, so I had to add 100~ pixels to the height at least.


[DROOLS-1186] Reproducer for 4th incarnation of NPE

I guess this shouldn't be merged without a fix for the failing test.

Superseded by #826.


TypeError: Cannot read property 'ip_address' of undefined

When running ember do:provision I'm running into this error:
There was an error communicating with DigitalOcean's API!
TypeError: Cannot read property 'ip_address' of undefined
Error: TypeError: Cannot read property 'ip_address' of undefined

I looked at the response and it looks like the v4 array is empty. Does DigitalOcean no longer return the ip address in the response or is this something unique to me?

@jwlawrence Hey, thanks for reporting.  And were you trying to create a new droplet? Sometimes there's a race condition around creating a droplet and the IP won't be available from the response.

Ok, yeah that makes sense. I ran it a couple more times and was able to successfully create a droplet, and everything worked well. Might be worth adding a guard around the IP address assignment and setting the value to an empty string if no IP is found. At least then the install will complete and the user can manually update the IP var later rather than spinning up multiple droplets until they win the race.
On another note, creating a new droplet was the only option available to me despite having a pre-existing droplet up and running, so that may be a separate issue. Thanks for this plugin, it's very helpful.

@jwlawrence - What version of Ember-CLI are you using? I'm noticing this issue a bunch when it comes with Ember-CLI Beta 2.3.0, trying to see if it works for the latest versions. Thanks.

I'm on ember-cli 2.5.0.

@jwlawrence - Hmmmm, dang. That's interesting. I'll have to investigate this further, this is weird. Do you have any specific scenarios when this occurs?


[JS, Python] Support apiUrl configuration option

Currently only the .NET, Go, and Java SDKs support the apiUrl option that replaces the combination of apiScheme and apiHost.
We should also extend this to JS and Python, ensuring that we document using this instead of scheme/host and deprecate (?) scheme/host
[ ] JS
[ ] Python

cc @rhamzeh just incase there was a reason we didn't do these initially

Yes, we're migrating all the SDKs to use apiUrl and deprecate the previous two!
JS and Python are the only two left


Set proper env variables for windows python3.4 build

Cannot get this to work. Leaving it alone for right now
https://blog.ionelmc.ro/2014/12/21/compiling-python-extensions-on-windows/
http://pywavelets.readthedocs.io/en/latest/dev/preparing_windows_build_environment.html
https://github.com/cython/cython/wiki/CythonExtensionsOnWindows
https://stackoverflow.com/questions/41724445/python-pip-on-windows-command-cl-exe-failed


Enhance async configuration of bindgen! macro

This commit takes a leaf out of wiggle's book to enable bindings
generation for async host functions where only some host functions are
async instead of all of them. This enhances the async key with a few
more options:
async: {
    except_imports: ["foo"],
    only_imports: ["bar"],
}

This is beyond what wiggle supports where either an allow-list or
deny-list can be specified (although only one can be specified). This
can be useful if either the list of sync imports or the list of async
imports is small.

"This is done thinking that the majority of functions probably want to be async" in real life this may be true.  For tests however, if the target runtime, and I'm concerned with dotnet CoreCLR, requires WASI support then we need to run the wit-bindgen tests with async support and while I'm not sure of the extent of the async requirements yet, it may just be the Instantiate function.  Just a comment really, I can add all the test methods to the exclude list.

Actually thinking about this a bit more, as the tests are "round trip" and the import list is the same as the export list, if I have to change all the tests to async (because exports are always async), then I don't think this PR really affects me: I've got to change the test implementation signatures anyway.

Good point! I think I'll update to:
bindgen!({
    async: true,
    async: false,
    async: {
        except_imports: ["..."],
        only_imports: ["..."],
    }
});

to handle that case. That also keeps everything in the async key which I like better.

Oh oops I didn't see your latest comment until just now, well in any case I think this is a better syntax regardless!

Thanks! This will help in many places


Handle server Shutdown when no Start called

When ports are added to a Server they are bound and listening before Start is called. If Start is never called then the Shutdown does not release the listening ports. See https://github.com/grpc/grpc/issues/23390
This fix:

logs a warning in Shutdown if Start has not been called
calls Start in Shutdown if any ports have been added so that the core library cleans up correctly

@veblush can you merge into the 1.46.x branch? I don't have permissions for that.

https://github.com/grpc/grpc/releases/tag/v1.46.6 has been released.


StoredValue.Read Refactored

Resolves: # Calling ToLower() was causing cultureinfo problems. It was converting "EraInfo" to "eraınfo" when the culture info was set to turkish.

Summary
Refactored ToLower and if-else statements to a single liner.
TODO

[X] Need to be tested for all stored values.

Checklist

[X] Code is properly formatted
[ ] All commits are signed
[ ] Tests included/updated or not needed
[ ] Documentation (manuals or wiki) has been updated or is not required

@msanlisavas  also sign-off your commits to be able to merge the PR. See the details here: https://github.com/make-software/casper-net-sdk/pull/55/checks?check_run_id=21600168141


Build output directory no longer created, but Sparky tasks running successfully?

My /build output directory is not being generated, but I am able to run cleanly with FuseBox. Maybe I have a fundamental misunderstanding of how this works, but shouldn't my dev server fail if there is no bundle?
I have a project which you can easily recreate this scenario:
# clone and enter project
git clone https://github.com/forgo/forgo-isomorphic.git
cd forgo-isomorphic

# for sanity's sake
rm -rf .fusebox/
rm -rf node_modules/

# this is required only before the first run (I dynamically create a dev keystore for https)
./gradlew jks

# install dependencies
npm i

# run the bundler (everything should be fine)
npm run dev

After you finish running those commands, I am curious why there is no build/ directory generated with bundled assets as I was seeing previously?
Previously I had been running two FuseBox.init() instances for the server and client, separately.
Based on what I was seeing online, this didn't seem to be the common approach. My fuse.js shows how I leveraged one instance of FuseBox.init() for both the client and server.
One issue I ran into initially was having separate output paths for the server and client. There seemed to be a conflict finding a 'dir' since I was reusing my fuse variable for both, so I made unique names for those entry points and created a common output which is just /build/.
Is there anything obvious I'm doing wrong here?

For posterity's sake, here is the contents of my troublesome `fuse.js:
const { FuseBox, BabelPlugin, WebIndexPlugin, CSSPlugin, Sparky, QuantumPlugin } = require("fuse-box")
const { src, context, task } = require("fuse-box/sparky")
const fs = require('fs')

const SERVER_ENTRY = 'server.jsx'
const CLIENT_ENTRY = 'client.jsx'

const DEV_PORT = 3333

const SSL_KEY = fs.readFileSync('.keystore/debug.key', 'utf8')
const SSL_CERT = fs.readFileSync('.keystore/debug.crt', 'utf8')
const SSL_PASSWORD = 'password'

const SERVER_BUNDLE = 'server'
const CLIENT_BUNDLE = 'client'

const SRC_PATH = 'src/'

// instructions are relative to homeDir = SRC_PATH
const BUILD_PATH = 'build/'
const SERVER_PATH = 'server/'
const CLIENT_PATH = 'client/'

// relative to fuse.js for `watch`/hot-reloading
const SRC_PATH_SERVER = `${SRC_PATH}${SERVER_PATH}`
const SRC_PATH_CLIENT = `${SRC_PATH}${CLIENT_PATH}`

let fuse

// context shared between tasks
context(
  class {
    getOptions() {
      return {
        homeDir: SRC_PATH,
        output: `${BUILD_PATH}\$name.js`,
        sourceMaps: !this.isProduction,
        allowSyntheticDefaultImports: true,
      }
    }
    getServerOptions() {
      return {
        target: 'server@es5',
        plugins: [
          QuantumPlugin({
            treeshake: true,
            uglify: this.isProduction,
            definedExpressions: {
              "__isBrowser__": false,
            },
          }),
        ],
      }
    }
    getClientOptions() {
      return {
        target: 'browser@es5',
        plugins: [
          CSSPlugin(),
          QuantumPlugin({
            treeshake: true,
            uglify: this.isProduction,
            definedExpressions: {
              "__isBrowser__": true,
            },
          }),
        ],
      }
    }
  }
)

// clean task
task('clean', context =>  {
  src(BUILD_PATH).clean(BUILD_PATH).exec()
})

// config task
const config = (isProduction) => {
  return context => {
    context.isProduction = isProduction
    fuse = FuseBox.init(context.getOptions())
    if(!isProduction) {
      fuse.dev({
        port: DEV_PORT,
        https: {
          key: SSL_KEY,
          cert: SSL_CERT,
          passphrase: SSL_PASSWORD
        },
      })
    }
  }
}
// set isProduction on context if non-dev build
task('dev:config', config(false))
task('build:config', config(true))

// server task
task('server', context =>  {
  fuse.opts = {
    ...context.getOptions(),
    ...context.getServerOptions()
  }

  if(context.isProduction) {
    fuse
      .bundle(SERVER_BUNDLE)
      .instructions(` > [${SERVER_PATH}${SERVER_ENTRY}]`)
  }
  else {
    fuse
      .bundle(SERVER_BUNDLE)
      .instructions(` > [${SERVER_PATH}${SERVER_ENTRY}]`)
      .completed(proc => {
        proc.require({
          // To enable debugging (using VS Code)
          close: ({ FuseBox }) => FuseBox.import(FuseBox.mainFile).shutdown()
        })
      })
      .watch([
        `${SRC_PATH_SERVER}**`,
      ].join('|'))
  }
})

// client task
task('client', context =>  {
  fuse.opts = {
    ...context.getOptions(),
    ...context.getClientOptions()
  }

  if(context.isProduction) {
    fuse
      .bundle(CLIENT_BUNDLE)
      .instructions(` > ${CLIENT_PATH}${CLIENT_ENTRY}`)
  }
  else {
    fuse
      .bundle(CLIENT_BUNDLE)
      .instructions(` > ${CLIENT_PATH}${CLIENT_ENTRY}`)
      .hmr()
      .watch([
        `${SRC_PATH_CLIENT}**`,
      ].join('|'))
  }
})

const run = context => {
  fuse.run()
}

task('dev', ['clean', 'dev:config', 'server', 'client'], run)
task('build', ['clean', 'build:config', 'server', 'client'], run)

@forgo
task('clean', context =>  {
  return src(BUILD_PATH).clean(BUILD_PATH).exec()
})

I just tried it, it's being generated. You have to returns a Promise. I think that's clear enough. You were missing a return statement.

@nchanged
Thanks for looking at it. I should have known better.

@nchanged
Just as a side note, this will create the /build directory, but there is nothing produced underneath it. The only way I can get anything to generate underneath is to comment out the QuantumPlugin.
What are the limitations referred to here? It appears I might be running into them or using the plugin incorrectly, still.
Quantum should be used only for making production builds. It has a few limitations when it gets to the compatibility with original's FuseBox API which aren't solved just yet, but it works perfectly for most projects.

@forgo we can move definedExpression into FuseBox.init (have a shared config) and make dev build understand it too.


Sqlite.Ecto.DateTime

Write a special datetime type for Sqlite.Ecto to handle the conversions between Ecto.DateTime and the strings that Sqlitex expects in the repos.

I don't know what the best method of accomplishing this is at the moment, but I have committed a work-around for the time being.  Removing the milestone since this might not need to be fixed before then.


feat: Updated check ServiceMontior check to include APIVersions check for  helm charts

Problem Statement
When using the external-charts with the kube-prometheus-stack, it leads to issues with the missing CRD and throws error message as displayed in the issue.
Related Issue
Fixes #2547
Proposed Changes
Adding an additional check which checks that "monitoring.coreos.com/v1" is available when creating the serviceMonitor helm charts
Checklist

[x] I have read the contribution guidelines
[x] All commits are signed with git commit --signoff
[x] My changes have reasonable test coverage
[x] All tests pass with make test
[ x I ensured my PR is ready for review with make reviewable

/ok-to-test sha=6838051


[PROPOSAL] Clear command

Hello,
Can you please add clear support.
Have a good day,
Arnaud

Windows: CLS
Mac/Linux AFAIK: clear

Is it enough to cover it up?

Sure! Please go to the roadmap pants in the wiki, add clear and vote on it. Great suggestion though!


Fix vertical alignment of button icons

Fixed #95
Added .vertical-align: middle
Before

After

Thanks for the PR, @bahaaGit!
It seems that the icon is still misaligned with these changes:

I've opened https://github.com/thoughtbot/design-system/pull/106 as an alternative solution.

Closing this, as #106 was merged.


Timeout value of 00:05:00 was exceeded by function: Functions.MyFunc.

I'm trying to setup a function app using script, steps are listed below.
Repro steps
Provide the steps required to reproduce the problem

Create dynamic function app using json template

Setting environment variable (some connection string) through Azure CLI 2.0

Create a folder as a function name under site/wwwroot/ (Kudu REST API)

Upload files into the created folder (through FTP)

run "npm install" (Kudu REST API)

My function code:
'use strict';

const Client = require('azure-iothub').Client;
const Message = require('azure-iot-common').Message;
const iotHubConnectionString = process.env['speech-recognition-iothub'];

module.exports = function (context, myEventHubMessage) {
    context.log(myEventHubMessage);
    if (myEventHubMessage.DeviceID) {
        const cloudClient = Client.fromConnectionString(iotHubConnectionString);
        cloudClient.open(function (err) {
            if (err) {
                console.log('Could not connect: ' + err.message);
            } else {
                console.log('Client connected');
                const message = new Message(`Pong - ${new Date().toTimeString()}`);
                cloudClient.send(myEventHubMessage.DeviceID, message, function (err, res) {
                    if (err) {
                        context.log(`Error in send C2D message: ${err}`);
                    } else {
                        context.log(`send status: ${res.constructor.name}`);
                    }
                });
            }
            context.done();
        });
    }
};

Actual behavior
Then I send some msg to my IoT Hub. The function app is keeping logging "function app start"
logs can be seen here,
Actually, if I do nothing, the function app still keeps logging "function app start"

Couple things:
Careful with the console.log - we won't capture that.  Needs to be context.log.
I'd also recommend that you create a single IoTHub client outside of function scope, you're likely running into some type of connection exhaustion due to creating a client for every function execution:
require('azure-iothub').Client.fromConnectionString(iotHubConnectionString);
module.exports = function(...

If you look at the logs, you can see there are a significant number of errors that are a result of exceeding IoTHub throughput, in addition to the timeout issues you mention.
Finally we may add support for an IoTHub binding to save you a lot of this work: https://github.com/Azure/azure-webjobs-sdk-extensions/pull/192/files

Hi @mamaso. Thank you for your suggestion. I'm confused about the right way to generate the function.json file. One way I know is to use portal and click "+ function" to create a new one.
But what I need now is automatically doing this through script. So after I deploy the azure function using json template. I will using Kudu REST API to create a folder(actually the folder name is the new function' name). And upload the index.js and function.json into that file.
I tried to upload the function.json and  index.js which does not require any npm package,  After that, without doing anything else. I can observe a lot of "function started" logs, and receive timeout error after 5 min. any suggestions?

Seems that after upload the function.json file, I must call the synctrigger REST api:
https://management.azure.com/subscriptions/{subscription}/resourceGroups/{group}/providers/Microsoft.Web/sites/{functionname}/functions/synctriggers?api-version=2015-08-01
Am I right?

Ok, I guess I have figured out the reason of this issue. Though I'm not qiute sure if this is the real reason or not.
I have an iot hub for my test work. And I have used it to trigger an azure function. Also I have sent a lot of msgs to it.
And when I was doing the azure provision script. I used the same iot hub to trigger the azure function that provisioned through my script. It seems that the event hub thinks that the msgs I sent before were not consumed. So when the new function app is created, it will be triggered a lot of times (a lot of 'function started show in the console'). And because the function is just created, it has to spend some time to 'wake up'. So it's difficult for the function app to handle such amount of requests. Then a lot of 'Timeout' & 'Could not send message' error appear in the console
If I create a new iot hub, and binding it to a new function app, every thing is fine.

@jdneo I'm surprised you got a timeout after removing the iothub package / connection - I'd suspect that you might not be calling context.done.
The large amount of queued messages is expected, if they were not all consumed from your event hub on previous function runs.
Closing this, but feel free to reopen / ask more questions if you have them.

Hi @mamaso , thank you for your reply. Just one more thing to ask.
I'm confused about 'not all consumed from your event hub on previous function runs'.
Does that mean I have to open an eventhub client and receive the msg in the function app? In the azure event hub node sdk, I cannot find method doing the consuming action. The sample code just receive the events.
Just curious about this. Maybe I should ask this question in the event hub repo

@jdneo, could you try changing your Function to process the EventHub messages in batches?  You can do so with the following 2 steps:

Add "cardinality": "many" as a new property in your input binding in your function.json file.
Encapsulate your Function code in a FOR-loop to process an array of events instead. I changed the name of your input-binding to myEventHubMessages to indicate plurality.

'use strict';

const Client = require('azure-iothub').Client;
const Message = require('azure-iot-common').Message;
const iotHubConnectionString = process.env['speech-recognition-iothub'];

// renamed your input-binding to myEventHubMessages
module.exports = function (context, myEventHubMessages) {
  context.log(util.format("Node.js script processed %d events", myEventHubMessages.length));
  context.log("IsArray", util.isArray(myEventHubMessages));
  const cloudClient = Client.fromConnectionString(iotHubConnectionString);

  cloudClient.open(function (err) {
  if (err) {
    console.log('Could not connect: ' + err.message);
  } else {
    console.log('Client connected');
    for (i = 0; i < myEventHubMessages.length; i++)
	{
      context.log(myEventHubMessages[i]);
      if (myEventHubMessages[i].DeviceID) {
        const message = new Message(`Pong - ${new Date().toTimeString()}`);
		cloudClient.send(myEventHubMessages[i].DeviceID, message, function (err, res) {
		  if (err) {
		    context.log(`Error in send C2D message: ${err}`);
		  } else {
		    context.log(`send status: ${res.constructor.name}`);
		  }
		});
	  }
	}
  }

  context.done();
  cloudClient.close()// not sure if this is the syntax in Node for cloudClient
};

A similar Function setup can be found at:
https://github.com/Azure/azure-webjobs-sdk-script/tree/dev/sample/EventHubTrigger

@jdneo The event hub queues messages - if the function hasn't yet emptied that queue when you stop your function, when the function starts it will continue reading from that queue.
You don't need to do anything with the event hub client in your function app to consume messages, this happens automatically.
@tohling has a good suggestion which should improve your function throughput, helping it to keep up with the input to your event hub.

@mamaso, @jdneo, actually the suggestion to process the events on batches is due to the fact that I have seen this behavior before with another customer.  His Event Hub had a sustained large load of incoming messages and he would only see "Function started(...)" entries in the log with no corresponding "Function completed(...).  When he switched to batch processing, the problem went away.
I would suggest that you try processing in batch to see if the problem goes away.

Agreed about JS. I filed #429.

Thank you guys! According to your suggestion, I figure out the mistakes I made:

context.done() should be ensured to be called

e.g.
cloudClient.open(function (err) {
    if (err) {
        // error handler
        context.done()
    } else {
        //success handler
        context.done()
    }
});

Put the context.done() inside the callback function can make the 'function complete' log always show in the last step of the function execution

cloudClient.close() should be called.
In my investigation, if cloudClient.close() is not called, it will encounter some problems to open the client in the next function trigger.

Thank you again!


Tune all system parameters

There are several parameters that need to be tuned:
Water visibility period, min and max values:
https://github.com/kas-lab/pipeline_inspection/blob/4738636dd9cea9b547728afe998aacfed6c7ca41/pipeline_inspection_metacontrol/pipeline_inspection_metacontrol/water_visibility_observer.py#L21-L23
A reminder, this is how it is calculated:
https://github.com/kas-lab/pipeline_inspection/blob/4738636dd9cea9b547728afe998aacfed6c7ca41/pipeline_inspection_metacontrol/pipeline_inspection_metacontrol/water_visibility_observer.py#L41-L47
Generate search path function designs altitudes
https://github.com/kas-lab/pipeline_inspection/blob/f9b1d2a38fbca7ee2ca2d1a93595cadbdfea73b9/pipeline_inspection_metacontrol/config/pipeline_inspection_modes.yaml#L19-L34
Generate search path function designs expected water visibility values
fd_spiral_low -> expected QA: 0.5
fd_spiral_medium -> expected QA: 1.0
fd_spiral_high -> expected QA: 2.0

Camera fov
https://github.com/kas-lab/pipeline_inspection/blob/f4632e23f611fafce68594bc1d3a6561d841b1cc/pipeline_inspection/pipeline_inspection/pipeline_node.py#L48

Camera fov
https://github.com/kas-lab/pipeline_inspection/blob/f4632e23f611fafce68594bc1d3a6561d841b1cc/pipeline_inspection/pipeline_inspection/pipeline_node.py#L48

I think we should use higher altitudes and higher water visibility values, since the spiral width decreases with lower altitude, it is taking a lot of time to find the pipeline

New values:
Altitude:
f_generate_search_path_node:
  ros__parameters:
    type: node
    modes:
      __DEFAULT__:
        ros__parameters:
          spiral_altitude: 1.0
      fd_spiral_high:
        ros__parameters:
          spiral_altitude: 3.0
      fd_spiral_medium:
        ros__parameters:
          spiral_altitude: 2.0
      fd_spiral_low:
        ros__parameters:
          spiral_altitude: 1.0

Expected QA:
fd_spiral_low -> expected QA: 1.25
fd_spiral_medium -> expected QA: 2.25
fd_spiral_high -> expected QA: 3.25

Water visibility min and max values
self.declare_parameter('qa_publishing_period', 0.2)
        self.declare_parameter('water_visibility_period', 100)
        self.declare_parameter('water_visibility_min', 1.25)
        self.declare_parameter('water_visibility_max', 3.75)

I am closing this issue. Most of the parameters can be passed directly to launchfiles, so it is easy to test the system with different configurations and record data from all runs.


chore(client): migrate-landing-components

Checklist:

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Ref #43778

I would like to work on this.


Redefine MEDIA_DIR

When I try to run the file that is included in the manim folder it shows an exception
https://i.imgur.com/LlRWcHd.png
even though I have already redefined it's location.

I am


No Video Downloading;  Linux Mint;  I've used apt,  curl and wget to make sure it's updated.

$ yt-dlp -x --audio-format mp3 --audio-quality 0 https://youtu.be/bpZvg_FjL3Q
[youtube] bpZvg_FjL3Q: Downloading webpage
[youtube] bpZvg_FjL3Q: Downloading android player API JSON
ERROR: [youtube] bpZvg_FjL3Q: Unable to extract uploader id; please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U

#30839


Special characters handle in STA WPA key

Hello,
I have a router with some special chars in the WPA key: ! @ ;
I noticed that when the WPA key contains ! character, the configuration is broken.
How can I avoid this issue ?

You can use HTTP-style hex encoding like "My%20AccessPoint" for a blank (i.e. % + value in hex) but I would expect will be the same for standard ASCIIs. We had this issue before with ASCIIs beyond 127 in the SSID. Please try that...

I'll try it ASAP, I'll keep you updated.
I'm testing this repeater, great job! I can achieve about 6Mbps which is pretty good for this device.


method addNode

Hi,
How I can use addNode method in treeview. any help will be highly appreciated.
Regards,
Aamir

If this is not self-describing enough, here's an example:
var allNodes = $('#tree').treeview.getNodes();
var nodesToAdd = ...; // array of the nodes to add
// adds the nodesToAdd as the children of the fourth node
$('#tree').treeview('addNode', [ nodestoAdd, allNodes[3] ]);


Detect graphs that don't exit

There are two ways:
One by examining nodes that have no tails. If there aren't such nodes, there's likely no exit.
One by detecting indefinite cycle somehow. Currently, there's some crude code to make the thing exit after  remembering too many things.
https://github.com/google/labs-prototypes/blob/f52111b112f706dae2eba0bbcaeaf0cf2601b612/seeds/graph-playground/src/nodes/local-memory.ts#L15
That's clearly wrong. We need a better way.

run now has semantics that make infinite graphs okay.


🌐 Add Japanese translation for Tutorial - Body - Updates

This PR translates the tutorial/body-updates.md to Japanese.
Please review tutorial/body-updates.md.
~Issue #1571 generates a new directory to support Japanese.
PR #1656 generates a new directory for tutorial.
I will fix dependency after #1571 & #1656 are merged.~

Nice! Thank you @SwftAlpc ! :clap: :clap: :cake:
And thanks @tokusumi and @delhi09 for the reviews :bow:

Nice! Thank you @SwftAlpc ! :clap: :clap: :cake:
And thanks @tokusumi and @delhi09 for the reviews :bow:


Possible Inaccuracy in SRAM emulation

Hi, i've been trying your emulator to run Gen 1 Pokemon glitches. One of the most popular glitches is the 'SRAM Glitch'. It does not seem to be working on yoir emulator. I tried both the android and desktop linux versions

Your link has the following comment:

Even if the player does not have an existing save file (e.g. on a fresh cart), it is still recommended to clear the save file anyway. Clearing the save file will set the SRAM to all 0xFF bytes, which guarantees that this glitch will give the player an expanded party. On the other hand, the contents of uninitialized SRAM is unpredictable: There is a good chance it will be 0xFF anyway, but it can also be something else. In particular, some emulators initialize the SRAM to 0x00, which means even if this glitch succeeded, it will not give the player an expanded party.

I believe my emulator is initializing the content of RAM to 0x00 instead of the expected 0xFF.
Can you check if clearing the save file makes the glitch work? Or if you are already doing that.

Your link has the following comment:

Even if the player does not have an existing save file (e.g. on a fresh cart), it is still recommended to clear the save file anyway. Clearing the save file will set the SRAM to all 0xFF bytes, which guarantees that this glitch will give the player an expanded party. On the other hand, the contents of uninitialized SRAM is unpredictable: There is a good chance it will be 0xFF anyway, but it can also be something else. In particular, some emulators initialize the SRAM to 0x00, which means even if this glitch succeeded, it will not give the player an expanded party.

I believe my emulator is initializing the content of RAM to 0x00 instead of the expected 0xFF.
Can you check if clearing the save file makes the glitch work? Or if you are already doing that.

very good catch! i apologize for not noticing that. it does indeed work now, thank you

Fixed in https://github.com/Rodrigodd/gameroy/commit/3d3bb7ce0a017e2a00e89738891c72eb8038ef1f, thanks for the report!


refactor(survey-service): move api logic from controllers to respective services

move api logic of some controllers to services for seperation of concerns
gh-1949
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #1949
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Intermediate change (work in progress)

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] Test A
[ ] Test B

Checklist:

[ ] Performed a self-review of my own code
[ ] npm test passes on your machine
[ ] New tests added or existing tests modified to cover all changes
[ ] Code conforms with the style guide
[ ] API Documentation in code was updated
[ ] Any dependent changes have been merged and published in downstream modules

@Akanksha13-dev can you please review ?

@Akanksha13-dev can you please review ?

@Akanksha13-dev can you please review ?

ok

Post and patch survey cycle api
Post survey response api
Post survey question api
update these as well


Agregate (and accelerate) getting stock info from a list of tickers

I have been able to aggregate stock info from different tickers by using a custom aggregation function (see below). But this operation is very slow. Running this on a decent list of tickers takes hours (here 2000 tickers for the JPX competition) . To be fair the problem seems to come from the data loading time.
Any way to make this faster ?

def transform_list_to_df(list, test=False):
    formated_list = []
    for i in dict_t.items():
        if i[1] is None:
            formated_list.append((i[0],i[1]))
        elif type(i[1]) in [str,bool,float,int]:
            formated_list.append((i[0],i[1]))
        elif type(i[1]) in [dict]:
            for j in i[1]:
                formated_list.append((i[0]+'_'+j,i[1][j]))
        else:
            if i[0]=='companyOfficers':
                if test:
                    print(i[1])
            elif i[0]=='sectorWeightings':
                for j in i[1]:
                    for k in j:
                        formated_list.append(('w_'+k,j[k]))
            elif i[0]=='holdings':
                if test:
                    print(i[1])
            elif i[0]=='bondRatings':
                for j in i[1]:
                    for k in j:
                        formated_list.append((i[0]+'_'+k,j[k]))

    df_t = pd.DataFrame(formated_list)
    df_t = df_t.set_index(0)
    df_t.columns = [ticker_name]

    return(df_t.T)

df = pd.DataFrame()

for ticker_name in tickers:
    if DEBUG:
        print(ticker_name)
    t =  yf.Ticker(ticker_name)
    dict_t = t.info
    df = pd.concat((df,transform_list_to_df(dict_t).copy()))

CPU times: user 14min 4s, sys: 22.3 s, total: 14min 26s
Wall time: 6h 20min 40s

The solution is to cache locally. Have you tried using a requests session object? It's described in Quick Start.


Progressive Integration for React Components

Laravel Version: 5.5
PHP Version: 7.x

Description:
The great thing about Vue is that it you can integrate it progressively, unlike React which is all or nothing. It would be great to allow convert just a single page of the Laravel app over to React while keeping the rest the same. Or integrate a React component into an existing page without moving toward SPA or converting that entire page into a JS component just to be able to include a single React component.
This requires some plumbing but is achievable and can up the ante for React developers. It would require a blade directive @react('MyComponent', [$arg1, $arg2, ...]) which could generate the proper markup with data-* tags which into React would render the component. The react and react-dom libs would need to be loaded separately as dependencies so they aren't bundled with each component.

This is not a bug. You can open a proposal in the laravel/internals repo


[mgmt] iotoperations ga

https://github.com/Azure/sdk-release-request/issues/5781

API change check
APIView has identified API level changes in this PR and created following API reviews.
@azure/arm-iotoperations

Hi @deyaaeldeen The pipeline was failed in https://dev.azure.com/azure-sdk/public/_build/results?buildId=4418697&view=logs&j=3dc8fd7e-4368-5a92-293e-d53cefc8c4b3&t=82fc30f9-5a9c-5148-a2fe-cea82335faf1&l=668
in my local, I can repro this build failure
I tried to add "extends": "../../../tsconfig", back in sdk/iotoperations/arm-iotoperations/tsconfig.json , and then re-build. It passed, so should I add this back? I'm not sure which config controls this check

/azp run js - iotoperations - mgmt - ci

/azp run js - iotoperations - mgmt - ci

/azp run js - iotoperations - mgmt - ci

Will disable the seperated ci in this pr manually.


Batched transforms not working (OpenCL)

Hello, it appears as though batched transforms are not working correctly (or I have misunderstood the documentation).  Please find a simple example attached.
In the example, I use vkFFT to do a forward complex-to-complex 1D batched transform and compare the result to NumPy FFT.  The relative different is O(1).  If I instead do the same transform, but one batch at a time, then the vkFFT/NumPy transforms match exactly.
I will try to find a solution, but you might know exactly where to look!
Thanks, Matt
vkfft_batch.zip

Yep, my bad.  I was passing dim instead of ndim!


Load Functions' path argument completions and navigation

Load function file path argument completions
Handling goto definition on Load functions' path argument

Fixes #3425
Fixes #4205
Contributing a Pull Request
If you haven't already, read the full contribution guide. The guide may have changed since the last time you read it, so please double-check.
Contributing a feature

[x] I have opened a new issue for the proposal, or commented on an existing one, and ensured that the Bicep maintainers are good with the design of the feature being implemented
[x] I have included "Fixes #{issue_number}" in the PR description, so GitHub can link to the issue and close it when the PR is merged
[x] I have appropriate test coverage of my new feature

Microsoft Reviewers: Open in CodeFlow

Yep, working on it, unfortunately existing tests are sample file based and so I don't have anything similar to copy code :/

@anthony-c-martin I added the test for definition handler, wasn't easy though :) anyway, 🤞🏻 for tests to pass, as I had some conflicts with lambda's PR.


Reverse a Doubly Linked List

Reverse a Doubly Linked List
Program to reverse the given doubly linked list in JavaScript. Following things can be done ( dynamically ) -

Reverse a doubly Linked List
Display the newly reversed doubly Linked List

Have you read the Contributing Guidelines on Pull Requests?
Yes

/assign


Setup the DataBase

[ ]  Init GitHub Repository
[ ] Create a Maven project for a web app and link it with GitHub
[ ] Add necessary dependencies
[ ]  Setup logging for the project
[ ] Setup a workspace in postman


bhavcopy ZIP file format change issue

Looks like in here current format we're fetching as
https://www.bseindia.com/download/BhavCopy/Equity/EQ230924_CSV.ZIP
Needs to be updated like
https://www.bseindia.com/download/BhavCopy/Equity/BSE_EQ_BHAVCOPY_23092024_T0.ZIP

hye @gaurav34065 is this change on BSE's end breaking the bhavcopy feature?

@sdabhi23 yes, seems like it's not able to find the bhavcopy. I tested this via below sample code
#!/bin/env python3

from bsedata.bse import BSE
from datetime import datetime, timedelta

b = BSE()
b = BSE(update_codes = True)

yesterday = datetime.now().date() - timedelta(days=1)
q = b.getBhavCopyData(yesterday)
print(q)

Getting below exception
bsedata.exceptions.BhavCopyNotFound: The BhavCopy file was not found on the BSE website. You are probably trying to get data for a trading holiday.

Oh okay, I will try to release a fix sometime next week. Thanks for reporting!


[Suggestion] Allow disable automatic CMake configure when saving CMakeLists.txt

This pull request #1196 added new feature to automatic configure CMake when saving CMakeLists.txt.
This is a great feature that integrates CMake projects with IntelliSense.
However, there were things I wanted to turn off this feature.
Specifically, when working on a project that has multiple CMakeLists.txt, running CMake configure every time CMakeLists.txt is saved will hinder my work.
Imagine a project with the following structure:
.
+-- include
|   +-- CMakeLists.txt // Add `foo.hpp`, etc header files to project.
|   +-- foo.hpp
+-- src
|   +-- CMakeLists.txt // Add `cpp.hpp`, etc source files to project.
|   +-- foo.cpp
+-- CMakeLists.txt // Calls `add_subdirectory(include)` and `add_subdirectory(src)` as aggregators.

My project has many source and header files, I have divided the project source file declarations in this way.
This project is using Qt. The problem is that Qt must perform the task of scanning the source files and generating additional source files (Qt MOC sources) every time CMake configure time.
I have to update the CMakeLists.txt twice to add the header and source files.
CMake configure starts when the first CMakeLists.txt is saved, and it also starts scanning the source.
I can't work on it until I've finished scanning the source.
Could you add an option to turn off the this feature to get around the problem?
I'm sure there are others besides me who would like to turn this feature off for projects that perform time-consuming tasks in the CMake configure step.

+1

+1

+1
I'm working on a workspace and there's only one folder has CMakeList.txt, everytime I modify&save it, vscode always shows error about something like "no CMakeList in other folder"

even though I click the "Don't show again", it still appear everytime.

@fatfatson we should fix that, but did you try clicking the "Locate" button to tell the extension where the CMakeLists.txt file is?  Or you can also set the cmake.sourceDirectory setting manually.

@fatfatson or are you saying you have multiple folders added to a workspace and only one of them has a CMakeLists.txt (and it's not the one called 'pi' in your screenshot)?  If that is the case, can you create a new issue for that since this issue is covering a different problem?  Thank you!

I agree this is critical to be able to opt out from a feature like this.  In fact, I would have even done it as an opt in feature.  A cmake run can have many unexpected side effects, it can call any command.
IMHO, this is very dangerous to let it run on save, without the user's blessing.

Yes we are going to fix this for the soon upcoming 1.4.1 update release.

Yes we are going to fix this for the soon upcoming 1.4.1 update release.

Awesome, it's been tough when I do mass find replaces and get spammed with hundreds of "Configuration is already in progress." blasting my window.

Looking forward to being able to disable configure-on-save

This should be fixed in CMake Tools 1.4.1 which was published today.
Let us know if you encounter any issues with this release.

@andreeis seems to have resolved the issues for me, thank you

@andreeis Thank you!

I got this issues too. How to enable/disable auto run cmake after save change Makelists.txt
Quite uncomfortable. I use CMake Tools version v1.8.1

Toggle this setting:


HTML Format and Jekyll Front Matter

I am working on a Jekyll project. There is an HTML in some of the layouts. I have configured to format code on save.
When I save format change this
---
layout: default
---

to this
--- layout: default ---

I have played with this parameters
"html.format.preserveNewLines": true,
"html.format.endWithNewline": true

But nothing seams to change.
And of course Jekyll does not process properly this file until I manually change that Front Matter.
Can we do something about this?

@Serhioromano This is in .html files? What extensions do you have installed (code --list-extensions)? What version of VSCode are you using?

We use http://jsbeautifier.org/ as the underlying formatter.
What you can do is tell it what tags should not be formatted.
That's the setting "html.format.unformatted".
"html.format.preserveNewLines" only applies to new lines before en element tag, not for the content.
If all that isn't good enough I suggest to file a feature request against https://github.com/beautify-web/js-beautify

@chrmarti @aeschli It is not actualy a tags. Here is the example file
---
layout: default
---

            {% assign sorted = site.docs | sort:"order" %} {% for post in sorted %}

{{ post.menu }}

            {% endfor %}

{{ page.title | escape }}

        {{ content }}

So every time i save it top part is formatted into one line.  And there is no possibility to tell what tag it is.
That is why I write here. It should be some adjustment code to detect Jekyll Front Matter and do not format it.
Otherwise i have no other option but turn that awesome feature off and never autoformat my documents or fix Front Matter every time I save document.

CSS has the same problem with the front matter header. All these files are syntactically incorrect. Some features try to ignore it, some break.

would be a hack

Ye, I know. But look even here on Github just one year before front matter was not formatted and --- was interpreted like H1. How Github document view create small table from front matter. Look at this document for example. This is sort of hack also because it semantically incorrect but it is correct reasonably.
Yes it is hack but it is no on the other hand It is sort of adaptation. Without this, VS Code will not be friendly for those who create static sites with Jekyll but this is huge deal for a lot of people.

@Serhioromano I can confirm the formatting issues with "editor.formatOnSave": true for HTML files with Front-Matter. But, if I change the grammar of the file from plain HTML to  Liquid HTML The formatting issues go away.

@ginfuru how do you do that?

@york-xtrem I'm assuming you're asking how you change HTML to HTML Liquid ??
If you install Jekyll Snippets or just install Liquid Languages Support (if you don't need the Jekyll snippets) from there,  you'll have the HTML Liquid language/grammer available. After that you have two options can change the grammar manually or setup your workspace config with something similar to the below snippet, so you don't have to remember to change the grammar.
}
"files.associations": {
    "*.html": "liquid"
  }
}

Thanks!!
El mar., 18 abr. 2017 18:46, Ed Heltzel<EMAIL_ADDRESS>escribió:

@york-xtrem https://github.com/york-xtrem I'm assuming you're asking
how you change HTML to HTML Liquid ??
If you install Jekyll Snippets
https://marketplace.visualstudio.com/items?itemName=ginfuru.vscode-jekyll-snippets
or just install Liquid Languages Support
https://marketplace.visualstudio.com/items?itemName=neilding.language-liquid (if
you don't need the Jekyll snippets) from there, you'll have the HTML
Liquid language/grammer available. After that you have two options can
change the grammar manually or setup your workspace config with something
similar to the below snippet, so you don't have to remember to change the
grammar.
}  "files.associations": {
"*.html": "liquid"
}}
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/24088#issuecomment-294906219,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOJkZo_HgtHAJ-cLHdaxXLRzdAsmcCc1ks5rxOjJgaJpZM4M10s2
.

@ginfuru I can confirm the formatting issues with "editor.formatOnSave": true for HTML files with Front-Matter. But, if I change the grammar of the file from plain HTML to Liquid HTML The formatting issues go away.

That is true. But it disables any formatting on the document. How I cannot format even parts with HTML. It is the same as turn auto-format off.

@chrmarti @aeschli I believe that there should be a parameter for HTML format like preserve new lines. this is very important. Imagine in html I formatted something like this

    This is miltiline
    text with exact
    width

That is readable in MdnightCommander and correct in HTML. If designer open it an change something using VS Code and format it we lose that.
So it is not only about YAML Front Matter. It is in general required feature.

@Serhioromano You can disable formatting of certain tags with the settings "html.format.unformatted".

The best solution I found was to simply change the file extension to .md

@aeschil I can't get this to work for front matter or liquid tags.

@will-stone The best solution I found was to simply change the file extension to .md

This is not a best solution. It is temporary solution. Because in MD mode you do not have HTML formatting.

@aeschli You can disable formatting of certain tags with the settings "html.format.unformatted".

Come on... You are not serious, are you? You know what I mean. This is not exact case this is example of problem. Perhaps your answer addresses this example but not the problem I'm trying to raise. Let's say it is also outside of any html tag.  Or let's say it is in a
 tag. And sometimes there is text sometimes other HTML which should be formatted.
In fact I am very surprised why I should spent so much efforts to solve it. like I personally do not care. I just think that VS Code is awesome and I use it on a daily basis. All I wanted to make even more awesome by contributing and reporting. Look, after I started this topic I get to know more about this and I have discovered that YAML Front Matter is actually very popular and used not only by Jekyll. So since a lot of developer use it, why do not we do something about it so that VS Code would be more friendly to those huge number of developers?
Really to turn formatting off for HTML documents with Front Matter is not a perfect option.

This is not a best solution. It is temporary solution. Because in MD mode you do not have HTML formatting.

Agreed. However, if you're looking to keep formatting on (I have mine set to format when I save so this is particularly irritating) and get a small HTML template out the door, setting the file extension to .md is a temporary workaround.
As mentioned by @aeschli, this really is an issue for JS Beautify. If Code were to support this, they'd need to create a wrapper around Beautify and maintain it.

As mentioned by @aeschli, this really is an issue for JS Beautify. If Code were to support this, they'd need to create a wrapper around Beautify and maintain it.

I agree. If they do such a parameter to ignore new lines, then this parameter might transfer to VC Code. But if not? You have read what they say. It is general purpose formatter. It is not actually to format documents but rather create wraps around it. So their answer is "We create basic framework or API and all the rest is on those who use it."
I am almost sure if this is ever done it either Jekyll extension or VS Code.

@Serhioromano I think the best option would be to create an extension that uses prettydiff for formatting and excluding .liquid, .html, .md files from the default formatter with VSCode.

is this resolved? not really, right? can we open this again? How about vs code adds an option to exclude certain strings/regex so we can add our front matter? you could say "string between --- and --- should be excluded, etc.
---
layout: start
---

ignoring a string or regex would be extremely helpful in solving this issue

I stopped using front-matter in Foundation's panini flattener because of this reason. I was so bummed I couldn't use it except after I had pages complete. I find myself still cussing when I have to edit one of those pages but I just use a little more discipline when making edits so the formatting is not needed.


Fix more broken links

Description

Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

/merge-when-ready

OK, I will merge the pull request when it's ready, leave the commits as is when I merge it, and leave the branch after I've merged it.

Oops. I had the merge ready on this. I'll fix up and put up another PR.


Add a Jackson-based Java properties configuration factory

This PR introduces a new JavaPropsConfigurationFactory, based on jackson-dataformat-properties.
In the future this factory might replace the old PropertiesConfigurationFactory based on the Builder API.
Pros

the mapping between properties and JSON is standardized by Jackson (cf. documentation) and we can refer users to their (somehow lacking) documentation.

Cons

this configuration factory does not support any of the quirks manually coded into the PropertiesConfigurationFactory, e.g.:

rootLogger = INFO, Console

users need to use the usual way to configure loggers or the undocumented levelAndRefs attribute:
Loggers.Root.levelAndRefs = INFO, Console

That workaround is a critical component for getting log4j v1 users to easily upgrade their configurations though.

I believe you are referring to this dev@logging discussion.
If I understand correctly, Loggers.Root.levelAndRefs would be Ok for Hadoop users.

@ppkarwasz, I am puzzled. I was expecting to see some code removed too. Are we adding a 2nd .properties-formatted configuration factory next the what we already have?

That workaround is a critical component for getting log4j v1 users to easily upgrade their configurations though.

@jvz, even though you are right in theory, I would say it was more of a convenience for HBase, where they, in the past, made this convention get deployed during installation, and now they don't have control over those user-crafted files anymore, and hence they strive to support it. (LOG4J2-3341 contains the details.) I recall no other either a complaint for the absence of this feature, or a praise for the presence of it. Though all these don't make your remark less valid. We can indeed try to support it in log4j-config-properties. But... maybe... it is time for Log4j 1 users to put some effort into upgrading their configuration files?

@vy,
This is more of a PoC. If you like it, I can remove/move PropertiesConfiguration and the Builder API in another PR.

I suppose it's not a blocker.

This is more of a PoC. If you like it, I can remove/move PropertiesConfiguration and the Builder API in another PR.

I think the Builder API and .properties-formatted configuration are two separate things. I really like the current PR, except it hosts two competing features. If you can remove the PropertiesConfiguration in log4j-core, I think we are done here. (We can address the Builder API discussion elsewhere.)

@vy,
It is done, now we have two properties configuration factory modules:

log4j-config-properties-legacy contains the old code with a lot of exceptions to the mapping rules,
log4j-config-properties is Jackson-based and has simple rules to map from and to JSON.

For dropping log4j-config-properties-legacy, I believe we need a new PR.
Remark: I removed the if statement in LoggerConfig that prevented other configuration factories from using the levelAndRefs attribute.

This was actually merged in ec93d181c875d9f5fd3c0207c7f02ca7b6056472
I deleted the upstream branch too fast (again) for Github to detect the merge.


Couple of issues

2 things...
How does the swing sensitivity option work in the config menu?
A swing sound plays before the end of the saber on audio finishes, do you know why this may be?

The sensitivity option is a bit tricky to explain in short. It goes up to 1g in increments of 1/160 (button click) or 1/16 (hit the hilt). This granularity is due to full range of 16k corresponding to 1g. After changing the sensitivity you can right away try it out, it will play the hum and if the threshold is tripped it will insert a swing.
As to the 2nd item, I've heard it too from time to time, I need to look it up in the code. It could be that the swings are triggered but not suppressed for the duration of the power up.

Thanks for the advice, I'll try hitting the hilt. When I've tried to single press in attempt to change the sensitivity it sends me to the volume setting after a couple of presses.
The swing sound only appears to happen on the first saberon after changing the sound font.

There is a new release as master branch, with some major bug fixes :) I also recalibrated the swing sensitivity, a single click will increase the setting with 1/100th of a g and a hit with 1/10th of a g. You can see the sensitivity increase/decrease by swinging the saber and listening to the swing sound.

Hi Andras,
Thanks for the heads up, do you have a change log?
I gave the swing sensitivity option a go last night using clash, it
certainly worked but at times crashed out or became unresponsive. It'll be
interesting to see how things are in the new release.
I spotted that someone was working on a config GUI too, is this an official
development?
Kirk
On Nov 4, 2017 17:03, "András Kun"<EMAIL_ADDRESS>wrote:

There is a new release as master branch, with some major bug fixes :) I
also recalibrated the swing sensitivity, a single click will increase the
setting with 1/100th of a g and a hit with 1/10th of a g. You can see the
sensitivity increase/decrease by swinging the saber and listening to the
swing sound.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/14#issuecomment-341912896,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AdIiAmQSOJgNOI2n7tqvvk6hJZSMx8_sks5szJjWgaJpZM4QQJ9I
.

Are you referring to the Jakesoft project or something else? Can you share
a link to this project.  I'm not aware of anyone else working on related
projects.
Jason "Kuma" Brinkerhoff
*Mad Science Workshoppe, *proprietor
http://jbkuma.com/workshoppe
On Sat, Nov 4, 2017 at 1:12 PM, kirkyb<EMAIL_ADDRESS>wrote:

Hi Andras,
Thanks for the heads up, do you have a change log?
I gave the swing sensitivity option a go last night using clash, it
certainly worked but at times crashed out or became unresponsive. It'll be
interesting to see how things are in the new release.
I spotted that someone was working on a config GUI too, is this an official
development?
Kirk
On Nov 4, 2017 17:03, "András Kun"<EMAIL_ADDRESS>wrote:

There is a new release as master branch, with some major bug fixes :) I
also recalibrated the swing sensitivity, a single click will increase the
setting with 1/100th of a g and a hit with 1/10th of a g. You can see the
sensitivity increase/decrease by swinging the saber and listening to the
swing sound.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<https://github.com/Protonerd/FX-SaberOS/issues/14#
issuecomment-341912896>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/
AdIiAmQSOJgNOI2n7tqvvk6hJZSMx8_sks5szJjWgaJpZM4QQJ9I>
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/14#issuecomment-341913674,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMBapyLVkWvB4GFE6YKv5qDNuuZvrks5szJsXgaJpZM4QQJ9I
.

Yes I'm referring to Jakesoft's STREAM proof of concept, it looks very promising.
It would be great to have a GUI for these boards

Jake's STREAM is for the DIYino boards, but curretly he is busy with other matters, so I guess he will not update it anytime soon. I might ask him if he is willing to give me source code to play around with.

That would be great, having a programme like that would make optimising custom fonts a breeze. From what I can make out, it looks like its using Java?
The evolution of this would be to add wireless capability such as Bluetooth for making quick adjustments, e.g. whilst during a cosplay event etc.

USB or Bluetooth, it's just a serial connection so it's always possible to
add the capability.
On Nov 5, 2017 3:32 PM, "kirkyb"<EMAIL_ADDRESS>wrote:

That would be great, having a programme like that would make optimising
custom fonts a breeze. From what I can make out, it looks like its using
Java?
The evolution of this would be to add wireless capability such as
Bluetooth for making quick adjustments, e.g. whilst during a cosplay event
etc.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/14#issuecomment-342003016,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMAXA9SGj3zzGM4Zs-QGTAo0B6wMSks5szhtNgaJpZM4QQJ9I
.

Closing


Will the pre-training code be released?

Or is there a way to finetune this pre-trained model?

We are working on providing  fine-tuning and covariate support soon.

@rajatsen91
Hi, I am wondering whether the pre-train code will be released in the near future?
Best regrads,
Zahir Wang


Add setInventory method to interface and implement in all connectors

setInventory(VariantProduct $listing, integer $targetValue, $sku = null, $country = null)
This method should be implemented in all connectors, with the last two parameters (sku and country) being specific to Amazon.

setInventory method added for trendyol, ciceksepeti, shopify, hepsiburada, bol.com


KeyError: 'familyList'

Hi there,
I get the following error while running the script,my device is a 4CHPROR3. I have py3.12.0 running on Raspberry 4.
I started the server as follow
pi@rasp:~/eWeLink-mqtt $ ./ewelink.py **** **** -b <IP_ADDRESS>  -d 1001f96h99
The following error appears.
[2023-12-16 21:25:36,253] INFO MQTT library v1.0.2
[2023-12-16 21:25:36,254] INFO Connecting to MQTT broker: 192.
[2023-12-16 21:25:36,264] INFO MQTT broker connected
[2023-12-16 21:25:36,265] INFO Connecting, login: ***, password: *****, appid(v2):
[2023-12-16 21:25:36,266] INFO subscribing to: /ewelink_command/#
[2023-12-16 21:25:38,753]ERROR 'familyList'
Traceback (most recent call last):
File "/home/pi/eWeLink-mqtt/./ewelink.py", line 297, in start_connection
homes = await self.get_homes()
^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/eWeLink-mqtt/custom_components/sonoff/core/ewelink/cloud.py", line 179, in get_homes
return {i["id"]: i["name"] for i in resp["data"]["familyList"]}
~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'familyList'
Any idea what how can i fix it?
Thanks & Regards

Do you have the latest https://github.com/AlexxIT/SonoffLAN/tree/master installed?
If so, run eWeLink.py again with the -D (debug) option, and post the output here.
I have a feeling that the app ID and secret do not have permission to access the get_homes api, which is why you are seeing this.

Yes it is the latest. It seems the error comes from here
eWeLink-mqtt/custom_components/sonoff/core/ewelink/cloud.py
{'error': 407, 'msg': 'the path of request is not allowed with appid:4s1FXKC9FaGfoqXhmXSJneb3qcm1gOak', 'data': {}}
I added a # in like 41 now it works as expected.
BTW do you have a hint for me, how one can turn on off each switch for a 4CH pro device?I mean how to send a comand that e.g switch1 goes on and at the same time all other off?
"mosquitto_pub -t "/ewelink_command/1000861ac4/switch" -m off"?

Yes, the app ID does not have permission to access the homes api. Not sure why this is, but I should probably take a look at it.
as far as I remember, (and it’s been a long time), it would be:
mosquitto_pub -t /ewelink_command/1000861ac4/switches -m “0 off”
mosquitto_pub -t /ewelink_command/1000861ac4/switches -m “0 on 1 off 2 on 3 off”
mosquitto_pub -t /ewelink_command/1000861ac4/switches -m “3 on”

And so on.


OT184beta: link to errata page still says "1.8.3"

[Enter feedback here]

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

ID: c09084e1-cbcf-fae3-e45e-3002f5bd85fb
Version Independent ID: 6f35b5b7-4ed3-6ec6-42e7-ba09d044a672
Content: OpenType specification (OpenType 1.8.4) - Typography
Content Source: typographydocs/opentype/otspec184beta/index.md
Product: typography
GitHub Login: @PeterCon
Microsoft Alias: alib

Fixed


Automated cherry pick of #6684: fix: gcp path escape for object

Cherry pick of #6684 on release/3.2.
#6684: fix: gcp path escape for object

Codecov Report

Merging #6685 into release/3.2 will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@               Coverage Diff               @@
##           release/3.2    #6685      +/-   ##
===============================================
- Coverage         7.03%    7.03%   -0.01%
===============================================
  Files              650      650
  Lines           111812   111822      +10
===============================================
- Hits              7869     7867       -2
- Misses          103334   103347      +13
+ Partials           609      608       -1

Flag
Coverage Δ

#aFlag
7.03% <0.00%> (-0.01%)
:arrow_down:

Impacted Files
Coverage Δ

pkg/baremetal/tasks/bm_register.go
0.00% <0.00%> (ø)

pkg/baremetal/tasks/ipmiprobe.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/namevalidator.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/opslog.go
1.50% <0.00%> (-0.01%)
:arrow_down:

pkg/cloudcommon/db/scoperesource.go
0.00% <0.00%> (ø)

pkg/cloudcommon/db/tenantcache.go
2.93% <0.00%> (-0.35%)
:arrow_down:

pkg/cloudcommon/policy/resources.go
0.00% <ø> (ø)

pkg/cloudprovider/cloudprovider.go
1.53% <0.00%> (ø)

pkg/cloudprovider/instance.go
0.00% <ø> (ø)

pkg/cloudprovider/objectstore.go
2.48% <0.00%> (-0.01%)
:arrow_down:

... and 20 more

Continue to review full report at Codecov.

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


[Proposal] Use local installed vscode-vue-languageservice instead of extensions embedded one

Seems you already detect that there is a local lower/higher dependency 🤔
Could your plugin try to use it?

We could also try to do something like VSCode is doing for TypeScript 🤔

I'm fine with an option in .vscode/settings.json

Thanks for your recommend, but already has a workaround, we can install any version in VSCode, so not considered currently.


Dependency to libwebkitgtk3 cant be met in Arch based Manjaro

... as the title says, there appears to be no package that would supply me with the required package.
The error that occurs while starting up is:
./Flying Carpet: error while loading shared libraries: libwebkitgtk-3.0.so.0: cannot open shared object file: No such file or directory
But nevertheless, I think this is an awesome idea and would make a useful addition to any Computer/OS :)
Thanks for your work

Yep, currently only supporting on Debian as I only have one Linux machine to test with. Would you be interested in trying the CLI version? It may work as it doesn't require the graphics libraries, though you will need nmcli. It's here if so, please let me know if you try: https://github.com/spieglt/FlyingCarpet/releases/download/v1.2/flyingcarpet.Linux.CLI.zip
Thanks for your interest!

Opening a receive connection worked on manjaro.
Only my other computer was a linux headless server running debian, and there the missing nmcli prevented any further testing.
But in general, the cli appears to be working.
./flyingcarpet -receive ./ -peer linux
=============================
Transfer password: 4PZP
Please use this password on sending end when prompted to start transfer.
=============================

exit status 2
exit status 10
exit status 10
exit status 10
exit status 10
Listening on :3290

Will check on debian based distro some time in the future.
Thanks

Thanks and please let me know if you get it working or if there's anything else I can do to help. May eventually switch out nmcli with iw.


[KBV-494] - Fraud error screen

What changed
Updated fraud error screen to match specification for MVP

KBV-494

Oops, you'll need to fix up the browser tests, as they're currently using getSomethingWentWrongMessage which no longer applies :)


Normals Issue : The Models Exported Are Without Normal & Lighting Can't be Baked In Unity

Hello , i am currently facing the issue that the models are without normals and baked lighting didn't work with them , is there any workaround for this ?
https://www.dropbox.com/s/ql9tpvfvfxmtqzb/map_tunisia.zip?dl=0

Export is as FBX with asset studio and add normals in blender or max


feat(Usage Reports): re-gen service to pickup changes to Instance Reports

PR summary

Adds the VolumeDiscount and VolumeCost field to the metric type
PR Checklist
Please make sure that your PR fulfills the following requirements:

[x] The commit message follows the Angular Commit Message Guidelines.
[x] Tests for the changes have been added (for bug fixes / features)
[x] Docs have been added / updated (for bug fixes / features)

Current vs new behavior

Adds the VolumeDiscount and VolumeCost field to the metric type
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

Tests:
Test Suites: 22 passed, 22 total
Tests:       1624 passed, 1624 total
Snapshots:   0 total
Time:        9.164 s
Ran all test suites matching /test\/unit\//i.

Integration tests:
Test Suites: 1 passed, 1 total
Tests:       16 passed, 16 total
Snapshots:   0 total
Time:        33.769 s
Ran all test suites matching /test\/integration\/usage-reports.v4.test.js/i.

Examples:
Test Suites: 1 passed, 1 total
Tests:       13 passed, 13 total
Snapshots:   0 total
Time:        18.353 s
Ran all test suites matching /examples\/usage-reports.v4.test.js/i.

 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.

:tada: This PR is included in version 0.59.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Feature/new utils for k8s umount api

This change is

Coverage decreased (-0.09%) to 48.352% when pulling 9af2303ad8acbcc169fe3d5ed7d57a2d1ebe6532 on feature/new_utils_for_k8s_umount_api into 6b5aa1a28b55c3a2f683ec381926cc296f553440 on dev.


Owned By/Viewable By/Editable By Me should not be seen by anonymous users

This goes back to a discussion we had some time ago.  The "Resources" page was originally conceived as the "My Resources" page.  We backed off of that and made it just "Resources" because we do not have an "Explore" page that would enable unauthenticated users to discover public resources.  Originally, the "My Resources" link would have taken unauthenticated users to a page where they could either sign up or sign in.  I think we should go back to this when we have an "Explore" page.
I would probably fix the "Resources" page to make sure that unauthenticated users don't see anything under the "Owned by me" link (as a short term fix), but I don't think we should spend a lot of time changing the "Resources" page to do what the "Explore" page should do.

I was just thinking about this "Filtering" versus "Discovery" distinction this morning. The quickest route is to just make this page available only to logged in users.
@dtarb thoughts?

I don't think you want to completely block potential users who are browsing for what kinds of public resources already exist. That seems counter to the purpose of the "Share" portion of HydroShare.
Perhaps the quickest route around this is adding a second parameter check to the "Owned by me" filter. Say for example "&edit_permission=true", being the same second parameter that is found in "Editable by me" which does successfully filter out anonymous users (aka not signed in).
End result being anonymous user would see the default public resources when they hit the my-resources page. Then if the click.

Owned by me - they see nothing
Editable by me - they see nothing
Viewable by me - the see public resources

Then post NFIE we revamp this to actually use proper checks with proper party models and a universal agreement on what each term means (owner, creator, etc. so on and so forth).

@mjstealey 's solution sounds good.  It may not resolve the quirkiness of the owner search tags, but perhaps that is a separate issue.
Once we have a Discovery page then it would be OK to make this page available only to logged in users.  Until then it serves as our Discovery page as well as My Resources page, so should be open to all.  I do not know how long it is going to be to set up a Discovery page.  Ideas on this can be seen in the original mockups from @horsburgh in Alfresco.

An "Explore" or "Discover" page will be much more interesting once we have some content in HydroShare.  In the meantime, @mjstealey 's solution sounds good.

+1


Polyline with symbols on it (arrow)

Hi there,
I would like to know if there is a way to attach symbols to a polyline, like in the Google Maps v3 Javascript API examples:
// Define a symbol using a predefined path (an arrow)
  // supplied by the Google Maps JavaScript API.
  var lineSymbol = {
path: google.maps.SymbolPath.FORWARD_CLOSED_ARROW
  };

  // Create the polyline and add the symbol via the 'icons' property.
  var line = new google.maps.Polyline({
path: [{lat: 22.291, lng: 153.027}, {lat: 18.291, lng: 153.027}],
icons: [{
  icon: lineSymbol,
  offset: '100%'
}],
map: map
  });

Thanks a lot!

Looks like this feature is not available for the native sdk, V3 only.


Button not working

I loaded the front-end integration according to the instructions and can build a card for the magic light entities, but the buttons and colors on the card do not work when pressed.

Hmm. It's just calling the service for `flux_led.set_custom_effect' I'm curious if that service call works directly for you via the developer sidebar menu? (Ideally this card is solely convenient config to have that service do the heavy lifting)

but the buttons and colors on the card do not work when pressed.

I wonder if the confusion is that a single press, previews that color (for the selected lights at the bottom), whereas a double click is required to add/remove it from the selected palette?  Is that the catch here?  That behaviour was only mentioned in the readme - but have just now added to the top of the configuration panel (in case indeed that's what's happening)


Would like to contribute

How join slack community (it says "contact the space administrator...")

Thanks for reaching out. You can join the Drupal Slack by joining in https://drupalslack.herokuapp.com
We'll meet you there to talk about Contenta JS!


Practice code review by reviewing one of my past trial projects

// Highlights:

This is an improved and experimental version of the Tribute Page from FreeCodeCamp during Microverse trials
Linters are passing
Project deployed and working properly
Using CSS reset

// REQUIRED CHANGES:

Add a professional README
Structure the HTML in a semantic way using nav, main, section etc...
Remove unnecessary comments from HTML and CSS
Make it mobile responsive, including fluid fonts

Hi @fbclh , I’m Shoira, your reviewer for this PR :computer:,
You have done  a  great job commenting issues :thumbsup:
However, there are some issues that you still need to work on to go to the next project but you are almost there!

Required Changes  :recycle:

[ ] As per the requirements of this project, you have to use GutHub inline comments feature, please read about inline comments here

[ ] Please go through all the steps and leave at least 2 inline comments in your peoject

[ ] I suggest you to make sure to be polite when asking to make changes and don't forget to give a brief explanation talking about the necessity of changes:

This is a polite suggestion: "I think it would be better to use semantic tags"*
This reads as an order: "Use semantic tags"*
Currently your comments sound like order 😄

[ ] And remember to be clear while writing comments:

Clear comment:   The README's "Built With" and "Getting Started" sections are currently empty. Why don't you add content, listing the technology used in the project and how to run it, to them so your README is more informative and professional?
This is a vague comment: The README is not descriptive, why don't you make it better?

Cheers and Happy coding! :clap: :clap: :clap:
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

As described in the Code reviews limits policy you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Out-of-date repository?

Hi Christopher,
First, thank you for hacking together this nice library. I ended up using it because the ZoKrates project did, and have been quite happy with it.
However, I'm worried that the git repository is out-of-date with the most recent version on Crates.io. The git repository seems to hold version 0.3.1, but Crates.io holds version 0.3.3. Could they be brought into sync?
Cheers,
Alex

I'm sorry. I seem to have confused from-pest and pest-ast. Closing this.


[terra-disclosure-manager] Explicitly documenting the required arguments for the disclose behavior

Summary
As of #583, the DisclosureManager will prevent dismissals of components disclosed without a key. A unique key is expected to be provided with the disclose request, per the documentation, and this was not expected to be a breaking change.
However, some consumers of the disclosure manager were not providing a key with their disclose requests. As of #583, this results in modals that can be opened but not closed. While I consider this a bug in their implementation, it is a regression in their functionality and leaves their applications in an unfortunate state.
This PR updates the documentation to be more explicit and removes the undefined check within the dismiss functions that is causing the above issue. I've logged #623 to better handle this in the future.

@tbiethman is this a MVB?

No MVB is necessary because there's no change in API or behavior here. Anyone not providing a key will get the same experience they had before #583 was released. I'm updating the docs to be crystal clear that a key should be provided, because it will be absolutely required after #623 is complete.


Add removal.AI

Add removal ai to AI: https://removal.ai/

i want to work on it sir

ok, you can start working on this @Bharadwajshivam28

ok, you can start working on this @Bharadwajshivam28

Created a pr please check


Is it possible to create a alignDB from a custom file, like a sam file?

Hi, Thanks for the nice tool!
Is it possible to create a alignDB from a custom file, like a sam file?

Not sure I understand, can you explain what you want to achieve?


A fatal error has been detected by the Java Runtime Environment

Running the following code from the Python REPL has no issue at all.
from textrankr import TextRank

textrank = TextRank('Some text')
textrank.summarize()

However, running it from a Flask application causes the JVM crash somehow.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f268e61dcb9, pid=21903, tid=0x00007f2678f5e700
#
# JRE version: OpenJDK Runtime Environment (8.0_111-b14) (build 1.8.0_111-8u111-b14-2ubuntu<IP_ADDRESS>-b14)
# Java VM: OpenJDK 64-Bit Server VM (25.111-b14 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [_jpype.cpython-35m-x86_64-linux-gnu.so+0x3ccb9]  JPJavaEnv::NewString(unsigned short const*, int)+0x29
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/ubuntu/tldr/hs_err_pid21903.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

After some Googling, I've figured the issue was that the Flask app may be running in multi-threads. By inserting jpype.attachThreadToJVM() where it uses TextRank solved the problem.
For more details, refer this issue.

It no longer causes any issue with jpype.attachThreadToJVM(), hence closing this issue.


url_launcher. Can we clear the cache when launching webview?

I am using url_launcher (launch and closeWebView) to show Strava login and approval/scope.
It seems that webview (correct me if I am wrong) is keeping stuff in a cache because behavior is different when it is the first run of the app (after install) or the following runs.
Is there a way to clear the cache of the webview from url_launcher?

Is it possible to add in a future release of url_launcher an option to clear the cache before launching a webview?

If I understand url_launcher correct it just launches the OS browser.
Best to ask on stackoverflow too.

Might be able to use the functionality that landed in https://github.com/flutter/plugins/pull/1200 ?

I have the same problem!

I have the same problem ,too..!
No Webview, used url_launch

Same here, would be great to have a way to clear the webview cache in url_launcher.

url_launcher is intended to have a minimal API for launching, and the API of SFViewController is extremely limited so this couldn't be implemented on iOS anyway. Use cases that need detailed control of the webview should build on webview_flutter instead.
Closing as out of scope.


Custom label / price line color for PriceLine

Is your feature request related to a problem? Please describe.
If my chart background is close to black (something like #050505), and I pick a dark blue around #142e61, the label can be identified easily. However, the corresponding line will be a lot harder to identify because of the chart background.

Describe the solution you'd like
Have an option like labelColor in PriceLineOptions.

Thank you for your feature request for Lightweight Charts. In order to keep the library lightweight and maintain a narrow focus, we strive to include only strictly required features in the core library. As a result, we have decided that this requested feature should be implemented as a plugin instead, and will be closing this issue as a result.
We recently introduced the ability to write plugins for Lightweight Charts, allowing users like you to extend the functionality of the library without adding it to the core. We highly recommend implementing your feature request as a plugin to achieve the desired functionality while keeping the core bundle size smaller for all users.
To get started with plugins, please refer to our Plugins Documentation for a better understanding of what is possible and how plugins work. You can also explore our collection of plugin examples (with a preview hosted here) for inspiration and guidance on implementing specific functionality.
For your particular feature request, we suggest taking a look at the following examples (see above links):

User Price Alerts
Partial Price Line
User Defined Price Lines

To help you get started quickly, we have created an NPM package called create-lwc-plugin, which sets up a plugin project for you. This way, you can hit the ground running with your plugin development.
If you do create a plugin based on your feature request, we would appreciate it if you could publish it on GitHub or NPM and let us know. This way, we can share it with the rest of the community. It would be helpful if you could prefix your NPM package name with lwc-plugin- for easier discoverability by others.
Thank you for your understanding and support. We believe implementing your feature request as a plugin will greatly benefit both you and the Lightweight Charts community.


Drop unused --keep-going flag in build docs action

From Sphinx 8.1, --keep-going is always enabled.   When --fail-on-warning is used, sphinx-build no longer exits on the first warning, but instead runs the entire build and exits with exit status 1 if any warnings were generated..

If we do that, should we also constrain the sphinx version to >=8.1?


added stack implementation by array and linkedlist in Java

#39 Reference Issue
Added 3 folders
linkedList -> for LinkedLinked implementation to be used in Stack implementation
node-> to create nodes for linkedlist
stack-> for stack implementation by array and linkedlist

thank you :)


nixos/bookstack: all secrets are replaced by app_key

Describe the bug
in #154564 secret management was redone for bookstack. Now I can't place a mail password as secret. It's also appended with Mail:
❯ cat .env
APP_CONFIG_CACHE=/run/bookstack/cache/config.php
APP_EVENTS_CACHE=/run/bookstack/cache/events.php
APP_KEY=<<APPKEY>>
APP_PACKAGES_CACHE=/run/bookstack/cache/packages.php
APP_ROUTES_CACHE=/run/bookstack/cache/routes-v7.php
APP_SERVICES_CACHE=/run/bookstack/cache/services.php
APP_URL=https://wiki.example.com
DB_DATABASE=bookstack
DB_HOST=localhost
DB_PORT=3306
DB_USERNAME=bookstack
MAIL_DRIVER=smtp
<EMAIL_ADDRESS>MAIL_FROM_NAME=Wiki
MAIL_HOST=mail.example.com
MAIL_PASSWORD=<<APPKEY>>Mail
MAIL_PORT=587
<EMAIL_ADDRESS>SESSION_SECURE_COOKIE=true

Notify maintainers
@talyz
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
❯ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.91, NixOS, 21.11 (Porcupine)`

Oh, sorry about that. I can't see any obvious culprit in the code and I really don't know where Mail came from. Can you paste the service script as it's been rendered? Can you paste a configuration that reproduces this?

Oh, I suppose this could happen if the mail password file path is a superset of the app key file path. Is that the case?

I've submitted a fix for you to test: #157719. I hope it solves this issue.


Round half to even for f32, f64

I personally think that this would be nice to include in the standard library, considering how round half to even is the IEEE default and has some nice properties.

@clarcharr can you describe this operation more in-depth?

I can expand on this. Just making a note here so I can easily find this bug later

Closing since this is being implemented as part of rust-lang/rust#95317.