authentication question

Hi @Badgerati
I read authentication this chapter a couple of times, what I am looking for is not there.
I expect I use basic, form, AzureAD or aouth2 (any of this) to authenticate username/password generally, details can be ignored, but once the user is valid, I prefer to use API key, Bearer or JWT (sessionless) afterwards for each routes, but I do not want to bind API key ... these authentication logic for each route.
So question 1:
Once user is valid by basic (username, password) etc and how I can set generated API, Bearer or JWT value and set into header, as example I just saw it returns a user pscustomobject into webevent. (I know how to generate API Key or Bearer)
Question 2:
I can create two authentication logic for one project, right? One is for, let's say login for username, password, another is json rendering routes afterwards
Question 3:
Like this: Add-PodeAuthMiddleware -Name 'GlobalAuthValidation' -Authentication 'Login', I should just set up one authentication middleware right, or it would mess up, right?  To my case, json rendering route would be 99%, and username/password route would be just 1%, and once I set middleware logic apikey, Bearer or JWT globally, and how to make sure which does not affect the username/password login that route, I do not know how to figure out.
Since before I used postgrest, which is username/password login, and once login validated, it would return a JWT to me, and I can use JWT to access same site, but postgrest is postgresql database only, so it has some limitation.
I want to follow the habit to use Pode, not sure whether it is possible.
Thanks so much!
Eric Xin

I put two images for Question 3, I set Bearer as gloablmiddleware, but I have need to set up specific route to accept individual authentication, and how to do?
Thanks
Eric Xin

Hi @ericxin1982,
This actually highlights 2 things that I've been considering putting into Pode.
As a quick response for now, while I finish v2.6.0: you'll have to create the two different auths and then bind them individually onto the required routes. In the form/bearer auth, this will have to manually generate some API key that can be returned to the user for the other auth.
Once I've got 2.6.0 out, I'll respond more fully what the 2 ideas are :)

Thanks.

Right now I would spit different auths into two project, and shared the JWT generated value in backend storage like redis or db for cross validation, hopefully the newer version released, my two projects can be merged back together, right now I am still learning how to use pode better.

Once project can have two Start-PodeServer concurrently?
And shared state only exists in one podeserver instance, right?
Is it possible to have shared state across different podeserver instances?
I thought each podeserver only can have one global authentication, not sure whether it works.

Hi @ericxin1982,
For the main questions above, you can set a -Route pattern that the global authentication will be used on. In the case of the 1 or 2 routes that will use basic/form you can just set the -Authentication directly, and then for the other 99% of functions you can do something like:
Add-PodeAuthMiddleware -Name 'GlobalBearerAuth' -Authentication 'Auth-Bearer' -Route '/api/*'

^ this way, if you start all of you API key based routes with /api/, the global auth middleware will only run for these routes. Using the -Route pattern you could even do the same for the basic/form routes as well.
Without the -Route pattern supplied, any routes with -Authentication will actually have 2 authentication methods applied.

For the questions just above:

You can only have 1 Start-PodeServer per project; but you can run 2+ Start-PodeServers in different sessions.
There isn't an inbuilt way to share state between 2+ different Pode servers. For this you'd have to use Redis, MongoDB, SQL, or other data/state stores.
You can set multiple global authentications, just so long as the route pattern is used to avoid routes getting multiple authentications.

For the ideas I've had, one of them is already ticketed to allow "merging" multiple authentications: #588. My other is about having some form of inbuilt JWT for Pode - so it can automatically build "API Key" like tokens for you; kind of like Pode being an SSO.
Hope that helps 😃


Timeout when building multi-stage image using a BIG (4gb) image on CI

Hi,
I have a failing test build on my CI server, which doesn't happen on my local environment.
The specific test builds an image from from a multi-stage Dockerfile, which gets an image from a private registry. I added the ::Docker.authenticate!() and the images looks like it get's pulled with no problem.
    ::Docker.options[:read_timeout] = 3000

I extended the read_timeout even to a ridiculous number 30000 but it fails after 1 minute and few seconds with the following reason:
Command "cat /etc/os-release" confirm debian version
	file:///opt/ExtraAgentOne/work/290360a68beb1190/docker_images/tests/spec/scheduler/dockerfile_spec.rb:29
	[Test Output]
	      confirm debian version (FAILED - 1)
	Docker::Error::TimeoutError: read timeout reached
	Docker::Error::TimeoutError: read timeout reached

	Stack trace:
	/var/lib/gems/2.3.0/gems/docker-api-1.34.2/lib/docker/connection.rb:52:in `rescue in request'
	/var/lib/gems/2.3.0/gems/docker-api-1.34.2/lib/docker/connection.rb:38:in `request'
	/var/lib/gems/2.3.0/gems/docker-api-1.34.2/lib/docker/connection.rb:65:in `block (2 levels) in <class:Connection>'
	/var/lib/gems/2.3.0/gems/docker-api-1.34.2/lib/docker/image.rb:274:in `build_from_tar'
	/var/lib/gems/2.3.0/gems/docker-api-1.34.2/lib/docker/image.rb:293:in `build_from_dir'
	./spec/scheduler/dockerfile_spec.rb:18:in `block (2 levels) in <top (required)>'
	------------------
	--- Caused by: ---
	IO::EAGAINWaitReadable:
	  Resource temporarily unavailable - read would block
	  <internal:prelude>:76:in `__read_nonblock'
	[Test Output]

My serverspec test which fails is the following:
require 'docker'

describe "Dockerfile" do
  before(:all) do
    ::Docker.authenticate!(
      'username' => ENV['REG_USR'],
      'password' => ENV['REG_PWD'],
      'serveraddress' => ENV['REG_URL']
    )

    # Set the timeout to a much higher value.
    ::Docker.options[:read_timeout] = 3000

    @image = ::Docker::Image.build_from_dir('.', 't' => 'scheduler:rspec')

    set :os, family: :debian
    set :backend, :docker
    set :docker_image, @image.id
  end

  describe command('cat /etc/os-release') do
    it "confirm debian version" do
      expect(subject.stdout).to match(/Debian/)
      expect(subject.stdout).to match(/9 \(stretch\)/)
    end
  end

  # [...]

end

If it makes a difference,locally I run the test with rspec dockerfile_spec.rb but on my CI server (TeamCity) it uses a Rake runner. From the build logs I see: RSpec Options: dockerfile_spec.rb --color --format documentation --require teamcity/spec/runner/formatter/teamcity/formatter --format Spec::Runner::Formatter::TeamcityFormatter
Any idea?

https://github.com/swipely/docker-api/blob/master/lib/docker.rb#L93-L95 It looks like these options are passed to the connection and then memoized. You'll probably see a difference if you swap the order of the authenticate call and the read_timeout assignment.

This actually did the trick! Thanks a lot @tlunter !


Some clean up / minor improvements before starting to play with 1.6.0-SNAPSHOT sources

I have merged your changes.


Proposal: Change storage path for all hashed based files (clips/thumbnails/filmstrips)

Currently all files that are generated (clips/thumbnails/filmstrips) get put into 3 bucketed folders under their vha location.
for example:
<root>/clips/00c97592786e278a9591aeea96ae36c4.mp4
I think there is wisdom to migrate this to
<root>/(clips|thumbnails|filmstrips)/<first_char_of_hash>/<second_char_of_hash>/00c97592786e278a9591aeea96ae36c4.(jpg|mp4)
This can help circumvent limitations and performance implications of large amount of files in 1 directory. Older linux file systems had the 10k+ performance issues thing. Plus it justs makes debuggin and manual browsing easy.  Lays the foundation for 100k+ video hubs

If the issue is with only with Linux, I'll respectfully decline a major refactor to make it work slightly faster there 🤔
I glanced now and for Windows 10, the maximum number of files seems to be 4,294,967,295 and for Mac it is likely similar. And given that the user isn't opening any of these folders (Node is), I don't imagine there are performance issues.
Have you experienced slowdowns that you think exist because of the folder structure?

Slowdowns occur when debugging and while basically any new filesystem can support 1M+ files with ease there are certain performance considerations as you have to make underlying system calls X times to retrieve all the files. I'm not what syscall nodejs makes for "file open" and "file exists" events and if those involve dir listing in part or in full but it's worth considering regardless.
This "improvement" ,if you want to call it that, I don't think this falls into the bucket of major refactor in that it the exist code can check both places in whatever order is most prudent, migrate files that exist in the old place to the new place or simply leave them there for any old hub.
From a "benefits" perspective I think in the short term this is small/trivial/worthless but it raises the ceiling in the medium term+

I have a customer who said his collection is over 100,000 video files (and the initial import process occasionally crashed for him), so VHA 3.0.0 will have the better way to import and handle files.
I'll reach out to the individual and ask for feedback about how well everything works with version 3.0.0
I'm unsure if I'd be able to amass such a large video collection so as to test things out 😅

My "video" collection is 12M+ plus. but 99% of them are 64x64 (and typically about 90 frames) moving perceptual hashes. Based on how vha works I like the idea of being able to swap in/swap out which files are considered a part of a hub at any given moment by updating the vha2 file based on an outside-of-the-program search  that can project into the vha2 the result.
Having all 12M files set in their respective locations just makes this quicker for me specifically (thus the hash prefix directories would be useful) if all I have to do is update the vha2 with the set I care about, but it for the general user at large I'm not sure this is a big value add.
Anywho, digging that app.

I've considered this before, and it could be quite a good option for very little cost. A collection of 100k videos means 300k files in total, which is not very nice to ever list in any sort of file manager! 😉
Assuming permissions allow (which they should as new videos need write permissions anyway) a simple "update" routine could easily move all the files into correct folders. An easy fix by just incrementing the "save file version number" already present when it's completed! 👍

Along with this, I think we should come up with a clean solution for upgrading any (at least somewhat recent) file version to a new version. I added the file version for this purpose:
https://github.com/whyboris/Video-Hub-App/blob/857924bf96bbfdc8c27ea86beec2e6364451a5f9/interfaces/final-object.interface.ts#L16
It should be pretty easy - just have a new function, that takes a file of version X, and runs each upgrade step to get it from X to the current file version! 👍  These steps can just be added to the in future, allowing any old file to be upgraded! Just like applying any patches you've missed along the way one at a time! 😄

Good ol' database evolutions coming to a vha2 file near you. =)

Thanks again @cal2195 for implementing the vha file version number -- it makes the upgrade to version 3 nice and easy (though in theory I could have checked for presence of a particular field - its absence would have indicated older version). But it's nice and clean - and you're the one that made it that way 🙇 🤝 😁  Cheers!

As I'm trying to finalize 3.0.0 I'm trying to close out issues.
This one feels like a bunch of extra work (every bit of code is a liability for bugs) and would require an upgrade script to go from version 2 to 3.
I would prefer for users of VHA, when upgrading, to just open their old file and have everything run smoothly. Additionally, it's a nice bonus that they could also go back to version 2 without losing anything.
This was not a bad suggestion - I just think it's a lot of work with minuscule benefit (and even at that, one that only a few users would ever notice). Thank you all for the discussion 🙇


fix: address deprecation issues

Alaska Airlines Pull Request
Fixes: #36, #37
Summary:
This per addresses issues related to an issue reported where the deprecation warning was incorrectly firing in regards to the font.scss file.
The issue is that there is no real deprecation of the selector, but it's a deprecation of variables. This is best addressed by logically detecting if the deprecated variable is available or not.
This PR also includes expanding on the solution of providing a better deprecation resource. E.g. if files are being loaded up and it is a deprecated selector, the idea is to challenge to see if there is a legacy token. If there is not, there is no value in trying to render the selector.
But the deprecation warning will still appear in the logs until the developer removes the deprecated resource.
Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[ ] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Orion Design System Team

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Fixed issue with logging of task name to stdout

Previously console.log('Joining to task: ' + task.info.name) would render something like:
Joining to task: undefined. However, the task name is stored in task.info.props.name instead.

Codecov Report

Merging #58 into master will increase coverage by 0.02%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
+ Coverage   80.64%   80.66%   +0.02%
==========================================
  Files          36       36
  Lines         806      807       +1
  Branches       99      100       +1
==========================================
+ Hits          650      651       +1
  Misses        156      156

Impacted Files
Coverage Δ

lib/orchestrators/join.js
95.55% <100%> (+0.1%)
:arrow_up:

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 7fba1c8...da47397. Read the comment docs.

@tiagofilipe12 ready to merge?


Base for the new layout

This is the starting point for the new layout. Building upon this it should be easy to work on individual components without worrying too much about merge conflicts.
Most of the components are broken since they're moved around and do not receive props. Some minor styling is also missing and/or broken entirely. Also there are debugging code here and there.
Major changes

:sparkles:  :sparkles:  NEW LAYOUT :sparkles:  :sparkles: Completely rewrote scss code.
Removed header/navigation bar entirely. Some of it's functionality will be in the upcoming Menu dropdown, currently not implemented.
Styles are divided into partials. Each component has it's own partial. Check stylesheets/editor.scss directory how it's done.
Flexbox. The whole layout is now done using flexbox. Check stylesheets/editor.scss file for more.

Minor changes

Updated to lastest CodeMirror 5.6.0
Removed deprecated react-classset. Using classnames instead.

Layout proposal

This PR

Excellent work @jozan! This looks awesome :heart_eyes:

Woups, I chose default branch by mistake. This should be merged to editor-redesign branch. Creating new PR and closing this one.


Generalize cognitive search integration

make the code more generic in order to integrate apps other than Custom Text

estimated time: 8 days


Background sync and React

Library Affected:
workbox-background-sync.
Browser & Platform:
Chrome
Issue or Feature Request Description:
Hey, im having a really hard time getting this set up..
Im running a simple POC against using the background sync function in my react app im currently using an abb i spun up using Create React App using the next.js image, im running the whole thing as a client side app and i have everything set up... what i need to do is get the background-sync part up and running.
Ive hit a number of issues but at the moment i seem to have hit all the "errors" but I am unsure of how to actually get the background sync to start adding items to the IndexedDB queue.
I currently have this code in me worker.js file and the way the docs are worded this seems to be the "wimple" plug and play style version of using this code.. but nothing happens when an API call fails on me /players page. Is there something specific I am missing?
import {BackgroundSyncPlugin} from 'workbox-background-sync';
import {registerRoute} from 'workbox-routing';
import {NetworkOnly} from 'workbox-strategies';

const bgSyncPlugin = new BackgroundSyncPlugin('myQueueNameDefault', {
    maxRetentionTime: 24 * 60, // Retry for max of 24 Hours (specified in minutes)
  });

registerRoute(
    /\/player/,
    new NetworkOnly({
      plugins: [bgSyncPlugin],
    }),
    'POST'
  );```

