JmeTests should specify native bullet, not jBullet

In the 3.1.0-stable-FINAL version of the SDK, new JmeTests projects are created with the jbullet library in the library properties. However, the physics tests don't work with jbullet any more. To run physics tests, it's necessary to add the bullet and bullet-native libraries and remove the jbullet library.
In lieu of fixing jbullet, perhaps the SDK should specify native bullet for these projects.
Recent discussion at the Forum:
https://hub.jmonkeyengine.org/t/none-of-the-physics-demos-will-run/38197
https://hub.jmonkeyengine.org/t/jmonkeyengine-3-1-0-how-do-i-download-the-massive-sdk/38183/12

I don't think the issue is that they don't work with jbullet anymore, they should definitely work with it. The issue is the missing jbullet.jar which is not on maven (its our adapted version).

But the JmeTests project uses Ant, not Maven, and there's a jbullet library installed with the SDK. So I don't think that's the issue. Here's the output:
ant -f "S:\Git\jME 3.1\JmeTests" -Dnb.internal.action.name=run run
init:
deps-jar:
Created dir: S:\Git\jME 3.1\JmeTests\build
Updating property file: S:\Git\jME 3.1\JmeTests\build\built-jar.properties
Created dir: S:\Git\jME 3.1\JmeTests\build\classes
Created dir: S:\Git\jME 3.1\JmeTests\build\empty
Created dir: S:\Git\jME 3.1\JmeTests\build\generated-sources\ap-source-output
Compiling 258 source files to S:\Git\jME 3.1\JmeTests\build\classes
warning: [options] bootstrap class path not set in conjunction with -source 1.7
S:\Git\jME 3.1\JmeTests\src\jme3test\bullet\PhysicsHoverControl.java:187: error: cannot access MotionState
getMotionState().applyTransform(spatial);
class file for com.bulletphysics.linearmath.MotionState not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
1 warning
S:\Git\jME 3.1\JmeTests\nbproject\build-impl.xml:521: The following error occurred while executing this line:
S:\Git\jME 3.1\JmeTests\nbproject\build-impl.xml:219: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 5 seconds)

Yes it is the issue. It cannot find a class from com.bulletphysics, which is in jbullet.jar. Try adding the jars from here: https://github.com/jMonkeyEngine/jmonkeyengine/tree/3.0/engine/lib/jbullet
It doesn't matter if the project uses ANT, maven or gradle, if the jar isn't there it doesn't work. Maven in this context doesn't mean "maven the build system", it means "maven the centralized java library repository", which is where the SDK build pulls its engine jar files from afaik.

Compiling 258 source files to S:\Git\jME 3.1\JmeTests\build\classes
error: error reading C:\Users\Stephen\Downloads\asm-all-3.1.jar; error in opening zip file
error: error reading C:\Users\Stephen\Downloads\jbullet.jar; error in opening zip file
error: error reading C:\Users\Stephen\Downloads\stack-alloc.jar; error in opening zip file
error: error reading C:\Users\Stephen\Downloads\vecmath.jar; error in opening zip file
warning: [options] bootstrap class path not set in conjunction with -source 1.7
4 errors
1 warning
S:\Git\jME 3.1\JmeTests\nbproject\build-impl.xml:521: The following error occurred while executing this line:
S:\Git\jME 3.1\JmeTests\nbproject\build-impl.xml:219: Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)

When I downloaded the four JARs using the "download" button for each one (instead of "Save link as..." in my browser) I got valid JARs of the correct size, but the build still failed, this time not finding package com.jme3.bullet. Adding the "jme3-bullet" library cleared that up. In fact, with "jme3-bullet" library included, JmeTests seems to build and run just fine, even without the downloaded JARs. So I think the problem is that JmeTests project is missing the "jme3-bullet" library.

Correction: it builds fine, and the test chooser comes up, but when I try to run a test from the chooser I get:
Mar 18, 2017 11:08:08 AM jme3test.TestChooser$2 run
SEVERE: main() method had exception: jme3test.animation.TestMotionPath
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at jme3test.TestChooser$2.run(TestChooser.java:270)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsatisfiedLinkError: The required native library 'bulletjme' was not found in the classpath via 'native/windows/x86_64/bulletjme.dll'. Error message: no bulletjme in java.library.path
at com.jme3.system.NativeLibraryLoader.loadNativeLibrary(NativeLibraryLoader.java:596)
at com.jme3.system.JmeDesktopSystem.initialize(JmeDesktopSystem.java:348)
at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:271)
at com.jme3.system.JmeSystem.newContext(JmeSystem.java:162)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:461)
at com.jme3.app.LegacyApplication.start(LegacyApplication.java:424)
at com.jme3.app.SimpleApplication.start(SimpleApplication.java:125)
... 6 more

I took jme3-bullet out. With the 4 JARs + jme3-jbullet, I'm able to run tests.

In fact, I don't need all 4 JARs. Just adding jbullet.jar seems to be sufficient.

Creating a JmeTests project is, I imagine, one of the first things a new user is likely to do after installing the SDK. Having it fail out of the box (for two unrelated reasons!) gives a bad impression.
I believe the removal of jbullet.jar from the jme3-jbullet library was intentional and is unlikely to be reversed anytime soon. So, given that this breaks JmeTests, is it unreasonable to expect the SDK to either (a) use native bullet for JmeTests or (b) supply a jbullet.jar for building JmeTests?

The jbullet.jar is probably missing because of what I said, so its not really intentional. I don't know why you question the reasonability of your issue though. Nobody closed it, nobody spoke against it. Do you personally have any problems with it?

According to jayfella, jbullet.jar does not belong to jmonkey, so we aren't allowed to re-distribute it. pspeed said that isn't 100% correct, but that it would be "bad form" to re-distribute it. I assume one of these is the reason it's omitted from the 3.1 jme-jbullet library.
I don't question the reasonableness of my own expectations. I'm trying to motivate a fix, for the sake of new users and the success of the project. So far, I haven't get the sense that anyone on the team cares much about this issue.

Well since I left the SDK is basically maintained by one contributor and kind of officially separated from the engine so having an issue not worked on for 3 days or some weeks should be met with understanding.

Exactly, I was busy this weekend thus I did not reply.
We already have jbullet.jar in libs/ folder on this repo.
The issue is: jbullet is our fork of the original jbullet but without a published source. Paul's opinion is that you may not distribute jar's without source code. If jbullet is released under any GPL variant it's definitely required actually. Nevertheless since the engine already has that jbullet.jar in the repository, I added it to the sdk. It is only not available as a proper dependency (but I think jme3-jbullet isn't at all?)
Yes we encourage to move to native bullet and wonder if it hasn't been done yet. if it isn't done, it certainly is for new projects (BasicGameTemplate) however jbullet.jar should be added to jme3-jbullet until we phase it out. The thing is I don't know how those libraries are built, it's some gradle magic, might take some time to understand^^

I published "our" version here: https://github.com/normen/jbullet
Its got a ZLIB license btw, shouldn't be an issue.
As for native bullet - I never really finished it completely. Some contributors added almost all missing stuff I guess but I never had the chance to look over those. Some of the contributed stuff is implemented a bit... creatively :) It seems to work fine mostly afaics though.

Sorry to hear the project is so shorthanded. If I got a false impression of the "team," it was probably from normen's comments, not mefisto94's silence.

Personally, I think since we are openly encouraging folks to move to native
bullet it would be nice if the tests also used native bullet.
On Mon, Mar 20, 2017 at 4:44 PM, Stephen Gold<EMAIL_ADDRESS>wrote:

Sorry to hear the project is so shorthanded. If I got a false impression
of the "team," it was probably from normen's comments, not mefisto94's
silence.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jMonkeyEngine/sdk/issues/119#issuecomment-287891968,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGrfnjNT1FCXZhYxFbdo1lOK5-_36ZeWks5rnuVFgaJpZM4Mf63v
.

Well the regular tests now have a working native bullet and for android I think it used to be native bullet way before due to performance.
That is no excuse to have a broken jBullet setup though.
Technically we could now even release jme3-jbullet, given normens upload, however that is up to you engine guys.
@stephengold No problem. I think jme as a whole suffers a bit from the members being busy and the team being rather small. On the other hand better late then never^^

@stephengold Sorry if my comments gave any kind of "impression". I was solely trying to convey facts that might help you understand the issue.


[choreo] Upgrade to Tauri v2

Fixes #453.

The app has the following issues on my Linux machine:

keyboard shortcuts don't work until the window is in focus (and sometimes not even then)
the file open dialog crashes if I press Escape

Issue 1 is happening for me with 2024.2.2 as well, so it's probably not Tauri v2 causing it. If someone confirms neither of these issues occurs on Windows, I'm OK with merging this PR.

Issue 1 was reproduced on Windows but not issue 2.

I reproduced it locally on Arch. I had to generate the trajectory a few times, then it froze right when it finished generating.

Keybinds dont work on my ubuntu 24.04 system but everything else seems to work

Yea, I've had mixed results with the keybinds on Arch too. I've also heard the Windows version crashes randomly. I just updated the PR to Tauri v2's official release, so we'll see if that changes anything.

If we get the app running properly in Tauri v2 would we ship that for 2025? I'm personally in favor of doing so along as we properly stress test it.

I'd say the cutoff is late November, when teams usually stop beta testing stuff.

In addition to the flaky keyboard shortcuts, the app also doesn't exit after clicking the window close button. The window closes, but the app continues to run.

