Inverse Dynamics with Constraints in Pinocchio 3.1.0

I'm working on a project that involves calculating inverse dynamics for a four-bar linkage leg mechanism. I've been using RBDL's RigidBodyDynamics::InverseDynamicsConstraints function for this purpose, but I'm looking to transition to Pinocchio 3.1.0.
My question is: Does Pinocchio 3.1.0 have a function similar to RBDL's RigidBodyDynamics::InverseDynamicsConstraints?
I've searched through the Pinocchio documentation and codebase, but I haven't been able to find an equivalent function. The closest I've found is the constraintDynamics function, which calculates forward dynamics with constraints, not inverse dynamics.
If such a function exists in Pinocchio 3.1.0, could you please point me in the right direction? If not, are there any plans to implement this functionality in the future?
Any guidance or suggestions on how to approach this problem using Pinocchio would be greatly appreciated.
Thank you for your time and assistance.

Hello, thanks for your interest in using Pinocchio!
We do not have such a thing yet as a first-class function in Pinocchio. However we do have an implementation of constrained+underactuated inverse dynamics (for bilateral constraints) in our numerical OC library aligator, see here. It's not perfect in terms of performance and the algorithm is a mere QR decomposition of a linear system, so the behaviour will not be perfect (you're essentially getting a least-squares solution).

Thank you very much for your thorough and helpful response to my question!


Closes the gameplay loop

This PR closes the gameplay loop by adding a goal trigger. When either all players have finished, or disconnected, the option to restart the race becomes available. This will reset the connected players and camera. The reset will go back to the "main menu" where more people can connect.
In the main scene, there is now a prefab game object called Goal. This prefab has a trigger collider which should be placed at the end of the slope. It's currently at the beginning for testing purposes.
NOTE: I have not tested with more than myself as number of players, so if you have the possibility of testing with more than one, please do.

With added decoration the end of the slope is looking nicer


Deprecation warning (passing a number without unit)

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
Same issue as #37424 where the function is missing units, but problem is in shade-color() and tint-color() instead of opaque(). Seems like the whole codebase should be searched for any uses of mix() without units.
Deprecation Warning: $weight: Passing a number without unit % (48) is deprecated.

To preserve current behavior: $weight * 1%

More info: https://sass-lang.com/d/function-units

    ╷
212 │   @return mix(black, $color, $weight);
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/bootstrap/scss/_functions.scss 212:11  shade-color()
    node_modules/bootstrap/scss/_functions.scss 217:27  shift-color()
    resources/sass/app.scss 172:12                 root stylesheet

Deprecation Warning: $weight: Passing a number without unit % (72) is deprecated.

To preserve current behavior: $weight * 1%

More info: https://sass-lang.com/d/function-units

    ╷
207 │   @return mix(white, $color, $weight);
    │           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ╵
    node_modules/bootstrap/scss/_functions.scss 207:11  tint-color()
    node_modules/bootstrap/scss/_functions.scss 217:57  shift-color()
    resources/sass/app.scss 173:17                 root stylesheet

Reduced test cases
div.foo {
    color: shift-color($success, 48);
    background: shift-color($success, -72);
}

What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
No response
What version of Bootstrap are you using?
5.3.2

Thanks for opening this issue @miken32
The fix has been done for opaque because we used 100 instead of 100% within this function and the modification was:
@function opaque($background, $foreground) {
-  @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);
+  @return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
}

For tint-color() and shade-color(), we call mix() with the same exact parameter without transforming it; for example:
@function tint-color($color, $weight) {
  @return mix(white, $color, $weight);
}

@function shade-color($color, $weight) {
  @return mix(black, $color, $weight);
}

My first feeling would be to keep that as-is. It seems more logical to have the exact same type of parameter as Sass itself.

So I can just update my CSS to use % and it will work? Good to know; I’ll leave it to your team to decide whether to change anything or just update documentation. Thanks for the quick reply. On Nov 23, 2023, at 11:25 PM, Julien Déramond @.***> wrote:
Thanks for opening this issue @miken32
The fix has been done for opaque because we used 100 instead of 100% within this function and the modification was:
@function opaque($background, $foreground) {

@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100);

@return mix(rgba($foreground, 1), $background, opacity($foreground) * 100%);
}
For tint-color() and shade-color(), we call mix() with the same exact parameter without transforming it; for example:
@function tint-color($color, $weight) {
@return mix(white, $color, $weight);
}

@function shade-color($color, $weight) {
@return mix(black, $color, $weight);
}
My first feeling would be to keep that as-is. It seems more logical to have the exact same type of parameter as Sass itself.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

Yep, based on your example, you'll just have to use % in order to make disappear the warnings:
.foo-warnings {
  color: shift-color($success, 48);
  background: shift-color($success, -72);
}

.foo-no-warnings {
  color: shift-color($success, 48%);
  background: shift-color($success, -72%);
}

I’ll leave it to your team to decide whether to change anything or just update documentation.

This is something already mentioned in Customize > Sass > Colors with the following:
.custom-element {
  color: tint-color($primary, 10%);
}

.custom-element-2 {
  color: shade-color($danger, 30%);
}

But let's suggest a PR to add a .custom-element-3 additional example with shift-color() usage too: https://github.com/twbs/bootstrap/pull/39435


Constraint generics param does not satisfy type infer expression.

Bug Report
🔎 Search Terms
Constraint generics param does not satisfy type infer expression.
🕗 Version & Regression Information
4.7.4 and 4.8.2, earlier versions may behave the same.
⏯ Playground Link

Playground link with relevant code
💻 Code
type Types<T> = (T extends {} ? 'object' : never ) | 'primitive'

function accept<T>(a: Types<T>) {
}

function b<T extends {}>(a: T) {
    accept<T>('primitive'); // Okay
    accept<T>('object'); // Error: TS2345
    accept<T & object>('object'); // Okay, but T already extends from {}, such workaround shall not be required
}

🙁 Actual behavior
tsc accepts the above code

🙂 Expected behavior
the above code is rejected

Duplicate of https://github.com/microsoft/TypeScript/issues/31096


Why does -n go up and output go up ?

Isn't the output average ?

I'll check the questions and thank you for your feedback

fix. please upgrade your version to 0.0.16


Are there plans to provide a utility to convert YUYV format to go image.Image?

Now, we can get the source data in YUV format, but there is no corresponding tool to convert it to the image format supported by go.
Is there a support plan?

Hi @vincent-vinf
Great question. From the beginning I wanted to add format conversion code.
However, I hesitate and focus only on abstracting v4l2 directly. Maybe later I will.
If you do need one, checkout project Pion, specifically project MediaDevices here.

Thank you very much, I have found what I need.
https://github.com/pion/mediadevices/blob/87486146d585018bef1ea4a4d2ebf99c65ba7b30/pkg/frame/yuv_nocgo.go#LL10C9-L10C9


Fix GetFinalUri() for the patch method

Description
Meet an edge case that current GetFinalUri method in NextLinkOperationImplementation can not cover.
Here is the original response header of device update account update:
"ResponseHeaders": {
        "api-supported-versions": "2020-03-01-preview, 2021-11-02-preview",
        "Azure-AsyncOperation": "https://management.azure.com/providers/Microsoft.DeviceUpdate/locations/WESTUS2/operationStatuses/66e48b07-a8f1-4f48-9152-330b054b0476*B8F568F5F2FB1CA84F0B35038FDED6B1C1A46FA3C236A8ACF2ABA7BDFBB9119F?api-version=2020-03-01-preview",
        "Cache-Control": "no-cache",
        "Content-Length": "662",
        "Content-Type": "application/json; charset=utf-8",
        "Date": "Wed, 24 Nov 2021 06:44:34 GMT",
        "ETag": "\u00224d00e929-0000-0800-0000-619ddf500000\u0022",
        "Expires": "-1",
        "Pragma": "no-cache",
        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
        "X-Content-Type-Options": "nosniff",
        "x-ms-async-operation-timeout": "PT15M",
        "x-ms-correlation-request-id": "2104ffa3-2a74-46ae-9486-152fc466e0ae",
        "x-ms-providerhub-traffic": "True",
        "x-ms-ratelimit-remaining-subscription-writes": "1199",
        "x-ms-request-id": "66e48b07-a8f1-4f48-9152-330b054b0476",
        "x-ms-routing-request-id": "SOUTHEASTASIA:20211124T064435Z:2104ffa3-2a74-46ae-9486-152fc466e0ae"
      },

Here the GetFinalUri will return null and final response comes from the uri in Azure-AsyncOperation. This will make the resource type validation fail when trying to construct the resource.
Checklist
To ensure a quick review and merge, please ensure:

[ ] The PR has a understandable title and description explaining the why and what.
[ ] The PR is opened in draft if not ready for review yet.

If opened in draft, please allocate sufficient time (24 hours) after moving out of draft for review

[ ] The branch is recent enough to not have merge conflicts upon creation.

Ready to Land?

[ ] Build is completely green

Submissions with test failures require tracking issue and approval of a CODEOWNER

[ ] At least one +1 review by a CODEOWNER
[ ] All -1 reviews are confirmed resolved by the reviewer

Override/Marking reviews stale must be discussed with CODEOWNERS first

Test will be added after this PR  Azure/autorest.testserver#333 is merged.

Test will be added after this PR Azure/autorest.testserver#333 is merged.

Ok.

Test will be added after this PR Azure/autorest.testserver#333 is merged.

Ok.

Hi @AlexanderSher , I have added the tests, could you please take a second look?

Due to #1826 , I enabled the fast generation for media_type in generation.psm1 to avoid generation failure


Memory leaks with image picker type Slack

Hi!
I open project and start chat with image picker type Slack and memory begin leaks...

Hi, I am facing same issue.
And I found why this happens.
The imagePickerView inside the ChatViewController is loaded when ChatViewController is initiated.
And it is loading all the photo files from the iOS photo library and invalidate them into collection view items which is invisible to us.
It gets huge amount of memory with init.
We must remove this stage to avoid memory issue.


Split the code into lib and server sample.

Let the lib code live in src, move the main.cpp into sample. Add a CMake option BUILD_SAMPLE_SERVER with default value OFF, do not include sample subdir in build process if the option is OFF. The CMake files should provide two targets, one for the lib and one for the sample server. We can go with static lib for now and add a dynamic one later.

Implemented.


0.15.0 version - LoadError: cannot load such file -- user_agent/browsers/edge

Today i update gem and see this error

https://github.com/gshutler/useragent/pull/19


V4.0.0-beta.3 - [merged]

Merges v4.0.0-beta.3 -> master

approved this merge request

added 1 commit
3a307c8b - update CHANGELOG
Compare with previous version

mentioned in commit a0bf7eb86b4c527b91caf4f43da343d3f65dbd0f


Rewrite x86 SAD row intrinsics in ASM

