Error requiring Flux from GalacticOptim

I am trying to use DiffEqFlux. However, when loading this package the following warning is raised:
julia> using DiffEqFlux
┌ Warning: Error requiring `Flux` from `GalacticOptim`
│   exception =
│    LoadError: UndefVarError: ForwardDiff not defined
│    Stacktrace:
│      [1] top-level scope
│        @ ~/.julia/packages/GalacticOptim/KNMxq/src/solve/flux.jl:74
│      [2] include(mod::Module, _path::String)
│        @ Base ./Base.jl:386
│      [3] include(x::String)
│        @ GalacticOptim ~/.julia/packages/GalacticOptim/KNMxq/src/GalacticOptim.jl:4
│      [4] top-level scope
│        @ ~/.julia/packages/Requires/7Ncym/src/Requires.jl:40
│      [5] eval
│        @ ./boot.jl:360 [inlined]
│      [6] eval
│        @ ~/.julia/packages/GalacticOptim/KNMxq/src/GalacticOptim.jl:4 [inlined]
│      [7] (::GalacticOptim.var"#30#69")()
│        @ GalacticOptim ~/.julia/packages/Requires/7Ncym/src/require.jl:99
│      [8] err(f::Any, listener::Module, modname::String)
│        @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:47
│      [9] (::GalacticOptim.var"#29#68")()
│        @ GalacticOptim ~/.julia/packages/Requires/7Ncym/src/require.jl:98
│     [10] withpath(f::Any, path::String)
│        @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:37
│     [11] (::GalacticOptim.var"#28#67")()
│        @ GalacticOptim ~/.julia/packages/Requires/7Ncym/src/require.jl:97
│     [12] listenpkg(f::Any, pkg::Base.PkgId)
│        @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:20
│     [13] macro expansion
│        @ ~/.julia/packages/Requires/7Ncym/src/require.jl:95 [inlined]
│     [14] __init__()
│        @ GalacticOptim ~/.julia/packages/GalacticOptim/KNMxq/src/GalacticOptim.jl:24
│     [15] _include_from_serialized(path::String, depmods::Vector{Any})
│        @ Base ./loading.jl:674
│     [16] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
│        @ Base ./loading.jl:760
│     [17] _tryrequire_from_serialized(modkey::Base.PkgId, build_id::UInt64, modpath::String)
│        @ Base ./loading.jl:689
│     [18] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
│        @ Base ./loading.jl:749
│     [19] _require(pkg::Base.PkgId)
│        @ Base ./loading.jl:998
│     [20] require(uuidkey::Base.PkgId)
│        @ Base ./loading.jl:914
│     [21] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:901
│     [22] eval
│        @ ./boot.jl:360 [inlined]
│     [23] eval_user_input(ast::Any, backend::REPL.REPLBackend)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:139
│     [24] repl_backend_loop(backend::REPL.REPLBackend)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:200
│     [25] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:185
│     [26] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:317
│     [27] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:305
│     [28] (::Base.var"#874#876"{Bool, Bool, Bool})(REPL::Module)
│        @ Base ./client.jl:387
│     [29] #invokelatest#2
│        @ ./essentials.jl:708 [inlined]
│     [30] invokelatest
│        @ ./essentials.jl:706 [inlined]
│     [31] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│        @ Base ./client.jl:372
│     [32] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:302
│     [33] _start()
│        @ Base ./client.jl:485
│    in expression starting at /home/gzagatti/.julia/packages/GalacticOptim/KNMxq/src/solve/flux.jl:74
└ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:49

I am using the following packages:
  [6e4b80f9] BenchmarkTools v1.0.0
  [31a5f54b] Debugger v0.6.8
  [aae7a2af] DiffEqFlux v1.41.0
  [0c46a032] DifferentialEquations v6.17.1
  [6a86dc24] FiniteDiff v2.8.0
  [587475ba] Flux v0.12.4
  [f6369f11] ForwardDiff v0.10.18
  [a75be94c] GalacticOptim v2.0.0
  [7073ff75] IJulia v1.23.2
  [bdcacae8] LoopVectorization v0.12.47
  [429524aa] Optim v1.3.0
  [91a5bcdd] Plots v1.16.6
  [e88e6eb3] Zygote v0.6.14
  [37e2e46d] LinearAlgebra

This warning does not seem to affect the usability of DiffEqFlux, but I don't if under the hood there might be any problem. Also, I am not sure what I could do to fix it. Any help would be appreciated.

Thanks! It does indeed fix the issue on my side.

Awesome. Patch tagged.

I am afraid that the fix might have introduced another bug as a code that was previously running now fails.
This example comes straight from the documentation:
using DiffEqFlux, DifferentialEquations, Plots

u0 = Float32[2.; 0.]
datasize = 30
tspan = (0.0f0,1.5f0)