i can fix iit

OK so i have managed to push though and get workbox set up at its core but now i am to the meat of the issue!
I need to use the backgroud sync function and i have used the example code used in the docs (see below)
My issue now is i get "Queue.js:341 Uncaught TypeError: Cannot use 'in' operator to search for 'sync' in undefined" as an error, am i missing a step?
/* eslint-disable no-undef */
import {precacheAndRoute} from 'workbox-precaching';
import {BackgroundSyncPlugin} from 'workbox-background-sync';
import {registerRoute} from 'workbox-routing';
import {NetworkOnly} from 'workbox-strategies';

const bgSyncPlugin = new BackgroundSyncPlugin('myQueueName', {
    maxRetentionTime: 24 * 60, // Retry for max of 24 Hours (specified in minutes)
  });

  registerRoute(
    /\/user/,
    new NetworkOnly({
      plugins: [bgSyncPlugin],
    }),
    'POST'
  );

precacheAndRoute(self.__WB_MANIFEST || [])  /* eslint-disable-line no-restricted-globals */;

// eslint-disable-next-line
self.addEventListener('install', event => event.waitUntil(self.skipWaiting()));
// eslint-disable-next-line
self.addEventListener('activate', event => event.waitUntil(self.clients.claim()));

It very specifically seems to be when creating the Queue its self, the issue seems to be that self.registration doesn't seem to contain the sync prop... i can see it within the registration its self
at the moment i an trying to enforce it running after the registration, which while it prevents a breaking error still isnt working
you can see below how i am enforcing the check
if ('serviceWorker' in navigator) {
  window.addEventListener('load', () => {
    navigator.serviceWorker.register('/service-worker.js').then(registration => {
      console.log('SW registered: ', registration);
    }).then(() => {
      if(navigator.serviceWorker.ready) {
        const queue = new Queue('myQueueName');
    console.log("queue", queue)
      }

    })
    .catch(registrationError => {
      console.log('SW registration failed: ', registrationError);
    });
  });

}```

Hi there,
Workbox is moving to a new engineering team within Google. As part of this move, we're declaring a partial bug bankruptcy to allow the new team to start fresh. We realize this isn't optimal, but realistically, this is the only way we see it working. For transparency, here're the criteria we applied:

For PRs, we closed everything that doesn't target the current v7 branch.
For Issues, we closed everything that was created before 2024.

Thanks, and we hope for your understanding!
The Workbox team


Fix indentation in TDS::Driver class

@wonderix sorry about this, but I noticed my previous change screwed up the indentation in the TDS::Driver class, so this pull request fixes that small mistake on my part.

No problem.


Theorems are not repeated

Hi,
I don't know if I didn't get how to use the package, but apparently it does not seem to work.
This is a minimal working example to replicate the problem; the last theorem label, the one with the underscore, even throws an error during compilation when the fourth \reptheorem is issued at the end. Notice that also in the package documentation (the user's manual) the package does not seem to work, and theorems are not repeated.
%%% Begin of the MWE
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{lmodern}

\usepackage{amsmath,amsthm}

\usepackage{reptheorem}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{construction}[theorem]{Construction}

\begin{document}

\begin{makethm}{theorem}{thmOne}[First Theorem]
This is a first theorem.
\end{makethm}

\begin{makethm}{theorem}{thm2}[Second Theorem]
This is a second theorem.
\end{makethm}

\begin{makethm}{theorem}{thm:third}[Third Theorem]
This is a third theorem.
\end{makethm}

\begin{makethm}{theorem}{thm_fourth}[Fourth Theorem]
This is a fourth theorem.
\end{makethm}

\repthm{theorem}{thmOne}

\repthm{theorem}{thm2}

\repthm{theorem}{thm:third}

% \repthm{theorem}{thm_fourth}

\end{document}
%%% End of the MWE

Hi emalizia,
This should fix the MWE.
%%% Begin of the MWE
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}

\usepackage{lmodern}

\usepackage{amsmath,amsthm}

\usepackage{reptheorem}

\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}
\newtheorem{corollary}[theorem]{Corollary}

\theoremstyle{definition}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{example}[theorem]{Example}
\newtheorem{construction}[theorem]{Construction}

\begin{document}

\begin{makethm}{theorem}{thmOne}[First Theorem]
This is a first theorem.
\end{makethm}

\begin{makethm}{theorem}{thm2}[Second Theorem]
This is a second theorem.
\end{makethm}

\begin{makethm}{theorem}{thm:third}[Third Theorem]
This is a third theorem.
\end{makethm}

\begin{makethm}{theorem}{thm_fourth}[Fourth Theorem]
This is a fourth theorem.
\end{makethm}

\repthm{thmOne}

\repthm{thm2}

\repthm{thm:third}

\repthm{thm_fourth}

\end{document}
%%% End of the MWE

Notice that \repthm no longer takes a first argument. This was removed in v1.1 since it was deemed unnecessary.
That fixed the issue for me.
As for the documentation, it is (as of very recently) a known issue. The documentation that was uploaded to CTAN is somehow different from the one on GitHub, and it was only compiled once (as opposed to the required twice to produce the aux files). And the version on GitHub is somehow outdated. Terribly sorry about that. It will surely be fixed in the next update. As a "hotfix", I have attached the CORRECT documentation.
reptheorem.pdf

Hi Jesse,
Thanks a lot for your help. The suggestion fixes the problem for me as well.

Just one additional thing that can be spotted via the same MWE. It is something that I've noticed already in the output of the package thmtools, and it happens for your package as well.
In the output of the MWE above, for the initial sequence of theorem declarations, there is a bigger vertical space between the theorems compared to the vertical space between the repeated theorems in the second part of the document. I don't know exactly why this happens. As I told you, it is something that `thmtools' does too, I found that the problem was reported (on tex.stackexchange.com, if I rememebr well),  but my limited knowledge about LaTeX internals didn't allow me to fix it.
Thanks again for your help.