This speeds up the sad_row functions mainly by avoiding a residual loop altogether, and avoiding mixing 128 bit and 256 bit vector instructions which causes slow downs on some CPUs. Instead of using a scalar residual loop to clean up the elements that don't fit into the SIMD register and unroll size, this code always uses vector instructions and just reads past the end of the array and masks out the irrelevant bytes (similar to glibc's AVX2 memchr implementation).
This also actually ends up de-duplicating some code between the SSE2 and AVX2 versions of the code, since a single macro is now used to generate both versions of the function.

Coverage decreased (-0.6%) to 84.897% when pulling 13abad700b1d14db4e8ab0fca2e5ac2741497a2a on redzic:asm-sad into c9735bdc0c37fcf8e0aa63604d13e07f521c2665 on xiph:master.

For context: The reason sad_row (and a lot of other things) have to work at the row level instead of the plane level is because the visible area of a plane is not guaranteed to be a contiguous slice. There is often non-visible padding which we don't want included in the SAD calculation.


First Release Plan

Hello World!!!
My target is to release NeuralPy version 0.1-alpha by Wednesday 10th June.
Most of the work is finished, except for a few. Here is a detailed list of pending tasks:

Test Cases for Sequential Model
Code Refactoring and big fixes for Sequential Model
Completing the Documentation on Sequential Model
Added an Advanced Topic section on the documentation (shows how to use a custom layer/loss function/ optimizer etc)
Documentation review for any typoes/grammatical mistakes/improvements/broken links etc
Added some example project, so people can get started
Any other bugs or other improvements that I notice

Will be delayed by some days

@imdeepmind  I would like to work on neuralpy. Would you help me to get started or is there any issues that you want me to work on ?

@jeffin07 Thanks for showing interest in this project. As this project is at a very early stage of development, there are thousands of stuff that you can do.
You can add support to new types of Layers, Activation Functions, Loss Functions, Optimizers, etc.
Also, I'm thinking about adding support to Layer, Loss Function, and Optimizer base class that can be used to generate other NeuralPy supported Layers/Loss Functions/Optimizers. I have already achieved it for the Model module. If you check the code, then there is a Model class that provides different methods like fit, predict, etc.  The Sequential Model class inherits the Model class and use the methods provided by the Model class to build the Sequential model.
Finally, there are several bugs in the code, so if you notice one, you can submit a PR. You can work on the code improvement also.
If you need more info, please contact me.
I'm also sharing this Discord invitation link, you can join if you want to discuss anything with me.
Discord Link: https://discord.gg/6aTTwbW
Note: I'll release the first alpha version in 2-3 days. So I'll not accept any new features now. If you submit PR for new features, I'll merge it after some days, once I release the first version.

As I have already released the first version, I'm closing this issue


declare export class (flow) results in syntax error

declare export class Foo {}
This will result in a syntax  error.
Babylon 7.0.0-beta.31 can parse this though.
Not sure where the problem lies.

Sorry, I noticed that the Project where this happens did not use eslint 4 with babel-eslint 8. (And astexplorer.net for some reason fails with the snipped as well)


Recommended pattern for re-rendering elapsed time?

Hi @justinmahar, thanks for the library! Now that the hook doesn’t trigger re-renders by default, do you have a recommendation for how to trigger re-renders? Initially, I hoped the following would work:
import { useStopwatch } from 'react-use-precision-timer';

function App() {
	const stopwatch = useStopwatch();
	return
{stopwatch.getElapsedRunningTime()}
;
}

export default App;

But the view doesn’t re-render. That led me to this issue, so I tried to make the app re-render with some more explicit state:
import { useCallback, useMemo, useRef, useState } from 'react';
import { useTimer } from 'react-use-precision-timer';

function App() {
	const stopwatchRef = useRef(null);

	const [elapsedTime, setElapsedTime] = useState(0);
	const options = useMemo(
		() => ({
			delay: 0,
			runOnce: false,
			fireOnStart: false,
			startImmediately: true,
		}),
		[]
	);
	const cb = useCallback(() => {
		setElapsedTime(stopwatchRef.current.getElapsedRunningTime());
	}, []);

	const stopwatch = useTimer(options, cb);
	stopwatchRef.current = stopwatch;

	return
{elapsedTime}
;
}

export default App;

…but even this isn’t working. As far as I can tell, the callback is never run.
I feel like I must be missing something obvious here. Any advice?

Hey @rileyjshaw! Great question. So when you're using the stopwatch, there's no "tick" or anything, it just tracks start, pause, resume, and stop times.
You'll want to create a timer "tick" yourself to trigger a re-render and update the UI.
You can have it tick at any rate you'd like. In the demo, this is exactly what I'm doing with the "render every X ms" setting to show the current values from the timer over time.
So to accomplish this, do something like:
const stopwatch = useStopwatch();

// Re-render callback and timer
const renderEveryMillis = 10;
const [renderTime, setRenderTime] = useState(0);
const renderCallback = useCallback(() => setRenderTime(Date.now()), []);
const renderTimer = new Timer({ delay: renderEveryMillis }, renderCallback);

return
{stopwatch.getElapsedRunningTime()}
;

So you'll have the stopwatch keeping track of elapsed time, and a timer that triggers a re-render by changing some React state every so often. Makes sense?

Also in your code, the callback is never run because you specific a delay of 0. This effectively turns the timer into a stopwatch. See the delay prop in the docs here.
Give the approach I suggested a shot and see if that solves your problem!

I see. So on the following line:
const renderCallback = useCallback(() => setRenderTime(Date.now()), []);

the state could really be set to anything new:
const renderCallback = useCallback(() => setRenderTime(Math.random()), []);

Forcing a re-render every 10 milliseconds, regardless of whether getElapsedRunningTime has changed, feels like a hack to me. I understand if rendering elapsed time is outside of the scope of this library. But if it’s a use case you wish to support, I think there’s a strong case for a configuration flag:
const options = useMemo(() => ({
	runOnce: false,
	startImmediately: true,
	triggerRerender: true,
}));
const stopwatch = useTimer(options, cb);

Please feel free to close this issue if you don’t think it’s an important use case. Cheers!


Enable separate resolv.conf setup from dnsmasq

We have partial separation, but it forces kubedns on the host if you set skip_dnsmasq.

This is a dup of https://github.com/kubespray/kargo/issues/452


Read multiple recordings from raw.kwd source data file.

Spikedetect wasn't reading from multiple recordings within a raw.kwd file, now it does!

Is this now good to merge? @c-wilson @rossant

I think it is working fine at this point. I've been using this on kwd's with multiple recordings successfully and have tested with multiple dats as well. It passes the test scripts as well.


Example HDF5?

Any chance you could make available a copy of the HDF5 file that should be output?

At present, the generator is written with random number generation, but I can give a sample. Note that this repo is quite preliminary, so a lot of the fields won't be there.
test.h5.gz
I have never looked at the HDF5 structure myself, so that'll be interesting. Note that feedback on how yardl encodes information to HDF5 might belong best in https://github.com/microsoft/yardl/

Thanks.


Please, consider replacing golint with staticcheck

It seems golint has become obsolete and the repository is archived by its owner.
The author suggests alternatives such as go vet and staticcheck.
This PR replaces golint with staticcheck using the default configuration.

Hum… 🤔 having a hard time making this work inside GitHub actions…

I think I finally landed on something that works 😥


ARROW-3986: [C++] Document memory management and table APIs

I have uploaded a documentation build at https://pitrou.net/arrowdevdoc/cpp/index.html for easier viewing.


Loading a new toolbox without categories through updateToolbox causes console error

Expected Behavior
When the workspace is initialized with a non-category toolbox it is expected to be able to load other non-category toolboxes through workspace.updateToolbox without causing console errors.
Actual Behavior
With the latest merge of bugfix/updateToolbox, this now causes a console error. Before (at SHA 1cf79eed97015b5bddcc628cc24a1be079a4d3f1) this did not occur.
Steps to Reproduce
To reproduce, add a method like the following to the playground to trigger a toolbox refresh:
function setToolbox() {           var emptyToolbox = '<xml><toolbox></toolbox></xml>';           workspace.updateToolbox(emptyToolbox);       };
This method can then be trigged by any button, for example the "To JavaScript" button.
Note that you need to first make sure to set the toolbox option to "Simple" in order to have the toolbox with no categories loaded initially (to avoid switching between category toolboxes and non-category toolboxes).
Also note that the toolbox does not need to be empty, its just like this in the example to keep it simple.
Operating System and Browser
Reproduced on Chrome on Mac but pretty sure its not isolated to any specific platform and is a general issue.

Seems this might simply need a 'if (this.toolbox_)' check around that position call.

Fixed in #858


Fix Python version to be 3.9 in setup.py

Due to the use of list[Any] in game.py, PyAutoSplit only works with Python versions 3.9 or later.

True, that is an oversight. But I think the better solution would be to use from typings import List and then List[Any] to still be compatible with lower python versions.

Fixed by 4820e079026e412805d8c29d4f53b8ff4e3edca2


ci(ci): add cypress

:tada: This PR is included in version 1.0.0-alpha.125 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Send metadata about steampipe to Databricks via User-Agent header

Author of Databricks SDK for Go here. This PR adds sending of steampipe name to Databricks in User-Agent request header, so that it's possible to distinguish from unknown applications.

Nice, thanks @nfx
I wonder if there is a way to get the current version automatically, so it doesn't have to be updated manually?
We have an existing SDK function to get the SDK version, which is not the same as plugin version but may be useful here -<EMAIL_ADDRESS>

@e-gineer I think version can be picked up from buildinfo of the module. We use it in our CLI. Let's make it out of scope of this PR

Happy to discuss/review more of the code, please reach out using my Databricks email.

@e-gineer Can we merge this?


FindLZMA failing on GitHub Actions

FindLZMA is failing on GitHub Actions, but is succeeding locally. Tesseract does not use LZMA directly, so this problem is coming from a dependency.
https://github.com/johnwason/tesseract-robotics-superpack-feedstock/runs/2703373851?check_suite_focus=true#step:6:2162

This doesn't seem to be an issue anymore.


[BACKLOG-19099] Converted group to GridLayout; previous layout was ca…

…using some odd behavior in Windows.
@mkambol / @flbrino / @aminmkhan

Build Completed
:white_check_mark: This pull request has passed all validations.
Build Commands
mvn -B -fn -f 'pom.xml' -pl 'plugins/engine-configuration/impl' -P '!assemblies' -amd clean install && mvn -B -f 'pom.xml' -pl 'plugins/engine-configuration/impl' -P '!assemblies' -amd site

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'plugins/engine-configuration/impl' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  plugins/engine-configuration/impl/src/main/java/org/pentaho/di/engine/configuration/impl/spark/SparkRunConfigurationUI.java
  plugins/engine-configuration/impl/src/main/resources/org/pentaho/di/engine/configuration/impl/spark/messages/messages_en_US.properties


Add introspection support in OpenIdConnectConfiguration

Fixes https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/issues/1209.
@brentschmaltz is it something that could be included in the next release? 😃

@kevinchalet we can fit this in, thanks.


mattermost: 5.3.0 -> 5.4.0

Motivation for this change
Upgrade Mattermost to version 5.4.0.
Things done

Built on NixOS
Tested on a ~60 person deployment on NixOS

