Fixed template instance size and position overrides

Template instances of rectangle, ellipse and text objects can override the width and height of the template object. This is now taken into account when reading out the attributes and when inheriting the shape from the template.
Template instances of point objects are now also correctly storing the instance position in the Point shape, instead of the position of the template object.
Closes #310

Whoops, I should have opened this PR from my personal fork.

I guess it would be good to add some kind of test for this...

@aleokdev Thanks! Most annoying was the handling of the Text objects, heh. What a bunch of boilerplate, which I don't think I could avoid thanks to it being an enum variant rather than a plain struct.
I decided to add a small test to verify the behavior.


[AutoPR hanaonazure/resource-manager] Add Create HanaInstance API

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/5945

Build output:

Build output:


What is the behavior for multiple installations?

Does the tool clean/remove all SxS installation of VS under '%ProgramFiles(x86)%\Microsoft Visual Studio'?
I was expecting it would take a path as a parameter.

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

ID: 2a3b0ef4-76d9-9c1e-4625-9cd56689b43a
Version Independent ID: e882e8dc-8fb1-231d-d0bb-1f3e9dfec90d
Content: Remove Visual Studio 2017 - Visual Studio
Content Source: docs/install/remove-visual-studio.md
Product: visual-studio-dev15
GitHub Login: @heaths
Microsoft Alias: tglee

Yes, it removes all instances. This is meant as a last resort for any catastrophic configuration errors. Uninstalling through the Visual Studio Installer should be the first thing you should try. Reliability has greatly improved from version to version, so if you find you are in a terribly corrupt state and think you require running the cleanup tool, please first open a feedback ticket from within the Visual Studio Installer in the upper-right corner so we can investigate.

Adding doc feedback label in case you want to note this in the topic, @TerryGLee.


Compass calibration blinking LED is very dim

It's more off than on.

Thanks @martinwork.  Fixed in master.


Add RHOS Support

Signed-off-by: Vishal Thapar<EMAIL_ADDRESS>

/cc @aswinsuryan

We want this in 2.5, need a proper environment to test.

I tested with ACM2.4 and ensured that ports are open and gateway is tagged, but not the end to end flow since the clusters had overlapping CIDRS and global net is not available in acm2.4.

/approve

/assign @skitt @sridhargaddam

/lgtm

/cherry-pick release-2.5


Tables containing code with pipe characters are formatted wrong

Test case
test.markdown:
| abc | head2 |
| ---| ----- |
| x     | `|||` |

Command:
mdast < test.markdown

Expected output
| abc | head2 |
| --- | ----- |
| x   | `|||` |

Observed output
| abc | head2 |     |
| --- | ----- | --- |
| x   | `     | `   |

 |

<stdin>
       3:13  error    Incorrectly eaten value: please report this warning on http://git.io/vUYWz
       3:14  error    Incorrectly eaten value: please report this warning on http://git.io/vUYWz

✖ 2 errors

Supplementary info
$ mdast -V
2.0.0

Thanks @anko for reporting this!
I remember markdown-it having a similar problem. They came up with an approach which I implemented here (although, as the warnings suggest, not correctly…)
The errors should of course be fixed, just like the weird newline in the last cell. However, I’m not sure if it’s possible to
parse the pipes in inlineCode in tableCells the way you expected.
The current system first gathers the cells (before there’s knowledge of inlineCode). Later, the content of cells is parsed as inline.
I’ll look into it this weekend

Sorry that I didn’t get back to you earlier, hope I have some time this weekend :anguished:

Well, I fixed the incorrect eating errors, but I haven’t fixed the pipes in inline-code yet. The only viable system for that seems to be to actually pre-parse the content in each cell for inline-code :anguished:


Fixed : edit note issue

Fixed #100

Can you share a video regarding the fix.

Here it is
https://github.com/aritra-tech/Notify/assets/20904033/16346ed0-4def-43bc-93f9-6aa72495e259


KHARMA 2024.3

There's been a lot of development hitting dev recently.  KHARMA should probably get a release early this year, which I propose should coincide with the first round of INCITE runs as is tradition.
Highlights:

First-order flux corrections (FOFC)
Kastaun robust primitive variable recovery
Multizone improvements
Implicit/EMHD bugfixes
electron temperature tracking fixes and tests
Upwinded B fluxes
New reconstruction schemes
Split/simplified floor injection
Reconstruction fallback
Some other stuff from #74

This code is running a bunch of tests pretty nicely on Frontier, so it's well worth pulling & playing with it -- the robust inverter is enabled by default, and fofc/on=true will enable FOFC.  Planning to formally release after a few sign-offs, late this week or next week.

This is ready to release when FOFC is merged today, I'd hope for Friday-ish?  It should get some more tests but I want to freeze what I'm using for INCITE runs.
I'd love if others could confirm their use cases aren't broken, and that the switch to the Kastaun inverter by default hasn't impacted them (except possibly for the better! You can specify inverter/type=onedw to compare).  Feel free to also enable FOFC/HLLE and play with that, I've gotten some fantastic results being able to lower floors to sigma=1000+ in MADs and similar fun.  flag_verbose = 2 will tell you when FOFC is being invoked, for me in 2D it settles from ~50% to 0-1% pretty quickly and stays there -- it also reduces the floor hits to about that level.
SANE in 2D, 256^2 in MKS, HLLE fluxes and S&G'07 CT, scale ranges 1e-6 to ~1e0:

Hi, do you want me to review this PR?

That would be great!
As for releasing though, currently I'm worried about #81 so it may be a bit.  I'd like to verify that any fix works before committing to support the code as it is, since everyone else seems to be running into the issue more than me...

Sounds good! I thought you were waiting on a required/approving review.
I'll go ahead and approve it and you can merge once it's good to go.

After much faffing about with transmitting polar conditions, I bring you:
https://github.com/AFD-Illinois/kharma/assets/3892634/3f5ed856-76dc-4b1b-aaa5-269f79641ba5
Releasing Friday if nothing comes up. For real this time. For sure.

Releasing.  It's still not impossible to make a run crash, but it's a heck of a lot harder than it used to be.  This version has all the tools we need; getting the runs we want will just be a matter of applying them.


What is the relationship of this project to paixaop/node-sodium?

Why is this other URL listed in package.json?
  "repository": {
    "type": "git",
    "url": "https://github.com/paixaop/node-sodium"
  },

good spotting. this started as a fork of that project which I maintain, because unfortunately node-sodium was not being maintained quickly enough for my needs.
it also incorporates javascript polyfils so that it works transparently in the browser, etc.
(there are two, one optimized for fast, one for small!)
see https://github.com/dominictarr/chloridedown for my fork of node-sodium.

also see this discussion: https://github.com/dchest/tweetnacl-js/pull/99
when I get the time I intend to rewrite the bindings around the api discussed in that thread.

I see, well maybe just to avoid confusion then the URL should still be updated?

see https://github.com/dominictarr/chloridedown for my fork of node-sodium.

I'm currently looking over all the various ECC libraries out there, and I'm confused as to what the difference is between TweetNaCl and node-sodium is. Are they essentially two implementations of the same thing? (And is there any reason to prefer node-sodium over TweetNaCl?).

@taoeffect node-sodium is a node binding to libsodium, which is a maintained fork of djb's nacl
tweetnacl is another djb project - it's a implementation of the core features in nacl that fits in 100 tweets, the idea here is to optimize for auditability, where libsodium/nacl are optimized for performance.
If you care about javascript, there is also libsodium-wrappers which is an emscripten compiled version of libsodium (by libsodium maintainer) and tweetnacl-js by @dchest
which is optimized for auditing also, it's a straightforward mapping from the C version
Currently we are lacking a good node binding to tweetnacl.c - It would be expected to be less performant than libsodium, but I can't test that because there is no binding available.
and I havn't figured out how to get node-sodium to build on windows, possibly tweetnacl.c would be easier to get a cross platform build going (it's one c file with no deps)
There is a problem that there are too many independent implementations (various forks and bindings) and I think we would do better to pull together as a community and create a cohesive ecosystem (with compatible interfaces, etc) which is what I'm directing my efforts towards.
I'll fix the url.

Awesome, thanks so much for that comprehensive rundown of the current state of NaCl and JS! 😄

the url is fixed in version 2.1.2


⚠ Bofrost.lu has degraded performance

In f62668b, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 882 ms

Resolved: Bofrost.lu performance has improved in 3c1b256 after 12 minutes.


Dependabot updates

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-95.4%) to 0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-95.4%

Covered Lines:
0

Relevant Lines:
0

💛  - Coveralls


Auto-update last update date along with stars and fork

How about using Shields.io image for stars?
Like this:

Electron
Tauri
Flutter

Stars

Forks

Last update

Could be an idea, but it's not really screen-reader friendly imo


Show Toolbar problem

I have a view that doesn't show columns for data and I don't know why. I clicked show toolbar and it added a row of stuff I don't want. I can't get rid of it, clicking again on show toolbar adds more rows.
Dragging images into this window doesn't work. I selected an image I saved, dunno if that is working or not either.

Terry, I can not reproduce this behavior in chrome/firefox/safari. Please specify the browser/od you are using and show it to me next time we meet.

I am closing this ticket because

we cannot reproduce for a while
and this specific bug is on the old website that we plugged out


Test and CI upgrades and maintenance

This PR includes several pieces of test and CI maintenance and upgrade work, including...

Drop py34 and add py37 to appveyor and travis
Move to py37 as primary test environment (runs doctests)
Move to npy115 as primary numpy version, with npy113 and npy114 also tested under py36
Upgrade all requirements pinned in requirements_dev.txt and requirements_dev_optional.txt (worth doing anyway, but hopefully also fixes a problem where coveralls was not working under py2)
Fix some pickle tests that were failing on my local system due to the fact the gnu dbm did not allow the same database file to be opened twice at the same time. I don't know why this didn't manifest previously, but have reworked pickle tests slightly to ensure that stores are closed if they can be prior to attempting to unpickle anything.
Simplify the PR template.

TODO:

[x] Add unit tests and/or doctests in docstrings
[x] Changes documented in docs/release.rst
[ ] Docs build locally (e.g., run tox -e docs)
[ ] AppVeyor and Travis CI passes
[ ] Test coverage to 100% (Coveralls passes)

