add full authentication

I think that it would be great to authorize to block all the requests if the user is not authenticated
This is why I request this.
It is also possible to set a read only user (full-authenticate) and a read-write user (authenticate)

Hello @thomas-lamure, thank you for your contribution.
I am not really keen on managing authentication/authorization in docker-compose-ui. Actually, I plan to deprecate the current @requires_auth decorator.

I've found this to be much more flexible: I can add authentication only for specific endpoints (e.g. everything except GET requests) or I can have multiple levels of authentication (e.g. guest, read-only and  administrator accounts).
Do you think thi approach would it suit your needs?

Ok, no problem, i did the same, i was just proposing it for those who does not want to proxyfy their requests.


Isar-1.0.0+1 - IsarError: LmdbError (12): "Cannot allocate memory"

Steps to Reproduce
I was using Isar 0.4.0 and upgraded to 1.0.0+1. Now, when running the app on an iPhone, startup fails with error:
IsarError: LmdbError (12): "Cannot allocate memory"

Code sample
Example code using path_provider: 2.0.8 during app startup:
void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  Directory appDocDir = await getApplicationDocumentsDirectory();
  final isar = await Isar.open(schemas: [MySchema], directory: appDocDir.path);

The exception gets thrown from openIsarNative on the line await stream.first;
Version

Platform: iOS 15.2
Flutter version: 2.9.0-0.1.pre (beta channel)
Isar version: 1.0.0+1
Isar Generator version:1.0.0+1

@travishaagen thanks for the report.

what iPhone model does it happen on?
did you upgrade an existing database or is it a new one?
how big is the database file?

@leisim : It's an iPhone SE. I deleted the app, so it's a new, empty database.

@leisim
I`m too.
platform: iPhoneX
OS version: 11.3
flutter version: 2.2.3
Isar version: 1.0.0+1

@takapiroid88 Does it happen for a debug or release build? Do you see the issue for every launch or only sometimes?

@leisim
i'm try debug build.
every launch happened. 3 / 3

@travishaagen thanks! Could you maybe create a small sample app? I fail to reproduce the issue. That would be super helpful 🙌

@travishaagen @takapiroid88 Found the issue and fixed it. Would be awesome if you could test again with isar: 1.0.5

@leisim
Reproduced...
Error
[VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: IsarError: LmdbError (12): "Cannot allocate memory"

pubspec.yaml
dependencies:
  ...
  isar: 1.0.5
  isar_flutter_libs: 1.0.0+1
  isar_connect: 1.0.0+1

This was an isar-core problem so you need to update isar_flutter_libs. Please always use the same version for all isar dependencies.

@leisim : works in the simulator, but not on my iPhone SE (app deleted first):
Installing and launching...
(lldb) 2022-01-06 15:04:54.891305-0800 Runner[23940:949451] Warning: Unable to create restoration in progress marker file
Debug service listening on ws://<IP_ADDRESS>:49838/4qAMq07szjk=/ws
Syncing files to device iPhone...
* thread #18, stop reason = EXC_BAD_ACCESS (code=1, address=0x102cd0000)
    frame #0: 0x00000001de4aaca4 libsystem_platform.dylib`_platform_memset + 36