@ryantm backport?

backport: bbc3f425e365f2d7a0dbf2dd099638037709e5cd 720af0f20fb0e4e0c1c2d2a2bd267dc2218a87da


Splitting part of source_detection.ipynb off into separate imaging.ipynb example notebook

The purpose of this PR is to split off the examples on how to use Karabo for imaging out of the notebook that proves source detection examples, leaving only the WSClean algorithm in the source detection notebook.
This corresponds to https://jira.skatelescope.org/browse/CHOC-18

In addition, writing the down the purpose of this PR would be helpful rather than pointing to a JIRA ticket where permissions are needed to access.

I added the corresponding test and a small description in the original comment, as those are no-brainers. I copied that format off someone who must've been equally lazy, my bad.
As for the rest, it might be best to wait until Michel is back since I did this implementation as per his instructions. I do agree that the duplication is bad for the reasons you listed. Discussing this with Michel, we could not come up with a better solution as doing the initial simulation would be part of the expected workflow of a scientist doing either imaging or source detection.

Sure we can wait. I also discussed this matter with Mathias Graf. And we concluded more or less to the solution I proposed. And since the changes are small (at least if I considered every aspect of it which might not be the case), it's hard to see for me why we shouldn't do the suggested approach.

The idea was for this PR to be just about splitting up source detection and imaging, but since the topic of simulation code duplication came up multiple times during the last weeks (e.g. Lukas' metadata example script IIRC), it might indeed be a good idea to address it right now. I could imagine a slightly simpler solution than Lukas suggested: what about just having a saved FITS file that lives in the repo and replace the simulation code with a simple loading of that file? That would save us env vars, cleanup, ordered tests.
I believe in the SRCNet_rucio_meta.py script, we also need telescope and observation objects, but we could just load them from disk as well using serialization.
Opinions?

[...] I believe in the SRCNet_rucio_meta.py script, we also need telescope and observation objects, but we could just load them from disk as well using serialization. Opinions?

Depends on the size. It also means that we'd have to update serialized files whenever internals change.
Why don't we add production of example-data to the Karabo API? A function à la get visibilities for tests, experiments and examples() could be useful?

[...] I believe in the SRCNet_rucio_meta.py script, we also need telescope and observation objects, but we could just load them from disk as well using serialization. Opinions?

Depends on the size. It also means that we'd have to update serialized files whenever internals change.
Why don't we add production of example-data to the Karabo API? A function à la get visibilities for tests, experiments and examples() could be useful?

Sounds like a good solution. Can be a small simulation so it doesn't take much time when run repeatedly in different parts of the code base.

Not sure... because to me it seems like the proposed solution is way easier to implement and doesn't require any file generation function, just a get_vis_path_from_* function which is looking at an env-var.
However, since you both don't agree I guess I'll adapt I guess. What matters to me in the end is to have minimal code duplication for maintainability & example clarity.

@Lukas113 merging is blocked because of your change request in august, do you want to have another look or alternatively withdraw the change request?


Select current selected style tab (!)

My JabRef after startup:

It should look like:

I think, only the tab switching is missing!

Added auto select tab feature based on last used style from preferences

You can link issues from commits by adding the full (!) issue URL to your commit message. That supports quick reviewing of changes.

You can link issues from commits by adding the full (!) issue URL to your commit message. That supports quick reviewing of changes.

Oh, didn't know this. Could you clarify if I have to add an exclamation mark to the issue title like on this one? Or the commit message? Or just append the url in the commit message?

I needed to select another style, then it worked.


Creating a password for a new wallet

Hello,
I have a real problem with my tokenpay desktop wallet.
It may be, that I, when I created my new wallet I typed in a wrong password.
Usually I know, when you somewhere create an account you have to confirm your password.
But in creating a new tokenpay wallet, you're  not asked to confirm your password.
You have to put it in only ONCE.
I really like tokenpay, but now I can't recover my wallet, my hdd got damaged, and recovering it with my recovery phrase and password doesn't work, maybe just because of this problem.
Greetings, Peter

recovery phrase? that sounds like android, which is different than the core wallet (this is the core wallet repo)
also, what is the issue with your password? you should be able to recover it, passwords do work. did you copy the wallet.dat over?

Hey Justin, thanks for replying.
My problem is, when I created my wallet almost a year ago, I forgot to write down my password.. I just wrote down my recovery phrase.. (24 random words for a windows wallet)..
I have everything, my wallet address, my recovery phrase.. I just dont remember my password.. I can't recover my wallet without my password.
And unfortunately you don't have any opportunity to recover your password by email address or something.
And no, I didn't over write my wallet. My hdd crashed, and I can't get it fixed.
So now, I think I just had bad luck.. I really don't know how to get my token back.. 😟

what happens when you use the phrase?

It's giving me a different wallet address.
I was trying to get in typing like 500 different passwords over couple of days.. Never showed up my address..

Do you think I have any chance to get them back..? Do you think there will be released a wallet someday where you can recover your password for your wallet address?
I mean I know my wallet address and I have the recovery phrase. Shouldn't there be any chance to do something?


Update sites.yml

Website (if applicable): https://example.com <-- TODO: CHANGE ME
This PR is:

[x] Adding a new domain
[ ] Updating existing domain
[ ] Changing domain name
[ ] Removing existing domain from list
[ ] Website code changes (darktheme.club site)
[ ] Other not listed

[x] The following information is filled identical to the data file

I confirm that I have read the FAQ page, particularly the red section about inappropriate content, and I attest that this site is appropriate based on those criteria.

[x] Check to confirm

- domain: jundimubarok.com
  url: https://jundimubarok.com
  method: unknown
  last_checked: 2024-08-31

Thanks!


Cannot read property 'socialsharing' of undefined

04-12 09:34:39.610: E/Web Console(3138): Uncaught TypeError: Cannot read property 'socialsharing' of undefined at file:///android_asset/www/share.html:29

Sounds like deviceready didn't fire before you called socialsharing. Can you share your share.html file perhaps?

Untitled Document

<script src="_assets/js/index.js"></script>

<link rel="stylesheet" href="themes/SurajJM.min.css" />

<link rel="stylesheet" href="themes/jquery.mobile.structure-1.4.5.css" />

<script src="themes/jquery.mobile-1.4.5.min.js"></script>

<script type="text/javascript" src="cordova-2.2.0.js"></script>
<script type="text/javascript" src="cordova_plugins.js"></script>

<script type="text/javascript" src="SocialSharing.js"></script>

Share
message only

please give me your email id i'll send you my project.
Thanks for help

here is my share.html file
https://www.dropbox.com/s/oqwui6baqcjwqgs/share.html?dl=0

@EddyVerbruggen E
And here is my full Eclipse project.
https://www.dropbox.com/s/gc6u8ki6mhsnuxu/Sharing.rar?dl=0
please help

Hmm, I have a few bits of feedback for you, please PM me at eddyverbruggen at gmail.com


HDDS-9679. Added Multipart Upload ID to S3MultiPart audit logs.

What changes were proposed in this pull request?
Multipart UploadID is not written to S3 MPU requests. Since, the same multipart key can be created with multiple uploadIDs added the multipart UploadID info to the audits.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-9679
How was this patch tested?
Manually tested multipart commands using aws s3api
2024-05-14 00:33:50,810 | INFO  | S3GAudit | user=unsecure | ip=<IP_ADDRESS> | op=INIT_MULTIPART_UPLOAD {bucket=[testbucket], path=[large_test_file1], uploads=[]} | ret=SUCCESS |
2024-05-14 00:34:36,473 | INFO  | S3GAudit | user=unsecure | ip=<IP_ADDRESS> | op=CREATE_MULTIPART_KEY {bucket=[testbucket], path=[large_test_file1], uploadId=[57bc370c-e8c5-4a24-b7ec-2a1e4b3a240f-112436630703439875], partNumber=[1]} | ret=SUCCESS | perf={streamMode=true, metaLatencyMs=29, sizeByte=5242880, opLatencyMs=793} |
2024-05-14 00:34:49,372 | INFO  | S3GAudit | user=unsecure | ip=<IP_ADDRESS> | op=CREATE_MULTIPART_KEY {bucket=[testbucket], path=[large_test_file1], uploadId=[57bc370c-e8c5-4a24-b7ec-2a1e4b3a240f-112436630703439875], partNumber=[2]} | ret=SUCCESS | perf={streamMode=true, metaLatencyMs=9, sizeByte=5242880, opLatencyMs=376} |
2024-05-14 00:36:03,031 | INFO  | S3GAudit | user=unsecure | ip=<IP_ADDRESS> | op=LIST_PARTS {bucket=[testbucket], path=[large_test_file1], uploadId=[57bc370c-e8c5-4a24-b7ec-2a1e4b3a240f-112436630703439875]} | ret=SUCCESS | perf={count=2, opLatencyMs=19} |
2024-05-14 00:37:09,408 | INFO  | S3GAudit | user=unsecure | ip=<IP_ADDRESS> | op=COMPLETE_MULTIPART_UPLOAD {bucket=[testbucket], path=[large_test_file1], uploadId=[57bc370c-e8c5-4a24-b7ec-2a1e4b3a240f-112436630703439875]} | ret=SUCCESS |

@ivandika3 can you please take a look at this?

Thank you @SaketaChalamchala for the patch and @kerneltime for the review.


Added method for burning slp tokens

:tada: This PR is included in version 1.2.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Add video tutorials to documentation

videos are here: https://github.com/epitools/epitools/tree/main/docs/_static


DOC: Update setupandinstallation.md

In step 2 of https://github.com/SAP/cloud-commerce-spartacus-storefront/blob/develop/docs/setupandinstallation.md#importing-the-storefront-module-into-your-application
the code snippet shows:
imports: [BrowserModule, StorefrontModule],
but it might be better if it matched the example of what we say the file should look like -- in other words:
imports: [BrowserModule, AppRoutingModule, StorefrontModule],

Will use this ticket to also fix a typo on seo.md.

And also a typo in https://github.com/SAP/cloud-commerce-spartacus-storefront/blob/develop/projects/storefrontlib/src/lib/occ/docs/cms-component-implementation.md


Add method for setting the logging level

There is a method in RootBeer class that allows user to modify the logging level in QLog and RootBeerNative (the .cpp library to be specific). If the level modifier method is not used, the library behaves as before. All logging levels are the same, nothing changes for users that already use the library!

@aippisch Sorry I didn't see this pull request before adding this myself in commit 55a4c8f

55a4c8f


JP script files patch 1.12

A few script files in the 1.12 patch for Kuro are broken. Here's T5000:

Notice that there is something after the EXIT (a label). That means a jump should normally lead to this area of the code.
BUT:

All the jumps leading to this location are located after an EXIT(), which means the game will never reach the JUMP (it will always leave the function at the exit)
which means that all code after Label("Loc_81") is unacessible, and the problem is that it messes up the stack calculation (which is necessary to identify where the return addresses are pushed, so that pointers can be updated accordingly).
=> This doesn't happen in CLE script files nor in the JP base game files. It is likely a mistake of some sort.
To fix it :
adding "--debug True" to the command line calling dat2py.py to disassemble the file (will ignore the stack for those special cases)
When reassembling, since we determined the whole code after Label("Loc_81") is unaccessible, better remove it entirely.

Of course it needs further testing when the PC release drops.

A list of all files suffering this problem in the update:

a1000
c0000
c0200
c0400
c0410
c0800
c1000
c1200
c1400
c1600
e0710
m0000
m2300
m3000
m3300
m4200
m5100
m5200
m6110
m6120
m6130
m6200
m7500
sys_event
t3400
t4000
t5000


Idle detector is inaccurate

There is a report that the Idle Detector doesn't count accurately. He's using the latest stable 7.4.330, which include the fix at (https://github.com/toggl/toggldesktop/pull/2673).
We have to investigate why it doesn't work in his case.
💻 Environment
Platform: macOS
Toggl Version: 7.4.330
🐞 Actual behavior

Away about 35 min and when I got back to my computer it said I was idle for only 6 min.

💯 Expected behavior

The idle should detect correctly.

🔨 Steps to reproduce
In conversation/20891817274

User Report


Include verbiage about subsites

Just to let customers know that subsites do not count towards the limit

@MSFT-GRRojas the concept of site collections has been deprecated in SharePoint Online. We don't recommend using the site / subsite model anymore, so we just refer to sites. Closing this out.

I have had a few customers uncertain if subsites count against the current max of 10k so I thought adding that verbiage would help clarify
Greg Rojas
Sr Cloud Solutions Architect

From: Mike Plumley @.>
Sent: Friday, January 20, 2023 4:12:32 PM
To: MicrosoftDocs/OfficeDocs-SharePoint @.>
Cc: Greg Rojas @.>; Mention @.>
Subject: Re: [MicrosoftDocs/OfficeDocs-SharePoint] Include verbiage about subsites (PR #3588)
@MSFT-GRRojashttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMSFT-GRRojas&data=05|01|Greg.Rojas%40microsoft.com|379f06436e34439303a608dafb2b0c18|72f988bf86f141af91ab2d7cd011db47|1|0|638098459557192208|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=uqR088BiKtOsdjRC867JSurTU9l%2FzaDnPsaVAWLEn9Q%3D&reserved=0 the concept of site collections has been deprecated in SharePoint Online. We don't recommend using the site / subsite model anymore, so we just refer to sites. Closing this out.
—
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoftDocs%2FOfficeDocs-SharePoint%2Fpull%2F3588%23issuecomment-1398946381&data=05|01|Greg.Rojas%40microsoft.com|379f06436e34439303a608dafb2b0c18|72f988bf86f141af91ab2d7cd011db47|1|0|638098459557192208|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=ax2nH6chsVyhJoCkN21x2jux9cW%2BTzKRgPxbo%2FlWLiE%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQCXZY4QOR7TTV5YHBZGHPLWTL5UBANCNFSM6AAAAAAUBZMJVQ&data=05|01|Greg.Rojas%40microsoft.com|379f06436e34439303a608dafb2b0c18|72f988bf86f141af91ab2d7cd011db47|1|0|638098459557192208|Unknown|TWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D|3000|||&sdata=86UhiI1wWNvkdtUC0FRNzMQMRMwgYd%2FPhiWRGhgEPb0%3D&reserved=0.
You are receiving this because you were mentioned.Message ID: @.***>


E2 Lines aren't accurate

Hello,
I play on a gmod server that used wiremod and E2 first wenn i joied it was fine but now the Lines are not accurate.i dont new what to do but wiremod sayed to me that i have a older version of it so i downloaded (with SVN) the update, But it didn't work to. The thing is on the server everyone see it normal and i dont now why i didn't see is so.
it look like so

This bug tracker is for bug reports, not support.
Ask on Discord.
See https://www.wiremod.com/ for the invite link.


Can't save entries with git-gateway

Describe the bug
When trying to publish an entry you get an error message saying Failed to persist entry: API_ERROR: Not Found
When looking at the request in the network panel you see that it tries to request https://www.strateg.se/.netlify/git/github/git/blobs?ts=1555575972837 but receives a 404.
I'm using Gatsby and the gatsby-netlify-cms plugin. So not entirely sure where to report this issue. Just let me know if this should be reopened somewhere else.
Expected behavior
Being able to save content
Screenshots
N/A
Applicable Versions:

Netlify CMS version: 2.7.0
Git provider: GitHub

Thanks @alexandernanberg. Can you update to 2.9.1 and test if the problem persists?
If you are using an github organization account, check this fix: https://github.com/netlify/netlify-cms/issues/1816#issuecomment-445599821

Oh thanks, removing the restrictions in GitHub fixed it. Would be nice to be able to keep them though 🤔


Will setting different lmul result in obvious performance difference?

In RVV, lmul stands for "Vector Register Group Multiplier" to specify the number of registers to create a group. Different lmul settings have different number of instructions generated when executing the same procudure. For example, setting lmul=4 requires twice as many instructions as setting lmul=8 when executing the same procedure. Although the additional instructions will cause extra fetching and decoding overhead, it shouldn't have too much impact on overall performance in theory.
However, it seems that experiments on an AXpY case based on stripmining method have demonstrated that various lmul will make a difference. As shown in the table below, non-computing overheads such as fetching and decoding account for about 4.0%((663,647 - 638,047) / 638,047) of the total cycles, and the performance gap caused by changing lmul=8 to lmul=1 is catching up to the original 28.4%( (819,295 - 638,047) / 638,047), which is exactly seven times the non-computing overheads when setting lmul=8.
Will setting different lmul result in obvious performance difference? Do we need further analysis on that?

AXPY implementation
lmul=8
lmul=4
lmul=2
lmul=1

total cycles
638,047
663,647
716,895
819,295

delta between total cycles
-
25,600
53,248
102,400

The AXpY case is as follows(sew=32, vlen=1024 and input lengh = 262145):
axpy.mlir:
// BUDDY-OPT
// --lower-affine --convert-scf-to-cf --convert-math-to-llvm
// --lower-vector-exp --lower-rvv=rv32
// --convert-vector-to-llvm --finalize-memref-to-llvm
// --convert-arith-to-llvm --convert-func-to-llvm
// --reconcile-unrealized-casts
// BUDDY-OPT-END

memref.global "private" @gv_i32 : memref<262145xi32> // 262145 = 256 * 1024 + 1

func.func @test() -> i32 {

  %input1 = memref.get_global @gv_i32 : memref<262145xi32>
  %input2 = memref.get_global @gv_i32 : memref<262145xi32>
  %output = memref.get_global @gv_i32 : memref<262145xi32>

  %c0 = arith.constant 0 : index
  %c0_i32 = arith.constant 0 : i32
  %dim = memref.dim %input1, %c0 : memref<262145xi32>
  %dim_i32 = arith.index_cast %dim : index to i32

  // Configure the register.
  // SEW = 32
  %sew = arith.constant 2 : i32
  // LMUL = 8
  %lmul = arith.constant 3 : i32

  // Constant mask configuration.
  %mask = arith.constant dense<1> : vector<[16]xi1>
  %a_element = affine.load %input1[%c0] : memref<262145xi32>

  // While loop for strip-mining.
  %tmp_avl, %tmp_idx = scf.while (%avl = %dim_i32, %idx = %c0) : (i32, index) -> (i32, index) {
    // If avl greater than zero.
    %cond = arith.cmpi sgt, %avl, %c0_i32 : i32
    // Pass avl, idx to the after region.
    scf.condition(%cond) %avl, %idx : i32, index
  } do {
  ^bb0(%avl : i32, %idx : index):
    // Perform the calculation according to the vl.
    %vl = rvv.setvl %avl, %sew, %lmul : i32
    %x_vector = vector_exp.predication %mask, %vl : vector<[16]xi1>, i32 {
      %ele = vector.load %input1[%idx] : memref<262145xi32>, vector<[16]xi32>
      vector.yield %ele : vector<[16]xi32>
    } : vector<[16]xi32>
    %y_vector = vector_exp.predication %mask, %vl : vector<[16]xi1>, i32 {
      %ele = vector.load %input2[%idx] : memref<262145xi32>, vector<[16]xi32>
      vector.yield %ele : vector<[16]xi32>
    } : vector<[16]xi32>
    %mul_vector = rvv.mul %x_vector, %a_element, %vl : vector<[16]xi32>, i32, i32
    %result_vector = rvv.add %mul_vector, %y_vector, %vl : vector<[16]xi32>, vector<[16]xi32>, i32
    vector_exp.predication %mask, %vl : vector<[16]xi1>, i32 {
      vector.store %result_vector, %output[%idx] : memref<262145xi32>, vector<[16]xi32>
      vector.yield
    } : () -> ()
    // Update idx and avl.
    %vl_ind = arith.index_cast %vl : i32 to index
    %new_idx = arith.addi %idx, %vl_ind : index
    %new_avl = arith.subi %avl, %vl : i32
    scf.yield %new_avl, %new_idx : i32, index
  }

  %result = vector.load %output[%c0] : memref<262145xi32>, vector<8xi32>

  %mask_res = arith.constant dense<1> : vector<8xi1>
  %c1_i32 = arith.constant 1 : i32
  %evl = arith.constant 8 : i32
  %res_reduce_add_mask_driven = "llvm.intr.vp.reduce.add" (%c1_i32, %result, %mask_res, %evl) :
        (i32, vector<8xi32>, vector<8xi1>, i32) -> i32

  return %res_reduce_add_mask_driven : i32
}

Should be fixed by #240

After retesting, it seems that setting different lmul will still lead to obvious performance difference, of which the proportion is very close to before.

AXPY with input lengh = 4100
lmul=8
lmul=4
lmul=2
lmul=1

total cycles
10,194
10,674
11,634
13,682

delta between different lmul
-
480
960
2,048

AXPY with input lengh = 262145
lmul=8
lmul=1

total cycles
645,228
868,460

delta between different lmul
-
223,232

The retest's results seem promising. The procedures now run faster than before and the gap between the total cycles of different lmuls has been narrowed (except for the case of lmul=1). As for lmul=1, do you have any understanding about it? @sequencer

Conv2d with input size=260
lmul=8
lmul=4
lmul=2
lmul=1

total cycles(previous)
2,247,794
2,284,946
2,373,182
2,531,078

total cycles(current)
2,215,286
2,212,964
2,208,320
2,496,248

ratio of difference(excluded lmul=1) = (total_cycles(lmul=8) - total_cycles(lmul=2)) / total_cycles(lmul=2) * 100% = 0.3%, which can be safely ignored.
ratio of difference = (total_cycles(lmul=1) - total_cycles(lmul=2)) / total_cycles(lmul=2) * 100% = 13.0%, which is relatively noticable.

AXPY with input lengh = 262145
lmul=8
lmul=4
lmul=2
lmul=1

total cycles(previous)
645,228
675,948
737,388
868,460

total cycles(current)
654,437
645,221
684,133
811,109

ratio of difference(excluded lmul=1) = (total_cycles(lmul=2) - total_cycles(lmul=4)) / total_cycles(lmul=4) * 100% = 6.0%, which I assume to be reasonable given its low computational demand.

It is possibly caused by VFU hazard l, ask @SharzyL for making sure.


Fix build with GHC-8.8

This applies the following head.hackage patches:

https://gitlab.haskell.org/ghc/head.hackage/blob/b0af1b02c5c94a5a5b104fc9ed66eed470945622/patches/store-core-0.4.4.patch
https://gitlab.haskell.org/ghc/head.hackage/blob/b0af1b02c5c94a5a5b104fc9ed66eed470945622/patches/store-<IP_ADDRESS>.patch

Fixes #144.

https://github.com/fpco/th-utilities/pull/8 will have to be released before this can actually be compiled with GHC-8.8.

LGTM, thanks!  I've released store-streaming-<IP_ADDRESS>  store-core-<IP_ADDRESS> store-0.6.0

Thanks for the quick release @mgsloan! :)
And thanks to @RyanGlScott for all the patches! :+1:

As a hackage trustee I made appropriate revisions to old releases of store to prohibit unbuildable configurations.


Use after free bug in Mixer's OPUS_Delete() on macOS

There's some background on this issue in the rust-sdl2 project. It seems that on the Mac while Wave files work happily if mixer is unload before the music file is but Opus causes a SEGFAULT.
Digging deeper, it turns out that there isn't a proper guard in OPUS_Delete to make sure that the Opus library is still loaded.
The fix seems to be to make sure "opus.loaded" is greater than zero before calling opus.op_free().
Does this seem reasonable? Also, I noticed that you can leak the Opus libraries if calling OPUS_Load() more than once.
If this does make sense, I'm happy to write a merge request here. It seems like @Wohlstand would be a good mentor for this if they're willing to help me out.

Some more background on my adventure over here:
https://discourse.libsdl.org/t/debugging-a-crash-in-mixers-opus-support/33017

Lemme check some...

Agreed, but the library seems to support it. I'd expect the fix for that is to use the opus.handle member as a guard and avoid loading again if it's already in memory.

Here is the counter that checks how much "loads" was done:
and the same code at both OGG Vorbis and OPUS codes too:

close an Opus stream after the library is unloaded

That another problem, more general, you should close all music until to call Mix_Quit()

Any other library will also crash with such method

Ah, okay. In that case the fix here is might need to happen upstream in rust-sdl2 to make it safe...
It's a bit funny though that this works fine on Linux and will also work fine if libopusfile is statically linked. I assume the SDL2_UnloadObject works differently there.
The other option is that I could make all other libraries safe regardless of operating system and linker choices. It should be easy enough to write a test app for that (if I choose to make the time to do so).

If the library got loaded statically, it just assigns all calls directly without even calling the SDL_LoadObject/SDL_UnloadObject/ etc. So, the load/unload doesn't happen. Also, some might happen:

You loaded song
You started playing song
You called Mix_Quit() without closing of opened music, and since here, the leak happens
Additionally, if you had already de-initialized SDL2, there are attempts to call SDL_FreeAudioStream() that would lead the mess after you compeltely de-initialized entire thing

I agreed that what I'm doing is definitely not what is intended, and is probably a bad idea. I'd just like to make Mixer consistently safe regardless of how it's being used. The fact the code I wrote can work properly assuming dependencies are built a specific way or run on a specific operating system makes this undefined behavour.
I just want to be sure that if I made Mixer safer for all users, the change would not be rejected.

Another idea would introduce the internal tracking of all open music instances and immediately close them all once mixer got quit entirely (so, all external music pointers will became invalid and can be safely forgotten).

That sounds good to me! You have a fork of Mixer, would it be easy to merge that change with SDL-Mixer-X?

would it be easy to merge changes here with SDL-Mixer-X?

Not fully, at me there are some special features are targeted for my own purposes and some of them @sezero had rejected to be merged with mainstera Mixer because of worries. For example, my fork has the support for MP3 tags reading (it's able to return their values using Mix_GetXTag() calls), but mainstream Mixer doesn't have it: simple skip of them. I had implemented the parsing of tag data at me to retrieve values. Mainstream Mixer has only small code pieces to skip up these tags to avoid various decoding errors caused by attempts to decode tag data as MP3 stream.

Fair. Well, here's a very quick example that works when statically linked but crashes when linked dynamically.
Configure options for SDL2_mixer. This works fine:
../configure --enable-music-opus-shared --disable-http
make clean && make -j8 && make install

This causes a SEGFAULT on macOS:
../configure --disable-http
make clean && make -j8 && make install

/// Testing Mixer.
/// Mostly stolen wholesale from https://lazyfoo.net/tutorials/SDL/21_sound_effects_and_music/index.php

#include <SDL.h>
#include <SDL_mixer.h>
#include <stdio.h>
#include <unistd.h>

int main() {
	Mix_Music *music = NULL;

    if (SDL_Init(SDL_INIT_AUDIO) < 0)
    {
        printf("SDL could not initialize! SDL Error: %s\n", SDL_GetError());
        return -1;
    }

    if (Mix_OpenAudio(44100, MIX_DEFAULT_FORMAT, 2, 2048) < 0)
    {
        printf("SDL_mixer could not initialize! SDL_mixer Error: %s\n", Mix_GetError());
        return -2;
    }

    music = Mix_LoadMUS("../rust/game/Game-7700/game/Resources/Audio/Music/Infyuthsion - Fractals.opus");
    if (music == NULL)
    {
        printf("Failed to load beat music! SDL_mixer Error: %s\n", Mix_GetError());
        return -3;
    }

    Mix_PlayMusic(music, -1);

    sleep(5);

    // Now we purposely do very mean things to make Mixer's life difficult

    // This works fine:
    //    Mix_Quit();
    //    Mix_Quit();
    //    Mix_FreeMusic(music);

    Mix_Quit();
    Mix_FreeMusic(music);
    Mix_FreeMusic(music); // This line crashes

    SDL_Quit();
}

I guess we can close this as invalid?

I guess, yes, mainly because the reason for this crash is the missuse the library (it's required to free music and other open files BEFORE to close the library itself)

Closing as invalid.


Out of date for current version 1.4.2 of Seahorse

The master cannot be built because seahorse-executor-deeplang is not present on the repositories, and when using the 1.4.1 version, I get errors like
could not get type for name io.deepsense.deeplang.DOperation1To1 from any class loader

Thank you for submitting this bug report. We published 1.4.2 deeplang version to sonatype and seahorse-sdk-example master should build properly now.

Thank you for submitting this bug report. We published 1.4.2 deeplang version to sonatype and seahorse-sdk-example master should build properly now.


Zappa Update if Exists Deploy if not

I'm working on an Ansible Playbook to deploy to Zappa.  Currently I'm having to toggle between deploy and update depending on whether or not the zappa bucket exists or not.  Since Zappa will know best whether or not the application already exists, I think it would be good for it to contain a updateOrDeploy command so other don't need to make the same hack as myself.

zappa status --json should be machine readable for this purpose.

Thanks that is more helpful than checking the bucket.  I still suggest adding a create or update cmd/option at some point.  If your open to it Im happy to implement.

I would like this too... right now I have to insert my MFA for each zappa command I run.
If this is implemented everything is done in the same session.
Maybe some flag in the deployment command to trigger the update when the application is already deployed.

zappa update || zappa deploy
if you execute in that order it will only fail once on initial deployment, assuming most of the time you are updating ...

@glassresistor is @zaraken's suggestion enough?


QE: Implement Data Preview for State

Definition of Ready

[ ] Does this meet the INVEST criteria?
[ ] Does this have a clearly defined user?
[ ] Does this have an estimate?
[ ] Does this have acceptance criteria?
[ ] Does this have sufficient context (wireframes, business rules, etc.)?
[ ] Is this traceable to a feature, epic, or PI?

User Story
As a CAMPD custom data download user I want to preview filter criteria for state so that I can confirm that my dataset my contains my desired state(s)
Acceptance Criteria
Given a user has selected state filter criteria
When they select Preview Data
Then the filter criteria is reflected in the results
Context
Filter tags and functionality were completed in ticket Restructure Filter Components for Reusability Across All Data Types #1435
Data Preview
Trigger: A user has entered, at a minimum, the required parameters, and selected the option to preview data.
For each record that matches the criteria, the system will display in a tabular format:
Refer to CAMPD_DataLabels_AggregatedEmissions_5-10_2021
For each record that matches the criteria, the system will display in a tabular format in the following order and ordered by Facility > Unit > Year > Quarter
STATE
FACILITY_NAME
ORISPL_CODE
UNITID
ASSOC_STACKS
YEAR
QUARTER
SUM_OP_TIME
COUNT_OP_TIME
GLOAD
SLOAD
SO2_MASS
SO2_RATE
NOX_MASS
NOX_RATE
CO2_MASS
CO2_RATE
HEAT_INPUT
PRIMARY_FUEL_INFO
SECONDARY_FUEL_INFO
UNIT_TYPE_INFO
SO2_CONTROL_INFO
PART_CONTROL_INFO
NOX_CONTROL_INFO
HG_CONTROL_INFO
PRG_CODE_INFO
Testing
Test Case:
Tester:
Definition of Done

[ ] Have all Acceptance Criteria been agreed to and validated by the scrum team?
[ ] Has the code been unit tested and peer reviewed?
[ ] Have the functional tests been executed?
[ ] Have all defects been reviewed and dispositioned, resolved, or deferred?
[ ] Has the user story been accepted by the Product Owner?
[ ] Is the user story ready to be deployed to the test/staging environments?

Work will be completed in ticket QE: Filter Custom Data Download By Time Period and enable data preview #1163


[QUESTION] WebSocket & Redis PubSub

Before you submit this issue, you has been search all existed issues and search the documentation

[x] I've been search all existed issues
[x] I've been read all documentation

Describe your question
In WebSocket onOpen i create a Redis Client, subscribe some channels, and store the client in the WebSocketContext, so the user can subscribe/unsubscribe more channels in WebSocket onMessage.
On WebSocket onClose i thought the client will be released, but it's not. The problem is that the subscribed callbacks are still in place, causing the server tries to send messages to invalid FDs.
I thought about disconnect / destroy the Redis Client in the WebScoket onClose, but i can't find a clean way.
Can you point me on the rigth direction?
Thank you, as usual.

More informations:
The Redis Client is gotten from a pool with minConnections = 1 and maxConnections = 1.
In the WebSocket onOpen i store the client in the context (Hyperf\WebSocketServer\Context).
In the WebSocket onClose i look for it in the context (WebSocket onOpen) but can't find.

... My Fault. Subscribe blocks in onOpen event, so is never put in the context.
This way i can access the redis client in the onClose.
public function onOpen(WebSocketServer $server, Request $request): void {
        // Redis Pub Sub
        $container = ApplicationContext::getContainer();
        $redis = $container->get(RedisFactory::class)->get('pubsub');

        go(function() use ($redis, $server, $fd, $user) {
            $redis->subscribe(['chat'], function($redis, $channel, $message) use ($server, $fd, $user) {

                echo 'Message <', $message, '> from channel <', $channel, '>  sending to fd: ' . $fd . " - to user: " . $user->username, PHP_EOL;

                $response = ['channel' => 'chat', 'message' => $message, 'from' => $user->username];
                $server->push((int) $fd, gzcompress(json_encode($response), 9), SWOOLE_WEBSOCKET_OPCODE_BINARY);
                return true;
            });
        });

        Context::set('pubsub_client', $redis);
    }

But still can't detach subscribed channels
public function onClose(Server $server, int $fd, int $reactorId): void {

        if($redis = Context::get('pubsub_client', null, $fd)) {

            $redis->unsubscribe(['chat']);

            Context::destroy('pubsub_client');

        } else {
            echo "Trying to unsubscribe ... REDIS CLIENT NOT FOUND [$fd]!\n";
        }
    }

Let me explain this in twofold.
First, there is no need to establish a new Redis connection for every WebSocket client. It would be inefficient as well as impossible since Swoole forbids sharing TCP connection between coroutines. (That's why Hyperf manages the connection pool for users so users don't have to be aware of this.) You'd want to initiate a singleton Redis subscription on worker start, and then use Swoole channels to communicate with it in other coroutines.
Second, the PHPRedis client shipped with Hyperf is ok for normal uses,  but it has some drawbacks in async PubSub. For example, It blocks you when subscribing, therefore you cannot unsubscribe or interact with it unless the callback is triggered. I recommend you to take a look at mix/redis-subscribe. This package is a dedicated Redis subscription client,  and it is Swoole native.

Thank you @Reasno,
i understand that the limit is in the PHPRedis client which blocks after subscription. I'll surely take a look at mx/redis-subscribe but before i'd like to investigate zeroMq which is supported by swoole and it's better suited for this specific porpouse.

Thank you @Reasno,
i understand that the limit is in the PHPRedis client which blocks after subscription. I'll surely take a look at mx/redis-subscribe but before i'd like to investigate zeroMq which is supported by swoole and it's better suited for this specific porpouse.

Sure, feel free to post follow up questions.


Auto reload static web content served from fat jar

All static content has been moved into /resources/static folder.

Maven automatically packs everything in the /resources/ folder into the jar.

Spring boot automatically maps all files in the /static folder as static web root content

However, changing html/js while the server is running does no longer get hot swapped

grunt serve no longer shows the web site (probably also related to experimental ssl encryption)

Invald since we splitted up backend and webapp into separate projects. See #12


Bot takes around 3 minutes to log in

Summary
After running the script, bot.start takes 3 minutes to run
Reproduction Steps
Run any selfbot script
Code
from discord.ext import commands

bot = commands.Bot(command_prefix="\a")
bot.remove_command("help")

@bot.event
async def on_ready():
    print("Bot is ready")

bot.run("token")

### Expected Results

Bot prints ready in a few seconds

### Actual Results

Have to wait 3 minutes before anything actually happens

### System Information

- Python v3.10.5-final
- discord.py-self v1.9.2-final
- aiohttp v3.7.4.post0
- system info: Windows 10 10.0.19044

### Checklist

- [X] I have searched the open issues for duplicates.
- [X] I have shared the entire traceback.
- [X] I am using a user token (and it isn't visible in the code).

### Additional Information

_No response_

Pass guild_subscription_options=discord.GuildSubscriptionOptions.off() to your Client initialization, or optionally install the alpha.


Update User with PATCH: add and delete same email address depends on the order

When updating a user's email address in way that removes the email address and then adds it back again, the order of the respective statements matters. This is wrong regarding the SCIM 2.0 spec that states something like: first values that are marked for deletion have to be removed, and then new values should be added.
Steps to reproduce:

Create a new User with an email address

Create an UpdateUser and add and then delete the email address:
 Email email = user.getEmails().get(0);
 UpdateUser updateUser = new UpdateUser.Builder()
         .addEmail(email)
         .deleteEmail(email)
         .build();

Update the User

Expected result:
The User has not been changed.
Actual result:
The User's email address has been deleted
See also: osiam/connector4java-integration-tests#253

Original issue from Jira:

Scim says that always first all deletion should be done. After this all new attribtues will be added.
If we send
"emails": [
    { "value"<EMAIL_ADDRESS>"type": "work", "operation": "delete" },
    { "value"<EMAIL_ADDRESS>"type": "work" }
]

it works. But if we send
"emails": [
    { "value"<EMAIL_ADDRESS>"type": "work" },
    { "value"<EMAIL_ADDRESS>"type": "work", "operation": "delete" }
]

The email will be deleted in the db.

There's already an ignored test for this: https://github.com/osiam/connector4java-integration-tests/pull/253/files#diff-c758a0069eda26940e37b2a0ef9e62efR308

Close this issue because PATCH will be removed https://github.com/osiam/osiam/issues/21


chore: Update README.md after migration to the JS SDK monorepo

This replaces the previous (now stale) Readme content with a note that the project was moved to the JS SDK monorepo. Additionally, we're adding some links to the migration guide, the "new" readme and to the monorepo.
(Happy to bring back the old content if y'all think it should stay here but just FYI it's not up to date anymore after we introduced the breaking changes)

Generally I'd vote yes but should we maybe give it a few weeks in case anyone is still visiting this repo?

Agree w/ Lukas here!


Taking pilot survey

Here is my feedback. I hope it's useful. I really liked the survey and I'm looking forward to seeing the results.

Is there a way to change the answer format for the "Other" option as it's a bit annoying trying to add a long answer and only being able to see a few words of your sentence.
For your question "If you have any other positive comments about Open Science, please write them here." seemed redundant after the "Other" option in the question before it, so maybe you could get rid of "Other" and just have this question as this would solve point #1 above.
For your question "Please rate the importance of the following factors in choosing a journal for publication of your work" ...For your options of "it allows postprints"...what does this mean?
For your question "How many of these papers did you make Open Access? (write a number)" I was wondering if "were OA" would be better than "did you make OA"?
For your question "Focusing on your papers that are NOT Open Access, what are your reasons for not making them Open Access? (select all that apply) "...should the option that says "I could publish it as a postprint"...should that say "preprint"?

Good luck with the project!! :)

Thank you so much @SamanthaHindle!


network drivers create directly TxToken / RxToken for smoltcp

For this purpose, it was necessary to avoid the creation of dynamic objects of the driver. This means that during compilation it must be defined which network interface is used. If the feature rtl8139 is activated, the driver for Realtek 8139 will be used. Otherwise the Virtio network interface will be used.

Ah, makes sense. Still, without this PR, we can reach 191.4 MiB/s, and with it we can only reach 77.1 MiB/s.


[Bug]: JdbcIO.readRows() incompatible with AvroUtils for DECIMAL\NUMERIC(10,2)

What happened?

use JdbcIO.readRows() for table with DECIMAL(10,2)
it reads BigDecimals fine but Schema has just DECIMAL type without scale
then, when I attempt to serialise these rows into Avro, I got
AvroTypeException("Cannot encode decimal with scale 2 as scale 0 without rounding") from org.apache.avro.Conversions.DecimalConversion.validate()

mailing list https://lists.apache.org/thread/qxwron01myf5fzrb3d8tsh71grt5cpzk
PR fixes #27333
Issue Priority
Priority: 3 (minor)
Issue Components

[ ] Component: Python SDK
[X] Component: Java SDK
[ ] Component: Go SDK
[ ] Component: Typescript SDK
[ ] Component: IO connector
[ ] Component: Beam examples
[ ] Component: Beam playground
[ ] Component: Beam katas
[ ] Component: Website
[ ] Component: Spark Runner
[ ] Component: Flink Runner
[ ] Component: Samza Runner
[ ] Component: Twister2 Runner
[ ] Component: Hazelcast Jet Runner
[ ] Component: Google Cloud Dataflow Runner

Could you provide an example of pipeline (code snippet) that reproduces this issue?


Just updated the readme file

I'd suggest adding tags

I will be closing this pull request as well. Have a nice day!


Dead links.

Some links were dead.

http://doc.babylonjs.com/tutorials/01._Advanced_Texturing
http://doc.babylonjs.com/tutorials/18._Using_parallax_mapping

Thanks!


Wrong result for word more'n in Word Tokenizer and PTB Tokenizer

Let sentence: It's more'n enough
If I'm not mistaken, the PTB Tokenizer should result something like this:
["It", "'s", "more", "'n", "enough"]
But, it's not. It returns:
["It", "'s", "more", "'", "n", "enough"]
Since Word Tokenizer trying to implement PTB contraction, the result should be like that, right?
PS: Word Tokenizer contraction is mor'n, while original PTB contraction is more'n. Need clarification.

@nmfzone
Your PS seems correct. Both the implemented Treebank and Word Tokenizer implemented for NLTK seem to use the following contractions:
https://github.com/nltk/nltk/blob/5023d6b933ef1a5b1f25fba1d5ed11a8a43a47e4/nltk/tokenize/destructive.py#L13-L29
which, on line 25, has mor'n as a contraction, splitting mor and 'n.
These regular expressions seem to be from http://www.cis.upenn.edu/~treebank/tokenizer.sed, as can be seen in this comment in treebank.py:
https://github.com/nltk/nltk/blob/5023d6b933ef1a5b1f25fba1d5ed11a8a43a47e4/nltk/tokenize/treebank.py#L14-L16
This link seems to be faulty. Likely due to a redesign of the website. However, I did manage to track down the actual files using the website's search functions. Two of the links I found are (Note, they are FTP downloads):
ftp://ftp.cis.upenn.edu/pub/treebank/public_html/tokenization.html
ftp://ftp.cis.upenn.edu/pub/treebank/public_html/tokenizer.sed
I scrolled through the tokenizer.sed, and the relevant sections seems to be this:
s= \([Cc]\)annot = \1an not =g
s= \([Dd]\)'ye = \1' ye =g
s= \([Gg]\)imme = \1im me =g
s= \([Gg]\)onna = \1on na =g
s= \([Gg]\)otta = \1ot ta =g
s= \([Ll]\)emme = \1em me =g
s= \([Mm]\)ore'n = \1ore 'n =g
s= '\([Tt]\)is = '\1 is =g
s= '\([Tt]\)was = '\1 was =g
s= \([Ww]\)anna = \1an na =g
# s= \([Ww]\)haddya = \1ha dd ya =g
# s= \([Ww]\)hatcha = \1ha t cha =g

The uncommented lines seem to be like CONTRACTIONS4 in MacIntyreContractions, while the it and was options seem to match CONTRACTIONS3. All the other lines match CONTRACTIONS2. However, here we can indeed see that MacIntyre wrote the following:
s= \([Mm]\)ore'n = \1ore 'n =g

Which seems to mean that Line 25 in the MacIntyreContractions should indeed be
r"(?i)\b(more)(?#X)('n)\b",
            ^

instead of
r"(?i)\b(mor)(?#X)('n)\b",

(Note, the ^ is to indicate the changes between the two.)

Thanks @nmfzone


Wait for Callback

I am using this library for communicating with my NodeJS Service which is running on an static ip address and has socket.io integrated. After I add reference to this library in my C# project , I am using the following lines of code to Emit an event with a data object
            socket.Emit(eventName, new AckImpl((result, n) =>
            {
                callback(result);
            }), new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(data));

However I would like to wait for the callback before the execution moves ahead. Currently I am able to call socket.Emit but then the execution context moves to further lines of code, however I would like to wait for the callback.
Is there any way to wait for the callback?

stackoverflow.com is a far better place to ask this question.


3.4.2 reports as 3.4.1

Describe the bug
Version 3.4.2 of sshnp/sshnpd when run report as being 3.4.1
Steps to reproduce

download 3.4.2 and run

Expected behavior
report the correct version umber
Screenshots
No response
Smartphones
Linux Arm64
Were you using an atApplication when the bug was found?
No response
Additional context
No response

I updated the version # and retagged... I'm doing a rebuild of v3.4.2

Thank you

Rebuild has been uploaded, the only change to the code was the version string, and the version in pubspec.yaml (which has no impact on the code)

I've also created #413 to avoid this kind of issue from happening in the future


Exception when using the confidence metric

Hi by adding:
nlp.add_pipe('dbpedia_spotlight', config={'process': 'candidates', 'confidence': 0.75})
the following exception is generated:
Traceback (most recent call last):
  File "C:\Users\Admin\Documents\codePython\dbpedia\main.py", line 14, in <module>
    doc = nlp(text)
  File "C:\Users\Admin\miniconda3\envs\projet1\lib\site-packages\spacy\language.py", line 1022, in
__call__
    error_handler(name, proc, [doc], e)
  File "C:\Users\Admin\miniconda3\envs\projet1\lib\site-packages\spacy\util.py", line 1617, in raise_error
    raise e
  File "C:\Users\Admin\miniconda3\envs\projet1\lib\site-packages\spacy\language.py", line 1017, in
__call__
    doc = proc(doc, **component_cfg.get(name, {}))  # type: ignore[call-arg]
  File "C:\Users\Admin\miniconda3\envs\projet1\lib\site-packages\spacy_dbpedia_spotlight\entity_linker.py", line 138, in __call__
    start_ch = int(ent['@offset'])
TypeError: string indices must be integers

Any suggestion why I get such an exception please?
Thanks

Hi @ali3assi,
Thank you for reporting the issue.
It was a problem of the candidates endpoint that:

when a single candidate exists, it is inside a dict
when multiple candidates exist, they are in a list

Version 0.2.2 of the package fixes it. Let me know if you have any problems.
Martino


rail_user_queue_manager: 0.0.1-0 in 'jade/distribution.yaml' [bloom]

Increasing version of package(s) in repository rail_user_queue_manager to 0.0.1-0:

upstream repository: https://github.com/WPI-RAIL/rail_user_queue_manager.git
release repository: https://github.com/wpi-rail-release/rail_user_queue_manager-release.git
distro file: jade/distribution.yaml
bloom version: 0.5.20
previous version for package: null

rail_user_queue_manager
* Update rail_user_queue_manager.cpp
* updated readme with new name
* renamed to make it sound less generic
* 0.0.1
* changelog updated
* cleanup so it will compile
* Merge pull request #1 from PeterMitrano/develop
  moved to queue_manager
* updated to matched repo name, and added info in the readme
* moved to queue_manager
* Initial commit
* Contributors: Russell Toris, peter mitrano, petermitrano

to address https://github.com/ros/rosdistro/pull/8384


Remove old way of constructing LocalProject

Only do once https://github.com/packit/packit-service/issues/1955 is resolved.
The _parse_* and refresh methods can be completely dropped from LocalProject. Ideally, LocalProject should be converted to a dataclass if possible.

Still relevant.


endpoint: Add DebugPolicy option

Add endpoint DebugPolicy option that, if enabled, logs endpoint policy
map update details to /var/run/cilium/state//policy.log.
The new DebugPolicy option is enabled if the global debug option is
enabled, but can be enabled also independently via:
cilium endpoint config  DebugPolicy=true
Signed-off-by: Martynas Pumputis<EMAIL_ADDRESS>Signed-off-by: Jarno Rajahalme<EMAIL_ADDRESS>

test-backport-1.7

test-backport-1.7

test-backport-1.7

test-backport-1.7

K8s CI job failed (maybe a flake?):
[2020-11-19T06:51:51.217Z] K8sDatapathConfig
[2020-11-19T06:51:51.217Z] /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:395
[2020-11-19T06:51:51.217Z]   Transparent encryption DirectRouting
[2020-11-19T06:51:51.217Z]   /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:395
[2020-11-19T06:51:51.217Z]     Check connectivity with transparent encryption and direct routing
[2020-11-19T06:51:51.217Z]     /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:430
[2020-11-19T06:51:51.217Z] ------------------------------
[2020-11-19T06:51:51.217Z] K8sDatapathConfig IPv4Only
[2020-11-19T06:51:51.217Z]   Check connectivity with IPv6 disabled
[2020-11-19T06:51:51.217Z]   /home/jenkins/workspace/Cilium-PR-Ginkgo-Tests-K8s/1.13-gopath/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:430
[2020-11-19T06:51:51.217Z] STEP: Installing Cilium
[2020-11-19T06:52:03.555Z] STEP: Installing DNS Deployment
[2020-11-19T06:52:25.817Z] === Test Finished at 2020-11-19T06:52:23Z====
[2020-11-19T06:52:27.276Z] ===================== TEST FAILED =====================
[2020-11-19T06:52:27.276Z] cmd: kubectl get pods -o wide --all-namespaces
[2020-11-19T06:52:27.276Z] Exitcode: 1
[2020-11-19T06:52:27.276Z] Stdout:
[2020-11-19T06:52:27.276Z]
[2020-11-19T06:52:27.276Z] Stderr:

test-missed-k8s

test-backport-1.7

CI provisioning timed out.

test-backport-1.7

It looks like we are partially hit by registry rate limiting again:
	 default       test-k8s2-6c77dcf7dd-8zzfg         1/2     ImagePullBackOff   0          4m1s    <IP_ADDRESS>      k8s2   <none>           <none>

retest-k8s

test-k8s

test-backport-1.7

test-backport-1.7

Hit VM provisioning failure on net-next VM: https://jenkins.cilium.io/job/Cilium-PR-Ginkgo-Tests-Validated/20011/

test-backport-1.7

Master version (#14112) added clarified locking requirement comments, but IMO there is no need to bring them here.


Corner bopping of 3 or 4 pixels moves the player at least a pixel too far

May be a result of movement speed being > 1.0

Ideally, entities should only bop at most SIZE pixels, as well.


Fix Git.get_date to work also for annotated tags

git show for these prints pgp signature etc before the formatted display.
For example, see git show v0.15.1 --quiet --format=%ct in scipy repository.

Test failure seems unrelated.

Seems fine.  Just needs a rebase and retest with Travis and I'm happy to merge.

Rebased

Changes Unknown when pulling 34dfed2396a953c83856460bef189ae3a184e4e0 on pv:git-anntag-fix into ** on spacetelescope:master**.


feat: Support integer and byte slice value for SetNetwork()

With these changes, we can launch an Access Point by using wpa_supplicant.
conn.SetNetwork(0, "ssid", "test-access-point") // hex encoded ssid is not tested, hope someone can improve it.
conn.SetNetwork(0, "key_mgmt", "WPA-PSK")
conn.SetNetwork(0, "psk", "12345678")
conn.SetNetwork(0, "mode", 2) // we have to set mode to 2 without double quotes, so we need support integer value.
conn.SetNetwork(0, "frequency", 2414)
conn.EnableNetwork(0)

Because there are break changes, maybe we could provide another function like SetNetworkV2() for better compatibility.


Fix infinite recursion loop with kube login

Problem
As raised in #37 and in rancher-sandbox/rancher-desktop#1308, When using kubelogin or any other credentials benefiting from kubectl plugins, an infinite recursion loop happens.
kuberlr is designed to be a built-in replacement for kubectl and hence replaces the kubectl command in the PATH.
Using kubectl exec plugin configured as below,
the Kubernetes version client will systematically
execute kubectl to obtain credentials to the cluster.
This will result calling kuberlr which will try to get the version again.
  - name: schip-oidc
    user:
      exec:
        apiVersion: client.authentication.k8s.io/v1beta1
        args:
          - oidc-login
          - get-token
          - --oidc-issuer-url=https://auth.example.com
          - --oidc-client-id=kubelogin
        command: kubectl

To prevent this infinite loop, mark the execution of KubectlVersionToUse in an environment variable.
This way, when kuberlr is executed again to authenticate to Kubernetes so it can retrieve the Kubernetes version, it will systematically use the latest stable Kubectl version and avoid the infinite recursion loop.
fixes: #37
fixes: rancher-sandbox/rancher-desktop#1308

@tjamet thanks for the fix! I've done a small refactor, can you double test it please? I don't have a suitable environment

@tjamet thanks for the fix! I've done a small refactor, can you double test it please? I don't have a suitable environment

I just tested and it worked for me.
I have also added some unit tests to ensure it keeps working over time

@tjamet I’m currently on vacation. I’ll look into that next week

Thanks for having added the unit tests. There's a risk of the two tests influencing each other when the tests are run in parallel, but this is not going to happen since we don't have parallelism enabled.
Before going on vacation I was looking into the unit tests of the project and I realized I could do some cleanups.
I'm going to merge this PR, do the cleanups in the next days and then tag a new release.
Thanks again for this fix!


Fixes for cvmfs stratum1 install

Improve discussion on log space and fix http_port 8080 squid config, in response to problems seen on the Swinburne stratum 1.

The CI check failure was due to a problem with the cert on https://osgconnect.net (which I reported via slack), not related.


more complex visit_Call to parse chained command

resolves #5646

Description
Added more node traversing method to handle new test cases added in the unittest

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR
[x] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[ ] I have run changie new to create a changelog entry

Did some rough benchmark on performance implication.
For the the previous case in unittest, visiting the tree 10000 times, time with previous method takes 0.34s, new method takes 0.34s, as there's no additional visit needed.
For the test case in unittest, visiting the tree 10000 times, time with previous method takes 0.34s, new method takes 0.71s.
With the whole content in run.py, visiting 10000 times takes 7.65s for original method, takes 8.23s for new method.
Conclusion
The new method will slow things down but don't seems to cause performance concern.

Another thought for this is that there are tools that can convert regex to a language parser I think @jtcohen6 (the book we are reading mentioned it). Maybe at some point we can look into switch if performance/complex rules become a issue


Creating tasks with comments and files

Hi, I am wondering if it is possible to create task with comments and files at same time. I tried to create task at first but I couldn't find created task id to create comment with that data.
Below code didn't work also:
    return await nozbeClient.createRaw("Nowe zlecenie", "projectId", {
      extra: {
        comments: [
          {
            type: "markdown",
            body: "***Nowe zlecenie***"
          }
        ]
      }
    });

Ok, I get id of created task from response.
const createdTaskId = JSON.parse(res.config.data).tasks.created[0].id;


Way to prevent Firefox from throwing 'This Connection is Untrusted' page.

Hello, I was wondering if there was a way to prevent firefox from throwing the 'This Connection is Untrusted' page. I noticed it works perfectly fine within Chrome. But the moment you open Firefox and try to browse an https website, it throws that page saying 'This Connection is Untrusted'. Is there any way to prevent Firefox from doing this?

Was trying to assign Question label, couldn't find a way.

This is because Firefox don't respect windows certificate store. It have its own certificate management system. So HTTPS connections won't work, unless you import the Root Certificate used by the proxy to Firefox as a trusted root certificate.

See this link on details how this is done for another proxy. Same concept applies here

Thank you so much! I'm going to find a way (if possible) to do this programically, my users aren't going to want to go through all these steps. Do you know of a way in-case I can't find any?

I am not aware of any way to do it directly from .Net. You may find this answer in SO interesting.

As of version 49, Firefox can be experimentally configured to automatically search for and import CAs that have been added to the Windows certificate store by a user or administrator. To do so, set the preference "security.enterprise_roots.enabled" to true.

Even though I set security.enterprise_roots.enabled to true it still complains about untrusted connection. It works with Fiddler 4 without importing its certificate. I created issue #180.

Have we found any solution how to overcome this bug. any suggestion will be appreciated on how we set Firefox to use from windows certificate store and work normally.


Connect BUILD_TOOLS option to build system

The BUILD_TOOLS flag existed, but was never connected into the build
system, so it didn't do anything. Using it to determine whether or not
to dig down into the Sources/Tools directory.

@swift-ci please test

Ok, thanks!

Any updates on this @parkera


Configuration revamp (multiple apps support)

tl;dr we'd like to allow for a more flexible configuration. We're considering something like this - which motivations will be explained below (todo):
{
  "detox": {
    "devices": {
      "iphone.sim": {
        "type": "ios.simulator",
        "name": "iPhone 11"
      },
      "ipad.sim": {
        "type": "ios.simulator",
        "name": "iPad Pro"
      },
      "android.emu": {
        "type": "android.emulator",
        "name": "Pixel_API_28"
      },
      "android.tablet": {
        "type": "android.emulator",
        "name": "Pixel_C_API_29"
      }
    },
    "applications": {
      "app1.release": {
        "android": {
          "binaryPath": "build/e2e.android/devRelease/app1/App.apk",
          "testBinaryPath": "./android/app/build/outputs/apk/androidTest/development/debug/app-development-debug-androidTest.apk",
          "build": "cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=debug ; cd -"
        },
        "ios": {
          "binaryPath": "build/e2e.ios/devRelease/app1/App.app",
          "build": "xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build"
        }
      },
      "app1.debug": {
        "android": {
          "binaryPath": "build/e2e.android/debug/app1/WixOneApp.apk",
          "testBinaryPath": "./android/app/build/outputs/apk/androidTest/development/debug/app-development-debug-androidTest.apk",
          "build": "cd android ; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug ; cd -"
        },
        "ios": {
          "binaryPath": "build/e2e.ios/debug/app1/App.app",
          "build": "xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build"
        }
      },
      "app2.release": {
        "android": {
          "binaryPath": "build/e2e.android/devRelease/app2/App.apk",
          "testBinaryPath": "./android/app/build/outputs/apk/androidTest/development/debug/app-development-debug-androidTest.apk",
          "build": "cd android ; ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=debug ; cd -"
        },
        "ios": {
          "binaryPath": "build/e2e.ios/devRelease/app2/App.app",
          "build": "xcodebuild -project ios/example.xcodeproj -UseNewBuildSystem=NO -scheme example -configuration Release -sdk iphonesimulator -derivedDataPath ios/build"
        }
      }
    },
    "configurations": {
      "android.emu.release": {
        "device": "android.emu",
        "applications": {
          "app1": "app.release",
          "app2": "app2.release"
        }
      },
      "android.tablet.release": {
        "device": "android.tablet",
        "applications": {
          "app1": "app.release",
          "app2": "app2.release"
        }
      }
    }
  }
}

namely, have devices and application variants preliminarily defined as standalone entities, and then have the concrete configurations finalized through a simple mix-and-match lego game.

The reasons for this change are:

In a sense, this approach is more intuitive, and reduces the need for users to repeat themselves in their composed configuration.
We've been requested to make the concept of an "application" an entity managed and understood by Detox. In particular, it would eventually allow for a more flexible version of device.installApp() -- that accepts an app name as an argument (i.e. device.installApp('app1')). With that, we would effectively allow for the installation of different apps in different test suites (note: still not more than 1 app per suite...)

Important: Must be backwards compatible, at least until the next breaking release.
What would a straightforward configuration look like?
Even with just a single app, it's likely to have - in the very least, different configurations for release / debug / staging, etc. So I think this holds as-is.
What would an external device look like?
Under this schema, this is just another devices in the devices list -- with a path instead of a type.
What would a manual configuration look like?
@noomorph wdyt? ios.none and ios.manual

todo: see if this fits https://docs.google.com/document/d/1z2ENgzqNRHxxUfh81Illhf9Thjjgt3tGurPFg77bmtg/edit?usp=sharing

The build command should be extended to support building all apps of a config/target, or specific apps.
detox build --configuration android.emu.release should build both app.release and app2.release, while a detox build --app app1.release should only build app1.release.
applications should probably be shortened to apps, to keep with the terminology used elsewhere in the project.

The build command should be extended to support building all apps of a config/target, or specific apps.
detox build --configuration android.emu.release should build both app.release and app2.release, while a detox build --app app1.release should only build app1.release.
applications should probably be shortened to apps, to keep with the terminology used elsewhere in the project.

@LeoNatan good point, noted!

@LeoNatan good point, noted!

Multiple app support is far off that a “phase 2” is a very vague concept. There are at least two major iterations of large rewrites that need to happen (API rewrite, XCUITest), I don’t see why this small feature cannot be squeezed in there.

Multiple app support is far off that a “phase 2” is a very vague concept. There are at least two major iterations of large rewrites that need to happen (API rewrite, XCUITest), I don’t see why this small feature cannot be squeezed in there.

Multiple "concurrent" apps != multiple apps config
By phase 2, I was only referring to the build --apps construct.
Multiple apps is a different matter. This config is more urgently required so as to allow for an easy API to test different apps in different tests.

Multiple "concurrent" apps != multiple apps config
By phase 2, I was only referring to the build --apps construct.
Multiple apps is a different matter. This config is more urgently required so as to allow for an easy API to test different apps in different tests.

Implementing that before XCUITest on iOS doesn't make sense, it would require rewriting the app management stuff, just to throw that away when XCUITest is implemented and that starts taking care of app launch.

Implementing that before XCUITest on iOS doesn't make sense, it would require rewriting the app management stuff, just to throw that away when XCUITest is implemented and that starts taking care of app launch.

implementing multiple apps config for different tests requires XCUITest? Let's take it "offline"

implementing multiple apps config for different tests requires XCUITest? Let's take it "offline"

We can discuss here.
It depends on the implementation. Currently, app process management on iOS is handled by JS, including launch, termination, background, foreground tracking etc. This will all move to the XCUITest tester process once implemented. So I think any change in that area is a wasted effort.

We can discuss here.
It depends on the implementation. Currently, app process management on iOS is handled by JS, including launch, termination, background, foreground tracking etc. This will all move to the XCUITest tester process once implemented. So I think any change in that area is a wasted effort.

Well, XCUITest changes will not bring changes to JS+Android integration directly anyway, so we cannot know in advance how this is going to look like.

Well, XCUITest changes will not bring changes to JS+Android integration directly anyway, so we cannot know in advance how this is going to look like.

It will have far-reaching changes, because iOS will require extensive modifications. I think it's better to wait. Why is this urgent anyway? In the meantime, people can just create different configs.

It will have far-reaching changes, because iOS will require extensive modifications. I think it's better to wait. Why is this urgent anyway? In the meantime, people can just create different configs.

@LeoNatan 'not sure I follow. ATM we can already provide explicit app-paths to device.launchApp(). This is more of a convenience just for aliasing the app's name to its binaries. I expect very little JS-side changes... The driver level shouldn't be affected AFAIU.

@LeoNatan 'not sure I follow. ATM we can already provide explicit app-paths to device.launchApp(). This is more of a convenience just for aliasing the app's name to its binaries. I expect very little JS-side changes... The driver level shouldn't be affected AFAIU.

cc @kochavi-daniel

cc @kochavi-daniel

Was this not implemented? @noomorph

It is near the merge phase - finishing the docs...

Resolved through #2587


Footer drop shadow

Please add a drop shadow to the footer
.rectangle {
height: 403px;
width: 1440px;
background-color: #FFFFFF;
box-shadow: 0 -3px 3px 0 rgba(0,0,0,0.22);
}

I can't really notice the shadow but it has been updated. Please advise.

I still can't really see the shadow with the InVision values or the Tailwind shadow-md. I did add a gold border at the top which I saw in the design. Let me know if you want further updates.

@alexfinnarn not sure where you saw a gold border may have been an invision artifact.
I can't see why the shadow isn't working either... I don't see one on the header either and I'm guessing its related. I see it in the code but it doesn't show up. Not sure what the issue is. Do you think it's a tailwind problem?
The footer is now linked to the credits issue #469

I'm also seeing the same shadow issue with the story cards... nav bar buttons.

@duquennoisa The conflicting/missing button shadows were a mistake I made with duplicate class names on those elements.
I now see shadows for all the elements you mentioned, except if the homepage story cards are supposed to have a shadow. It might not look like anything is there, but I definitely notice it when I remove the shadow via browser dev tools. Like I mentioned in #469, I don't mess around with the box-shadow values and instead, I've always used defaults.
I think all the Tailwind shadows are directed downward and so it would be hard to see that on the footer unless there was an element below it. I know it's possible to "reverse" the shadow and direct it upwards, but you'd have to really get into the values to direct the shadow in any particular direction...there's also gradients that can look like an "inner shadow" and you can certainly combine a lot of techniques to emulate shadows and embossing styles.
However, I'm just going to put in there what people/Tailwind gives me and call it a day. Let me know if you have any specific values to add. Right now the scale is as follows:
    boxShadow: {
      sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
      DEFAULT: '0 2px 4px 0 rgba(0,0,0,0.5)',
      bottom: '0 4px 4px -4px rgba(0,0,0,0.5)',
      liddle: '0 2px 6px 0 rgba(0,0,0,0.5)',
      md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
      lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
      xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
      inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)',
      none: 'none',
      footer: '0 -3px 3px 0 rgba(0,0,0,0.22)',
    },

fixed with #469


Torch written in lua

I need to run a Torch lua script from c++ which uses packages like torch, nn, dpnn, image and socket.
Will this interface be equally helpful for such lua script?

I have never done that before, so you may have to import the way you have always done it