OK, coverage is back up to 100% and all travis runs are passing.
Python 3.7 is still failing under appveyor, I think because numcodecs is not getting built properly, so Blosc is not available. I'm rerunning appveyor with more verbose logging for the numcodecs install to see if I can debug.
@jakirkham if you have any pearls of wisdom here, they'd be much appreciated.

Python 3.7 is still failing under appveyor, I think because numcodecs is not getting built properly, so Blosc is not available. I'm rerunning appveyor with more verbose logging for the numcodecs install to see if I can debug.

We need to regenerate the C files with Cython 0.27.3+. ( https://github.com/cython/cython/issues/1955 )

Many thanks @jakirkham, I can follow that up.

OK, all checks passing, I think this is good to go.

Thanks @jakirkham, comment adjusted.


fix/forbidden-folders

To test it you can create before-hand a .vscode folder, then build the extension with this PR, include it in your instance and you should see that this folder will disappear from both Kestra & storage
closes kestra-io/kestra-ee#670

QA not possible as creating a .vscode folder is not possible

You should do it before switching to that branch


mixed headings

Hi,
I'm just trying this and I have issue with detecting headings in my panel. It gets headings provided by my editors in tocify list as well.
my question is
How to avoid getting my editor headings in my sections list?

Code
<script>
    $(function() {
        var toc = $("#tocify").tocify({context: ".tocify-content", showEffect: "fadeIn",extendPage:false,selectors: "h5, h6" });
    });
</script>

Thanks.

Have you tried adding classes to the headings that are not from editors and then also making the selectors in tocify more specific? Something like selectors: "h5.section, h6.section"?


Create interface for character data

Create an interface for character data includes:

ability scores
skills
proficiencies
languages

Pull Request #7 solves this issue


[WIP] Serving Benchmark Refactoring

The goal of this PR is to refactor the current online serving benchmark script to make it easier to use and contribute to as well as include more features. Some major items are

[ ] Refactor backend query function out of main benchmark script so adding more backend support is easier/cleaner.

[x] TGI
[x] vLLM
[ ] TensorRT-LLM
[x] OpenAI Completions

[x] Token-level throughput information instead of request-level
[x] Add median/P99 TPOT in addition to average TPOT
[x] Add option to save results to a json file

Some other items that can be included are:

Include TTFT (This means outputs will have to be streamed)
Allow sampling input & output lengths from a distribution (Currently we have a fixed < 1024 input and < 2048 input + output setup)
Add a latency benchmark (similar to benchmark_latency.py where we run synchronous requests against the server to measure the best-scenario latency performance of the engine/backend)

Adding deepspeed mii as an a alternate backend will be expeted.

Adding deepspeed mii as an a alternate backend will be expeted.

Yea that's definitely doable. Since this is running against a server I'm considering taking this the default way to deploy a model server with mii deepspeed.

Here's a sample output from running this version of benchmark script
Traffic request rate: inf
Successful requests: 10
Benchmark duration: 20.108469 s
Total input tokens: 1522
Total generated tokens: 2211
Reuqest throughput: 0.50 requests/s
Input token throughput: 75.69 tokens/s
Output token throughput: 109.95 tokens/s
Mean latency per output token: 61.17 ms
Median latency per output token: 40.94 ms
P99 latency per output token: 145.59 ms

A few remarks:

Since TensorRT-LLM doesn't come with an API server, I took Triton as default serving backend to serve with TRT-LLM.
For this PR I didn't want to introduce any breaking changes yet, so we may leave any potential item to be added in a later PR.

@LiuXiaoxuanPKU Could you take a first pass on this PR and see if there's anything wrong (mostly the design)? I can iterate on it to refine this PR (e.g, adding scripts for launching servers) once the we agree on the design.

Here's a sample output from running this version of benchmark script
Traffic request rate: inf
Successful requests: 10
Benchmark duration: 20.108469 s
Total input tokens: 1522
Total generated tokens: 2211
Reuqest throughput: 0.50 requests/s
Input token throughput: 75.69 tokens/s
Output token throughput: 109.95 tokens/s
Mean latency per output token: 61.17 ms
Median latency per output token: 40.94 ms
P99 latency per output token: 145.59 ms

A few remarks:

Since TensorRT-LLM doesn't come with an API server, I took Triton as default serving backend to serve with TRT-LLM.
For this PR I didn't want to introduce any breaking changes yet, so we may leave any potential item to be added in a later PR.

@LiuXiaoxuanPKU Could you take a first pass on this PR and see if there's anything wrong (mostly the design)? I can iterate on it to refine this PR (e.g, adding scripts for launching servers) once the we agree on the design.

Hi Roger, thanks for the PR. Yeah, the design looks good to us,  please go ahead. The only thing we want to confirm is that the performance numbers are similar before and after refactoring.

Hi Roger, thanks for the PR. Yeah, the design looks good to us, please go ahead. The only thing we want to confirm is that the performance numbers are similar before and after refactoring.

Thank you for the response! Sounds good and I'll keep iterating on the PR, and as we discussed offline, TTFT will be added to the metrics to be measured.

Hi @simon-mo! I've refactored the script with dataclasses and edited the serving benchmark portion in the CI. A few last questions I have in mind:

I noticed the benchmark now runs on top of OpenAI API server instead of the /generate API server. Would you say the OpenAI API server should be used for serving with vLLM by default?
Initially I made the serving scripts in its own serving directory to make my development easier, but perhaps we should just leave those files at top-level under benchmarks. Let me know what you think.
Should we add benchmarks for other backends (TGI, DeepSpeed-MII, etc) into CI or add them to a separate process? I'm indifferent so I'll leave that to you guys to decide - happy to help either way!


Godot 3.5 break C# API GetMeta  Method not found

Godot version
v3.5.stable.mono.official.991bb6ac7
System information
unix, windows
Issue description
I use the SetMeta/GetMeta methods to transport missing ResourcePath parameters and access them by
var resourcePath = node.GetMeta("ResourcePath") as string;
With Godot 3.5 mono it fails now by
ERROR: 'System.MissingMethodException: Method not found: object Godot.Object.GetMeta(string)'

It worked with all previous versions
Steps to reproduce
var node = new Godot.Node();
node.SetMeta("ResourcePath", "foo");
var resourcePath = node.GetMeta("ResourcePath") as string;

Minimal reproduction project
No response

I can't reproduce this issue it works fine for me in v3.5.stable.mono.official [991bb6ac7], can you provide a minimal reproduction project? Also, is it only GetMeta or are other methods in the GodotSharp assembly missing?
My guess is the project is using the wrong DLL so I'm specially interested in the .csproj, it should look something like this:
<Project Sdk="Godot.NET.Sdk/3.3.0">
  <PropertyGroup>
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>
</Project>

Here the example Project, it works with Godot v3.4.5.stable.mono.official.f9ac000d5
But fails on 3.5
getMeta.zip

The cause seems to be the GodotSharp package reference in your .csproj. The Godot.NET.Sdk/3.3.0 already references the GodotSharp assembly but it's likely a different version in 3.5 so they conflict, you have to always reference the same version (or a compatible version).

This is only a example i have an extra mono project bundled as nuget package
This project needs the GodotSharp package.
Can you tell me the version Godot v3.5 is using?

Each Godot version is bundled with its own GodotSharp DLL built from source, the DLL is copied by the Godot editor to the game project. If you have a project that uses Microsoft.NET.Sdk instead of Godot.NET.Sdk you'd have to reference the DLL manually, like this:
<Reference Include="GodotSharp">
    <HintPath>$(GodotProjectDir)/.mono/assemblies/$(Configuration)/GodotSharp.dll</HintPath>
</Reference>

This is how the Godot.NET.Sdk references the GodotSharp assembly:
https://github.com/godotengine/godot/blob/1806e414b81a960be12eaa4774f3ecaabcd414ad/modules/mono/editor/Godot.NET.Sdk/Godot.NET.Sdk/Sdk/Sdk.props#L101-L108

Thanks for the answer, I will have to try it out

If is ok to upload the GodotSharp v3.5 to nuget to can reference in my project?

There are no plans to distribute NuGet packages of the Godot assemblies for the 3.x branch that I'm aware of, but we plan to publish NuGet packages for 4.0.
Any NuGet package that you find right now is not official so we can't guarantee it will work properly, I did experiment with it in the past around the 3.2 release but I deprecated it and don't recommend using it as it won't work on projects exported with the Release configuration.

Thank you very much for your time.
As far as I understand, I now have to configure my project without GodotSharp package reference. But I need to manually install the correct version of GodotSharp to compile it.
But I don't want to have extra project.godot in the module just to install the right version of GodotSharp. This would mean a manual step via godot -rebuild-solutions every time I check it out fresh from the repository.
A simple dotnet restore + dotnet build is not currently possible, or am I missing something?
You can close as clarified.

If you have the Godot editor available, you could manually copy the DLLs from the GodotSharp/Api directory next to the Godot editor binary and then you can dotnet build. The important part is to make sure that the DLL you use doesn't break binary compatibility with the DLL used by the consumer.
By the way, the PR that broke binary compatibility in this case was https://github.com/godotengine/godot/pull/58608 because it changes the GetMeta method to add an extra parameter. Even though the added parameter is optional, since the method signature has changed they are technically different methods so that's why it throws a MissingMethodException, usually you can avoid this by adding a method overload instead of modifying the method but since the C# API is generated from ClassDB we don't have much control over it.

Short update i have removed the usage of GetMeta/SetMeta and use instead a dedicated Node class with explicit Get/Set methods and it works.


Change API to accept names without the path and the lib prefix

At the moment, one has to specify either the full path of a dynamic library, or the full path sans the extension (and even in that case, you need to incant the magic spell of mylib::extension). In particular, this means that it is up to library user to construct the path correctly, and to make sure that on some OSes, lib is prepended, while on others it is not. Also, the user has to pass a concrete path, something else which is prone to change when porting.
Instead, or at least, in addition to this API, the user code should be able to not be aware of these issues, and just be able to get the library using its basic name (and perhaps a path).
Ideally, I would like to be able to write
auto foo_lib = dylib::load("foo");

and for load() to do the following:

Decide whether to use libfoo or foo as the basename.
Decide which extension to append
Search the appropriate sequence of directories for the shared library file (e.g. on Linux current dir, then LD_LIBRARY_SEARCH_PATH)

alternatively, and if we're stuck with the current API, I would expect this to work:
auto foo_lib_path = dylib::build_path("foo");
dylib foo_lib = dylib::lib(foo_lib_path);

and the above snippets could have variants specifying the location, e.g.
auto foo_lib = dylib::with_search_paths(dylib::search_recursively, "/some/path1", "/some/path2").load("foo");

for the first option or
auto foo_lib_path = dylib::with_search_paths(dylib::search_recursively,  "/some/path1", "/some/path2").build_path("foo");
dylib foo_lib = dylib::lib(foo_lib_path);

for the second option.

I was thinking of doing it this way :
class dylib {
    static constexpr auto library_path = "";
    static constexpr auto current_path = "./";

    static constexpr bool find_recursively = true;
    static constexpr bool find_locally = false;

    dylib(const std::string path, const std::string name, bool find_recursively = false);
}

Example :
// foo will became :
// libfoo.so on linux
// libfoo.dylib on macOS
// foo.dll on windows

// try to find foo recursively from the current path :

dylib lib(dylib::current_path, "foo", dylib::find_recursively);

// try to find foo from the os library path :

dylib lib(dylib::library_path, "foo");

current_path <-
static constexpr auto current_path = "";
static constexpr auto library_path = "";

These are confusing.  Also. ./ is a Unix convention.
static constexpr bool find_recursively = true;
static constexpr bool find_locally = false;

looks like an enum : bool { ... } to me... also "locally" is not the opposite of "recursively".
Also, you can't "find recursively"... you can "search recursively", or "recurse subdirectories".
Again, I would consider using a proxy object which receives search information, and returns something which has a search() or load() method that only takes the library name. That  proxy object may be used repeatedly.

These are confusing. Also. ./ is a Unix convention.

The windows API support both / and \
I have made changes to make the dylib class RAII compliant and add the cross-platform prefix support.
Do not hesitate to review thoses changes https://github.com/martin-olivier/dylib/pull/34

Again, I would consider using a proxy object which receives search information, and returns something which has a search() or load() method that only takes the library name. That proxy object may be used repeatedly.

I think i will add in a second time a class dylib::search_paths to do this job.
The main issue is that this lib is in c++11 and we don't have access to std::filesystem to make cross-platform recursive search

The main issue is that this lib is in c++11 and we don't have access to std::filesystem to make cross-platform recursive search

Remember you could always have conditionally-compiled code, so that some features are only available in C++14 and onwards.

Done in https://github.com/martin-olivier/dylib/pull/34


Scrolling bug (2.0.7)

I use hammer for adding "pull2refresh" functionality on a div in a phonegap app...
For some reason when enabled it prevents normal scrolling even in chrome browser (mobile toolbar enabled), while version 2.0.4 was working perfectly...
Here is a fiddle with the problem:
https://jsfiddle.net/georgekosmidis/dhf1yx54/17/

Click and hold the mouse, pull down to refresh (working)
Click and hold the mouse, push up to scroll (not working)

This line causes the problem... can't do without it ofcourse...
 h.get('pan').set({ direction: Hammer.DIRECTION_VERTICAL });

This is not a bug, that this was working before was likely either an issue in Chrome or a bug in Hammer prior to 2.0.5 whereby touch-action was set improperly. Correct use for this scenario involves configuring touch-action to a value other than none. See: hammerjs.github.io/touch-action/


Ways to create a generic saga that accepts parameters (api method, actions names..)

Is your feature request related to a problem? Please describe.
Hello, as described here: https://github.com/react-boilerplate/react-boilerplate/blob/master/docs/js/redux-saga.md we were creating a saga per each container.. instead of being associated with a container.. in our case we are using saga to manage api request so they are associated with data fetching only. We started to create one saga per each api request and then we realised it wasn't the right approach.
So we created a single saga like this..
// sagaWatcher.js
const sagaHandler = function*(action) {
 /* loading all missing variables/functions from action.meta*/
  }
  try {
    yield put({ type: loadingAction, payload: true });
    let payload;
    let params = getApiParams(action);
      payload = yield call(apiMethod, params);
    yield put({ type: successAction, payload, requestAction: action });
    yield put({ type: loadingAction, payload: false });
  } catch (e) {
    console.log(e);
    yield put({ type: failAction, payload: e });
  }
};
export default listener => {
  return function* watchActions() {
    yield takeLatest(listener, sagaHandler);
  };
};