Turns out the exit lag was from my system writing a coredump file (it doesn't have anything helpful in it, btw). The actual behavior is the app crashing immediately on exit.

Minimum reproducible example for crash on exit
choreo-tauri-v2-crash.zip

Run run.sh
Click either button of the dialog that opens to close it
Click the main window close button
The app will crash on exit

Any use of a dialog from TypeScript will cause the application to crash on exit. If one isn't opened, the app does not crash.
Fixes for crash on exit
The plumbing may be worse, but we could try opening dialogs from Rust instead: https://v2.tauri.app/plugin/dialog/#rust
tauri-dialog transitively uses gtk-rs for GTK bindings, which is no longer be maintained: https://github.com/PolyMeilex/rfd/issues/227. As for other backend options:

JS | 6995AM — 12/23/24, 10:42 PM
rfd would use XDG Portals, but those don't support message dialogs apparently, which is 4 of our 5 dialogs

Fixes for file open dialog crashing on escape press
This was reported in https://github.com/PolyMeilex/rfd/issues/219 and fixed upstream. The fix hasn't appeared in a release yet.


I have a problem with Houdini-asyncio

I'm having a problem with Houdini-asyncio typing this command in the pip install -r requirements terminal.txt I get this error

Read the error: "aioredis doesn't support Python version prior 3.5"
You are trying to use a python version lower than 3.5. Houdini-asynio supports versions 3.8 and up.
This is not an issue with Houdini so I'm going to close this issue. If you need help with setup please join the discord and ask in the #support channel.

Mercy for help I fixed this error I have one last question as I type the python bootstrap.py login command this error appears in the console


NTR: acidocalcisome organization

Accession: GO:xxxxxx
Name: acidocalcisome organization
Ontology: biological_process
Synonyms: acidocalcisome organisation, acidocalcisome biogenesis, acidocalcisome organization and biogenesis, metachromatic granule organization, volutin granule organization, polyphosphate vacuole organization
Definition: A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of an acidocalcisome. An acidocalcisome is an electron-dense acidic membrane-bounded organelle which contains a matrix of pyrophosphate and polyphosphates with bound calcium and other cations.
is_a: GO:0006996 ! organelle organization
Source: GO:0020022, PMID:25964650, PMID:26523947

GO:0106117; GO:0020022 uses to assign exact vs related synonyms.

Thanks a lot @hdrabkin


Kotlin 1.8 support

Plugin version 1.11.0 produces the following error in a project using Kotlin 1.8:
Unable to find method ''void org.jetbrains.kotlin.gradle.tasks.KotlinCompile.<init>(org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions, org.gradle.workers.WorkerExecutor, org.gradle.api.model.ObjectFactory)''
'void org.jetbrains.kotlin.gradle.tasks.KotlinCompile.<init>(org.jetbrains.kotlin.gradle.dsl.KotlinJvmOptions, org.gradle.workers.WorkerExecutor, org.gradle.api.model.ObjectFactory)'

I checked out an old Kotlin 1.7.20 commit of the same project and everything looks good.

This issue is currently preventing us from supporting Kotlin 1.8: https://youtrack.jetbrains.com/issue/KT-55720/KJS-IR-ReferenceError-SuspendFunction1-is-not-defined-with-1.8
We are waiting on its resolution.

MocKMP 1.12.0 is compiled with Kotlin 1.8.
Note that you may need to add:
kotlin.incremental.js.ir=false

If you are mocking suspend functions in JS.


Datepicker Timepicker fix. doc update.

Proposed changes
fix a bug by change modal's complete callback (not available now) to onCloseEnd.
fix Timepicker does not initialize correctly.
update documentation.

Screenshots (if appropriate) or codepen:

Types of changes

[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Looks solid, will take a closer look and merge it soon

Thanks @huww98!


high cpu usage on production

I got a huge CPU usage when I integrated this module, it looks like that next-translate compile pages at run time.
I don't know where to start debugging this issue, btw, we are still using getInitialProps (it's a big app)
Nextjs: v11.1.0
Next-translate: v1.0.7

@Iliyass The only thing it does is to use the JSONs where you have the translations to look at the value, using the key. It should not be expensive, besides it only downloads the JSON that the page needs and with the language that the page is in.
If you have overwritten the loadLocaleFrom function, then look in there to see if your implementation doesn't have any problems.

Hey there, we might have the same problem.
I removed next-translate and the cpu usage normalized. We also use getInitialProps for loading adjustable theme data from our backend.
The i18n.json file looks like the following:
{
  "locales": [
    "de",
    "en"
  ],
  "defaultLocale": "de",
  "pages": {
    "*": [
      "common",
      "errors"
    ],
    "/register": [
      "registration"
    ],
    "/confirm/[token]": [
      "registration"
    ],
    "/password-reset": [
      "auth"
    ],
    "/password-reset/[key]": [
      "auth"
    ]
  },
  "loader": true
}

how much cpu and which pages spend more? the /confirm/[token] and password-reset/[key]? And it happens when downloading the translations or when translating? can you try with a blank page to see if it's the downloading thing?
To download them below use a dynamic import to import the JSON with the translations, once it has been imported then it should be cached.

Its any page. CPU spikes to 100% for the process and comes down to 20 after a few seconds.
And we don't even have load on the system. Thats just from uptime checks.
Pages are compiled everytime as we rely on the getInitialProps in the _app.tsx.
Every refresh increases the cpu usage by approx. 15%

Here is a picture of the rising cpu usage over the course of a week and a restart.

It seems strange, why do you think it is the fault of this library?


Micro blog feature/layout/category (maybe a different theme entirely?)

https://www.thedroneely.com/projects/micro-blog/
This is really, really cool
I could see this being a separate layout setting in section front matter, and then on the homepage adding a nice sliding view of recent micro posts, just like on single pages with recent posts or latest posts.
And I imagine this being more like a blog than a full blown Twitter clone since that's simpler. It also hopefully reduces the amount of hacks required.
So basically just like normal blog posts but shorter? Although then that seems sort of useless. I could just make another blog section and start writing short posts instead. I'll have to find out what my end goal really is.

this would probably end up being a different program/server entirely, maybe called bobafeed


[1.20.1] Missing Top Texture with Tooltip

Functional Storage Version: 1.2.6
Titanium Version: 3.8.23
When hovering over a drawer, the tooltip will not display the top texture of blocks. The screenshot only shows this happening with logs, but I see the same issue with planks and slabs.

The texture is there, its just too dark


Component prop updates are ignored

Currently, component updates are being ignored
/** @internal */
public shouldComponentUpdate(nextProps, nextState) {
  return !SERVER_RENDERED
}

This means that any update to event handlers just straight up don't work.
In this example, regardless of any calls to setValue, whenever a key is pressed, only the first function passed to CodeMirror is called.
const component = () => {
  const [value, setValue] = useState("old value");

  const handleKeyPress = () => {
    console.log("key pressed - value is", value);
  }

  useEffect(() => {
    setValue("new value")
  }, []);

  // ...
  onKeyPress={handleKeyPress} // The new function is ignored on second render
  // ...
}

Edit: Looks like the issue in this case is due to the way SSR is being detected - I'm trying to use this inside a chrome devtools extension.
Edit 2: Nothing to do with a chrome extension... I've created a PR :+1:

I ran into this with onBlur as well.  This works if you point to an unchanging function reference (i.e.: class-based components with bound function handlers), but does not work with hooks that have ever-changing function references.

There may be a solution that involves useRef for the callback function, but I didn't pursue it too deeply since switching to a class based function resolved it for me.

Problem is still here 2 years after.
Someone is looking for a solution ?

Problem is still here 2 years after.
Someone is looking for a solution ?

I've found a way by adding a key on the  tag to force reload  on props change

I've found a way by adding a key on the  tag to force reload  on props change

@paztis did you find a solution? Can this be done with useRef in a functional component?

I add a key to the react component, and the key is equal to the code value.
Like this, when the input code change, the component rendering is forced

Ahhh ok thanks

@paztis but after type in=> code change => cm re-render => the cursor disappear, how did you solve it? thanks


ReferenceError: Cypress is not defined when trying to use cypress-run

Following the installation instructions accordingly. I am using latest version of cypress and am getting this error"
 ReferenceError: Cypress is not defined
    at Object.<anonymous> (/Users/hunter.krieg/Documents/Git/convergence-desktop/node_modules/cypress-plugin-retries/lib/support.js:3:15)
    at Module._compile (internal/modules/cjs/loader.js:880:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Module.require (internal/modules/cjs/loader.js:775:19)
    at require (internal/modules/cjs/helpers.js:68:18)
    at Object.<anonymous> (/Users/hunter.krieg/Documents/Git/convergence-desktop/cypress/plugins/index.js:1:1)
    at Module._compile (internal/modules/cjs/loader.js:880:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)

my current index.js:
require('cypress-plugin-retries');
const cypressTypeScriptPreprocessor = require('./cy-ts-preprocessor');
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
module.exports = on => {
    on('file:preprocessor', cypressTypeScriptPreprocessor)
}

human error errory.

@kriegster108 what was the issue? I'm having the same issue but no idea what's wrong.

@kriegster108 what was the issue? I'm having the same issue but no idea what's wrong.

nvm, I was trying to import that under cyperss/plugins/index.js where Cypress is not initialized yet


graphdriver: Replace DiffPath with DiffGetter

This allows a graph driver to provide a custom FileGetter for tar-split
to use. Windows will use this to provide a more efficient implementation
in a follow-up change.
@vbatts

Job: Docker-PRs FAILED:

---
Congratulations!  All Go source files are properly formatted.

---> Making bundle: validate-lint (in bundles/1.11.0-dev/validate-lint)
Errors from golint:
daemon/graphdriver/driver.go:96:6: exported type DiffGetterDriver should have comment or be unexported
daemon/graphdriver/driver.go:101:6: exported type FileGetCloser should have comment or be unexported

Please fix the above errors. You can test via "golint" and commit the result.

Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[Docker-PRs] $ /bin/sh -xe /tmp/hudson5685209097518392941.sh
+ set +x

---

Job: Docker-PRs-experimental FAILED:

---
Congratulations!  All Go source files are properly formatted.

---> Making bundle: validate-lint (in bundles/1.11.0-dev/validate-lint)
Errors from golint:
daemon/graphdriver/driver.go:96:6: exported type DiffGetterDriver should have comment or be unexported
daemon/graphdriver/driver.go:101:6: exported type FileGetCloser should have comment or be unexported

Please fix the above errors. You can test via "golint" and commit the result.

Build step 'Execute shell' marked build as failure
[PostBuildScript] - Execution post build scripts.
[Docker-PRs-experimental] $ /bin/sh -xe /tmp/hudson547274232005910893.sh
+ set +x

---

Job: Docker-PRs-gccgo FAILED:

---
.pN57_github_com_docker_docker_integration_cli.DockerTrustSuite
SKIP: docker_cli_create_test.go:309: TestUntrustedCreate.pN57_github_com_docker_docker_integration_cli.DockerTrustSuite
SKIP: docker_cli_pull_trusted_test.go:49: TestUntrustedPull.pN57_github_com_docker_docker_integration_cli.DockerTrustSuite
SKIP: docker_cli_run_test.go:3187: TestUntrustedRun.pN57_github_com_docker_docker_integration_cli.DockerTrustSuite

----------------------------------------------------------------------
FAIL: docker_cli_authz_unix_test.go:231: TestAuthZPluginAllowEventStream.pN57_github_com_docker_docker_integration_cli.DockerAuthzSuite

[d76214000] waiting for daemon to start
[d76214000] daemon started
[d76214000] exiting daemon
[d76214000] waiting for daemon to start
[d76214000] received status != 200 OK: 500 Internal Server Error
[d76214000] daemon started
events_utils.go:125:
    c.Fatalf("failed to observe event `%s` for %s. Disconnection error: %v\nout:\n%v", event, id, e.disconnectionError, scannerOut)
... Error: failed to observe event `start` for 32452e6a0da1d64937ded9cd8c8b091dc73461efc429100e9d205258f9a1c20
---

ping @vbatts @unclejack could you have a look at this one please?

@jhowardmsft could you help diagnose the TP4 failures?

@jstarks Yup, on it.

Sorry. I'm on currently on holidays and will be back at it next week.
On Wed, Feb 24, 2016, 13:21 John Howard (Microsoft) <
<EMAIL_ADDRESS>wrote:

@jstarks https://github.com/jstarks Yup, on it.
—
Reply to this email directly or view it on GitHub
https://github.com/docker/docker/pull/20475#issuecomment-188389713.

I like the design, it's more clear from my point of view :+1:

LGTM

ping @calavera looks like this was updated PTAL

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a temporary error. The following address(es) deferred:
<EMAIL_ADDRESS>Domain ventureacceleration.com has exceeded the max emails per hour (51/50 (102%)) allowed.  Message will be reattempted later
------- This is a copy of the message, including all the headers. ------
Received: from github-smtp2-ext4.iad.github.net ([<IP_ADDRESS>]:48680 helo=github-smtp2a-ext-cp1-prd.iad.github.net)
by eaglepeak.ovasp.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
(Exim 4.86)
(envelope-from<EMAIL_ADDRESS>id 1aarkD-00087k-M3
for<EMAIL_ADDRESS>Tue, 01 Mar 2016 16:22:14 -0500
Date: Tue, 01 Mar 2016 10:56:03 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com;
s=pf2014; t=1456858563;
bh=MdKyrQ97sBHgzmo+YlPoleBkCAUpt0BG48+GrBX99ic=;
h=From:Reply-To:To:In-Reply-To:References:Subject:List-ID:
List-Archive:List-Post:List-Unsubscribe:From;
b=pIfAMWEPvIrCI1iWiZYzV2bzYFOcbt6D0V+l3VFvJsdz9CtjZFHDHtIIVBB00wlZd
e/33st4AVzk51IqXjjrlD54cgE3UP0c185Q4Yjc3ccqyLfVYbP6wE7gXd5ONgDEG6y
wKeDswLzMKvdTMHBmeG9Y2r4JBZKFVv97vimLQ0c=
From: Sebastiaan van Stijn<EMAIL_ADDRESS>Reply-To: docker/docker<EMAIL_ADDRESS>To: docker/docker<EMAIL_ADDRESS>Message-ID<EMAIL_ADDRESS>In-Reply-To<EMAIL_ADDRESS>References<EMAIL_ADDRESS>Subject: Re: [docker] graphdriver: Replace DiffPath with DiffGetter (#20475)
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary="--==_mimepart_56d5e5c318ff4_33f43fc96d8fb29c139073e";
charset=UTF-8
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: thaJeztah
X-GitHub-Recipient: Fredjet
List-ID: docker/docker <docker.docker.github.com>
List-Archive: https://github.com/docker/docker
List-Post<EMAIL_ADDRESS>List-Unsubscribe<EMAIL_ADDRESS>https://github.com/notifications/unsubscribe/AAfUEnkWQgw93puf1Kzql-OxEu7TI3qaks5ppIvDgaJpZM4Hdo-7
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address<EMAIL_ADDRESS>----==_mimepart_56d5e5c318ff4_33f43fc96d8fb29c139073e
Content-Type: text/plain;
charset=UTF-8
Content-Transfer-Encoding: 7bit
ping @calavera looks like this was updated PTAL

Reply to this email directly or view it on GitHub:
https://github.com/docker/docker/pull/20475#issuecomment-190851306
----==_mimepart_56d5e5c318ff4_33f43fc96d8fb29c139073e
Content-Type: text/html;
charset=UTF-8
Content-Transfer-Encoding: 7bit
ping @calavera looks like this was updated PTAL
—Reply to this email directly or view it on GitHub.

----==_mimepart_56d5e5c318ff4_33f43fc96d8fb29c139073e--

LGTM


Add lineEnding extension property to configure generated files line endings

Hello !
In this pull request I added the possibility to configure the line endings of the generated code.
Here is the context:
In my company we use the Gradle Remote Build Cache to reduce the build time of our projects. We use static code analyzers (PMD and SpotBugs) configured with Gradle, and the whole source code is an input of the provided static analysis tasks.
For the projects that use this wsdl2java plugin, the line endings of the generated source code are different when the task is executed on a Linux machine and on a Windows machine. As a consequence the source code input is considered to be different between the two OSs by Gradle and we have a cache miss. Having the same line endings on the two OSs for the code generated by this plugin fixes our problem.
Best regards

I should maybe also update the README ?

Hi Paul,
Really sorry but for some reason I'm not receiving notifications to my primary email so I haven't seen your PR until now.
(registered a secondary email for the future :) ).
I merged your request and released plugin version 2.3.2 to gradle portal.
Regards,
Peter


Operation queue deadlock condition

The operation queue will deadlock if cancelAllOperations is called on the queue before all operations have executed. The culprit is in the start method
		guard !isCancelled else { 			finish() 			return 		}
The state value will be .ready which will cause the finish method to never change the state to .finished. Thus, causing a deadlock.
You can either update the guard statement to manually set the state to .finish.
Or, change the finish method to not check for the isExecuting state.

@sgraesser17 thanks for pointing it out, I'll have a think about it and update the project to avoid this


Polyfills for WeakMap, WeakSet, etc.?

Thanks to @shicks, we are passing quite a few tests from the "Built-ins" group in https://kangax.github.io/compat-table/es6/#closure. However, it seems that our polyfills are still rather incomplete. IIRC there was an internal CL that implemented WeakMap and WeakSet. Do we plan to port that over?

@shicks Maybe you can write a wiki page about the polyfills, what we support (so people know if we don't intend to support something vs if we haven't implemented it yet), and how to use them?

https://github.com/google/closure-library/commit/80ae4692c319936798563a9ae173baf563cbcebd adds a WeakMap in Closure Library but it was rolled back.

The issue is how to implement a WeakMap polyfill, there are two basic choices: (1) create a weakMap that leaks (doesn't collect with GC) (2) create a WeakMap that adds properties to objects which would fail on sealed objects (a distributed Map).
Both implementations have advantages/disavantages and it is "wrong" (IMHO) to assume you know which is correct for any particular use case.

@concavelenz Seems like most polyfill implementations go with option 2.

We now implement these polyfills (going with option 2, and taking some reasonable measures to prevent breakages due to sealed keys).


Windows workflow fails

The only logged error message is:
2021-08-10T23:59:17.2704132Z D:\a\Gears-Vk-Starter\Gears-Vk-Starter\build\_deps\gvk-src\framework\include\vk_convenience_functions.hpp(30,11): error C2908: explicit specialization; 'vk::Format avk::format_for<glm::vec<3,float,glm::packed_highp>>(void)' has already been instantiated [D:\a\Gears-Vk-Starter\Gears-Vk-Starter\build\Gears_Vk_Starter.vcxproj]

Fixed by explicitly specifying the build type when building on Windows (for some reason the library was built in Release mode while the executable was built in Debug before, leading to a mismatch of the used MS runtime lib. Windows is weird)


Note block

I had this idea for a long time.
A note block is a little box with some text. It may be a reminder, a disclaimer, a warning, or whatever.
Many MediaWiki wikis have them implemented with templates and hacks. Well, it's considered idiomatic there.
Yandex Flavored Markdown, yet another dialect of Markdown (which has 4 levels of headings too, by the way), introduces such note blocks. Yandex's idea is similar to mine. That's great.
So, the syntax I purpose is as follows:
note <type> {
   <body>
}

Where:

<type> is an optional value. Possible values:

important for text that is so important everyone must read it.
tip for slightly related notes that may help readers.
warning for warnings. A good choice for marking sections deprecated.

Default: tip.

<body> is a Mycomarkup-formatted text.

Each type has its own colors and icons. Every aspect of it is granularly configurable with CSS.

Some questions

Do we allow all of Mycomarkup in body? The same question applies to table cells and image captions, by the way.

Maybe we should limit the subset of Mycomarkup in body.

Should the type set be like that? Maybe it should be larger?
Can custom types be introduced? It's all configured with CSS, why not?

I don't like the idea of custom types because having it ties Mycomarkup with HTML and CSS too much. Mycomarkup will have targets other than HTML, such as FB2 or PDF, for example.
And options are harmful.

@bouncepaw Я какую-то дырку случайно нашёл, потому что в тексте ишшуя есть

GitHub decided to get it too. They have a discussion going on. One can scroll it through. These are all examples of syntaces Mycomarkup is not going to have. I like GitHub's design of note blocks though, those colored icons are cute

Moved to https://todo.sr.ht/~bouncepaw/mycomarkup/2


Configuration limits for joints and model

every joint returns a vector of boolean of size nq describing if each of the DOF has bounds or not
model: vector stacking the boolean vector of configurations limits of each joint in the model

now we can do:
In [1]: import pinocchio as pin
   ...: model = pin.Model()
   ...: model.addJoint(0, pin.JointModelFreeFlyer(), pin.SE3.Identity(), "root_joint")
   ...: model.addJoint(0, pin.JointModelRZ(), pin.SE3.Identity(), "joint1")
   ...: model.addJoint(0, pin.JointModelRUBZ(), pin.SE3.Identity(), "joint2")
   ...: model.configurationLimit.tolist()
Out[1]: [True, True, True, False, False, False, False, True, False, False]

which can be used to see where bounds are expected or not using e.g. model.upperPositionLimit[model.configurationLimit.tolist()] and check if these are meaningful joint bounds, as suggested in #1752 .

In the IK joint-limit use case https://github.com/stack-of-tasks/pinocchio/issues/1752#issuecomment-1260773339, what we compute in the end is the same thing but in tangent rather than configuration space; something like:
v_max[np.hstack([joint.has_configuration_limit_in_tangent_space.tolist() for joint in model.joints]))

This is beyond the scope of this PR, but I'm not sure I understand why planar (rotation), spherical or free-flyer (rotations) shouldn't have limits. In general, spherical joints can have arbitrary boundaries. For example in HRP-2's hips there was once a polygonal description A * [phi, theta] <= b.

Hi guys. This is just a proposal. Since there can be joints with partial configuration limits, it would be convenient if Pinocchio also exported a tangent vector, like e.g. for the free flyer:
    const std::vector<bool> JointModelFreeFlyerTpl::hasConfigurationLimitTangent() const
    {
      return {true, true, true, false, false, false};
    }

Here is the kind of things this tangent vector could be used for:
has_configuration_limit = np.logical_and(  # runtime configuration limit
    model.upperPositionLimit < 1e20,
    model.upperPositionLimit > model.lowerPositionLimit + 1e-10,
)

bounded_joints = [
    joint
    for joint in model.joints
    if has_configuration_limit[
        # this slice could be partial thanks to hasConfigurationLimit
        slice(joint.idx_q, joint.idx_q + joint.nq)
    ].all()
]

is_tangent_of_bounded_joint = np.full(model.nv, False)
for joint in bounded_joints:
    is_tangent_of_bounded_joint[
        # this slice could be partial with hasConfigurationLimitTangent
        slice(joint.idx_v, joint.idx_v + joint.nv)
    ] = True

Alternatively, if we had a map from configuration to tangent coordinates https://github.com/stack-of-tasks/pinocchio/issues/1758, we could forget about hasConfigurationLimitTangent and simply do:
is_velocity_of_bounded_joint = np.full(model.nv, False)
for i in range(model.nq):
    if has_configuration_limit[i]:
        is_velocity_of_bounded_joint[model.config_to_tangent(i)] = True


Codecov coverage configuration

The coverage for this repo hasn't been tested yet. It requires several testing techniques with some modifications in .travis.yml . More info at Codecove.io

I would like to work on this.

Assigned : @nguptaa

Solved: #64


Add the possibility to match producer and consumed messages using headers instead of just using the message Key.

With the current solution, it is only possible to match producer and consumed messages using the key from the sent message. However, in our project, we have an internal key change from produced and consumed messages. This means that with the current implementation we are not able to bind produced messages to consumed one. Therefore Gatling is always returning that the whole flow hasn't been successfully finished.
To solve this issue It can be possible to match consumed and produced messages using some customizable headers, such as correlation-id.
The test scenario would look like snipped below after adding the configurable Headers option:

  val scn: ScenarioBuilder = scenario("Test kafka")
    .feed(feeder)
    .exec(
      kafka("ReqRep")
        .requestReply
        .requestTopic("exp.inbound")
        .replyTopic("exp.outbound", Some("correlation-id"))
        .send[String, String]("test-key", "#{payload}", addHeader("correlation-id", "#{correlationId}"))

In order to make this configurable headers option, we already create a Proof of concept.
You can have a look at the last 3 commits of this Repo: https://github.com/imaculan/gatling-kafka-plugin/commits/header_extractor.
Thanks

We would also need this feature, as the keys are not the same in our event flow.

Since #101 you can provide your own matching function (to match input and output message). Take a look on https://github.com/Tinkoff/gatling-kafka-plugin/blob/519e158e678a1fded45f1673d8f5903dc0a486f2/src/test/scala/ru/tinkoff/gatling/kafka/examples/MatchSimulation.scala#L32-L53
you just need to implement matchByOwnVal that will extract a key from the message that will be used for matching request and reply data

@3alster  Thanks for the suggestion. How does the matchByOwnVal function work? As I understand the implementation, the function is called every time after sending and receiving a message. But how can I check if the received message matches the sent message? The matchByOwnVal function only returns an array[byte]. What I need is if the received message matches a sent message it should return true, otherwise false and the test should fail.

@DevArosan that function should return the key from the message. You should implement it in a way that it returns the same key for your input and output message.

@3alster Thanks for the quick answer. I do not exactly understand. So my use case is, to match some property from my input message to some property of my output message. Because the Key of the message is different and cannot be used to match. How should that work?


Default sort order

Add property of type array that can be used to define the default sort order.
So that the table views, selects, ... are sorted that way.

[x] Extend BaseModel to support default sort orders
If not other order is given via QueryBuilder, use default.
[x] Add default order to entities

[x] DeliveryNote: year DESC, nr DESC
[x] Invoice: year DESC, nr DESC
[x] Plot: nr ASC
[x] Price
[x] Product
[x] Recipient
[x] Setting: name ASC
[x] Supplier: name ASC
[x] User: username ASC
[x] VolumeDistribution

[x] Remove "custom" sort orders from tables views, selects, ...

cd9e59a


'charmap' codec can't encode characters error

By default on Windows, this script attempts to output text using charmap, which can't handle Unicode characters. So if the model does generate a Unicode character in its output, you end up with a blank caption file and the error 'charmap' codec can't encode characters in position X-X: character maps to <undefined>
To remedy this, I modified the batch.py to save the file using UTF-8 encoding. This fixes the problem.
# Function to save caption to a file
def save_caption_to_file(image_path, caption, save_format):
    txt_file_path = os.path.splitext(image_path)[0] + save_format  # Same name, but with chosen save format
    caption = PREPEND_STRING + caption + APPEND_STRING  # Apply prepend/append strings

    # Save the file using UTF-8 encoding to handle all Unicode characters
    try:
        with open(txt_file_path, "w", encoding="utf-8") as txt_file:
            txt_file.write(caption)
        if PRINT_CAPTIONING_STATUS:
            print(f"Caption for {os.path.abspath(image_path)} saved in {save_format} format.")
    except Exception as e:
        print(f"Failed to save caption for {os.path.abspath(image_path)}: {e}")

That's okay, you can just add it. Also, I noticed the model likes to output double and triple spaces sometimes, which is annoying, so I fixed that too:
import re  # add this import at the top of the script
# Function to save caption to a file
def save_caption_to_file(image_path, caption, save_format):
    txt_file_path = os.path.splitext(image_path)[0] + save_format  # Same name, but with chosen save format
    caption = PREPEND_STRING + caption + APPEND_STRING  # Apply prepend/append strings

    # Replace multiple spaces with a single space
    caption = re.sub(r'\s+', ' ', caption)

    # Save the file using UTF-8 encoding to handle all Unicode characters
    try:
        with open(txt_file_path, "w", encoding="utf-8") as txt_file:
            txt_file.write(caption)
        if PRINT_CAPTIONING_STATUS:
            print(f"Caption for {os.path.abspath(image_path)} saved in {save_format} format.")
    except Exception as e:
        print(f"Failed to save caption for {os.path.abspath(image_path)}: {e}")

tyvm!
Fixed in: https://github.com/MNeMoNiCuZ/qwen2-vl-7b-captioner-relaxed-batch/commit/4c11a107244f78809dc946eeca69c1387583a64e


Initial

Overview
Create a set of docker containers that makes it easy to evaluate StackStorm. For this purpose, we agreed to use the following five containers:

st2
mongodb
rabbitmq

In the first container, we install the st2 and st2web packages. If any of the st2 services die, then upstart will ensure they are restarted.
The mongodb and rabbitmq containers are unmodified official repositories.
NOTE: Any future work to place each service (e.g., st2actionrunner, st2notifier, st2reactor) into its own container is out of scope for this PR.
Usage

To start the containers, run docker-compose up -d.
Connect to the container using docker exec -it st2 /bin/bash.
Play around with StackStorm!

Known Issues

After starting the st2 container, you must manually run st2ctl reload before running st2-self-check. The manual st2ctl reload should not be required.

Remaining tasks

[x] Connect to mongo from within st2d_st2_1 container. ServerSelectionTimeoutError: Failed to ensure indexes for model "UserDB": <IP_ADDRESS>:27017: [Errno 111] ECONNREFUSED. Change in /etc/st2/st2.conf?
[x] Identify changes that need to be made to point code at the rabbitmq container.
[x] Run non-mistral st2-self-check tests successfully.
[x] Create a "hello sample pack".
[x] Run through ST2 Quick Start with the "hello sample pack".
[x] Map pack code in st2-upstart container to host so favorite host editor can be used.
[x] Enable auth in /etc/st2/st2.conf
[x] Report new st2-self-check issue with "run_pack_tests_without_creating_virtualenv" test. This is an upstream regression introduced in the last couple weeks.
[x] Identify changes that need to be made to point code at the postgresql container.
[x] Rename containers to something a lot simpler (e.g. st2, mongodb and rabbitmq).
[x] Probe whether "st2lite" is useful (i.e., StackStorm without Mistral).
[ ] The first action example must be a script action. Ask @mierdin.
[ ] Test packs.dev volume with pack install. Does it work as expected?
[ ] Allow user to pass username/password (and other configuration parameters?) at runtime to the container using ENV variables. Will need to run htpasswd and maybe st2 login inside the container.
[ ] Reconfigure the logger to output to the CLI.
[ ] What automated tests should we use instead of st2-self-check?
[ ] Identify all required tests.
[ ] Execute identified tests.
[ ] Resolve any outstanding issues.

How come this is not under StackStorm at github?

Is st2 auth enabled?

Agreement was that I'd develop a prototype under my github account and move it to StackStorm later.

First time running through st2-self-check, every test succeeds except tests.test_quickstart_rules:
id: 58d4a63eed9a1e006b54fbd9
status: failed (0s elapsed)
parameters:
  cmd: st2 webhook list -j | grep sample
  env:
    ST2_API_URL: http://<IP_ADDRESS>:9101
    ST2_AUTH_TOKEN: c836387c16a948f18bf3af0074b65e67
    ST2_AUTH_URL: http://<IP_ADDRESS>:9100
    ST2_BASE_URL: http://<IP_ADDRESS>
result:
  failed: true
  return_code: 1
  stderr: ''
  stdout: ''
  succeeded: false

tests.test_quickstart_rules runs the command st2 webhook list -j | grep sample. If later run manually, the grep succeeds. Perhaps a timing issue that needs to be resolved? Investigating.

As a follow-up to https://github.com/warrenvw/st2-docker/pull/1#discussion_r105448025, I still can't find any evidence that core.local requires ssh.

My only request is to attach Circle or Travis and start building + deploying this single container to https://hub.docker.com/r/stackstorm/
So we as a reviewers and "potential users" could just use docker-compose which will pull the images, instead of building stuff locally every time.

@dzimine Talking about st2-upstart naming, it's by convention in Docker community and because we run upstart init system inside, see my comment here: https://github.com/warrenvw/st2-docker/pull/1#discussion_r104002625 where I asked this particular naming change.

Talking about st2 docker naming, - that would be good to reserve for production-friendly multi-container "base image"  which we'll deploy to Hub in future, so st2api, st2auth and all other will depend on that base image. I have ideas here.
See exactly what I mean https://gitlab.com/smithx10/st2/blob/master/docker-compose.yml#L2-12 and https://github.com/StackStorm/discussions/issues/224#issuecomment-278994467

Merging to master, even though still very much a WIP.


PR: Route-based Code Splitting

This is a webpack optimization that will bundle code for each route. This will significantly improve startup performance on lower end machines.
Inspired by:
https://twitter.com/addyosmani/status/784957162128744448
<EMAIL_ADDRESS>

Merging this into https://github.com/chentsulin/electron-react-boilerplate/issues/808


[Enhancement] Add a "First Run" experience

Enhancement:
Add a "First run" experience to Gavilya.

Describe the solution:

[x] Add a window that introduce Gavilya

[x] Add the possibility to import a save file
[x] Add a tutorial/first run introduction

[x] Add content to the pages that are empty

[x] Home
[x] Recent Games
[x] Game List

Friday, December 19th: The first run experience and all the above enhancements have been added to Gavilya. Closing issue


Fix compile errors

Some minor changes are required for this package to compile successfully.

Thanks. Would you be able to (or allow me to) push a new release to Hackage?

Sure I'll put it. Thanks for the reminder. One thing you should note is that I was unable to get some of the hashes to match the reference implementation so before you use this seriously I would cross reference expected results first.

https://hackage.haskell.org/package/multihash


model is only 1kb

There are three models，but they are all 1 KB and cannot be loaded.

Take another look. You will need git-lfs.


Refresh casher person data on declaration signed

Should be merged after https://github.com/edenlabllc/ehealth.api/pull/2979
#2868

Coverage remained the same at 91.174% when pulling 1bc5f99ea19fbbd3779202812aec5dd38495ea7f on dev-2868-refresh-casher-person-data-on-declaration-signed into 0603e0a5022c0ad3776a9444661119e5400b6942 on develop.


Fix build for Python 3.11

I opened an issue in torch repository: https://github.com/pytorch/pytorch/issues/116707.
If it's not picked up soon, we could think about work arounds, such as regenerating the problematic files with pytest fixtures (it may be that saving AND loading files with Python 3.11 solves the issue).

In PR #549 I removed Python 3.11 from the CI, until this issue won't be solved.

As of 31/07/2024, I tried to re-add the python 3.11 version to the CI and it is still failing as reported above and in https://github.com/pytorch/pytorch/issues/116707.
To try to solve this:

I tried to create locally (mac) an env based on python 3.11. All tests passed.
I tried to upload the pretrained models' files that I had locally, to be sure that the version on the remote was not outdated. I changed names of the files to be sure this was happening, but tests for 3.11 are still failing. This makes me think that it can be an issue related to python 3.11 for linux OS only (the tests using 3.11 with 3.10-generated files pass on my mac, see above).
[ ] Do the same on snellius, so that I can follow the same commands as in the action.yml file. Snellius is under maintainance, so for now this is not possible.
[ ] Do it on a docker container. Compare the 3.10 installation (currently in place) with the 3.11 one by running the same tests with the same files (generated with 3.10) in both.
[ ] [Only if tests didn't pass] Try to regenerate the pretrained models using a conda env with python 3.11 instead of 3.10. Then re-run the tests for both python versions.


[BUG] in-place updating of array slice unexpectedly fails due to broadcasting problem

Describe the bug
mlx fails to update a slice of an array, equivalent in numpy works
(surfaced in mlx-swift, checked with python/numpy as per below)
suspected bug in mlx::core
Edit: perhaps related to #1015
To Reproduce

in mlx:

import mlx.core as mx
a = mx.ones([2,6,6,6])
b = mx.zeros([3,4,4,4])
b[0,0:4,3,0:4] = a[0,1:5, 5,1:5]
# ValueError: Cannot broadcast array of shape (4,4) into shape (1,4,1,4).

Expected behavior

in numpy:

import numpy as np
a = np.ones([2,6,6,6])
b = np.zeros([3,4,4,4])
b[0,0:4,3,0:4] = a[0,1:5, 5,1:5] #works
np.count_nonzero(b == 1) #16
np.count_nonzero(b == 0) #176

Desktop (please complete the following information):

OS Version: MacOS 14.4.1
Version:
Installing collected packages: numpy, mlx
Successfully installed mlx-0.12.0 numpy-1.26.4

Additional context
This slice update also fails in mlx-swift.
import MLX
let a = MLXArray.ones([2,6,6,6])
let b = MLXArray.zeros([3,4,4,4])
b[0,0..<4, 3, 0..<4] = a[0, 1..<5, 5, 1..<5]

Backtrace:
std::invalid_argument: Cannot broadcast array of shape (4,4) into shape (1,4,1,4).

  * frame #0: 0x0000000108b1b7a6 MLXTests`mlx::core::broadcast_to(a=0x00006000015abeb0, shape=size=4, s= Active Type = mlx::core::Stream ) at ops.cpp:1105:5
    frame #1: 0x0000000108b206f0 MLXTests`mlx::core::slice_update(src=0x00006000015abbb0, update=0x00006000015abeb0, start=size=4, stop=size=4, strides=size=4, s= Active Type = mlx::core::Stream ) at ops.cpp:588:29
    frame #2: 0x0000000107fdb1ed MLXTests`mlx_slice_update(src=0x00006000015abba0, update=0x00006000015abea0, start=0x0000600001bc40e0, num_start=4, stop=0x0000600001bc4140, num_stop=4, strides=0x0000600001bc4170, num_strides=4, s=0x00006000015abe80) at ops.cpp:750:10
    frame #3: 0x0000000107f13bc8 MLXTests`updateSlice(src=(ctx = 0x00006000015abba0), operations=4 values, update=(ctx = 0x00006000015abea0), stream=MLX.StreamOrDevice @ 0x00007ff7bfefc420) at MLXArray+Indexing.swift:911:9

in frame #3:
po src.shape
▿ 4 elements
  - 0 : 3
  - 1 : 4
  - 2 : 4
  - 3 : 4
(lldb) po update.shape
▿ 2 elements
  - 0 : 4
  - 1 : 4
(lldb) po starts
▿ 4 elements
  - 0 : 0
  - 1 : 0
  - 2 : 3
  - 3 : 0
(lldb) po ends
▿ 4 elements
  - 0 : 1
  - 1 : 4
  - 2 : 4
  - 3 : 4
(lldb) po strides
▿ 4 elements
  - 0 : 1
  - 1 : 1
  - 2 : 1
  - 3 : 1

This is fixed in #1035, we should file a companion issue in MLX Swift.

Closing this as dup and opened a issue for MLX Swift.


Arpack ng add iso c binding and top arpack-mpi attribute

I'd like to propose to enable the ISO C bindings which are used by some programs.
In addition, I'd like to add a top attribute arpack-mpi with MPI enabled. This makes it easier to use the arpack with MPI in flakes.
Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

@ttuegel @dotlambda

Add a :+1: reaction to pull requests you find important.

ZHF: https://github.com/NixOS/nixpkgs/issues/352882

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/4902

@dotlambda @ttuegel you are indicated as the maintainers of arpack. I'd appreciate your review.

https://hydra.nixos.org/build/282505341
it seems to add single precision api which Accelerate doesn't like so darwin needs to link with openblas.
not quite sure what the difference is before / after but looking at the unit tests run it is now running what looks like a single precision unit tests which segfaults where before this change it wasn't (only 6 tests vs 10).
we've seen this issue with other things using accelerate and single precision on darwin and the fix is simple. will have a PR up shortly.

pr for darwin https://github.com/NixOS/nixpkgs/pull/367594


Certain encoderArgs throw errors

Heya - great job on the wrapper, super useful!
I wanted to be able to give a start & end time to a youtube clip but it's throwing errors that I'm not really able to interpret.
Here's the snippet:
  const ytdlContent = ytdl(song.url, {
      filter: 'audioonly',
      opusEncoded: true,
      encoderArgs: ['-ss', song.startTime, '-t', song.endTime]
    });

  const dispatcher = serverQueue.connection
    .play(ytdlContent, { type: 'opus' })
    .on('finish', () => {
      serverQueue.songs.shift();
      play(guild, serverQueue.songs[0]);
    })
    .on('error', (error) => console.error(err));

Where song.startTime & song.endTime look something like 2:30, 2:42.
Worth mentioning that only using the startTime works, eg:
 encoderArgs: ['-ss', song.startTime]

which is basically what the seek option you've added is doing under the hood anyway.

Wondering if you meant to add an end time but it was problematic - or am I just using ffmpeg wrong?
Here's the error thrown btw (it never gets to the .on( 'error') catch)
events.js:292
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at WriteWrap.onWriteComplete [as oncomplete] (internal/stream_base_commons.js:94:16)
Emitted 'error' event on FFmpeg instance at:
    at FFmpeg.onerror (internal/streams/readable.js:760:14)
    at FFmpeg.emit (events.js:315:20)
    at Socket.processError (/<pwd>/node_modules/prism-media/src/core/FFmpeg.js:65:40)
    at Socket.emit (events.js:315:20)
    at emitErrorNT (internal/streams/destroy.js:106:8)
    at emitErrorCloseNT (internal/streams/destroy.js:74:3)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  errno: -32,
  code: 'EPIPE',
  syscall: 'write'
}

can you try using
seek: song.startTime,
encoderArgs: ['-t', song.endTime]

and weird, encoderArgs: ["-ss", "20", "-t", "50"] worked for me. Maybe something's wrong with your values

Thanks for the quick reply!
using a combo of seek & encoderArgs does the same. I should have mentioned also above, have tried both a duration with -t and an endTime with-to.
What happens is - it actually plays it in the voice channel with the correct start / stop time, but throws and error and crashes after that.
Any thoughts? I was wondering if those arguments changes the readable stream into something ytdl-core doesn't handle.
Also am using ffmpeg version 4.0.2 on my machine.

Looks like the problem in prism-media I guess? 🤔

hm definitely a problem with prism-media imo coz I tested with prism-media only and same result ¯_(ツ)_/¯

Thanks - that's interesting. Just curious as to why encoderArgs: ["-ss", "20", "-t", "50"] ran okay for you earlier though?
Are you using node-opus over @discordjs/opus or something like that?
Wondering if I can get on the same dependencies as you, maybe it'll play nice.

ps. If you're able to describe how you're testing it with prism-media directly, I can open an issue with them 🙂

Released: v5.0.2 #21


Fix valgrind warnings related to source and destination overlap in strcpy in datetime, datetime2 and datetimeoffset related functions

Description
In datetime_in_str function, we are unnecessarily using strcpy function which is also causing issues in valgrind as the source and the destination overlap.
This commit removes this unnecessary strcpy call in datetime_in_str function. Also, we can directly send the original input string in clean_input_str() function rather than sending modified_str as we were doing before.
Issues Resolved
BABEL-5034
Signed-off-by: Sai Rohan Basa<EMAIL_ADDRESS>Test Scenarios Covered
Tested locally with Valgrind

Use case based - N/A

Boundary conditions - N/A

Arbitrary inputs - N/A

Negative test cases - N/A

Minor version upgrade tests - N/A

Major version upgrade tests - N/A

Performance tests - N/A

Tooling impact - N/A

Client tests - N/A

Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

4 of 4 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.002%) to 73.351%

Totals

Change from base Build<PHONE_NUMBER>:
-0.002%

Covered Lines:
42082

Relevant Lines:
57371

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

5 of 5 (100.0%)  changed or added relevant lines in 3 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 73.356%

Totals

Change from base Build<PHONE_NUMBER>:
0.003%

Covered Lines:
42085

Relevant Lines:
57371

💛  - Coveralls


Jump to block in guide bood

Suggestion
Have it so when you hold the guide book and shift right click (or similar action) it jumps right to the page of the block you click on
Justification
This would make the creation on machines faster if you - say - forget what side a heat duct goes on, or where the rotary power i/o is on a block. Or, with such items as the stamp mill, make sure you have the right rpms going into the machine. I have seen this idea in mods such as pixlemon and in-game-wiki, where you hit a key-bind and it jumps you to the page in documentation.
Another alternative would be to add it to jei such as Actually Addons does. On every item you can read the book right from jei, creating a similar result as the first implementation.

This could be accomplished either by adding recipe pages to the book or using "extra_recipe_mappings" see the bottom of the entry docs page.

I am working through what should open which entry. My go-to is that the entry's icon will be used as a link to the page, unless in my own personal opinion its use is wider ranging than the page (vanilla items, for the most part) or there's a better place for it to be linking (glass shells will link to Glassware, not Reagent Effects).
It will take me several days to work through all the entries and think about this. While these are obviously gonna be open to change later, now would be a convenient time for any suggestions outside of the above.

I think that makes sense: just have each item/block link to the most relevant part of the book.
👍


Exec tachikoma update<PHONE_NUMBER>4606

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io Announcement: 2015-06-28 Updated permissions - Tachikoma.io

Coverage remained the same at ?% when pulling e6c6cc02d93e3c38dfb4011a97668b703e6fd4a5 on pazjacket:tachikoma/update-20180220174606 into ddf31327ec9d3097b29bd6c49c1071d946319912 on sanemat:master.


Table is being cut off upon page break, and continues onto the next page

Bug description
Steps to reproduce the problem:
I have some html code as shown below (including the node js used to invoke puppeteer), and then I'm running that through puppeteer which generates the issue shown in the screen shot below; whereby the table is cut off between the pages. I have attempted a lot of the standard css solutions found across the internet, using 'page-break-inside: avoid;' on the rows/table/tds etc. None of it has worked.
My goal is for the table to have a line at the bottom to 'complete' it on page break, and then have a line drawn at the top of the second page it spills onto, so it does not look as if its been cut off. Is this currently possible with puppeteer, I found a similar issue raised here in 2022 however it seems to have been closed: https://github.com/puppeteer/puppeteer/issues/8708?
Any help appreciated, cheers
HTML used to produce the pdf:

node js code invoking puppeteer

Screen shot:

Puppeteer version
^10.1.0
Node.js version
nodejs14.x
What operating system are you seeing the problem on?
macOS, using chrome to download the pdf.

Hey, can you observe the same issue when you try to create PDF though Chrome itself? As Puppeteer just calls the same browser method. Also it seems you are using an older version of Puppeteer. Updating to the latest will make Puppeteer download a newer browser for it to use.
I would appreciate if you can provide the Raw HTML.
Note: Using code blocks for text makes it easier for us to review - Quoting code.

Hello, thanks for replying.
I will upgrade my puppeteer version and post the results here - please keep this issue open for now as I'm currently tied up with other things but I will get back eventually.
thanks.

Hi @agiri1991  are you able to solve this issue? i encountered this with my current project and i can't seem to find a fix for it . hoping for your response . Thank you


How to control the exposure and gain and the switch of emitter by programming instead of realsenseviewer?

Required Info

Camera Model
D400

Firmware Version
(<IP_ADDRESS>)

Operating System & Version
ubuntu 16.04

Kernel Version (Linux Only)
4.13.0

Platform
PC

SDK Version
{ legacy / 2.<10>.<4> }

Issue Description
How to control the exposure and gain and the switch of emitter by programming based on sdk 2.0 instead of realsenseviewer?

Hi @Destinyzc
Check out controlling the laser, exposure and gain can be controlled in a similar way.

@dorodnic I tried the control of laser, and it's helpful. Than you~
But for exposure and gain, can you give more information? I can't find something similar.

Try using the same API calls, but replace RS2_OPTION_EMITTER_ENABLED with RS2_OPTION_EXPOSURE and RS2_OPTION_GAIN.
You can use get_option_range function to discover the valid range of values for each option.

@dorodnic It works perfectly! Thank you very much!

yes i already turned the automatic exposure Off.
i used the mentioned api:
depth_sensor.set_option(RS2_OPTION_EXPOSURE, range.max)
to correctly set the exposure for the IR camera......but i would like to do the same thing for the RGB camera, is there something equivalent to:
auto depth_sensor = selected_device.firstrs2::depth_sensor();
to get the rgb_sensor instead of the depth_sensor ?
Thanks


Maximum users for videos?

Is the issue I am seeing where random users video feed will stop when the number of users sharing videos increases?
Example:
4 people in room, everyone sees everyone.
5th person joins and user 1's video freezes and no longer gets chat window updates.
It seems when too many people are in a class and streaming videos then everything goes haywire, video streams start pausing.  There surely must be a more elegant way the server can handle this?  Instead of just killing streams instead can't you just not accept the new video stream from the 5th person who is trying to share their webcam?

That is why you can limit the amount of people in a room or have ways to authenticate who can join.
Do note, because of how the connection works, each extra user greatly increases the number of connections needed. A 5th person joining not only needs to connect to the 4 other users, but they also need to connect to him/her. That is 8 extra connections. If you need 2mbps to keep a video stream going in one connection, that is immediately 16mbps added extra to whatever you already have.


modify deployment to allow read access to /tmp

modify service file to allow reading files from /tmp
change # of workers from 2 to 1
cleanup code in network.py

fixed in https://github.com/joshschmelzle/wlanpi-webui/commit/71ac0d2550abac0a5a325aa781017aa377dc645c


[VL]Follow-up fix for #7314 on branch-1.2: skip data gen in oom test

What changes were proposed in this pull request?
This may cause the test time-consuming.

@weiting-chen


navlink performance improvement, provide createNavLink, remove handleRoutes

Higher order component pattern is good but since users might use NavLink everywhere, so having connectToStore -> handleRoute -> NavLink -> a should be too much and the performance might be able to be improved.

We only use makePath and isActive from routeStore, use it directly, so that we can reduce two higher component and we can remove the eventListeners to the RouteStore. previously the RouteStore might propagate hundreds emitChange to every NavLink on the page.

move out NavLink functions to be navLinkUtils, so that if users have the use case they can compose there own NavLink.
provide createNavLink so that users can overwrite the attribute with whatever they want, maybe add a mixin or a custom click event handler

@mridgway @redonkulus @lingyan @Vijar

updated, now provide a function for users to overwrite attributes and create a NavLink component

updated, still listen to the RouteStore change.

CLA is valid!

lgtm

thanks :fireworks:, squashed

:+1:

do we want to put createNavLink in lib ? or addons ?

Keep it in lib since it's used by core. We can export it from require('fluxible-router').createNavLinkComponent.

updated, change file name as createNavLinkComponent, also export it with index.js

:+1:

:boat:

rebased, let me merge it

:+1:


Add a method to get Header.Extension id array

Summary
Base<EMAIL_ADDRESS>I need a new methon to get all extension ID.
code maybe like this:
`
func (h *Header) GetExtensionIDs(id uint8) []uint8 {
if !h.Extension {
return nil
}
ids := make([]uint8, len(h.Extensions))
for _, extension := range h.Extensions {
	ids = append(ids, extension.id)
}
return ids

}
`
Motivation
I try to get all extension ID , because I need know which id that I can read.
Describe alternatives you've considered

Additional context

Hey @ocean2811
This would be a great addition! If you can make a PR with tests I am happy to merge this.
thanks :)


genric exporter

replace standard endpoint with url query based.

concat semp endpoints
possible to filter items and von name by url

@uherbst this should solve your issue from nail

@uherbst this should solve your issue from nail

I implemented a first draw of a modular support. Please review just the read me: https://github.com/solacecommunity/solace-prometheus-exporter/tree/modular_filter_tragets
@uherbst @dabgmx

I implemented a first draw of a modular support. Please review just the read me: https://github.com/solacecommunity/solace-prometheus-exporter/tree/modular_filter_tragets
@uherbst @dabgmx


Branch additional fields

Codecov Report

Merging #93 into master will decrease coverage by 0.12%.
The diff coverage is 70.96%.

@@             Coverage Diff              @@
##             master      #93      +/-   ##
============================================
- Coverage     72.64%   72.52%   -0.13%
- Complexity      421      466      +45
============================================
  Files            71       75       +4
  Lines          1294     1492     +198
  Branches        141      179      +38
============================================
+ Hits            940     1082     +142
- Misses          313      338      +25
- Partials         41       72      +31

Impacted Files
Coverage Δ
Complexity Δ

.../java/seedu/address/model/util/SampleDataUtil.java
20.00% <0.00%> (ø)
1.00 <0.00> (ø)

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

...a/seedu/address/logic/parser/AddCommandParser.java
75.75% <38.46%> (-24.25%)
8.00 <0.00> (ø)

...a/seedu/address/storage/JsonAdaptedAttraction.java
79.38% <65.85%> (-10.28%)
19.00 <0.00> (+6.00)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
85.24% <68.00%> (-12.32%)
20.00 <6.00> (+4.00)
:arrow_down:

...ava/seedu/address/model/attraction/PriceRange.java
73.68% <73.68%> (ø)
8.00 <8.00> (?)

...va/seedu/address/model/attraction/Description.java
76.92% <76.92%> (ø)
6.00 <6.00> (?)

...a/seedu/address/model/attraction/OpeningHours.java
76.92% <76.92%> (ø)
6.00 <6.00> (?)

...ava/seedu/address/model/attraction/Attraction.java
92.42% <78.26%> (-5.41%)
27.00 <4.00> (+4.00)
:arrow_down:

...in/java/seedu/address/model/attraction/Rating.java
80.00% <80.00%> (ø)
7.00 <7.00> (?)

... and 7 more

Continue to review full report at Codecov.

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


Fix access to context.request when Serializer is nested

DynamicFieldsMixin causes nested serializer to behave improperly if they require access to context.
When a serializer using DynamicFieldsMixin is nested, the self.context cached_property is accessed during __init__, and __init__ is called at django startup time, not request time.
Subsequent calls will return the value of self.context that existed during django startup, and won't have the context correctly set from its parent.
This fix will mean that nested serializers don't respond to the fields query param.  They never did anyway, so this shouldn't affect anyone's production code.
I believe it is correct behaviour to exclude nested serializers from responding to fields. It would be quite unexpected if both the parent and children serializers all dynamically altered their fields.
This pull request includes some tests that you can use regardless of accepting the fix. The fix itself is only 1 line/commit, and is easy to revert and accept the rest if you decide you wanted to address it a different way.

@jtrain sorry for not taking a look earlier. this PR now contains about a dozen commits. is that intended?

@dbrgn Hi, not really no. It should be split. All of it is useful, but I see there are actually two features here.
I'll see what I can do to put it back the way it was.

Oh no actually, ignore that, I've made a new feature and didn't make a pull request for it, mistakenly I thought you were referring to that too.
Yes, I generally make lots of small commits and merge. Is your workflow different? How should I go about formatting it to make it easier?

This is the commit here that applies the fix:
https://github.com/dbrgn/drf-dynamic-fields/pull/5/commits/478baa992adff5cc00c0c4147f72e7b24e760860
The other commits are either adding tests or edits I made to appease the linter

I am going to open up a fresh PR. There will be two.
One for the fix
One for the 'omit' feature
Feel free to ignore the feature if you don't think it aligns with your goals. I've found it useful to think about getting all fields "except" a certain one or two, rather than listing out all fields.

Thanks, I'll take a look tonight.
Btw, you can disregard the Codacity linter, it's quite verbose by default. Maybe I'll turn it off again and replace it with something like flake8.


backend: add signal handlers for controlled shutdown and to fix shutdown in Docker

Feature Suggestion
Add a signal handled that handles shutdown of the Backend. Both for the purposes of a controlled shutdown, but also to make the backend exit properly when running in docker.
Possible Implementation
This may be something that makes sense to make part of #11611 rather than to be implemented immediately, as we currently don't have any API surface in the backend where this fits very well. The primary candidate is of course createServiceBuilder but we may want to register the handlers earlier than that.
Context
#11954

Is there any workaround for this at the moment? Inability to shutdown cleanly is creating lots of orphaned processes when trying to run in docker locally

Hi! Could you provide some additional context to how this manifests itself for you currently. How are you stopping the service and what processes do you see?

A quick workaround solution is to use the --init option for docker which wraps the process in a baked in signal handler in the docker engine.
Docker Run
docker run --init
Docker Compose
version: '3'
services:
  backstage:
    build: .
    init: true

There is some progress on this in the new backend system that we're currently developing. It has a built-in LifecycleService where a plugin can register a shutdown hook that is executed when the backend receives a stop signal. The final piece there is to add a process.exit() once the hooks are executed.

This is implemented in the new backend system


Fix failed bomb kick case to increase occupancy for the right square

This bug could cause the step function to produce illegal states.
cinjon: That should hopefully fix your assert

i agree that that was a bug, still not sure that it's the only one that will cause this but will merge it in and then try some more empirical tests.


[Tables] Integration test libraries failing in nightly runs

Tables nightly test runs are failing with:

Error message:
[browser-tests]   TableServiceClient
[browser-tests]     listTables
[browser-tests]       × "after all" hook for "should list a specific page with continuationToken"
[browser-tests]         Chrome Headless 102.0.5002.0 (Windows 10)
[browser-tests]       Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.
[browser-tests]
[browser-tests] karma start --single-run exited with code 1
The script failed with exit code 1
##[error]Cmd.exe exited with code '1'.

For more details check here:

https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1603448&view=results

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'azure-sdk-bom:0.2510874,Tables:0.18426567,Azure.Identity:0.13838397'

Looks like this was a transient issue, pipeline has been passing for the last few days


Fix interface name error

This needs a PR from containerd/go-cni
Fixes the interface bug we hit last week. Justin, if you have a better way of resolving this let me know.

abandoning this approach for now.


[AutoPR network/resource-manager] Make NIC VM readOnly

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

This PR has been merged into https://github.com/Azure/azure-sdk-for-js/pull/469


there is no gameserver.ini!!!!!!!!!!!!!!

help!!

?

are you talking about ogar UL?, this is the plugin library. For ogar ul, the config has been moved to a folder called "settings"


HowTo Start?

Dear all,
i am really happy i found this API script.
I do have a cat using the current tractive tracker.
But i am a pyhton beginner, therefor i am afraid i would need some help to start. Maybe someone could help me? :)
I am using a raspberry pi 4b and ssh connection.
Performed pip install aiotractive and installed the script.
Than i created a python file sudo nano test.py
and enter the following code:
import asyncio

from aiotractive import Tractive

async def main():
  async with<EMAIL_ADDRESS>"mypassword") as client:
    print(32) #just to test
    await client.authenticate()
    trackers = await client.trackers()
    tracker = trackers[0]
    await tracker.details()

# interact with the client here
    pass

if __name__ == "__main__":
  asyncio.run(main())

Saved and than i performed python test.py, no errors but only getting 32 (because of the test print command).
The same using python3 test.py
If i do sudo python test.py
i am getting following errors:
Traceback (most recent call last):   File "/home/test.py", line 4, in <module>     from aiotractive import Tractive ModuleNotFoundError: No module named 'aiotractive'
Now i am pretty lost and dont know what to do or what to expect as a result.
At least, if i type my mail or password wrong i am getting an authorization error as a result. Also getting an error if i type the tracker ID wrong. But i am just getting no results displayed in the ssh console.
Is the way i am doing this correct? Can someone help me? This would be very nice!
Best regards Simon

Hi, I use this library like this https://github.com/FukjemiCZ/TractiveScraper
I have an application that stores data in a time database.
It works for me in K8s. You can find the installation in the docker image
Get inspired and then send me a link to your app.

Hello, i managed to get it working with this library.
Maybe to help others who are struggeling i post my code.
First I performed the steps in my first comment:

Installed the library pip install aiotractive
Created a python script sudo nano tractive.py

I wanted to read some information frequently of the tracker and send them via mqtt to my smarthome:
import asyncio
from paho.mqtt import client as mqtt_client
import random

from aiotractive import Tractive

broker = '192.168.0.xxx'
port = 1883
topic = "python/mqtt"
client_id = f'python-mqtt-{random.randint(0, 1000)}'
username = 'username'
password = 'password'

def connect_mqtt():
    # def on_connect(client, userdata, flags, rc):
    # For paho-mqtt 2.0.0, you need to add the properties parameter.
    def on_connect(client, userdata, flags, rc, properties):
        if rc == 0:
            print("Connected to MQTT Broker!")
        else:
            print("Failed to connect, return code %d\n", rc)
    # Set Connecting Client ID
    #client = mqtt_client.Client(client_id)

    # For paho-mqtt 2.0.0, you need to set callback_api_version.
    client = mqtt_client.Client(client_id=client_id, callback_api_version=mqtt_client.CallbackAPIVersion.VERSION>

    # client.username_pw_set(username, password)
    client.on_connect = on_connect
    client.connect(broker, port)
    return client

async def main():
  async with<EMAIL_ADDRESS>"password") as client:
    await client.authenticate()
    tracker = client.tracker("TRACKERID")
    detail = await tracker.details()
    #print(detail)
    info = await tracker.hw_info()
    #print(info)
    position = await tracker.pos_report()
    #print(position['latlong'])

    latlong = str(position['latlong'])
    latlong = latlong.strip("[]")
    latlong = latlong.split(", ")
    lat = latlong[0]
    long = latlong[1]
#    print(lat)
 #   print(long)

    battery_save_mode = str(detail['battery_save_mode'])
    battery_state = str(detail['battery_state'])
    battery_level = str(info['battery_level'])
    time = str(position['time'])
    time_rcvd = str(position['time_rcvd'])
    speed = str(position['speed'])
    sensor_used = str(position['sensor_used'])
    power_saving_zone_id = str(position['power_saving_zone_id'])
    altitude = str(position['altitude'])
    print(altitude)
  #  detail_str = str(detail)
    client = connect_mqtt()
    client.loop_start()
    client.publish("Charlie/lat", lat);
    client.publish("Charlie/long", long);
    client.publish("Charlie/battery_save_mode", battery_save_mode);
    client.publish("Charlie/battery_state", battery_state);
    client.publish("Charlie/battery_level", battery_level);
    client.publish("Charlie/time", time);
    client.publish("Charlie/time_rcvd", time_rcvd);
    client.publish("Charlie/speed", speed);
    client.publish("Charlie/sensor_used", sensor_used);
    client.publish("Charlie/power_saving_zone_id", power_saving_zone_id);
    client.publish("Charlie/altitude", altitude);
    client.loop_stop()
    pass

if __name__ == "__main__":
  asyncio.run(main())

Than i put this script into crontab crontab -e and let it run every 5 minutes
*/5 * * * * python3 /home/tractive.py
My code is not optimzed or cleaned-up. But its working for me and brings the information into mqtt.
From there on i run some automations and do a amazon alexa integration.

Seems like you got it working in the end, so I don't know if you still need someone to answer your initial questions.

Saved and than i performed python test.py, no errors but only getting 32 (because of the test print command). The same using python3 test.py

In your sample code, only "32" is written because that's what you told it to. main() does some things, but it's not told to print results, or to return any data. I guess you wanted it to print the result of await tracker.details(), you would have to wrap that line in a print()-Statement like print(await tracker.details()) or return the data and print it outside of the main()-function.
For data to appear in your console-output, it needs to be printed at some point.

If i do sudo python test.py i am getting following errors: Traceback (most recent call last): File "/home/test.py", line 4, in <module> from aiotractive import Tractive ModuleNotFoundError: No module named 'aiotractive'

Running pip install aiotractive makes the package available for the user who ran the command, it only exists for that user. If you run your script with sudo, the script is run as the root-user, not your user. As you didn't install the package for the root-user, it's not available in this case.
For security reasons, never install packages via pip as root as this means that whatever is being installed from the internet, has the highest possible permissions on your system.
If you don't have an open issue regarding this project, please close the issue.


Not sure how that made its way in here.


chore: remove stale code for conditional import of Literal

Description
The codebase contains the following code twice:
if sys.version_info >= (3, 8):
    from typing import Literal
else:
    from typing_extensions import Literal

I believe this can be removed, since pyproject.toml specifies that the minimum Python version for the project is 3.8:
requires-python = ">=3.8"

Related Issue(s)

Documentation

CI/CD is failing due to this issue. Merging this PR will solve it for now.


cmd/go: symbolic links and executable files are not preserved in modules

go version go1.11rc1 linux/amd64

The zip unarchiving used by cmd/go/internal/modfetch does not respect
symbolic links or file modes. This means that if there's a test directory that
contains symlinks or executable files (e.g. shell scripts) and there are
tests that rely on those properties, they will fail when the module is
a dependency and tests are run on it (for example with go test all).
Currently a symbolic link is treated as a plain file - it is unarchived as a normal
file with the symbolic link as its contents, which seems wrong even if we
decide not to support symlinks in modules. Similarly, the module
content hash check will treat a symbolic link identically to a regular file.

Per https://github.com/golang/go/issues/24057#issuecomment-377430635, I think this is working as intended.

@dsnet Thanks a lot for that link - I hadn't seen that. Given that's a deliberate decision, I'm fine with it (very happy actually), but I do think that somewhere you should at least get some error or warning that your symbolic link has been silently turned into a plain file.

Can you please give an example? Symbolic links are supposed to be silently elided from the underlying version control repo. It sounds like one of the converters is including them in the archive incorrectly.

See this repo: https://github.com/rogpeppe/test2
The tests directory in the top-level module has a symlink in it which is not elided on import.

@gopherbot, please backport to Go 1.11: incorrect module contents produce incorrect go.sum entries, and the fix is tiny.


VSCode - Hybrid Development - UI5 Version 1.111.1 Failure

Dear SuSaaS Team,
following step 2.5 in the hybrid development guide we're facing the following issue.

This issue happens on UI5 version 1.111.1.
After rebooting the application with the help of UI5 Diagnostics with version 1.108.10 the application loads as expected

I did a trick in default-env.json (I saw it at another place).

This resulted to load the application with lower version by default and fixed the issue.
Can we fix this somehow in the GitHub repository as well ? I am not sure this is the best approach to push such, but works.
Thank you in advance
Best regards
Attila

Hi @attilaberencsi,
we appreciate your input and support on keeping the repository up-to-date! I will double-check on this issue tomorrow morning and update the default-env.json accordingly! As you probably noticed, the ui5 destination in the destination service configuration (mta.yaml) is already fixed on 1.108.4.
Thanks again!
Martin

Hi @attilaberencsi,
I have recently committed some code and documentation changes. As part of these changes, the version of SAPUI5 is now consistently fixed at 1.108.4, which we used for our testing purposes. Additionally, the UI modules and Application Router now include a local.html file, enabling easy local testing by running cds watch. With these files, there is no need for a ui5 destination as the resource path is fixed. Please feel free to test the changes and provide us with your feedback. We appreciate your efforts and encourage you to keep up the good work!
@alperdedeoglu and @martinfrick

Changes can be found in in the following commits (same applies to basic version)
https://github.com/SAP-samples/btp-cf-cap-multitenant-susaas/commit/e4550da8e75e65e9c7e67a1fac54fe2040a6f82d https://github.com/SAP-samples/btp-cf-cap-multitenant-susaas/commit/bcb7037e4812cb199c2c938a88c1d392076ff18b https://github.com/SAP-samples/btp-cf-cap-multitenant-susaas/commit/bcb7037e4812cb199c2c938a88c1d392076ff18b

Thank You Guys again!
This is the most valuable repository for me so far :) !


