Save loading#2 warnings

Hello again,
similary with another issue i created earlier, we have one more problem with save loading on version 64bit. Can someone please help ? Thank you.
 TDATA2 is the gump id for a container, and the value 1 is invalid for a container, thus the error.
Invalid skill key: ... From which sphere version do these saves come from? 56b? Main branch? I don't remember when and if this was changed, but currently you can set ACTION only by using the skill key (HIDING) and not the defname (skill_hiding). Modern saves should already write the action with the skill key. If these are old save files don't worry, because the npcs will lose the action they were doing at the moment of the save but that's all.

Yes that helped for part of warnings! Now only warnings we have are for gump id 0:

21:44:WARNING:(spherechars.scp,202)Unknown container gump id 0 for 01769
21:44:WARNING:(spherechars.scp,268)Unknown container gump id 0 for 01769
21:44:WARNING:(spherechars.scp,285)Unknown container gump id 0 for 0176a
21:44:WARNING:(spherechars.scp,6161)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6167)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6174)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6181)Unknown container gump id 0 for 0176a
21:44:WARNING:(spherechars.scp,6188)Unknown container gump id 0 for 0176a
21:44:WARNING:(spherechars.scp,6195)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6202)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6209)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6216)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6223)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6230)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6237)Unknown container gump id 0 for 0176b
21:44:WARNING:(spherechars.scp,6300)Unknown container gump id 0 for 0176b

Yes you are right. It is sphere from 2013-2014, 0.56c - nightly. Ok we will ignore that.

Yes nothing will be deleted. Try to remove the TDATA2 from the item 0176b.

This is our scp for key rings.

[ITEMDEF 01011]
DEFNAME=i_key_ring
TYPE=T_KEYRING
TDATA2=1
WEIGHT=1
CATEGORY=Provisions - Miscellaneous
SUBSECTION=Keys
DESCRIPTION=Key Ring
RESOURCES=2 i_ingot_iron
VALUE=10
SKILLMAKE=TINKERING 30.0, t_tinker_tools

ON=@DCLICK
SRC.MESSAGE Drop keys on an empty key ring

[ITEMDEF 01769]
// Key ring with keys on it
DEFNAME=i_key_ring_1
TYPE=T_KEYRING
TDATA2=1
RESOURCES=1 i_ingot_iron
WEIGHT=1
CATEGORY=Provisions - Miscellaneous
SUBSECTION=Keys
DESCRIPTION=Key Ring w/Keys
DUPELIST=0176a,0176b

When i tried to comment TDATA2, warnings with gump id 1 was solved, but came up warnings with gump id 0.
Also same scp are on old sphere where saves come from.

OK FINALLY FIXED. For us its new that every item with gump like containers have to have TDATA3 and 4 with min and max size of gump, otherwise it is warning you.
Coool!


Dotted line shows at the bottom after convert.

macOS version: 14.1.1 (23B81)
Kap version: Version 3.6.0 (<IP_ADDRESS>6)
Steps to reproduce

Start Kap with select area.
Start recording.
Convert the recording.

Current behaviour

It shows a dotted line at the bottom of the gif(see below gif) sometimes, I tried a few times, only one time it worked without the line.

Expected behaviour

It is supposed to work out without the line.

Workaround
It does seem like the problem can be gone if keep trying.

Same

Right, it's inconsistent. But I do feel like it happens more when selection is smaller(e.g less than 1000 * 1000)

Same issue here


feat: support CMake for Qt 6

As the qmake based build doesn't work with Qt ^6.5.0, I added a CMake build. The build process is identical to most CMake projects (see readme):
cmake -B build -G Ninja
ninja -C build

Building zlib with CMake caused zconf.h to be deleted and moved to zconf.h.included. I applied the fixes mentioned in https://github.com/madler/zlib/issues/133 as a patch (running get_libs.sh should yield the exact same state - i.e. no changed files).