and then when we want to inject some saga in our container we do this
// import getSagaWatcher from ./sagaWatcher
...
 useInjectSaga({
    key: 'mySaga',
    saga: getSagaWatcher(
      actionNames.request,
    ),
  });

The problem is that sagaInjectors cancel my saga before it finished execution because of this
if (hasSaga && oldDescriptor.saga !== saga) {
I guess that because I'm returning a new saga on sagaWatcher then they will never be same (oldDescriptor.saga !== saga) hence the issue.. how can I solve this problem? I want to keep using one single saga.
Describe the solution you'd like
I'd like to create only one saga manager to handle all similar cases.. I don't want to create one saga per api request or container.. they all do the same except for the api method, success/loading/fail actions which can be sent as parameters.
Describe alternatives you've considered
I've tried to put a generic saga when I create my store that listen for all request
store.js
...
sagaMiddleware.run(getGenericSaga)

and my saga is changed to
sagaHandler... same as before

export default function* watcher() {
  yield all([
    takeLatest(userActionNames.request, sagaHandler);
    takeLatest(carActionNames.request, sagaHandler);
    takeLatest(pollActionNames.create, sagaHandler);
    takeLatest(reportActionNames.update, sagaHandler);
...and more
  ])
}

But my sagas handler is never executed even when the action is dispatched
Additional context
1- I've posted the same issue here --[wrong location]-- but it dosen't look active given the posts there..
2- I've also installed this saga monitor   "@clarketm/saga-monitor": "^2.0.1", which helped me to detect why my saga was cancelled.. but not sure what else to do.
UPDATE: I've just posted the same issue in the correct place in spectrum... now I see it's very active
https://spectrum.chat/react-boilerplate/general/im-having-a-problem-with-useinjectsaga-im-using-a-single-saga-to-manage-all-the-api-communication~f7f317c6-5598-4f20-aefe-a4953ba70023

The problem was fixed by moving this code
useInjectSaga({
    key: 'mySaga',
    saga: getSagaWatcher(
      actionNames.request,
    ),
  });

before the useEffect.. I just moved at the beginning of the container and now it works as expected


Config system

i made config file system, and you don't need to modify code file (to prevent corruption)
CFG structure:
1 line - obj (separated by commas)
2 line - frames (separated by commas)
3 line - duration
4 line - textures (separated by commas)
5 line - output (format: block_id, texture_name. separated by commas)

duplicate?


New case selector for Calc that matches a value inside a range

I want to select a block if the value is > 0.10 and < 0.20. There is no way to do that currently. It could be an extension of "compareOp expr" like this:
compareOp expr '&&' compareOp expr

Leaving version number, version reference, extensive tests (with canon changes) , and updates to help page to finish.

It's doing this at the moment (note: two problems here):
> c1=complex(frac(7))
c1 = complex (frac (7)) -> ( 7, 0 )
> c2 = complex(frac(7), frac(9))
c2 = complex (frac (7), frac (9)) -> ( 7 / 1, 9 / 1 )
> c1/c2
c1 / c2 -> ( 0.3769230769230769230769230769230769, -0.4846153846153846153846153846153846 )
> c1=complex('7/1')
c1 = complex ('7/1') -> ( 7 / 1, 0 / 1 )
> c1/c2
Error: Negative exponent.


Automatic PR from RestAPI-PR1811

Generated from RestAPI PR: https://github.com/Azure/azure-rest-api-specs/pull/1811

Codecov Report

Merging #1520 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #1520   +/-   ##
=======================================
  Coverage   54.34%   54.34%
=======================================
  Files        3571     3571
  Lines       87947    87947
=======================================
  Hits        47793    47793
  Misses      40154    40154

Impacted Files
Coverage Δ

...etwork/v2017_09_01/operations/usages_operations.py
93.75% <ø> (ø)
:arrow_up:

...e/mgmt/network/v2017_09_01/models/security_rule.py
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

Merged from a more recent PR


"dbt --version" should also emit plugin versions

Describe the feature
dbt --version currently outputs the currently installed dbt version (and the most recently released one). It should also output the currently installed plugin versions.
Currently:
installed version: 0.16.0
   latest version: 0.16.0

Up to date!

I want:
installed dbt version: 0.16.0
   latest dbt version: 0.16.0

Plugins:
  - dbt-postgres: 0.16.0
  - dbt-redshift: 0.16.0
  - dbt-bigquery: 0.16.0
  - dbt-snowflake: 0.16.0

Up to date!

This feels kind of silly for the built-in plugins, but:

someday we're going to split the plugins that currently live in "core" out
this will make debugging third-party/external plugins much easier. I don't want to ask people to run pip freeze | grep dbt-spark to find out what version of the spark plugin they're on.

I think Up to date! will probably only refer to dbt-core, but I could be convinced otherwise. Extending it beyond core is probably more work, if we're worried about ambiguity.
the dbt-spark/dbt-presto adapters will have a dbt/adapters/{pluginname}/__version__.py - we should extend that pattern to the plugins that ship with core and use it.
Describe alternatives you've considered
Leave it as-is?
Who will this benefit?
What kind of use case will this feature be useful for? Please be specific and provide examples, this will help us prioritize properly.

developers/maintainers/people supporting external plugins
users who want to know what version of a plugin they're running

@beckjake Let me know what you think ?
As a side note, when doing local development which branch should we take a checkout from  ?


Run clippy in continuous integration workflow

Fixes some clippy lints and enables clippy in CI. This is the last step of #9.

Looks like this is failing because clippy is being run on stable, while I tested locally on nightly. This is because associated types were recently ignored in this lint (see this PR), but that change doesn't seem to have bubbled up into stable yet. I'll go ahead and switch the workflow to run on nightly instead.

Codecov Report

Merging #44 (00924d1) into master (344396d) will decrease coverage by 0.17%.
The diff coverage is 10.90%.

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

Two of the three failures are related to a regression on the latest nightly builds of clippy. See this issue. I believe the third is also a false-positive, as Option<T> implements Copy if T implements Copy, and Location is Copy. Therefore, removing the reference is actually not the same thing logically. Here is a related issue.
Perhaps I should stick to stable instead? Or at least the beta channel? It seems that nightly may be a little more unstable than I hoped for.

I'm going to keep this workflow running on nightly. It looks like these lints will be fixed and live on nightly soon. This merge can wait until then.

Rather than waiting, I will put an allow lint for these, with a todo comment referencing the relevant issues. That will unblock this.


Help!! NameError: undefined local variable or method `article' for main:Object

hi, I am quiet new to ruby. I created a table article, I created a new row, but when I tried populating any of the fields e,g article.title = "my first" . the following error pops up, I am using cloud 9 ide
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/console.rb:110:in start' from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/console.rb:9:instart'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:68:in console' from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:inrun_command!'
from /usr/local/rvm/gems/ruby-2.3.0/gems/railties-4.2.5/lib/rails/commands.rb:17:in <top (required)>' from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:inrequire'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in block in require' from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:inload_dependency'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in require' from /home/ubuntu/workspace/bin/rails:9:in'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:in load' from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:inblock in load'
from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in load_dependency' from /usr/local/rvm/gems/ruby-2.3.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:268:inload'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/commands/rails.rb:6:in call' from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/command_wrapper.rb:38:incall'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application.rb:185:in block in serve' from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application.rb:156:infork'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application.rb:156:in serve' from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application.rb:131:inblock in run'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application.rb:125:in loop' from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application.rb:125:inrun'
from /usr/local/rvm/gems/ruby-2.3.0/gems/spring-1.6.4/lib/spring/application/boot.rb:18:in <top (required)>' from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:inrequire'
from /usr/local/rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
I have been stucked here for long, Please help.

This is a repository for MailCatcher, a ruby tool.
For help getting started with Ruby and Rails I suggest reaching out to the Ruby on Rails community asking your question on Stack Overflow, or jumping on the #rubyonrails IRC channel on irc.freenode.net.
Good luck!


WIP: MT refactor

DO NOT MERGE
A complete refactor based on @tebeka code review. A much leaner & meaner code with he same functionality as master except for authentication.
The tests almost pass. The last part of the last test (reconnect) hang.
I would start the review with "go test -v" and reviewing component_test.go

This is stale #11 is better


report that installs failed due to ctrl+c even before completing k8s install

I agree that it would be better to test if this was a rerun, but I don't know if that should go in a handler like this
There's more rerun tracking stuff in the pipeline anyways


fade in and out to black for transitions

To improve the overall experience, fade in or out from black would looks nice.
Tetris Attack does this.

overall transition from black or transition from black only above the playfield?

The who screen would fade to black.
So you could just have a big black shape cover the entire screen and tween its opacity.
When there is a transition should likely be between states. so going from Menu to ModeVs etc...

shouold be easy with phaser tweens if it should do some effects like sizing, alpha, coloring etc


Update Posts “humansofrangitotokiara-joubert”

Automatically generated by Netlify CMS

👷 Deploy Preview for rangitoto-reporter processing.

Name
Link

🔨 Latest commit
69273a9e5f2a7b8bd9e88043f97c9a8bd26d7690

🔍 Latest deploy log
https://app.netlify.com/sites/rangitoto-reporter/deploys/62b0342730ae390009c39146


Feat: Add Scroll to top button

Describe the feature
I will add scroll to top button in home , about and team page.
Add ScreenShots
NA
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[ ] I'm a VSoC'24 contributor
[X] I want to work on this issue

@mdazfar2 This issue is created but not solved can i work no this ?

hey @zalabhavy As of now, we do not need it. We will let you know in the future if there is a need. Please search for another issue and raise it, which I'm happy to assign to you.


[ROCm] Turn off unaligned access mode

There are correctness issues related to unaligned accesses. See https://github.com/iree-org/iree/issues/18798

Ouch, sdxl is very slow with this
https://github.com/iree-org/iree/actions/runs/11584595911/job/32252523388#step:8:144

😿

Lets just turn on SLP vectorizer and call it a day?

That's the hope now. Nirvedh is doing a CI run and checking perf I think.

Closing because I don't think we want this.


Update css selector for payment step

When there is already a credit card associated to the user in the payment step, the js code isn't able to recognise the selected payment_method_id because there is another radio button(the one which allows you to switch between a saved payment method or a new one).
In this pr I'm changing the css selector from div[data-hook="checkout_payment_step"] to #payment-method-fields

@BravoSimone can you please remove the rubocop related commit (which is now already on master), thanks!

@kennyadsl done 😄


Update translation model

Write serializer and views for translation model.

[x] TranslationSerializer
[ ] TranslationDetailView
[ ] TranslationListView

[ ] Add ability to search translation for specific word


[firebase_ml_vision] Unable to scan Aztec QRCodes in iOS without quiet zone

In iOS, unable to scan most of the Aztec code images where the code is surrounded by any colour apart from white. The same files can be scanned in Android very easily.
To Reproduce
Steps to reproduce the behavior:

Try scanning the attached file in both iOS and Android
Android is able to scan the code, while iOS is not.

Expected behavior
iOS should also be able to scan such images. The rate of failure for such images is too high for us to be able to use this plugin in iOS.
Flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, v1.17.1, on Mac OS X 10.14.6 18G4032, locale en-IN)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.45.1)
[✓] Connected device (1 available)

• No issues found!

Hi @viplavrawal
I am not sure what do you mean "quiet zone"
Using your image on Android, just shows this  using PictureScanner from official example

flutter doctor -v
[✓] Flutter (Channel dev, 1.19.0-1.0.pre, on Mac OS X 10.15.5 19F96, locale
    en-GB)
    • Flutter version 1.19.0-1.0.pre at /Users/tahatesser/Code/flutter_dev
    • Framework revision 456d80b9dd (2 weeks ago), 2020-05-11 11:45:03 -0400
    • Engine revision d96f962ca2
    • Dart version 2.9.0 (build 2.9.0-7.0.dev 092ed38a87)

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at /Users/tahatesser/Code/sdk
    • Platform android-29, build-tools 29.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.5)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.5, Build version 11E608c
    • CocoaPods version 1.9.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 45.1.1
    • Dart plugin version 192.8052
    • Java version OpenJDK Runtime Environment (build
      1.8.0_212-release-1586-b4-5784211)

[✓] VS Code (version 1.45.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.10.2

[✓] Connected device (6 available)
    • SM M305F      • 32003c30dc19668f                     • android-arm64  •
      Android 10 (API 29)
    • Taha’s iPhone • 00008020-001059882212002E            • ios            •
      iOS 13.5
    • iPhone 11     • 0EC80516-8F99-4A0C-89ED-2273579862F9 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-13-5 (simulator)
    • macOS         • macOS                                • darwin-x64     •
      Mac OS X 10.15.5 19F96
    • Web Server    • web-server                           • web-javascript •
      Flutter Tools
    • Chrome        • chrome                               • web-javascript •
      Google Chrome 83.0.4103.61

• No issues found!

I noticed that the cases when the Aztec code was surrounded by a non-white colour, the chances of failure became around 90% for the images that I tested the plugin with.
The weird thing is that Android was able to scan this image easily for me, while the same was not true for iOS.
PS: By lack of quiet zone I mean that the QRCode is not surrounded by white colour, but some other colour.


Remaining scaling issues: detached panels and auto-rescale

The recent updates to support multiple monitor scales is a huge leap forward. My test system has 3 monitors, with one at 150%. I'm able to move windows between monitors now, and the system is generally stable.
Of course, I am observing 2 remaining issues :)

After a window is moved between displays at different scales, it doesn't re-scale automatically. But then manually resizing the window triggers the needed re-scale.

It looks like support for detached panels at non-100% scale is still pending. If a panel is detached from the main window at non-100% scale, it exhibits several glitches: it goes crazy when resized, the mouse pointer is offset from the title bar when dragging, etc.. basically similar to what the main window was doing prior to the recent update.

A bit of complexity here since the window and multiple detached panels could each be displayed on different monitors at different scales. But currently the behavior is very near perfect.

Save/load layout was broken (this is regression bug which I fixed in the develop branch).

3 monitors... I have a great tester suitable for the project :)

CustomWindow component have the following code. It does exactly what you described with the window resize, but automatically, and i tested this. The window interface scales depending on which monitor has a larger window area, so you might not have a rescale on dragging end if the window still occupies a significant part of the previous monitor. You can get an unambiguous result by moving the entire window from one monitor to another. To resolve this issue, I will need additional information such as screen recording. I can't reproduce it yet.

private void OnHeaderPointerUp(PointerEventArgs e)
{
    if (_movingProcess)
    {
        . . .

        // hack to force update layout scale when working with different scaled screens
        var targetSize = Size;
        Window.Size = new Size(targetSize.Width, targetSize.Height - 1);
        Window.Size = targetSize;
    }
}

I will check it as soon as I have access to a computer with 2 monitors.
Thank you for report!

In addition to 1. This problem is reproduced on Photino-only project. So if the window containing the DockPanelHost component is the default Photino window (as in Photino.Blazor.Docking.Simple), the effect will remain. But for the main window you can also use the Photino.Blazer.CustomWindow project, and the problem will be solved, since I control dragging window process.

Thanks @Andersen27, this is consistent with what I'm seeing. None of these issues are present when using Docking+CustomWindow.

I'm closing it because it's irrelevant


Embedded data could not be deleted keep on repeating

HI Please help on this
I deleted the everything in db/xxxxxxx index folder and replace source_documents folder with new set of files.
However, the old embedded data still popping out from the query ,
for eg. my old files were are .html, new files are .txt
but when running the query it replied answers from > source_documents/xxx.txt: and > source_documents/xxx.html:
and even I delete the data base index folder and run again, it is even getting messier,
now  duplicated > source_documents/xxx.txt: answers will come out.
How we can clean the database or embedded data properly
Thanks.

sorry, the use case is we need to edit and optimise the data source files every time. After testing the QA prompt. So we need fresh database after changing the source files

True, when I try with a random document after installing and running, its still showing me information from "Think and Grow rich.pdf"
> source_documents/030413.hill.think.and.grow.rich.pdf: stricken by it. The habit of reading patent medicine advertisements. THE FEAR OF LOSS OF LOVE The original source of this inherent fear needs but little description, because it obviously grew out of man’s polygamous habit of stealing his fellow-man’s mate, and his habit of taking liberties with her whenever he could.

has anyone able to flush the old data and start add your own data to source_database
?


Single char global variables

Hi,
first off, amazing work on the script, looks really good!
I'm just from spending days integrating 3 different navigation systems together and most issues seem to come from various scripts using the same single char global variable names.  There's only 26 available and as soon as you try to add your script in complicated yolol setups, you'll be up for a nice debugging session, at least that's how it went for me.
So I was wondering, are you using some kind of pseudo language that converts into yolol via yodk, like yasm?  Do you think it would be possible to rewrite the code so it  uses 2-char variables, preferably with the same prefix so people have less trouble installing your script?
I've checked the current version and you're already pretty close to max line length, it wont be as easy as adding some characters and be done with it, hence my previous question about a pseudo language.
I've also send you a Discord friend request as I couldn't figure out how to reach you..

Hi,
I adjusted your script as follows, using the O character as prefix and renaming autoscan to scan.  This also allows for using the default :Reset field of the material point scanner
j="\nMat|Stacks" o=j a=" Ore" b="\n" d="♥" e="♡" h="ium" TO=20
:scan-=s s=e :scan=s+:scan f=1728000 :Reset=1 :OL=0 goto2+:OL
:scan-=s s=d :scan=s+:scan g="ite" i=0 :OI=0 :OL=1 :OR=0
:OS=1 tv=0 o=j c=" Crystal" i++ if i>TO then :OL=0 goto9 end goto5-:OS
:OL=0 i/=:OR :OI=0 v=:OV/f*1000 tv+=v o+=b+"① "+(:OM-a-c-g-h)+"|"+v
i/=:OR :OI=1 v=:OV/f*1000 tv+=v o+=b+"② "+(:OM-a-c-g-h)+"|"+v
i/=:OR v=tv at="\nCLass:"+(4+v>10+v>11+v>18+v>26+v>124+v>270)
i/=:OR :scan=s+o+b+"Total Stacks:"+tv+at :OS=0 :Reset=1 goto2+:OL
w="\n !WARNING!" i/=:OR :scan=s+w+"\n\n «TIMEOUT»\n"+w goto2+:OL
:scan=s+w+"\n\n  Nothing\n   Found\n"+w goto2+:OL

// https://github.com/DerPfandadler/Pfandadler-YOLOL

Device fields:

name
default
device
info

:scan
""
textpanel
Display results

:OL
0
scanner
Active

:OI
0
scanner
Index

:OR
0
scanner
ScanResults

:OM
""
scanner
Material

:OV
0
scanner
Volume

:OS
0
scanner
Scan

I'll fork and create a PR later if you don't mind ;-)


How to train ResNet-50 on person and vehicle ReID datasets like MSMT17 and VeRi?

❓ How to do something using fastreid
Hi, I want to train ResNet-50 for person and vehicle on MSMT17 and VeRi dataset.
1- Can I train ResNet for two classes and use both datasets at the same time or I need to train one by one?
2- What is the training process?
2- Can I also use ResNet-18 or ResNet-34  in the same way to increase the speed?
My ultimate goal is to train ResNet ReID model for the person and car. and then combine with this project (https://github.com/GeekAlexis/FastMOT) for Fast multi-object tracking.
How I can achieve this goal?

Actually, I did not try to combine person and vehicle into one reid model. Because the input size of person reid is 128x256 and vehicle reid is 256x256.
My suggestion is that training two reid models, one for person reid and the other for vehicle reid. The upstream task is detection, so you can use detection results to decide which reid model needs.


Problem when using rclone as a context menu - upload task

What is the problem you are having with rclone?
What is your rclone version (output from rclone version)
rclone v1.46.0-121-ga28239f0-beta
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 7, 64 bit
Which cloud storage system are you using? (eg Google Drive)
Any
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone copy ....
A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)
Not applicable.
What I'm trying to do is create a context menu entry like this on Windows: "send APK file to X folder".
 You need to open cmd.exe and run it from there" . I think it might be a problem with rclone because I can create context menues with other tools.

Ah...
I think you've got two possible solutions.  Wrap your rclone command in a .bat or .ps script.
Or recompile rclone with go build -ldflags "-H windowsgui"  then it will be a "windows gui" binary. I'm not 100% sure this will work but it might be worth a try!

Thanks. That fixed the issue.


Get mc.asm to compile

mc.asm is not hooked and doesn't even compile up so inter prediction is slow (like 30% of the time spent). When added to the list of compiled asm files, I get an error complaining about undefined references to rav1e_mc_subpel_filters.
In dav1d, these tables are defined as such.
const int8_t ALIGN(dav1d_mc_subpel_filters[5][15][8], 8) = {
    [DAV1D_FILTER_8TAP_REGULAR] = {
        {   0,   1,  -3,  63,   4,  -1,   0,   0 },
...

This is basically the same thing as SUBPEL_FILTERS in partition.rs.
I cannot find any way to align an static array in rust. I also have no idea if a static rust array will have defined behavior when imported into assembly. It doesn't seem like it should.
I can think of three ways to work around this. 1st and 2nd are by defining the arrays a second time in C or asm. The 3rd is by defining the array only in C and removing the rust version.
I don't want to put this in mc.asm so the we can just copy over new versions. Maybe we use a separate file.

I'm thinking of adding it to assembly. Should this be a permanent solution? Probably not.

Extern "C" should make it work in assembly. The assembly hardcodes C ABI in for various platforms, so as long as the rust uses C ABI, it's fine. That said, it seems that all the static alignment stuff only works on structs, not on arrays or other bare types :( maybe @lu-zero has a fix?

For static tables maybe this is enough


Examples do not show object lifecycle callbacks

The c examples are pretty trivial. I would really like to see examples of hooking into the GC life-cycles for creating an instance of a ruby object implemented c, and for object deletion. Also there is no example of how to manage a c context (eg some memory pointer) in a ruby object implemented in c.

A detailed example about this would be welcome. I'm a little bit lost about the same.

@jfcalvo: What exactly made you feel lost? Have you looked at mruby-time? There's some stuff you can ignore (fallback definitions for platforms without functions like timegm() or gmtime_r()) but otherwise it can be seen as an example.


Ldap rename bug: emulate flag was always true

Ldap rename bug: emulate flag was always true

@kristofkotai Since this is a boolean condition, changing it could be considered a BC break unless the feature as provided is broken as-is. We cannot know that, however, without either (a) a test, and/or (b) links to specification documentation that will demonstrate that the flag needs to change.


Need Clarification

I have been excited by reading the Android Weekly with your project, however by reading the Readme, I understand that you have to inform in the app, every process that may handle delay (animation, async task...). Is that right ?
I'm surprise of this, because even if the no-opp version disable the lib process outside of test phase, putting test decencies in app it no stat of the art. What do you think ?
To be clear, I understand the problem ! this is your solution that trigger question to me.
Friendly Anthony

What is "state of the art", really? To me, comprehensive testing is state of the art, and the benefits of making that easier outweighed the small downside of having some no-op library code in your production release. By the way, I was actually inspired to create this solution by observing what Square does with their LeakCanary library -- is LeakCanary not "state of the art," then?

Hi @trobalik, please do not be obfuscated, this is not my aim, I just want get background.
My question is not about no-op topic, that is of course a very good thing from Square as from you, my point if more about writing done in every part of code that:

need to be tested
is async
a piece of code that belong to your lib. I mean there is not anymore a clear separation of concern.

I know what you tried to solve, and really understand your solution, but maybe someone may have another (maybe better) solution.

I will join this discussion - so your api still require manual call that tells 'we're iddle now' for example for async activity change? And it's all about simplifying messy espresso api? (nice work by the way).
I think that readme need more clarifications when it comes to samples because right now it's for ppl who already did some iddling resources via clean espresso. Also can you explain why there is no-op version? By default androidTest code shouldn't be added to release version.

@bholota, yes, it's about simplifying the Espresso API so devs don't have to roll their own custom IdlingResources, and also about making it as easy as possible to notify Espresso about custom asynchronous processes. The simplest solution was to make it possible to make Cappuccino calls within the codebase itself. Obviously, I didn't want those calls to do anything in release, and so I created a no-op version of the library, following Square's example with LeakCanary. If there weren't a no-op version, then you wouldn't even be able to compile a release variant without first removing all the Cappuccino calls.

Oh, I got it now, just investigated sample app. So Cappuccino has white-box approach - resource watcher has to be implemented also in app code, it's clear now.


Add donate link to navigation bar

Currently the link to donate to OpenSplitTime is found only in the footer, which is small and not always easy to see. Need to add a 'Donate' link or button to the navigation bar.

Added 'Donate!' button to nav bar.


Add date part specifier synonym docs

Added documentation about date part specifier synonyms that have been merged into duckdb master branch.

Thank you for both the code and the docs! It's really awesome when folks do both - we really appreciate it!


Translate contribute/suggest-improvements into Japanese

Closes #23890.

/assign @inductor
Page preview: https://deploy-preview-23891--kubernetes-io-master-staging.netlify.app/ja/docs/contribute/suggest-improvements/

/lgtm

/approve


INDY-1704: create a multi-sig-actions HIPE doc.

Signed-off-by: Sergey Shilov<EMAIL_ADDRESS>

Seems that the weak link is the config txn that configures this policy. Some description of how this will work is important. I assume that only Trustees can submit config TXNs. Is that right? Secondly, how many Trustees will be required to change the config TXN?
If the policy is that it takes three trustees to add a trustee but it only takes one trustee to change the number of trustees it takes to add a trustee, then, in fact, it only takes one trustee to add a trustee.

It would seem that adding trustee would always have to require the most signers, otherwise, all other actions reduce to this number. For example, if I wanted to upgrade the ledger to a new version (a bad version with a backdoor). But I only have two trustees colluding with me and the update txn requires three trustees. But adding a trustee requires only two. I could quickly add a new trustee and then I would have the required three and I could then issue the upgrade txn.

Seems that the weak link is the config txn that configures this policy. Some description of how this will work is important. I assume that only Trustees can submit config TXNs. Is that right? Secondly, how many Trustees will be required to change the config TXN?
If the policy is that it takes three trustees to add a trustee but it only takes one trustee to change the number of trustees it takes to add a trustee, then, in fact, it only takes one trustee to add a trustee.

It's a question of genesis transactions for config ledger. Concrete values of quorums is a question for discussion and agreement of stakeholders. We can define the lowest thresholds as a constants in the indy-node code base, but I don't think that it is right solution as we want to have it configurable.

It would seem that adding trustee would always have to require the most signers, otherwise, all other actions reduce to this number.

Yes, sure.

Is the method of transferring between trustees out of scope for the doc?
Then Trustee1 transfers the JSON to Trustee2 appears in muliple places, but that transmission method is never discussed.

@swcurran
I believe exact steps (and calls) for libindy are provided in Tutorial section: https://github.com/hyperledger/indy-hipe/blob/10fc1f46631de4c86c95717cfa15446f67f42646/text/multi-sig-actions/README.md#tutorial
Is it enough?

@devin-fisher @sergey-shilov

I assume that only Trustees can submit config TXNs. Is that right?
I think yes.
Secondly, how many Trustees will be required to change the config TXN?
I believe we can use other strategies (hard-coded in config percent-based or constant-based number of Trustees required) for the first txn to config ledger. After this we can use the current config txn value for the update.


Update package name in main.py

I think the test works after this change

Sorry that was the internal name of the project, fixed.

Thanks!


Not detecting GPU(s)

GPU: 3080
OS: Win10
Starting up the script it does not detect my GPU at all.
python dream-factory.py
[controller] >>> reading configuration from config.txt...
[controller] >>> starting webserver (http://localhost:8080/) as a background process...
[controller] >>> detected 0 total GPU device(s)...
[controller] >>> ERROR: unable to initialize any GPUs for work; exiting!

Heya! This might be an easy fix I'm not smart enough to accomplish and I'm surprised no one got this before or at least asked about it. I have a Strix 3080 10GB. After days of fighting with conda and multiple broken installations now that I have it set up it does not detect my GPU at all. Any logs that help me find out why?
python dream-factory.py
[controller] >>> reading configuration from config.txt...
[controller] >>> starting webserver (http://localhost:8080/) as a background process...
[controller] >>> detected 0 total GPU device(s)...
[controller] >>> ERROR: unable to initialize any GPUs for work; exiting!

I'm getting the same error but it also seems there was no config file generated in /stable-diffusion after install. Testing on Linux Mint 20.1

Here's what I had to do to get the code running, performed between steps 2 and 3.

Install NVIDIAs CUDA for my system, I used the network install after following the workflow.
CUDA Toolkit 11.8 Downloads

Then I installed pytorch. The site has a nice workflow on what conda command to run for your system. And while I had CUDA version 11.8 installed, pytorch-cuda 11.7 seems to work (pytorch-cuda 11.8 is not released yet). It also has some verification steps further down to ensure it installed correctly, and that CUDA is enabled for the GPU.
PyTorch

That will get you to the point that it detects your graphics card, however, the program continued to fail for me, so I had to perform some additional steps.

Added some new channels to conda so I wouldn't have to specify them each time they would be referenced.

conda config --env --add channels conda-forge
conda config --env --add channels anaconda

Then I had to install a bunch of additional packages, the last one is just to get rid of a warning and can be skipped.

conda install cherrypy
conda install omegaconf
conda install tqdm
conda install einops
conda install pytorch-lightning
conda install pandas
conda install transformers
conda install ftfy
conda install kornia
conda install scipy=1.8

As for the config.txt file, there should be a config-default.txt that's referenced if config.txt doesn't exist.

Here's what I had to do to get the code running, performed between steps 2 and 3.

Install NVIDIAs CUDA for my system, I used the network install after following the workflow.
CUDA Toolkit 11.8 Downloads
Then I installed pytorch. The site has a nice workflow on what conda command to run for your system. And while I had CUDA version 11.8 installed, pytorch-cuda 11.7 seems to work (pytorch-cuda 11.8 is not released yet). It also has some verification steps further down to ensure it installed correctly, and that CUDA is enabled for the GPU.
PyTorch

That will get you to the point that it detects your graphics card, however, the program continued to fail for me, so I had to perform some additional steps.

Added some new channels to conda so I wouldn't have to specify them each time they would be referenced.

conda config --env --add channels conda-forge
conda config --env --add channels anaconda

Then I had to install a bunch of additional packages, the last one is just to get rid of a warning and can be skipped.

conda install cherrypy
conda install omegaconf
conda install tqdm
conda install einops
conda install pytorch-lightning
conda install pandas
conda install transformers
conda install ftfy
conda install kornia
conda install scipy=1.8

As for the config.txt file, there should be a config-default.txt that's referenced if config.txt doesn't exist.

Hi, I'm getting the same error as the people above. I tried the 4 steps outlined above, but I still get:
(dream-factory) C:\Users\njm3\dream-factory>python dream-factory.py --prompt_file prompts/example-standard.prompts
[controller] >>> reading configuration from config.txt...
[controller] >>> starting webserver (http://localhost:8080/) as a background process...
[controller] >>> detected 0 total GPU device(s)...
[controller] >>> ERROR: unable to initialize any GPUs for work; exiting!
Is there something else I should try (and/or is this a case of user error)?

@Elyssen-1 did you ever figure this out? I'm assuming you have the nvidia driver installed - if so, have you made any changes to your config.txt file?
@MorinTedronai are you still having issues? The config.txt file should be in the root (/dream-factory) directory, not in /stable-diffusion - setup.py should have made a copy of config-default.txt and named it config.txt.
@Pocketsnb did you run setup.py (or see any errors while it was running)? Setup should have installed pytorch of all of the required packages for you.
@Pocketsnb what GPU do you have? And are the nvidia drivers installed? If so, is USE_GPU_DEVICES = auto in your config.txt file?
Apologies for the delay in getting back to everyone, I'm currently traveling. Would definitely like to get the bottom of any issue(s) with setup.py if it's not working for everyone so I can make corrections, so please send as much info as possible. If you don't believe setup.py is working properly for you, please try running it in verbose mode (python setup.py --verbose) and look for errors in the output if possible!

@nmalcolm-mcw
Might be a hardware thing, in that the graphics card doesn't support CUDA, that's about the only thing I can think of.
nVidia has a listing of CUDA enabled graphics card at this site:
CUDA GPUs - Compute Capability
I expanded this table and found my desktop graphics card, so I know it was supported.
CUDA-Enabled GeForce and TITAN Products
You can also try the verification steps on PyTorch - Windows Verification to see if pytorch installed correctly and if CUDA is available for your graphics card.

@rbbrdckybk , setup.py did not install pytorch or the other packages on execution for me, which I thought was odd. I didn't see any errors during execution.
I'll startup a new environment and follow the default steps with --verbose to see what comes out and post back later.

(dream-factory-test) PS F:\dream-factory> python setup.py --verbose

Cloning all required repositories:
Cloning into 'taming-transformers'...
remote: Enumerating objects: 1335, done.
remote: Total 1335 (delta 0), reused 0 (delta 0), pack-reused 1335
Receiving objects: 100% (1335/1335), 409.77 MiB | 10.74 MiB/s, done.
Resolving deltas: 100% (280/280), done.
Cloning into 'CLIP'...
remote: Enumerating objects: 236, done.
remote: Total 236 (delta 0), reused 0 (delta 0), pack-reused 236 eceiving objects: 100% (236/236), 5.91 MiB | 11.80 MiB/Receiving objects: 100% (236/236), 8.92 MiB | 12.26 MiB/s, done.

Resolving deltas: 100% (122/122), done.
Cloning into 'stable-diffusion'...
remote: Enumerating objects: 492, done.
remote: Total 492 (delta 0), reused 0 (delta 0), pack-reused 492Receiving objects:  92% (453/492), 37.61 MiB | 12.52 MiBReceiving objects:  93% (458/492), 37.61 MiB | 12.52 MiB/s
Receiving objects: 100% (492/492), 42.52 MiB | 12.50 MiB/s, done.
Resolving deltas: 100% (212/212), done.
Cloning into 'Real-ESRGAN'...
remote: Enumerating objects: 755, done.
remote: Counting objects: 100% (20/20), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 755 (delta 5), reused 14 (delta 3), pack-reused 735
Receiving objects: 100% (755/755), 5.37 MiB | 10.04 MiB/s, done.
Resolving deltas: 100% (406/406), done.

Installing Pytorch (this may take a few minutes):

Unable to find executable - try re-running setup with the --shell option, e.g.:
   python setup.py --shell --force

After this failed, I deleted the cloned branch and restarted the environment to try with --shell and happily that seemed to have fixed the installation issue and I didn't see any other failures in the verbose output. A config.txt was also automatically created, so that preempts another issue I had seen previously where, when running on config-default.txt, the webserver wouldn't stay up. However...
[controller] >>> detected 0 total GPU device(s)...
[controller] >>> ERROR: unable to initialize any GPUs for work; exiting!

Here's a conda list --export of the environment that succeeds and the one that fails on my system, as well as a google doc with a comparison of the packages.
package-list-success.txt
package-list-failure.txt
dream-factory Package Comparison

@rbbrdckybk I went with a different repo that seems to be working right away.
None of the solutions above seem to work in my case with a freshly created (dream-factory) conda env.
That being said launching with the (base) env now detects my GPU, I've probably installed something that was missing but does not install on it's own following the installation steps.
I'll attach the env list in case @Pocketsnb can make any sense out of it, if they want to compare mine to theirs.
package-list-base.txt
If there are any more logs/lists/steps I can find/do to debug let me know.

Apologies to everyone that was experiencing this issue, I'm back from traveling and set up a clean environment today to test this. Look like my installer was trying to set up an older version of pytorch that isn't properly supported anymore, causing a non- cuda enabled version to be installed (which won't work with Dream Factory).
It's fixed now. If you were having issues with this before and want to give it another shot, it's best to start with a fresh environment to avoid having to manually uninstall/upgrade things.


When will StarRocks or Doris data sources be supported?

When will StarRocks or Doris data sources be supported?

We don't have anything planned in the short-term, but with the newly refactored Connection interfaces it should be pretty straightforward. How would you be looking to use Arroyo with these? Read from them? Write from them? Both?


Add auto accept flag

Add an auto_accept flag in case the connection should not automatically be accepted. Default to true for backwards compatibility.
Also added a .gitignore file and fixed an error in the readme.

@eric-gonzales I don't have the opportunity to test this right now; the only concern I have is sometimes Terraform doesn't play nice with booleans and it wants things converted to a string.
Have you tested this? Everything else looks good 👌

@thomasbiddle, currently have this running on a project I'm working on - it works fine with the boolean or the string. I'm fine switching it if you prefer.

Great! Thanks for the contribution!


chore(main): release 2.2.0

:robot: I have created a release beep boop
2.2.0 (2022-12-21)
Features

added metrics module (386d129)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/flowcore-io/library-flowcore-microservice-ts/releases/tag/v2.2.0 :sunflower:


[#2673] add migration for reimporting universities

Pull Request Checklist:

[x] Positive Test Case Written by Dev

[x] Automated Testing

[x] Sufficient User and Developer Documentation

[ ] Passing Jenkins Build

[ ] Peer Code review and approval

Positive Test Case

Navigate to sign-up and type "Brigham" in the organizations field.  Validate one of the suggestions includes "Brigham Young University Idaho"

Build finished.


Remove real-time speech recognition from models that don't support it

We should remove the real-time speech recognition or show a better warning for models that don't support it, such as all community libraries
cc @mishig25
https://huggingface.slack.com/archives/C01RW4B4VCH/p1656283532862179

closed by #215


Resolve reference passed to validate method

Is is possible for validate function to resolve ids inside schemas ?
example :
var ajv = require('ajv')();

ajv.addSchema({
    id: 'my-schema',
    type: 'object',
    definitions: {
        foo: {
            id: 'foo',
            type: 'object',
            required: ['bar']
        }
    }
}, 'my-schema');

ajv.validate(
    'my-schema#/definitions/foo', {
        bar: true
    });

// throws Error: no schema with key or ref "my-schema#/definitions/foo"

At the moment validate method does not resolve references - it only allows to use references that were previously added via id attributes (both top level and internal). For now you can instead use this:
ajv.validate({ $ref: 'my-schema#/definitions/foo' }, {
    bar: true
});

Alternatively you can use id attribute from sub-schema:
ajv.validate('foo', {
    bar: true
});

If you inner id was '#foo', you could refer to the subschema as 'my-schema#foo' both in validate (as a string without $ref) and in other schemas (in $ref).

Thanks ! passing $ref works.
By the way I think I got confused by the signature in the docs:

.validate(Object schema|String key|String ref, data) -> Boolean

Shouldn't it be this instead ?

.validate(Object schema|String key|Object ref, data) -> Boolean

Not really. { $ref: 'my-schema#/definitions/foo' } is just a schema. key is the second argument passed to addSchema method, ref is schema id attribute (there is no need to have both btw, in your case you don't need to pass the second parameter at all).
I was thinking that validate should really resolve reference in the same way as it happens during the schema compilation.

Would this be the right test for this feature?
    it('should validate against previously compiled schema by ref', function() {
      ajv.compile({ id: '//e.com/defs.json', definitions: { def: { type: 'string'}} }) .should.be.a('function');
      ajv.validate('//e.com/defs.json#/definitions/def', 'a') .should.equal(true);
      ajv.validate('//e.com/defs.json#/definitions/def', 1) .should.equal(false);
    });

yes

By the way, not sure if you saw it in readme - it's alway better to use a compiled validation function.
Also if validate resolves the reference it most likely will need to compile the schema. This feature can be implemented by simply replacing string with the schema (as I did above) but this approach has the performance cost of an extra function call in compiled schema.

Yes I saw that. I am actually using addSchema() then validate() or getSchema() because I have a bunch schemas scattered in different files, compile would complain if it can't resolve a ref to a schema that has not been added yet.
I tried to dig through the code to see if I can help with a pull request. Is it getSchema that needs work? or do I need to go to sleep :) (late in here...)
Something like :
   function getSchema(keyRef) {
        var parts = keyRef.match(/^([^#]+)(#\/.+)?$/),
            schemaObj = _getSchemaObj(parts[1]),
            v;
        switch (typeof schemaObj) {
            case 'object':
               v = schemaObj.validate || _compile(schemaObj);
               break;
            case 'string':
               v =  getSchema(schemaObj);
        }
        return ( parts[2] ) ? v.refs[parts[2]] : v;
    }

And hey ajv rocks ! Thanks for this module.

Thank you :) yes _getSchema, but you need to use resolve function... At the moment it is too tightly coupled to compile, but that's the one.

Actually using getSchema also returns the same function that is returned by compile - it can be used after all schemes are added

:+1: I would also like to be able to pass the JSON-pointer directly to getSchema, although the workaround to use getSchema({$ref:ref}) works. Thanks.

in 4.5.0


Allow multiple statements in a single migration file

Add multiStatement=true to allow for multiple statements in a single migration file

Codecov Report

Merging #198 (ae78cfd) into master (577f356) will decrease coverage by 0.49%.
The diff coverage is 100.00%.

:exclamation: Current head ae78cfd differs from pull request most recent head 24a5a97. Consider uploading reports for the commit 24a5a97 to get more accurate results

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   79.56%   79.06%   -0.50%
==========================================
  Files          29       28       -1
  Lines        1013      946      -67
==========================================
- Hits          806      748      -58
- Misses        143      144       +1
+ Partials       64       54      -10

Impacted Files
Coverage Δ

database/mysql.go
57.30% <100.00%> (ø)

database/migrator.go
50.00% <0.00%> (-12.00%)
:arrow_down:

database/database.go
36.84% <0.00%> (-7.90%)
:arrow_down:

database/sqlite_cgo.go

Continue to review full report at Codecov.

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


Small changes introduced while testing the benchmarks

a bit of refactoring (mainly introducing type hints to improve understandability of Python code)
export found config to BM results in JSON format

Closed because outdated.


Reprocessing from an unfiltered data browser creates incorrect processor filters

UI makes a bunch of processor filters with the only condition being Status == Unlocked

The filter is correctly created but when tasks are generated in ProcessorTaskManagerImpl - runSelectMetaQuery() line 938 it needs to add an extra condition to only consider parents of children that were created with the processor we are creating tasks for.


Problems with signed integers

Describe the bug
There seems to be a problem with signed integer implementations. I noticed two issues:

this test is failing for me (https://github.com/FuelLabs/sway-libs/blob/master/tests/src/signed_integers/signed_i128/src/main.sw)
I think there is a problem with subtraction implementation. For example, I128(0) - I128(-50) results in I128(-50), but should be I128(50)

Steps to reproduce

Run tests for signed integers

Minimal reproducible code example
let u128_5 = U128::from((0, 5));
let i128_neg5 = I128::neg_from(u128_5);
assert((I128::zero() - i128_neg5) == I128::from(u128_5)); // bug, this should pass

Rust Version
rustc 1.79.0 (129f3b996 2024-06-10)
Forc Version
forc 0.62.0
Expected behavior
Subtraction should return correct result.
All tests in the repo for signed integers should pass.
Additional context
No response

Resolved by https://github.com/FuelLabs/sway-libs/pull/268


New Policyfile.lock.json generated during chef push

Version:
ChefDK 0.13.21
Environment:
This happens on both my local Mac computer and remote Windows CI server.
Scenario:
I wasn't sure if this was the desired behavior so I wanted to create an issue for clarification. Basically, I'm trying to have my CI server run Chef tests and then push the policy after everything has passed. Unfortunately, the current behavior of regenerating a Policyfile.lock.json when running chef push means that the latest lock file in the remote repo will not be the one that is on the Chef server.
Steps to Reproduce:

Using a cookbook with a Policyfile, run chef update to update the Policy revision.
Commit files (make note of the revision in the Policyfile.lock.json) and push to remote repository
Run chef push <policy_group> to push policy to the group

Expected Result:
I expect the policy revision that was created with the chef update command to be the one that is on the Chef server in the policy group and in the remote repository.
Actual Result:

A new policy revision is generated during the chef push command.
The Git repo is dirty because the Policyfile.lock.json has been modified and not committed
The policy revision on the Chef server is the new one from the uncommitted Policyfile.lock.json

I think this has to do with the call to write_updated_lockfile in the Push class. It seems to me that the lockfile should be validated and then pushed without writing another one.
Corresponding line in code: https://github.com/chef/chef-dk/blob/75ecb686077ba901896f0b77194da94c2830cf2e/lib/chef-dk/policyfile_services/push.rb#L78

Is there any update on this. It's definitely affecting our Chef cookbook workflow mojo.

Just figured out that this also means there is no way for all policy groups to have the same revision. That's probably the biggest issue.

Can someone comment that this has at least been seen?
Cheers!

I have seen it. Have not had a chance to dig in but plan to unless someone else beats me to it.

Thank @mwrock. Let me know if you need more infoz

@mwrock I was trying to go through the code to see if I could potentially submit a patch. What I'm unclear on is if there's a case where write_updated_lockfile actually needs to be called within the push command. It seems to me that push should only be concerned with seeing if there's a valid lock file and validating it then pushing the lock file that's there. The push spec says "validates the lockfile, writes any updates, and uploads the cookbooks" but I don't see a use case for "writes any updates". Am I completely off base?

I took a close look at this just now (sorry for the delay). I have to admit that I agree with you that this does not seem right. It feels like this easily enables scenarios where the principle of least surprise could be very much violated.

I'm facing the same issue.  I also thought I'd be able to push the .lock.json file.  But chef push expects an .rb and regens .lock.json, which may be different.

We have found that we should never use chef update. We've found it to be unreliable.
So in your CI when you're regenerating a lockfile, run
rm Policyfile.lock.json
chef install Policyfile.rb

And then check that in.
Then in CI when you're pushing it, you need to make sure that the cookbooks are cached locally, and you do this with chef install:
chef install Policyfile.rb
chef push qa Policyfille.rb

In short, don't use chef update with your workflow

@mhedgpeth:

We have found that we should never use chef update. We've found it to be unreliable.

Can you please clarify what you mean by "unreliable"? Perhaps with examples? This issue seems to be mostly concerned with chef push, which unexpectedly triggers an update to the policyfile, so I'm curious what problem you're having and how it relates to this issue.

I'm providing the workaround/solution to the issue.
Problem was when running chef update and then chef push, it is providing a different version of a json. This is because the chef update is always updating the json file. This is what I mean by unreliable; from a user perspective it's doing different things than you would expect.
I expect chef update to not update the json file but it does.
The workaround is to do as I say above: delete the json file & run chef install if you want to create it. Otherwise run chef install and it will do what you thought chef update did before.
So if this bug remains open, I believe it's really due to chef update doing things that people don't expect.

chef push updates the file too.

I want to lock my dependencies and never have the lock file change unless I explicitly run chef update. We should make it so chef push can fail if there are changes.

I just successfully followed the following workflow on this version: Chef Development Kit Version: 0.16.28
rm Policyfile.lock.json
chef install Policyfile.rb
# note the revision id here
chef push development Policyfile.rb
chef show-policy policyname

It outputs the revision id that was generated after the chef install. This workflow works.

@mhedgpath what does git status show after the Chef push? Can you also try
running RSpec with a clean working directory and then see if it's still
clean? The issue is that these tasks should not regenerate the lock file
and cause the working copy to be dirty.
Evan
On Thu, Nov 3, 2016 at 12:42 PM mhedgpeth<EMAIL_ADDRESS>wrote:

I just successfully followed the following workflow on this version: Chef
Development Kit Version: 0.16.28
rm Policyfile.lock.json
chef install Policyfile.rb
note the revision id here
chef push development Policyfile.rb
chef show-policy policyname
It outputs the revision id that was generated after the chef install.
This workflow works.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/chef/chef-dk/issues/831#issuecomment-258218605, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAKUOgUbtv-B4CvLHHcrEy0VQK8SNByuks5q6hzsgaJpZM4IcRym
.

@mhedgpeth if you commit all your files between the install and the push, tell me if your lockfile as a diff after the push.

@mhedgpeth:

I expect chef update to not update the json file but it does.

I think you misunderstand what chef update is designed to do. From the help output:
[birdsnest ~]% chef update --help
Usage: chef update [ POLICY_FILE ] [options]

`chef update` reads your `Policyfile.rb`, applies any changes, re-solves the
dependencies and emits an updated `Policyfile.lock.json`. The new locked policy
will reflect any changes to the `run_list` and pull in any cookbook updates
that are compatible with the version constraints stated in your `Policyfile.rb`.

[...]

Contradictory to your expectations, chef update is explicitly designed to update the json lockfile.

My bad, I think I got confused with the command there. In a discussion on slack it looks like this problem is due to there being changes exist in the cookbook that aren't a part of the chefignore file. So the key to making chef push to not regenerate a new policy is to ensure that the contents of the cookbook (especially if there is a cookbook reference to .) haven't changed, and if they did, that they're a part of the chefignore. I hope that makes sense.

@mhedgpeth Thank you for your suggestion. Unfortunately, in my case the file is updating because the SCM info is changing. Specifically, the git commit of the repo the lockfile is in has changed, not because anything within the cookbook has changed. I'm not sure how useful of a feature that is for the chef push semantics.
If you have any suggestions around avoiding the SCM update I'm super interested.

Closing because this seems to be working as documented.

@cheeseplus I'm not sure that's the case... The original issue was about chef push causing an unexpected rewrite of Policyfile.lock.json.  The comments then got sidetracked into a few different issues, but as far as I can tell, the OP still has not been addressed.

I agree with @Poohblah. I think this issue may need to remain open, because I don't think a chef push should update the lockfile. The lockfile should be locked, unless you run chef update.

I have the same problem with this config.
Chef Development Kit Version: 2.0.26
chef-client version: 13.2.20
delivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)
berks version: 6.2.0
kitchen version: 1.16.0
inspec version: 1.30.0
thanks @Poohblah
We can't use policies anymore with it

Any movement here? chef export is also updating the lock file. While this is more of an annoyance for us with our workflow, I can see this causing issues for others.
Commands like push and export really should not be writing the lock file at all (or at least they need a --no-update flag).

I was poking at this earlier and it seems like the update is happening fairly deep in the flow. I'll take another look at this soon and see if I can't get a PR made to at least make it optional, but no promises. Would like to add my 👍 to this being a... strange thing.
In our use case we're using CI to run chef export on our lockfiles and using chef-zero with the generated tarballs. Since the lockfile gets updated when generating, we can't use the committed lockfile to generate the tarball, which means there doesn't seem to be a whole lot of point to using a lockfile in the first place, at least for our case. I could be wrong, and would appreciate any feedback to the contrary :)

Facing the same issue. Fixed by putting this following in the chefignore
# Policyfile #
##############
Policyfile.rb
Policyfile.lock.json


Providing audio file as input to speech to text

Can we provide a short audio file (.mp3) as an input to react-native-voice and get the corresponding text?
Since it does not allow to save the audio file, we need to use the audio file later as well.

The function you mentioned is something lots of companies provide for their paid service (such as Google Speech Recognition API, IBM Watson, Microsoft Oxford API). Although Apple allows to access it with AudioEngine (low-level API), Google will not provide it because they are already selling it.
In terms of whether this library will deal with those function, we need further discussion because it will break the cross-platform support.

@daniamurad Did you solved your problem?

how about get audio file from react-native-voice is it possible ?

how about get audio file from react-native-voice is it possible ?
impossible I tried

how about get audio file from react-native-voice is it possible ?

Its impossible I tried

i already found solutions on android you need to make custom activity and use startactivityforresult to start reconizing and it will create temp audio file in app private folder (cons is it need to show pop up with microphone button in order to get a file)
for IOS u can simply call save audio function in thier code

@punjasin is this an issue of the file is not being supported in React Native core to pass to libraries? Or are you expecting RN core to handle


"code ." is spewing log output to my terminal window now, this is new?

Does this issue occur when all extensions are disabled?: Yes/No

Version: 1.75.1 (user setup)
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:32:34.589Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No
Steps to Reproduce:

run code . in a terminal window
look at the output produced (notice I get the same thing with --disable-extensions).

That was it, thanks for the tip.


Disable subtitles

Is there an option to disable the subtitles? Thanks!

You should update to the latest version of Zapp (3.6.1) where a subtitle bug has been fixed. If this does not solve your problem, you have to disable closed captions inside your system settings: https://support.google.com/accessibility/android/answer/6006554

Can’t believe I didn’t update before! Thanks, now it’s working as expected.


Create week3

TODO: Do these steps and delete them.

Add title as DEV | Feature name.
Add description of the feature.
Assign your teammates to reviewers.
Assign the issue to yourself.
Assign the PR labels which are explained in labels section.
Assign project as SWE574.
Assign progress status from the project.

Description

Detailed explanation of your implementation.

Notes

Things to pay great attention.

Could you also do to things that are written in description and then delete them?


LSST

Added LSST isochrone option in preprocess/padova.py and dotter.py, made changes fro python 3.

I've totally missed this. We should review and merge.


[AutoRelease] t2-media-2022-12-27-81642(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/3591
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=1012
BuildTargetingString
azure-mgmt-media
Skip.CreateApiReview
true

issue link:https://github.com/Azure/sdk-release-request/issues/3591


fixed the delay when side menu needed to close

wrapped the open and close of the side menu within the main dispatch queue.

If you can fix the outstanding quality item from Codacy I'm happy to merge this one. Thank you!


Add CI Workflow

This adds a continuous integration workflow that runs linters and tests on pull requests (and on pushes to main and staging) and reports the results as status checks. It should help make obvious that a PR is not safe before clicking the merge so we don’t have failed deploys or need things like #74 to quickly fix a bad merge.

Once this lands, you may want to comment @dependabot rebase on all the pending Dependabot PRs. That way they’ll pick up on this new CI workflow and run all the tests.

fixes #81

Looks like the server tests may be a bit flaky. :(
Otherwise this should be good to go! I’ll go ahead and merge later this afternoon if I don’t hear any concerns from you about the flakiness.

I'm happy to merge!  We may end up rewriting the "server tests" entirely, anyway.


Provide some way of making global pairing the default

It's useful to have the choice between setting a pair for a particular repo, and setting it globally. But in my experience, you have to consistently do one or the other - they don't mix well. I keep getting into situations where i'm committing as someone who worked on the machine the previous day, but set their pair differently. I could fix this by having a more effective brain, but realistically, that's not going to happen.
So, what i'd like to do is have some way of forcing global pairing on a machine. So if someone writes git pair kb wc, it actually sets a global pair. That way, there's only global pairing, and no confusion.
Forcing global pairing, rather than local pairing, makes more sense for us, as we often have multi-repo projects, with a pair at one machine committing to multiple repositories in the same session.
If you think this is a sane feature, and if i can find some way of implementing it sanely, i am happy to submit a PR.
The best thing i've thought of so far is an environment variable. It could be GIT_DUET_GLOBAL, which forces globalness if set. Or it could be GIT_DUET_OPTS, which is added to the command line, so it could contain other options (if there are ever any). How does that sound?

I'd rather have the option be configurable through the environment than be dependent on the format of the command line arguments.  No objections to the feature - sounds like a useful addition!

I'm :+1: to the environment.

can you cut a new gem with this feature and release to RubyGems

@codeword released as version 0.5.1, thanks for the poke!

:+1: thanks to @codeword and @jszwedko. I realise i should have carried on and encouraged a release, but am too lazy. Anyway, :shipit:.
@codeword is this worth a mail to labs-developers?

:heart_eyes_cat:


fix: testing

Ref: https://github.com/freeCodeCamp/curriculum-helpers/pull/46
__
  Summary: :hammer_and_wrench: This code needs a fix

please give a review, please do not merge yet.


Add (totally) no animation mode to the game

This PR adds shouldUseMotion check in initialization of the app which gets passed around as useMotion flag in

game
nebula
win screen

closes : #249, #250, #267, #240

@kosamari I'll do the changes here

sg!


6_aspnet_identity.rst

Incorrectly states "which replaces the call to UseIdentity" instead of "which replaces the call to UseAuthentication".

yep, good catch. thanks!


dev: release v2.2.0

TODO List:

[x] Add Terminal Detection for Unix Systems and Windows.

[x] unix
[x] windows >= build 10586 (8 bit) and >= 14931 (24 bit)

[x] Add 24 bit support for Windows Console
[x] Add rounding off of 24 bit color to the terminal's max capacity

[x] 8 bit (256 colors)
[x] 4 bit (16 colors)

[x] README.md enhancement
[x] go.doc changes
[x] Code Cleanup
[x] Print a warning if the terminal has no color support
[ ] More testing for Unix Systems
[x] Use gookit/color instead of faith/color
[x] Use color.PrintXX instead of fmt.PrintXX??
[x] Add White and HiWhite as inbuilt colors
[x] More comments??
[x] Fix CI
[x] Move detection logic to detect_unix.go and detect_windows.go respectively.

CI failing, will fix it by night.

Fixed