externalization and shuffling the magic viz to allow some customizations

The viz/Magic Plots.snb shows some example using the:

fields selection (2 only atm)
using the Chart implementations (line, scatter, ...)
pairs →  like in R

wdyt @marcinjurek @axlpado ?

Good job! Nice refactoring too!
----- Messaggio originale -----
Da: "Andy Petrella"<EMAIL_ADDRESS>Inviato: 22/03/2015 22:49
A: "andypetrella/spark-notebook"<EMAIL_ADDRESS>Cc: "axlpado"<EMAIL_ADDRESS>Oggetto: [spark-notebook] externalization and shuffling the magic viz to allowsome customizations (#131)
The viz/Magic Plots.snb shows some example using the:
fields selection (2 only atm)
using the Chart implementations (line, scatter, ...)
pairs → like in R
wdyt @marcinjurek @axlpado ?
You can view, comment on, or merge this pull request online at:
https://github.com/andypetrella/spark-notebook/pull/131
Commit Summary
externalization and shuffling the magic viz to allow some customization → look at the in viz
File Changes
A app/assets/javascripts/notebook/magic/barChart.coffee (22)
A app/assets/javascripts/notebook/magic/lineChart.coffee (22)
A app/assets/javascripts/notebook/magic/pieChart.coffee (24)
A app/assets/javascripts/notebook/magic/scatterChart.coffee (24)
A app/assets/javascripts/notebook/magic/tableChart.coffee (71)
A app/assets/javascripts/notebook/magic/tabs.coffee (20)
M app/assets/javascripts/notebook/rickshawts.coffee (8)
M conf/notebooks/viz/Magic Plots.snb (101)
M modules/common/src/main/scala/notebook/front/Playground.scala (17)
M modules/common/src/main/scala/notebook/front/Renderer.scala (97)
M modules/common/src/main/scala/notebook/front/widgets/DataTable.scala (2)
M modules/common/src/main/scala/notebook/front/widgets/package.scala (384)
M modules/common/src/main/scala/notebook/util/Reflector.scala (19)
M modules/spark/src/main/scala_2.10/spark-1.2.1/notebook/kernel/Repl.scala (102)
Patch Links:
https://github.com/andypetrella/spark-notebook/pull/131.patch
https://github.com/andypetrella/spark-notebook/pull/131.diff
—
Reply to this email directly or view it on GitHub.

Thanks @axlpado !
The thing is that we cannot for now tune the chart so much... this is so difficult to enable, so many things.
The things I'm wondering is how to have a scatter plots with the same color/category → for now I had to pass y as the category otherwise dimple groups and adds the values by  x values.
The other thing is the fields → a Option[(String, String)]. I'd like to be able to change that to List[String] → this would have some lines in line chart, stacked bars in bars and so firth you know.
Any ideas? :-D

The DiyChart does the job pretty well so far, regarding notebook side chart tuning. These Chart implementation deserve a dedicated submodules, so I can expose it as an API.
More over, they deserve another pass later on, in order to be more reactive (in case we call apply on them).
For now, it's usable and fine, so let's merge it


Improved general connection pool

While investigating issue #1675, I noticed that the underlying data structure used at DBConnectionPool for storing internal connection objects is a Stack, which won't be the best choice in a high-demand multi-thread application.

Imagine a situation where you have an application which uses a large number of connections for a short time meaning that the pool has a relatively high population and then the app calms down to a steady state there it uses connections more slowly.
In this case with a stack a small number of connections will be pushed and popped off the stack regularly and then the other items will get older and eventually be removed by the pool cleanup because they're inactive.
In this case with a queue all connections are kept alive. You will retain all of the items in the pool not aging any out (depending on the number of items in the pool) so pools will be more highly populated.

Imagine a situation where you have an application which uses a large number of connections for a short time meaning that the pool has a relatively high population and then the app calms down to a steady state there it uses connections more slowly.
In this case with a stack a small number of connections will be pushed and popped off the stack regularly and then the other items will get older and eventually be removed by the pool cleanup because they're inactive.
In this case with a queue all connections are kept alive. You will retain all of the items in the pool not aging any out (depending on the number of items in the pool) so pools will be more highly populated.

I've been looking at CleanupCallback() trying think about your scenario and I don't think that's how it works. The pool pruning logic doesn't care when a connection was last used. If it is idle  in the pool when the method runs, it is subject to cleanup regardless of when it was last used. Yes, using a stack (as-is) will favor keeping the last used connection as the most used and least likely to be cleaned up, but changing to a queue won't keep idle connections from being pruned.. It will just more evenly distribute connection use across all of the items in the pool.

It has been some time since I tried to understand the connection pool logic and it's very possible that I misunderstood the structure. I thought this was how it worked. Since you've looked through the code with that scenario in mind and say it's fine then I'm ok with the change. I just wanted to flag up what I thought might be the reason for the stack.

@DavoudEshtehari am on vacation at the moment, and it's once I'm back it's very unlikely I'll be able to look at this before .NET Conf (at least November 10th). I'll happy to take a look afterwards though, if that's not too far away.

@roji thank you for the prompt reply. I wish you the best with .NET Conf, and I hope we could gain the benefit of your thoughts as well.

/AzurePipelines run

@DavoudEshtehari have you measured performance by run parallel testing with these changes? I tried but I saw the current implementation being much more performant.
Here's my repro: Test SqlConnection.OpenAsync performance. Feel free to modify and add output per connection attempt, and the difference would be visible easily when connecting to Azure SQL.
This is an important use case I would recommend keeping close and not regressing.

Looking at the changes, I don't think this should make any significant difference, negative or positive, so you may disregard my last comment. Slight movement in results is possible due to network jitter so that should be fine.
Stacks should be preferred for pool when you're looking at high usability, such that when accessing a pool element, it need not move other items around unlike queue, so time taken should be less to fetch/add an element in a heavy pool, I think. Applications creating and pooling large number of connections would most likely notice that, so I would be considerate of that.
I would like to understand why you think changing it to queue/bag would benefit a multi-threading app; in case I'm missing a logical reasoning?

Stacks should be preferred for pool when you're looking at high usability, such that when accessing a pool element, it need not move other items around unlike queue, so time taken should be less to fetch/add an element in a heavy pool, I think. Applications creating and pooling large number of connections would most likely notice that, so I would be considerate of that.

To compare the Stack and Queue, I don't have internal implementation knowledge of them. So, I put it for those who have such ability. Even though they don't have significant perf differences, I believe the benefit of using it on a multi-threaded app can be beneficial.

I would like to understand why you think changing it to queue/bag would benefit a multi-threading app; in case I'm missing a logical reasoning?

When I was running the repro, I noticed a reduction in the number of failures, plus a difference in the stack trace. You can find it by referring to the originally reported stacktrace and the result of this change.
Also, from the logs, I found the failure occurs when a connection's taken by a new thread that was owned by another thread before returning to the pool.

This is something we looked into in Npgsql a while ago as well. A long time ago, the pool was implemented as a stack to promote good pruning (for the same reasoning @Wraith2 explains in this comment). However, we ended up moving away from that, and not relying on the data structure for pruning. In other words, the current pruning algorithm samples the idle/busy state several times, and if it determines that pruning should occur, closes any idle connection (we don't care whether it's one that happened to get handed out recently or not).
The current Npgsql implementation uses System.IO.Channels, which is a conceptual queue that always manages efficient handing off of elements (connections) across threads, as well as efficiently waiting when the queue is empty (i.e. Max Pool Size has been reached).
In any case, I'd highly recommend measuring perf via benchmarking before making any actual changes. Would also be happy to continue talking about this topic (pooling implementation is very interesting and not at all trivial).


Minor changes to main, added BDD tests

Thanks for this cool package!
In effort to try continue development on this module, I added basic BDD tests. To properly handle errors in the tests, I had to add basic error handling middleware to the lib/index.js.
To run tests:
npm install
npm test

Additionally, added a spawn event which passes the child_process instance. This could be useful to hooking into and logging command output or getting the exit code.
Also, I can add a .travis.yml if you would like.

@coreh, If you are looking for a new maintainer for this project, let me know. I use this module and several other do as well and would like to continue development on it, instead of duplicating it onto NPM.
Let me know how you would like to proceed with development efforts. Thanks!

ping @coreh Hey, any chance we can some attention on this repo?


chore: disable the taskTimeoutSecs by default

Just wondering why 0 and not undefined for the empty value?

No specific reason, but in general it feels better to keep the value always there and with the same type, rather than having null/undefined or a value (similar to null objects pattern). With the zero I know there will be number, so I can just multiply/compare and forget about NaNs or similar (but here it would work just fine with NaN too I guess).