Hi @emalizia, would you mind creating a separate issue for the problem? I'll make sure to look into it.

Will do


feat: update http-proxy to forward x- headers

http-proxy doesn't forward x- headers by default, and nextjs doesn't gracefully handle undefined (currently)
I am added the xfwd to turn on x- headers forwarding for the proxy.
details on the bug: https://github.com/vercel/next.js/issues/61133
You can see that our app no longer blows up for pages router in the builder here: https://app.makeswift.com/workspaces/V29ya3NwYWNlOjcxMTJlYTg3LTBhNmYtNGZhOS1hNDc2LTA1NjhjMWYyYzE5MA==/sites/U2l0ZToxY2I5Y2M5OC1lYzg4LTQ2NmUtYjdjNi03YTRhNDc2NTEwN2Q=/pages/UGFnZTo5ODEyOTZlMy0xY2MyLTQ3YWUtYWFlMi00NTcwOTIyNjU2MGI=
This site in Makeswift is using the preview deployment above.

@joshuawootonn, this looks good to me. We've also got some custom code that looks at x-forwarded-proto and x-forwarded-ssl to determine what protocol we should use. Do these changes relate in some way to this? Do we need to change or remove this code?

Do these changes relate in some way to this? Do we need to change or remove this code?

My understanding is:
(1) user sends request -> (2) this request hits api route -> (3) the proxy sends the request without headers to route -> (4) route throws because the invalid value of the header.
The error is at 4 because of the invalid value. At 3 the proxy still has access to the headers and their valid values. So no change is needed to the proxy and how it accesses it's headers

@migueloller do you think this warrants a changeset?

@migueloller do you think this warrants a changeset?

Yes! Every change we make should have a changeset. Maybe in the future we can extract commit info for the changelog so we can simply write good commit messages and don't also have to write a changeset.


Bump Marathon to 1.9.71

High-level description
What features does this change enable? What bugs does this change fix?
Corresponding DC/OS tickets (required)

MARATHON-8694 - Allow modification of enforceRole via the PUT /v2/groups endpoint

MARATHON-8693 - Fix rare bug in which resident service because stuck and unremovable when Mesos fails to create a reservation

Related tickets (optional)

MARATHON-8682 - Internal refactoring to make treatment of paths in Marathon less error-prone.

Checklist for component/package updates:
If you are changing components or packages in DC/OS (e.g. you are bumping the sha or ref of anything underneath packages), then in addition to the above please also include:

[x] Change log from the last version integrated (this should be a link to commits for easy verification and review): example
[x] Test Results: (Master Build)[https://jenkins.mesosphere.com/service/jenkins/job/marathon-pipelines/job/master/1378/]

@mesosphere-mergebot bump-ee


Will redbird break after Oct 31 if Greenlock isn't updated?

I'm getting this everytime I install redbird 0.9.1:
================================================================================

 🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒
🍒                              🍒
🍒  Do you rely on Greenlock?   🍒
🍒               (or ACME.js)   🍒
🍒                              🍒
 🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒🍒

Hey! Let's Encrypt will STOP WORKING with Greenlock and ACME.js at the end of Oct 2019.
WITHOUT YOUR HELP we won't get the next release out in time.

If Greenlock (or ACME.js) has saved you time and money, and taken stress out of your life,
or you just love it, please reach out to return the favor today:

SAVE GREENLOCK / ACME.js:
https://indiegogo.com/at/greenlock

================================================================================

It's only 2 days left for the $5.000 goal so I'm a bit worried that Redbird will not be updated in time before Oct 31 if any Greenlock update is released. I highly depend on Redbird's awesome automated Let's Encrypt support for my sites.
What can we do in this case? Or is it something we should not worry about?
Thanks,
-DARKGuy

I am aware of this, and actually affects my production servers too. Lets wait a couple of days to see if they are going to implement it or we need to find an alternative solution.

@manast Are you sure about this?
My server has stopped working
https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430/6

I have services that have renewed certificates in december, so it is working after november 8th for sure. I got the information from the guy at greenlock, so I hope he is correct.

ok, here is more up-to-date info:
https://community.letsencrypt.org/t/end-of-life-plan-for-acmev1/88430
seems like old accounts are fine, is the new ones that will not work.

It will be updated for sure. I do not know how much work it would be to migrate though... PRs are of course welcome too.

Okej, thx for the answer!


Disable file-system watching on macOS 11 and before

File-system watching only works well on macOS 12+. This updates the documentation and automatically disables it on macOS 11 and earlier.
Note: We don't have macOS 11 or earlier in our CI fleet, so we can't actually test this automatically.
Fixes #29476
Reviewing cheatsheet
Before merging the PR, comments starting with

❌ ❓must be fixed
🤔 💅 should be fixed
💭 may be fixed
🎉 celebrate happy things

@bot-gradle test QF please.

I've triggered the following builds for you. Click here to see all build failures.

QuickFeedback build

Manually tested here: https://github.com/lptr/kmp-viewmodel/actions/runs/9479024243/job/26116663434
Looks to be working 🎉

WARN: Based on labels, this pull request addresses notable issue but no changes to release note found.

Thank you so much for this fix !
Ran into this on OS X 10.15 with Gradle 8.8 ( tried every conceivable java and workaround - like a brick wall )
Tested 8.9 RC 1 - works like a charm !
Thank you ! It's good to have current / next Gradle available, and not resort to reverting and working around !
( As old and deprecated as OS X 10.15 is - there are those of us who still have to use it, and it's very appreciated )


Added allow_images to SubredditSettings

Should be good to go.

Thanks! When will this change be on nuget?

IIRC it's whenever a new release that MyGet pushes it to NuGet from github


Fetching 250 products but how to take more than that using 2020-01 API and rel=next?

My code is:
$shop = ShopifyApp::shop();
    $requests = $shop->api()->rest('GET', '/admin/api/2020-01/products.json', ['limit' => 250, 'fields' => 'id,title,variants,image']);
    dd($requests);

And everything is fine but how I can fetch more than 250 products? I also would like to save them all in one JSON file and store on my server, because fetching 250 products takes around 20 seconds...

found the solution

How to take new 250 products and store them into the same JSON file?

Don't need to store them in a JSON file?

Why not just store the results in a variable and then loop through to the
next step using the new cursor-based pagination?

I want to create a grid view for all products and fast response time. I want to store all products in the JSON file in my Redis cache and to use it from there because Shopify API is very slow.
That will also allow me to implement a very fast search for products.
I just need to store once all products.JSON into my Redis then the user can sync any moment. Just I want to put products into my storage and use it from there.

This is not the place for help building your app, you would need to post these questions in a place like Stack Overflow. The issues section if for bugs and problems with the package and this is not that.
You should close this issue and then post your coding help on Stack Overflow. Hope this makes sense. Any bugs you have with the package though feel free to create an issue.

Thanks, I will close

Sorry to reopen this but if you're wondering how to paginate, I found it here.
BasicShopifyAPI provided documentation on how you provide the link as part of the page_info param.
$shop = ShopifyApp::shop();
    $requests = $shop->api()->rest('GET', '/admin/api/2020-01/products.json', ['limit' => 250, 'page_info' => 'eyJsYXN0X2lkIjo0MDkw', 'fields' => 'id,title,variants,image']);
    dd($requests);


more cooler

appreciation
Wow.. this app is cream of the crop ... I really love it
so what!
Quyz... would ot be much cooler if you include the aready shown qouets ..that. is... when I have read a quotes from a specific specfic Author say .. Epictetus who has a collecton of 255..  I would want to wee the number added as read when I return back to view the all quotes section...
That is to mean if I was in no 100 in the all quotes/read section.. the new no.. should be 355 since I have already previewed the 255 from Epictetus..
thanks

Hi herbert - thank your for raising the issue.
I think your idea is a good one. It's not an idea that I had thought of and it might not be too difficult to implement either. I'll investigate how to change the app.
You can track progress of your issue here: https://github.com/jameshnsears/QuoteUnquote/projects/1

Hi - I have released version 2.6.2 with a possible solution to your issue.
The solution I came up with is a switch titled "Add displayed Author / Search to Previous" in the All section of the App.
The new version of the App should get picked up by Google Play within a couple of days or so. The app is also registered on fdroid - but their automated publishing process takes longer.
Please re-open this issue if you spot a problem & thanks again for your suggestion.


🐛[BUG] : Contact Us form Last Name validation

Description
The " Last Name" field in the Contact Us form should only accept alphabetical letters (a-z, A-Z). Currently, the field allows users to input symbols and special characters, which may lead to invalid or spam submissions.
Steps to Reproduce

Go to Contact Us page.
Click on Last Name field.
Type number and symbol .
See there is no error.the

Expected Behavior
The "Name" field should only accept alphabetical letters (a-z, A-Z) and prevent users from invalid entries.
Actual Behavior
Currently, the field allows users to input symbols and special characters, which may lead to invalid or spam submissions.
Screenshots

Additional Information
No response
What browser are you seeing the problem on?

[ ] Firefox
[X] Chrome
[ ] Safari
[ ] Microsoft Edge

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I want to work on this issue. (optional)

@akash70629 please complete the previous issue first which i have assigned you.
And please don't create multiple issues.

@akash70629 you should have added this issue in your previous issue, why are you creating multiple issues.
this is the last warning from my side.

i am closing this issue, make sure to add this one into your previous issue.


first commit for chordShapes function

Hi @danigb ,
Here's my first go for the chordShapes function.  I noticed the dist/tonal.js was modified when I ran the build commands, hope that's not a problem?   Anyway, I think more elegance could be had in this function, but I figured I'd send it your way and see what you thought.
The basic idea is you can supply the tuning, the chord tones, the reach of frets, and it will output arrays of notes starting on each fret that can be gripped within the fret range supplied.  The notes are indexed by string.  For instance this would be an open E chord:
[ 'E2', 'B2', 'E3', 'G#3', 'B3', 'E4' ]
In cases where there could be multiple notes fretted per string that element will be an array.  For instance the first result for Emaj7:
[ 'E2', 'B2', [ 'D#3', 'E3' ], 'G#3', 'B3', 'E4' ]
#8

Hi Garret,
Thanks for the PR! 👍
My first thoughts are that I don't know If I understand clearly the purpose of your function :-D. As I understand, it returns you the notes of the chord/scale for a fret range. It's like asking: how I can play this chord in this position? If so, I think it would be nice to know, not only the string note, but also the fret number to produce... But maybe I'm totally wrong.
Anyway, I will take a look at the code, and give you better feedback.
Thanks a lot!

Right, the simple point is what you said: 'returns you the notes of the chord/scale for a fret range'.  I initially thought including the fret number would be good, but in the interest of keeping the data structure simple I opted to leave it out since it could technically be derived from the data given and tuning.  On that note, having a function that returns the fret number of a specific string/note could be nice to have too.   Thanks for checking it out!

Aja, I understand. But for me, seems more natural that your function returns the fret numbers (instead of the notes). It's more a "figure", and I think it's easy to get the notes from the frets numbers than the opposite... What do you think?

Also, some other test would be really appreciated. Showing things like an empty range, or very narrow one...

Yea I agree, fret numbers would make more sense in this case.  And yes, I can add more tests.  Thanks,
-G

Great! Let's do this PR 👍

Cool, I've changed this to return fret numbers and added a couple of tests.  I don't do much test driven stuff myself, so let me know if you would like to see more.
I think the basic functionality of this is working great.  Do you think shapes with only a single available fret be omitted?  Currently it's returning those.
Also, I noticed tonalArray.compact() removes 0 values as well as null fyi.

Hello Garret. Thanks for the updates! I think you're building a great functionality. But before merge, I have some issues with the code that I'll comment inline. Take them as suggestions, and we discuss about them.
And good catch with the compact function.  👍
Thanks again!

Hi Garret... I made some comments to your code. Don't be intimidated by the number... I spent lot of time trying to make tonal code readable and I would like to have the same attention to your code. Anyway, I'm so excited with your functionality that I'm planning to make a fretboard drawer: https://github.com/danigb/fretboard  ... Suggestions and collaboration is welcomed ;-)

Hi @danigb,
I definitely appreciate the feedback, I was hoping you would review it.  Thanks, I'll go through your notes and make necessary changes.
As far as the name, I was thinking it could almost be named scalePositions because any range of notes can be passed to it.

Hi @grimmdude
Happy you didn't scare with the comments.
Regarding the name I'm thinking in change the names of some fretboard module functions. In fact, I was thinking in merge build and scale function into one called notes or notesByString. In that new function, if you pass a filter parameter, the notes are filtered (like the current scales) and if not, you get the behaviour of the current build function.
With the same logic, there would be a function called positions or positionsByString that returns the positions optionally filtered by some notes or pitch classes.
I think your function is an extension of this positions function, because the span parameter... Isn't it?

Hi @grimmdude, nice work!! Thanks. For me it's time to merge your changes into master and continue there... what do you think?

Awesome thanks. I've pulled down your changes so I'm all up to date.  I'll continue thinking of ways to optimize this function, as well as other functionality we could add to the module.
-G

Hi, @danigb and @grimmdude,
I see there's no recent activity in this thread, but may I be so bold to revive it?
I was trying to implement a chord diagram generator (yes, yet another one), just as a practical exercise in javascript, and I came up with a dirty but working solution. Then I looked for other implementations -- to see, how should it be done 'the right way' -- and I found your project. While not being a programmer at all, I dare to note, that you're doing something whrong with those chord shapes.
First, the output of your chordShapes function seems counterintuitive to me: since it can return multiple notes fretted per string, I'd rather call it arpeggio patterns. To get real chord diagrams from that one should post-process it somehow, and that seems to be a non-trivial task.
I looked what @grimmdude does here: https://github.com/grimmdude/musictheorysite.com/blob/master/assets/js/guitar-chords/index.js
As far as I can see, just takes a first element of an array and that gives weird results.
Take a look, for example, at Eadd9 chord. The first shape you get is 0-2-2-1-0-0 which is just plain E with no added 9th. Then you come with valid fingering 2-2-2-1-x-2 but omit  0-2-2-1-0-2 (just as valid), and later on get 7-7-6-9-7-7, which is practically infingerable.
I would propose another variant, producing fingerings as an array with exactly one fretting position per string ('x' for muted string):
https://runkit.com/euthymious/chordshapesalt-2
This one is still far from perfect, as the fingerings are checked just for completeness (i.e. every note of the chord is included), not for physical 'fingerability', but i guess additional checks can be added easily.
Thank you for your attention.


Text translation method escapes characters of transmitted values.

Laravel Version: 5.7.7 (clear installed)
PHP Version: 7.2.9 (Laravel Homestead 7.18.0)

// resources/lang/en/unk.php
return [
    'foo' => 'first :value string',
    'bar' => 'second   string',
];

// resources/views/welcome.blade.php
@php($q = '1 2')

{!! $q !!}
{!! __('unk.foo', ['value' => $q]) !!}
{!! __('unk.bar') !!}

Result:
1 2
first 1&nbsp;2 string
second   string

Method trans() produces exactly the same results.
It should be:
1 2
first 1 2 string
second   string

Example from the site:
The database has a field with the cost of the car: 15366232.00
It needs to be displayed on the page as from 15 366 232 ₽
File resources/lang/*/info.php has lines: 'priceFrom' => 'from :price ₽',
function price_format($value): string
{
    return number_format($value, 0, '.', ' ');
}

{!! __('info.priceFrom', ['price' => price_format($car->price)]) !!}

Commit from Taylor added many problems when using a trans() helper.
Nice prices (no):

Passing the space character code to a parameter is necessary so that when changing the width of the browser window, the cost does not break into two lines.
For example:
от 3 505
845 ₽

And also, in the current state of affairs, instead of
{!! __('info.priceFrom', ['price' => price_format($car->price)]) !!}

write
{{  __('info.from') }}
{!! price_format($car->price) !!}
{{  __('info.currency.rub') }}

🤷😒

Related PR - #25858.

This is expected behaviour due to a recent security patch.

@laurencei: You're talking about d3c0a369057d0b6ebf29b5f51c903b1a85e3e09b which is not related to this issue. If you read https://github.com/laravel/framework/pull/25858#issuecomment-426552670 you'll see that related PR is a breaking change in 5.7.

Thanks @bonzai - I didnt realise it was seperate.

Taylor recommends (#25919) using new HtmlString('foo') inside Blade templates. This idea looks like a wild crutch.

I'm reverting this entire dumpster fire. Will just document if you use @lang its up to you to escape.


Add NamedNodeMap feature (for export)

Description

Fixes #0000
Checklist

[ ] I have run cargo make pr-flow
[ ] I have reviewed my own code
[ ] I have added tests

What's the goal here? Are you just adding these for convenience?

What's the goal here? Are you just adding these for convenience?

Yes.
n.b. the whole of web-sys is exported from Yew publicly (I assume this is so that people can consume it from Yew, rather than directly from cargo) so I thought more features would be useful.

Yes.
n.b. the whole of web-sys is exported from Yew publicly (I assume this is so that people can consume it from Yew, rather than directly from cargo) so I thought more features would be useful.

Yes.
n.b. the whole of web-sys is exported from Yew publicly (I assume this is so that people can consume it from Yew, rather than directly from cargo) so I thought more features would be useful.

Yew should only activate the features it really needs to avoid bloat. I mean, there's a reason these features exist in the first place. Otherwise Yew might as well just activate all of them.
I honestly wish we didn't re-export web-sys at all and instead entirely made it the user's responsibility.
This is totally up for debate though. I'd love to hear your thoughts on this

Yes.
n.b. the whole of web-sys is exported from Yew publicly (I assume this is so that people can consume it from Yew, rather than directly from cargo) so I thought more features would be useful.

Yew should only activate the features it really needs to avoid bloat. I mean, there's a reason these features exist in the first place. Otherwise Yew might as well just activate all of them.
I honestly wish we didn't re-export web-sys at all and instead entirely made it the user's responsibility.
This is totally up for debate though. I'd love to hear your thoughts on this

I don't really mind either way, but if Yew does decide to keep exporting it, it does mean that at some point (in line with growing adoption) pretty much every feature will end up being activated.
So maybe stop re-exporting?

I don't really mind either way, but if Yew does decide to keep exporting it, it does mean that at some point (in line with growing adoption) pretty much every feature will end up being activated.
So maybe stop re-exporting?

I don't really mind either way, but if Yew does decide to keep exporting it, it does mean that at some point (in line with growing adoption) pretty much every feature will end up being activated.
So maybe stop re-exporting?

Exactly, that's been my conclusion as well. Should we repurpose this PR?
Also CC: @jstarry

I don't really mind either way, but if Yew does decide to keep exporting it, it does mean that at some point (in line with growing adoption) pretty much every feature will end up being activated.
So maybe stop re-exporting?

Exactly, that's been my conclusion as well. Should we repurpose this PR?
Also CC: @jstarry

I guess so.
One thing where this can be an issue though is when using yew::utils::document (or window, or any similar members for that matter) where the items returned have only methods enabled which Yew has the necessary features enabled for.

I guess so.
One thing where this can be an issue though is when using yew::utils::document (or window, or any similar members for that matter) where the items returned have only methods enabled which Yew has the necessary features enabled for.

Yeah all of this makes it really hard to avoid breaking changes. I don't think it makes a difference whether we export web-sys or not though. At least not in this case.

Yeah all of this makes it really hard to avoid breaking changes. I don't think it makes a difference whether we export web-sys or not though. At least not in this case.

That's true 👍🏼

That's true 👍🏼

We should also make sure that every single public web-sys type (i.e. parameters, return types, etc.) consumed by Yew is still re-exported.

We should also make sure that every single public web-sys type (i.e. parameters, return types, etc.) consumed by Yew is still re-exported.

I think Yew should only enable features that needs and leaving the rest up to the user. Maybe a note in the documentation explaining this would help?

I think Yew should only enable features that needs and leaving the rest up to the user. Maybe a note in the documentation explaining this would help?

I think Yew should only enable features that needs and leaving the rest up to the user. Maybe a note in the documentation explaining this would help?

I think this may be the best option (although probably going to cause some confusion), because you get the benefits of not having to pull in the whole of web-sys separately in some cases and Yew doesn't have to add this exorbitantly long list of enabled features!
(that was a long sentence)

I think Yew should only enable features that needs and leaving the rest up to the user. Maybe a note in the documentation explaining this would help?

I think this may be the best option (although probably going to cause some confusion), because you get the benefits of not having to pull in the whole of web-sys separately in some cases and Yew doesn't have to add this exorbitantly long list of enabled features!
(that was a long sentence)

Doesn't cargo resolve an app's web-sys and yew's web-sys crate versions/features regardless of whether we re-export it? I don't see anything to do here

Doesn't cargo resolve an app's web-sys and yew's web-sys crate versions/features regardless of whether we re-export it? I don't see anything to do here

Probably. In any case I have solved my issues at least, so I am happy to close this 🙃

Probably. In any case I have solved my issues at least, so I am happy to close this 🙃


Request for an improvement

Hello
I install this script and it works well with this service
entity_id: sensor.jeedom_camille_nut_present state: 'test'
but it does not work well with this service
entity_id: sensor.jeedom_camille_nut_present state: {{states('sensor.start_camille_present')}}
I get this information in the sensor : {'[object Object]': None}
Do you know if it's possible to get an improvment ?
many thanks in advance

I ma not sure where I could improve it. The script is fairly simple and just passes through the values provided. it doesn't even handle the templating, it leaves that to HA. Also, states('sensor.start_camille_present') should be providing only the value and it looks like the {'[object Object]': None} is a serialized json object so I feel the sensor, sensor.start_camille_present, state is not what you expect.
It is also possible, though I have not tested this, that HA's template engine reacts differently depending on how you call it. By default if you want to template the parameters you should use a data: block, for example:
entity_id: sensor.jeedom_camille_nut_present
data:
  state: {{states('sensor.start_camille_present')}}

It could be that the recent changes to the HA template engine do not apply the same when not using the data: block.

Hello
Thanks a lot for your quick answer.
I've tried with your suggestion. Unfortunately it doesn' solve the issue.
Using developper tool / services with
entity_id: sensor.jeedom_patricia_miband_room data: state: {{states('sensor.start_patricia_miband')}}
I still have the same message ' {'[object Object]': None}'
While developper tool / template gives 'Salon' as the answer to {{states('sensor.start_patricia_miband')}}
Just to investigate further, can you please let me know if you are able to reproduce the issue ?
Many thanks for your help
And have an happy new year

Without knowing what the sensor you are templating off of is, I really cannot reproduce the issue. Also, the debug line you provided states that it is calling the script with the state set to {'[object Object]': None} which means that is what HA is passing to the set_state.py script, so at that point it is already in the format you do not want. There is nothing I can make the script do to cleanup bad input.
What do you get if you go to the developer tools/template and paste in your template? If it outputs the same result, you will have to contact the creator of the sensor to get it fixed.

Without knowing what the sensor you are templating off of is, I really cannot reproduce the issue. Also, the debug line you provided states that it is calling the script with the state set to {'[object Object]': None} which means that is what HA is passing to the set_state.py script, so at that point it is already in the format you do not want. There is nothing I can make the script do to cleanup bad input.
What do you get if you go to the developer tools/template and paste in your template? If it outputs the same result, you will have to contact the creator of the sensor to get it fixed.

Hello
Thanks for your help.
Let me summarize the case. I have two sensors:

'sensor.jeedom_patricia_miband_room' (Mqtt sensor) which is populated with the name of the room where Patricia is located (Bureau, Salon, ....). The information is provided by an external system (Jeedom, french home assistant). But the sensor is populated only when there is an update in jeedom (which happens only when the Patricia moves from one room to another).

'sensor.start_patricia_miband' which is another sensor (rest query sent to Jeedom) to read the current location. The value is the same than the sensor 'sensor.jeedom_patricia_miband_room'.

But when I restart HA, 'sensor.jeedom_patricia_miband_room' status is set to unknown, until the first move of Patricia.
Therefore, when HA starts I want to update the current location of Patricia with the location obtained with the second sensor.
At start, the value of 'sensor.start_patricia_miband' is (e.g) Salon, and the value of 'sensor.jeedom_patricia_miband_room' is unknown.
In the developper tool /template the value of {{ state('sensor.start_patricia_miband') }} is Salon.
And I want to copy the value of state('sensor.start_patricia_miband') in the sensor 'sensor.jeedom_patricia_miband_room' to get the current location of patricia when HA starts.
With the following command:
   - service: python_script.set_state       entity_id: sensor.jeedom_patricia_miband_room       data:           state: {{ states('sensor.start_patricia_miband') }}
If I use the developper too /service to simulate this command, the sensor 'sensor.jeedom_patricia_miband_room', I get {'[object Object]': None}
If it still unclear or some information are missing, let me know.
Any way many thanks for your help.

Hello
Thanks for your help.
Let me summarize the case. I have two sensors:

'sensor.jeedom_patricia_miband_room' (Mqtt sensor) which is populated with the name of the room where Patricia is located (Bureau, Salon, ....). The information is provided by an external system (Jeedom, french home assistant). But the sensor is populated only when there is an update in jeedom (which happens only when the Patricia moves from one room to another).

'sensor.start_patricia_miband' which is another sensor (rest query sent to Jeedom) to read the current location. The value is the same than the sensor 'sensor.jeedom_patricia_miband_room'.

But when I restart HA, 'sensor.jeedom_patricia_miband_room' status is set to unknown, until the first move of Patricia.
Therefore, when HA starts I want to update the current location of Patricia with the location obtained with the second sensor.
At start, the value of 'sensor.start_patricia_miband' is (e.g) Salon, and the value of 'sensor.jeedom_patricia_miband_room' is unknown.
In the developper tool /template the value of {{ state('sensor.start_patricia_miband') }} is Salon.
And I want to copy the value of state('sensor.start_patricia_miband') in the sensor 'sensor.jeedom_patricia_miband_room' to get the current location of patricia when HA starts.
With the following command:
   - service: python_script.set_state       entity_id: sensor.jeedom_patricia_miband_room       data:           state: {{ states('sensor.start_patricia_miband') }}
If I use the developper too /service to simulate this command, the sensor 'sensor.jeedom_patricia_miband_room', I get {'[object Object]': None}
If it still unclear or some information are missing, let me know.
Any way many thanks for your help.

Thank you for the explanation, it definitely helped me understand your issue. One other question, you said that the output, from your template in the devtools, was Salon. What did it say the result type was? Did it  say; Result type: string, or did it have another output.
Also for your service call, which I assume is in an automation or script, you should be calling it this way:
- service: python_script.set_state
  data_template:
    entity_id: sensor.jeedom_patricia_miband_room
    state: {{ states('sensor.start_patricia_miband') }}

I believe that you have to use data_template: (or at least data:) as a sub-part to properly call the service. I think if you just use data: and have a state: {{}} it will try to interpret it as a JSON string, where-as data_template tells it to parse a template.
I don't know if the manual service call via dev-tools supports passing a template as I think it is fixed to the data: tag.

Thank you for the explanation, it definitely helped me understand your issue. One other question, you said that the output, from your template in the devtools, was Salon. What did it say the result type was? Did it  say; Result type: string, or did it have another output.
Also for your service call, which I assume is in an automation or script, you should be calling it this way:
- service: python_script.set_state
  data_template:
    entity_id: sensor.jeedom_patricia_miband_room
    state: {{ states('sensor.start_patricia_miband') }}

I believe that you have to use data_template: (or at least data:) as a sub-part to properly call the service. I think if you just use data: and have a state: {{}} it will try to interpret it as a JSON string, where-as data_template tells it to parse a template.
I don't know if the manual service call via dev-tools supports passing a template as I think it is fixed to the data: tag.

To answer your question. The output in devtools is a string.
Most important your suggestion about the service call was the answer. The issue is solved.
Many thanks for your help and sorry for the trouble.
Once again, happy new year.

To answer your question. The output in devtools is a string.
Most important your suggestion about the service call was the answer. The issue is solved.
Many thanks for your help and sorry for the trouble.
Once again, happy new year.


feat(behavior_path_planner): add drivable area visualization to observe shared linestring

Related Issue(required)
#485
Description(required)
The PR includes visualization for drivable area.
In the lanelet map, there are times when two connected lanelets doesn't share same linestring. Therefore it is better if we can observe them without enabling any of the modules.
The feature doesn't change any behavior of the behavior path planner module.
Odaiba Vector Map example

Kashiwanoha Vector Map example

Review Procedure(required)

Use vector_map that contains not lanelets that doesn't share same linestring.
Place ego starting position and the goal
Add the map marker via planning > scenario_planning > lane_driving > behavior_driving > behavior_path_planner > drivable_area_lanelet

Related PR(optional)
#486
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.

[ ] Read commit-guidelines
[ ] Assign PR to reviewer

If you are adding new package following items are required:

[ ] Documentation with description of the package is available
[ ] A sample launch file and parameter file are available if the package contains executable nodes

Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.

[ ] Commits are properly organized and messages are according to the guideline
[ ] PR title describes the changes

Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.

[ ] All open points are addressed and tracked via issues or tickets

CI Checks

Build and test for PR / build-and-test-pr: Required to pass before the merge.
Build and test for PR / clang-tidy-pr: NOT required to pass before the merge. It is up to the reviewer(s). Found false positives? See the [guidelines][clang-tidy-guidelines].
Check spelling: NOT required to pass before the merge. It is up to the reviewer(s). See here if you want to add some words to the spell check dictionary.

@zulfaqar-azmi-t4
can you add following comment on PR?

can you add a debug flag for visualization because this will need more computational cost.
can you add description that this PR has refactoring commit  or link PR for route handler ?

@zulfaqar-azmi-t4 can you add following comment on PR?

can you add a debug flag for visualization because this will need more computational cost.
can you add description that this PR has refactoring commit  or link PR for route handler ?

@taikitanaka3
Yes sure. I will add them in the next commit.

The following is Okay situation

The following is the situation that NEED TO BE FIX (most happens   related to opposite direction)

Comparison of computation time between map and line marker

Map
average time: 1.82608878890392 [ms]
std deviation: 2.20989962039778 [ms]

Line marker
average time: 0.250599191196699 [ms]
std deviation: 0.460544022735177 [ms]

LGTM
Thank you very much. Before merging, if it is okay for @taikitanaka3 san and @TakaHoribe san, may I ask you guys help to resolve conversation for the code reviews?


Update 2.6.1 docs

Signed-off-by: xiaolong.ran<EMAIL_ADDRESS>Motivation
Update 2.6.1 docs
Modifications

update 2.6.1 docs
add 2.6.1 sidebars.json
update releases.json
update versions.json

@Huanli-Meng could you please also help check whether doc PR labeled with release/2.6.1 are picked in this PR. Thank you.


Color Lightness is like Darken in Sass.

I can see how you arrived at the name, Lightness. You're essentially removing light from the color by choosing any decimal value below 1.
However, if you had a function which did the opposite, would that naming convention make sense? So, it would be called "darkness"?
You obviously can't use darken or lighten because those are reserved for Sass.
What about lighter and darker – which would be more in line with Sass?
Are there plans to include a color "Darkness" function – that does the opposite?
Essentially:
@function darkness($color, $darknessMultiplier){
  $color: str-replace($color, 'var(');
  $color: str-replace($color, ')');
  $color-h: var(#{$color+'-h'});
  $color-s: var(#{$color+'-s'});
  $color-l: var(#{$color+'-l'});
  @return hsl($color-h, $color-s, calc(#{$color-l} / #{$darknessMultiplier}));
}

Regardless, having the ability to use Sass with CSS variables is brilliant! It cuts out the repetition.

Hi there! Yes, the idea was to use a single function to modify the (HSL) lightness value. An alternative approach would be the one you suggest, with 2 functions (e.g., lighter/darker). We don't plan on releasing new color functions atm. However, if you prefer the lighter/darker approach, I'd suggest creating a _mixins.scss file in the custom-style/ folder to store these functions. If you're used to the SASS nomenclature, it makes total sense to split the lightness function.
More info on how we came up with the color functions here:
https://codyhouse.co/blog/post/how-to-combine-sass-color-functions-and-css-variables

Actually, your lightness function is more in line with Sass’ scale-color method, which is ideally more useful as it uses 1/10 increments instead of percentages. It’s easier to gage how much light to remove from the element.


[runtime] fix packge import mode for DefaultLeaderRetrievalService

What is the purpose of the change
Modify import method, static import Preconditions.checkState to DefaultLeaderRetrievalService.java
Brief change log

remove import org.apache.flink.util.Preconditions
add import static org.apache.flink.util.Preconditions.checkState

Verifying this change
This modification has been included in the existing test
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

We reject these kind of refactorings because they provide no appreciable benefit.


fixed a few case sensitivity issues

This PR adds case insensitivity, as discussed in https://github.com/hash-bang/compare-names/issues/1
A total of 3 tests were added; the latter 2 were failing but are passing with this PR. Feedback welcome.

Thanks for that. Version bumped to 1.1.0


No MariaDB Connections after 0.74.0b0 Upgrade

After upgrading to 0.74.0b0 I get the following errors and no component with MariaDB conenction works anymore:

2018-07-16 21:23:20 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-aarch64-linux-gnu.so) (retrying in 3 seconds)

I'm on HassOS 1.7. With 0.73 I had no problems.

Can confirm the same but might be an issue with hassio since I am also useing the 64 bit image.
@pvizeli where would we report an issue with the hassio docker image for 0.74?

But with 0.73 on HassOS 1.7 I got no such errors. Just to mention it again. But I had the same question like you in my head before posting this report :-)

Error loading shared library libmariadb.so.3 after 0.74.0b0 update
(using as recorder MySQL)

When switching to pymysql (adding +pymysql to the connection string) it changes to the following message:
Error during connection setup: No module named 'pymysql'
Installing that with docker exec -it homeassistant pip install pymysql does not do the trick since I then have to restart home assistant which resets the container.

Changing back to stable works but I needed to change back to mysql instead of mysql+pymysql.

FYI, I didn't lose mariadb on my hassio setup until after upgrading to 0.73.2 this morning.
`2018-07-17 07:20:53 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:20:56 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:20:59 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:01 WARNING (MainThread) [homeassistant.setup] Setup of recorder is taking over 10 seconds.
2018-07-17 07:21:02 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:05 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:08 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:11 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:14 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:17 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:20 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: Error loading shared library libmariadb.so.3: No such file or directory (needed by /usr/local/lib/python3.6/site-packages/_mysql.cpython-36m-arm-linux-gnueabihf.so) (retrying in 3 seconds)
2018-07-17 07:21:20 ERROR (MainThread) [homeassistant.setup] Setup failed for recorder: Component failed to initialize.
`


Make offline/online store mutable on feature store workspace update

Description
Make offline/online store mutable on feature store workspace update
Added the warning message when user will try to update target.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

[x] The pull request does not introduce [breaking changes]
[x] CHANGELOG is updated for new features, bug fixes or other significant changes.
[x] I have read the contribution guidelines.

General Guidelines and Best Practices

[x] Title of the pull request is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[x] Pull request includes test coverage for the included changes.

API change check
APIView has identified API level changes in this PR and created following API reviews.
azure-ai-ml


Check for previous installations from jira site

On subsequent install requests from Jira, the request will be signed by the previously agreed upon shared secret.

@gimenete Thanks heaps for the prompt review :)

I pushed my lint fixes into my last commit but I may have broken Travis :( No idea how to restart it

Hi again @Dahaden
Sorry for the delayed response. I'm trying to understand where the current implementation fails in the edge case this PR is solving, and see if we can simplify the solution. In the current flow we check against existsByProperties that the sharedSecret is ok, which is enough to check that the request is legitimate, and only in that case we do Installation.install that internally does a findOrCreate. Inside that method we have:
    if (!created) {
      await installation.update({
        sharedSecret: payload.sharedSecret,
        enabled: true
      })
    }

Maybe we just need to add the clientKey in that update?

Hey sorry for the delay.
The client key will never update, but the sharedSecret and baseUrl / host url can.
So currently, it looks to me that someone could spoof a Jira site and update the sharedSecret.

Legitimate Jira sends install payload to Github-app,
Github-app accepts and saves data,
Spoof Jira sends new payload with same clientKey as legitimate Jira,

host doesnt seem to follow any whitelist

Github-app accepts and overwrites sharedSecret

Verification of host and sharedSecret only uses the incoming host and sharedSecret even though these cannot be trusted as valid sources

What I am trying to achieve in this PR, is to use the JWT in subsequent installations (where we can find a matching clientKey in the db) to prevent malicious apps from potentially gaining access data to Github via this app :)
I hope that this helps!

@Dahaden thanks for your explanation.
What I'm trying to find is the minimal changes to do what you are suggesting. As far as I understand we could simply change the lib/models/installation.js file like it is now in this PR:
    if (!created) {
      await installation.update({
        sharedSecret: payload.sharedSecret,
        jiraHost: payload.host, // this is new
        enabled: true
      })
    }

With only that change we'll have:

Legitimate Jira sends install payload to Github-app,
Github-app accepts and saves data,
Spoof Jira sends new payload with same clientKey as legitimate Jira,

new shared secret is used to call the JIRA endpoint
the JIRA endpoint does not return successfully
we haven't updated anything in the db

If the call is legit we'll have:

Legitimate Jira sends install payload to Github-app,
Github-app accepts and saves data,
Legitimate Jira sends new payload with same clientKey

new shared secret is used to call the JIRA endpoint
the JIRA endpoint returns successfully

Github-app accepts and overwrites sharedSecret

So I think that could be the only change to make to the code, right?

In theory we could do this but:

Currently in the install request, we are using the jiraHost that is provided by the incoming request, and
If the Jira site has legitimately changed its URL, then we will need to use the jiraHost from the incoming request to ensure that the host and the sharedSecret work together

Hey @Dahaden. I'm from a team at Atlassian that is currently in the process of migrating the ownership over to us from GitHub. As a part of this, we're currently going through the backlog of issues and prs to see what can still be addressed and what should be closed.
As this PR is now 2.5 years old so we will likely close this unless you're interested in updating your changes and resolving conflicts. Please let me know if this is something you're interested in doing. Otherwise, I'll close this out at the end of the week.

Hey @rachellerathbone I noticed that https://github.com/integrations/jira/blob/master/lib/jira/install.js#L17 still just returns 204 without checking secrets.
It literally just replaces the sharedSecret provided in the request without checking anything.
I tried explaining this 2.5 years ago and am happy to try again.
Else you can reach out to the Atlassian Ecosystem team who might be able to chat to you about this

Hey @Dahaden. Thanks for your prompt response.
We're happy to review your PR and get it merged in if it resolves this issue but would first require you to update your changes as one of the files you edited, lib/jira/install.js, no longer exists.

Hi @Dahaden, thank you for contributing. We recently revisited authentication of our Connect App events endpoints.
Recently Atlassian Connect changed the way install and uninstall callbacks are authenticated. (More details here https://developer.atlassian.com/cloud/jira/platform/understanding-jwt-for-connect-apps/#verifying-a-asymmetric-jwt-token-for-install-callbacks)
TLDR: These 2 events now use asymmetrically signed JWT tokens. Jira don't sign them with a shared secret anymore, but it signs it with its own private key. When receiving such token we download public key from Atlassian CDN to verify the signature and then check other token parameters. You can find the implementation here: https://github.com/atlassian/github-for-jira/blob/97213b4a4c9486bd2f912f46e5fbbd8d79b1146b/src/jira/util/jwt.ts#L200
I am going to close this PR hence these changes are not needed anymore


fix single type update and publish and publish workflow

This pull request address this  bug and that issue i had with single type update event.

Hello @FabioFuschi-SNK ,
Thank you for the PR, this has been resolved by the #20 and #21 alternative PRs.


Added optional DependencyContextAssemblyCatalog parameter in AddBotwin extension method

Since the optional assembly parameter was removed from the AddBotwin extension method it was not possible to define additional assemblies for searching module and validator types and registering them in the IServices collection. This PR adds this capability and the dangling documentation for the assemblies parameter.

Thanks.
Have you debugged DependencyContextAssemblyCatalog to see if it picks up the assemblies you want it to include.  If it's not picking your assemblies up I would say there is a bug in it as it should find all assemblies that are referencing Botwin

I will test it more thoroughly, although my initial tests seem to pass. Another option would be to change the DependencyContextAssemblyCatalog constructor to accept an array of assemblies.
Is there another way to use modules and validators from other assemblies that I am not aware of? This is in essence what I'm trying to achieve. Up to version 3.1.0 I would put these in a different assembly and pass it in AddBotwin.

Nope that's how you'd use it.  If you look in the samples folder in this
repo you'll see a ValidatorOnlyProject which has a reference to
FluentValidation only but the main sample app references
ValidatorOnlyProject and this seems to work.
Could you illustrate what your project structure is like?
On 8 March 2018 at 14:43, Kostas Stroggylos<EMAIL_ADDRESS>wrote:

I will test it more thoroughly, although my initial tests seem to pass.
Another option would be to change the DependencyContextAssemblyCatalog
constructor to accept an array of assemblies.
Is there another way to use modules and validators from other assemblies
that I am not aware of? This is in essence what I'm trying to achieve. Up
to version 3.1.0 I would put these in a different assembly and pass it in
AddBotwin.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jchannon/Botwin/pull/88#issuecomment-371506832, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAGapuS8yA-T39DfIOyiXoOFg3RC3OYVks5tcUN_gaJpZM4SixTZ
.

👀

Closed via #136


swaynotificationcenter: 0.6.3 -> 0.7.1

Description of changes

Bump version;
Remove 0.6.3-specific hack;

Things done
~I'll remove from draft after testing.~ Tested both daemon and client.

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 191397 run on x86_64-linux 1

1 package failed to build:

swaynotificationcenter

Result of nixpkgs-review pr 191397 run on x86_64-linux 1

1 package built:

swaynotificationcenter

Builds for me. Version is fine.

Result of nixpkgs-review pr 191397 run on x86_64-linux 1

1 package built:

swaynotificationcenter

Thank you!


crashes when almost any new mod added to modpack

I added this to my modpack, but it always causes old and newly created worlds to crash as they open.  It works perfectly fine on its own (successfully added quest datapacks), but as soon as I add certain mods (Adorn, Origins, and more possibly) it crashes.  I slowly have been testing the compatibility between each mod, but there does not seem to be consistency; I'll add one that crashes it, delete that mod, but then it continually crashes until I make an entire new minecraft file. I attached a crash report in case that helps.  I'm using 1.18
crash-2022-02-01_23.38.48-client.txt

The crash log isn't attached, please upload it again :)

crash-2022-02-01_23.38.48-client.txt

Ok, after a bit more testing different mod combos for compatibility, I found that the ones that caused crashes when paired with VillagerQuests are the Illuminations mod and Origins/Origins Classes.  Everything else in the modpack seems to be compatible.

Should be fixed with the latest update

Reopen if still existent


hosting the documentation on a github.io page

Do you think it would be possible to host your html files on a github.io page? It would make it much easier to browse :)

No, I find almost no one reads the documentation.  I wrote the first version of SdFat over ten years ago and a version was used in the official SD.h library.
Most people just use the simplest open, print, close features.  I have tried to optimize SdFat so you don't need to know more and may even reduce performance by trying to optimize.

Ok, thanks. So you actually advise to use the latest library, and not care myself about performance, but let the library take care of it, right? :)


Satisfy ESLint rule: no-restricted-syntax

Satisfy ESLint rule (no-restricted-syntax) as per #1230

Coverage decreased (-0.03%) to 98.578% when pulling 51643343b661b151266e43f2b3d1ea7eea706428 on samit4me:satisfy-eslint-rule-no-restricted-syntax into 33485f41053caa6e90b9cbede8b51c168b38bda4 on mxstbr:dev.

LGTM - passes all my tests :100:

Coverage decreased (-0.03%) to 98.578% when pulling 0e3aaedaa0bc7e764fa5f4c89d6e589ee11d0a9d on samit4me:satisfy-eslint-rule-no-restricted-syntax into f0eb229b24a8db2ddf36cc03667fd0efad87de4c on mxstbr:dev.

Coverage decreased (-0.03%) to 98.578% when pulling 800bbf5222f96e2f2a36fc651d771c0c7189134e on samit4me:satisfy-eslint-rule-no-restricted-syntax into b796a3aada6bd1632c357e5a9a6d96f1e51252ff on mxstbr:dev.

LGTM


Login returns true

Hey, looks like I guessed @ned's password :)
steem.login('ned', '****************', function(err, result) {
    console.log(err, result);
});

Returns true! Woohoo!

Fuck! I forgot to hide it on the commit. Please dont power down 100K$.

The real answer is that the blockchain actually return true even if the password or username is wrong. If you need to verify a password you can use my other package steemconnect here: https://github.com/adcpm/steemconnect/blob/master/lib/auth.js#L10

Cool, thx.


Akka 2.5.x support

Hi, I followed your instructions in akka.md to get stream consumption working against an app that uses akka 2.4. It's modeled after the second example for the not-yet-materialized stream.
I've since tried upgrading to akka 2.5.9 and consumption doesn't seem to work anymore. It fails silently in KCLRecordProcessorFactory - I get the debug statement in processRecords, but nothing else.
Should this library already support akka 2.5? Thought I'd ask before I dig in too much more.

@tunesmith Have a discovery: if you use KinesisNonBlockingStreamSource - it works well with akka 2.5 and gfc-aws-kinesis 0.16.
I believe something has changed in thread handling somewhere in underlying libs. Will try to figure out what exactly causes blocking methods to fail.

Hi @mikegirkin, thanks! I can confirm that switching to KinesisNonBlockingStreamSource does appear to work for us.

@tunesmith Submitted a PR that preserving the API changes the way it starts the consumer, so with the new release both APIs should work fine.

Great. Can you offer some insight on what the difference is between the two APIs now, and in which cases someone might want to use either?


Update package.json

minor fixes

open-cobol at least has Spanish support and the move2anyforward change is incomplete


build rpi-k0s-controller-armv7 in CI and misc cleanup

Add CI build for new Raspberry Pi k0s controller image.  Should have been part of PR #47.
Also various organization and cleanup tasks in the Makefiles.  Targets are better alphabetized now and chroot target dependency is removed where not needed.

bors r+


HttpPathModifier can't be serialized / deserialized

When attempting to serialize an HttpRoute containing an HttpPathModifier a runtime error is thrown by serde due to the tagging being used on a newtype variant that does not contain a struct or map.
Error("cannot serialize tagged newtype variant HttpPathModifier::ReplacePrefixMatch containing a string", line: 0, column: 0)'

From the serde docs (https://serde.rs/enum-representations.html):

This representation works for struct variants, newtype variants containing structs or maps, and unit variants but does not work for enums containing tuple variants.

This can be reproduced by trying to serialize this struct:
        let r = HttpRoute {
            metadata: ObjectMeta {
                name: Some("route_name".to_string()),
                ..ObjectMeta::default()
            },
            spec: HttpRouteSpec {
                rules: Some(vec![HttpRouteRule {
                    filters: Some(vec![HttpRouteFilter::URLRewrite {
                        url_rewrite: HttpUrlRewriteFilter {
                            hostname: None,
                            path: Some(HttpPathModifier::ReplacePrefixMatch("/".to_string())),
                        },
                    }]),
                    matches: None,
                    backend_refs: None,
                }]),
                inner: CommonRouteSpec { parent_refs: None },
                hostnames: None,
            },
            status: None,
        };

This was changed in this PR https://github.com/linkerd/k8s-gateway-api-rs/pull/8

Closed by #40


Fedora - Use vendor instead of rpm dependencies

Remove all Go BuildRequires dependecies
Add '-k' to goprep to preserve the vendor directory
Generate 'Provides: bundled' lines by processing vendor/modules.txt in lua
Signed-off-by: Ygal Blum<EMAIL_ADDRESS>

The PackIt process parses the spec file at least 3 times. I was able to overcome the first two, but I could not make the third case. The RPM build command is executed without setting any parameters that will allow the lua script to find the file to process. Instead see #2762


Checking Android Push Notifications Permissions

Is this a bug report?
No

Have you read the Bugs section of the How to Contribute guide?
Yes
Hi there! Thanks for making awesome product!
Recently i've needed to check if notifications enabled on android smartphone. I've read the docs and could not found that functionality in PermissionsAndroid component. So then i've decided to implement it by native touch through NotificationManagerCompat. I think it's useful feature and i would like to add it to the build in react-native API.

If you intend to change the public API, or make any non-trivial changes to the implementation, we recommend filing an issue.

What you think?

Target Platform: Android

Development Operating System: macos

I am not a FB dev or a contributor, but I'd assume this PR would be very welcome. I also had to implement a native module for this.
That said, if you're using NotificationManagerCompat.areNotificationsEnabled it requires support lib 24+, but RN currently uses 23. Hopefully that doesn't become a blocker.

I would look into this and submit a PR shortly

@hey99xx yeap. Forgot about that RN minimal version support is 23 :(
@rajsuvariya oh awesome!


FlutterUploader.result never fires events

Hi, and thanks for the awesome plug-in. I'm developing an app where I'm using background uploads for multi-media posts. I want to use uploader.result.listen(...) to show a small notification when posts successfully upload, but the event never fires.
I am 100% sure that the requests sends correctly, though. In fact, flutter_uploader logs some information to the console containing the response:
flutter: Task: chillisource.flutter_uploader.upload.background.1
    "Content-Type" =     (
        "application/json"
    );
    Server =     (
        angel
    );
    "Transfer-Encoding" =     (
        Identity
    );
    "x-content-type-options" =     (
        nosniff
    );
    "x-frame-options" =     (
        SAMEORIGIN
    );
    "x-ratelimit-limit" =     (
        1000
    );
    "x-ratelimit-remaining" =     (
        987
    );
    "x-ratelimit-reset" =     (
<PHONE_NUMBER>
    );
    "x-xss-protection" =     (
        "1; mode=block"
    );
} } and status: 200

The question is - why does the FlutterUploader class never receive a notification that the upload worked? Thanks.

is this iOS or android?  have you tried with both? I can't really help you without more information

Running on iOS simulator; haven't tried with Android.


Changing iree/base/math.h to C and adding some PRNG routines.

These routines will be used for threadpool worker theft distribution where it's important that they are relatively fast.
I used this opportunity to clean up the file and finish some of the TODOs for when C happened.

and any additional testing.

if you can think of useful test cases please add - for some of the tests in here I was literally scrounging on sourcegraph for what other major projects (linux, dart, qemu, etc) tested their stuff with and came up short.


All graphics become white when switching from fullscreen to windowed

What you were trying to do
Play on the Terasology event server
What actually happened
I played for a little bit and looked around and switched from windowed to fullscreen. Then I realized that I liked it better windowed, on the computer I was on, and so I switched it back. When I clicked BACK, everything was white.

How to reproduce

Step 1
Join Terasology Event Server
Step 2
Set display to Fullscreen
Step 3
Set display to Windowed

Log details and game version
Game:
https://gist.githubusercontent.com/Metatricity/3b7f8c6d1b008ca270d8a37b36c39de4/raw/706787d3c63ca6b42f74e675e9e580a4c5fd9d33/TerasologyLog.txt
Init:
https://gist.github.com/Metatricity/44e1f5403f57e4fe5f1ef43468cdfd91
Computer details
Windows 7
Dell Latitude 3550, x64-bit
Intel Core i3-5005U @ 2.00GHZ, 2000 Mhz, 2 Cores, 4 Logical Processors
Intel HD Graphics 5500
7.64 GB of Physical Memory
15.3 GB of Virtual Memory

This might just be for my model of graphics card, but it is stil worthy of an issue :-1:

I believe that this issue related to display resizing and rendering is known and has already been mentioned a few times. 🙂
See: #2528, #2659 and #2591

Just wanting to confirm we are aware of the problem.
Technically speaking this is most likely due to changes @tdgunes and I have done to the renderer, in particular in the area of FrameBufferObjects management. When resizing occurs the FBOs are regenerated, their id changes but most of the nodes in the renderer seems to be unaware of the new id and keep using the old FBOs which are no longer valid.
I can't tackle this just yet as I have some intermediate goals before I can take care of it, one of which is to simplify FBO management. But it will be taken care of. Soonish I hope.

Thank you for looking into this :)

@iojw However, there is no known record of there being a white screen rendered, there is only a black screen, or a water render change. #2528 and #2659

@Metatricity Sure, just listing a few related issues in the tracker and in general, issues related to resizing and the rendering are already known :)

@Metatricity: we can keep this issue open until resolved, but it is likely to be a different manifestation of the same set of problems. Thank you for reporting it though.

This maybe of some interest, it happened when I switched between windowed to fullscreen and then increased resolution parameter. While the 1 and 2 screen were responsive to player movements ,3 one remained frozen. Different FBOs perhaps?

Rendering 3 (looks like ambient occlusions) most likely happens on a separate FBO.
1 and 2 -may- happen on separate FBOs but... it's complicated.
The very next thing on my todolist is to work on WorldRendererImpl.initRenderGraph() to make it more explicit, so that it's easy(er) to see which render node use which FBO.
After that I plan to change FBO management: right now FBO resizing/regeneration is done through an FBO manager. Eventually FBOs will be responsible for regenerating themselves when, say, screen size changes.

Merging as fixed by #2844!


{Resource} Remove duplicate help messages

Related command

az account management-group create/update/delete/list/show
az account management-group subscription add/show/remove
az account management-group tenant-backfill get/start
az account management-group entities list
az account management-group subscription show-sub-under-mg
az account management-group check-name-availability
az account management-group hierarchy-settings create/update/list/delete
Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

Resource

https://github.com/Azure/azure-cli/blob/e485117c0dadcc15aa909c4651d37edd19794020/src/azure-cli/azure/cli/command_modules/resource/_help.py#L147-L150

One more duplicate long-summary:
https://github.com/Azure/azure-cli/blob/e485117c0dadcc15aa909c4651d37edd19794020/src/azure-cli/azure/cli/command_modules/resource/_help.py#L2733-L2737

Those duplicate long-summarys were introduced by https://github.com/Azure/azure-cli/pull/6426, https://github.com/Azure/azure-cli/pull/20942.


Update run.ps1

Shall be -eq not = for comparison in Powershell

@artisticcheese - I can't believe I missed this...... What a noob mistake 👍


Harbor Build Pipeline Broken

It looks like the harbor build pipeline is broken in the promotion stage. It appears it is because it is use a "v" in the version tag instead of proper semantic versioning. The eks-anywhere-test and eksa-packages repos could be used as examples for how it should be done. I'm not sure the exact problem

The root cause is the helm_promotion.sh doesn't fetch target registry and tag correctly. @jonahjon is working on a new solution for promotion and helm_promotion.sh will retire soon.

I guess Jonah is looking at this for now, job is working, but artifacts not promoted.

This was presumably fixed by #101 doing some followup investigation.

This looks fixed, closing issue.


Issue in cookie based tech detection

Sorry for my bad english, using google translate.
defines only if the fingerprint is immediately after Set-Cookie:
eg (Set-Cookie:[laravel_session=)
but if somewhere in the middle, such as (Set-Cookie:[XSRF-TOKEN=; expires=, ...; ...; path=/ laravel_session=eyJ*;)
then no longer defines
example domains:
hit4central.com
shcherbyna-advocat.com
amiguiec.xyz
hiom.in
puncbimsi.cf
suzuki.com.pl

@stikhun this issue is already fixed in the past, here is working example with changed position of the cookie value :- https://go.dev/play/p/2o2eWLGRhN4

There is another possible bug that causing to miss valid tech that needs to explored futher, for example:
echo shcherbyna-advocat.com | httpx -td

results into
http://shcherbyna-advocat.com [Google Font API,Google Tag Manager,Lightbox,LiteSpeed,PHP]

with missing Laravel in output.

70% of sites have cookies in this format: path=/  laravel_session=
https://go.dev/play/p/sQ7ygwFHEnd

I see what you mean, thanks for sharing the additonal info.

@stikhun this is now fixed with https://github.com/projectdiscovery/wappalyzergo/pull/11


Migrate Android Realm data on first app startup

Extract the potential data from the old Android App and push it to Firebase, then mark the Realm data as migrated and keep it untouched.
https://pub.dev/packages/realm

@shockbytes can you elaborate a bit more on what you are thinking for this ticket?

Right now, all data is stored in Realm for the Android app. We need to work on a migration scenario, where we extract the already stored data from the app version 4.x and migrate the data to Firebase at first app open. Hence, we need to add the realm dependency, grab all data and push to Firebase.
I will assign myself to this ticket, as this is the highest priority for me right now. I am confident that we can make this work easily, but this ticket is crucial for DanteX. If this does not work, we are in quite a bad place :D


HSEARCH-471

Here is the pull request for soft delete support. It is not be complete:

it needs documentation
we need to resolve the dirty check issue (see JIRA comments)

But I need your feedback on a few things:

package name
class names
inheritance of actionInterceptor
I am not entirely happy about this inheritance, it's not the HSearch way
study the overriding and IndexingActionTypes to see if all use cases are covered

I have applied the various feedback from @hferentschik and added documentation. Much better. Have a look, this pull request is ready for push now.

Having another look.

All the changes I'm proposing are pushed on Sanne/HSEARCH-471-extended
comments? going for lunch..

One problem with your squash frenzy is that I cannot selectively accept or discard a change you made in your last commit.

Reading through the docs as well ...

I find IndexingOperationType.APPLY a bit confusing especially compared to the other options.
Here is a counter proposal (note the class name change and the option name changes)
public enum IndexingOperationOverriding { //or should it be IndexingOverriding
	/**
	 * Let Hibernate Search engine apply the standard operation
	 * without overriding it
	 */
	APPLY_DEFAULT,

	/**
	 * Skip any indexing operation
	 */
	SKIP,

	/**
	 * Force an entity to be removed from the index
	 * This operation can be safely requested regardless
	 * of the actual presence of the entity in the index
	 */
	FORCE_REMOVE,

	/**
	 * Update the entity index.
	 *
	 * It is safe to update an entity that has not been added yet.
	 */
	FORCE_UPDATE
}

OK here is the last batch of changes with renaming and doc improvement.

merged! awesome


Issue at first connection

Hi,
i'm using zwamp on windows and have try to install Kanboard after having enabled both mbstring and pdo_sqlite.
I then try to connect to http://<IP_ADDRESS>/kanboard and i receive this error message:
Fatal error: require(): Cannot redeclare class core\loader in Z:\web\kanboard\app\common.php on line 22
how can i avoid this ?
Cheers

This ticket is too old, the mentioned code doesn't exists anymore, I close it.
Try to install the last version from the zip file, open a new issue if there is a problem.