Support reporting triangle like data

This would be data that is decomposed into report and reference dates. Current functionality would then be a special case of this.
It would need.

[ ] An additional delay spline in the model to model the delay
[ ] Support for passing in a offset to represent a externally estimated delay (I think of this as a prior for the spline).
[ ] A stretch goal would be support for time and/or region varying additional delay layers
[ ] Posterior prediction tooling that sums up available data with predictions from the reporting triangle to give a nowcast.

This functionality would be similar to that in
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10538717/#:~:text=In May 2022%2C cases of,travel links to endemic regions.
and
https://www.medrxiv.org/content/10.1101/2<IP_ADDRESS>10696v1
by @OvertonC and @jonathonmellor and co. Both of these have code and synthetic testing data that have open licences I believe.

This is definitely in scope for v0.3.0. I'd like to do it sooner, but I think partial pooling is likely higher priority. A few follow-up qs:

report and reference dates

Do you think it's cleaner to pass delay day & reference date or report date and reference date? Two sides of the same coin...

Support for passing in a offset to represent a externally estimated delay (I think of this as a prior for the spline).

This is in addition to the delay spline in the same model fit or as an an alternative version that takes just one vintage and does a nowcast correction to the last $D$ points?

A stretch goal would be support for time and/or region varying additional delay layers

I'd assume region-varying independent fits is required? Are you suggesting like
y ~ 1 + s(reference_date, bs = 'ad') + s(reference_date, by = group, bs = 'sz') + s(delay) + ti(reference_date, delay)

Code can be found here: https://github.com/jonathonmellor/norovirus-nowcast/tree/main
This example is national only, but in practice for other incidents we do a lot of partial pooling across areas (a bit outbreak dependent).
If I could "do it all again" in my mgcv work I would have switched to the approximate GP (or RWs) a lot earlier rather than tp or cr splines for nicer extrapolation properties, but that may not be in scope for this work!

I'll put in an intro chat at some point as well!
I mean in the mgcv case, so yes bs='gp'. A big part of my Omicron time was fiddling with different knot numbers for either growth rate models or forecast models - the tp and cr splines are quite sensitive at the end of the known data to the choice (which I'm sure you're aware of having had a peak at the code here!).
The cr and tp are poorly behaved when extrapolating far from the known data, and even at the edge of the known data you can get some quite varied results depending on choice of k. It was particularly painful for weekly updates to models when there are day-of-week reporting effects. In our nowcasting example, we are doing partially "extrapolation" and partially data informed smoothing (with the data triangle), so I expect this instability effect to be present.
I don't think there's a nice answer to that problem, but we largely avoid it now by using a bs=gp instead and a sensible characteristic length-scale, which seems more stable, and give more sensible uncertainty.
Sorry bit of a info dump there, am just really pleased to see more epi GAM work

While I'm on a roll, worth checking out: https://github.com/eric-pedersen/MRFtools/issues/10
For how to implement a RW1 in mgcv, which has been fun to play around with + good for baseline models.
Will add a warning that mrf type objects are a pain when packaging or working in parallel with mgcv

I'll put in an intro chat at some point as well!

That would be great!

I don't think there's a nice answer to that problem, but we largely avoid it now by using a bs=gp instead and a sensible characteristic length-scale, which seems more stable, and give more sensible uncertainty.

I'll make sure this is high-ish on the list. I want to get some minimal usable thing before getting to work on performance, but I'm hoping get that moving here soon!

Sorry bit of a info dump there, am just really pleased to see more epi GAM work

I hope we can make this useful! It's really been your success with GAMs that got us interested (as I hope the readme makes clear). We're still in very early days, but the dream would be to eventually mature this into something even the experts like you all would find helpful in some capacity.

For how to implement a RW1 in mgcv, which has been fun to play around with + good for baseline models.

I remember @seabbs also sharing an interesting thing from that world on time-varying day-of-week effects. I'll go take a look, thanks!

Late to the party here, but I'd love to talk more at some point about this gp vs spline discussion. In our EpiNow2 modeling, the gp has been the main source of convergence issues and weird fits, so I had been hoping to drop it. We've mostly been able to get away with this by setting the sampler parameters to be really conservative, so the models do usually converge, but occasionally we see:

failure to converge (high Rhat, lots of divergent transitions, or clustered divergent transitions) -- this is very rare, but hard to deal with when it happens
convergence, but with what appears to be a bimodal posterior for the gp length scale, which in turn makes the prediction interval around Rt oddly shaped, and asymmetrical about the median, (unsurprising given overlapping waves with different periods)

It sounds like the root issue is the same whether we're working with splines or a gp: the level of smoothness in the data changes over time, and sometimes we'd need an adaptive smoother to match the reported patterns.
Would love to chat and compare notes on how best to deal with this in practice!

Keen to discuss! Have pinged an email over.
Part of the challenge might be around what's the purpose of the smoother, is it only smoothing or are we relying on it for extrapolation.
Perhaps some of the challenges relate to the length-scale being estimated rather than being a fixed parameter, though that  might be mgcv's approximation hiding some problems...
But yes fully agree, adaptive smoothers would be really interesting to explore.

Do you think it's cleaner to pass delay day & reference date or report date and reference date? Two sides of the same coin

I don't have a strong presence though dates are often easier for the user and indexes are often easier for the dev.

This is in addition to the delay spline in the same model fit

In addition. I think it may act like a prior and enable different delay dists per strata but the same residual spline to be shared

Are you suggesting like

Yes

we largely avoid it now by using a bs=gp instead and a sensible characteristic length-scale, which seems more stable, and give more sensible uncertainty.

I agree though haven't really played with the mgcv implementation. I also like the rw implementation from https://github.com/eric-pedersen/MRFtools/issues/10. Coming in via the penalty matrix suggests it may be possible to parameterise other model options like ARs here as well which would be appealing (especially without having to extend into stan like mvgam currently does I believe).

n interesting thing from that world on time-varying day-of-week effects

Do you remember where that was @zsusswein. It seems really promising so worth putting into an issue/on peoples radar.

the level of smoothness in the data changes over time, and sometimes we'd need an adaptive smoother to match the reported patterns.

Agree.

Part of the challenge might be around what's the purpose of the smoother, is it only smoothing or are we relying on it for extrapolation.

and yes fixing the lengthscale (or  places a strong prior on it) prevents you seeing issues but at the cost of maybe not learning when things are different that you expect.

It was this one! Super fun decomposition and I think I missed on my first read that it requires mvgam to work because of the monotonic constraint on the spline


Create main.yml

4AEE18F83AFDEB23

Closing this pull request. Not clear what the purpose of adding this file is.


Bootstrap Hooks

Adds support for: pre-checkout, pre-script and post-script. You add these scripts to: ~/.buildkite/hooks folder. It is also configurable using the --hooks-path argument, or the BUILDKITE_HOOKS_PATH environment variable.

Woo! Now, for the hooks, some use cases:

Do our own repository checkout, I don't want your git clone
Run scripts my way, I want to tweak your Docker/fig setup

For this, perhaps we could have a checkout and run-script… if they exist, use them, if not go default.
What about:

pre-checkout
checkout (overrides standard behaviour)
post-checkout
pre-run-script
run-script (overrides standard behaviour)
post-run-script

And I guess if they want to cancel the build in pre-checkout and pre-script they just exit 1, and the -e will cause the whole thing to fail?

I am so hot for this.

Also, just wanted to add that these would be awesome if they could be included on a per-project basis.
I can see pre-run-script, run-script, and post-run-script being handy. We (ferocia) already do something a little like this and have pre and post step hooks that live in PROJECT_ROOT/.buildkite/hooks

Oh, as in if you commit a .buildkite folder to git, those hooks will automatically run?

@toolmantim I've added run-command and checkout hooks. In agent 1.0 world, scripts have been renamed to commands

@plasticine what do you use the hooks for?

Oh, as in if you commit a .buildkite folder to git, those hooks will automatically run?

Yep.

what do you use the hooks for?

Per-step cleanup stuff, logging step duration, etc.

@plasticine can you paste some code examples of the logging step duration and cleanup stuff?

Let's push this puppy into beta testing...


Web UI glitches when browser window loses/gains focus in Firefox

Environment

Elixir & Erlang/OTP versions (elixir --version): Erlang/OTP 25, Elixir 1.15.6 (compiled with Erlang/OTP 25)
Operating system: Linux (NixOS 23.05)
How have you started Livebook (mix phx.server, livebook CLI, Docker, etc): mix phx.server
Livebook version (use git rev-parse HEAD if running with mix): v0.11.1 and 98662bf6f807c5a635ff1ae1d4b2686f1d02d0de
Browsers that reproduce this bug (the more the merrier): Firefox 118.0.1, NOT Chromium 117
Include what is logged in the browser console:  nothing when it happens
Include what is logged to the server console: nothing when it happens

Current behavior
When Firefox loses/gains focus, the web UI glitches: the menubars around cells are replaced by placeholder rectangles and the Files sidebar pops open.
The notebook continues to function and I can add and evaluate more cells with the keyboard shortcuts.  Reloading the page fixes the UI until the next time Firefox loses/gains focus.
Before:

After alt-tabbing to another window:

I took the screenshots in 0.11.1, but the exact same thing happens on the tip of main.  There's nothing in the browser console when it happens and nothing is logged on the terminal.
Whether it happens when Firefox gains or loses focus depends on whether input is in navigation mode or insert mode.
Interestingly, it only happens when switching to another window.  Switching to another tab in Firefox doesn't trigger it.
This all works fine in Chromium.
I'm happy to help with debugging this, but I have no idea where to start.

Also, the glitch only happens if the Livebook tab is the selected one when I alt-tab.  If a different tab is selected, I alt-tab to a different window, alt-tab back to Firefox, then switch to the Livebook tab, everything is still fine.

I think this is caused by a dragenter event that doesn't have a matching dragleave event.  This leaves the notebook in the isDragging state.
I added some log messages to session.js and I see that dragenter (and dragover) get generated when the Firefox window gets focus.
I'm using KDE Plasma 5.27.7 on Wayland, and I can consistently fix the issue by clearing the clipboard.
I have no idea why Firefox is getting these events when focused and I haven't figured out what exactly I need to put into the clipboard to get this to start happening.  Just some random text isn't sufficient.

Hey @scvalex to make sure we are on the same page, this happens when you have any notebook open, some specific clipboard content and then alt-tab back and forth?
Is it perhaps only if the clipboard contains a file reference, like if you copy an image?