function trueODEfunc(du,u,p,t)
    true_A = [-0.1 2.0; -2.0 -0.1]
    du .= ((u.^3)'true_A)'
end
t = range(tspan[1],tspan[2],length=datasize)
prob = ODEProblem(trueODEfunc,u0,tspan)
ode_data = Array(solve(prob,Tsit5(),saveat=t))

dudt2 = Chain(x -> x.^3,
             Dense(2,50,tanh),
             Dense(50,2))
p,re = Flux.destructure(dudt2) # use this p as the initial condition!
dudt(u,p,t) = re(p)(u) # need to restrcture for backprop!
prob = ODEProblem(dudt,u0,tspan)

function predict_n_ode()
  Array(solve(prob,Tsit5(),u0=u0,p=p,saveat=t))
end

function loss_n_ode()
    pred = predict_n_ode()
    loss = sum(abs2,ode_data .- pred)
    loss
end

loss_n_ode() # n_ode.p stores the initial parameters of the neural ODE

cb = function (;doplot=false) #callback function to observe training
  pred = predict_n_ode()
  display(sum(abs2,ode_data .- pred))
  # plot current prediction against data
  pl = scatter(t,ode_data[1,:],label="data")
  scatter!(pl,t,pred[1,:],label="prediction")
  display(plot(pl))
  return false
end

# Display the ODE with the initial parameter values.
cb()

data = Iterators.repeated((), 1000)
Flux.train!(loss_n_ode, Flux.params(u0,p), data, ADAM(0.05), cb = cb)

It is raising the following error:
ERROR: UndefVarError: update! not defined
Stacktrace:
 [1] update!(opt::ADAM, xs::Params, gs::Zygote.Grads)
   @ GalacticOptim ~/.julia/packages/GalacticOptim/8aGiO/src/solve/flux.jl:75
 [2] macro expansion
   @ ~/.julia/packages/Flux/0c9kI/src/optimise/train.jl:104 [inlined]
 [3] macro expansion
   @ ~/.julia/packages/Juno/n6wyj/src/progress.jl:134 [inlined]
 [4] train!(loss::Function, ps::Params, data::Base.Iterators.Take{Base.Iterators.Repeated{Tuple{}}}, opt::ADAM; cb::var"#3#5")
   @ Flux.Optimise ~/.julia/packages/Flux/0c9kI/src/optimise/train.jl:99
 [5] top-level scope
   @ REPL[19]:1

I guess the code should have got the update! function inside of the @require block from the signature update!(opt, x, x̄), but I am not sure why it did not do that even though I am using the correct version of ForwardDiff.
My environment is:
  [6e4b80f9] BenchmarkTools v1.0.0
  [31a5f54b] Debugger v0.6.8
  [aae7a2af] DiffEqFlux v1.41.0
  [0c46a032] DifferentialEquations v6.17.1
  [6a86dc24] FiniteDiff v2.8.0
  [587475ba] Flux v0.12.4
  [f6369f11] ForwardDiff v0.10.18
  [a75be94c] GalacticOptim v2.0.1 `https://github.com/SciML/GalacticOptim.jl.git#master`
  [7073ff75] IJulia v1.23.2
  [bdcacae8] LoopVectorization v0.12.47
  [429524aa] Optim v1.3.0
  [91a5bcdd] Plots v1.16.6
  [e88e6eb3] Zygote v0.6.14
  [37e2e46d] LinearAlgebra

@JuliaRegistrator register()
Double hotfix...

Sorry about that. Messy but it should be good now.

Unfortunately, I am still facing problems with the example above.
Using the debugger, I have narrowed down the error to the expression in /home/gzagatti/.julia/packages/Flux/0c9kI/src/optimise/optimisers.jl:181
@. mt = β[1] * mt + (1 - β[1]) * Δ

I think this error is being caused by the fact that the gradient Δ contains the gradient for both elements Flux.params(u0,p). On the other hand, the momentum mt only contains the value for the first parameter.
On line /home/gzagatti/.julia/packages/GalacticOptim/pu2C1/src/solve/flux.jl:87, you are taking only the first value of xs. Shouldn't you take the whole vector instead? I tried to modify the function in this direction but got a StackOverFlow error:
function Flux.update!(opt, xs::Flux.Zygote.Params, gs)
    Flux.update!(opt, xs, gs)
end

I am not sure how to proceed. Is it the case of modifying the call in the example or is the source code that needs review?

That code shouldn't even exist in the library now?

Just tried the latest releases and it seems fine now 👍 . Let me know if you have any more issues.

With v.2.0.3 the example code is finally running in my machine. I wrote the issue above about the same time that you released this new version. It was a good exercise in learning how to use the debugger in Julia :smile: . Thanks for taking care of this so fast.

Awesome, good to hear. Sorry about the botched release


Mui Chip missing colorError in chipClasses.d.ts

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
tslint error when trying to styleOverrides on colorError, example
    MuiChip: {
      styleOverrides: {
        colorError: {
          backgroundColor: "rebeccapurple"
        }
      }
    }

Expected behavior 🤔
Be able to style the colorError as well as other supported CSS classes from Mui.
According to Mui's documentation, the color with value error (as well as other values) are supported

However, in the MuiChip's chipClasses.d.ts, only colorPrimary and colorSecondary were available.

Steps to reproduce 🕹
Go to this sandbox https://codesandbox.io/s/mui-chip-missing-colorerror-definition-n891uf
The styleOverrides works but TypeScript is throwing error because the definition is not there.

Steps:

Create your custom Mui theme object
Perform styleOverride on Chip component, on color "Error" (or anything that's neither primary nor secondary)
Render a Chip
Observe the editor throwing error on colorError because it is not defined

Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  System:
    OS: Linux 5.13 Ubuntu 21.10 21.10 (Impish Indri)
    CPU: (16) x64 Intel(R) Xeon(R) Silver 4108 CPU @ 1.80GHz
    Memory: 2.18 GB / 15.33 GB
    Container: Yes
    Shell: 5.1.8 - /bin/bash
  Binaries:
    Node: 14.19.2 - ~/.config/nvm/versions/node/v14.19.2/bin/node
    Yarn: 1.22.18 - ~/.config/nvm/versions/node/v14.19.2/bin/yarn
    npm: 6.14.17 - ~/.config/nvm/versions/node/v14.19.2/bin/npm
  Managers:
    Apt: 2.3.9 - /usr/bin/apt
    Maven: 3.6.3 - /usr/bin/mvn
    pip2: 20.3.4 - ~/.local/bin/pip2
    pip3: 20.3.4 - /usr/bin/pip3
  Utilities:
    Make: 4.3 - /usr/bin/make
    GCC: 11.2.0 - /usr/bin/gcc
    Git: 2.32.0 - /usr/bin/git
  Virtualization:
    Docker: 20.10.12 - /usr/bin/docker
  IDEs:
    Nano: 5.6.1 - /usr/bin/nano
    VSCode: 1.68.0 - /home/eto/.vscode-server/bin/4af164ea3a06f701fe3e89a2bcbb421d2026b68f/bin/remote-cli/code
    Vim: 8.2 - /usr/bin/vim
  Languages:
    Bash: 5.1.8 - /usr/bin/bash
    Java: 1.8.0_312 - /usr/bin/javac
    Perl: 5.32.1 - /usr/bin/perl
    Python: 2.7.18 - /usr/bin/python
    Python3: 3.9.7 - /usr/bin/python3
  Browsers:
    Chrome: 102.0.5005.61
    Chromium: 102.0.5005.115
    Firefox: 101.0.1

@totszwai we can add it 👍 Would you like to prepare a PR for it? Note that you can always use:
    MuiChip: {
      styleOverrides: {
        root: ({ ownerState }) => {{
          ...(ownerState.color === 'error' && {
            backgroundColor: "rebeccapurple",
         })
        }
      }}
    }

We are likely going to be moving towards this approach in v6. Take a look at this codesandbox - https://codesandbox.io/s/mui-chip-missing-colorerror-definition-forked-ljwtch?file=/demo.tsx

@mnajdova if no one is working on it I could do it. Adding colorError to chipClasses.d.ts should be enough?
I guess while I'm on it I could also add colorInfo, colorSuccess and colorWarning since according to the Chip API all
those values are supported.

Note: This issue may be applicable many other Mui components.

@mnajdova if no one is working on it I could do it. Adding colorError to chipClasses.d.ts should be enough?
I guess while I'm on it I could also add colorInfo, colorSuccess and colorWarning since according to the Chip API all those values are supported.

We need to add all: colorError, colorInfo, colorWarning etc. This would be applicable on components that have ComponentNamePropsColorOverrides.

Hey,
I would like to work on this issue if no one else is working on it.
Thanks!

@mnajdova if no one is working on it I could do it. Adding colorError to chipClasses.d.ts should be enough?
I guess while I'm on it I could also add colorInfo, colorSuccess and colorWarning since according to the Chip API all those values are supported.

We need to add all: colorError, colorInfo, colorWarning etc. This would be applicable to components that have these colors in the propTypes.color & generally support the color (for example have dynamic checks for applying colors).

Would it make sense to have a common interface ColorClasses which ChipClasses, IconButtonClasses, etc. can extend to reduce the repetition?  Or is it more desirable to keep each component isolated?

@mnajdova if no one is working on it I could do it. Adding colorError to chipClasses.d.ts should be enough?
I guess while I'm on it I could also add colorInfo, colorSuccess and colorWarning since according to the Chip API all those values are supported.

We need to add all: colorError, colorInfo, colorWarning etc. This would be applicable to components that have these colors in the propTypes.color & generally support the color (for example have dynamic checks for applying colors).

Would it make sense to have a common interface ColorClasses which ChipClasses, IconButtonClasses, etc. can extend to reduce the repetition? Or is it more desirable to keep each component isolated?

In my opinion, keeping each component isolated would be the desirable way, as we have different color classes for different components.
To take an example, we have colorPrimary, colorSecondary which are common color classes for most of the components like IconButtonClasses, ButtonClasses, AppBarClasses, and many more. But if we take a look at TabClasses, we don't have former color classes available in the corresponding component. The same goes for the other color classes like colorError, colorInfo, colorWarning, that all color classes are not available for a specific component at once.


Ability to specify which model hook the plugin runs on

Currently, the slug building is run on pre-validate. What about if this is the default, but one could overwrite this via config option if needed?
The usecases for this are esoteric, it's true. I'd be more than happy to provide a PR.

I'd accept it.

Ok cool, I submitted a PR here: https://github.com/mindblaze/mongoose-url-slugs/pull/29


Update game_metadata.proto

Codecov Report

Merging #84 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #84   +/-   ##
=======================================
  Coverage   85.88%   85.88%
=======================================
  Files          73       73
  Lines        2968     2968
  Branches      433      433
=======================================
  Hits         2549     2549
  Misses        360      360
  Partials       59       59


List of dashboards where India Map with states should be changed to filled map. Adding colour for team's reference.

Desired Output

List of Dashboards where this visual is required-
NISHTHA- Program Status
ETB & E-content- ETB Program
PM POSHAN- States Onboarded
Micro Improvement Program- Micro Improvement Program
Colour Information
Yes- 33,113,181
No- 239,243,255

Changed to filled map and updated the colors which are provided.


forwardStep unwanted delay

Hello, I've noticed that you added a delay in the performOneStep(bool count_up, bool blocking) function with the usage of yield_if_supported(); However, it significantly slows down the stepping motion of the motor when used in a loop. I think instead of using vTaskDelay(1) you can alternatively use the yield() call in order to yield to higher priority tasks. This way, you won't be blocking any tasks and the motor runs faster. If anyone wanted to use a delay, they can use the non-blocking version and implement a while loop themselves.

Thanks for the proposal. I have not known the yield() function before.
I have included this in the 0.25.4, which is already released to github.
What I do not understand actually, is the relation to "significantly slowing down the stepping motion". The blocking means, that it will only return, after the step has been done. Consequently it has to busy-wait. The yield() and the vTaskDelay() only tells the OS, that other tasks can be processed while waiting. In this regard, perhaps the vTaskDelay() may even better, because lower priority tasks will perhaps run, which for yield() I am not sure. And the vTaskDelay() - and I haven't looked up the docs - should push the task to sleep and let others run. But still, why is this impacting the stepping motion ?

Yes, I don't know what is your intended use case for this function in this library, but I am using it for a scissor mechanism to go forward until it touches an object. Fot that regard, I can't use the moveTo function since I need really fine control but I've been calling this function inside a while loop with hunderds of microseconds of delay. After I updated my library, I noticed the motor slowing down greately. So, I tracked this issue until here and replaced the vTaskDelay with yield. It works better but yield can behave quite differently sometimes. So it is better to leave it like the old version where it gets stuck in the loop. As I stated in another issue, sepersting the functionality would be best to cover all usage cases, since I was able to use vTaskDelay whenever I wanted to after making the motor step or using the unblocking version of the forwardStep. But it is up to you to implement this or not. I just changed my version of the library.

That's the funny thing, I do not have a use case for this function. It was just added as request from you. If the yield() does not work well for you, then I can remove it again. No problem

Oh my god, thanks man! 😊
I'm your number one fan hahaha

I'm using your library for this mechanism and some other things.

Thanks for the picture. Always nice to see the application for what the lib is used for.
The v0.25.5 has the yield() removed and old behavior is back. Sorry for the inconvenience


Feature Request: Capacity to query if a feature is enabled from js

I found myself working on some features related to js client side code that requires to know if a feature was enabled or not, I know it's easy to get a quick and dirty approach with erb.
Code draft
var Flipper = (function(){
  var features = <%= @flipper.features.map {|f| {f.name => (f.state.eql? :on)} }.reduce(:merge).to_json.html_safe %>
  return {
    features: features
  };
}());

But what if there's other way to do it using a js client to query the flipper API that is already a WIP according to what i saw.

Related to: #130

It would have to be a locked down API, not the API that is in the works, as that one is full access to everything, which is not what you want from a security perspective (ie: someone querying from js what are all the features and which actors are enabled for them).
Also, I wouldn't do what you are doing as that would require N+1 network calls where N is the number of features as it currently takes 1 network call to get the enabled state per feature. I wouldn't check state either. Instead use Feature#enabled? as that can take an actor (like current_user) to allow for partial rollouts.
I'd recommend just adding an endpoint where you can request the enabled state of one or more features:
# request something like
GET /features?name[]=first&name[]=second

# response something like:
features = params[:name].map { |name| feature[name] }
features = features.inject({}) { |hash, feature| hash[feature.key] = feature.enabled?(current_user); hash }.to_json

# json would look like this
{
  "first": false,
  "second": true,
}

Or just doing the same in JS.
var EnabledFeatures = <%= features.inject({}) { |hash, feature| hash[feature.key] = feature.enabled?(current_user); hash }.to_json %>

Thoughts?

Good point, this is closer to what I'm looking for.
Lets close this, since there is a good approach using a partial.


Upgrade Hapi Fhir to 1.5

As of 4/20/2016 Hapi Fhir 1.5 is released

Upgrading from Hapi 1.5-SNAPSHOT to 1.5


VueJS redirect to offline view

Hi,
I'm struggling to find a way to implement a redirect when the app becomes offline.
I'm working on a NetworkFirst strategy, which improves the offline state dramatically and makes it seem pretty seamless as the data is served from cache when the network request fails if the url has been requested before.
However, if the user goes to a page that has not had the data cached and the request fails, I would like to send them to an 'Sorry you appear to offline' page, which ideally would be a vue-router link, or even just showing an overlay triggered by a value from a Pinia store.
I cannot seem to use any Pinia state or vue-router's useRouter within the service worker. It's not feasible to try and pre-cache tonnes of data just on the off chance they may visit.
Is there a way this can be done?

Update:
I've started to realise, directly accessing Vue related functions isn't going to work, since the service worker is entirely separate and can be running while even the browser is closed.
Are there any other clever ways of achieving a dynamic offline page, for example I want the page to be translated, which is simple in Vue, but not when serving an offline.html file.


AnimatedOpacity + BackdropFilter with ImageFilter.blur lag on the first trigger after building the application

Open gifs in a new tab to make them full sized to see the difference:

Result of the very first hover after building of the application (with BackdropFilter):

Result of the following hovers (with BackdropFilter):

Result of the very first hover (without BackdropFilter):

The issue happens only on the first hover after building the application; The following animations will work fine and smooth. Hot restart/Hot reload do not reset the issue, you need to stop(close) the application and rebuild it to check the result again.
Code to repeat the issue:

minimal code sample
import 'dart:ui';

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool _showSomething = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Material App',
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Stack(
          children: [
            Container(
              width: 2000.0,
              height: 2000.0,
              decoration: BoxDecoration(
                color: Colors.deepPurple,
                border: Border.all(width: 10.0, color: Colors.deepPurple),
              ),
              child: Text(
                  'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'),
            ),
            Positioned(
              top: 0.0,
              left: 0.0,
              child: MouseRegion(
                onEnter: (_) => setState(() => _showSomething = true),
                onExit: (_) => setState(() => _showSomething = false),
                child: AnimatedOpacity(
                  opacity: _showSomething ? 1.0 : 0.0,
                  duration: Duration(milliseconds: 425),
                  curve: Curves.easeInOutCubic,
                  child: Container(
                    color: Colors.black.withOpacity(0.75),
                    height: 2000.0,
                    width: 2000.0,
                    child: Container(
                      width: 50.0,
                      height: 75.0,
                      child: Text(
                        'Just a text for some reason',
                        style: TextStyle(color: Colors.white),
                      ),
                    ),
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Flutter version: the latest from the Stable channel. Tested only on Windows.

Hi @kirill-21
Thanks for filing the issue.
I can notice the difference on Windows however running on macOS desktop, it is super difficult anything, animation always slowly fades away on macOS.
Reproduced the issue using the following minimal code sample

minimal code sample
import 'dart:ui';

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  bool _showSomething = false;

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Material App',
      home: Scaffold(
        backgroundColor: Colors.black,
        body: Stack(
          children: [
            Container(
              width: 2000.0,
              height: 2000.0,
              decoration: BoxDecoration(
                color: Colors.deepPurple,
                border: Border.all(width: 10.0, color: Colors.deepPurple),
              ),
              child: Text(
                  'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'),
            ),
            Positioned(
              top: 0.0,
              left: 0.0,
              child: MouseRegion(
                onEnter: (_) => setState(() => _showSomething = true),
                onExit: (_) => setState(() => _showSomething = false),
                child: AnimatedOpacity(
                  opacity: _showSomething ? 1.0 : 0.0,
                  duration: Duration(milliseconds: 425),
                  curve: Curves.easeInOutCubic,
                  child: Container(
                    color: Colors.black.withOpacity(0.75),
                    height: 2000.0,
                    width: 2000.0,
                    child: Container(
                      width: 50.0,
                      height: 75.0,
                      child: Text(
                        'Just a text for some reason',
                        style: TextStyle(color: Colors.white),
                      ),
                    ),
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Reproduced on the following channels

stable
master

reproduced
reproduced

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.0, on Microsoft Windows [Version 10.0.19042.985], locale en-US)
    • Flutter version 2.2.0 at C:\Users\Taha\Code\flutter_stable
    • Framework revision b22742018b (6 days ago), 2021-05-14 19:12:57 -0700
    • Engine revision a9d88a4d18
    • Dart version 2.13.0

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java.exe
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.6)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31313.79
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.56.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.985]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.212
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 90.0.818.56

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.3.0-13.0.pre.88, on Microsoft Windows [Version 10.0.19042.985], locale en-US)
    • Flutter version 2.3.0-13.0.pre.88 at C:\Users\Taha\Code\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2a02037b41 (7 hours ago), 2021-05-21 03:29:02 -0400
    • Engine revision 4f00f9a966
    • Dart version 2.14.0 (build 2.14.0-135.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.6)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31313.79
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.2.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[✓] VS Code (version 1.56.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.22.0

[✓] Connected device (4 available)
    • Windows (desktop)       • windows • windows-x64     • Microsoft Windows [Version 10.0.19042.985]
    • Windows (UWP) (desktop) • winuwp  • windows-uwp-x64 •
    • Chrome (web)            • chrome  • web-javascript  • Google Chrome 90.0.4430.212
    • Edge (web)              • edge    • web-javascript  • Microsoft Edge 90.0.818.56

• No issues found!

✅ : Reproducible ❌: Not Reproducible

however

The problem is not in slowly animation; The first time it works with a short delay and almost instant, then it works good

Just found that sometimes this happen even without the BackdropFilter. Problem is in the AnimatedOpacity widget

(Desktop Triage) Is this perhaps due to shader compilation jank? (The fact that it only happens on startup, and only after a rebuild makes me suspect this).

Is this perhaps due to shader compilation jank?

Don't know, but above i discribled 1 more case where this problem happens

(Desktop Triage) Is this perhaps due to shader compilation jank? (The fact that it only happens on startup, and only after a rebuild makes me suspect this).

Hi, recently i found that there is a --cache-sksl command for IOS and Android flutter applications, is there any way to do the same with Windows? Or maybe there is some workaround which will help avoiding lags on the first usage of AnimatedSwitcher with complex widget trees or with BackdropFilter?


docs: fix trusted publisher manual way

example was broken because json quotes were included in the token string

Thanks @casperdcl !


Make clang ignore type narrowing ...

... from int to char. This necessary due to some type conversion
sloppyness in VST3 code.

Now also Plugin builds and is usable in Ardour.

thx


Next release?

It's been a while since the last release, and the master branch has a fix I'd like to see released (#367).
cc #339
Could you make a release to crates.io?

As fas as I know, only @jgallagher can make a release.

@kornelski, it seems that you are not the only one waiting for a release: https://github.com/rust-lang/rust/pull/49799
:worried:

@gwenn +1 on a new release, especially since the virtual table feature has been merged in master :) I would just like to say thanks for your work, we really appreciate it. Long story short, I've had two interns here at @Devolutions (@SalahKmt and @banaru4) work on a project called siquery (system info query) that is pretty much an osquery clone written in Rust. Their internship is coming to an end this week, but they've got something functional already (https://github.com/Devolutions/siquery-rs). This wouldn't have been possible without your work on the virtual tables. Can you contact me in private at<EMAIL_ADDRESS>I would like to send a small gift as a token of gratitude.

@gwenn I believe I added you as an owner on crates.io. Can you see if you got an invite for that and can now push releases? Thanks very much for taking on everything you have!

@jgallagher I've just checked but page says: "You don't seem to have any pending invitations."
I will check again tomorrow and keep you posted.

@jgallagher rusqlite is ok now (i guess) but not libsqlite3-sys:
Uploading libsqlite3-sys v0.9.3 (file:///Users/gwen/Rust/rusqlite-clean/libsqlite3-sys)
error: api errors: this crate exists but you don't seem to be an owner. If you believe this is a mistake, perhaps you need to accept an invitation to be an owner before publishing.

Ahh my bad. Try now.

rusqlite 0.14 released


Diff view needs more UX affordance when tabs enabled

Enable tabs and open a diff view. Notice the following:

Diff view is rendered the same as a regular editor view - we should add some affordance so there is a clear difference between the two when looking at the tab header
There are no more top level diff view actions - this is fine as this space is now occupied by tabs - but this actions should be present in the secondary top level actions

@isidorn all diff actions should show up in the context menu of the tab.
I agree though that we need to add something to the label to make it clear this is a diff.

Ok now I found the actions in the context menu - and I agree it makes sense that they live there. It is just me as a user I was acustomed to have those actions in the corner. And I think it will be hard for users to find these actions in their new location.
No idea how to solve this, just saying that some users might not be happy. But it is fine for now :)

You get a LOT when you enable tabs, but you cannot have everything ;)

Not sure if HEAD is needed:

just occupies space
caps lock -> unnecessery draws attention
I think it will be obvious to users if you just show lalalal.txt <-> lalalal.txt

I leave that up to @joaomoreno if he has other ideas how to represent this:


Create space view from blueprint group

It should be possible to create a space view containing everything a selected group contains

Pretty much blocked by

#4128
since this will change what groups mean

Group concept going away in https://github.com/rerun-io/rerun/issues/4899 . Closing this.


Can't install dash-extension

Hello,
While installing dash-extension, I have the following error:
Collecting jsbeautifier<2.0.0,>=1.14.3 (from dash-extensions==0.1.1)
  Using cached jsbeautifier-1.15.1.tar.gz (75 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      Traceback (most recent call last):
        File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-rg35dvoc/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 327, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
        File "/tmp/pip-build-env-rg35dvoc/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 297, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-rg35dvoc/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 497, in run_setup
          super().run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-rg35dvoc/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 9, in <module>
      ModuleNotFoundError: No module named 'setuptools.command.test'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

I found this thread that seems related: https://stackoverflow.com/questions/78806100/no-module-named-setuptools-command-test
"It seems that their pip package is broken.
This is because setuptools.command.test was removed on 28 Jul 2024 (yesterday): https://setuptools.pypa.io/en/stable/history.html#v72-0-0"

This 100% should be fixed here so adding weight behind you issue, however to fix can find solutions here: https://github.com/pypa/setuptools/issues/4519
For poetry builds:
Add to dockerfile:
ENV PIP_CONSTRAINT=constraints.txt
RUN pip install dash-extensions==WHATEVER
RUN poetry run pip install dash-extensions==WHATEVER

Having created and copied into dockerfile file called constraints.txt which contains:
setuptools<72

Thank a lot!


migrate ciao-controller compute code to openstack compatibility package

move the compute API code out of ciao-controller and into the openstack compatibility package. Use the keystone middleware to add keystone token verification where needed.

elevating this in priority because I don't want to add any new apis without this cleanup in place.


Factor out the set theory into a separate library

Description
This introduces a dependency of the new agda-sets. I also did some refactoring as part of this, which is where most changes come from.
I've requested reviews from everyone who I think might be interested, but feel free to ignore it or just have a quick look.
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[x] Any semantic changes to the specifications are documented in CHANGELOG.md
[x] Code is formatted according to CONTRIBUTING.md
[x] Self-reviewed the diff

I'm just curious regarding https://github.com/input-output-hk/agda-sets/blob/6dd8cebbd46090b5909c13a1e8d609a44f02a5d3/src/Axiom/Set/Predicates.agda#L1: Why is --type-in-type needed here? As I understand it (with my still limited experience in Agda), this flag renders the logic inconsistent.

Yes, --type-in-type is indeed inconsistent. It's necessary there only because of stupid reasons: In Theory, the field Set has type Type ℓ → Type ℓ, but λ A → A → Type has type Type ℓ → Type (ℓ ⊔ 1).
However, I've made this issue: https://github.com/input-output-hk/agda-sets/issues/2 Resolving that will allow dropping --type-in-type. So I'd say that in this case the inconsistency is something not to worry about.

Yeah, sorry for the extra friction, but it's required for being able to use it it other projects. You can of course always add stuff in a module like Axiom.Set.Ext and then upstream it when it's done.


Release version 0.4.0 | /workflows/release-pr

Requirements for 0.4.0 release

[x] documentation repo builds with 0.4.0-pre.1
[ ] approval from @dOrgJelli (used 0.4.0-pre.1 inside own PR)
[ ] approval from @krisbitney

Closed as we'll be releasing 1.0.0 instead


Setting PageNumber as int.MaxValue

Strange worked for me before I submitted PR to PagedList project, but now in this library when I do
someQuery.ToPagedList(int.MaxValue, 100);

then I get exception:
"Count must have a non-negative value.\r\nParameter name: count"

...Can anyone confirm whether this new feature works for them?

Ok I think I understand... The version on nuget is from last year! :sob:
So we need to update the nuget version to the latest... That new version has this new feature.

@migig , you can find latest build here - https://www.nuget.org/packages/X.PagedList.Mvc/<IP_ADDRESS>-beta and here - https://www.nuget.org/packages/X.PagedList/<IP_ADDRESS>-beta

@ernado-x Cool. Looking forward to the final release. Any idea when?

@ernado-x  Weird, I can't get the ".Mvc" pakcage to install. It says it installs but does not. Does the prerelease nuget actually install for you?

@ernado-x Yep it looks like the files are in the wrong directory. So they don't get included in the project, and so it is broken... :cry:

This is not wrong folder. This assembly compiled for .NET 4.5
I tested it in VS 2015 and it work correct - reference was added without problems.

Thanks for double checking!
Strange. When I install nuget, it adds reference to the Pagelist DLL, but not the Pagedlist.MVC DLL, and so doesn't work. And it points to the wrong folder where there is nothing (content), and the dll is in the lib folder.
I wodner why it works for you and not me.

No I still get the same error "Count must have a non-negative value.\r\nParameter name: count".
I never get thsi error with the original library, so it must be something new which was added. Wish I knew how to fix it, until then I've gone back to the old version.

@migig , sorry, I cant test it until weekend. Or, if you wish, you can prepare own nuget package and I upload it to nuget.org.

@ernado-x No don't worry about it. I have no way of reproducing this problem, so there is no need to waste time on it. For now the old library works for me. I appreciate your help so far. I'll wait to see who else has this issue and then maybe we can fix it.


Update README.md for npx

Description

adding some instructions to run the command with just npx

Test plan

LGTM

interesting! I can add some more. mostly I wanted to do the PR and see if it makes sense, which it did to me.
also, I thought this is kind of a locally ran command 🤔. I wouldn't use it in ci.
also also, did I miss the memo? what's wrong with npx on ci? 😬😱

also also, did I miss the memo? what's wrong with npx on ci? 😬😱

There's nothing inherently wrong with npx. With align-deps, the issue you can run into is that we update some dependencies, and your CI randomly breaks because now you're out of sync. That's why we recommend you lock to a specific version, and bump only when you're ready.

also also, did I miss the memo? what's wrong with npx on ci? 😬😱

To make an extreme example: let's say you set up your CI with an npx command for library X, npx X-command. You then go focus on something else for 6 months. Author of library X in the meantime releases X 2.0, in which there's a breaking change in how X-command works: your CI will go instantly kaboom the moment this new version is released.

@pvinis: I've updated the README with instructions for npx. Thanks for pointing it out! Let us know if there's anything else we're missing.

awesome! thank you tido


Add plausible analytics to runs table on single dataset page

We would like to create goals to track:

clicks to any run from the single dataset page

Metadata:

which dataset ID does the run belong to
run ID
(if low lift) whether the row or run name was clicked

This will help us learn whether people are clicking in the runs table, and determine if we need more explicit ways to lead people to explore information containing in runs.

@kandarpksk FYI we removed the bullet titled "- which dataset ID does the run belong to"


mkdir error in building libcudarray

I'm getting this error:
mkdir -p ./build
make: mkdir: No such file or directory
make: *** [build/libcudarray.so] Error 1
Any ideas? Thanks!
Update: I fixed this just by doing /bin/mkdir, but now it's saying:
ld: library not found for -lcudnn ?

Hi, are you on Linux? Do you call make in the CUDArray root directory?

Nope, Mac OS X. I had to download the cuDDN libraries separately and add them to the cud/lib/ directory. All set on that front!
New issue though: in python setup.py install I'm getting
ImportError: No module named Cython.Build
Yet when I run from Cython.Build import cythonize in the IPython console directly it works (doing this through anaconda). Any ideas?

Haven't seen that before. What version of Cython do you have installed? It might be outdated.

Yep, had to update Cython. Now having yet another issue that someone already asked you here. I responded to that thread so I will close this one. Thank you for the quite replies, I really appreciate it.


implement the destruct option so automata don't hurt the world

form has the checkbox but it isn't implemented

fixed


Implement logging

Implement basic logging format which will be used throughout the project. Something like this:
https://realpython.com/python-logging/

Done. I have set up three different levels of logging:

debug

writes to console
triggered by the DEBUG level

info

writes to info.log and console
triggered by the INFO level

error

writes to error.log and console
triggered by the ERROR level

Here is how it looks like:


feat: remove training status from dialogs

Removes the training status component from the dialog modals
Doesn't fetch training status during scoring since it would not have changed.

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

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


How to fix all parameters of the nerfacto model

Hi,
Thanks for the excellent work!
I am trying to fix all parameters of a nerfacto model. Simply calling the following code after the model is loaded seems to fail in fixing the hash grid.
# fixed_model is a NerfactoModel instance
fixed_model.train(False)
for param in fixed_model.parameters():
    param.requires_grad = False

Any hints on how to make sure all parameters are fixed?
Thanks!

I'm not sure why that would fail, maybe it's being turned on again after you execute this code? you could also try more specifically turning off fixed_model.field.parameters(), maybe the recursion is breaking at the model level.


Convert line breaks when parsing multiline JSON strings

This is related to issue #10, which handles serialization of multiline VB strings to valid JSON.
Now it would be great if you could handle the parsing also, by e.g. converting "\r\n" to vbcrlf.
Many thanks in advance!

Nice suggestion.
I will implement it soon.


Tuning and Setting LPF Bandwidths

There is an LPF bandwidth tuning calibration that should occur on each power-up of the chip to tune the corner frequency.
We found that on the LMD6002D, most of the later calibration steps were quite sensitive to this calibration and poor corner calibration in general led to some nasty signal integrity issues.
This is separate from the LOFT calibration sequence.
So the desired APIs are a calibration routine for LPF corner frequency, and a separate API for selecting the LPF filter cutoff. It appears that there are high and low LPF paths, so the selection API should automagically route to the correct block.

The LMS7002M_tbb_set_filter_bw() and LMS7002M_rbb_set_filter_bw() calls select the filter baseband path based on frequency and uses the lime provided self-calibration routines.


0.4.4 not on pypi.org

Hi! The 0.4.4 release appears to be not on PyPI. Could you add it? :)

Fixed (in 0.4.5), thanks for reporting!


Restrict numpy<2 and bump actions

Ref https://github.com/JuliaAI/CatBoost.jl/issues/37
I also went ahead and bumped the actions to prevent issues down the road (since this library is less actively developed).

@ablaom Restricting numpy seemed to fix the issue

Great work and quick diagnosis! Many thanks.
Is this an issue that should be fixed at PythonCall.jl (it is already tagged here) or is this "expected behaviour" and we just merge your fix (here and in all the other effected packages)?

I did not realize that it broke PythonCall.jl. Ideally, it would be fixed there, and we could pin a minimum PythonCall.jl version.

I am struggling to reproduce the numpy issues with just PythonCall.jl. However, I can't import catboost from the created Python environment. Our error is happening when importing catboost in Python. I have tried pip and conda installing catboost, and neither one seems to work.
Python 3.12.4 | packaged by conda-forge | (main, Jun 17 2024, 10:23:07) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import catboost
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/jl_mlbQrt/.CondaPkg/env/lib/python3.12/site-packages/catboost/__init__.py", line 1, in <module>
    from .core import (
  File "/tmp/jl_mlbQrt/.CondaPkg/env/lib/python3.12/site-packages/catboost/core.py", line 45, in <module>
    from .plot_helpers import save_plot_file, try_plot_offline, OfflineMetricVisualizer
  File "/tmp/jl_mlbQrt/.CondaPkg/env/lib/python3.12/site-packages/catboost/plot_helpers.py", line 5, in <module>
    from . import _catboost
  File "_catboost.pyx", line 1, in init _catboost
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
>>>

https://github.com/catboost/catboost/issues/2671
It looks like catboost might restrict numpy to 1.x until the packages are rebuilt for numpy 2.0. I feel like we should just restrict numpy until it is resolved.


Run multiple independent Jobs sequentially

I'm trying to execute multiple jobs sequentially with the following order 1st -> 2nd -> 3rd.
One condition is mandatory: each next job must run after the previous completion.
I've tried chain also an example from chain_test.go, but no success
`func init() {
var j1, j2,j3 countJob
j1.name = "first"
j2.name = "second"
j3.name = "third"
j1.delay = 120 * time.Second
j2.delay = 15 * time.Second
    j3.delay = 10 * time.Second

chain := cron.NewChain(cron.DelayIfStillRunning(cron.DiscardLogger))
wrappedJob1 := chain.Then(&j1)
wrappedJob2 := chain.Then(&j2)
wrappedJob3 := chain.Then(&j3)

c := cron.New(cron.WithChain(cron.DelayIfStillRunning(cron.DefaultLogger)))
c.AddJob("05 11 * * *", wrappedJob1)
c.AddJob("06 11 * * *", wrappedJob2)
c.AddJob("08 11 * * *", wrappedJob2)

c.Start()

}
`

package main

import (
	"fmt"
	"time"
	"github.com/robfig/cron/v3"
)

// Define a simple job that will print its name and sleep for a set delay
type countJob struct {
	name  string
	delay time.Duration
}

func (job *countJob) Run() {
	fmt.Printf("Running job: %s\n", job.name)
	time.Sleep(job.delay) // Simulate the job's work by sleeping
	fmt.Printf("Finished job: %s\n", job.name)
}

func main() {
	// Initialize the jobs with different delays
	var j1, j2, j3 countJob
	j1.name = "first"
	j2.name = "second"
	j3.name = "third"

	j1.delay = 120 * time.Second
	j2.delay = 15 * time.Second
	j3.delay = 10 * time.Second

	// Create a new cron job chain and wrap the jobs using Then
	chain := cron.NewChain(cron.DelayIfStillRunning(cron.DiscardLogger))
	wrappedJob1 := chain.Then(&j1)
	wrappedJob2 := chain.Then(&j2)
	wrappedJob3 := chain.Then(&j3)

	// Create a cron instance
	c := cron.New(cron.WithChain(cron.DelayIfStillRunning(cron.DefaultLogger)))

	// Add jobs to the cron scheduler (they will run sequentially)
	// Use unique cron schedules for each job to trigger sequentially
	// Job 1 will run at 11:05 AM every day
	c.AddJob("05 11 * * *", wrappedJob1) // Example: Run at 11:05 AM
	// Job 2 will run at 11:06 AM every day (just after job 1)
	c.AddJob("06 11 * * *", wrappedJob2) // Example: Run at 11:06 AM
	// Job 3 will run at 11:08 AM every day (just after job 2)
	c.AddJob("08 11 * * *", wrappedJob3) // Example: Run at 11:08 AM

	// Start the cron scheduler
	c.Start()

	// Let the scheduler run for a while (block the main thread to keep it running)
	select {} // Block forever to keep the program running
}


Inverted ontology compilation order

Summary of the discussion
This solves the problem with physical axioms and import edits not being included in the owl files.
Solves #1424 and properly solves part of #1425 without relying on updating the owl api in protegé
Type of change (CHANGELOG.md)
Added

added built ontology to the pipeline artifacts.

Updated

changed order in which the oeo-full files are compiled, owl now builds before omn.

Workflow checklist
Automation
Closes #
PR-Assignee

[ ] 🐙 Follow the Pull Request Workflow
[ ] 📝 Update the CHANGELOG.md
[ ] 📙 Add #'s to term tracker item

Reviewer

[ ] 🐙 Follow the Reviewer Guide
[ ] 🐙 Provided feedback and show sufficient appreciation for the work done

This is also the proper solution to #1425

With the new build changes we can easily include the outputs of the pipeline in the artifacts of the release #1476

This is ready and I am already using it as a base for other MRs. Can someone review it. @stage1407 perhaps?

@l-emele  should I revert the changelog changes since it does not affect terms in the ontology?

Should this technical change be documented in the changelog or that is not needed?

In this case, I don't think that it is strictly necessary to have it in the changelog. However, a short description and the PR improves transparency in case someone wants to understand that there were changes. @stap-m : What do you think here?

Since we have several structural changes, we definitely have to document them somewhere. Probably, the wiki is currently the right place for detailed documentation. But a short notice in the changed section of CHANGELOG seems reasonable, anyway. Thus, it becomes also transparent, in which release the changes have been done.


Use target spirv-unknown-webgpu0 for wgpu runner

Looks like spirv-tools optimizer crashes on it though.

Looks like spirv-opt just flatly doesn't support it: https://github.com/KhronosGroup/SPIRV-Tools/blob/0c21e50922e469fa8cd2223ba9eeace58b1e0265/source/opt/optimizer.cpp#L66
In any case, the correct thing to do here is keep using vulkan1.1, as we're not running on the actual webgpu backend of wgpu, we're running on the vulkan backend of wgpu.


Navbar is not responsive on Mobile Screen

Navbar is not shown on small screen like mobile
below is screenshots, how it looks on mobile phone.
Note:: I would like to work on this issue under GSSOC'23.

Yes sure, please fix the issue!! @Ahtaxam

I am interested in fixing this issue under GSSoC'23

@akshathar-navada Navbar is working Now properly. you can close issue. i don't know why is not working tomorrow when i was trying.

@akshathar-navada Navbar is working Now properly. you can close issue. i don't know why is not working tomorrow when i was trying.

Yes, it was actually fixed. Thanks for stepping up @Ahtaxam


[Question] Key rotation period for this server may exceed the recommended value

I found this line in the log file:
[INFO] The key rotation period for this server may exceed the recommended value. This is bad for forward secrecy.

What does it mean and how to fix it?

Use another server, you can't fix it.

Which server is it? If it's Soltysiak then let me say that I will fix this soon.

@pysiak Yes, it is.
By the way, how to determine the fastest server from the dnscrypt-resolvers.csv? Geographically closest server does not mean the fastest.

@jedisct1 I see CERT_RECOMMENDED_MAX_KEY_ROTATION_PERIOD is 86400. Is the intention here really to regenerate the keys and the cert within next full day and restart dnscrypt-wrapper with the new + old keys/cert? I'm catching up on developments...
@bezdupel I'd do a DNS latency benchmark from your exact location or at least RTT to the server and select a server with lowest response times.  You could use nsping or the benchmark from grc.com. I've setup my dnscrypt server and I'm getting 8ms of network latency.

@licaon-kter I chose at random a few servers, and got the same line in the log file.
@pysiak Thank you, I found the fastest server using your tips.

@bezdupel Exactly. The wrapper generates certs by default for 365 days. dnscrypt-proxy will complain about PFS for anything more than 24 hours. Not sure if anybody is actually regenerating certs so often.
@jedisct1 can you comment, please?

I chose at random a few servers, and got the same line in the log file for each server

Umm, ok, that's strange

Hi guys!
This message is just an indication and will not prevent the service from working properly.
Certificates with a long validity period are technically fine. But if the server secret key ever gets leaked, all the traffic captured for up to the past 365 days can be immediately decrypted.
For this reason, the protocol specification has always recommended to keep use a key for no more than 24 hours.
dnscrypt-wrapper was updated a long time ago to support SO_REUSEPORT and multiple keys. So, seamlessly switching to a new key essentially goes like this:

Generate a new key
Run a new dnscrypt-wrapper instance with both the old and the new key
Kill the previous instance

Key rotation should be automated no matter what. It was pretty sad to see a lot of resolvers become suddenly unavailable right after 365 days, and then the long-term secret key was lost, overwritten or the short-term key was never replaced. Recommending a short key rotation period is also a good opportunity to early have automation and check that it works.
By default, the dnscrypt-wrapper docker image rotates the key every 12 hours with a pretty dumb script:
https://github.com/jedisct1/dnscrypt-server-docker/blob/master/dnscrypt-wrapper.sh
Once again, using the same key for a long time is fine. But short-term keys are safer. We saw the same move in the CA world with Letsencrypt signing certificates only for 3 months to enforce frequent rotations.
Eventually, generation and rotation of the short-term keys should be done by the wrapper itself, so you don't have to worry about that at all. This is something I really want to contribute as soon as time permits.

Well, the answer is received. I think we can close this discussion. Thank you all for participating.

Eventually, generation and rotation of the short-term keys should be done
by the wrapper itself, so you don't have to worry about that at all. This
is something I really want to contribute as soon as time permits.

It is also preferable to keep the secret key separated though. That would
prevent automatic generation of the short term keys.
On Dec 24, 2016 5:13 AM, "bezdupel"<EMAIL_ADDRESS>wrote:

Closed #520 https://github.com/jedisct1/dnscrypt-proxy/issues/520.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jedisct1/dnscrypt-proxy/issues/520#event-904547601,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AABf_H4d1bRMVj8MNFFJj7PfWlIOWigGks5rLRqRgaJpZM4LUgbx
.

Hi guys, I run my own wrapper and get the message, now my config was this.
Generate a new cert every 4 days.  For 2 hours both cert's will work on the wrapper after generation, then after that 2 hours only the new cert works.
The certs had a lifetime of the default 365 days.
The new config is the same except that the certs now expire after5 days, although the change doesnt mean much since the wrapper will not accept the old certs after 4 days I did it to see if would remove the warning which it did not.
Is 1 day expiry considered too strict? I dont think I have come across many dnscrypt servers that have 1 day expiry or lower.

The 1 day period can be extended, but what benefits does a 5 days period have over 1 day?

@jedisct1, your qualified attention is required to resolve the following objections.


Add PropertyChange support for world generators

Internal PR
This involved some refactoring of PropertyProvider.

Superseded by #19


Epubs may contain all chapter data inside a body.xhtml

Can now load it but the TOC Component can't be used to jump chapters.

The TOC in the actual EPUB works. Therefore, a way to synchronize the App TOC with it should be considered.

Impossible to reconstruct navigation links


Update UG, DG

made changes to barchart design as well

Coverage remained the same at 92.492% when pulling f8a2afb44a12bd30fdaca958a05542af29d962e7 on Valerieyue:ChartEnhancement into 3facaf4957226359757415417b4eb9922a7e1e6a on CS2103AUG2017-T16-B3:master.

Coverage increased (+0.09%) to 92.586% when pulling 97a0dd36aebf6df54fa332740c2fbceee88290bf on Valerieyue:ChartEnhancement into 3facaf4957226359757415417b4eb9922a7e1e6a on CS2103AUG2017-T16-B3:master.


data: rename *.xml to *.svd and remove _svd suffix from files

In addition, the python unit tests were updated to run against
SVD files rather than on XML files.

LGTM


Fixed readHistory after delete and restore

Coverage increased (+0.01%) to 94.676% when pulling 06f2dfa62ac9b981446119abc3a58e518eacf8ef on cody-read-history-after-delete-and-restore into cdf1a8f55e2d46a209243bfa5407bb99e347b86e on main.


Create 3 Pipelines out of 1

We need to:

create 3 pipelines,
concatenate the outputs,
combine them with a final Dense layer.

It is enough to code only one pipeline due to time restrictions.
We can explain how to do the 3 pipelines in the report.


updates on the upload worker module with concrete example

Which Cloudflare product does this pertain to?
Workers
Existing documentation URL(s)
https://developers.cloudflare.com/api/operations/worker-script-upload-worker-module
Section that requires update
curl --request PUT
--url https://api.cloudflare.com/client/v4/accounts/account_identifier/workers/scripts/script_name
--header 'Content-Type: multipart/form-data'
--header 'X-Auth-Email: '
--form '"message"='
--form '"second-file.js"='
--form '"worker.js"='
--form metadata=
What needs to change?
I wonder if the team could provide a sample upload curl with all info from a wrangler.toml
name = "r2worker"
main = "src/worker.js"
compatibility_date = "2023-06-16"
account_id = "xxxx"
workers_dev = true

# # Bucket binding - For more information: https://developers.cloudflare.com/workers/runtime-apis/kv#bucket
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "xxx"

How should it change?
the current curl sample would be much better if the values are written their with some fake data?
Additional information
No response

Howdy @gillbates, technically the ownership of those API endpoints (and examples is the ENG team) and out of scope for this repo.
I've passed this along internally to that team. Closing out this issue as that's as much as we can do w/in the context of the current repo.


Tickets/dm 25837

NOTES: This is a working version of the stellar locus metric "wPerp" from Ivezic+2004. It is slightly sloppy, in the sense that we should probably wrap the combining of the multi-band catalogs in its own function, as well as the extinction correction.
This is mostly because we are uncertain how this will merge with the functionality of pipe_analysis, so the point is to get a working prototype, but not for it to necessarily be in its final form.
Note also that some functions have been copy/pasted from "pipe_analysis", with the knowledge that we will integrate them into the shared stack eventually and remove them from stellar_locus.py.
Finally: the dependence on lsst_sims will make our framework fail on the RSP (where lsst_sims is not available). We should figure out a longer-term solution for looking up extinction corrections.

2. It looks like TractAnalysisTaskConnections, TractAnalysisTaskConfig, and TractAnalysisTask are placeholders at the moment, not directly used for the stellar locus metric.

Oh, right. I originally started out in a different direction, then changed my mind. I'll revert those to the previous versions.

@bechtol Would you mind taking a quick look at the refactor I did to address your comments. It's definitely an improvement to separate out the catalog matching and extinction correction from the wPerp routine.
If that's OK, I think we're ready to merge?

Also note that I tested an earlier iteration of this on w_2020_34, and got roughly the same values that pipe_analysis yields. The current version has implemented the "abstract_filter" --> "band" change, but there are no RC2 runs recent enough to test it on, so we'll have to test this metric once that becomes available.

The refactoring looks good. I would suggest to make another ticket (separate from this PR) to add a unit test for the stellar locus analysis given how many new functions and classes have been added in this PR.


Confused on the warning: address $addr is longer than address length $address_length

Wrote a simple program
#include <gperftools/profiler.h>
#include <iostream>

using namespace std;

int main() {
    ProfilerStart("./cpu.prof");
    const int64_t len = 1e9;
    int *arr = new int[len]; // Just ignore the mem leak here
    for (int i = 0; i < 1e9; i++)
        ;
    ProfilerStop();
    return 0;
}

And when I start using pprof in interactive mode, I typed list main, which shows up some warnings about some address is longer than address length. I took a closer look at the code and found that

here sets the $sep_symbol to be _fini. However, some lib may contain symbol like fini, which is causing such warnings. For example: objdump -d '/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28' | grep _fini | tail -n 1 shows d6148:	74 26                	je     d6170 <_ZNSt13random_device7_M_finiEv@@GLIBCXX_3.4.18+0x30>. I wonder if it is by designed?

perl version of pprof is unsupported. Sorry. Please use golang version from github.com/google/pprof.
Closing as wontfix.


Added some tests to increase coverage of Rational

Added some tests to increase coverage of Rational, and removed dead code that can not be tested because it is never called.
Also excluded the large piece of code for Rational.pow and Rational.nroot from coverage, because it is going to be removed soon anyway.

You mean Rational#fpow right? I think Rational#pow with an integer argument is definitely staying.

I mean this one:
def pow(exp: Rational)(implicit ctxt: ApproximationContext[Rational]): Rational

Oh yeah, that one will be going away.

By the way: the last commit is a fix for a completely trivial bug that I only discovered by mindlessly entering tests to get the coverage up. Rational.apply(Rational.one: Number) would result in infinite recursion. I think this underscores the need to increase test coverage to preferrably 100% even for seemingly trivial code.
The build failure is the float gcd thing.

Agreed. I'll merge this now if you are happy with it.
By the way, I'm close to 100% on SafeLong.


DeprecationWarning: alltrue is deprecated as of NumPy 1.25.0, and will be removed in NumPy 2.0. Please use all instead

Describe the bug
Some operations on TimeSeries generate a deprecation warning from NumPy in preparation to NumPy 2.0
We should not get this warning. All uses of np.alltrue must be converted to np.all.

Solved in 0828223bebefd2d64cd70c1fc440fda3f0f3213c


Crash due to Use of Uninitialized Value When Initializing TensorShape in MaxPoolingWithArgmaxOp

Click to expand!
Issue Type
Bug
Source
binary
Tensorflow Version
tf 2.9 and 2.11.0-dev20220828
Custom Code
No
OS Platform and Distribution
Linux Ubuntu 20.04
Mobile device
No response
Python version
3.10
Bazel version
No response
GCC/Compiler version
No response
CUDA/cuDNN version
CUDA 11.5
GPU model and memory
No response
Current Behaviour?
In [MaxPoolingWithArgmaxOp::Compute](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/maxpooling_op.cc#L990-L1002), `PoolParameters` is initialized. Then `params.out_height` and `params.out_width` are used to build a `TensorShape` , but in some cases they are not initialized.

Which may cause a Integer-Overflow. In most cases, the Integer-Overflow can be detected and an invlaid status can be triggered, which may lead to DoS. In some cases, the Integer-Overflow can not be detected and a memory corruption can be triggered, which may result in DoS and RCE.

Standalone code to reproduce the issue
import tensorflow as tf
with tf.device("CPU"): 			# Also crash when run with GPU device
    input = tf.saturate_cast(tf.random.uniform([1, 1, 1, 3], minval=-128, maxval=129, dtype=tf.int64), dtype=tf.int16)
    ksize = [1, 1, 1, 3]
    strides = [1, 1, 1, 3]
    padding = "SAME"
    res = tf.raw_ops.MaxPoolWithArgmax(
        input=input,
        ksize=ksize,
        strides=strides,
        padding=padding,
    )

Relevant log output
# most cases
2022-08-29 16:47:46.060511: F tensorflow/core/framework/tensor_shape.cc:186] Non-OK-status: InitDims(dim_sizes) status: INVALID_ARGUMENT: Encountered overflow when multiplying<PHONE_NUMBER>6544 with<PHONE_NUMBER>8096, result: -1
Aborted (core dumped)

@sachinprasadhs,
I was able to reproduce the issue on tensorflow v2.8, v2.9 and nightly. Kindly find the gist of it here.

I believe this issue has been fixed in the latest nightly build of tf-nightly==2.12.0.dev20230108. Will close this issue, but feel free to re-open if this issue persist.


Unclear error on bottoms

https://github.com/RaitoBezarius/avl-verification/commit/117cd1c0afbc50ffc5a90473cb4c01185188711e fails extraction with Aeneas:
❯ nix run github:aeneasverif/aeneas -L -- -backend lean avl_verification.llbc
[Info ] Imported: avl_verification.llbc
[Info ] Generated the partial file (because of errors): ./AvlVerification.lean
[Error] There should be no bottoms in the value
Source: 'src/main.rs', lines 33:52-39:9

related to the find function.

Slightly minimized example:
struct AVLNode {
    child: Option<Box<AVLNode>>,
}

struct AVLTreeSet {
    root: Option<Box<AVLNode>>,
}

impl AVLNode {
    pub fn find(self) -> bool {
        let mut current_tree = &self.child; // This is the root of the problem in the computation of the fixed point

        while let Some(current_node) = current_tree {
            current_tree = &current_node.child;
        }

        false
    }
}


Hi!

Heyo! My name is Bad Wolf. I made MKW Table Bot back in 2020 and added features on a somewhat regular basis over the past year and a half, and released the code a few months ago in hopes that people might build on it or contribute. I was given a link to this repo today and was quite excited to see that someone has built on MKW Table Bot in a place that I wasn't aware of. Your code looks well done, great work!
It looks like you added a few nice features, like automated ?wp and ?redo. I haven't fully checked all the features you added, but it looks like you have great ideas. If you are open to it, I am open to adding some of those features to MKW Table Bot. Some won't be added, like automated ?wp, as this would affectively dos attack wiimmfi.de during high usage, but other features like ?redo would be a nice addition! (I think the benefit here is that MKW Table Bot has one set of features, you have a different set of features, and it'd be nice if all the best features were in one place for the MKW community to use.)
I'm also reaching out because you've done an excellent refactor (or rewrite) here, like sqlite for server settings. Would you be interested in contributing to the MKW Table Bot repository? ForestMKW and I just collaborated nicely where he rewrote a new tag AI, and I wrote a shell to compare AIs, and we seamlessly swapped his AI in.
Anyway, just let me know! Thanks! :)

Hey BadWolf!
I've been a huge fan of your Table Bot Discord bot for a while, so it's great that you've seen my implementation. I didn't realize that you left an issue here, since I've been sort of not active on this project ever since the DDoS on Wiimmfi, but to answer your question, yes, I am open to contribute to your repository. I'll look for any issues that you have and do what I can.


Fix error in json example

The XML property example in JSON nested the name property inside the id property which is wrong I guess and the two properties should be next to each other.

Thanks for the fix.
Could you have a look whether the same problem also affects the 3.0 version in the OpenAPI.next branch and submit a PR to fix this too (into the OpenAPI.next branch, not into master)?


[Aqara] Smart Plug : Updated unit for the powerConsumptionReport

Edited
Before

energyMeter.energy is "kWh"
powerConsumptionReport.powerConsumption is "kWh"

After

energyMeter.energy is "kWh"
powerConsumptionReport.powerConsumption is "Wh"

Before

powerConsumptionReport.powerConsumption is "Wh"
energyMeter.energy is "kWh"

After

powerConsumptionReport.powerConsumption is "Wh"
energyMeter.energy is "Wh"

Before

powerConsumptionReport.powerConsumption is "kWh"
energyMeter.energy is "kWh"

After

powerConsumptionReport.powerConsumption is "kWh"
energyMeter.energy is "Wh"

@greens ,  When will the merged one be applied to the PROD? Ask for reference because there are things to follow up.

@yuseunghyuk should be next Tuesday, December 13th (US). It'll be available on the 14th in Korea.
But it should already be available on the beta channel in Prod.


nivo Website Dark mode does not show some components examples due to lack of contrasting colors

Describe the bug
nivo Website Dark mode does not show some components examples due to lack of contrasting colors
To Reproduce
Steps to reproduce the behavior:

Go to main webpage
Click on https://nivo.rocks/sankey
Click on light → dark mode
See error

Expected behavior
visualization should be visible
Screenshots

Desktop (please complete the following information):

OS: MacOS 10.13.6
Browser safari
Version 12.1

Additional context
N/A

Sorry, it's Open Collective there. Maybe you want to check https://github.com/plouc/nivo


Run on Mono

Hey guys. I recently read about this project and I was wondering if it runs on Mono.
I tried to run the .exe file and, joyfully, it worked. I mean, almost. It had some issues with the paths of the generated files but seems like all the libs were compatible. I saw you were working on it ( #215 ) and, as a Mono developer, I tried to figure out what was happening.
It was only a matter of fixing lower cases paths and using System.IO.Path instead of changing path strings.
I compiled on VS 2015 RT (Windows 10) and tested in my Xubuntu machine with Mono 4.0. I'm able to run commands hungry (no big deal here), create, bake and taste, both with Razor and Liquid templates. It worked and was delicious.
I had problems running the automated tests, though. And didn't test the "import" command. I need some help with that.
Anyway, hope it's usefull. :D

@thiagoabreu this is amazing! Thanks for looking into this :heart::heart::heart::heart::heart:
There's some failing tests on this project - you can see the output here - have you had a chance to look into them?

I was having trouble with VS2015 skipping most of the tests. Thanks to AppVeyor I could find the failing tests.
Seems I "over fixed" the "MapToOutputPath" methods. It looks good now.

Also cc @vikingcode as he was looking at Mono support earlier...

Found a bug in generating permalinks. Fixed now.

Fixing author (sorry, my bad)

I suspect some related code smell at https://github.com/Code52/pretzel/blob/master/src/Pretzel.Logic/Extensibility/Extensions/AzureHostSupport.cs#L46 and in line 52. I think the replacement target should be changed to PathSeparatorChar.

Agreed. The output is the same but the SeparatorChar makes clearer understanding.
Changed in other places too for consistency.

[00:00:17] The process cannot access the file 'C:\projects\pretzel\src\packages\DotlessClientOnly.<IP_ADDRESS>\DotlessClientOnly.<IP_ADDRESS>.nupkg' because it is being used by another process.
[00:00:17] Command exited with code 1

Hey, @shiftkey can you see what happened? :sweat_smile:

Sorry for the silence, I was out of town for a few weeks.
Thanks a lot for your hard work, I will review it as soon as I can, hopefully before the end of the week.

Sounds good to me, thanks again! :smiley:
I just have two questions:

could you merge this branch with the updated master?
did you know any good ci platform for mono? Is Travis ok?

could you merge this branch with the updated master?

Done.

did you know any good ci platform for mono? Is Travis ok?

Travis is ok. The mono-project guys use Jenkins. The TeamCity also supports Mono.
Just a reminder, my branch does not compile on Mono. The mono compiler reflection can't find all the Command tags, making Pretzel useless.

Thanks!
Just to be clear, right now to launch automatic tests on Linux we have to use the windows compilated Pretzel?
It can be complicated for testing, but I'll think at a solution.

Yes. Compile on Windows + .NET Framework, test on Unix + Mono.
That's one reason I didn't change the tests: I couldn't figure out how to set the mock file system to Unix style while at Windows. The other reason is I didn't want to brake the Windows implementation. :sweat_smile:


Re-enabling HTTP tests

Re-enabling HTTP tests as their failure seems to have been a one off on Jon's machine. I couldn't repro the issue locally and CI has been passing

@sokket please take a look.

LGTM


Compiling

I cannot get this to compile with either clang or g++, e.g.
Projects/Scheduler/Cron.h:13:41: error: no viable conversion from 'time_point<[...],
duration<[...], ratio<[...], __static_lcm<ratio<1, 1000000>::den, ratio<1,<PHONE_NUMBER>>::den>::value aka
1000000000>>>' to 'const time_point<[...], duration<[...], ratio<[...], 1000000>>>'
auto tm_adjusted = Clock::to_time_t(tp + time);
Also, do you have any plans to use make this work with C++11?

Let me know if it's working now. I didn't come across this issue because all the systems I tested on had nanosecond precision system_clocks.
I also removed the C++14 requirement (since it was trivial to do).

Thanks for responding so quickly - I'll try it out and let you know
Sent from my iPhone

On 27 May 2017, at 19:48, Bosma<EMAIL_ADDRESS>wrote:
Let me know if it's working now. I didn't come across this issue because all the systems I tested on had nanosecond precision system_clocks.
I also removed the C++14 requirement (since it was trivial to do).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

That works great, thanks!
I really like this library, and I already use ctpl for my own thread pooling, so it fits right it with my projects. Great work!


[hbase10] Address #701 by mimicking the same locks from the HBase 0.9…

…8 client in the HBase 10 client.

Yanked the lock so we should be good now @busbey, thanks!


Write a C program to check palindrome number

Description
Write a C program to check palindrome number
Palindrome numbers are the numbers for which reverse is exactly same as the original number. For example, 121 is palindrome, but 123 is not palindrome.
Input  : 121
Output : Palindrome Number

How to contribute

Save the solution in CheckPalindromeNumber.c file
Add CheckPalindromeNumber.c file in check-palindrome-number folder

!assign

Hey @KaptainCS3,
This issue has been assigned to you for more than 15 days.
We are unassigning you from this issue.
If you are still interested in contributing to this issue, please get auto-assigned on the issue by commenting !assign again.
Thanks for your contributions :)

!assign

there is already a palindrome c file in the folder. it looks like the issue should be closed.

!assign


Include gotuf in notary

This PR moves gotuf into notary under the tuf directory. The following actions were taken:

Update all imports of github.com/endophage/gotuf* to github.com/docker/notary/tuf*
Remove gotuf's Godeps, Makefile, and circle.yml
Remove github.com/endophage/gotuf from notary's Godeps.
Update notary's Godeps to include those now required for tuf

@diogomonica @cyli @NathanMcCauley  PTAL and lets get this merged ASAP so we can continue to work on top of it.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "include_gotuf" git@github.com:endophage/notary.git somewhere
$ cd somewhere
$ git rebase -i HEAD~339
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

LGTM!  Everything builds fine :)  Thanks for getting this in!


Update composer.json

Allow next major Sylius version 1.13

Thanks, @SquareInnov - can you also change it in the test set-up so we ensure the tests also run against Sylius 1.13?
https://github.com/stefandoorn/sitemap-plugin/blob/master/.github/workflows/build.yml

Not really sure though why CI does not run.. :D

Done, Regarding to this :
https://github.com/Sylius/Sylius/blob/1.13/UPGRADE-1.13.md
I bump php version and add new symfony version to the file

Not really sure though why CI does not run.. :D

I don't know, the branch is not excluded

I have enabled Builds/CI again. Will check / test the PR later this week. Does it already work with the beta of 1.13 as well with this change, or won't this be in effect anyhow until 1.13 is officially released?

I have enabled Builds/CI again. Will check / test the PR later this week. Does it already work with the beta of 1.13 as well with this change, or won't this be in effect anyhow until 1.13 is officially released?

No, it will work on the the release of the 1.13, I think.

Merging this and if something pops up in CI, I'll look into that. Thanks!


convert maintainers file to toml

So that we can integrate it into https://github.com/docker/opensource

thanks!


demo error

I run the demo on colab, config file is v2,  but cannot get the results same as you.
"show_result_pyplot" cannot get the input ('Bordered', 'cell', 'Borderless') in mmdetection2.  can anyone give me some suggestions?

Same problem here

Same problem here

@Andrew05200 I think the problem is due to the outdated version of the checkpoint. There is a tool to convert the checkpoint (https://github.com/open-mmlab/mmdetection/blob/master/tools/upgrade_model_version.py) to be correctly used with mmdetection2 but I was unable to use it. Let me know if you are able to do it!

@Andrew05200 I think the problem is due to the outdated version of the checkpoint. There is a tool to convert the checkpoint (https://github.com/open-mmlab/mmdetection/blob/master/tools/upgrade_model_version.py) to be correctly used with mmdetection2 but I was unable to use it. Let me know if you are able to do it!

I run the demo on colab, config file is v2, but cannot get the results same as you.
"show_result_pyplot" cannot get the input ('Bordered', 'cell', 'Borderless') in mmdetection2. can anyone give me some suggestions?

Hi, Hope you are doing great.
Can you please share your colab notebook since I am trying for 5 days and it's not even not working for me in colab.
I am getting this error:
ImportError: cannot import name 'isStringType'
Not sure how to resolve it, it would be really helpful if you can share your running notebook.
Thank you !!

@jaytimbadia your code seems to be correct but, as the log says, the model and the loaded checkpoint don't match exactly.
You have to convert the checkpoint to support MMDetectionV2+ and you can do that with the script in the folder Tools of this repository (https://github.com/DevashishPrasad/CascadeTabNet/tree/master/Tools).
Note that, as stated in the MMDetection doc, "The converted models can be run in MMDetection V2.0 with slightly dropped performance (less than 1% AP absolute)."

Hi @francescoperessini,
I was able to get rectangles on a right place after model update, however my annotations are still wrong.
Any ideas, how to fix this? Thanks a lot for help.

Hi @francescoperessini,
I was able to get rectangles on a right place after model update, however my annotations are still wrong.
Any ideas, how to fix this? Thanks a lot for help.

Hi @Franky-Cranky,
you can easily change the classes' labels by modifying the parameter model.CLASSES, assigning it a new list of values; for example:
model.CLASSES = ['Bordered', 'cell', 'Borderless']

I don't remember the three labels' exact order; you have to try!


pull request for e2e test at 01/23/2017 19:56:10

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Refactor rename not locating method name

Project using Python 3.6 64-bit
15.8p2
Input code:
import sys
import not_exist

sys.version

def hello():
    print('hello')

def main():
    hello()

if __name__ == "__main__":
    sys.exit(int(main() or 0))

Place cursor anywhere on hello on the def hello() line
CTRL+R, R
Result:
The proposed method name is:
def hello():
    print('hello')

It should just be:
hello

Even if you change it to something sensible, it won't actually rename (and you'll see many asserts).

Reopening for 15.7. PR is at https://github.com/Microsoft/PTVS/pull/4197. Waiting for VS approval for servicing.

Approved for 15.7.2


Site list revision

UPDX - uses SSL, so no need to keep http: link.
Kayo.pics - redirects to kayo.moe
safe.waliant.pw - entire waliant.pw is down right now.
a.hyper.lol - added a space because I don't like when words are unnecessarily mashed together.

@VVLNT I'm not sure if I just hit a downtime. Is the site still operating?

@Shumatsu Yes, it's up now. It was a mistake on my part which caused my webserver to not start.

I have restored waliant.pw on the list. PR is ready to go.

https://updx.xyz doesn't seem to be using lolisafe anymore.

Thanks for mentioning, didn't realize at first.

Sounds good


annotation doesn't exist or could not be auto-loaded

Hi,
I'm giving a try to your tool and mongoDB with Laravel, so I'm kind of new to this. I'm not sure if I'm missing something or if it's a bug but I get this error when I try tu use any odm artisan command:
[Semantical Error] The annotation "@Doctrine\ODM\MongoDB\Mapping\Annotation     s\Document" in class App\Documents\User does not exist, or could not be aut     o-loaded.
Here is my User model, that I created using the Doctrine mongoDB ODM documentation
<?php

namespace App\Documents;

use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;

/** @ODM\Document */
class User
{
    /** @ODM\Id */
    private $id;

    /** @ODM\Field(type="string") */
    private $name;

    /** @ODM\Field(type="string") */
    private $email;
}

Here is my odm.php configuration file:
<?php

return [
    'paths'           => [
        base_path('app/Documents'),
    ],
    'proxy'           => [
        'directory' => storage_path('doctrine/proxies'),
    ],
    'hydrator'        => [
        'directory' => storage_path('doctrine/proxies'),
    ],
];

So I don't know if this error is something I've done wrong with how Doctrine should be used or if it's related to your tool.
P.S: Also I might be stupid on this one but I can't figure out how I'm supposed to access the DocumentManager in my controllers :D

See #5


Reportback Pushnotifications

What does this PR do?
This PR creates new Event/Handler classes for the reportback event, allowing us to fire an event when a user reports back.
In the event handler, we look for the users group and send a notification to everyone else in the group.
Some organizational changes:

I moved the query that gets a user's group into a query scope function that accepts a sign up id, so we can easily reuse this query around the codebase.

Found a issue in my set up of the Kudo event class, where the KudosController wasn't pulling in the event class so it wouldn't work. This PR fixes that.

:+1:
I like the use of the query scope.


Handle multiple contacts for same account

As we move toward multi-device, we'll need to start dealing with contacts from the same account. We'll want to still keep the contact object tied to a single peer, but we can roll up multiple into something consumable that contains all peers and inboxes.

I started this a couple days ago and realized it's a little more involved than I first thought. Here's the problem:
A Contact is associated with a peer ID, which is fine, we need (at least for now) to talk directly with other peers, not accounts. However, a user should not need to deal with multiple contacts for the same account address.
My proposal: wrap contacts with a ContactCard object that is just a map of peer ID -> Contact:
message AccountCard {
    map<string, Contact> contacts = 1;
}

or maybe just Card? Thoughts @asutula? I would have liked to have dealt w/ this sooner, but there have been too many moving pieces.

Sounds reasonable to me. Do you imagine any user of the Textile tools/SDK will ever need to access and use the individual Contact objects for any reason?

I think the tools would still have to interact w/ the individual contacts to render username and avatar. Another approach here would be to just mash together the contacts to essentially create the "best" contact, which contains the most recently updated username and avatar. This could only be for display purposes though because search results and the contact add API still need to deal with single Contacts.
Given that we already have a model like this for Contact and User...
message Contact {
    string id                         = 1;
    string address                    = 2;
    string name                       = 3;
    string avatar                     = 4;
    repeated Cafe inboxes             = 5;
    google.protobuf.Timestamp created = 6;
    google.protobuf.Timestamp updated = 7;

    // view info
    repeated string threads = 8;
}

message ContactList {
    repeated Contact items = 1;
}

message User {
    string address  = 1;
    string name     = 2;
    string avatar   = 3;
}

Maybe something like this is better:
message Card {
    User user            = 1;
    ContactList contacts = 2;
}

This way, it's more consumable by the SDKs/UIs since it deals w/ Users like the Feed API, but can also be used by the the Contacts API w/ some tweaks to the search results and the add method.

Sounds like a good compromise. I'm definitely for simplifying the API. Dealing with individual Contacts and having developers decide what logic to apply isn't the way to go.

I started with the above model and after playing around with it via the command line, I realized it's pretty confusing. Like, what's a Card? Why does it have a User and Contacts?, What are those, etc...
I landed on migrating Contact to Peer since this object maps directly to a single IPFS peer... and then a new Contact object that wraps peers and has the same display at a User object (used in the feed):
message Peer {
    string id                         = 1;
    string address                    = 2;
    string name                       = 3;
    string avatar                     = 4;
    repeated Cafe inboxes             = 5;
    google.protobuf.Timestamp created = 6;
    google.protobuf.Timestamp updated = 7;
}

message PeerList {
    repeated Peer items = 1;
}

message User {
    string address = 1;
    string name    = 2;
    string avatar  = 3;
}

message Contact {
    string address      = 1;
    string name         = 2;
    string avatar       = 3;
    repeated Peer peers = 4;
    repeated string threads = 5;
}

message ContactList {
    repeated Contact items = 1;
}

Note that only Peers are actually indexed / stored.
Here's a Contact:
{
    "address": "P47FEZnTdDEexCU8PcUU9KLjMSWgQjJEeYR6wTinJRsEGWoK",
    "avatar": "QmV8eY9TXrJy66r5ScLTawbqKfkT7UppT9cnYDcVN3E1s5",
    "name": "andrew-beta",
    "peers": [
        {
            "address": "P47FEZnTdDEexCU8PcUU9KLjMSWgQjJEeYR6wTinJRsEGWoK",
            "avatar": "QmV8eY9TXrJy66r5ScLTawbqKfkT7UppT9cnYDcVN3E1s5",
            "created": "2019-02-06T00:32:48.733088Z",
            "id": "12D3KooWQAy5QRnCCd6Rz86CS7hzS7WMAEFEXxmbkofWtkyxAG6R",
            "inboxes": [
                {
                    "address": "P5Mm4xsek1jP8VkijzKYu2G1XNRogbFEiraRW5rqqgYzv7Ag",
                    "api": "v0",
                    "node": "1.0.0-rc30",
                    "peer": "12D3KooWLh9Gd4C3knv4XqCyCuaNddfEoSLXgekVJzRyC5vsjv5d",
                    "protocol": "/textile/cafe/1.0.0",
                    "swarm": [
                        "/ip4/<IP_ADDRESS>/tcp/4001"
                    ],
                    "url": "https://us-east-2b.textile.cafe"
                },
                {
                    "address": "P5LeaXjN7souJTxSJzB77Grs5ZQdy64UZxZt2rrQ2aHzyfU9",
                    "api": "v0",
                    "node": "1.0.0-rc30",
                    "peer": "12D3KooWGBW3LfzypK3zgV4QxdPyUm3aEuwBDMKRRpCPm9FrJvar",
                    "protocol": "/textile/cafe/1.0.0",
                    "swarm": [
                        "/ip4/<IP_ADDRESS>/tcp/4001"
                    ],
                    "url": "https://us-west-1a.textile.cafe"
                }
            ],
            "name": "andrew-beta",
            "updated": "2019-02-06T00:32:48.733088Z"
        }
    ],
    "threads": [
        "12D3KooWAmQan7rTFtnGNSeFVARAfRT5Fw5YbA9R66JmHK53dBC7",
        "12D3KooWSaF74rhqDwNZpBKK8RqnRMa2wj7AwyAzUhVo2YYF28rK"
    ]
}

Note that threads (shared thread IDs) are part of the new Contact object, not Peer (the old Contact), this way, the meaning spans all of the contact's known peers.