@jurplel I tried making the kimageformats-binaries script work with this PR (commit here) and was kind of successful (I didn't feel like messing with the macOS universal binary stuff), but I made the following modifications to QtApng on top of this PR:

/src/3rdparty/zlib/src/CMakeLists.txt references zlib1.rc which isn't in the repo, so I added it.
The name of the output binary was different than before (e.g. ApngImagePlugin.dll vs qapng.dll), so I made it use the old name.

@Nerixyz Thank you for including those fixes! All the work you put into making this build with CMake is much appreciated.
@jurplel I now have this fully integrated in my kimageformats-binaries fork, including the macOS universal binary (commit here). I've tested the new QtApng plugin in qView on both macOS and Windows and it works fine.

I am experiencing a couple of issues when testing locally:

The qmake build doesn't seem to work:

gcc -c -pipe -O2 -fPIC -std=gnu11 -fvisibility=hidden -w -fno-exceptions -flto -fno-fat-lto-objects -DQT_NO_LINKED_LIST -DQT_DEPRECATED_WARNINGS -DQT_ASCII_CAST_WARNINGS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_DYNAMIC_CAST -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I. -Isrc -I/usr/lib/qt/mkspecs/linux-g++ -o .obj/adler32.o src/adler32.c
In file included from src/zutil.h:22,
                 from src/adler32.c:8:
src/zlib.h:1468:32: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
 1468 | ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
      |                                ^~~~~
src/zlib.h:1902:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Z_ARG’
 1902 | ZEXTERN int            ZEXPORTVA gzvprintf Z_ARG((gzFile file,
      |                                            ^~~~~
make[3]: *** [Makefile:677: .obj/adler32.o] Error 1
make[3]: Leaving directory '/home/bowad/dev/QtApng/src/3rdparty/zlib'
make[2]: *** [Makefile:48: sub-zlib-make_first] Error 2
make[2]: Leaving directory '/home/bowad/dev/QtApng/src/3rdparty'
make[1]: *** [Makefile:73: sub-3rdparty-make_first] Error 2
make[1]: Leaving directory '/home/bowad/dev/QtApng/src'
make: *** [Makefile:49: sub-src-make_first] Error 2

The cmake build doesn't work on my local machine

/usr/bin/ld: ../../../3rdparty/libpng/src/libpng16.a(pngpread.c.o): warning: relocation against `png_push_fill_buffer' in read-only section `.text'
/usr/bin/ld: ../../../3rdparty/libpng/src/libpng16.a(png.c.o): relocation R_X86_64_PC32 against symbol `png_zalloc' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [src/plugins/imageformats/apng/CMakeFiles/ApngImagePlugin.dir/build.make:152: plugins/imageformats/libqapng.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:1073: src/plugins/imageformats/apng/CMakeFiles/ApngImagePlugin.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

I might be mistaken about this, but I think that make clean did not clean up everything. I think some of the files in the src/3rdparty subdirectory stuck around.

We can stop supporting the qmake build, as long as the cmake works on older Qt versions.

@jurplel I didn't try to build locally, just through GitHub Actions on kimageformats-binaries. CMake worked fine there but only w/ Qt >= 6.5 I believe. So I kept QMake for the older versions, but if you notice in the commit I mentioned yesterday, that script was pulling an entirely different Git branch for QMake because it wouldn't work against this PR. I figured it out later though, fixed it here, and then was able to clean up the kimageformats-binaries build script a bit.

Why doesn't the CMake build work on Qt5? I feel that the ideal way to do this change is to remove qmake support.

Updated everything to use CMake. For Qt 5 there's no qt5_add_plugin, so I copied the one from Qt 6 and trimmed it down to the stuff we actually use. I didn't update the CI, as it needs a major overhaul (not just qmake → cmake). If you want me to update the CI, I could try that.

I was able to get everything building on CMake now, Actions run here, I didn't try using the resulting binaries yet though.

Qt's docs for qt_add_plugin says the ability to set sources were introduced in Qt 6.5, so I had to make this change to compile with Qt 6.0-6.4.
I had to pass -DCMAKE_POSITION_INDEPENDENT_CODE=ON to get it compiling for Linux, otherwise got an error like /usr/bin/ld: src/3rdparty/libpng/src/libpng16.a(pngerror.c.o): relocation R_X86_64_PC32 against symbol 'stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC. No idea if that's the proper/safe fix (I'm new to building C++ stuff 😄), but it fixed the build at least.

I'm guessing png_static and zlibstatic don't have PIC enabled, since it's only on for SHARED and MODULE targets. Not 100% sure what the idiomatic solution for this is. I don't want to force people to enable CMAKE_POSITION_INDEPENDENT_CODE for the entire project.

https://github.com/Nerixyz/QtApng/pull/1 added a mini CI. It doesn't build with Qt 5.15.2 on macOS, because it doesn't have universal binaries and because of libpng we can't use CMAKE_OSX_ARCHITECTURES.

Oo nice! If you're looking for another challenge, I wonder if it would build with the latest libpng/zlib. I updated those in my fork, but ran into issues getting libpng to detect/use zlib and had to do this probably not great patch to get it working. If I understand correctly, libpng wants ZLIB_ROOT set now but I couldn't figure it out.

If I understand correctly, libpng wants ZLIB_ROOT set now but I couldn't figure it out.

The _ROOT variables are mostly for making CMake discover already built libraries. CMake's internal FindZLIB.cmake to find the build. But we haven't built ZLib yet. What I did in https://github.com/Nerixyz/QtApng/compare/ci/update...Nerixyz:QtApng:feat/update-libpng was to alias ZLIB::ZLIB to zlibstatic. Since libpng only uses target_link_libraries (not any exposed variables) this works fine.

Really excellent work!!


Move all ACS joins to the backend

Currently, we do a lot of left joins on the FE, these should all be moved to the BE

Closing in favor of: #1202


feat(extras): blink

Description
Extra to use blink.cmp instead of nvim-cmp.
Todo

[x] tokyonight suport
[x] basic integration
[ ] check / update all cmp sources
[ ] copilot and others integration
[x] native lazydev source

Limitations
There's no copilot source, so instead when enabling both blink and copilot:

blink ghost text is disabled
copilot suggestions are enabled
use <tab> to navigate snippets and accept copilot completions

Related Issue(s)

https://github.com/LazyVim/LazyVim/discussions/4679

Merging this is as. Can be refined later.


Mismatched licenses

The files Date.ini, Date And Time.ini, Large Clock12.ini, and Large Clock24.ini have metadata that states they are licensed under the CC BY-NC-SA 3.0 license, but the LICENSE file says that the project is licensed under the Apache-2.0 license.
If the intended license is the Creative Commons license, then a plaintext version can be found here. The LICENSE file contents would be replaced with the contents of the CC license.
If the intended license is Apache-2.0, then the metadata of the 4 files mentioned could be updated.
If I know which license is correct, I could make a quick PR to fix this.

The issue has been fixed.


fix(sdk): wandb.Image breaks plt.imshow

Description
This PR attempts to fix the issue of wandb.Image breaking plt.imshow by replacing the logic of importing the PIL.Image module using wandb.util.get_module with a simple try-except check, that imports the PIL.Image module globally if installed and throws a wandb.Error otherwise.

Fixes WB-15662

Fixes https://github.com/wandb/wandb/issues/6297

[ ] I updated CHANGELOG.md, or it's not applicable

Testing
The PR was tested using the following code snippet:
import wandb
import numpy as np

def plot_points(img):
    import matplotlib.pyplot as plt
    fig, ax = plt.subplots()
    plt.imshow(img)
    wandb.log({'Plot': plt})

wandb.init(project="test")
image = np.zeros((512, 512, 3))
wandb.log({"sample-image": wandb.Image(image)})
plot_points(image)

Interesting! Why does the direct import work but not util.get_module()? Is there possibly a bug in get_module that should be fixed?
IMO the approach in this PR is clearer, but I don't have context on why we have get_module(). Based on its docs, there may be a thread-safety consideration. @kptkin - do you know?

Yeah, i don't know either, but if there is an issue with get_module it potentially could affect our entire code base, as we use this function all over. I asked @soumik12345 to investigate why get_module doesn't work


Auto width slider - disable further dragging / navigating when the last slide is reached

I want to prevent users from being able to scroll further than the last slide.
You can see the 'issue' here: http://cloud.agx.eu/polo-architects/revamp/nl.
There are 20 random slides present. When you reach the last slide you can see the empty space on the right. I set the items to 1 but setting a number of items is not really relevant in this slider, because of the auto width option. It should be possible to set the items to 'auto'.
In the example on the website a loop is used, but I don't want this.
Any way to accomplish this? Thanks.

Other sliders don't appear to have this issue, so I'm confident saying it's something on your end. At this point, I've got to point you towards stack overflow.
Thanks!


Havok Physics Plugin: Fix applied impulse in Collision Event

https://forum.babylonjs.com/t/havok-collision-callback-how-to-interpret-provided-collision-info/41220/2
Requires someone to take a look and make sure I read the information from the right address.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/13918/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13918/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/13918/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/13918/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/13918/merge
https://gui.babylonjs.com/?snapshot=refs/pull/13918/merge
https://nme.babylonjs.com/?snapshot=refs/pull/13918/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/13918/merge#BCU1XR#0


🐛BUG : Sign Up section - Name field validation

🐞BUG Report
Describe the bug
The "Name" field in the Sign Up section should only accept alphabetical letters (a-z, A-Z). Currently, the field allows users to input symbols and special characters, which may lead to invalid or spam submissions.
To Reproduce
Steps to reproduce the behaviour:

Click on Sign up option.
Click on Name field and type numbers and symbols.
See there is no error message.

Expected behavior
The "Name" field should only accept alphabetical letters (a-z, A-Z)
Screenshots

Please assign me this issue !!!

/assign


Fix: Using Vite cacheDir key unless user define.

Quick try to see if any tests fail.
Related: https://github.com/vitest-dev/vitest/issues/1603

As I said in discussion, cache dirs should be separate. If you want them to be the same in your project, copy it to cache.dir, but beware that they might collide (vite can unexpectedly clear vitest cache and vice versa).

Yeah I don't see it.
If you're picking the parent folder, then vite clearing its cache dir, won't affect the parent directory at all.
And if they pick root  straight up as their cache directory, then they have much bigger problem.
I am just trying to unify the settings so the config keys and choices don't differ, but you do you.


chore: use optional chaining

https://github.com/ScaleLeap/amazon-mws-api-sdk/issues/30

Codecov Report

Merging #31 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #31   +/-   ##
=======================================
  Coverage   99.72%   99.72%
=======================================
  Files          12       12
  Lines         360      360
  Branches       36       36
=======================================
  Hits          359      359
  Partials        1        1

Impacted Files
Coverage Δ

src/sections/orders.ts
100.00% <100.00%> (ø)

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 106fa1f...da3d0d8. Read the comment docs.

Need to change the tsconfig.build.json too.
Or maybe it doesn't matter since the build worked anyways?

Or maybe it doesn't matter since the build worked anyways?

Depends on which node versions we want to support. I'll add it to that config as well since it's only supported in Node 14.


Missing sdist for 1.1.6 release

Describe the bug
https://pypi.org/project/lark/1.1.6/#files doesn't include a sdist tarball for 1.1.6 release, only a wheel.

I apologize for the oversight! Should be good now.

Thanks!


Autotools glue for .l and .y

.l and .y are not rebuilt if changed

I reject this patch, because this autorebuild is too sensitive wrt. to the lexx/yacc versions, and produce unanticipated build problems on some systems.


Update apache pulsar 2.5.1 release notes

Motivation

Update apache pulsar release 2.5.1 notes

Modifications

Update apache pulsar release 2.5.1 notes

@codelipenghui @sijie PTAL

@codelipenghui Thanks for your comment, I have fixed, PTAL


Error setting up chai-enzyme when using TypeScript , Cannot read property 'use' of undefined

Is the set up for chai-enzyme any different if I am using TypeScript?
my code below:
import React from 'react';
import _ from 'lodash';
import { FileMenu } from '../../../src/components/FileMenu/FileMenu';
import {render, shallow, mount} from 'enzyme';
import {expect} from 'chai';
import chai from 'chai'
import chaiEnzyme from 'chai-enzyme'
chai.use(chaiEnzyme()) // Note the invocation at the end

describe('FileMenu', () => {

  it('Has an Item Class', () => {
    const wrapper = render(<FileMenu />);
    expect(wrapper.find('.item')).to.exist.and.have.length(1);
  });

});

error in console:
> karma start karma.conf.js

ts-loader: Using<EMAIL_ADDRESS>and /Users/clacey/caprona-ui/client/tsconfig.json
23 01 2017 18:28:01.723:WARN [karma]: No captured browser, open http://localhost:9876/
23 01 2017 18:28:01.733:INFO [karma]: Karma v1.4.0 server started at http://<IP_ADDRESS>:9876/
23 01 2017 18:28:01.733:INFO [launcher]: Launching browser Chrome with unlimited concurrency
23 01 2017 18:28:01.748:INFO [launcher]: Starting browser Chrome
23 01 2017 18:28:02.598:INFO [Chrome 55.0.2883 (Mac OS X 10.11.4)]: Connected on socket SFduO6hiKIN9MjFMAAAA with id 18816182
Chrome 55.0.2883 (Mac OS X 10.11.4) ERROR
  Uncaught TypeError: Cannot read property 'use' of undefined
  at test/components/FileMenu/FileMenuTest.tsx:54

Chrome 55.0.2883 (Mac OS X 10.11.4): Executed 0 of 0 ERROR (0.516 secs / 0 secs)

I have all the typings installed, eg:
@types/enzyme
@types/cheerio
@types/chai
@types/chai-enzyme

You're importing chai twice, btw - try import chai, { expect } from 'chai' (although I don't see why that would be different, unless typescript has a bug)

tried that...and still have the same error >_<

chai does not export a default. Looks like Webpack or something else in your build chain is not making interoperable commonjs calls, and expects everything to be an ES6 module.
I'd recommend using plain ol' require or possibly resolving the issue in your build tooling.

Thanks for pointing me in the right direction. It was a problem with how TypeScript handles modules. The fix:
import * as chai from 'chai';
import * as chaiEnzyme from 'chai-enzyme';


How to extract the audio from SpeechRecognitionResult when using mic input?

Hi there team,
Is there a way that we can get access to the audio stream from a SpeechRecognitionResult?
Say code is as follows:
var config = SpeechConfig.FromSubscription(Settings.CognitiveServicesSpeechKey, Settings.CognitiveServicesSpeechRegion);

using (var recognizer = new SpeechRecognizer(config, AudioConfig.FromDefaultMicrophoneInput()))
{
       var result = await recognizer.RecognizeOnceAsync();
       var resultStream = AudioDataStream.FromResult(result); // does not accept SpeechRecognitionResult
       // etc
}

I have seen that AudioDataStream.FromResult will accept either a KeywordRecognitionResult or a SpeechSynthesisResult, but not a SpeechRecognitionResult.
Is there an equivalent approach for getting the stream from a SpeechRecognitionResult?
Many thanks!

@genghis-kane Thanks for feedback, from SpeechRecognitionResult, this is not yet available but will be in future releases.
One solution for this currently would be to use external mic source and stream it to Speech SDK and then you can control the use of the audio in your app

Thanks @jhakulin for the clarification :) do you have any estimate on when it would be available in future releases?
Do you have any guidance for sending a stream from the mic through to the Speech SDK when using RecognizeOnceAsync?
I have been trying to set it up with a PushStream populated from the audio taken from the mic, but no luck so far. Not sure if this is even the right approach, please let me know if you can think of any samples that cover it? All of the samples I have seen so far only cover StartRecognitionAsync for this kind of case, but our app has no interface for triggering StopRecognitionAsync. We rely heavily on on the result returning after a few seconds of silence is detected, which RecognizeOnceAsync gives us.
I guess what it comes down to is.... if I had the code below, where would I update pushStream with the results of a call to audioRecorder.Read, to ensure that the speech recognition works exactly the same as if I was using AudioConfig.FromDefaultMicrophoneInput() as the audio config?
var speechConfig = SpeechConfig.FromSubscription(Settings.CognitiveServicesSpeechKey, Settings.CognitiveServicesSpeechRegion);

byte[] audioBuffer = new byte[1000]; // arbitrary size
var audioRecorder = new AudioRecord(AudioSource.Mic, 16000, ChannelIn.Mono, Encoding.Pcm16bit, audioBuffer.Length);
audioRecorder.StartRecording();

// Create a push stream
using (var pushStream = AudioInputStream.CreatePushStream())
{
    using (var audioInput = AudioConfig.FromStreamInput(pushStream))
    {
        // Creates a speech recognizer using audio stream input.
        using (var recognizer = new SpeechRecognizer(speechConfig, audioInput))
        {
            var result = await recognizer.RecognizeOnceAsync();
            // etc
        }
    }
}

@genghis-kane There is no sample using external microphone with RecognizeOnceAsync at the moment, however see below modified sample code from:
https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/0598f43c2368e0e181725dafc9aa79561ac142be/samples/csharp/sharedcontent/console/speech_recognition_samples.cs#L485
            // Create a push stream
            using (var pushStream = AudioInputStream.CreatePushStream())
            {
                using (var audioInput = AudioConfig.FromStreamInput(pushStream))
                {
                    // Creates a speech recognizer using audio stream input.
                    using (var recognizer = new SpeechRecognizer(config, audioInput))
                    {
                        // Subscribes to events.
                        recognizer.Recognizing += (s, e) =>
                        {
                            Console.WriteLine($"RECOGNIZING: Text={e.Result.Text}");
                        };

                        recognizer.Recognized += (s, e) =>
                        {
                            if (e.Result.Reason == ResultReason.RecognizedSpeech)
                            {
                                Console.WriteLine($"RECOGNIZED: Text={e.Result.Text}");
                            }
                            else if (e.Result.Reason == ResultReason.NoMatch)
                            {
                                Console.WriteLine($"NOMATCH: Speech could not be recognized.");
                            }
                        };

                        recognizer.Canceled += (s, e) =>
                        {
                            Console.WriteLine($"CANCELED: Reason={e.Reason}");

                            if (e.Reason == CancellationReason.Error)
                            {
                                Console.WriteLine($"CANCELED: ErrorCode={e.ErrorCode}");
                                Console.WriteLine($"CANCELED: ErrorDetails={e.ErrorDetails}");
                                Console.WriteLine($"CANCELED: Did you update the subscription info?");
                            }

                            stopRecognition.TrySetResult(0);
                        };

                        recognizer.SessionStarted += (s, e) =>
                        {
                            Console.WriteLine("\nSession started event.");
                        };

                        recognizer.SessionStopped += (s, e) =>
                        {
                            Console.WriteLine("\nSession stopped event.");
                            Console.WriteLine("\nStop recognition.");
                            stopRecognition.TrySetResult(0);
                        };

                        var future = recognizer.RecognizeOnceAsync();

                        // open and read the wave file and push the buffers into the recognizer
                        using (BinaryAudioStreamReader reader = Helper.CreateWavReader(@"whatstheweatherlike.wav"))
                        {
                            byte[] buffer = new byte[1000];
                            while (true)
                            {
                                var readSamples = reader.Read(buffer, (uint)buffer.Length);
                                if (readSamples == 0)
                                {
                                    break;
                                }
                                pushStream.Write(buffer, readSamples);
                            }
                        }
                        pushStream.Close();

                        // Waits for completion.
                        // Use Task.WaitAny to keep the task rooted.
                        Task.WaitAny(new[] { stopRecognition.Task });
                    }
                }
            }

And you would replace reading from file by reading microphone instead. Let me know if this helps.

@genghis-kane Did you get the problem solved using the stream approach? The support for getting audio from the recognition result is probably somewhere Q3/Q4 of this year.

Hi @jhakulin , thanks for following up (and apologies for the delayed response).
I have had some luck with the stream approach - thank you! The only part that is still eluding me is being able to reach the Task completion step, ie. the very last Task.WaitAny(new[] { stopRecognition.Task }); line in your sample.
If I am doing the following - the stream is pushed through the transcript service and I hit the SessionStopped event when the user stops talking, exactly as expected. However, I never get back to the Task.WaitAny(new[] { stopRecognition.Task }); line in the original calling context.
var config = SpeechConfig.FromSubscription(Settings.CognitiveServicesSpeechKey, Settings.CognitiveServicesSpeechRegion);

int minBufferSize = AudioRecord.GetMinBufferSize(16000, ChannelIn.Mono, Encoding.Pcm16bit);
byte[] audioBuffer = new byte[minBufferSize];
var audioRecorder = new AudioRecord(AudioSource.Mic, 16000, ChannelIn.Mono, Encoding.Pcm16bit, audioBuffer.Length);

var stopRecognition = new TaskCompletionSource<int>();

using (var transcriptPushStream = AudioInputStream.CreatePushStream())
{
    using (var audioInput = AudioConfig.FromStreamInput(transcriptPushStream))
    {
        using (var recognizer = new SpeechRecognizer(config, audioInput))
	{
	    recognizer.SessionStarted += (s, e) => { audioRecorder.StartRecording(); };
	    recognizer.SessionStopped += (s, e) =>
	    {
	        audioRecorder.Stop();
		stopRecognition.TrySetResult(0);
	    };

	    var result = recognizer.RecognizeOnceAsync();

	    int read;
	    while ((read = audioRecorder.Read(audioBuffer, 0, audioBuffer.Length)) != -1)
	    {
	        transcriptPushStream.Write(audioBuffer, read);
	    }
	    transcriptPushStream.Close();

	    await Task.WhenAll(stopRecognition.Task); //never comes back to this line
	    Console.WriteLine($"Success result {result.Result.Text}");
        }
    }
}

If I do the exact same thing just directly with the mic, as in the following code - I do hit the Task.WaitAny(new[] { stopRecognition.Task }); line.
var config = SpeechConfig.FromSubscription(Settings.CognitiveServicesSpeechKey, Settings.CognitiveServicesSpeechRegion);

var stopRecognition = new TaskCompletionSource<int>();

using (var recognizer = new SpeechRecognizer(config, AudioConfig.FromDefaultMicrophoneInput()))
{
    recognizer.SessionStopped += (s, e) =>
    {
        stopRecognition.TrySetResult(0);
    };

    var result = recognizer.RecognizeOnceAsync();

    await Task.WhenAll(stopRecognition.Task); //reaches this line and continues
    Console.WriteLine($"Success result {result.Result.Text}");
}

I'm not sure whether this is caused by the stream approach or if it is the audioRecorder that is the problem, please let me know if anything stands out to you? Either way, the original problem of needing to access the audio stream is solved with the pushStream approach, thanks very much for your help :)

你好我现在想在k210上实现语音识别的功能，请问有'from modules import SpeechRecognizer'中SpeechRecognizer'的资料吗

Closing the issue as original problem answered


[MM-41109] Make all links from plugin settings open in a different tab

Summary

This PR changes the admin_console's SchemaText rendering logic, so that links on plugins' settings pages open in external tabs.  Consequently, FormattedMarkdownMessage component also needed to change in order to support making all the links within markdown text to open in external tabs.
Ticket Link

Fixes https://github.com/mattermost/mattermost-server/issues/19405
https://mattermost.atlassian.net/browse/MM-41109

Hello @Borknab,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

@hmhealey good suggestion, thanks!
I implemented it, so now all things using FormattedMarkdownMessage should use this logic: shouldOpenInNewTab() decides whether the links opens in new tab or not. The feature with [](!foo) for external links should stay I think, as it is probably used in many files.

@mickmister I adjusted the code according to your suggestions, I totally agree with them. Thanks!

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

This PR has been automatically labelled "stale" because it hasn't had recent activity.
A core team member will check in on the status of the PR to help with questions.
Thank you for your contribution!

@DHaussermann Maybe assign this to @dipak-demansol for testing?

@DHaussermann Maybe assign this to @dipak-demansol for testing?

@mickmister Sure, You can assign me this.

@dipak-demansol It won't let me request your review for some reason so I assigned you instead

@mickmister LGTM,
:- Tested on Browser and desktop app, Tested when The browser was already open and when it was not open.
non-blocking point
:- when the browser is not opened and i click on the link from the desktop app then the browser is opened but the browsers "X", minimize, maximize" button is not visible when browser is full screen, same issue not generated when browser was already open. (i know we don't have Control on Browser but still for your info, i reported what i found)

:- when the browser is not opened and i click on the link from the desktop app then the browser is opened but the browsers "X", minimize, maximize" button is not visible when browser is full screen, same issue not generated when browser was already open. (i know we don't have Control on Browser but still for your info, i reported what i found)

@dipak-demansol Does this behavior differ from what happens when you click a similar link that's in a post, when using the desktop app?

vokoscreenNG-2022-04-26_19-37-25.mov
No, it has the same behavior, here is the video of that.

@mickmister :arrow_up:

@dipak-demansol If clicking a link in a post has the same behavior as clicking a link in the system console, then this can be approved.

Thanks again for the PR, @Borknab!

@hmhealey no problem, was glad to contribute! :)


metrics-server project updates 1.24 to 1.29

Description of changes:
metrics-server project updates 1.24 to 1.29
Bumps metric-server to v0.7.0
Link to compatibility metrics: https://github.com/kubernetes-sigs/metrics-server#compatibility-matrix
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


mattermost-desktop: 4.5.0 -> 4.5.2

Motivation for this change
This is a backport of #93667. Again, only the 64-bit build was tested.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

If backport, change name to [20.03]: title


Question about background operations

https://github.com/RobertCNelson/omap-image-builder/blob/a032246f888850b628ddb96ca4754fc38e11150b/beagleboard.org_stretch_image.sh#L39
https://github.com/RobertCNelson/omap-image-builder/blob/a032246f888850b628ddb96ca4754fc38e11150b/beagleboard.org_stretch_image.sh#L66
The two linked lines above run the compression in the background. Can I ask about your execution context or workflow? When I use the script, the compression continues running after the parent script exits but still expects to output progress to the terminal. It's working for me, but that progress output from a background process is awkward. Curious if that's the intended workflow.
Thanks!

@bdube , true we could drop the "-v" in those images..
Truefly i never run the base ./*.sh scripts:
beagleboard.org_jessie_image.sh
beagleboard.org_stretch_image.sh
seeed_jessie_gcp-iot_image.sh
seeed_jessie_image.sh

They are only there for new users, who want to generate a base image..  For a long time they were way out of date.
I only run the ./publish/rcn_ee*.sh images
and i've merged most of rcn-ee_bb.org-stable.sh into those base *.sh
Regards,

Ok, thanks for the clarification.
In our fork, I think I'm going to leave the -v and let it run in the foreground. That way I don't need to do any chasing to find out when it's complete.


Re-add test_uneven_common_crawl_range PyTest

PR https://github.com/NVIDIA/NeMo-Curator/pull/235 skips test_uneven_common_crawl_range because of how flaky it is. In the future, we may want to debug and re-add it.
def test_uneven_common_crawl_range(self):
    start_snapshot = "2021-03"
    end_snapshot = "2021-11"
    urls = get_common_crawl_urls(start_snapshot, end_snapshot)

    assert (
        urls[0]
        == "https://data.commoncrawl.org/crawl-data/CC-MAIN-2021-10/segments/1614178347293.1/warc/CC-MAIN-20210224165708-20210224195708-00000.warc.gz"
    )
    assert (
        urls[-1]
        == "https://data.commoncrawl.org/crawl-data/CC-MAIN-2021-04/segments/1610704847953.98/warc/CC-MAIN-20210128134124-20210128164124-00799.warc.gz"
    )
    assert len(urls) == 143840

More flaky tests from test_download have been skipped in https://github.com/NVIDIA/NeMo-Curator/pull/454.


Throw TypeError when using redirect in Server Action

when we using redirect in Server Action, it will throw a TypeError:
failed to get redirect response TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11576:11) {
  cause: RequestContentLengthMismatchError: Request body length does not match content-length header
      at write (node:internal/deps/undici/undici:10059:41)
      at _resume (node:internal/deps/undici/undici:10037:33)
      at resume (node:internal/deps/undici/undici:9938:7)
      at connect (node:internal/deps/undici/undici:9927:7) {
    code: 'UND_ERR_REQ_CONTENT_LENGTH_MISMATCH'
  }
}

Provide environment information
    Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:19 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T8103
    Binaries:
      Node: 20.5.0
      npm: 9.8.0
      Yarn: 1.22.19
      pnpm: 8.6.11
    Relevant Packages:
      next: 13.4.12
      eslint-config-next: 13.4.12
      react: 18.2.0
      react-dom: 18.2.0
      typescript: 5.1.6
    Next.js Config:
      output: N/A

warn  - Latest canary version not detected, detected: "13.4.12", newest: "13.4.13-canary.9".
        Please try the latest canary version (`npm install next@canary`) to confirm the issue still exists before creating a new issue.
        Read more - https://nextjs.org/docs/messages/opening-an-issue

Then I tried to bump the version of Next from 13.4.12 to 13.4.13-canary.9.
pnpm --filter @mogeko/bookworm-web install<EMAIL_ADDRESS>
Experiment again and found that the bug has been resolved.

This bug should be resolved by this PR: https://github.com/vercel/next.js/pull/49483
It has been merged into the Canary branch. It should be released as stable version 13.4.3 in the future.


Obtain Strava Token Without a browser

Hello,
thanks for providing such a tool. I am trying to use this tool and initiate the first session, but unfortunately I am running it in a machine (Cloud) to which I cannot get a GUI for the browser.
Is there any way to do the first authorization in an other way?
Many thanks!

Thanks for the hint! I was trying to run, then I got some errors regarding pulling bikes data. After going into the code and commented everything related to bikes, it work.. not sure what is the casuse.
_Traceback (most recent call last):
File "/home/azureuser/.local/bin/strava-offline", line 8, in
sys.exit(cli())
File "/home/azureuser/.local/lib/python3.8/site-packages/click/core.py", line 1157, in call
return self.main(*args, **kwargs)
File "/home/azureuser/.local/lib/python3.8/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/home/azureuser/.local/lib/python3.8/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/azureuser/.local/lib/python3.8/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/azureuser/.local/lib/python3.8/site-packages/click/core.py", line 783, in invoke
return _callback(*args, **kwargs)
File "/home/azureuser/.local/lib/python3.8/site-packages/strava_offline/config.py", line 36, in wrapper
return f(config_class(**config_kwargs), **f_kwargs)
File "/home/azureuser/.local/lib/python3.8/site-packages/strava_offline/cli.py", line 29, in cli_sqlite
sync.sync(config=config, strava=strava)
File "/home/azureuser/.local/lib/python3.8/site-packages/strava_offline/sync.py", line 92, in sync
sync_bikes(strava, db)
File "/home/azureuser/.local/lib/python3.8/site-packages/strava_offline/sync.py", line 78, in sync_bikes
table_bike.upsert(db, strava.get_bikes())
File "/home/azureuser/.local/lib/python3.8/site-packages/strava_offline/strava.py", line 72, in get_bikes
return self.get_athlete()['bikes']
KeyError: 'bikes'


Flow diagram needs to be corrected

Hi,
Flow diagram on this page:
https://developers.google.com/web/fundamentals/performance/critical-rendering-path/analyzing-crp
needs to be corrected in below image:
https://developers.google.com/web/fundamentals/performance/critical-rendering-path/images/analysis-dom-css-js-async.png
to swap:
RUN JS <-> RENDER PAGE

Is there any update on this?

Hey,
Is someone working on this?
Or my I get to this issue?


Running fastlane on Bitrise - non-interactive mode

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
Running a build for a new app (one that has a slightly different stack than previous apps I've setup) in Bitrise and I'm getting a few errors that I haven't before.. Now the first seems fairly explanatory but fastlane should be there in the right directory so I don't think its an issue. The second crash error is more ambiguous and is what I'd like to know more about. Any ideas as to why its crashing? @viktorbenei
[04:07:35]: Could not find fastlane in current directory. Would you like to set it up?`

`crash!': [!] Could not retrieve response as fastlane runs in non-interactive mode

Complete output when running fastlane, including the stack trace and command used
+------------------------------------------------------------------------------+
| (5) fastlane                                                                 |
+------------------------------------------------------------------------------+
| id: fastlane                                                                 |
| version: 2.2.0                                                               |
| collection: https://github.com/bitrise-io/bitrise-steplib.git                |
| time: 2016-08-24T04:07:23-07:00                                              |
+------------------------------------------------------------------------------+
|                                                                              |
$ cd .

 (i) No Gemfile found - using system installed fastlane ...
 (i) Updating fastlane ...
$ gem install fastlane --no-document
Successfully installed gh_inspector-1.0.2
Successfully installed fastlane_core-0.50.3
Successfully installed spaceship-0.31.8
Successfully installed cert-1.4.1
Successfully installed sigh-1.9.0
Successfully installed match-0.6.2
Successfully installed supply-0.7.0
Successfully installed scan-0.11.3
Successfully installed pilot-1.10.0
Successfully installed gym-1.7.0
Successfully installed produce-1.2.0
Successfully installed pem-1.3.2
Successfully installed deliver-1.13.3
Successfully installed frameit-2.7.0
Successfully installed snapshot-1.13.1
Successfully installed word_wrap-1.0.0
Successfully installed xcode-install-2.0.2
Successfully installed krausefx-shenzhen-0.14.10
Successfully installed fastlane-1.101.0
19 gems installed

Fastlane version:
$ fastlane --version
fastlane 1.101.0

Run fastlane:
$ fastlane ios appaloosa
[04:07:35]: Could not find fastlane in current directory. Would you like to set it up?

Looking for related GitHub issues on fastlane/fastlane...

➡  Fastlane android deploy issue
   https://github.com/fastlane/fastlane/issues/5800 [closed] 2 💬
   a day ago

➡  How to call deliver download_metadata from fastlane
   https://github.com/fastlane/fastlane/issues/5397 [closed] 8 💬
   4 weeks ago

➡  Jenkins cannot find FastLane
   https://github.com/fastlane/fastlane/issues/4864 [closed] 0 💬
   26 May 2016

and 2 more at: https://github.com/fastlane/fastlane/search?q=Could%20not%20retrieve%20response%20as%20fastlane%20runs%20in%20non-interactive%20mode&type=Issues&utf8=✓
/usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/interface.rb:132:in `crash!': [!] Could not retrieve response as fastlane runs in non-interactive mode (FastlaneCore::Interface::FastlaneCrash)
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/implementations/shell.rb:119:in `verify_interactive!'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/implementations/shell.rb:97:in `confirm'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.101.0/lib/fastlane/commands_generator.rb:256:in `ensure_fastfile'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.101.0/lib/fastlane/commands_generator.rb:48:in `block (2 levels) in run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.4.0/lib/commander/command.rb:178:in `call'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.4.0/lib/commander/command.rb:153:in `run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.4.0/lib/commander/runner.rb:444:in `run_active_command'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane_core-0.50.3/lib/fastlane_core/ui/fastlane_runner.rb:36:in `run!'
	from /usr/local/lib/ruby/gems/2.2.0/gems/commander-4.4.0/lib/commander/delegates.rb:15:in `run!'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.101.0/lib/fastlane/commands_generator.rb:246:in `run'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.101.0/lib/fastlane/commands_generator.rb:20:in `start'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.101.0/lib/fastlane/cli_tools_distributor.rb:58:in `take_off'
	from /usr/local/lib/ruby/gems/2.2.0/gems/fastlane-1.101.0/bin/fastlane:5:in `<top (required)>'
	from /usr/local/bin/fastlane:23:in `load'
	from /usr/local/bin/fastlane:23:in `<main>'
|                                                                              |
+----+--------------------------------------------------------------+----------+
| 🚫  | fastlane (exit code: 1)                                      | 14 sec   |
+----+--------------------------------------------------------------+----------+
| Issue tracker: https://github.com/bitrise-io/steps-fastlane/issues           |
| Source: https://github.com/bitrise-io/steps-fastlane                         |
+----+--------------------------------------------------------------+----------+

Configuration Files
Please copy the complete content of your Fastfile and any other configuration files you use below:
Fastfile:
# Customise this file, documentation can be found here:
# https://github.com/fastlane/fastlane/tree/master/fastlane/docs
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
# can also be listed using the `fastlane actions` command

# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`

# If you want to automatically update fastlane if a new version is available:
update_fastlane

# This is the minimum version number required.
# Update this, if you use features of a newer version
fastlane_version "1.101.0"

before_all do
  slack(
    message: "Fastlane: App build started!"
  )
end

platform :ios do

  desc "Create an IPA"
  lane :appaloosa do
    match(type: "appstore")
    # snapshot
    gym # Build your app - more options available
    # deliver(force: true)
    # frameit
  end

  # You can define as many lanes as you want

  after_all do |lane|
    # This block is called, only if the executed lane was successful

    slack(
      message: "Fastlane: App successfully built!"
    )
  end

  error do |lane, exception|
    slack(
      message: 'Fastlane: ' + exception.message,
      success: false
    )
  end
end

# More information about multiple platforms in fastlane: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Platforms.md
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md

# fastlane reports which actions are used
# No personal data is recorded. Learn more at https://github.com/fastlane/enhancer

Environment
fastlane version (run fastlane -v): fastlane 1.101.0
Do you use bundler to execute fastlane (i.e. bundle exec fastlane)? no
Do you use a Ruby environment manager (e.g. chruby, rbenv, rvm)? no

@mrmartineau is fastlane being run from the project directory where there is a Fastfile or a fastlane folder?

@asfalcone yes. there is a fastlane directory in the root of the project and a Fastfile inside that. It is strange that the error occurs because I have setup 2 other apps recently with the same file/folder structure
└── fastlane
    ├── Appfile
    ├── Fastfile
    ├── Gymfile
    ├── Matchfile
    ├── README.md
    └── report.xml

Seems very strange. Can you echo the working directory during your run just to confirm?

@asfalcone I did on both sides of the fastlane step (from within Bitrise) and the path was always root.. for some inexplicable reason, it is now working. Thanks for your help

@mrmartineau Glad to hear you're up and running! If there is a step that was required of you, it would be great if you could contribute to the bitrise fastlane setup repo so others don't run into the same pain! 👍


schnorr_fun v0.9.2 release put bincode on SignSession

release branch for v0.9.2 so I can have a release on crates.io on v0.9 without all the new changes.

Release tagged here: https://github.com/LLFourn/secp256kfun/releases/tag/schnorr_fun-v0.9.2


Updated operator from '<=' to '<|' which overrides the native less-than-equal-to

Fix the issue with ambiguous operator error when linking. It was very confusing since the original was overriding the native "less than or equal to" operator.

Hey there, I have been thinking about changing the operator as well (so that it doesn't override the native operator). I didn't realize that is what was causing the "ambiguous operator" error though. I haven't fully decided on which operator I want to use though. I will either use your PR as is or alter it with a different operator. Thanks for the contribution :+1:


TNO-2764 adding loading indicator for slow network issues

TNO-2764 adding loading indicator for Top Stories and Press Gallery initially, using the same loading component from Evening Overview.

@nehalaggarwal-bcgov you'll need to resolve the failed check.


Update build-a-python-app-with-cockroachdb.md

readers are reporting an error about not finding a database or schema to connect to. https://cockroachdb.slack.com/archives/CP4D9LD5F/p1662438224802459

This change is

@lnhsingh not sure who to assign a review to

I just approved and will merge. Thanks @dbist!


[Dependency Scanning] Refactor the scanner to resolve unqualified module imports

Apologies for the size of this PR, the changes here are somewhat-intertwined refactoring of how the scanner works overall.
This patch changes the scanner's behavior to "resolve" a discovered module's dependencies to a set of Module IDs: module name + module kind (swift textual, swift binary, clang, etc.).
The ModuleDependencyInfo objects that are stored in the dependency scanner's cache now carry a set of kind-qualified ModuleIDs for their dependencies, in addition to unqualified imported module names of their dependencies.
Previously, the scanner's internal state would cache a module dependnecy as having its own set of dependencies which were stored as names of imported modules. This led to a design where any time we needed to process the dependency downstream from its discovery (e.g. cycle detection, graph construction), we had to query the ASTContext to resolve this dependency's imports to what kind of module they are (Swift, Clang, etc), which shouldn't be necessary. Now, upon discovery, we "resolve" a discovered dependency by executing a lookup for each of its imported module names (this operation happens regardless of this patch) and store a fully-resolved set of dependencies in the dependency module info.
Moreover, looking up a given module dependency by name (via ASTContext's getModuleDependencies)(either for the first time, or to qualify its kind later) would result in iterating over the scanner's module "loaders" and querying each for the module name. The corresponding modules would then check the scanner's cache for a respective discovered module, and if no such module is found the "loader" would search the filesystem.
This meant that in practice, we searched the filesystem on many occasions where we actually had cached the required dependency, as follows:
Suppose we had previously discovered a Clang module foo and cached its dependency info.
-> ASTContext.getModuleDependencies("foo")
---> (1) Swift Module "Loader" checks caches for a Swift module foo and doesn't find one, so it searches the filesystem for foo and fails to find one there also.
---> (2) Clang Module "Loader" checks caches for a Clang module foo, finds one and returns it to the client.
This means that we were always searching the filesystem in (1) even if we knew all the information required to deem that to be futile.
With this change, queries to ASTContext's getModuleDependencies will always check all the caches first, and only delegate to the scanner "loaders" if no cached dependency is found. The loaders are then no longer in the business of checking the cached contents.
To handle cases in the scanner where we must only lookup either a Swift-only module or a Clang-only module, this patch splits getModuleDependencies into an already-existing getSwiftModuleDependencies and a newly-added getClangModuleDependencies.
Note, in expectation this change does not alter the scanner's functionality. The test changes here are mostly to make the tests more resilient to the ordering in which dependency information is emitted.

@swift-ci test

@swift-ci test

I have a test project with a large target with 1665 .swift source files, and scanning the full target with this patch is, on average, 15% faster.

@swift-ci test

@swift-ci test

@swift-ci test macOS platform

@swift-ci test macOS platform

@swift-ci test macOS platform

@swift-ci test

@swift-ci test


[Enhancement][Converter] Add Expression property to MathExpressionConverter and MultiMathExpressionConverter

Description of Change

Bugs Fixed

Fixes #1608

API Changes
Added:

public string Expression { get; set; }

Behavioral Changes

PR Checklist

[x] Has a linked Issue, and the Issue has been approved
[x] Has tests (if omitted, state reason in description)
[x] Has samples (if omitted, state reason in description)
[x] Rebased on top of main at time of PR
[x] Changes adhere to coding standard

[x] Updated documentation

Hey @AndreiMisiukevich, is there anything else that I can do to get this PR merged?

@jfversluis @pictos @brminnick I know you guys are really busy 😃 , but could you review this PR when you have a chance? Thanks in advance 🙏


Underlying google libs throwing an exception

I'm getting the following exception while attempting to push a test job onto a queue:
Google\ApiCore\ValidationException with message 'Error rendering 'projects/{project=*}/locations/{location=*}/queues/{queue=*}': expected binding 'project' to match segment '{project=*}', instead got null
Provided bindings: Array
(
    [project] =>
    [location] =>
    [queue] => global
)
'
--
 <class></class>() at vendor/google/gax/src/ResourceTemplate/RelativeResourceTemplate.php:281
 <class>Google\ApiCore\ResourceTemplate\RelativeResourceTemplate</class>->renderingException() at vendor/google/gax/src/ResourceTemplate/RelativeResourceTemplate.php:132
 <class>Google\ApiCore\ResourceTemplate\RelativeResourceTemplate</class>->render() at vendor/google/gax/src/PathTemplate.php:88
 <class>Google\ApiCore\PathTemplate</class>->render() at vendor/google/cloud-tasks/src/V2/Gapic/CloudTasksGapicClient.php:237
 <class>Google\Cloud\Tasks\V2\Gapic\CloudTasksGapicClient</class>::queueName() at vendor/stackkit/laravel-google-cloud-tasks-queue/src/CloudTasksQueue.php:55
 <class>Stackkit\LaravelGoogleCloudTasksQueue\CloudTasksQueue</class>->pushToCloudTasks() at vendor/stackkit/laravel-google-cloud-tasks-queue/src/CloudTasksQueue.php:36
 <class>Stackkit\LaravelGoogleCloudTasksQueue\CloudTasksQueue</class>->push() at vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:182
 <class>Illuminate\Bus\Dispatcher</class>->pushCommandToQueue() at vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:158
 <class>Illuminate\Bus\Dispatcher</class>->dispatchToQueue() at vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php:73
 <class>Illuminate\Bus\Dispatcher</class>->dispatch() at eval()'d code:1
 <class></class>eval() at vendor/psy/psysh/src/ExecutionLoopClosure.php:55
 <class></class>Psy\{closure}() at vendor/psy/psysh/src/ExecutionClosure.php:96
 <class>Psy\ExecutionClosure</class>->execute() at vendor/psy/psysh/src/Shell.php:371
 <class>Psy\Shell</class>->doInteractiveRun() at vendor/psy/psysh/src/Shell.php:342
 <class>Psy\Shell</class>->doRun() at vendor/symfony/console/Application.php:166
 <class>Symfony\Component\Console\Application</class>->run() at vendor/psy/psysh/src/Shell.php:317
 <class>Psy\Shell</class>->run() at vendor/laravel/tinker/src/Console/TinkerCommand.php:81
 <class>Laravel\Tinker\Console\TinkerCommand</class>->handle() at vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:36
 <class>Illuminate\Container\BoundMethod</class>::Illuminate\Container\{closure}() at vendor/laravel/framework/src/Illuminate/Container/Util.php:37
 <class>Illuminate\Container\Util</class>::unwrapIfClosure() at vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:93
 <class>Illuminate\Container\BoundMethod</class>::callBoundMethod() at vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php:37
 <class>Illuminate\Container\BoundMethod</class>::call() at vendor/laravel/framework/src/Illuminate/Container/Container.php:596
 <class>Illuminate\Container\Container</class>->call() at vendor/laravel/framework/src/Illuminate/Console/Command.php:134
 <class>Illuminate\Console\Command</class>->execute() at vendor/symfony/console/Command/Command.php:256
 <class>Symfony\Component\Console\Command\Command</class>->run() at vendor/laravel/framework/src/Illuminate/Console/Command.php:121
 <class>Illuminate\Console\Command</class>->run() at vendor/symfony/console/Application.php:971
 <class>Symfony\Component\Console\Application</class>->doRunCommand() at vendor/symfony/console/Application.php:290
 <class>Symfony\Component\Console\Application</class>->doRun() at vendor/symfony/console/Application.php:166
 <class>Symfony\Component\Console\Application</class>->run() at vendor/laravel/framework/src/Illuminate/Console/Application.php:93
 <class>Illuminate\Console\Application</class>->run() at vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:129
 <class>Illuminate\Foundation\Console\Kernel</class>->handle() at artisan:35

I've configured everything as best as I can infer from the home page of this project.  I'm using the GOOGLE_APPLICATION_CREDENTIALS environment variable to point to a service account key file.  Everything seems to check out in that regard.  I'm just not sure how or why project and location are showing up null here?  My queue configs all seem to indicate that the values I've provided are present.
>>> config('queue');
=> [
     "default" => "angry",
     "connections" => [
       "angry" => [
         "driver" => "angry",
         "queue" => "default",
       ],
       "global" => [
         "driver" => "cloudtasks",
         "project" => "my-project",
         "location" => "us-central1",
         "handler" => "https://my-cloud-run-service-nn.a.run.app/handle-task",
         "queue" => "global",
         "service_account_email" =><EMAIL_ADDRESS>       ],
       "regional" => [
         "driver" => "cloudtasks",
         "project" => "my-project",
         "location" => "us-central1",
         "handler" => "https://my-cloud-run-service-nn.a.run.app/handle-task",
         "queue" => "ca",
         "service_account_email" =><EMAIL_ADDRESS>       ],
     ],
     "failed" => [
       "database" => "regional",
       "table" => "failed_jobs",
     ],
   ]

Do you maybe have any suggestions on what I can look into to determine why those two values are null, despite being configured in queue.php?

@marickvantuil - I managed to do a bit of local debugging just to see what is going on in the code paths, and I noticed that you hard-code the connection names in Config.php.
As you can see in my examples, I require multiple queues and will not be naming them "cloudtasks".  I think the solution here would be to figure out a way to infer the correct queue name at run time vs. hard-coding them.

:heart: - Thank you so much for the opportunity to contribute to your project!


[wip] use AutoHandlers instead of custom enablement logic

:construction: This is wip because this change is missing passing tests and proper documentation (flag descriptions and comments) - sending this out for team's review first.
part of #1580
This PR:

puts the behavior of dynamically enabling KongClusterPlugin support under an auto setting (as opposed to enabled, thus providing explicit distinction between "enabled unconditionally, please fail when not working" and "enabled if the cluster supports it and silently disabled otherwise")
puts the behavior of dynamically enabling knative ingress support under auto (ditto)
puts the behavior of dynamically picking the highest supported ingress version under auto (ditto)
replaces flag defaults for the above with auto (was enabled)
refactors AutoHandler into using k8s client.Client instead of client.Reader - a wider interface - because the existing implementation of CRDExists() makes use of raw REST calls that are not possible with client.Reader
removes explicit flag settings from the integration test invocation - so that we test that the default settings result in a functional setup. Note that this isn't a complete test for the auto enablement status.

As per https://github.com/Kong/kubernetes-ingress-controller/issues/1591 I rebased this onto the structural changes now in next, let me know if there are any problems :+1:


How to remove connections when using ConnectionCount.Multi?

For example, i have that situation:

And i want to remove one of connections.  As i see there is no way built-in :(
I wrote dirty fix to get it semi-working and continue on writing extension

Is there a way to remove connections which i'm missing? Like holding some button and dragging left mouse over wires? (Which is desired behavior, as it's used in many other applications)

I'm using develop branch

From multi connection knobs, there is unfortunately now way, no.
Before the revamp, there were only Mult-Single connections so it was 'create froo multi and delete from single. Since that becake interchangeable, single-single connections were also supported, but for multi-multi a new concept was required. This is not yet implemented, but it will eb similar to what you said. Do you require multi-multi? Then I might try ti do tgat when I have time soon:)

Yeah we need it :D
I can get away with my solution while developing extension, but i'll need properly working one at the end.
What i'm doing is parsing UnityEvents from scene objects and building tree procedurally with custom nodes, then modifying those events when connections changes in node editor

Ok, will try it at some point. Core is the hit detection for the bezier curves.
Then, what would you prefer? Clicking the curve to delete or dragging a line to detach all connections under it? Last would be nice but would require an additional key to hold...

I prefer line-cuts  with preview of that line (if we dragging mouse and button).
Main reason for that is high possibility of random missed clicks.
Also it would be good to fast remove connection when clicking on them while holding same button (not too close to Knobs in case of multi connections (as that editor has no undo and random)
One more common way is selecting wire and deleting it by context menu or buttons

https://youtu.be/XKbSu5PC8VA?t=633
Just to visualize what i mean

Btw, you can check out #148, which is a good temporary workaround:)

Yeah, i saw that :)
Will check it out tomorrow


should notify only if service is managed

Can you take out the apt-change? This module does actually require apt, and there is a different PR to update it to use the newer puppet-labs-apt api.

Ok, just did
iv also made a small if statement change
Thanks

Sorry but I don't understand what you mean, if ill remove the if statement the code will fail in cases that the service isn't managed (see https://github.com/Yelp/puppet-uchiwa/blob/master/manifests/install.pp#L44)

Yes, but this logic doesn't belong in the install class.
Keep all the "if $manage_services" logic in the service class.
Any notifications need to happen in the init class on the entire classes, not just the package resource.
Like this pattern: https://www.devco.net/archives/2012/12/13/simple-puppet-module-structure-redux.php

Can you rebase against master if you are still interested in getting this change in?


Recording hangs and records nothing if data to task stops before recording end time

My use case is to use recording and replay for automated testing. I can't be the only one to think of this. We are using kapacitor to raise alerts given certain TICK logic and a given stream of input data events. Ideally we would like to:

start recording
send in a fixed deteministic set of event data at a kapacitor script
stop recording
validate alerts were raised

However, if I follow these steps, which involve bracketing the sending of the fixed set of event data with the start and stop of recording, the recording always hangs and records a 0-byte file. (This is reported both from the kap CLI and in data file in /var/lib/kapacitor/replay.) What I discovered is that if I force the event data to flow to a time past the end time of the recording, the recording always succeeds.
Some more detail and a small example ...

I am sending event data to a local kapacitor instance via UDP to 9100
I have confirmed events are arriving with tcpdump on the port, that they are being ingested into kapacitor with stats ingress, and that they are being processed by the task with show task
Further, I can verify that alerts are being generated (the last step in the TICK script), because they are being sent by post() to a designated port and I'm watching that traffic as well.
In other words, yes, I have verified the round trip of the data flow; that is not the issue.

What I have observed, every time, is that running a recording from either the CLI directly in a separate shell session or from within a Python application using subprocess, is that recording will hang if the event stream stops before the recording end time. When I eventually keyboard interrupt to kill the process, there is a 0-byte recording created.
Examples:
Failure

Events are being sent to a task that collects data on a 1-second period
The task needs to see 5 events over 5 periods matching some criteria to generate an alert
The expected behavior is verified, per above
One set of 7 events over 7 seconds is sent to kapacitor, once per second. (I always send 2 extra to avoid window boundary issues affecting the test)
Recording is started immediately before generating events and set to run for 9 seconds
Recording hangs and records nothing

Success

Events are being sent to a task that collects data on a 1-second period
The task needs to see 5 events over 5 periods matching some criteria to generate an alert
The expected behavior is verified, per above
Two sets of 7 events over 7 seconds are sent to kapacitor, once per second
Recording is started immediately before generating events and set to run for 9 (or anything less than 14) seconds
Recording succeeds

Thanks for looking into this.

I have the same issue, trying to records stream for 1m and generating the wanted point in influxdb, I do see the ingress counter going up for that subscription, my task is well executed and my topic-handler correctly handled, the alert is correctly sent as well but the recording never stopped and the size is still set to 0. (version 1.4)


gist:ID should have exact cardinality 1 on allocatedBy

Current definition of gist:ID:
gist:ID
	a owl:Class ;
	owl:equivalentClass [
		a owl:Class ;
		owl:intersectionOf (
			gist:Content
			[
				a owl:Restriction ;
				owl:onProperty gist:allocatedBy ;
				owl:someValuesFrom [
					a owl:Class ;
					owl:unionOf (
						gist:IntellectualProperty
						gist:Organization
						gist:Person
					) ;
				] ;
			]
			[
				a owl:Restriction ;
				owl:onProperty gist:uniqueText ;
				owl:someValuesFrom xsd:string ;
			]
		) ;
	] ;
...

The someValuesFrom doesn't adequately express the semantics: each identifier is allocated by exactly one resource.  That suggests:
gist:ID
	a owl:Class ;
	owl:equivalentClass [
		a owl:Class ;
		owl:intersectionOf (
			gist:Content
			[
				a owl:Restriction ;
				owl:onProperty gist:allocatedBy ;
				owl:qualifiedCardinality "1"^^xsd:nonNegativeInteger ;
                                  owl:onClass [
					a owl:Class ;
					owl:unionOf (
						gist:IntellectualProperty
						gist:Organization
						gist:Person
					) ;
				] ;
			]
			[
				a owl:Restriction ;
				owl:onProperty gist:uniqueText ;
				owl:someValuesFrom xsd:string ;
			]
		) ;
	] ;
...

However, the range of allocatedBy is the same as the class in the qualified cardinality restriction:
	rdfs:range [
		a owl:Class ;
		owl:unionOf (
			gist:IntellectualProperty
			gist:Organization
			gist:Person
		) ;
	] ;

So using a qualified cardinality restriction is redundant and could be reduced to a simple cardinality restriction. (This is an ongoing difference of opinion between @uscholdm and myself.) Either way, the cardinality is required to adequately capture the fact that an identifier can be allocated by only one resource.

I agree that the number should be exactly 1, not min 1.
Thank you for creating that other issues.

See also: #94 and #339

Based on our new restriction guidance, the exact cardinality restriction should be the object of rdfs:subClass, and the restriction in the equivalence should remain someValuesFrom.


Errors when using tools, does not output files.

Expected behaviour
All commands execute without errors, and outputs files according to parameters.
Actual behaviour
Commands give errors and fail to output anything.
./640x64 1200 -ts tstamps.csv -o /dev/shm/out.%04d.raw
removing /dev/shm/out.*.raw
capturing frames for 1200ms with 659fps requested
ls: cannot access '/dev/shm/out.*.raw': No such file or directory
./640x64: line 14: 1000000 / : syntax error: operand expected (error token is "/ ")
frame delta time[us] distribution
after skip frame indices (middle column)
expr: division by zero
% frame skips

Environment
Raspberry Pi 4B
Raspbian GNU/Linux 11, kernel 5.15.32
Camera sensor: IMX219
Legacy camera support is turned on.
Userland libraries installed
Output of inxi -Faz:
System:    Kernel: 5.15.32-v7l+ armv7l bits: 32 compiler: gcc v: 10.2.1
           parameters: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0
           snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=DC:A6:32:E0:15:7E vc_mem.mem_base=0x3ec00000
           vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=7b40f466-02
           rootfstype=ext4 fsck.repair=yes rootwait
           Console: tty 0 Distro: Raspbian GNU/Linux 11 (bullseye)
Machine:   Type: ARM Device System: Raspberry Pi 4 Model B Rev 1.4 details: BCM2711 rev: d03114
           serial: <filter>
CPU:       Info: Quad Core model: ARMv7 v7l variant: cortex-a72 bits: 32 type: MCP arch: v7l
           family: 7 model-id: N/A stepping: 3
           features: Use -f option to see features bogomips: 1296
           Speed: 1800 MHz min/max: 600/1800 MHz Core speeds (MHz): 1: 1800 2: 1800 3: 1800
           4: 1800
           Vulnerabilities: Type: itlb_multihit status: Not affected
           Type: l1tf status: Not affected
           Type: mds status: Not affected
           Type: meltdown status: Not affected
           Type: spec_store_bypass status: Not affected
           Type: spectre_v1 mitigation: __user pointer sanitization
           Type: spectre_v2 status: Vulnerable
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: bcm2711-vc5 driver: vc4_drm v: N/A bus ID: N/A chip ID: brcm:gpu
           class ID: gpu
           Device-2: bcm2711-hdmi0 driver: N/A bus ID: N/A chip ID: brcm:soc class ID: hdmi
           Device-3: bcm2711-hdmi1 driver: N/A bus ID: N/A chip ID: brcm:soc class ID: hdmi
           Display: server: No display server data found. Headless machine? tty: 102x59
           Message: Advanced graphics data unavailable in console. Try -G --display
Audio:     Device-1: bcm2835-audio driver: bcm2835_audio bus ID: N/A chip ID: brcm:bcm2835_audio
           class ID: bcm2835_audio
           Device-2: bcm2711-hdmi0 driver: N/A bus ID: N/A chip ID: brcm:soc class ID: hdmi
           Device-3: bcm2711-hdmi1 driver: N/A bus ID: N/A chip ID: brcm:soc class ID: hdmi
           Sound Server: ALSA v: k5.15.32-v7l+
Network:   Message: No ARM data found for this feature.
           IF-ID-1: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
           IF-ID-2: wlan0 state: up mac: <filter>
Drives:    Local Storage: total: 14.46 GiB used: 1.86 GiB (12.9%)
           SMART Message: Required tool smartctl not installed. Check --recommends
           ID-1: /dev/mmcblk0 maj-min: 179:0 model: SD16G size: 14.46 GiB block size:
           physical: 512 B logical: 512 B rotation: SSD serial: <filter> scheme: MBR
Partition: ID-1: / raw size: 14.2 GiB size: 13.95 GiB (98.21%) used: 1.81 GiB (13.0%) fs: ext4
           dev: /dev/mmcblk0p2 maj-min: 179:2
           ID-2: /boot raw size: 256 MiB size: 252 MiB (98.46%) used: 49.2 MiB (19.5%) fs: vfat
           dev: /dev/mmcblk0p1 maj-min: 179:1
Swap:      Kernel: swappiness: 60 (default) cache pressure: 100 (default)
           ID-1: swap-1 type: file size: 100 MiB used: 0 KiB (0.0%) priority: -2 file: /var/swap
Sensors:   System Temperatures: cpu: 46.7 C mobo: N/A
           Fan Speeds (RPM): N/A
Info:      Processes: 128 Uptime: 31m Memory: 7.79 GiB used: 577.8 MiB (7.2%) gpu: 256 MiB
           Init: systemd v: 247 target: multi-user.target Compilers: gcc: 10.2.1 alt: 10 Packages:
           apt: 601 lib: 330 Shell: Bash v: 5.1.4 running in: tty 0 (SSH) inxi: 3.3.01

Reporting supported=0 on a Pi4 implies you've disabled the camera stack totally.
What does vcgencmd version report?

Ran a fresh image of raspbian buster with kernel 5.10.
Verified that raspistill works and raspiraw produces the same errors, so I'm reopening the issue.
On this new image, vcgencmd version reports
Dec  1 2021 15:02:46
Copyright (c) 2012 Broadcom
version 71bd3109023a0c8575585ba87cbb374d2eeb038f (clean) (release) (start_x)

On a side note, using this fresh image, vcgencmd reports supported=1 detected=1 , so it's likely as you say that I misconfigured the previous OS image.


How to create simple dialog to show user

Let's say I've collected some information from the current apk file. After that I would like to show to the user that information, for example a comment dialog. This dialog can be shown after pressing some button in menu bar which is added with addMenuAction.
I've tried to find an access to mainWindow from JadxGuiContext with no success. I don't know how to use uiRun function to achieve this. If you can add some examples for this case, it will be very helpful for future plugins.

well, thx to chatgpt I can get current window like this:
    public void showJadxDialogWithoutFrameAccess() {
        // Use uiRun to create the dialog on the Event Dispatch Thread
        uiRun(() -> {
            // Retrieve the currently focused window (likely the main Jadx window)
            Window currentWindow = KeyboardFocusManager.getCurrentKeyboardFocusManager().getActiveWindow();

            if (currentWindow instanceof Frame) {
                // If the active window is a Frame, show the dialog
                SimpleDialog.showDialog((Frame) currentWindow, "Jadx Dialog", "Hello from Jadx plugin!");
            } else {
                // If the current window is not a Frame (or not available), handle gracefully
                System.out.println("No active Frame available to attach the dialog to.");
            }
        });
    }

@eybisi I think you want to do something like this:
guiContext.addMenuAction("Example dialog window", () -> {
	JDialog d = new JDialog();
	d.setTitle("Dialog box");
	JLabel label = new JLabel("This is a dialog box");
	d.add(label);
	d.setSize(200, 100);
	d.setVisible(true);
});

Although, I agree, there is no way to get main window to use is as an owner argument in JDialog constructor. I will add such method to API.

I will add such method to API.

Done, use getMainFrame() with 1.5.1-SNAPSHOT.


无法停止发车

Expected Behaviour
A clear and concise description of what you expected to happen.
通过找不到路径(破坏铁路)停停止发车来防止开来的列车妨碍建设
Actual Behaviour
A clear and concise description of what actually happened.
提示无法创建路径后继续发车,即使那里没轨道
Reproduction Steps
Steps to reproduce the behaviour:
1.下载4.0.0b7-1.20.4“forge
Crash Report
Attach a crash report to the issue.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment

Minecraft Version:1.20.4forge
Installed Mods:mtr only

Additional Information
Anything else you want to add?

Can you verify if this issue still exists in 4.0.0-beta-8? Thanks.


Cipher Block Chaining option

Performance will be poor, but should be try as experimental item.

encode loop( IV[MAXKEYLENGTH = 56] with XOR -> cipher -> XOR shift to current buffer  )


FIX: Bad results files loads; PIN: nipy/nipype master

Changes proposed in this pull request
Pinning nipype with nipy/nipype#3061 merged.
Trying to identify whether all of our test failures are related to this.

Documentation that should be reviewed

Looking good. Will merge this so @tsalo and @emdupre can drop their pins on my branch.


Update Readme explaining #48

At First people will think there is an error when running it. So i'm sending this Pull Request in order to address the issue and that it's perfectly ok
This should close: #48

But how do we configure it to run our information in dev mode? I think this information is rather valuable!
Thanks

@renatomefi Can you check if it's ok?

@MatejMecka yes, great, thanks!

@brandonrosage Can you review this PR so it can be merged?

Yes it looks perfect!


I want to support Insert queries

It shouldn't be too difficult if you can get the column name.

merged.


v5, breaking changes?

What are the breaking changes between 4.x and 5.x? I don't see anything breaking changes in html-minifier around the same time period that you updated to 5.x
Thanks

Taking a look at the diff between the 5.0.1 and 4.0.0 tags it seems like the only breaking change is dropping support for anything below Node.js 6


I can’t change the Visual Studio 2022 text editor colors for Python

I can’t change the Visual Studio 2022 text editor colors for Python. I am missing many "Display Items:" such as Python Class color options.
Here is a screenshot of my Options dialog box:

Options and settings for Python - Visual Studio (Windows) | Microsoft Learn
Describes a “Fonts and Colors Options” that looks like this:

I have gone to Tools/import and export settings wizard/ and reset all settings choosing a "General" collection of settings. (There were no Python settings to reset to).
I also decided to Repair Visual Studio using the Installer, but that didn't change anything either.
I also uninstalled the Python Development Workload, rebooted, created a new Python project, reinstalled the Python Development Workload, rebooted, created a new python project. Opened my current Python project, and still nothing changed.
My Python Environment is using Python3.11 from Python.org. I have another environment that was installed by Visual Studio: 3.9, but I'm not using it.
I am using Visual Studio Community 2022,  Version 17.5.3
Python - Django support   17.0.22336.2
Python - Profiling support   17.0.22336.2
Python - VC Project Support   17.0.21344.1
Python with Pylance   17.0.22336.2
Thanks!

Thank you for reporting this. This is a duplicate of https://github.com/microsoft/PTVS/issues/7082. Seems like a regression bug.
We will also need to update the relevant docs for VS2022 as necessary. FYI, @cwebster-99


my password lost

my pasword lost

You have to remember your password to send coins.  Backup dogekeyfile.hex in %appdata%\verthash-ocm in case you remember.  To create a new wallet, simply delete dogekeyfile.hex and restart.  Remember your password and don't lose it.


Add client ID to lakeFS client connections

Format: "lakefs-airflow-provider (VERSION)".

You can see the client string passed in the provider test - look for "lakeFS logs", it appears as "lakefs-airflow-provider (0.46.3)".
  I will pull with a single approval unless you ask me not to pull.

Thanks!  I switched to using your method of retrieving the package version.  PTAL...

Thanks!


Great idea

I was thinking exactly the same thing, but am taking a different approach
We use Hugo at the moment.
Our system is  flutter based that is driven by markdown and then turned into widgets at runtime.
It will also be easy to add Search using Hive i think.

Thanks!
Would love to sea your solution too. :)

Working on it still
Will be happening here: https://github.com/winwisely99/testharness
But got some other stuff on our list still.
Telegram ( as gedw99 )
http://t.me/gedw99
On Mon, 6 Jan 2020 at 10:35, Aloïs Deniel<EMAIL_ADDRESS>wrote:

Thanks!
Would love to sea your solution too. :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/aloisdeniel/bluff/issues/1?email_source=notifications&email_token=ANLOXAK5KHL4QQEOB3DOG3DQ4L3ONA5CNFSM4KDBLQK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIE5LZQ#issuecomment-571069926,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANLOXAN7EO3X2GKPAHBZE7DQ4L3ONANCNFSM4KDBLQKQ
.

I'll top that. I'm in love with the sight but right now, I'm too nervous to introduce her to my parents kind of feelings what I have is (Yoda word order FTW) :)


Need enhancement on translating technique

I want this to translate on every SPACE pressed. Like after writing Mera, it should translate to My when translating from Hindi to English. A demo website is this.
Need the following logic to be implemented:

On every space pressed, the function of the button should run the trigger

Working on this currently, but if you feel, you can also take this up.

I'll try!

Completed the enhancement as in branch 3.0.


Greek language does not available

Hi,
This command:
youtube-dl --list-subs https://www.youtube.com/watch?v=Q5FHZx0oOqs
does not prints "gr" code. but the video includes greek language subtitle.
I would be happy if you can help me.
Thank you

ISO 639-1 code of greek language is el, not gr.


Debugging binary encoder

Next steps

[ ] Try bigger ptiles (since we know it works for biggest possible tile on centered galaxies). More examples per epoch?

[ ] Redraw test images with correct (normal) noise

[ ] try 1 galaxy not centered with no tiling

[ ] Try 1 centered galaxy with tiling and see it if picks it up

[ ] Try 2 galaxies in 30x30 image with no tiling

Questions

[ ] How confident is the network of it's prediction of 2 galaxies when test image only has 1 galaxy.

This issue is not useful, I prefer the smaller issues like #123 , so I will close it and reopen a more specific one if appropriate later.


The Done checkbox is read only when following the tutorial.

The Done checkbox is read only when following the tutorial.

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

ID: 72d855c6-51fd-a1da-5c44-8b44658c0211
Version Independent ID: 15c87b07-e89e-2b0c-6337-3940a5259101
Content: Tutorial: ASP.NET app with Azure SQL Database - Azure App Service
Content Source: articles/app-service/app-service-web-tutorial-dotnet-sqldatabase.md
Service: app-service
GitHub Login: @cephalin
Microsoft Alias: cephalin

@Wingloader
Thanks for your feedback! We will investigate and update as appropriate.

I’m so sorry.  Please disregard.  I did not read closely enough.  The code was not complete as the tutorial said.  My bad.
Best regards,
Joe

Joe Schmucker, CPA
Cell: 716-481-tel:800-299-20799621
From: RamanathanChinnappan @.>
Sent: Saturday, April 22, 2023 11:42 PM
To: MicrosoftDocs/azure-docs @.>
Cc: Joseph Schmucker @.>; Mention @.>
Subject: Re: [MicrosoftDocs/azure-docs] The Done checkbox is read only when following the tutorial. (Issue #108615)
@Wingloaderhttps://github.com/Wingloader
Thanks for your feedback! We will investigate and update as appropriate.
—
Reply to this email directly, view it on GitHubhttps://github.com/MicrosoftDocs/azure-docs/issues/108615#issuecomment-1518934089, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIG4AUPZBJ4VONF6KX2PDPDXCSQHXANCNFSM6AAAAAAXH6DRHM.
You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>

Joe, no worries, Thanks for the update.

I’m so sorry. Please disregard. I did not read closely enough. The code was not complete as the tutorial said. My bad. Best regards, Joe
…
_________________________________ Joe Schmucker, CPA Cell: 716-481-tel:800-299-20799621 From: RamanathanChinnappan @.> Sent: Saturday, April 22, 2023 11:42 PM To: MicrosoftDocs/azure-docs @.> Cc: Joseph Schmucker @.>; Mention @.> Subject: Re: [MicrosoftDocs/azure-docs] The Done checkbox is read only when following the tutorial. (Issue #108615) @Wingloaderhttps://github.com/Wingloader Thanks for your feedback! We will investigate and update as appropriate. — Reply to this email directly, view it on GitHub<#108615 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIG4AUPZBJ4VONF6KX2PDPDXCSQHXANCNFSM6AAAAAAXH6DRHM. You are receiving this because you were mentioned.Message ID<EMAIL_ADDRESS>


Cannot add multiple activity detectors, the second overwrites the first

Working on an implementation now to fix this, should have a PR up soon, just wanted an issue to note for it.

Well done!


ci(dangerjs): setup ci for danger.js

Description

setup danger js ci

Type of change

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

Checklist:

[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas

Data Results

none

Additional Info

none

https://github.com/rayanfer32/nexus-market-cap/pull/18


[bug] How to initiate a network request on the release apk for android platform

Describe the bug
Unable to properly initiate network request on release apk
Reproduction
tauri-android-demo
pnpm install
pnpm tauri android build --apk
adb install -r ./src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
# run the app and click the button to dispatch the request

Expected behavior
期望正常发起请求
Full tauri info output
[✔] Environment
    - OS: Mac OS 15.0.0 arm64 (X64)
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 18.20.2
    - pnpm: 9.10.0
    - yarn: 1.22.22
    - npm: 10.5.0
    - bun: 1.1.26

[-] Packages
    - tauri 🦀: 2.0.0-rc.15
    - tauri-build 🦀: 2.0.0-rc.12
    - wry 🦀: 0.43.1
    - tao 🦀: 0.30.1
    - @tauri-apps/api : 2.0.0-rc.5
    - @tauri-apps/cli : 2.0.0-rc.16

[-] Plugins
    - tauri-plugin-http 🦀: 2.0.0-rc.5
    - @tauri-apps/plugin-http : 2.0.0-rc.2
    - tauri-plugin-shell 🦀: 2.0.0-rc.3
    - @tauri-apps/plugin-shell : 2.0.0-rc.1
    - tauri-plugin-fs 🦀: 2.0.0-rc.5
    - @tauri-apps/plugin-fs : not installed!

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: Vue.js
    - bundler: Vite

Stack trace
No response
Additional context
No response

I'm fixing the bug on tauri-invoke-http. Note that you might not even need that plugin btw.
The http plugin still couldn't reach your API, maybe it's not handling properly requests that do not contain the JS headers?


Linking Export Tool with fieldcampaigner - Feature Request

To enhance the usability of fieldcampaigner(http://campaigns.hotosm.org), we are planning to add a new feature of export campaign in the campaign details page.
This new feature will create a link between the field campaigner and export tool and the geoJSON data can be exported in the user desired formats.
To do this, it would be reasonable if there exists an api endpoint which fieldcampainger views can call.
@mojodna @cchristelis Does an api point already exists? or Is the above approach feasible?
Thanks.

This need sounds like it could be met by #304 , but i'm not totally familiar with FieldCampaigner. @mataharimhairi

@bdon The permalinks (#304 ) would allow for a non-expiring link, but building out interoperability between MapCampaigner and the Export Tool would take much more work. Let's talk to @smit1678  about this, and what the dev plans for MapCampaigner in the near future are.

Duplicate of #304


Fixes, improvements in php local bridge

file paths are canonical
system dependant DIRECTORY_SEPARATOR is used
glob in list action is replaced to prevent issues with special chars like *[]! etc
uploaded file names are normalized so they contain only ASCII characters
support for nested directories for compression

Will this fix the issue for absolute paths (are not working right now)?

Hi @elboletaire, could you please explain? Where do you use absolute paths?

I'd like to define the basePath as an absolute path, but I can't due to how is initialized the basePath in the php-local bridge.
https://github.com/joni2back/angular-filemanager/blob/master/bridges/php-local/index.php#L20
https://github.com/joni2back/angular-filemanager/blob/master/bridges/php-local/LocalBridge/FileManagerApi.php#L22
The FileManagerApi is initialized without any param, what causes the $this->basePath to be set by default. After that you can't change the $this->basePath and everything works taking that basePath as the main basePath, which forces me to use relative paths instead of absolute ones.

Sorry about my ignorance, but I discovered this project yesterday and, while searching how to implement this I found, somewhere (I cannot find it right now), that one can use both absolut and relative paths, but from my experience the only available option is the relative path.
Searching it now I've found this issue https://github.com/joni2back/angular-filemanager/issues/129#issuecomment-205046040 where DarkStar1 is setting the path directly in the bridge. Is that the way to proceed?

Yes, that's exactly the way to go. The index.php there serves just as an example. You can copy it somewhere else if you wish and modify it to your liking so that it won't get overwritten on updates.

It would be really nice to have a way to configure this just using the angular configuration.
I'll open a feature request (issue) asking for it then.

I am not really a fan of that. Because usually, that would be rather dangerous. It's already dangerous as it is now (since you can define paths with ../ when doing some operations, but which could be worked on), but with the change you proposed, you could set the root to / (root) easily for everything. I absolutely don't recommend using this in env where it could be a problem, but some people still will.

The path you put there is your responsibility. If you decide to put the root is your own business. I think you should grant the user the ability to put whatever they want in there.
On the other hand, the way is done now confuses me (and probably other people, as this is not documented anywhere), because when you discover this project the only way to configure it, following the documentation, is with the angular configuration array.
Although, after you've been confused you'd probably end doing something like I did, using a relative path, which brings some issues to the app (like allow you to access any of the .. defined in your route). In my case I access ../../../files, which allows the user to navigate to .., ../.. and ../../... The first one contains the bridges folder, the second one the entire app and, finally, you can access the parent www folder, which is not accessible by the apache web server directly.
So, IMHO, I think both cases are dangerous, everything depends on how do you use it. And giving the users the ability to configure the absolute path directly from angular would ease a lot the initialization/configuration of this file manager.

Ok, thinking better on it now, I see where the problem would be... we're using javascript, and javascript can be modified directly on the client. Oh god!

Agreed that it'll be easier to configure etc. but the danger coming from the base path being set on the client side is something that can be hard to work around... Yeah, what you wrote basically :) And since we would have to have some API endpoint on the bridges for this too, you could, as an attacker, set it to anything you like. In case you wouldn't have the filesystem set correctly, that would be a very weak point not only for the file manager itself.
PRs are welcome. I see you know a thing or two, so I'm sure you can come up with something better ;) For example having .gitignored config.json and adding additional security check of the path used in the actions would be super welcome.


update publishing/gist_it to 4.x

closes #412

I tried it, it works :)
However, deleting a gist on github and then trying to republish it leads to an ajax error.

@LunarLanding I've updated this to make the gist id editable, and check whether it's valid - this should handle the case you mentioned of having deleted a gist?

@jcb91 it does! thanks!


Support for PuppetDB 4.0.0

Hi!
Just reporting this little error on "Overview" tab after updating to PuppetDB 4.0.0.
Using latest puppetboard version from pip.

The others tabs seems to work fine as usual.
Best regards!
Abel.

PuppetDB 4.0 has a brand new major release, puppetboard and pypuppetdb are built for PuppetDB 3.x. PuppetDB 4.0.0 and higher are not supported yet.

Thanks @corey-hammerton.
Just added the issue for tracking the possible future support for PuppetDB >4.
Are there plans to support it soon? If is not planned shortly, don't worry, close the issue and I'll check the repo regularly.

It is definitely on the roadmap but I do not know presently when those new versions will be released.
Please keep this issue open for our tracking.
Can you please paste some log entries showing the errors?

Having the same issue. I will look at it this weekend

My puppetboard log when you click on "Overview" tab.
==> /var/log/httpd/puppetboard.error.log <==
[Mon Mar 21 08:36:07.584460 2016] [:error] [pid 31550] INFO:requests.packages.urllib3.connectionpool:Resetting dropped connection: puppetdb.mycompanydomain.com
[Mon Mar 21 08:36:07.608437 2016] [:error] [pid 31550] ERROR:pypuppetdb.api:{
[Mon Mar 21 08:36:07.608501 2016] [:error] [pid 31550]   "error" : "No information is known about mbean puppetlabs.puppetdb.query.population:type=default,name=num-nodes"
[Mon Mar 21 08:36:07.608521 2016] [:error] [pid 31550] } puppetdb.mycompanydomain.com:8080 over HTTP.

If you made the same mistake as myself and upgraded puppetdb without a proper schema backup, here is a quickfix to get the Overview page working again :laughing:
Luckily the prefix is defined in puppetboard so we don't have to touch pypuppetdb to work around this.
diff --git a/puppetboard/app.py b/puppetboard/app.py
index e651924..6934a2e 100644
--- a/puppetboard/app.py
+++ b/puppetboard/app.py
@@ -3,6 +3,7 @@ from __future__ import absolute_import

 import logging
 import collections
 try:
     from urllib import unquote
 except ImportError:
@@ -142,16 +143,16 @@ def index(env):
     if env == '*':
         query = None

-        prefix = 'puppetlabs.puppetdb.query.population'
+        prefix = 'puppetlabs.puppetdb.population'
         num_nodes = get_or_abort(
             puppetdb.metric,
-            "{0}{1}".format(prefix, ':type=default,name=num-nodes'))
+            "{0}{1}".format(prefix, ':name=num-nodes'))
         num_resources = get_or_abort(
             puppetdb.metric,
-            "{0}{1}".format(prefix, ':type=default,name=num-resources'))
+            "{0}{1}".format(prefix, ':name=num-resources'))
         avg_resources_node = get_or_abort(
             puppetdb.metric,
-            "{0}{1}".format(prefix, ':type=default,name=avg-resources-per-node'))
+            "{0}{1}".format(prefix, ':name=avg-resources-per-node'))
         metrics['num_nodes'] = num_nodes['Value']
         metrics['num_resources'] = num_resources['Value']
         metrics['avg_resources_node'] = "{0:10.0f}".format(

:+1: Yeah, that worked.
Perfect workaround for using it by now with PuppetDB 4, until the fix come!
Thanks @octomike

Major props @octomike, this is why I love OSS

Fixed by https://github.com/voxpupuli/puppetboard/pull/228


Change monitor frequency when switching AC on/off

Description
Long story short, I got a new laptop (this time AMD 😉), and I wanted to configure the computer to reduce the monitor frequency (from the 165Hz it is set to) to 60Hz to save battery life.
I found this about it:
https://www.reddit.com/r/hyprland/comments/1dhcasm/refresh_rate_dependent_on_batterycharger/
But I think this could be implemented inside hyprland,
I had thought something like this when configuring a monitor:
monitor=eDP-1,1920x1200@165,0x0,1,AC,1920x1200@60
Maybe this feature could be added as part of hypridle:
https://github.com/hyprwm/hypridle/issues/67

nope, hyprland doesnt read or control your power modes

It would be such a nice feature, but maybe for another ecosystem package, like hyprpower or something anything but included in Hyprland itself.
Maybe additional API for display management provided by Hyprland that can be used by 3rd party utilities.

there already is one, and apps like kanshi or shikane use it