this happens when you have any notebook open, some specific clipboard content and then alt-tab back and forth?

Yes…except it doesn't happen at all anymore.  It happened consistently for two days, then I figured out that clearing the KDE clipboard fixes it, it happened once more after that, but I cleared the clipboard again, and now I can't cause it to happen at all.

Is it perhaps only if the clipboard contains a file reference, like if you copy an image?

Having a file in the clipboard isn't enough to trigger it.  Nor is copying something from KeePassX (which circumvents the system clipboard somehow).  Nor is having some rich text copied.  I'll reply to this issue when it starts happening again.
Honestly, this is looking more like a KDE/Wayland/Firefox bug now than a Livebook one.  When it happens next time, I'll write a little webpage that just logs events and see if that misses the dragleave event too.

Honestly, this is looking more like a KDE/Wayland/Firefox bug now than a Livebook one.

Yeah, the fact that it involves clipboard means it's something very specific and more os/browser related.
I'm going to close the issue for now, since it's not really actionable, but when you have more context or reproduction let us know :)

Ok.  Will do.

Btw, I think the bug is more about dragenter being triggered than dreagleave not being triggered, since I don't think dragging should be triggered by just focusing the window.


Forego aliased in check fn

Get rid of aliased boxes in the check function.
Accidentally did it based on #44 so check the commits to see only the new changes.

I’ll continue reviews tomorrow.

I’ll continue reviews tomorrow.

Looks alright apart from the review comments I’ve already made. Due to me reviewing the commit from #44 in this thread, too, feel free to e.g. just close #44, address the points made in review here and eventually merge both commits together in this PR. Or try to address the review comments in the respective PRs if you want to keep them separate (I think in the whole review there’s only this comment that applies to commit 14ce9fdc01f44c983dd14cd456b52c2cf3728ffc), whatever you prefer.
I have some ideas how to improve the Path case of covariance detection, but I haven’t thought it through yet, and maybe I’ll try to create a separate subsequent PR myself ;-)

Thanks for the continued support. I think I'll leave further PRs in your hands since you've easily shown yourself more knowledgeable about Rust's internals than me.


Background color revealed in Wallet and Transactions tab when pulling down to refresh is wrong

Reproducible this on iPhone X 13.3 device. But not on iPhone X 12.4 simulator and 13.3 simulator
The annotated section should be white

@hboon i can't reproduce this, tested on Iphone X 13.4 (don't have 13.3)

The background color of the area where the activity view is in your screenshot. That’s the part I’m referring to. It should be white instead of gray. If you run it in the simulator, it looks different — it is white.

The background color of the area where the activity view is in your screenshot. That’s the part I’m referring to. It should be white instead of gray. If you run it in the simulator, it looks different — it is white.

ooo, ok, so i guess it breaks my prev task where was need to change table view background. i will remove it and left white color for table view.

The background color of the area where the activity view is in your screenshot. That’s the part I’m referring to. It should be white instead of gray. If you run it in the simulator, it looks different — it is white.

ooo, ok, so i guess it breaks my prev task where was need to change table view background. i will remove it and left white color for table view.

It makes the previous fix unnecessary since the fix (in your PR) seems to make the table view background always white. Make sense! :)

Also, when the list is short and does not take the whole real estate on the screen, make a background color alabaster #fbfbfb
Uploading hot it looks at the moment (it's darker gray)

Also, when the list is short and does not take the whole real estate on the screen, make a background color alabaster #fbfbfb
Uploading hot it looks at the moment (it's darker gray)

@tomekalphawallet this Alabaster color need apply only to settings screen?

Also, when the list is short and does not take the whole real estate on the screen, make a background color alabaster #fbfbfb
Uploading hot it looks at the moment (it's darker gray)

@tomekalphawallet this Alabaster color need apply only to settings screen?

There are a few places. Usually, the background is white. But there are few places, where we have to distinct where we have the end the list, separator etc.


Using promises in the action

Hi,
Your library for routing Alexa requests looks great, and so far I am very enthusiastic. The code I want to integrate Alexa in uses promises. The examples I have seen directly return the response.
Would it be possible to return a Promise in the handler of an action? That promise will ultimately resolve to returning the response to be returned towards Alexa.

I am sorry, I did not thoroughly check the code. I tried it and it handles promises without any issues! Thanks for a great project.

glad you were able to figure it out @matueranet


.gitignore does not get copied from template

npm init create-app won't copy the .gitignore files from the templates into the generated packages.
It is caused by the fact that when you publish a NPM package, .gitignore files are ignored. (https://github.com/npm/npm/issues/3763)
One workaround is to use a file like gitignore and copy it to .gitignore when doing generation.

I would like to make a PR for using the workaround mentioned above. Would you be OK with this? @uetchy
BTW it's also how some other projects such as create-react-app are doing (https://github.com/facebook/create-react-app/blob/c20ccecfa1cf130a47d37908dc54959c618ce8ea/packages/react-scripts/scripts/init.js#L257-L271)


cadl-java dpg anomalydetector

NO GUARENTEE that model and convenience API will be approved by SDK archboard. It depends on the quality of the Cadl.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
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:

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

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] 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

[ ] 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-anomalydetector

service PR https://github.com/Azure/azure-sdk-for-java/pull/32303


Empty update parameter with multi flag should return error

What should be done?
One test case of TestUpdateCompatMultiFlagCommand fails with {"multi": true} with empty update field {}.
Where?
See the issue number in the codebase.
Definition of Done

all handlers updated;
integration/compatibility tests added/updated;
spot refactorings done;

@fenogentov Any news? Is there anything we could help with?

@fenogentov Any news? Is there anything we could help with?

while one big question - to understand the task. )))
I tried a couple of options, but I realized that I did not understand the task))

https://github.com/FerretDB/FerretDB/blob/4641e0092b33859623ca142207d33d0e279be257/integration/update_compat_test.go#L507-L511
If you remove that skip field and run this test with env GOFLAGS='-run=TestUpdateCompatMultiFlagCommand' task test-integration-pg, you will see that this case fails. It should pass.

@fenogentov poke :)

The issue is not because of have an empty update field. This is due to mixing multi: true  flag with a replacement document. Observing the same error even when using non-empty replacement document.
// replacement doc with {multi: true}
rs0 [direct: primary] test> db.runCommand({update: "t1", updates: [{q: {"_id": 3}, u: {test: 0}, multi: true}]})
{
  n: 0,
  writeErrors: [
    {
      index: 0,
      code: 9,
      errmsg: 'multi update is not supported for replacement-style update'
    }
  ],
  nModified: 0,
  ok: 1
}

// replacement doc with {multi: false}
rs0 [direct: primary] test> db.runCommand({update: "t1", updates: [{q: {"_id": 3}, u: {}, multi: false}]})
{
  n: 1,
  nModified: 1,
  ok: 1,
}


[Messages] Unable to send message

Extension
https://www.raycast.com/thomaslombart/messages
Raycast Version
1.79.2
macOS Version
Sonoma 14.5
Description
Error:
Error: Command timed out after undefined milliseconds: osascript
Timed out

Timeout._onTimeout:exec-utils.js:32:33