libsystem_platform.dylib`_platform_memset:
->  0x1de4aaca4 <+36>: stnp   x1, x1, [x0]
    0x1de4aaca8 <+40>: stnp   x1, x1, [x0, #0x10]
    0x1de4aacac <+44>: stnp   x1, x1, [x0, #0x20]
    0x1de4aacb0 <+48>: stnp   x1, x1, [x0, #0x30]
Target 0: (Runner) stopped.
Lost connection to device.

@travishaagen thanks for helping me to fix this! Is it an iPhone SE 2020 or the older model? Which iOS version does it run? do you also see this error in release mode?

Good news! After cleaning up the cocoapods, it seems OK. I'll do some more testing.
# from project root
flutter clean
flutter pub get

cd ios/

rm -rf ~/Library/Caches/CocoaPods Pods ~/Library/Developer/Xcode/DerivedData \
  && pod deintegrate \
  && pod repo update \
  && pod install --verbose

cd ..

^ Seems like I need to do this for a lot of plugins. Wish Flutter could manage it somehow.

Original iPhone SE ;)

phew, that is really good news! Yes, I also noticed that flutter tooling still needs a lot of work for iOS. I wish that had higher priority. Anyway, happy it works now for you! Please feel free to open issues if you experience problems 🙌

@leisim
thanks.
working successfull!!


SSH- key management isn't user friendly

Current situation:
If user has a lot of envs (more than 1), and he/she wants to deploy his ssh key to env, then the user must mark check box that is opposite to the env. And If later user needs to deploy key to other env. he/she should add mark to checkbox of next env.
But As I understand if my key deployed to first env, I need to uncheck its checkbox, but if I will make this key will be deleted from first env.
We need to add some buttons for deploy and delete keys from each env,  more general because each user can understand differently (like me)

Gotta get instructions from Scott on this issue

Fixed by this issue: https://github.com/subutai-io/control-center/issues/1446


Docker setup

Codecov Report

Merging #156 (12f65c4) into beta (5588f93) will increase coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             beta     #156      +/-   ##
==========================================
+ Coverage   30.24%   30.35%   +0.11%
==========================================
  Files          60       60
  Lines         906      906
  Branches      345      345
==========================================
+ Hits          274      275       +1
  Misses        452      452
+ Partials      180      179       -1

Impacted Files
Coverage Δ

...n/scala/dev/atedeg/mdm/clientorders/dto/DTOs.scala
28.30% <0.00%> (+0.94%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Can't log in in webui

I'm sorry if it's probably easy to do & I'm a n00b, but I've set username and password in config.json for webui, but it won't let me log in; the server is started but I can't log in.

I believe your the same person this was resolved for on discord, so closing.


Update Rails to 7.1.0

This PR will update rails to version 7.1.0.
There was a previous attempt at this that failed in the docker image build, due to an incompatibility in syntax with uglifier. This PR includes the update to uglifier syntax to handle the incompatibility.
⚠ This repo is Continuously Deployed: make sure you follow the guidance ⚠

We're closing this in favour of a new dependabot PR for 7.1.1


Switch to BSD 2-Clause license and alternate licensing options

While studying change of MediaConch license, I remarked that some people have a weird interpretation of the word "software" in MIT license, interpreting MIT license as like the zlib license (i.e. without binary redistribution clause) e.g. in LLVM licensing doc, and LLVM is backed by Apple so I prefer to explicitly avoid that: I would like that copyright owners are indicated also in binary distributions.
For the same reasons as for MediaConch (long story short: avoiding issues with incompatible license requests), I wish to offer alternate licenses possibility, so it is also added in this PR.
@retokromer please review.

(I’ll fix later HTML5 ;-)

Oops :)

The README.md needs to be modified as well.

README.md as well as .cpp / .h and some Linux distro files have been updated.

Should we not be added to the .cpp and .h as well?
Alternate licences make things a little more complicated, but I am not against them at all.

Should we not be added to the .cpp and .h as well?

You talk about alternate licenses? I think file headers should not be too complex, the alternative licenses are intended for rare usages, I don't want to make thing more complex everywhere, and file headers point to the License.html file. It is more on the principle to say that we agree on that, and if a lawyer want more we would provide a specific document.
The primary license is BSD.

You talk about alternate licenses?

No, about our company. I plenty agree with keeping the file headers simple (only BSD)!

No, about our company.

Oops, it was not intended to silently hide something, I reused my classic headers I didn't catch the issue. I did not change the (c) line in this PR.
Additional commit for changing source file headers with both names.


Staking User Interface

It is not completed yet, but I wanted to give a heads-up that I started working on a staking dapp for a POC on Fuel

It is not completed yet, but I wanted to give a heads-up that I started working on a staking dapp for a POC on Fuel
https://github.com/bearknowledge/DefiDepot

Thanks for leaving a note. I will point out that we have a PR #168 which is part way through implementing some contracts. You may be interested in checking that out.

Thank you for this, will add the necessary components/ buttons from the draft. Do you have a timeline for when this will be deployed on testnet?

Thank you for this, will add the necessary components/ buttons from the draft. Do you have a timeline for when this will be deployed on testnet?

None of the prototype apps have been deployed to testnet nor have a timeline for when that will happen. The plan is to create smart contracts and then the UIs. The escrow is the closest to having this be completed so that's the one that is closest to a possible deployment.

Closing to consolidate to just https://github.com/FuelLabs/sway-applications/issues/126


Update/Add Microsoft.NETCore.App v8.0.7

Tool name
Microsoft.NETCore.App
Tool license
same as other versions of Microsoft.NETCore.App
Add or update?

[ ] Add
[X] Update

Desired version
8.0.7
Approximate size
No response
Brief description of tool
Security vulnerabilities in current version
URL for tool's homepage
https://dotnet.microsoft.com/en-us/download/dotnet/8.0
Provide a basic test case to validate the tool's functionality.
No response
Platforms where you need the tool

[X] Azure DevOps
[ ] GitHub Actions

Runner images where you need the tool

[ ] Ubuntu 20.04
[ ] Ubuntu 22.04
[ ] Ubuntu 24.04
[ ] macOS 12
[ ] macOS 13
[ ] macOS 13 Arm64
[ ] macOS 14
[ ] macOS 14 Arm64
[ ] Windows Server 2019
[X] Windows Server 2022

Can this tool be installed during the build?
No response
Tool installation time in runtime
No response
Are you willing to submit a PR?
No response

@JSdeJong-- Thank you for bringing this issue to us. We are working on it and will update you:)

Hi @JSdeJong - We are pleased to announce that the new version of Microsoft.NETCore.App has been successfully updated. This update includes several enhancements and bug fixes to improve performance and stability. Thank you for your attention and cooperation. We are closing this.
Let me know if you need any further assistance!


getFirebaseConfig.js

User@DeviceName Cloud % node build.js
node:internal/modules/cjs/loader:1146
throw err;
^
Error: Cannot find module './firebaseConfig.json'
Require stack:

/Users/User/GPT-main/Cloud/GetAdmin.js
/Users/User/GPT-main/Cloud/createApiKey.js
/Users/User/GPT-main/Cloud/build.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:179:18)
at Object. (/Users/User/GPT-main/Cloud/GetAdmin.js:3:24)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Module.require (node:internal/modules/cjs/loader:1231:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/User/GPT-main/Cloud/GetAdmin.js',
'/Users/User/GPT-main/Cloud/createApiKey.js',
'/Users/User/GPT-main/Cloud/build.js'
]
}

Node.js v20.12.1
Note: Running node getFirebaseConfig.js separately doesn't seem to work either... it runs for a sec then... nothing

Do you have the firebase cli tools installed?
Iow did you do these steps from the Readme.md:
To build and deploy your server follow these steps:
Open a terminal and navigate to the Cloud folder.

Run npm install -g firebase-tools to install the firebase cli, if you haven't already.
Run firebase login to log in to the firebase cli, if you haven't already
Run firebase use  to select the project you created (you can use firebase projects:list to see all your projects)

Yep, did all three steps -- but no worries, it's building now ... I seem to have resolved the error by going to firebase, adding a new app within my project, then manually creating the config file, .... and it looks like the build just finished actually:
Copying API key, Instructions, and Schemas to Build folder
Copying API key, server url, and firebase configuration to Assistant
This is an incredibly interesting build you've made. Next step for me is to add or substitute one of its tools/apps to vsCode... if that's possible then I should be able to seamlessly write or edit and test code via this GPT interface.. is adding an app or 'tool' like vsCode pretty straightforward here? I'll be starting that now after I build the GPT (Gonna change the prompt a bit too, it can be better optimized for coding than it is imo).... also, consider making a discord or something around this project... great work and much appreciated.

We actually have a VSCode plugin. Unfortunately it's not integrated with the build, currently. The plugin has to be built and installed in VSCode and the function/action has to be added to the GPT
{
"type": "function",
"function": {
"name": "vscode",
"description": Execute javascript code inside of a Visual Studio Code (VSCode) extension. You can safely access all capabilities of VSCode via its extensibilty API. This allows you to assist the user in all forms of software development.,
"parameters": {
"type": "object",
"properties": {
"javascript": {
"type": "string",
"description": "The javascript code to execute."
},
},
"required": ["javascript"],
}
}
}
If you're interested i can check it in on branch

Ah i didn't know it would be as involved as that -- needing a plugin and all, I was going to see if javascript and another tool (better touch tool) could at least aid in getting code in and out of vscode.
"If you're interested i can check it in on branch"
plugin sounds much better than what id planned, check it in fs and ill test

https://discord.gg/DrjcnzG8


GH-2452 shacl language subtag

GitHub issue resolved: #2452
Briefly describe the changes proposed in this PR:
Use the built in support for BCP 47 in Java to handle language tags in the SHACL engine for sh:languageIn.

PR Author Checklist (see the contributor guidelines for more details):

[ ] my pull request is self-contained
[ ] I've added tests for the changes I made
[ ] I've applied code formatting (you can use mvn process-resources to format from the command line)
[ ] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change
[ ] every commit has been signed off

Note: we merge all feature pull requests using squash and merge. See RDF4J git merge strategy for more details.

@rdstn this should fix your issue

TODO: Retarget against master.


We are looking for customers to be listed as a customer on keda.sh

We are looking for KEDA customers who are interested to be listed as a customer on keda.sh.
If you are, please comment here and provide a logo that we can use.

Happy to be added.
Logo can be found at https://www.cloud-trade.com/wp-content/uploads/2019/04/CloudTradeLOGO.png
Our website is https://www.cloud-trade.com/.
We are using Keda with RabbitMQ.
Thanks

Thanks @PixelRobots! PR is open - https://github.com/kedacore/keda-docs/pull/79

@PixelRobots It's live on keda.sh, thanks!

Awesome. Thank you.

Happy to be added Mivation, Inc ( https://www.mivation.com )

Not sure if we count as a customer but Apache Airflow is leveraging KEDA in the upcoming official helm chart https://github.com/apache/airflow
https://github.com/apache/airflow/tree/master/chart


Adds smtp server detection test

See https://github.com/OISF/suricata/pull/3823

Closing as this needs other suricata fixes first (see suricata PR)


Update jackson-jr-objects to 2.9.9

Summary
Bumps jackson-qr-objects to v2.9.9.
There's an open CVE on the older version of Jackson: https://nvd.nist.gov/vuln/detail/CVE-2018-11307
The wildcard pattern matches the jackson-jr-objects library used by braintree_java. I'm not sure if it's meant to be included and, if it is, I don't think there's any security issue with the usage of the older version as braintree_java only deserializes via JSON.std.mapFrom(...), but would be nice to have this closed out anyway.
Checklist

[X] Added changelog entry
[X] Ran unit tests (mvn verify -DskipITs)

Sorry for the wait. Thanks for making this change!


u64x4::clamp producing unexpected and incorrect results

It has been observed that, at least on x86 systems, the usage of std::simd::u64x4::clamp may cause undefined behaviour under seemingly random conditions, or at least may not function properly.
The issue can be reproduced in the Rust Playground (Edit: in both debug and release modes):
#![feature(portable_simd)]
use std::simd::*;
fn main() {
    let x = u64x4::from_array([10,1,1,1]);
    let y = x.clamp(u64x4::splat(0), u64x4::splat(9));
    let z = y.as_array();
    dbg!(z);
}

I expected this code to produce a result of [9, 1, 1, 1].
The code, in my testing, instead produced a result of [9, 9, 9, 9].
#![feature(portable_simd)]
use std::simd::*;
fn main() {
    let x = u64x4::from_array([1,1,1,10]);
    let y = x.clamp(u64x4::splat(0), u64x4::splat(9));
    let z = y.as_array();
    dbg!(z);
}

This example should have produced a result of [1, 1, 1, 9].
It instead produced a result of [1, 1, 1, 10].
Meta
rustc --version --verbose:
rustc 1.61.0-nightly (10913c000 2022-03-03)
binary: rustc
commit-hash: 10913c00018c76103b2fd4260d8c02ec728fd244
commit-date: 2022-03-03
host: x86_64-unknown-linux-gnu
release: 1.61.0-nightly
LLVM version: 14.0.0

that's because clamp is currently only implemented for floats. you're getting Ord::clamp instead, which is giving the correct results (since it lexicographically compares the vectors and returns one of the input vectors, rather than the element-wise clamp your expecting).

this is nearly identical to what's happening in #247
we need to add clamp (and min/max) functions for integer vectors.


[IMPROVE] DOT max send logic

Currently the DOT max send logic is not very user friendly.
Please:

[ ] When sending max amount deduct the correct gas to send the max amount, draining the whole address without the user manually subtracting the gas fee.

[ ] When sending that account would fall below 1 DOT threshold, send pop up message "Keep account balance above 1 DOT. The remaining funds will be lost if balance is below 1 DOT" and prevent user to send funds.

So essentially only allow sends where remaining balance is above 1 DOT or a complete MAX send of the balance

I think before max send was not possible as allow_death was disabled.
but yes essentially this. So no user could by accident loose funds under 1 DOT.
And instead of a red error message we need a shorter one in a pop up, as described in the issue.


how to attachSchema Meteor.users in ES6 meteor

import {Meteor} from 'meteor/meteor';
import {Schema, SimpleSchema, attachSchema} from 'meteor/aldeed:collection2';

export default () => {
  Schema = {};
  Schema.User = new SimpleSchema({
    subscriprions: {
        type: Object
    }
  });
  Meteor.users.attachSchema(Schema.User);
};

but error like this
While processing files with ecmascript (for target os.osx.x86_64):
server/configs/initial_users.js:5:2: /server/configs/initial_users.js:
"Schema" is read-only

You dont need to import attachSchema  and Schema  from aldeed:collection2 package.
Take in care that  Schema = {}; its just a way to make a simple namespace for schemas, by your own, so if you want to to use Schema = {};  you should do something like.
import { App } from '../namespace.js' // or something
And in order to make SimpleSchema  works jus do this.
import { SimpleSchema } from 'meteor/aldeed:simple-schema';

How did you end up getting this working @aligos?

i don't use Schema for user anymore. i am creating data to users.profile.yournewdata without adding schema for users.


[feat] exhaustive-deps rule

Describe the problem
the exhaustive-deps rule from the eslint-plugin-react helps make sure effects always have an up-to-date list of dependencies to run correctly. This is something we'd love to have before considering the migration to eslint-react. Is there a reason why it's not ported over?
Describe the solution you'd like
add the react-hooks/exhaustive-deps rule! original reference here
Alternatives considered
No response
Additional context
No response

I believe this intent of this library isn't to recreate the rules that are in the react team's eslint-plugin-react-hooks, but instead to be additional rules that would be useful on top of those two.  As evidenced by the examples folder where both plugins are being used: https://github.com/Rel1cx/eslint-react/blob/main/examples/vite-react-dom-app/eslint.config.js


Change TimeoutError => asyncio.TimeoutError

Problem
I'm currently running python 3.9 with the huggingface_hub AsyncInferenceClient library.
When a request times out, the library is supposed to catch the TimeoutError and reraise a custom InferenceTimeoutError: https://github.com/huggingface/huggingface_hub/blob/3734d74/src/huggingface_hub/inference/_generated/_async_client.py#L230-L233
However, when these exceptions occurred for me, I'd never catch the custom error; I'd get an asyncio.TimeoutError.
The reason this is happening is because a TimeoutError and asyncio.TimeoutError are different exceptions in python3.9:

py39 docs: https://docs.python.org/3.9/library/asyncio-exceptions.html

Important This exception is different from the builtin TimeoutError exception.

py311 docs: https://docs.python.org/3/library/asyncio-exceptions.html

Changed in version 3.11: This class was made an alias of TimeoutError.

Because this library never catches the actual error, it never calls await client.close(). This doesn't have huge consequence, but it means I get noisy error logs about unclosed sessions (source):
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fcee450ff10>

Solution
I think the easiest fix here is to simply catch asyncio.TimeoutError in the AsyncInferenceClient timeout-path. Because newer versions of python alias this library, I see no reasons why it wouldn't be forward-compatible either
Commentary
I can add some testcases / reproducible steps to this, but want to make sure the repo owners are amenable to this change. I did read the contributing docs, but I just want to make sure the repo doesn't have a policy around "only support python version 3.X+" or something

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

Hi @matthewgrossman thanks for opening this PR and for the clear explanation of the problem. I've never encountered this problem as I was testing async TimeoutError only locally and on Python 3.11. The fix you propose looks good to me.

I just want to make sure the repo doesn't have a policy around "only support python version 3.X+" or something

We want to support Python3.8+ so this PR is definitely helpful!

Tests are flaky at the moment. I'll merge this PR right now as the tests are not related to your PR. Thanks for your contribution :)

Great, glad it's helpful! Let me know if you want anything else in the PR (I see now that CI does run py3.8 tests; could a unit test have caught this?)
otherwise it's ready to merge away 🎉

I see now that CI does run py3.8 tests; could a unit test have caught this?

@matthewgrossman Thanks for suggesting! Indeed adding a unit test would be good to as well. I would add it to test_inference_async_client.py. Let me know if you need help/guidance/review for that :)

I locally removed the fix, just to confirm the test validates the behavior:
$ git diff

diff --git a/src/huggingface_hub/inference/_generated/_async_client.py b/src/huggingface_hub/inference/_generated/_async_client.py
index ad068c6..546847f 100644
--- a/src/huggingface_hub/inference/_generated/_async_client.py
+++ b/src/huggingface_hub/inference/_generated/_async_client.py
@@ -228,7 +228,7 @@ class AsyncInferenceClient:
                         content = await response.read()
                         await client.close()
                         return content
-                except asyncio.TimeoutError as error:
+                except TimeoutError as error:
                     await client.close()
                     # Convert any `TimeoutError` to a `InferenceTimeoutError`
                     raise InferenceTimeoutError(f"Inference call timed out: {url}") from error

 ~/src/huggingface_hub  mg/fix-asyncio-timeouterror  » python3 -m pytest tests/test_inference_async_client.py::test_async_generate_timeout_error
...
tests/test_inference_async_client.py::test_async_generate_timeout_error FAILED

When I remove the local changes, it starts to pass (which we should see once you approve the workflow for CI). Feel free to give any feedback on the test I wrote!


Implements fips_files_ex() and fips_src().

fips_files_ex() can basically do a fips_dir + fips_files with cmake globbing
expressions for what to include and what to exclude.
fips_src() is exactly the same but adding by default any file *.c, *.cc,
*.cpp, *.h, *.hh or *.hpp.
We can rename the functions if we find anything better.
Also note that I let some messages commented in the code to easy debugging in the short term. We can remove them if you do think it will be better too.
These two functions are needed for my incoming changes to fips-bgfx project.

Merged, but I have 2 small things:

we should probably add a little test to the fips-hello-world project or one of its dependencies
this whole 'globbing all files from a directory' thing isn't quite proper cmake-style, since cmake can not detect when files have been added or removed, which normally requires editing the CMakeLists.txt file, which in return triggers a cmake run from within the IDE or before a build, but I don't care so much about it, because 'don't add your own wrapper functions' is also a cmake rule, and fips breaks this anyway :P

Yes, that is why I've made a remark in the docs.
But I can see this as a valid thing when using other people libraries, as it is the case of fips-bgfx. This means that I do not need to be aware of any added or removed and I let CMake take care of it for me. also this speed up things when porting a lib to use fips. So, I can see as a win-win situation. :)
But, for doing our own project fips native then yes, we should avoid this at all costs.
About the test, yes, I've let it for another time. Will do it asap.

ok, no pressure ;)

ah, I totally forgot to update the documentation webpage, your changes are up now. I had to fix a few minor markdown formatting problems where it was confused about all the square brackets and underscores.


Queue hangs indefinitely when using a Carbon object for the "backoff"

Laravel Version: 8.16.1
PHP Version: 7.4.10
Database Driver & Version: MySQL 8.0.21

Description:
TBH, not sure if this is a bug, or operating as intended.
The documented way to set a custom "backoff" directly on a Job is either via a property or method:
https://laravel.com/docs/8.x/queues#dealing-with-failed-jobs
/**
 * The number of seconds to wait before retrying the job.
 *
 * @var int
 */
public $backoff = 3;

/**
 * Calculate the number of seconds to wait before retrying the job.
 *
 * @return int
 */
public function backoff()
{
    return 3;
}

However, if you dive into the source, you'll see that it also tries to account for instances of \DateTimeInterface that are passed to it.
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Queue/Queue.php#L178
/**
 * Get the backoff for an object-based queue handler.
 *
 * @param  mixed  $job
 * @return mixed
 */
public function getJobBackoff($job)
{
    if (! method_exists($job, 'backoff') && ! isset($job->backoff)) {
        return;
    }

    return collect($job->backoff ?? $job->backoff())
        ->map(function ($backoff) {
            return $backoff instanceof DateTimeInterface
                ? $this->secondsUntil($backoff) : $backoff;
        })->implode(',');
}

Which means, if we are using the backoff() method, we should be able to do this:
/**
 * Calculate the number of seconds to wait before retrying the job.
 *
 * @return \Illuminate\Support\Carbon
 */
public function backoff()
{
    return now()->addMinutes(5);
}

Some people like to do this so the code is a little more readable. However, this will break the queue, and cause it to sit in "processing" indefinitely.
It looks like this was caused by this commit, which added the ability to do "exponential backoffs".
https://github.com/laravel/framework/commit/e9b892fc4958269279926147ea8979e6547dcd25
Specifically, it is being caused by instantiating a Collection by passing a Carbon instance. Because the Carbon object is an instance of \JsonSerializable, it is hitting this line in the Collection instantiation:
https://github.com/laravel/framework/blob/8.x/src/Illuminate/Collections/Traits/EnumeratesValues.php#L887
/**
 * Results array of items from Collection or Arrayable.
 *
 * @param  mixed  $items
 * @return array
 */
protected function getArrayableItems($items)
{
    if (is_array($items)) {
        return $items;
    } elseif ($items instanceof Enumerable) {
        return $items->all();
    } elseif ($items instanceof Arrayable) {
        return $items->toArray();
    } elseif ($items instanceof Jsonable) {
        return json_decode($items->toJson(), true);
    } elseif ($items instanceof JsonSerializable) {
        return (array) $items->jsonSerialize();
    } elseif ($items instanceof Traversable) {
        return iterator_to_array($items);
    }

    return (array) $items;
}

I can "solve" this in my application by returning an array from the backoff() method:
/**
 * @return array
 */
public function backoff()
{
    return [
        now()->addSeconds(10),
    ];
}

But I'd like to solve it in core as well. I think there are 3 options we could take. First, we could account for it at a low level when instantiating a Collection, so essentially:
collect(now());

behaved the same as:
collect([now()]);

but this would be a breaking change, and I'm not sure what the effects of this would be.
Second, we could solve it higher up the chain, and specifically account for it in the Queue:
/**
 * Get the backoff for an object-based queue handler.
 *
 * @param  mixed  $job
 * @return mixed
 */
public function getJobBackoff($job)
{
    if (! method_exists($job, 'backoff') && ! isset($job->backoff)) {
        return;
    }

    $methodBackoff = $job->backoff() instanceof DateTimeInterface ? [$job->backoff()] : $job->backoff();

    return collect($job->backoff ?? $methodBackoff)
        ->map(function ($backoff) {
            return $backoff instanceof DateTimeInterface
                ? $this->secondsUntil($backoff) : $backoff;
        })->implode(',');
}

Or option 3, we could require people to return an array in their backoff() method if they want to use Carbon objects:
/**
 * @return array
 */
public function backoff()
{
    return [
        now()->addSeconds(10),
    ];
}

Steps To Reproduce:
Return a Carbon object from a Job backoff() method:
/**
 * @return \Illuminate\Support\Carbon
 */
public function backoff()
{
    return now()->addSeconds(10);
}

fixed with https://github.com/laravel/framework/commit/c6f14c6da9c36219455ae66bb853cfbc27d3b24d

Great, thanks.


Make sure aiy.audio.say uses the aiy.i18n's language.

This fixes #109
Tested:
Changed $HOME/.config/voice-recognizer.ini to use en-GB.
Ran src/main.py --cloud_speech
Verified the TTS sound has a British accent.

Codecov Report

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

@@           Coverage Diff           @@
##           master     #113   +/-   ##
=======================================
  Coverage   65.83%   65.83%
=======================================
  Files           2        2
  Lines         161      161
  Branches       16       16
=======================================
  Hits          106      106
  Misses         52       52
  Partials        3        3

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 afcd241...f82705a. Read the comment docs.


Important challenge: show "pre-populated" viewer without error

🧰 Task
related to the challenge of reusing a viewer model after closing its window (i.e. viewer = Viewer(); viewer.close(); viewer.show()) see  #2225 and #2238)... Inasmuch as our viewer.window and related objects are a view/controller for the underlying model, we should conceptually be able to create and show a window for a viewer model that has been "pre-populated" with layers.
For example, with a little modification of the Viewer class to move the window creation into the show() method (which is probably where it should be anyway, since we don't need any Qt to use a hidden viewer) ...
    def __init__(self, ...):
        self._window = None
        if show:
            self.show()

    def show(self, *, block=False):
        if self.window is None:
            from .window import Window
            self._window = Window(self)
        self.window.show(block=block)

you can make a viewer that has no window at first, and you can start using it:
viewer = napari.Viewer(show=False)
viewer.add_points()

but when you try to then show it, you get an error:
viewer.show()

~/Dropbox (HMS)/Python/forks/napari/napari/_qt/qt_viewer.py in _add_layer(self, layer)
    409
    410         # QtPoll is experimental.
--> 411         if self._qt_poll is not None:
    412             # QtPoll will call VipyBaseImage._on_poll() when the camera
    413             # moves or the timer goes off.

AttributeError: 'QtViewer' object has no attribute '_qt_poll'

I suspect that QtPoll error is just the tip of the iceberg... but this is definitely something that we should be able to do if we want to someday be able to serialize the viewer and reconstruct it, or if we want to start headless and go "heady", etc...  Basically, the Qt shouldn't need to be there all along to construct a visual viewer from an existing ViewerModel.
@nclack ... this seems like something you might enjoy digging into?

ah... maybe not so much of a challenge! this line in qt_viewer  just needs to be kept after some of the other stuff
        for layer in self.viewer.layers:
            self._add_layer(layer)

would be good to add a test for the that to prevent future reversions

will pick this back up in another PR


[ottf,ujson] make ujson and OTTF consoles configurable

Description
Background
Top-level tests have two consoles for sending data out of the chip (the ujson console and ottf console). Both currently hook up to UART 0.
Problem
The Automated Test Equipment (ATE) used in manufacturing is setup to communicate with the DUT over SPI (instead of UART).
Solution / Requirements

[ ] make ujson framework's OTTF console device configurable (defaulting to UART but also allowing spi_device)
[ ] make OTTF console device configurable (same as above), maybe as part of ottf_test_config_t struct
[ ] investigate the need for / implement a mechanism to send/receive ujson messages that are larger than SPI FIFO
[ ] implement top-level smoke test on HyperDebug+CW310 to test the above works

Should the OTTF console config (UART, SPI or other) be dynamic, or would it be known at compile time?

Compile time is OK. Most tests will default to UART console, but the manufacturing tests we most likely only want to run with SPI (as this will be the only interface available).
If we find we need this to be dynamic in the future we can always make that modification later.


Bug: group by aggregation on internal table gives a wrong result

Describe the bug
dev=> explain select count(*) from __internal_v_4_hashjoinleft_1003 group by t_a;
                                QUERY PLAN
--------------------------------------------------------------------------
 BatchSimpleAgg { aggs: [sum0(count)] }
 └─BatchExchange { order: [], dist: Single }
   └─BatchSimpleAgg { aggs: [count] }
     └─BatchScan { table: __internal_v_4_hashjoinleft_1003, columns: [] }

Error message/log
No response
To Reproduce
No response
Expected behavior
No response
How did you deploy RisingWave?
No response
The version of RisingWave
No response
Additional context
No response

#7413


[stable/suitecrm] Fix metrics image tag in README.md

Signed-off-by: Andrés Bono<EMAIL_ADDRESS>What this PR does / why we need it:
It just fixes a typo in the README.md
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

[x] DCO signed
[x] Chart Version bumped
[x] Variables are documented in the README.md
[x] Title of the PR starts with chart name (e.g. [stable/chart])

/lgtm

/ok-to-test


Segmentation fault on Linux (ParrotOS)

Hey, it's me, XenialDan from Discord.
i tried my example code under linux, and it crashes via segmentation fault
code: https://github.com/thebigsmileXD/v-pong/blob/master/sound.v
warning: miniaudio/miniaudio.v:53:15: `frames_read` declared and not used

Loading wav
[miniaudio] Endian:  LE
[miniaudio] SSE2:    YES
[miniaudio] AVX2:    NO
[miniaudio] AVX512F: NO
[miniaudio] NEON:    NO
[PulseAudio] Playback attr: maxlength=5280, tlength=1760, prebuf=-1, minreq=-1, fragsize=1760; internalBufferSizeInFrames=1320
[PulseAudio] Playback actual attr: maxlength=5280, tlength=1760, prebuf=1324, minreq=440, fragsize=1760; internalBufferSizeInFrames=1320
[PulseAudio]
  Built-in Audio Analog Stereo (Playback)
    Format:      16-bit Signed Integer -> 16-bit Signed Integer
    Channels:    2 -> 2
    Sample Rate: 44100 -> 44100
    Buffer Size: 1320/3 (440)
    Conversion:
      Pre Format Conversion:    NO
      Post Format Conversion:   NO
      Channel Routing:          NO
      SRC:                      NO
      Channel Routing at Start: NO
      Passthrough:              YES
Playing wav 0
Seeking frame 0
Segmentation fault

What is weird is that the length seems to be 0 on linux. On windows it is the actual length.
On windows the program silently exits, which is also a segfault i guess:
C compiler=gcc
warning: miniaudio\miniaudio.v:53:15: `frames_read` declared and not used
Loading wav
Playing wav 1593
Seeking frame 0

@thebigsmileXD weird. Can you attach your wav? Maybe the file has header information the wav loader doesn't like

https://github.com/thebigsmileXD/v-pong/blob/master/click.wav

Here is the error report of windows, maybe that helps
Quelle
sound.exe

Zusammenfassung
Nicht mehr funktionsfähig

Datum
24.12.2019 02:20

Status
Der Bericht wurde gesendet.

Beschreibung
Pfad der fehlerhaften Anwendung:	C:\Users\XenialDan\Desktop\V\vcode\v-pong\sound.exe

Problemsignatur
Problemereignisame:	BEX64
Anwendungsname:	sound.exe
Anwendungsversion:	<IP_ADDRESS>
Anwendungszeitstempel:	5e0167c4
Fehlermodulname:	StackHash_3703
Fehlermodulversion:	<IP_ADDRESS>
Fehlermodulzeitstempel:	00000000
Ausnahmeoffset:	PCH_60_FROM_ntdll+0x000000000009CC14
Ausnahmecode:	c0000005
Ausnahmedaten:<PHONE_NUMBER>000008
Betriebsystemversion:	10.0.183<IP_ADDRESS>.256.48
Gebietsschema-ID:	1031
Zusatzinformation 1:	3703
Zusatzinformation 2:	370315630e8318662060278dbe0a557f
Zusatzinformation 3:	db67
Zusatzinformation 4:	db67c0a595146918a4bfa5020a2303dc

Weitere Informationen über das Problem
Bucket-ID:	310b2e85a9820ced8d47b6313fb404de<PHONE_NUMBER>084781790)

Sorry that it is in german, i can not figure out a quick way to change the language

:sweat_smile:

@thebigsmileXD - the click sound works fine on my Ubuntu distro.  I will have to test it later

So, same on WSL (bash on ubuntu on windows):
v -g run sound.v
C compiler=cc
warning: miniaudio/miniaudio.v:53:15: `frames_read` declared and not used
Loading wav
[ALSA] Failed to open shared object.
[miniaudio] Endian:  LE
[miniaudio] SSE2:    YES
[miniaudio] AVX2:    NO
[miniaudio] AVX512F: NO
[miniaudio] NEON:    NO
[Null]
  NULL Playback Device (Playback)
    Format:      16-bit Signed Integer -> 16-bit Signed Integer
    Channels:    2 -> 2
    Sample Rate: 44100 -> 44100
    Buffer Size: 1320/3 (440)
    Conversion:
      Pre Format Conversion:    NO
      Post Format Conversion:   NO
      Channel Routing:          NO
      SRC:                      NO
      Channel Routing at Start: NO
      Passthrough:              YES
Playing wav 1593
Seeking frame 0
Seek PCM frame 0
Starting device
Started device
Segmentation fault (core dumped)

Happy New Year!
It baffles me because the frames_read is fixed in master?

I will check why the submodule won't properly update, it seems i am stuck on https://github.com/Larpon/v-miniaudio/blob/4de91bbf96413c5e08c5ae4b514c4c3dd3d47ffc/miniaudio.v#L53

Wohoo, got some sound on windows! 🍾  Thanks!

Great stuff! What about Linux?

C compiler=cc
warning: miniaudio/miniaudio.v:53:15: `frames_read` declared and not used
warning: pong.v:141:2: reference field `gg.Cfg.window_user_ptr` must be initialized
warning: pong.v:323:31: casting `int` to `int` is not needed
In file included from /home/xenialdan/Documents/v/vcode/v-pong/pong.v:528:
/home/xenialdan/Documents/v/vcode/v-pong/miniaudio/c/miniaudio/miniaudio.h:636: warning: "MA_LOG_LEVEL_VERBOSE" redefined
 #define MA_LOG_LEVEL_VERBOSE   4

<command-line>: note: this is the location of the previous definition
In file included from /home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:547,
                 from /home/xenialdan/Documents/v/vcode/v-pong/pong.v:530:
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h: In function ‘stbi__shiftsigned’:
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:18: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
    STBI_ASSERT(v >= 0 && v < 256);
                  ^~
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:4: note: in expansion of macro ‘STBI_ASSERT’
    STBI_ASSERT(v >= 0 && v < 256);
    ^~~~~~~~~~~
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:18: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
    STBI_ASSERT(v >= 0 && v < 256);
                  ^~
/home/xenialdan/Documents/v/thirdparty/stb_image/stb_image.h:5116:4: note: in expansion of macro ‘STBI_ASSERT’
    STBI_ASSERT(v >= 0 && v < 256);
    ^~~~~~~~~~~
/home/xenialdan/Documents/v/vcode/v-pong/pong.v: At top level:
/home/xenialdan/Documents/v/vcode/v-pong/pong.v:533:10: fatal error: ft2build.h: No such file or directory
compilation terminated.
V error: C error. This should never happen.
Please create a GitHub issue: https://github.com/vlang/v/issues/new/choose

Alright, well that's unrelated to miniaudio. if you update the submodule to master the audio should work (same frames_read as above) 🙂

Oh my god how can i fail that step twice in a row ^^" I will do, thanks for reminding


Add to contributors.yaml

[ ] I have read the CONTRIBUTING document.

@Marrockx please sign the Facebook CLA and then we will merge you pull request.

@Marrockx Thank you for contributing to this repo.


shell - Don't register NULL command.

As pointed out by Chris Merck, a command entry with all-fields-null was getting registered.  This made subsequently registered commands inaccessible.

Thanks, I will remove  SHELL_OS_NUM_CMDS.


0.22 Add counters_test_list table

Postponed for https://github.com/ooni/pipeline/pull/349

0.22~pr345-734 deployed on test host


No version seems to compile with Unreal Engine 4.20.3

I realise this is an older version but I cannot get the plugin to compile no matter which version I download. I have Visual Studio 2017 and 2019 installed (wasn't sure if I needed 2015 for some reason) or if there is a particular build that should definitely work?

Hello, @JackRonan . The plugin supports 3 latest major releases only. The supported versions are listed in readme file.  Currently those are 4.25.x, 4.24.x, 4.23.x. It was decided to do things this way due to frequent noticeable api changes between releases. The earliest you might be able to compile it on is 4.22, and even that if you're lucky. I don't think there's a github version with 4.20 support.
I would advise to upgrade.

Ah okay, thank you. The version I had tried to use was one that in the readme at the time stated could compile on 4.19.x but either way, it isn't working.
I wish I could upgrade but unfortunately I'm trying to port a Unity map to mod a game that requires that specific version of Unreal so it seems I'm stuck. Thanks anyway! The plugin works amazingly on the latest version of Unreal, there's just no easy way to downgrade a project!


added support of enum visibility to the to_layer_message attribute

Hi, updated the library in a personal project of mine, and due to how I structured my project, supporting my AppMsg visibility is important, so I added the feature in :)

I see, this is the mark of pub pub(crate), right?

I see, this is the mark of pub pub(crate), right?

yep

And do you know a better way to pass derive to the derive made enum? now I set the derive as input.. but I do not think it is the best way...

Thank you very much!!

And do you know a better way to pass derive to the derive made enum? now I set the derive as input.. but I do not think it is the best way...

Ye, I prefer to use this crate for typed parsing of macros https://docs.rs/darling/latest/darling/ and it works well with syn, quote and proc-macro2

I could help with a refactor when i have free time :)

Thank you!


#6: Type layout

Which issue does this PR address?
Closes #6

Thanks! My apologies for missing this one.


Conda Mamba related issues and pull requests

Just collecting all the conda/mamba/boa/other big snakes-related issues and PRs in one issue so we keep track of them and hopefully fix them all and close them all at once (yeah, wishful thinking right?):
Issues

https://github.com/ESMValGroup/ESMValTool/issues/2250
https://github.com/ESMValGroup/ESMValTool/issues/2204
https://github.com/ESMValGroup/ESMValTool/issues/2126
https://github.com/ESMValGroup/ESMValTool/issues/2123
https://github.com/ESMValGroup/ESMValTool/issues/2084
https://github.com/ESMValGroup/ESMValTool/issues/1907

PRs

https://github.com/ESMValGroup/ESMValTool/pull/2248
https://github.com/ESMValGroup/ESMValTool/pull/2237
https://github.com/ESMValGroup/ESMValTool/pull/2236
https://github.com/ESMValGroup/ESMValTool/pull/2193

:beer:

This could be an interesting package for this discussion, it is a drop-in replacement for the miniconda installer that supports mamba out of the box https://github.com/conda-forge/miniforge#mambaforge and uses conda-forge as the default channel, avoiding potential licensing issues.

This could be an interesting package for this discussion, it is a drop-in replacement for the miniconda installer that supports mamba out of the box https://github.com/conda-forge/miniforge#mambaforge and uses conda-forge as the default channel, avoiding potential licensing issues.

yussss Bouwe :partying_face: :beer:

all the issues/PRs related have been closed/addressed (see the last big docs change in #2236 ) - the only one's left is the conda lock-related one, but that is not a mamba-dependent one, but rather a completely new functionality/strategy to be included, so am closing this :beer:


use dss create table or database,Unable to get new table from api

Describe the bug
use dss create table,Unable to get new table from api
To Reproduce
Steps to reproduce the behavior:

open dss
exec hive sql: create database dwd;
Refresh database list ,
No database dwd in list

linkis version: 0.9.0
Additional context

i find sql,find not data in TBL_PRIVS:
select t3.NAME as NAME
from TBL_PRIVS t1, TBLS t2 , DBS t3
where t1.TBL_ID=t2.TBL_ID and lcase(t1.TBL_PRIV) in ('select','all') and (
            lcase(t1.PRINCIPAL_NAME) = 'root' or lcase(t1.PRINCIPAL_NAME) in (SELECT ROLE FROM(SELECT r.ROLE_NAME AS ROLE, u.PRINCIPAL_NAME AS USER FROM ROLES r LEFT JOIN (SELECT * FROM ROLE_MAP WHERE PRINCIPAL_TYPE = 'USER') u ON r.ROLE_ID = u.ROLE_ID)AS T where T.USER = 'root'))
  and t2.DB_ID=t3.DB_ID

原因
linkis默认开启 hive的权限,而真实情况是hive没有开,导致通过有权限的sql查不出结果
解决办法
修改linkis的查询表与数据库的权限sql:
修改文件: HiveMetaDao.xml
将这两个sql改成这样(原始的非常复杂):
    <select id="getDbsByUser" resultType="java.lang.String" parameterType="java.lang.String" databaseId="mysql">
        SELECT NAME FROM DBS;
    </select>

    <select id="getTablesByDbNameAndUser" resultType="map"  parameterType="map" databaseId="mysql">
        select t2.TBL_NAME as NAME, t2.TBL_TYPE as TYPE, t2.CREATE_TIME as CREATE_TIME, t2.LAST_ACCESS_TIME as LAST_ACCESS_TIME, t2.OWNER as OWNER
        from TBLS t2, DBS t3
        where  t2.DB_ID=t3.DB_ID and t3.NAME = #{dbName,jdbcType=VARCHAR}
    </select>

Thank you for providing solutions for removing Hive authentication issues.
I will help you replace the title, let other developers who have the same needs as you can quickly retrieve this Issue.


Audio files may have no audio tag data, or old version of tag data

see
https://stackoverflow.com/questions/18369188/python-add-id3-tags-to-mp3-file-that-has-no-tags

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

Fixed this by just setting all the metadata fields and hash map to empty strings.


ocrd process options

The current implementation seems to assume ocrd process itself is included on the input side. But how about the options that takes?

--page-id: should be part of the NF result, right?
--overwrite: same here
--mets: should be ignored
--log-level: probably same here

Currently, these options are not supported yet. The current implementation of the converter expects the first line of the OCR-D workflow txt file to always start with ocrd process \. Thanks for mentioning it. I will implement that too.


Rewrite stream functionality with ballerina

Purpose
Please refer to the discussions in https://github.com/ballerina-platform/ballerina-spec/issues/406
Fixes #21223, #21486, #21481

Codecov Report

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

@@           Coverage Diff           @@
##           master   #21524   +/-   ##
=======================================
  Coverage   14.72%   14.72%
=======================================
  Files          51       51
  Lines        1399     1399
  Branches      214      214
=======================================
  Hits          206      206
  Misses       1177     1177
  Partials       16       16

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 13b0c20...a71233a. Read the comment docs.


xdg-desktop-portal: patch GTK issue

Motivation for this change
xdg-desktop-portal is suffering from a bug, https://github.com/flatpak/xdg-desktop-portal/issues/636, that causes GTK apps to wait for a timeout before launching in non-Gnome/non-Xfce environments.
Examples of other issues caused by this bug are https://github.com/swaywm/sway/issues/6587 or https://github.com/Alexays/Waybar/issues/1266#issuecomment-948580854.
The last comment, https://github.com/flatpak/xdg-desktop-portal/issues/636#issuecomment-947574486, asks: "Any chance to push out a new release including this fix?". It was made 23 days ago and it has not been answered, so I think it's better to update to the current git version (which has the bug fixed) than to wait for a new stable release.
Things done
Screen sharing and file dialogs work on Sway. Didn't test anything else.
Not sure if this version should be named "1.10.1-unstable".

Built on platform(s)

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

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

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

There is an open RFC NixOS/rfcs#107  for the versioning scheme of unstable snapshots, but AFAIK there is a fairly strong consensus that they should have the date of the commit as part of the version field. I've been using unstable-YYYYMMDD so far.

It might be better to just add https://github.com/flatpak/xdg-desktop-portal/commit/d7622e15ff8fef114a6759dde564826d04215a9f.patch to patches to reduce potential breakage.

Let me quickly test before merging.

@SuperSamus why is ofborg failing?

I don't see it failing now.
It was failing before because I accidentally left a trailing whitespace.

The installed tests are broken, not a regression.


As a city software maintainer, I want documentation of how BizPort was built and how to make common changes

Things to include might be:
• Server provisioning needs
• Key terminal commands (binstubs?)
• Outline of core files
• Links to CMS docs (not tracked in this issue)
• Notes on gems included

Completed as part of another issue. Closing as duplicate.


Add sethaxen as maintainer

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Ensured the license file is being packaged.

I am the author and maintainer of sdaxen_python_utilities (my username has since changed from @sdaxen to @sethaxen). Previously I maintained a conda recipe at https://anaconda.org/sdaxen/sdaxen_python_utilities. I now am recommending users use the conda-forge channel and would like to be added as a maintainer here.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

noarch: python recipes are recommended to have a lower bound on the python version. This recommendation will become a requirement in the future.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe:

noarch: python recipes are recommended to have a lower bound on the python version. This recommendation will become a requirement in the future.


processNotification should be global scope instead of public

Is your feature request related to a problem? Please describe.
Problem is I want to extend the AdyenAsyncAdapter class in order to add some additional checks before processing. This is possible on the processRequest as it is public, although not possible for the processNotification which is declared public.
Describe the solution you'd like
Change
public CommercePayments.GatewayNotificationResponse processNotification
to
global CommercePayments.GatewayNotificationResponse processNotification
Describe alternatives you've considered
My workaround for now is to use a custom webhook listener where I do my preprocessing and then call the notify endpoint from my listener. It works, but could be saved all this trouble if the above method was global and extendable.

Hi @mattr9124,
Thank you for raising this enhancement request.
We will discuss your request internally and then decide on an action plan. We encourage you to watch our repo to get an update on when the new release is out.
Thanks
Shubham

The new Release now uses AdyenGatewayAdapter class which has global methods.


Repair visual glitch in the upper region of LogoRRRs main view

Describe the bug

Above the TabPane there is a gray region which serves no purpose. This should be removed - see screenshot.

The visual appearance is much better now.


Easier readability way for adding services to the container

Today if we want to to use an invokable class as a factory we have to manually instantiate it and call it, e.g.:
$container->share(MyService::class, (new MyServiceFactory())());

Which makes the readability kinda ~suck~ not optimal.
So, it should be possible to declare services like this:
$container->share(MyService::class, MyServiceFactory::class);

If this is possible already please could someone provide an config example ?
If not, is it interesting to this package's team to have this as a feature ? If so I could try to drop an PR later doing this.
The benefits of this are:

Easier readability
ServiceProviders could wire stuff from a config file (avoid having to create an instance inside an config array for example...)

Hi,
Any callable can actually be used as a factory, you don't need to invoke it yourself.
$container->share(MyService::class, new MyServiceFactory);

That is enough if the class implements __invoke

@philipobenito thank you for the quick reply.
Cool, I understand it now. The problem IMO is that the Factory will have to keep the container (or extract the dependencies from it) on the __construct method.
What I was thinking was maybe if we have an Interface for the Factory that contracts that the __invoke receives an ContainerInterface, then we can have it as optional.

@ricardofiorani no need for any extra code, you can already pass the container to the callable by adding it as an argument.
$container
    ->share(MyService::class, new MyServiceFactory)
    ->addArgument($container)
;

Now $container will be passed to the __invoke method as the first argument.


windows version available?

when i run "simple_IMSI-catcher.py -s" it tells me that theres no interface "lo" then i change it to localhost and it tells me theres no interface "localhost" what do i do or where do i get a working windows version of this?

Have you try to add -i <your_local_interface> ?
I don't have Windows. So I can't help you more.

i couldn't find a way to get the interface name on windows and i wasn't too sure about if the name on sdr# panel is the interface name :/ i can close this if you want me to.


XLSX_Formats: need for formatting control on descriptives rows

Descriptive views need to be able to have bold text.

Resolved by #422.


Make adding members more intuitive

Many users think they can input an email in the add user row, and click save members without first clicking add.
This should not be possible,
possibilities:

auto-add when clicking save, with appropriate error and abort saving if team member cant be added for some reason.
disable the save button until add has been clicked (when input field has text) - showing some kind of info message

done


add: logic to send new user data to web3 and get wallet_token (#415)

This PR closes #415

send wallet address to GoodServer to send it to web3 with secure hash

@yaroslav-fedyshyn-nordwhale waiting your response

@yaroslav-fedyshyn-nordwhale waiting your response

I already made changes for your comment in a new commit

@StanislavShevchenko you need to review this
@Nordwhale

@yaroslav-fedyshyn-nordwhale should pass build - check jest snapshots
@Nordwhale


buffer dereference issue in node.js using ffi & ref

I have an issue in dereferencing a buffer using ffi and ref in Node.js. I created javascript wrapper using ffi to call dll functions. What I am doing below is passing a different types of pointer to pointer to dll, allocate memory in dll, and assign values to these memory. Then read these values back in javascript.
Here is my C++ functions.
#ifdef __cplusplus
extern "C" {
#endif
_declspec(dllexport) void testFloatPtr(float *resultPtr){
    resultPtr[0] = 1.5;
}

_declspec(dllexport) void testFloatPtrPtr(float **resultPtrPtr){
    float *resultPtr = *resultPtrPtr = new float[3];
    resultPtr[0] = 1.1;
    resultPtr[1] = 10.1;
    resultPtr[2] = 100.1;
}

_declspec(dllexport) void testIntPtrPtr(int **resultPtrPtr){
    int *resultPtr = *resultPtrPtr = new int[3];
    resultPtr[0] = 2;
    resultPtr[1] = 3;
    resultPtr[2] = 4;
}

_declspec(dllexport) void testCharPtrPtr(char **resultPtrPtr){
    char *resultPtr = *resultPtrPtr = new char[3];
    resultPtr[0] = 5;
    resultPtr[1] = 6;
    resultPtr[2] = 7;
}
#ifdef __cplusplus
}
#endif

Here is my javacript application.
var ref = require('ref');
var ffi = require('ffi');

var mylib = ffi.Library('debug', {
    'testFloatPtr' : ['void', ['float*']],
    'testFloatPtrPtr':['void', ['float**']],
    'testIntPtrPtr' : ['void', ['int**']],
    'testCharPtrPtr': ['void', ['char**']]
});

var ptr1 = ref.alloc('float');
mylib.testFloatPtr(ptr1);
var result1 = ref.deref(ptr1);
console.log("result1: ", result1);

var ptrptr2 = ref.alloc('float*');
mylib.testFloatPtrPtr(ptrptr2);
var ptr2 = ref.deref(ptrptr2);
var result2 = ref.reinterpret(ptr2, 3, 0);
console.log("result2[0]: ", result2[0]);
console.log("result2[1]: ", result2[1]);
console.log("result2[2]: ", result2[2]);

var ptrptr3 = ref.alloc('int*');
mylib.testIntPtrPtr(ptrptr3);
var ptr3 = ref.deref(ptrptr3);
var result3 = ref.reinterpret(ptr3, 3, 0);
console.log("result3[0]: ", result3[0]);
console.log("result3[1]: ", result3[1]);
console.log("result3[2]: ", result3[2]);

var ptrptr4 = ref.alloc('char*');
mylib.testCharPtrPtr(ptrptr4);
var ptr4 = ref.deref(ptrptr4);
var result4 = ref.reinterpret(ptr4, 3, 0);
console.log("result4[0]: ", result4[0]);
console.log("result4[1]: ", result4[1]);
console.log("result4[2]: ", result4[2]);

And here is my console output:
result1:  1.5
result2[0]:  205
result2[1]:  204
result2[2]:  140
result3[0]:  2
result3[1]:  0
result3[2]:  0
result4[0]:  5
result4[1]:  6
result4[2]:  7

result1 and result4 are OK but result2 and result3 are wrong. It seems that somethings is wrong with dereferencing the buffer with type 'float**' and 'int**'. However, it works for 'char**'.
Could you help me with it? Thank you!

Look into using ref-array for the array types. I suspect that you're actually interpreting the byte location of your array, rather than its contents.

Thank you for your comment. If I change it to ref-array, it works fine. But what I am curious about is that, is my usage of ref wrong? Very appreciated if you can tell me why.

When you're calling var result2 = ref.reinterpret(ptr2, 3, 0) you're getting back a Buffer with a length of 3 bytes, as opposed to the 3 floats that you're interested in.

Make sense?

Thank you very much!


Support multi trigger apps

This PR adds support for running Spin apps with multiple triggers. I opened the draft PR to be able to collect some initial feedback.
I've also added a testcase to demonstrate running the multi-trigger-app workload and will be working on adding the integration test for the same.

Hi @kate-goldenring / @Mossaka , I have rebased this PR and it is ready for review again. thank you

Need a rebase

@rajatjindal it looks like the multi trigger app failed to run in the CI (even though the test passed): https://github.com/spinkube/containerd-shim-spin/actions/runs/8619544944/job/23625457710?pr=53#step:8:1234

Hi @kate-goldenring @Mossaka , this PR has been rebased now, and seems to be ready for final set of review/merge.
Thank you so much for your patience while I got this PR into a stable state.


Add property to disable auto-configuration

There is currently no way to disable the starter once it is on the classpath.
During the development lifecycle, to avoid connecting to a real MQ broker, we often rely on an embedded broker (typically, ActiveMQ), which allows for quick Unit Tests / Integration Tests with low footprint
I know that there is the Docker image of the MQ broker, but that is an extra bit of software to launch prior to running the test, and that is not run by default, which is problematic for CI infrastructure. Having a TestContainer could help, but I think the footprint would still be heavier.
On top of that, that could also be used to package application that provide connectors to several different JMS implementation.
Affected versions
All
Java version
All
Proposed change
Adding an @ConditinalOnProperty annotation on the MQAutoConfiguration class with a property that would disable it completely.

I could think about putting a property in there with the default value (if not set) to keep the class enabled. Disabling configuration would need to be an explicit action.
I'm not certain how well it would actually work - how guaranteed the ordering is for different implementation instantiations if you have multiple JMS providers on the classpath. And that might make development tasks more complex, not less.

@ohubaut Have you tried adding @EnableAutoConfiguration(exclude = com.ibm.mq.spring.boot.MQAutoConfiguration.class) to the test class or set spring.autoconfigure.exclude property to com.ibm.mq.spring.boot.MQAutoConfiguration in the src/test/resources/application.(yml|properties) ?

Hi @thuri,
Thanks for the suggestion. That is indeed what we ended up doing in our test classes.
In the meantime, we are also building our own helm chart based on the icr.io/ibm-messaging/mq docker image, for local deployment.
We considered using the official helm chart provided by IBM but it does not allow for automatic creation of queues at deployment time, and since we want to have truly ephemeral environment, this image offer more flexibility.

ibm.mq.autoConfigure made available in v2.7.5


[Google Colab error] ERROR: No matching distribution found for torchvision==0.7.0

Hello!
I tried to with Google Colab using Colab_demo.ipynb as a reference and encountered the following error.
ERROR: Could not find a version that satisfies the requirement torchvision==0.7.0 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0)
ERROR: No matching distribution found for torchvision==0.7.0

As a result, I was able to start using it successfully by deleting the line torchvision==0.7.0 from requirements.txt.
For example, I was thinking that if someone like me tries to use Google Colab in the future, I could prepare a requirements_google_colab.txt so that they can try it without encountering any problems, what do you think?
(Maybe more requirements.txt to manage is not a good thing...)

Yesterday I used latest version of torchvision to test. You could try that.

@hooke007 Thanks for your comment!
However, I am still getting the same error when I try the latest version.
Error log
ERROR: Could not find a version that satisfies the requirement torchvision==0.7.0 (from versions: 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.2.0, 0.2.1, 0.2.2, 0.2.2.post2, 0.2.2.post3, 0.12.0, 0.13.0, 0.13.1, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.15.2, 0.16.0)
ERROR: No matching distribution found for torchvision==0.7.0

Here is the code I ran at Google Colab.
%cd /content
!git clone https://github.com/hzwer/Practical-RIFE

%cd /content/Practical-RIFE/
!pip3 install -r requirements.txt

What is the latest version of torchvision?
(I read and ran requirements.txt, but maybe I am misinterpreting your comment)

No, I didn't not run pip3 install -r requirements.txt. I pip install every deps one by one instead. Every deps latest version works fine except numpy

Or you could edit requirements and then do as previous workflow.
--- torchvision==0.7.0
+++ torchvision>=0.7.0

Or you could edit requirements and then do as previous workflow.
--- torchvision==0.7.0
+++ torchvision>=0.7.0

@hooke007  Thank you! It worked with what you taught me!
My question has been answered, so I'll close this issue here.
Thanks for your comment!


Clean up the code

Ⅰ. Describe what this PR does
Fix the golang-ci linit: https://travis-ci.org/github/fluid-cloudnative/fluid/jobs/723445815
Ⅱ. Does this pull request fix one issue?

NONE
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Thanks @TrafalgarZZZ


Update DeveloperGuide.md

Add ProfileSetUpWindow Details
Add UserProfileWindow Details
Add HelpWindow Details
Add UserProfileInMenuBar Details
Update UiClassDiagram

Some Minor Tweaks as well.

Codecov Report

Merging #282 (3203d6c) into master (f6e03d3) will increase coverage by 1.38%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #282      +/-   ##
============================================
+ Coverage     69.77%   71.16%   +1.38%
- Complexity      860      899      +39
============================================
  Files           111      111
  Lines          3587     3596       +9
  Branches        345      345
============================================
+ Hits           2503     2559      +56
+ Misses          981      948      -33
+ Partials        103       89      -14

Impacted Files
Coverage Δ

src/main/java/seedu/address/ui/MainWindow.java
1.61% <0.00%> (ø)

...in/java/seedu/address/ui/UserProfileInMenuBar.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/ui/HelpWindow.java
0.00% <0.00%> (ø)

src/main/java/seedu/address/ui/WelcomeWindow.java
0.00% <0.00%> (ø)

...u/address/logic/parser/FavouriteCommandParser.java

...edu/address/model/person/IsFavouritePredicate.java

...edu/address/logic/commands/UnfavouriteCommand.java

...seedu/address/logic/commands/FavouriteCommand.java

...address/logic/parser/UnfavouriteCommandParser.java

.../address/logic/parser/UnfavoriteCommandParser.java
100.00% <0.00%> (ø)

... and 17 more

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 f6e03d3...3203d6c. Read the comment docs.


Add uninstall to e2e test suite

Special notes for your reviewer:
Checklist

[x] DCO signed
[ ] Chart Version bumped
[ ] helm-docs are updated
[x] Helm chart is tested

No idea why the lint job no longer creates a kind cluster....

The problem is, that we check if there were changes in the chart and only then we start a kind cluster and the tests. The condition check is missing on the chart linting test. Thats why it is triggered, even so kind is not started.
Fix is to add the following line
https://github.com/fluxcd-community/helm-charts/blob/main/.github/workflows/lint-test.yaml#L41
if: steps.list-changed.outputs.changed == 'true'

@dwerder I really doubt Helm knows to properly uninstall Flux, it works because Helm doesn't check for CRD deletion, but CRDs are stuck on the cluster forever blocking namespaces and everything else. The only way to uninstall Flux without breaking your whole cluster is by suspending first all Flux custom resources, then by patching them to remove finalizers.

I guess we could fix this by having an uninstall hook that calls flux uninstall --keep-namespace.


Failed Logging in to Twitter Require Single-Use Code

Loading .env file
Loaded .env file

Initializing Twitter Scraper...
Setup WebDriver...
Initializing ChromeDriver...
WebDriver Setup Complete

Logging in to Twitter...

Login Failed: This may be due to the following:

- Internet connection is unstable
- Username is incorrect
- Password is incorrect

I believe that error because Twitter send a Single Use Code to my email like  2 factor auth ( although I have disabled  2 factor auth ).
Is that possible if add one more step to submit Single-Use code for Login?

I have a problem too. After 3 successful logins, the fourth time I get that error.
When logging in from the web I noticed that after entering my login and password it asks me for further verification

comment this line: https://github.com/godkingjay/selenium-twitter-scraper/blob/ac2f8cc600e0d07512916aa98e8143bd9c8cb9eb/scraper/twitter_scraper.py#L129C9-L129C50
And see what the browser is expecting. Then you will know why

Yo también tengo un problema. Después de 3 inicios de sesión exitosos, la cuarta vez aparece ese error. Al iniciar sesión desde la web noté que después de ingresar mi nombre de usuario y contraseña me pide una verificación adicional

I have the same reply message. and I notice that it sends me a code to my email. has anyone already solved the case?

I have a problem too. After 3 successful logins, the fourth time I get that error. When logging in from the web I noticed that after entering my login and password it asks me for further verification

Same as mine. I think it's a part of Twitter's security mechanism.
If you want to scrape using this tool more than 3 times, you need to log in to Twitter, finish that verification first, and then run this tool again. It worked for me.

I have a problem too. After 3 successful logins, the fourth time I get that error. When logging in from the web I noticed that after entering my login and password it asks me for further verification

Same as mine. I think it's a part of Twitter's security mechanism.
If you want to scrape using this tool more than 3 times, you need to log in to Twitter, finish that verification first, and then run this tool again. It worked for me.

I am still experiencing failed login. How did you get pass that step? I did not get any verification request either.

I have a problem too. After 3 successful logins, the fourth time I get that error. When logging in from the web I noticed that after entering my login and password it asks me for further verification

Same as mine. I think it's a part of Twitter's security mechanism.
If you want to scrape using this tool more than 3 times, you need to log in to Twitter, finish that verification first, and then run this tool again. It worked for me.

I am still experiencing failed login. How did you get pass that step? I did not get any verification request either.

Are you logging in for the first time or after a few times?"

I have a problem too. After 3 successful logins, the fourth time I get that error. When logging in from the web I noticed that after entering my login and password it asks me for further verification

Same as mine. I think it's a part of Twitter's security mechanism.
If you want to scrape using this tool more than 3 times, you need to log in to Twitter, finish that verification first, and then run this tool again. It worked for me.

I am still experiencing failed login. How did you get pass that step? I did not get any verification request either.

Are you logging in for the first time or after a few times?"

Yes it is first time login

I have a problem too. After 3 successful logins, the fourth time I get that error. When logging in from the web I noticed that after entering my login and password it asks me for further verification

Same as mine. I think it's a part of Twitter's security mechanism.
If you want to scrape using this tool more than 3 times, you need to log in to Twitter, finish that verification first, and then run this tool again. It worked for me.

I am still experiencing failed login. How did you get pass that step? I did not get any verification request either.

Are you logging in for the first time or after a few times?"

Yes it is first time login

If it's your first time login, maybe you can try to login directly using the command argument instead of using .env file, also make sure that your password doesn't contain any special chars. Because in my case, that's the problem of me failing to log in for the first time.

I have a problem too. After 3 successful logins, the fourth time I get that error. When logging in from the web I noticed that after entering my login and password it asks me for further verification

Same as mine. I think it's a part of Twitter's security mechanism.
If you want to scrape using this tool more than 3 times, you need to log in to Twitter, finish that verification first, and then run this tool again. It worked for me.

I am still experiencing failed login. How did you get pass that step? I did not get any verification request either.

Are you logging in for the first time or after a few times?"

Yes it is first time login

If it's your first time login, maybe you can try to login directly using the command line argument instead of using .env file, also make sure that your password doesn't contain any special chars. Because in my case, that's the problem of me failing to log in for the first time.

How do I run it without the .env file because I am using the command line. I run python scraper from the selenium twitter scraper folder. Then it loads that line that shows the .env file.


USHIFT-1606: Run parallel make jobs in build_rpm.sh script

Closes USHIFT-1606

How much time does this actually save?

How much time does this actually save?

The measuring I've done is in the USHIFT-1606 issue description.

This test is not relevant for the change.
/override ci/prow/microshift-rpm-upgrade

test microshift-periodics-metal

/test microshift-periodics-metal

/test metal-periodic-test

/test microshift-metal-tests

/assign @dhellmann @pmtk
Is this implementation according to our previous discussion?

/test microshift-metal-tests

This looks good to me. Let's wait for presubmit to finish and see what's the difference in time

This looks good to me. Let's wait for presubmit to finish and see what's the difference in time

The pre-submits completed successfully. Here is the link to the log file.
Look for RPM build complete string - it took 134s this time.

/lgtm


Read-Only Checkbox

I am trying to include checkboxes in my site that are read-only, I am following the documentation online but it doesn't seem to be having any effect and I can still toggle my checkbox on and off.
Here is my HTML Mark Up for the checkbox

    <input id="4-1" type="checkbox">
    Read Only

Here is the corrosponding JS at the bottom of the page in a script tag
$('.checkbox.read-only .checkbox')
  .last()
  .checkbox({
    uncheckable: false
  });

can you post a jsfiddle?
also, can you just try this:
$(".ui.read-only.checkbox").checkbox();

@samroberts707
Please use the Gitter chatroom, the official forum or StackOverflow to ask usage questions; see the Contributing Guide for more information on what kind of posts should find themselves into the GitHub Issues board.


rate limits

I think the repo seems to be making too many API calls to OpenAI in successive fashion. Any plans to to rate limit this?:
openai.error.RateLimitError: The server is currently overloaded with other requests. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if the error persists.

Lovely, thanks!

Set concurrency to 5, still hitting their rate limits :(

I'm running into this rate limit:
openai.error.RateLimitError: Rate limit reached for default-gpt-4 in organization org-XXX on tokens
per min. Limit: 40000 / min. Please try again in 1ms. Contact us through our help center at help.openai.com if you
continue to have issues.

too powerful! let me see if i can get an alternative provider

Same. Running w/o modal solves this issue

Same here, rate does seem to be one of the key issues that runs up a bill as one has to start over again if something goes wrong. I'm sure some fine tuning of parameters could solve this in the long run:)
Thanks for providing a potential interim solution @JacobFV !

RateLimitError: You exceeded your current quota, please check
your plan and billing details.

I received the above error, I used a fresh openai account to create a token and still, it wont work.

after trying different setting this worked for me
'''
@stub.function(
image=openai_image,
secret=modal.Secret.from_dotenv(),
retries=modal.Retries(
max_retries=5,
backoff_coefficient=2.0,
initial_delay=20.0,
),
concurrency_limit=20,
timeout=1200,
)
'''
don't ask me why it worked (becouse i don't know )
*i am have not set any pament plans in opne ai api
hope it helps

we'll be moving default off of modal. thanks for the reports!


如果要做update on conflict insert某行，xorm支持么？

只能自己写SQL。engine.Exec("...")

I will close this issue. Please feel free to reopen it if you have any further information.


bump postcss version

Seems as though none of the breaking changes applies to anything that is being done in this project.

So the build for node 0.12 breaks, as per the postcss breaking changes, they have dropped support for 0.12 as it is no longer supported. I hadn't considered this but maybe postcss-discard-duplicates could consider doing the same in the next release?


893-release-maven-central

#893 @billonahill @kramasamy DRAFT - Please review Maven Central process.  1. Should this be in website (added to Developer TOC for review, but could also be README). 2. Sample POM files are in new folder heron/release/maven-central but path is in .gitignore so probably incorrect.  Please let me know where to move and how current process reads, thanks.

@billonahill agree on all points, updated current-process.md.  TODOs include 1) create bash script for POM versioning 2) complete remaining release-process and 3) refer to BUILD process and rm downloading artifacts.

@kramasamy @billonahill name and email changed to Heron Users and<EMAIL_ADDRESS>

@billonahill uri examples modified, automated POM template versioning with script.  issue #935 to add "heron-spi" POM included, build process needs update from download to build process including heron-spi.

@billonahill updates do not address "code style for jar" comment, but added a note that code format should be generated by Bazel build process.  please lmk how to update and i'll complete, thanks.

@lucperkins - if you are fine with this PR, we can merge it. @billonahill is on vacation next week.

@lewiskan - can you incorporate comments by @lucperkins

Thanks @lewiskan!


Make inline-code visiable on markdown highlight

Is this according to dracula specification? https://spec.draculatheme.com/

Please merge this, this is great.
Before:

After:


Update copy on start page

https://test-apvs-external-web.kainos.com/
Update the word 'escort' to 'carer' on the start page

done by #334


The Analyze Operation under Computer Vision APIs (2023-10-01) is not supported with the current subscription key and pricing tier OpenAI.S0.

When trying to go trough https://microsoftlearning.github.io/mslearn-ai-vision/Instructions/Exercises/01-analyze-images.html from https://learn.microsoft.com/en-gb/training/modules/analyze-images/5-exercise-computer-vision
I'm getting:
Mac-Studio:image-analysis USER$ dotnet run images/street.jpg

Analyzing images/street.jpg

The Analyze Operation under Computer Vision APIs (2023-10-01) is not supported with the current subscription key and pricing tier OpenAI.S0.
Status: 401 (Access Denied)
ErrorCode: 401

Content:
{"error":{"code":"401","message": "The Analyze Operation under Computer Vision APIs (2023-10-01) is not supported with the current subscription key and pricing tier OpenAI.S0."}}

Headers:
apim-request-id: REDACTED
Strict-Transport-Security: REDACTED
X-Content-Type-Options: REDACTED
WWW-Authenticate: AzureApiManagementKey realm="https://XXX.openai.azure.com/computervision",name="Ocp-Apim-Subscription-Key",type="header"
Date: Sun, 26 May 2024 20:40:03 GMT
Content-Length: 178
Content-Type: application/json

created AI resource Region is "East US" and Pricing tier is "Standard S0" as stated in the instruction.

My bad - was trying to use existing single service OpenAi resource (without Vision APIs support) instead of multi service resource.


program just closing its self

program closing when invite a friend idk why everything worked and now it just doesnt work any idea why?

my friend dowloaded it too and its not working for him it closes itself

#137


I recommend you check that line.


Unable to clear last frame of video played from control when playback ends.

I have an issue / a question (pick one) about Vlc.DotNet.
Generic information

Vlc.DotNet version : <IP_ADDRESS>
Vlc.DotNet project used : WinForms
libvlc version : 3.08.1 via Package Manager
.net version : 4.7.2
Project language : VB.net
Project build architecture : AnyCPU
Operating system : Windows 10 x64 1909

Summary
When I finish playing back a video to the end (EndReached fires), exit my player window, then start a new video, the previous video's last frame appears for 1/2 second before the new video starts playback.  Is there a way for me to completely clear the VLCPlayer control after a video ends or before a new one begins?
I've tried .ResetMedia, .Refresh, hiding/redisplaying the control.  No luck.
I have not experienced this issue in VLC itself.

Do you dispose the media player and create a new one each time or do you reuse the same? In the second case, you should probably call Stop()

That worked, thank you!
Closing this ticket.

Ok, there's a problem with this.  With some videos, executing a .Stop() after EndReached fires causes the application to hang.  There's no way of resuming it, you just have to terminate it.  If I test this in Visual Studio I find that the .Stop statement just hangs.  I can still stop the application in the IDE but code past the .Stop will not execute.
For the videos where .Stop works, it's timing dependent.  If the .Stop is executed immediately after playback ends, it does not lock up.  If I pause before executing the .Stop() statement it locks up.
Any ideas?

Are you in that case? https://github.com/ZeBobo5/Vlc.DotNet/wiki/Vlc.DotNet-freezes-(don't-call-Vlc.DotNet-from-a-Vlc.DotNet-callback)

No.  In EndReached I set a timer and from the Timer_Tick event I execute the code I need.

Please open a new issue for that, and share a minimal sample code on github.


'Dogecoin has No Developers' Article

Link will need checking. Assuming that this will be the link for the Foundation website. As always, please edit wherever. Made a few tweaks - but still v much in line with original content.

Oh - looks like it's automagically merged. :)

Ah - looks like it's already merged.


Could you provide full code in a console application?

I'm a little bit lost.
Also is there a problem with the code "public Comparison<T> comparator;"?

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

ID: 1dcd91a4-603a-feb9-cff2-94f1985417fc
Version Independent ID: a86cde90-1eba-e1d5-2b42-2a3cd37f5499
Content: System.Delegate and the delegate keyword
Content Source: docs/csharp/delegate-class.md
Product: dotnet-csharp
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

// From the .NET Core library
// Define the delegate type:
public delegate int Comparison(T left, T right);
The code is extracted from the library where sort() is implemented, so sort() must have been declared as a method taking a delegate as an argument.


fix set digital control block

as in the datasheet of the SSD1675A

Thanks for taking the time to submit this. I'm going over the Inky libraries at the moment and planning a new version that's much less contrived. With any luck I'll get the time to check this and other weirdness that's crept into the library.

This has been corrected in inky- thank you!
https://github.com/pimoroni/inky/blob/master/library/inky/inky.py#L222


Fix up SCHED_IPI_SUPPORTED=n bitrot

The idle loop can't call yield anymore, and the test wasn't prepared for the implications of running without IPIs.  @justinyhuang  please try this.  It works for me on qemu_x86_64 and qemu_riscv64_smp if I apply this patch to force the kconfig off:
diff --git a/arch/Kconfig b/arch/Kconfig
index a6079eb90e..7d735aff3c 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -112,7 +112,6 @@ config RISCV
        select IRQ_OFFLOAD_NESTED if IRQ_OFFLOAD
        select USE_SWITCH_SUPPORTED
        select USE_SWITCH
-       select SCHED_IPI_SUPPORTED if SMP
        imply XIP
        help
          RISCV architecture
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
index 7249e04e4b..7cab2d7d41 100644
--- a/arch/x86/Kconfig
+++ b/arch/x86/Kconfig
@@ -69,7 +69,7 @@ config X86_64
        select 64BIT
        select USE_SWITCH
        select USE_SWITCH_SUPPORTED
-       select SCHED_IPI_SUPPORTED
+       #select SCHED_IPI_SUPPORTED
        select X86_MMU
        select X86_CPU_HAS_MMX
        select X86_CPU_HAS_SSE

Longer term it would be nice to add a variant of this test with that kconfig set =n, but unfortunately the current design prevents it.  The scheduler will always use IPIs if it's told their available, and the flag is selected by the arch kconfig, which prevents it from being overriden.

Ping for reviews.  This isn't "low" risk, but it's not particularly high.  And it fixes a tracked bug, so can go in during stabilization.

Another ping for attention; would be annoying to have to maintain this until the next version.  It's a change only to a configuration unexercised in the tree (which is why it rotted).


Virus Detected During Download

Windows Defender detected a Virus when trying to download this zip file.  I saw on another site where a user found the same issue. He called it the Rundas.B malware virus . Do you know if this is a Real issue or a false positive by Windows Defender.

You can submit the file here: https://www.microsoft.com/en-us/wdsi/filesubmission.


Added missing protocol-sdk changeset

Current dependencies on/for this PR:

main

PR #357   👈

This stack of pull requests is managed by Graphite.


User groups inside container jobs does not the match the host

Agent Version and Platform
Version of your agent? 2.181.1
OS of the machine running the agent? Linux
Azure DevOps Type and Version
dev.azure.com
What's not working?
In a container jobs, the user created inside the container does not have the same group ID (gid), has the agent running on the host.
Here is how a new user is created inside a container, the user ID is properly set with the useradd, but the group got something like 1002. This is an issue, because our build copy files from the source folder (s) and keep the source uid and gid. This is a yocto base project, so I do not have any control on how the build can be run, and I can't run it as root either.
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 sh -c "command -v bash"
/bin/bash
whoami
devops-agent
id -u devops-agent
112
Try to create a user with UID '112' inside the container.
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 bash -c "getent passwd 112 | cut -d: -f1 "
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 useradd -m -u 112 devops-agent_azpcontainer
Grant user 'devops-agent_azpcontainer' SUDO privilege and allow it run any command without authentication.
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 groupadd azure_pipelines_sudo
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 usermod -a -G azure_pipelines_sudo devops-agent_azpcontainer
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 su -c "echo '%azure_pipelines_sudo ALL=(ALL:ALL) NOPASSWD:ALL' >> /etc/sudoers"
Allow user 'devops-agent_azpcontainer' run any docker command without SUDO.
stat -c %g /var/run/docker.sock
998
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 bash -c "cat /etc/group"
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 groupadd -g 998 azure_pipelines_docker
/usr/bin/docker exec  e1e905822ffe62524d6fc2151020933028d6ab71b42cf29d6fb3460eaddfd1e9 usermod -a -G azure_pipelines_docker devops-agent_azpcontainer

Here is a workaround I can put in my build pipeline, but I find it a bit strange that I need to do it.
jobs:
   - job: example
     container: ....
     steps:
        - bash: chown $(id -u):$(id -g) -R $(Build.Repository.LocalPath)/sources/poky/scripts/postinst-intercepts

Just come across this issue while trying to diagnose why a container job runs fine on one agent, but not another. It's because one agent is running as UUID 1000 which matches the node container UUID (1000), and the broken agent was running under UUID 1002.
Environment
Azure DevOps Server 2020 Update 1

Does this has been fixed without been linked to it ? If no, then the issue is still active.

Hi @hommeabeil thanks for reporting! Let us take a look - probably it could make sense at least try to create group with the same gid as for host user.

@hommeabeil I performed an investigation with ubuntu:18.04 as a container and found that all files created inside a container were matched valid UID/GID. I can assume that behavior might be different for other containers.
Could you please provide information about the image which you are using to execute the build procedure and the name & version of the host Linux distro?

The image we are using is currently debian:10 and the host is also debian 10.

@hommeabeil
currently, the Azure DevOps agent creating user and group with the same UID/GID that it has on the host machine,
for example:
if you have a user with ID 1000 (but the primary group of this user is 1002 for example), inside the container Agent will create a user & group with ID 1000:1000, I assume that it can be an issue in this case.
Could you please tell me, if your user on the host machine (in this case devops-agent) has the same GID  value which are equals to the UID? (you can check it by command executed on behalf of this user:
id -g
If the primary group differs from the user id, in this case, I can suggest trying to set the primary group value to the same ID as a UID

Yes this is exactly what is happening. Our agent UID is 112 and his group is 117. Is this is planned to be fixed ? It is obviously not the expected behavior. Thanks for investigating.

the results of buddy testing are here: https://github.com/microsoft/azure-pipelines-agent/pull/3837#pullrequestreview-1019453104

The related pull request is ready — link


cache miss with --no-deps option

What version of Turborepo are you using?
1.1.5
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
Hello,
The documentation section that concerns the --no-deps option says:

Let's say you have packages A, B, C, and D where A depends on B and C depends on D. You run turbo run build for the first time and everything is built and cached. Then, you change a line of code in B. With the --deps flag on, running turbo run build will execute build in B and then A, but not in C and D because they are not impacted by the change. If you were to run turbo run build --no-deps instead, turbo will only run build in B.

I am in a similar situation, I have packages A, B, C etc. that all depend on Z package.
Here is my tubo.json:
{
  "pipeline": {
    "lint": {
      "outputs": []
    }
  }
}

When I run turbo run lint the first time, lint is run on each packages and everything is cached.

But if I change something in package Z and run turbo run lint --no-deps, lint is also run on each packages (all with cache miss).
Expected Behavior
I would expect that turbo run lint --no-deps only runs lint on package Z (1 cache miss) and not on parent packages that would hit cache.
To Reproduce
Make a repo with several packages that all depend on one package. Try the --no-deps option on a task after changing something on that package.

--deps is being deprecated. See https://turborepo.org/docs/features/filtering and the new --filter flag in<EMAIL_ADDRESS>


discovery: Fallback to script name for node

What does this PR do?
If the package.json cannot be found or cannot be parsed, we currently fall back to using the executable name (node).  This is unhelpful, so instead use the script/link name instead which should be slighly better.
Motivation
https://datadoghq.atlassian.net/browse/USMON-1357
Describe how to test/QA your changes
Automated tests added.
Possible Drawbacks / Trade-offs
Additional Notes

/merge


Add override support for axis lock keys in InputBindings

Allow users to customize the lock logic for X and Y axes.
In my use case, the mouse wheel only zooms X.
If the right mouse button is pressed, the logic remains consistent with previous behavior.
This is due to the fact that under typical circumstances, I am examining signal data and don't need to zoom the Y-axis.
Here is my code
public override bool ShouldLockY(IEnumerable<Key> keys, MouseButton? button = null)
    {
        if (button == DragZoomButton)
        {
            return base.ShouldLockY(keys);
        }

        return !base.ShouldLockY(keys);
    }

This looks great @JinjieZhao, thanks for the PR! This feature will be in the next release 🚀
Note that there is an upcoming breaking change where the whole input binding system will be refactored toward a simpler system which is easier to customize. While I think this change will be good in the long wrong, the classes you make that override these methods may need to be updated in the future to accommodate the change.  #3186


Add provisional command-buffer extension

Add latest Khronos provisional command-buffer extension, as per issue kenba/cl3#17 in the cl3 repo.

CommandBuffer added in release 0.6.3.