---
29:     const timeoutPromise = new Promise((_resolve, reject) => {
30:         timeoutId = setTimeout(() => {
31:             spawned.kill("SIGTERM")

### Steps To Reproduce

Write text and click "send message"

### Current Behaviour

It wait 10 sec and show the classic Raycast error page

### Expected Behaviour

Send SMS

Are you consistently experiencing the same issue each time? If so, are you also getting the same error message? Thanks!

I just did a shutdown of the Mac and now it is working. Before I close raycast couple of time and tried to send a SMS multiple time with same error.
Hence error is gone for now.


Refresh Token Function Not Running

Prerequisites
Please answer the following questions for yourself before submitting an issue.

[x] This is bug in the application 🐛
[x] I am running the latest version
[x] I checked the documentation and found no answer
[x] I checked to make sure that this issue has not already been filed
[x] I'm reporting the issue to the correct repository

Describe the bug
I am following the details specified in the documentation here, and the refresh token is simply not updating the access token.
To Reproduce
Steps to reproduce the behavior:

Follow the instructions on this link.
Refresh token will not update the access token.

Expected behavior
The refresh token should automatically update the access token.
Current behaviour
Here is the code I have currently
refresh.js
import createRefresh from "react-auth-kit/createRefresh";
import axios from './Axios';

const refresh = createRefresh({
    interval: 1, // The time in sec to refresh the Access token,
    refreshApiCallback: async (param) => {
        console.log("Attempting to refresh...");
        try {
            const response = await axios.post("/auth/refresh", param, {
                withCredentials: true
            })
            console.log("Refreshing")
            return {
                isSuccess: true,
                newAuthToken: response.data.access_token,
                newAuthTokenExpireIn: 1,
                newRefreshTokenExpiresIn: 60
            }
        }
        catch(error){
            console.error(error)
            return {
                isSuccess: false
            }
        }
    }
})

export default refresh;

App.tsx
import createStore from 'react-auth-kit/createStore';
import AuthProvider from 'react-auth-kit';
import {BrowserRouter, Route, Routes} from "react-router-dom";
import Home from "./pages/home/Home";
import Signup from "./pages/signup/Signup";
import Layout from "./layout/Layout";
import NoPage from "./pages/nopage/NoPage";
import Login from "./pages/login/Login";
import refresh from "./hooks/refresh";

const store = createStore({
  authName: '_auth',
  authType: 'cookie',
  cookieDomain: window.location.hostname,
  cookieSecure: window.location.protocol === 'https:',
  refresh: refresh
});

const App = () => {
  return (
      <AuthProvider store={store}>
        <BrowserRouter>
          <Routes>
            <Route path="/" element={<Layout />}>
              <Route index element={<Home />} />

              <Route path="signup" element={<Signup />} />
              <Route path="login" element={<Login />} />

              <Route path="*" element={<NoPage />} />
            </Route>
          </Routes>
        </BrowserRouter>
      </AuthProvider>
  );
}

export default App;

Login Component
import React from "react"
import useSignIn from 'react-auth-kit/hooks/useSignIn';

import axios from '../../hooks/Axios';
import {Navigate} from "react-router-dom";

import './LoginComponent.scss';

const LoginComponent = () => {
    const signIn = useSignIn()
    const [formData, setFormData] = React.useState({username: '', password: ''})

    const [redirectToHome, setRedirectToHome] = React.useState(false);

    const onSubmit = async (e: any) => {
        e.preventDefault()

        await axios.post('/auth/login', formData)
            .then((res) => {
                if (res.status === 200) {
                    if (signIn({
                        auth: {
                            token: res.data.access_token,
                            type: 'Bearer'
                        },
                        refresh: res.data.refresh_token,
                        userState: {
                            id: res.data.user_id,
                            username: res.data.username,
                        }
                    })) { // Only if you are using refreshToken feature
                        // Redirect or do-something
                        setRedirectToHome(true);
                    } else {
                        //Throw error
                    }
                }
            })
    }

    return (
        <>

            <form className={"login-form"} onSubmit={onSubmit}>
                <div className="input-container">
                    <input
                        id={"username-field"}
                        type={"username"}
                        placeholder={"username"}
                        required
                        onChange={(e) => setFormData({...formData, username: e.target.value})}
                    />

                    <input
                        type={"password"}
                        placeholder={"password"}
                        required
                        onChange={(e) => setFormData({...formData, password: e.target.value})}
                    />
                </div>

                <button>Submit</button>
            </form>

            {redirectToHome && (<Navigate to="/"/>)}
        </>
    )
}

export default LoginComponent;

Login works perfectly. Sign up works perfectly. The access token just does not get refreshed. I've tried setting it to 1 minute, still no help. What am I doing wrong?
Screenshots
N/A
Desktop (please complete the following information):

OS: Windows 11
Browser: Arc, Chrome, Firefox
Version: Latest

License
MIT © React Auth Kit

So... turns out refreshing the page let's the refresh callback work. Why does it require a refresh of the page before the callback starts to run? Anyway, it works now; just requires a refresh of the page once logged in.


simplify tools download page

We should simplify the tools download page (https://spring.io/tools/sts/all + https://spring.io/tools/ggts/all). Since we now provide only the 32bit + 64bit ZIP files for each platform, we don't need the popup that shows all the various download links anymore. Instead we should show the download items directly in the download box of each supported platform. This makes them directly available on that page without the need to dive into a popup anymore.

The new tools page is superseding the former ones. Closing this issue.


Is there a way to get chunking / code-splitting prefixed with the store's CDN url?

I got chunking to work across my project and then deployed the theme only to realize that the URL /chunk-name-here.js means nothing to the browser. It needs to be https://cdn.shopify.com/s/files/1/01112/41117/4702/assets/chunk-name-here.js or something like that.
So has anyone gotten this to work? I wouldn't even mind providing the cdn url manually.

seems you're manually calling your scripts and not using the build function. Remember, write the js files on /src/scripts, after that during build the scripts will be build and set on assets directory, to call them slack will create the file   /snippets/script-tags.liquid file on dist. this file contains the proper way to call files on liquid


documentation

There are several aspects of documentation that are needed:

[ ] contributor docs - how to build from source, directory structure (where to find things) - this can be a single CONTRIBUING.md file similar to https://github.com/microsoft/xlang/blob/master/src/readme.md
[ ] pywinrt.exe usage docs - how to use the command line tool itself, install from nuget
[ ] bindings docs - How to use the bindings. Name translations (lower_snake_case). How overloads works (based on arg count), How events work. How async works. How buffers work. How iterators work. How System.Array works.

Being a Python-oriented project, using Sphinx doc probably makes sense.

This has been started.


Changing the color of the menu background

I am working with both Android and iOS platforms for my project.  When I set my device to dark mode with iOS it automatically changes the menu background accordingly.  However, Android does not.  Is there a programmatic way to set the background color of the menu in Android and iOS?

Adding to this issue — is there a way to force the menu to always render in dark mode on iOS even when device appearance is set to light?

forcing whole app color scheme is not a solution.
anybody know how to toggle the color scheme of the menu ?

I'd also like a solution for this.


Select AutoComplete option during form initialization

Bug, feature request, or proposal:
Feature
Because of the structure of the AutoComplete component, there becomes a need where during the initialization of a form, I want to be able to set the formControl with the same flow displayWith follows.
For Example:
My object is structured as:
{
id:'56f267f6-8810-49e4-89db-0dc11a315bc8'
name:'Pennsylvania',
value:'PA'
}

And this is saved into the database as is or maybe foreign key relationship. During saving, in either case, it's easy. The problem comes to when editing that data in the same UI. The formControl is set to that object but the string displayed is "[object Object]". It would be nice to be able to send that object through the same flow as if selecting the value.

Can you provide a reproduction? I am unable to duplicate it here:
https://stackblitz.com/edit/material2-beta12-mnj5fa?file=app%2Fapp.component.ts

Actually @willshowell, I must of been doing something wrong.
It's working as expected.
Thanks!


Offline mode for dx12?

I'd really like to support RGA's dx12 mode in Shader Playground - but as far as I can tell, dx12 mode (unlike dx11 mode) requires a live driver, which is certainly not present on the VMs that Shader Playground is hosted on.
Are there any plans to add an offline mode for dx12, analogous to the offline mode for Vulkan?

Hi tgjones,
We definitely want to enable DX12 shader compilation through RGA in Shader Playground. Let us see what we can do about it.

Hi @AmitBM,
Thank you! Just as a concrete starting point, here's the output I get at the moment for http://shader-playground.timjones.io/ea1e9a2436ead1d95c7117025054aa1e:

Building for gfx1010...
Error: failed to find a DX12 display adapter.
Error: driver initialization failed.
Error: failed to invoke the DX12 backend.
Error: cannot retrieve the list of targets supported by the driver.
failed.

As a shader playground user, it would be great to be able to use RGAs DX12 mode in shader playground. Would allow me to validate optimal codegen on new Navi GPUs using the newest API features.

As a shader playground user, it would be great to be able to use RGAs DX12 mode in shader playground. Would allow me to validate optimal codegen on new Navi GPUs using the newest API features.

Hi Sebastian,
Thanks for emphasizing the importance of the feature - we are looking into this.

Hi Sebastian,
Thanks for emphasizing the importance of the feature - we are looking into this.

Hi tgjones, sebbbi,
RGA 2.6 (released today) introduces a new --offline command line switch in its DXR and DX12 modes, which allows you to use the tool on machines that do not have an installed AMD driver or hardware. If --offline is specified, the tool will use the AMD DXR/DX12 driver (amdxc64.dll) which it ships with, instead of looking for an installed driver. You can also plug & play a specific build of AMD's DXR/DX12 driver to be used by the tool using the --amdxc command line switch (assuming that the provided driver build is compatible with the tool).


Syntax Highlights Don't Work on Some Boxes

For example, the several code blocks following this one have no highlighting. I looked at the pod for both working and non-working codes and I don't see the difference:

Based on conversation on IRC, the likely suspect is the bolded text in the code examples.

Yes, there's no way to pass text that's already marked up to a syntax hilighter.
The alternative would be to strip the markup, hilight, and then re-apply the markup, all the while preserving proper nesting of HTML tags.
If somebody wants to do it (and maintain it!) that would be great, but personally I don't think it's worth the trouble.

At least right now, we have better things to spend dev time on than this. Closing.


Use v2 of now deployment create API

Looks wonderful! But we should probably release it on the canary branch first 😊

Done!


Travis: Drop custom caching.

Fixes #310

@cvrebert: having issues with the path workaround. Any ideas?

@cvrebert: should be ready now. Just verify yourself to be safe.

@cvrebert: it appears coveralls fails, not due to this patch, though.

And the build isn't marked as failed, not sure if that's intentional.

Looking into the coveralls issue, it seems it's due to https://github.com/fishbar/jscoverage/issues/35
The potential fix might be something as simple as
require("coffee-script/register")

Should we fork jscoverage or look for alternatives?
So this leaves us the build being marked as successful.

Should we fork jscoverage or look for alternatives?

I would warmly welcome a patch to switch to Istanbul. I'm open to proposals for other alternative tools too.
But it seems like the easiest fix would be to just add a devdependency on coffeescript and stick with jscoverage, so I'd also accept a patch for that.

But it seems like the easiest fix would be to just add a devdependency on coffeescript and stick with jscoverage, so I'd also accept a patch for that.

Nope, I tried that but still fails.

not due to this patch, though.

Ah. Then open a new issue and we'll ignore the failure for now.

@Johann-S: I totally forgot I had made this. I'll test it out.


Monitoring (100.0.0+up16.6.0): cattle-monitoring-system/rancher-monitoring-kube-proxy failed to resolve DNS

Rancher Server Setup

Rancher version: 2.6.2:stable
Installation option (Docker install/Helm Chart): Helm Chart

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc): RKE2 (rke2r2)

Proxy/Cert Details: None

Information about the Cluster

Kubernetes version: v1.21.5
Cluster Type (Local/Downstream): Local

More details
I deploy my own Kubernetes cluster on my home-lab, all nodes are Ubuntu 18.04.6 LTS VMs (kernel 4.15.0-161-generic) on Proxmox server. I was following this guide to setup the environment.
My cluster has 3 nodes, 1 server and 2 agents. After that, I installed MetalLB & Traefik for load balancing via their helm charts. Then I installed Logging & Monitoring from Rancher's Cluster tools
Describe the bug
After checking through Prometheus Alerts/Targets, I found out serviceMonitor/cattle-monitoring-system/rancher-monitoring-kube-proxy is unreachable.
To Reproduce
Install Monitoring helm chart from Rancher Cluster tools
Result
Expected Result
All targets are up

Screenshots

Additional context
I have ssh to all nodes and run dig @<IP_ADDRESS> google.com but only the server node (which has coredns) return an answer.
I've tried nslookup pushprox-kube-proxy-proxy.cattle-monitoring-system.svc.cluster.local <IP_ADDRESS> on all nodes:

server node: return the right address (which is <IP_ADDRESS>)
agent node: connection timed out

But there is a twist. I tried to run nslookup pushprox-kube-proxy-proxy.cattle-monitoring-system.svc.cluster.local <IP_ADDRESS> (<IP_ADDRESS> is pod IP of coredns pod on server node) on agent node and it return the right address as well

@aiyengar2 I believe this bug is not the same root cause with #33052. Can you please help out?

Is the CoreDNS pod on the node with the IP <IP_ADDRESS>?

Is the CoreDNS pod on the node with the IP <IP_ADDRESS>?

Yes, they are 2 coreDNS pod on that node. And their metrics are up

I somehow think you have a underlying networking issue on your nodes.
Try to deploy CoreDNS pods to nodes with services which get some timeouts while scraping.
If it works some minutes after, take a look at: https://github.com/flannel-io/flannel/issues/1279

I'd agree that this seems like an underlying networking issue, unrelated to Monitoring V2. If this is reproducible on a fresh RKE2 cluster, I think an issue should be opened in https://github.com/rancher/rke2.

I'd agree that this seems like an underlying networking issue, unrelated to Monitoring V2. If this is reproducible on a fresh RKE2 cluster, I think an issue should be opened in https://github.com/rancher/rke2.

Thank you for responding. I will investigate into RKE2 networking. If it still happened, I will open a new issue in RKE2 repo


Quotes in strings incorrectly escaped.

Expected behaviour
When POSTing then GETting an imposter, I expect the same functionality of the imposter
Actual behaviour
The imposter is in a state where it no longer returns valid json.
Steps to reproduce
POST this imposter:
{
  "protocol": "http",
  "port": 4555,
  "requests": [],
  "stubs": [
    {
      "predicates": [
        {
          "equals": {
            "method": "POST",
            "path": "/customers/123"
          }
        }
      ],
      "responses": [
        {
          "is": {
            "statusCode": 201,
            "headers": {
              "Location": "http://localhost:4555/customers/123",
              "Content-Type": "application/json",
              "Connection": "close"
            },
            "body": "{\"object\":{\"stringWithQuote\":\"this is a \\\"test\\\"\"}}"
          }
        }
      ]
    },
    {
      "responses": [
        {
          "is": {
            "statusCode": 404
          }
        }
      ]
    }
  ],
  "_links": {
    "self": {
      "href": "http://<IP_ADDRESS>:2525/imposters/4555"
    }
  }
}

Then GET it again. The quotes in "test" are no longer escaped, if POSTed again invalid json is returned. This is the version returned by GET:
{
  "protocol": "http",
  "port": 4555,
  "numberOfRequests": 0,
  "requests": [],
  "stubs": [
    {
      "predicates": [
        {
          "equals": {
            "method": "POST",
            "path": "/customers/123"
          }
        }
      ],
      "responses": [
        {
          "is": {
            "statusCode": 201,
            "headers": {
              "Location": "http://localhost:4555/customers/123",
              "Content-Type": "application/json",
              "Connection": "close"
            },
            "body": "{\"object\":{\"stringWithQuote\":\"this is a \"test\"\"}}"
          }
        }
      ]
    },
    {
      "responses": [
        {
          "is": {
            "statusCode": 404
          }
        }
      ]
    }
  ],
  "_links": {
    "self": {
      "href": "http://<IP_ADDRESS>:2525/imposters/4555"
    }
  }
}

Software versions used
OS         : ubuntu 16.04
mountebank : 1.7.2
node.js    : 6.9.1
  (only if installed via npm)
Installation method : npm
  (npm, zip, tar, pkg, deb, rpm)

Log contents in mb.log when running mb --loglevel debug

info: [mb:2525] mountebank v1.7.2 now taking orders - point your browser to http://localhost:2525 for help
debug: [mb:2525] config: {"options":{"noParse":false,"nologfile":false,"allowInjection":false,"mock":false,"debug":false,"removeProxies":false,"heroku":false,"version":false,"help":false,"loglevel":"debug","port":2525,"pidfile":"mb.pid","logfile":"mb.log","savefile":"mb.json"},"process":{"nodeVersion":"v6.9.1","architecture":"x64","platform":"linux"}}
info: [mb:2525] POST /imposters
debug: [mb:2525] ::ffff:<IP_ADDRESS>:58386 => {"protocol":"http","port":4555,"requests":[],"stubs":[{"predicates":[{"equals":{"method":"POST","path":"/customers/123"}}],"responses":[{"is":{"statusCode":201,"headers":{"Location":"http://localhost:4555/customers/123","Content-Type":"application/json","Connection":"close"},"body":"{\"object\":{\"stringWithQuote\":\"this is a \\\"test\\\"\"}}"}}]},{"responses":[{"is":{"statusCode":404}}]}],"_links":{"self":{"href":"http://<IP_ADDRESS>:2525/imposters/4555"}}}
info: [http:4555] Open for business...
info: [mb:2525] GET /imposters/4555

Thanks for reporting (and for providing so many details). Can you confirm you're not doing something in your deserialization that's stripping the quotes? I tested both the latest code and v1.7.2 with the JSON you added to the issue (I used curl instead of any client code), and I get the quotes properly escaped on the subsequent GET, and can successfully rePOST it. A diff of what I POSTed and what I GET is below, which shows only differences that will be ignored when creating the imposter. It appears from the logs that there are no other hidden operations to worry about, which means it's either something specific to your environment or to the deserialization code you have, and the deserialization code probably be the easiest thing to spot.
Any additional observations you can make to help troubleshoot?
bbyars@ubuntu:~/src/test$ diff out.json test.json
4d3
<   "numberOfRequests": 0,
42c41
<       "href": "http://localhost:2525/imposters/4555"

  "href": "http://<IP_ADDRESS>:2525/imposters/4555"

45c44
< }
\ No newline at end of file

}

Thanks for looking into it. It was, as you point out, something with the deserialization. I was using Postman, when using curl the escapes are as expected.

Perfect - thanks for letting me know.
On Mon, Dec 19, 2016 at 4:26 AM, martinhyldgaard<EMAIL_ADDRESS>wrote:

Thanks for looking into it. It was, as you point out, something with the
deserialization. I was using Postman, when using curl the escapes are as
expected.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/bbyars/mountebank/issues/178#issuecomment-267930737,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAESv9VVV9eUndXWoSqt0PEsBehQqNVfks5rJlvXgaJpZM4LLcKo
.


draft function

@sisp different (complementary?) to the draft middleware, since it covers a different use case, but I think the name was too good to let it pass. Any suggestions?

Coverage decreased (-0.08%) to 89.434% when pulling 3d0c1aed09cfcf3387897e8a77b01d8b980f09a2 on draft-function into 9f9117bc968fa8df2986afffc8e5e5655bc524bc on master.

First of all, this is a great new feature for mobx-keystone! The API of Draft looks very similar to mobx-utils's ViewModel but also works for entire subtrees whereas I believe ViewModel can only be used on a flat MobX model.

[...] (I'm open for new names though)

I think draft fits quite well given what it does.

@sisp different (complementary?) to the draft middleware, since it covers a different use case

Yes, I think the two are complementary. The draft function creates an explicitly managed draft copy of a subtree with methods to manually commit changes to the original subtree or (partially) reset the copy. The draft middleware creates an implicitly managed draft copy of a subtree which is automatically kept in sync with the original subtree and allows to make temporary changes to the draft which must be committed or rejected when the callback returns, so the draft and the original subtree can never diverge. Before nested withDraft calls, I think the draft function could have been a replacement for the draft middleware while supporting a broader set of use cases like the preferences form example, which I believe cannot be implemented using the draft middleware because the draft cannot diverge from the original subtree. However, I currently don't see a way to implement nested withDraft calls using the draft function because changes to the draft must be associated with the nesting level and accordingly, but the concept of nested drafts does not exist in the draft function.
In the app that I'm building and from which I'm deriving requirements, I need to test "what-if" scenarios which affect the way I visualize UI elements. At this point, I compute some value on the draft after performing some actions but always reject the changes made to the draft in each (nested) withDraft call. TBH, I'm still trying to figure out a real world use case for committing changes made in withDraft. Could this be the key difference between the draft function and draft middleware, i.e. the draft middleware is only for testing "what-if" scenarios and changes are never committed?


(Follower) How to prepare my own training data or where is add_data or add_comment comes from?

Hi team,
I used TB3-burger follower. I like to improve the follower classification. However, I dont know how to generate my own training data. thanks
import pickle
import rospy
import matplotlib.pyplot as plt
import numpy as np
from sensor_msgs.msg import LaserScan
from sklearn.ensemble import RandomForestClassifier
if name == 'main':
laser_data = pickle.load( open( "add_data", "rb"))
comments = pickle.load( open( "add_comment", "rb" ))
labels = {'30_0':0, '30_l':1, '30_r':2, '45_0':3, '45_l':4, '45_r':5, '15_0':6, 'empty':7}

Hi @angrysword :)
This application uses scikit-learn package.  I attached scikit-learn tutorial.
http://scikit-learn.org/stable/tutorial/basic/tutorial.html#

Hi KijongGil
 Thanks for replying,  the actual question is about where did you get "add_data" file and "add_comment" file? or may I generate my own add_data file for better recognize the legs.

Hi @angrysword
How are you doing?  I hope everything is going great. If you need it, you have to create your data. Please give me feedback if you've succeeded to do something.
@kijongGil, can you give him a tip for it if you can?

I'm sorry to lately reply.
You can get "add_comment" file from laser_subscriber.py and ploting.py.
If you add labels you wanted, you can add more detail LDS data.
Thanks,
Gilbert.

I still have no idea like where did you get the 'add_data' file or how do you generate this 'add_data' file. I am thinking if I can prepare more training data like that, I may come up with a better learning model

thanks very much. I will try it and give you feedback soon.

I got it. that is what I am looking for, I never think laser subscriber will do that jobs, never take a look at it .  Definitely MY FAULT. Thank you very much. I appreciate your time.

I got it. that is what I am looking for, I never think laser subscriber will do that jobs, never take a look at it .  Definitely MY FAULT. Thank you very much. I appreciate your time.


Admob integration between firestore list

Just like how we can integrate in a listview.seprated https://stackoverflow.com/questions/63685604/how-to-show-ads-in-list-view-in-flutter
Can we perform same action with paginate

how did you implement an ad like that bro?


New Repository Structure

Currently we have the following repositories now that #284 is starting to take shape:
https://github.com/ExtendedXmlSerializer/

ExtendedXmlSerializer
documentation
extendedxmlserializer.github.io

Now that we have our own dedicated "organization" of (ExtendedXmlSerializer), I think we should do this:
https://github.com/ExtendedXmlSerializer/

home (less redundant, more descriptive)
documentation (lowercase)
extendedxmlserializer.github.io (stays the same)

Part of the problem is consistency.    For instance, I would prefer Capitalized case, but this impacts GitHub pages, which is case-sensitive:
https://stackoverflow.com/a/48389490/10340424
So, wanting to play nicely with GitHub Pages.
See any problems with this, @WojciechNagorski?

This has been done.  Please update your git links to:
https://github.com/ExtendedXmlSerializer/home.git


Replacing falsey check from this.shouldUpdate

The documentation states that returning false from this.shouldUpdate will prevent the view from being updated.
However, this check is falsey, and will not update for falsey values as well. PR for consistency.

Thanks for the fix @jpattishall ! New version published<EMAIL_ADDRESS>


Some attributes stop working when Unity restarts

Unity version: 2020.3.0f1
I was wondering what was happening, why my objects would sometimes have missing inspector attributes. I figured out that attributes like the ButtonAttribute, ShowIf/HideIf, and more, would not appear after restarting Unity with my project.

Other attributes work as intended after a restart:

It all works fine again after removing the NaughtyAttributes folder from Assets and reimporting it through the Package Manager. But as soon as I boot up the project again the next day, the Attributes stop working again.
What could be causing this? How would I fix this? Thanks in advance.

P.S. I use the iTween & MyBoxAttributes plugins, although I don't believe they should be interfering with one another. Please correct me if I'm wrong.

I'm pretty sure you have a conflict since both NaughtAttributes and MyBox are based on the same functionality - overriding the base Editor class for all UnityEngine.Objects.

I tested it, and it's everything seems to work on my end. @arimger is probably right, MyBoxAttributes are probably overriding the base Editor class.


[Bug]: Update dependencies for demo Diffusion

What happened?
Using a clean enviornment based off Python 3.10, the default version of pydantic is 2.x which is not compatible with Olives current implementation.
  File "...\envs\olive\lib\site-packages\pydantic\_internal\_model_construction.py", line 290, in inspect_namespace
    raise TypeError("To define root models, use `pydantic.RootModel` rather than a field called '__root__'")
TypeError: To define root models, use `pydantic.RootModel` rather than a field called '__root__'

pydantic==1.10 seems to be the sweetspot and I would recomment adding this to the requirements.txt
Version?
0.2.1 with directml

https://github.com/microsoft/Olive/pull/392 should already fix this issue


error when "npm start"

Hi
I got this error when I try get the cms up and running;
`root@3b74527adc70:/app# npm start

<EMAIL_ADDRESS>start /app
node index.js

internal/modules/cjs/loader.js:796
throw err;
^
Error: Cannot find module '/app/src/api.js'
Require stack:

/app/index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
at Function.Module._load (internal/modules/cjs/loader.js:686:27)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (/app/index.js:2:11)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/app/index.js' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-03-02T16_33_07_062Z-debug.log
`
Before that, "npm run build" was successful like this;
`root@3b74527adc70:/app# npm run build

<EMAIL_ADDRESS>build /app
./node_modules/gulp/bin/gulp.js

[16:32:09] Using gulpfile /app/gulpfile.js
[16:32:09] Starting 'default'...
[16:32:09] Starting 'controller-concat'...
[16:32:09] Concatenating and Copying Controllers...
[16:32:10] Finished 'controller-concat' after 26 ms
[16:32:10] Starting 'copy-partials'...
[16:32:10] Copying HTML partials...
[16:32:10] Finished 'copy-partials' after 7.53 ms
[16:32:10] Starting 'copy-more-partials'...
[16:32:10] Copying HTML partials...
[16:32:10] Finished 'copy-more-partials' after 4.99 ms
[16:32:10] Starting 'sass'...
[16:32:10] Compiling Sass...
[16:32:10] Finished 'sass' after 5.73 ms
[16:32:10] Finished 'default' after 47 ms
`
Any idea?
Thank you in advance!

Oh, I am sorry, was my fault.
This was the error in my Dockerfile:
COPY ./botkit-cms/ /app/
Solved after I removed asterisk from the command.
By the way, can I push the dockerized version?


Create aught_cfg! where anything that match is added and NO wildcard is accepted.

Unsafe sooooo.... NO


Installation Script (Windows) wrong path

What is posted:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/nimsandu/spicetify-bloom/install.ps1" | Invoke-Expression
What should be posted:
Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/nimsandu/spicetify-bloom/main/install.ps1" | Invoke-Expression

sorry sir


Potential Security Issue

👋 Hello, we've received a report for a potential high severity security issue in your repository.
Next Steps
1⃣  Visit https://huntr.dev/bounties/1-other-kousen/spring-and-spring-boot for more advisory information.
2⃣  Sign-up to validate or speak to the researcher for more assistance.
3⃣ Propose a patch or outsource it to our community.

Confused or need more help?

Join us on our Discord and a member of our team will be happy to help! 🤗

Speak to a member of our team: @JamieSlome

This issue was automatically generated by huntr.dev - a bug bounty board for securing open source code.

Go away spammer


Linting should not require the default scenario to exist

Issue Type

Bug report

Molecule and Ansible details
$ ansible --version && molecule --version
ansible [core 2.11.2]
  config file = None
  configured module search path = ['~/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = ~/.pyenv/versions/3.9.1/envs/ansible-devel/lib/python3.9/site-packages/ansible
  ansible collection location = ~/.ansible/collections:/usr/share/ansible/collections
  executable location =~/.pyenv/versions/ansible-devel/bin/ansible
  python version = 3.9.1 (default, Feb 21 2021, 17:37:26) [Clang 12.0.0 (clang-1<IP_ADDRESS>)]
  jinja version = 3.0.1
  libyaml = True
molecule 3.3.4 using python 3.9
    ansible:2.11.2
    delegated:3.3.4 from molecule

Molecule installation method (one of):

pip

Ansible installation method (one of):

pip

Detail any linters or test runners used:
Desired Behavior
As per the docs, linting is usually a repository task, not an scenario one:

The issue was that molecule runs on scenarios and linting is usually performed at repository level.

It would be great to allow molecule lint run if .config/molecule/config.yml exists but default scenario does not exist, i.e. the molecule/default/molecule.yml file is not created. lint section of .config/molecule/config.yml should be used in that case. If a different scenario is specified, or if the default scenario exists, behaviour should be the usual one.
This would allow projects without a default scenario to be linted with molecule but without the need to specify an specific scenario.
Actual Behaviour
molecule exits because scenario is not found:
$ mkdir -p .config/molecule
$ cat <<EOF > .config/molecule/config.yml
---
lint: |
  set -e
  ansible-lint
EOF

$ molecule -v lint
INFO     Found config file ~/ansible-devel/.config/molecule/config.yml
CRITICAL 'molecule/default/molecule.yml' glob failed.  Exiting.

$ molecule init scenario default
INFO     Found config file ~/ansible-devel/.config/molecule/config.yml
INFO     Initializing new scenario default...
INFO     Initialized scenario in ~/ansible-devel/molecule/default successfully.

$ molecule -v lint
INFO     Found config file ~/ansible-devel/.config/molecule/config.yml
DEBUG    Validating schema ~/ansible-devel/molecule/default/molecule.yml.
INFO     default scenario test matrix: dependency, lint
INFO     Performing prerun...
INFO     Running default > dependency
WARNING  Skipping, missing the requirements file.
WARNING  Skipping, missing the requirements file.
INFO     Running default > lint
COMMAND: set -e
ansible-lint

Loading custom .yamllint config file, this extends our internal yamllint config.

As a workaround, I'm currently creating a default scenario with only an almost empty molecule.yml, as it requires at least one instance to be defined:
$ mkdir -p molecule/default
$ cat <<EOF > molecule/default/molecule.yml
---
platforms:
  - name: dummy
EOF

$ molecule -v lint
INFO     Found config file ~/ansible-devel/.config/molecule/config.yml
DEBUG    Validating schema ~/ansible-devel/molecule/default/molecule.yml.
INFO     default scenario test matrix: dependency, lint
INFO     Performing prerun...
INFO     Running default > dependency
WARNING  Skipping, missing the requirements file.
WARNING  Skipping, missing the requirements file.
INFO     Running default > lint
COMMAND: set -e
ansible-lint

Loading custom .yamllint config file, this extends our internal yamllint config.

Linting is pending removal from molecule in v4, try https://github.com/ansible-community/molecule/discussions/3569


Suggestion: Reword error message displayed.

15/12/21 Contract: freeosgov, account: billbeaumont, Version# v0.7.5, Bloks.io
Entered a -ve value for vote q1response. Error displayed-Encoding error at root.q1response: Number -1 underflows uint8.
Would it be possible to use the same  out of range message i.e. Response 1 is out of range. More user friendly without the technical jargon.

That error message is generated by Proton. It is expecting a positive integer (uint8 = unsigned integer 8 bits) but it was supplied with a negative number. The error is intercepted by Proton before it is delivered to the smart contract code.

15/12/21 - See Tom's comment that it's not possible to reword error message.


uniqueTemplate for Arrays

I don't know if this is already possible but it would be cool to have a way of saying exactly what part of an array object should be unique. Usually, it's not the whole object that needs to be unique, but just one or two properties

You could use this little custom validator that I wrote https://gist.github.com/yingliangzhang/63d3373cf91991898a75810bee140038
Then just add "uniqueFields": ["field1", "field2"], to your array property in your schema.json


manual_trigger key doesn't seem to work at all for us

What happened? What is the problem?
Recently added manual_trigger to packit configuration[1]. Subsequently, assembled a PR[2] but invoking tests by comment[3] did not seem to result in the tests actually being run. I searched high and low on the Packit dashboard, but the tests did not seem to show up. I ran into a crash while looking, and filed a separate issue for that[4]. I noticed that other jobs were coming in very regularly, so outage was not the problem.
[1] https://github.com/stratis-storage/stratis-cli/pull/1011
[2] https://github.com/stratis-storage/stratis-cli/pull/1012
[3] https://github.com/stratis-storage/stratis-cli/pull/1011#issuecomment-1688583439
[4] https://github.com/packit/dashboard/issues/322
What did you expect to happen?
I wanted to see some proof that the tests were being run after I inserted the comment in the PR.
Example URL(s)
URLs provided above.
Steps to reproduce
See above.

What is the impacted category (job)?
Copr builds
Workaround

[ ] There is an existing workaround that can be used until this issue is fixed.

Participation

[ ] I am willing to submit a pull request for this issue. (Packit team is happy to help!)

hi @mulkieran ! I checked your Packit configuration and I can see you have only a copr_build job configured. For that one, the right comment to trigger the builds manually is /packit build comment command (see details in docs). Let us know if you bump into any more troubles with the setup!

@mulkieran please let me know whether this worked for you, in that case I would close this issue :)

@mulkieran please let me know whether this worked for you, in that case I would close this issue :)

Plz close. It works: https://github.com/stratis-storage/stratis-cli/pull/948 .


Service unavailable (503) on register page, pypi.org

Once you try to register on https://pypi.org/account/register/, after filling all the details the site crashes with error 503.
it says as follows:
Sorry, something went wrong
PyPI is down for maintenance or is having an outage.
This is affecting several of our services, including our web interface.
If you are trying to install a package, you should be able to pip install packages without problem.
Check our status page, or
View Python Status on Twitter
Rely on PyPI to get your job done?

Thanks for the bug report @suyash091 -- Are you still experiencing this problem? I looked at our metrics dashboard and I think things should be fine now...

Sorry, but it is still there. on metrics, it isn't showing up.

its up and running now.

Based on our metrics, it appears that our Content Delivery Network provider's Point of Presence in Mumbai was experiencing issues reaching the backends during this timeframe. We don't have a whole lot of visibility into what might cause a global routing issue like that unfortunately.
Can you confirm if you are near Mumbai? If so this is likely related to that transient error.


Add API code examples for Builder classes

This PR adds API code examples for the Builder classes.

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


util: fix mismatched slashes in find_missing_translations

Does this need to be updated elsewhere and/or made into a single function?
https://github.com/quisquous/cactbot/blob/6e6ef990e7a3c6f2dcdc200ec72042996c6bb64e/test/helper/test_manifest.js#L6-L16
https://github.com/quisquous/cactbot/blob/61cb8bb7284bbe31d4ca1aab81e08a9633f5b46c/test/test_raidboss_data.js#L25-L35


stuck in "bulding course data"

When i hit the download button. it stuck in building course data forever. please help me....

i am getting the same issue with only one course, i am able to download rest

The same happens to me, if I try to download this course:
https://www.udemy.com/course/the-complete-nodejs-developer-course-2/
It's the only course I got this problem, otherwise it's a very handy tool. Thanks for your fantastic work so far Faisal!

I also get it for some other courses as well. Please fix this @FaisalUmair

Great work @FaisalUmair. But I'm also the same issue for my courses. After clicking download, it doesn't continue downloading.

same here, on every course, even the one's i already downloaded before

I get the same message. Is there any solution?

it looks like its when their as been some changes to the course structure it have that error. Because i am trying to download this course https://www.udemy.com/course/react-the-complete-guide-incl-redux/learn/lecture/8268492?start=30#overview i see that the course structure has changed some section have changed to legacy and its the only course that is not downloading

Me too, it stuck to most of the courses.... The same happened on the Chrome Udemy download extension. Stuck at gathering the course list. Udemy has changed something that failed course listing.

here also the same problem.

https://github.com/FaisalUmair/udemy-downloader-gui/issues/570#issuecomment-823101679

Having the same issue here, need help

Same issue here.

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt

@robotvinay  exact loaction please, I'm unable to find the exact path.
thanks in advacne

indeed where is that file located(windows)?

I've been trying to find the file for a while now, can someone help?

Hey @robotvinay  thanks for your solution, but I just upgrade the app,js file, but when I run npm install and npm start, the courses appear like this, idk if I did something wrong

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt
The error is due to recent change in Udemy api data mapping

Hey @robotvinay thanks for your solution, but I just upgrade the app,js file, but when I run npm install and npm start, the courses appear like this, idk if I did something wrong

indeed where is that file located(windows)?

You have to download the zip from here https://github.com/FaisalUmair/udemy-downloader-gui
That's where you have to search for that file, after change it, you have to open your terminal in the root directory of the project downloaded and type npm install in order to install  node modules and dependencies and after that, type npm start in order to start the application
With that it should work

Thanks!

Hi, by terminal you mean command prompt right?, cause I tried that and it doesn't work

Hi, by terminal you mean command prompt right?, cause I tried that and it doesn't work

Yeah, just how I said, it should, but it doesn't seems to work in my computer neither, in my other comment I said what is happening to the app, it says undefined, so idk bro

Alright thanks, hope we get a fix from FaisalUmar soon

have same problem here.. pls help...

@FaisalUmair Could you please check, when you get time....thanks in advance

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt
The error is due to recent change in Udemy api data mapping

After I replaced the app.js file with the new one it fixed the stuck issue, but when the course I was downloading finished, all of the mp4 files were very small(a few kilbobytes) and corrupted.
Don't know if it caused by replacing the js file..

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt
The error is due to recent change in Udemy api data mapping

After I replaced the app.js file with the new one it fixed the stuck issue, but when the course I was downloading finished, all of the mp4 files were very small(a few kilbobytes) and corrupted.
Don't know if it caused by replacing the js file..

yes. same situation happened to me. the first 6-7 videos downloaded smoothly, but the rest didn't download at all. I think the program skipped them all. There was only the name of the videos in the directory, not actual size.

@taluk48 I am not even able to search courses, any chance you know the reason?

no. actually, I've never used the program to search courses. I already have less than 10 courses and it is easy for me to see them all together 😄

Can you download only purchased courses?

Can you download only purchased courses?

Hi, actually yes the software works fine for paid courses, even now. But there are some that can't be downloaded it shows "Building Courses Data" error. I have no idea why. Just magic.

@FaisalUmair Would be kind enough and look at this issue. Highly appreciate it.

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt
The error is due to recent change in Udemy api data mapping

After I replaced the app.js file with the new one it fixed the stuck issue, but when the course I was downloading finished, all of the mp4 files were very small(a few kilbobytes) and corrupted.
Don't know if it caused by replacing the js file..

yes. same situation happened to me. the first 6-7 videos downloaded smoothly, but the rest didn't download at all. I think the program skipped them all. There was only the name of the videos in the directory, not actual size.

I have the same problem.

Same issue , Help Please @FaisalUmair

Just managed to download 1 course: 'Coaching for Growth and Success' but for any other course getting 'Building Course Data'

It can only download the first video of the course, and the next ones in 5KB. The filenames are correct but video content is missing.

I think this new bug is due to Udemy adding auto-generated subtitles to English videos a couple of weeks ago. Check out videos in other languages and they can all be downloaded with Udeler without any problem. Not sure if it will help @FaisalUmair fix it, but just wanted to give everyone a heads up!

I think this new bug is due to Udemy adding auto-generated subtitles to English videos a couple of weeks ago. Check out videos in other languages and they can all be downloaded with Udeler without any problem. Not sure if it will help @FaisalUmair fix it, but just wanted to give everyone a heads up!

I actually recently tried to download videos, and I'm able to download either Spanish and English courses, except the one that I want 😂

i try download the course not in english... and it success....

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt
The error is due to recent change in Udemy api data mapping

After I replaced the app.js file with the new one it fixed the stuck issue, but when the course I was downloading finished, all of the mp4 files were very small(a few kilbobytes) and corrupted.
Don't know if it caused by replacing the js file..

I have the same problem

i try download the course not in english... and it success....

It took some time for me too before I couldn't download any English video. Thought it might be a good hint as I can still download them in French or Italian, but it might be something else.

I am having the same issue. I think this problem applies to only the paid courses. @FaisalUmair, we need a quick fix.

@FaisalUmair first thank you for this amazing work. when you have a free time please look at this matter.thanks.

copy the code from the below attachement and replace the content in your assets/js/app.js file
new app.js.txt
The error is due to recent change in Udemy api data mapping

After I replaced the app.js file with the new one it fixed the stuck issue, but when the course I was downloading finished, all of the mp4 files were very small(a few kilbobytes) and corrupted.
Don't know if it caused by replacing the js file..

I have the same problem

I'm also at this step. There are some comments say that Auto Generated English subtitles cause problem. I couldn't skip subtitle selection. Could you please give an option to skip subtitle selection? Idk how to do it.

I've replaced app.js file. It worked, thanks. Same issues arise unfortunately. I disabled subtitle from settings and it doesn't ask subtitle selection anymore. However, video files are still a few kilobytes. This was helping me to learn something else when I'm not connected to the internet. I hope that a developer can fix it for us. I'm not a developer. : (

@FaisalUmair can you please fix this issue?

@FaisalUmair kindly, please fix it soon. Thanks in advance!

Hello!
Has anyone been able to fix the problem? I tried to replace the app.js file and it does not work. Can't download purchased courses that have sections (chapters).

Hello!
Has anyone been able to fix the problem? I tried to replace the app.js file and it does not work. Can't download purchased courses that have sections (chapters).
Also tried Udemy Downloader chrom extension & udemy-dl. They also not working(

No dude, everything just stopped working

+1 for fixing this problem. @FaisalUmair I would appreciate it if you find time to fix this problem. Thanks in advance 👍

For anyone who still waiting - this chrome extension updated and working well: https://chrome.google.com/webstore/detail/udemy-downloader/oojlfdpeghhdkdbcajpmbnkbmecbdejm

Same issue, Please have a look @FaisalUmair
Many people are facing this issue and all are waiting for you help. Thanks 👍

I re-installed the program and it solves the problem.

It seems that he will not come back. It's better to start learning javascript and fork this repo.

Someone know what is 'v.id' ?
Using Postman, the Response Detail is : "You do not have permission to perform this action.".
Do you have the same problem?
function getLecture(lecturename, chapterindex, lectureindex) {               $.ajax({                 type: "GET",                 url: https://${subDomain}.udemy.com/api-2.0/users/me/subscribed-courses/${courseid}/lectures/${v.id}?fields[asset]=stream_urls,download_urls,captions,title,filename,data,body,media_sources,media_license_token&fields[lecture]=asset,supplementary_assets

Someone know what is 'v.id' ?
Using Postman, the Response Detail is : "You do not have permission to perform this action.".
Do you have the same problem?
function getLecture(lecturename, chapterindex, lectureindex) { $.ajax({ type: "GET", url: https://${subDomain}.udemy.com/api-2.0/users/me/subscribed-courses/${courseid}/lectures/${v.id}?fields[asset]=stream_urls,download_urls,captions,title,filename,data,body,media_sources,media_license_token&fields[lecture]=asset,supplementary_assets

You trying to perform GET request, but without sending auth cookies and getting 403 (Forbidden) error or something else.

Same issue. I cannot download the courses. Every time it gets stuck at "Building course data". Please look into it.
Thank you.

here's 50 euro for the one who fix this problem;)

Has anyone tried using an older version if they are available?

https://github.com/r0oth3x49/udemy-dl/issues/627#issuecomment-826085690

Whenever i go on the actual course on Udemy i see that the course is set to no download so maybe that's the issue why its saying building course data.

I can also pay 50$ to someone, who can manage to fix this issue. Fix it, send me a message and you'll 50$ in your PP.

Whenever i go on the actual course on Udemy i see that the course is set to no download so maybe that's the issue why its saying building course data.

No no, it's possible to download with a simple fetch request to the api.

Do you have the URL of the fetch request?

We need to solve this problem soon

Whenever i go on the actual course on Udemy i see that the course is set to no download so maybe that's the issue why its saying building course data.

No no, it's possible to download with a simple fetch request to the api.

Do you have the URL of the fetch request?

Try this simple function to retrieve a specific lecture information.
It is an object with a property called 'asset' that is another object. Inside asset you should see an array called 'media_sources'. Here you should find the video 'src' for different kind of quality.
async function getData(courseID, lectureID) {   let response = await    fetch(`https://www.udemy.com/api-2.0/users/me/subscribed-courses/${courseID}/lectures/${lectureID}/?fields[lecture]=asset,description,download_url,is_free,last_watched_second&fields[asset]=asset_type,length,media_license_token,course_is_drmed,media_sources,captions,thumbnail_sprite,slides,slide_urls,download_urls`,   	{   		"headers": {   			"authorization": "YOUR_AUTHORIZATION_CODE",   		}   	});     let data = await response.json()      return data; }
To know your Authorization Code, go on Udemy home page (you should be logged) and open the Network Tab.

Whenever i go on the actual course on Udemy i see that the course is set to no download so maybe that's the issue why its saying building course data.

No no, it's possible to download with a simple fetch request to the api.

Do you have the URL of the fetch request?

Try this simple function to retrieve a specific lecture information.
It is an object with a property called 'asset' that is another object. Inside asset you should see an array called 'media_sources'. Here you should find the video 'src' for different kind of quality.
async function getData(courseID, lectureID) { let response = await fetch(`https://www.udemy.com/api-2.0/users/me/subscribed-courses/${courseID}/lectures/${lectureID}/?fields[lecture]=asset,description,download_url,is_free,last_watched_second&fields[asset]=asset_type,length,media_license_token,course_is_drmed,media_sources,captions,thumbnail_sprite,slides,slide_urls,download_urls`, { "headers": { "authorization": "YOUR_AUTHORIZATION_CODE", } }); let data = await response.json() return data; }
To know your Authorization Code, go on Udemy home page (you should be logged) and open the Network Tab.

I'm having problems with find the CourseID, I have found everything else, but that is what makes my fetch request fail.
For testing the api, I'm using postman, hope it works

You can use this function to retrieve your courses info
async function getMyCourses() {
  let response = await
  fetch("https://www.udemy.com/api-2.0/users/me/subscribed-courses/",  {
    "headers": {
         "authorization": "YOUR_AUTHORIZATION_CODE"
    }
  });

  let data = await response.json();
  return data;
}

From here you can see all your courses Id.

Please can you help in downloading udemy courses?

@bissaka what I've done to download one that was stuck in "building course data":

download the js file attached on https://github.com/FaisalUmair/udemy-downloader-gui/issues/571#issuecomment-823997132
git clone --depth=1 https://github.com/FaisalUmair/udemy-downloader-gui
git checkout v1.8.2
replace the assets/js/app.js file by the one downloaded in step (1)
npm run build-linux
./dist/Udeler-1.8.2.AppImage

thanks, worked for me

@micalevisk I did same step. but got this error. I do not know why, if you know please tell me. Many thanks

I did the same step and builded AppImage. After launching the app I tried to download the course. Course has downloaded, but the videos from other sections (captures) has height 3-5 kb.
1-st capture screen - https://i.imgur.com/0KgQGO8.png
2-nd capture screen - https://i.imgur.com/cnhpIoK.png

@micalevisk can you confirm that your downloaded content is correct/not corrupted?

@micalevisk can you confirm that your downloaded content is correct/not corrupted?

they were corrupeted! lol my bad .-. idk what to do by now

I have done everything i know so far.does anyone know other options to download from udemy.im using a business account so udemey downloder dosent work.my business account going to end so im badly need a way to do this..really appreciate all your help.thanks.

@iam-malithmax have you tried to use extensions like Video DownloadHelper?

@iam-malithmax have you tried to use extensions like Video DownloadHelper?

Such solutions work, but it's more than painful to backup a whole longer course with a lot of videos with this. Especially for courses that get updated more often, this is quite a grind... Or do I overlook an option to download a whole course?
Udeler is quite perfect and I guess it's most probably something small that blocks us - isn't it? Unluckily I don't have the skills in this area to fix it myself, but thank everybody in advance who is capable of getting this done.

I support @arjanv also with a little bounty: Next to his 50 EUR I'll donate/PayPal 10$ to the person who fixes the current problem.

@iam-malithmax have you tried to use extensions like Video DownloadHelper?

I just tested it now.dosent work with business account.video sizes only showing in small bytes.anyway thanks for the reply man..

@iam-malithmax have you tried to use extensions like Video DownloadHelper?

A have tried Firefox addon of Video DownloadHelper and it's not working. VideoDownloadHelper downloading videos only from first capture (section). Videos from other sections not downloading

let's each contribute $10 USD to the person who can fix it. Therefore someone might come out and fix it for us

Guys, I'm a developer, I need to download a few courses I recently bought. So I developed an Electron App for doing this, sadly I built the app but the API (backend), this is:
Where the app gets the URL´s for get the videos is simply not working, in the image you can see in the bottom, that the download_url says null, that means that there is not link for download, that is why nothing works 😢
So the main error, is in Udemy API, hope they fix it soon, but for now, we can not do anything

If you have any questions just let me now, I like to help :D

Even if the mp4 video is downloaded with a plug-in, the file is corrupted

Don't think @FaisalUmair is planning to fix this

Does anyone know any other alternative way?

Guys, I'm a developer, I need to download a few courses I recently bought. So I developed an Electron App for doing this, sadly I built the app but the API (backend), this is:
Where the app gets the URL´s for get the videos is simply not working, in the image you can see in the bottom, that the download_url says null, that means that there is not link for download, that is why nothing works 😢
So the main error, is in Udemy API, hope they fix it soon, but for now, we can not do anything

If you have any questions just let me now, I like to help :D

The 'src' link of the course videos is available. You should see an asset object which include a media_source array. Great frontend you should just handle the src link and use a function to download the files. There are all video src for different qualities.

There's nothing to fix here guys....The ride is over.....DRM has come to Udemy.....


Npm: Cache the results of npm view

Cache the results of the npm view call to improve performance in scans with many projects that have many overlapping dependencies.

The failing ClearlyDefined test is unrelated to the change.


Cannot install from script

Script
nginx-proxy-manager
Describe the bug
Goes through the process, creates the container, starts working in the container, then gives this error:
[error] 195 NULL: pct exec $_ctid -- sh -c "wget --no-cache -qO - $_raw_base/setup.sh | sh"
It then destroys the container.
System info:

Proxmox Version: 7.1-10

Exactly the same bug stops me on a proxmox 7.0 server

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh:
pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh"
I'm sure there's a more proper way to do it but this worked for me.

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh: pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh" I'm sure there's a more proper way to do it but this worked for me.

Thanks.
I ran:

wget https://raw.githubusercontent.com/ej52/proxmox/main/lxc/nginx-proxy-manager/create.sh
Edited the file: nano create.sh > and the latest line I edited as you suggested.
chmod +x create.sh
bash create.sh --id 105 --bridge vmbr0 --cores 2 --disksize 4G --hostname web01 --memory 512 --storage local-zfs --templates local
In the bash I pressed 1 (recommended option).

I had the same problem on PE7.1-7. It boiled down to the setup script not having the rust compiler in PATH. I fixed it by editing the last line of create.sh:
pct exec $_ctid -- sh -c "wget --no-cache -qO - https://sh.rustup.rs | sh; source $HOME/.cargo/env; wget --no-cache -qO - $_raw_base/setup.sh | sh"
I'm sure there's a more proper way to do it but this worked for me.

This is still an issue as of May 18th. downloading and manually editing the create.sh script per the instructions from akic100 worked a treat. LXC now up and running. FWIW mine is using 1.28GB of space...


Feature Request: modified authorized keys

Description
Add an option to modify, what is written to the authorized_keys, so gitea can be used with the same key, which is also used for accessing the server.
An example for such a modification is this
command="if [ -t 0 ]; then bash; elif [[ $SSH_ORIGINAL_COMMAND =~ ^(scp|rsync|mysqldump).* ]]; then eval $SSH_ORIGINAL_COMMAND; else /home/<username>/gitea/gitea serv key-1 --config='/home/<username>/gitea/custom/conf/app.ini'; fi",no-port-forwarding,no-X11-forwarding,no-agent-forwarding ssh-...

this is useful for shared hosting scenarios like the guide by @luto, where i copied this line from.
I would imagine an option
SSH_RESTRICT: %(giteacmd)s
and used like this
SSH_RESTRICT: if [ -t 0 ]; then bash; elif [[ $SSH_ORIGINAL_COMMAND =~ ^(scp|rsync|mysqldump).* ]]; then eval $SSH_ORIGINAL_COMMAND; else %(giteacmd)s ; fi",no-port-forwarding,no-X11-forwarding,no-agent-forwarding
for shared hosting, generating a line as describe above

You should consider using the AuthorizedKeysCommand gitea keys - parse the output and adjust it as per necessary.
See https://docs.gitea.io/en-us/command-line/#keys
Either that or you can parse the output of gitea's authorized_keys file.
Take a look at the techniques used in bozaro/git-as-svn

You can also shadow the gitea binary - so that when gitea serv is called you can do what you like with it.

You should consider using the AuthorizedKeysCommand gitea keys - parse the output and adjust it as per necessary.
See https://docs.gitea.io/en-us/command-line/#keys
This is sadly of the table, as this is a shared host; so no root for me.
But I will have a look at the other solutions.

Shadowing the Gitea binary and running that is probably the easiest thing to do.
In your Shadow you need to exec gitea to get it to refer to the shadow in the authorized_keys etc.

To be more explicit on how to shadow gitea - here's the technique:

Assuming you have gitea started by running /app/gitea/gitea
Move the original gitea from /app/gitea/gitea to /app/gitea/gitea.shadow
Create a new bash script /app/gitea/gitea: ```bash
#!/bin/bash

############################################################
Gitea shadow script

Detects calls to gitea serv and expands the allowed SSH_ORIGINAL_COMMANDS
############################################################
SHADOWED_GITEA_PATH="/app/gitea/gitea.shadow"
KEY="$2"
SUBCOMMAND="$1"
OUR_SHELL_PATH="/app/gitea/gitea"
If we're not running serv just pass straight to gitea
if [ "$SUBCOMMAND" != "serv" ]; then
exec -a "$OUR_SHELL_PATH" "$SHADOWED_GITEA_PATH" "$@"
fi
OK this is a call to gitea serv - i.e. from authorized_keys
So now we need to check if the original command is in our set of an additional allowed commands
Split the Original command in to its separate components
SSH_ORIGINAL_COMMANDS=($SSH_ORIGINAL_COMMAND)
if [ -n "$SSH_ORIGINAL_COMMAND" ] && [ "${SSH_ORIGINAL_COMMANDS[0]}" =~ ^(scp|rsync|mysqldump) ] ; then
################################################################
# THIS IS YOUR RESPONSIBILITY TO CHECK THAT THIS IS THE RIGHT THING TO DO
# I'm not sure the eval is quite right here it might need to be exec
################################################################
eval $SSH_ORIGINAL_COMMAND
else
exec -a "$OUR_SHELL_PATH" "$SHADOWED_GITEA_PATH" "$@"
fi
* Finally make sure that you only ever call `/app/gitea/gitea` and never the shadow.

Apart from this I cannot see another way to safely or reliably add this functionality, so with that I'll close this issue.


Added Dockerfile

Resolves #486

@KyleMiles Hey, why does it need --privileged? It would be better to explicitly choose just and only those capabilities that are required - guess that --cap-add SYS_PTRACE might be needed (however I am not sure).
See https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities

You're right; I just pushed a commit pulling the --privileged flag.  I was over-providing permissions for people so that the container could act as, in effect, a full dev machine.  A better default is probably to only allow what's needed to McSema to run, and it's easy to add any run options for whatever extra it is that you need.
Also added building information to the README.

Can we use this for testing a different OS in travis? Also, can you confirm that using mcsema-disass from within the container works, specifically in the case of protobuf versions?


Split workflow, add git tagging on merge

This changeset does a couple of things:

Splits the existing github actions workflow into multiple jobs. This allows us to run unit tests on every push (including to branches), and the functional test (and full server build) only on merges to master. This rough flow is pretty much what we were trying to evaluate with this whole branch of work
Adds another job to the workflow that automatically applies semantic versioning via git tags. This is facilitated via https://github.com/anothrNick/github-tag-action, and there's some documentation there of the options available. As written now, it will start at version 1.0.0, incrementing minor versions by default, unless the user specifies otherwise. This was tested in https://github.com/replicahq/gh-release-actions-test

Some open questions:

I was unable to find a way to factor out the common setup steps required for the two jobs that involved running tests (e.g. logging into our gcp account). It might be possible to do it by creating an internal github action (not quite the same thing as a workflow), but I didn't get a chance to look into it
Details around versioning: I don't think it matters a ton what versioning scheme we use, and so I'm happy to pick this one off the shelf and not have to implement anything custom.

Next steps after this change will be to add a workflow step (or job) that uses the version calculated here to add a "prod" docker tag.
cc @replicahq/router

@JacobHayes thanks for the discussion! I was able to borrow from the action that we were using to come up with a way to compute our own integer versions without too many hiccups, implemented here. I did appreciate the alternative suggestions, but I thought that minimally-incrementing ints would suit our purposes well. And, I suppose, I suspect that we may be parsing these more in the context of future work, and thought it would be helpful to have some practice with that.
Going to request your review for final approval, thanks again!


Updated Bower.json

Fixed and updated bower.json so you're able to "bower install react-nvd3"

Awesome, thanks! Getting this in.


Fix issue #275

I added a small bit to the basic ghcid test. Hope that's okay :)

I confirm I am licensing this contribution under all licenses that apply to this project (see LICENSE) and that I have no patents covering my contribution.

A small test is awesome! Thanks so much, a very nice fix.


NAN problem

     Have you tested KPConv only in tf 1.12?Which cuda version do you use?
     I also had a NAN problem when training npm data. My environment is tf 1.8 (cuda 9.2). Can you give me some advice?

The configuration we tested are listed in INSTALL.md. The version of tensorflow should not be a problem except for 1.13, as CUDA 10 seem to have problems with RTX 2080ti.
In your case, I think the problem come from your version of CUDA. Tensorflow 1.8 does not support CUDA 9.2, you should use CUDA 9.0 instead.

thank you for your reply. I installed tensorflow 1.8 (cuda 9.2) from the source code.😢

Thank you for your reply, I will try it.😊


Updated dependencies to address dio vulnerabilities.

Dio had a vulnerability https://github.com/advisories/GHSA-9324-jv53-9cc8
I bumped up the pubspec, things seem to be working fine. Please update dio ASAP.

Despite what the icon says, this was merged (manually). Thanks for the tip, I wasn't aware of the Dio vulnerability. This change is rolling out on Pub as 0.0.6.


Update structure, examples, and added max feature number.

Moved some advanced topics down the list.
Added info on max number of features.
Improved example for user recommendations.

Hi @LuisCabrer, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (luisca). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


Add switch to manage File[/var/run/redis] on debian systems

The existence of /var/run/redis causes the startup of redis-server via
systemd to fail on debian systems with redis-server >= 3.2.8-2.
The default unit file for redis-server in debian jessie-backports
contains RuntimeDirectory=redis, see this commit.
This causes systemd to attempt to create /var/run/redis, which fails,
since puppet already created it:
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[1]: Starting Advanced key-value store...
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[24311]: Failed at step RUNTIME_DIRECTORY spawning /bin/run-parts: File exists
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[24312]: Failed at step RUNTIME_DIRECTORY spawning /usr/bin/redis-server: File exists
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[1]: redis-server.service: control process exited, code=exited status=233
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[1]: Failed to start Advanced key-value store.
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[1]: Unit redis-server.service entered failed state.
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[1]: redis-server.service holdoff time over, scheduling restart.
May 18 14:12:12 po-redis-gitlab-qa-bs01 systemd[1]: Stopping Advanced key-value store...

Additionally the $var_run_redis_mode is wrong as well, since redis-server
sets it to 0755 and the module changes it back to 2755.
Also see issue #150, the same applies here - puppet changes the mode of
/var/run/dir and refreshes Service[redis-server], which then fails
to restart because systemd can't create the directory.

Rebased in #204 to fix tests

That change, as it has been merged, will actually break the module for other users using debian jessie without backports. The unit file there is still a simple one without Pre/PostRun and RuntimeDirecotry directives.
I went with the switch instead of detection because it is not feasible to attempt to properly detect a backports- and default version.

The acceptance tests run with the package from Jessie and are working fine, can you show me the error?

Huh, I guessed it would break compatibility because of the difference in the unit file, which for default jessie hosts (without backports) is this:
[Unit]
Description=Advanced key-value store
After=network.target

[Service]
Type=forking
ExecStart=/usr/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/bin/redis-cli shutdown
Restart=always
User=redis
Group=redis

[Install]
WantedBy=multi-user.target

But if the tests worked fine I'll withdraw that - thanks for the quick merge!


Application Outage Report

The system needs to be able to produce the data for an application outage report. What is the impact to an application going down, retired, deployed/updated, or restarted?

Closing this for now.  This is still a target of the project, but not something we are working on directly right now.


Feasibility of Few shot segmentation (specifically task 3)

Hi JunMa,
Maybe this is not the correct thread for asking but I'm working on this segmentation benchmark and my supervisor plan to extend this for the individual project. Do you think this task of few-shot learning (maybe a transfer from NSCLC or similar dataset) is feasible because as far as know (correct me if I'm wrong) few-shot learning in segmentation in the medical domain is still not well explored?
Or if you have any suggesting method in mind that I can start with?
Thanks

Hi @Tianyangg ,
Great question!

Do you think this task of few-shot learning (maybe a transfer from NSCLC or similar dataset) is feasible?

For lung segmentation, we have obtained promising results. However, for infection, it still remains a challenging open question.
What we have done is only a very basic baseline, there are several methods that could try, e.g., fine-tune, self-supervised learning, and so on.
Best,
Jun

Hi,
Thanks for your advice, we'll take a look at methods like transfer learning stuff.
We really appreciate your work. Thank you.
Regards,
Tian


Cant Input API Token

Describe the bug
A clear and concise description of what the bug is.

After Installing and Enabling de Plugin I am not prompted to Login the Token. I also cant access the Setup button as it appears a crossed circle indicating it cant be accessed.
Even though i havent input my token, a green check mark appears besides the setup gear button.
I tried Uninstalling and istalling again with no success.
Thats it.

To Reproduce
Steps to reproduce the behavior:

Followed your Documentation Step 1 Install Plugin successfully.
I had the Problem on Step 2 "Setup the API Token". I didnt get a Pop Up Asking me to input the API Token.
Not Possible to Click the Setup button.

Expected behavior
Get a Pop Up asking me to Access the API Token. Or being able to click and access the Setup Gear.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

Plugin Version [e.g. 1.13.0]
Obsidian Version [e.g. 1.7.7]

Additional context
Add any other context about the problem here.

@BeAwaken I had the same problem, and in my case, even though clicking left didn't work, the plugin accepted a new API when
I clicked right. It only kind of worked because some filters are still broken in my case, even though I changed nothing in them.

Duplicate of https://github.com/jamiebrynes7/obsidian-todoist-plugin/issues/342


Vue Router hooks

Hi there,
How i can use beforeRouteUpdate and beforeRouteLeave hooks using vue-facing-decorator?

try @Hook

https://facing-dev.github.io/vue-facing-decorator/#/en/class-component/hooks/hooks?id=for-other-names

i've tried something like that:
import { ComponentBase, Ref, Watch, Hook, Vue } from 'vue-facing-decorator'
@ComponentBase({})
export default class OneEventPageComponent extends Vue {
@Hook
beforeRouteLeave(to: any, from: any, next: any) {
console.log(to)
}
}
and beforeRouteLeave isn't been handled when i tried to leave from route.

Log the result of toNative(OneEventPageComponent) please.

I have experienced this issue.
It may be because the component is not the main component specified in the router definition.
If you move your @Hook declaration it should work.

@NikitaPoplavskiy Just wanted to mention another possible solution here. Have you been able to resolve this for your context?
@Component({
    options: {
        beforeRouteUpdate (this: ExampleComponent, to, from, next) {
            // do stuff
        }
    }
})
export default class ExampleComponent extends Vue {}