CodeMirror: #220 Do not HTML escape suggestions

I was using pe:codeMirror with the autocomplete feature via a bean method. The bean method returned several suggestions, including &&.
The problem was that this got displayed as && in the hint overlay from CodeMirror.
The suggestions are send back to the client correctly, but when building the suggestions array, the PrimeFaces extensions CodeMirror widget uses jQuery.html instead of jQuery.text. This returns the text escaped for HTML. This suggestions array is then passed on as the list option of the show hint addon. This option expects an array of strings. The show hint addon seems to be handling HTML escaping properly, so we should not be doing it. Perhaps it was different in a previous version of CodeMirror?

Most likely a previous version of CodeMirror or possibly when we went through just escaping everything a few years ago.  Thanks for the PR!


Any plans to make this friendlier for Israel usage?

My understanding of the code is that you can't set $galus false on the $zman object or pass it via the getters (which means digging through the source code to find the correct function), and then not all of the functions have a galut switch (like holidays() which doesnt do the same checks as is{$holidayname}( $galus ).
Are there any plans to fix this?

Hi @justlevine, that sounds like something we can add.
My thoughts are to have

the functions here: https://github.com/zmanim/zman/blob/master/src/Getters/Holidays.php accept an optional galus flag.
a global setter to set the mode for galus/israel which would in turn alter the default

Would that satisfy your needs? Or are there other places that you see this missing.
@zachweix any input here?

@tam5 what you're describing sounds perfect - especially the global setter!

I was thinking the exact same thing. If implemented properly it shouldn't break any code, so we can even upgrade it without requiring any changes for the users

@justlevine @zachweix version v1.3.0 has been released which adds a global setter as described.
Thanks @zachweix.
Let us know if that works for you @justlevine, and then the only thing left is we should include it somewhere in the documentation (https://github.com/zmanim/zmanim.github.io)


RemoveFromXml() throws on implicit element

When you call ProjectRootElement.RemoveAllChildren() on a project that uses an Sdk (and thus has implicit imports), RemoveFromXml throws when it encounters the implicit Import element.

Repro is slightly more complicated: this only happens after being cloned into.


[Icon Request] Different Icon for Go Test files

It would be nice to have a different Icon for Go test files to easier spot the file on a glance

If you refer to files named _test.go I'm afraid VSCode won't allow that for now, and it's sadly been a while people have been asking for it :/
See https://github.com/microsoft/vscode/issues/12493#issuecomment-1407398244

closing this for now, since i sadly cant do it. will keep an eye open if VSC ever change their supporter file patterns


Shift-clicking "Add Sun to Scene" or "Add Environment to Scene" no longer adds both sun and environment at the same time

Godot version
4.0.rc2
System information
Fedora 37, GeForce RTX 4090 (NVIDIA 525.85.05)
Issue description
Prior to 4.0.beta17, you could hold Shift to add both the current preview sun and environment to the scene when clicking either Add Sun to Scene or Add Environment to Scene in the 3D editor's preview sky/environment editor:

This feature no longer works since 4.0.beta17. If I hold Shift while clicking, it acts as if it wasn't holding Shift and will only add the sun or environment (which matches whichever button I clicked).
This feature is useful to add both sun and environment with a single click, speeding up the setup of simple test projects (useful for MRPs and prototyping).
I bisected the regression to 9f426498231816ccb9d686b3944373f61312aa24. cc @bruvzg
Steps to reproduce

Ensure the preview sun and sky are enabled, so you can edit them and add them to the current scene. Also make sure there is neither a WorldEnvironment nor a DirectionalLight3D node in the current scene.
Click the 3 vertical dots icon at the top of the 3D editor viewport, next to the globe.
Hold Shift and click Add Sun to Scene or Add Environment to Scene.
Notice it only adds one node, while it's supposed to add both. Test this in previous 4.0 betas for comparison.

Minimal reproduction project
N/A

I came by this issue as just clicking the buttons didn't work at all for me in Godot 4.1.1 on macOS 10.13.
Getting desperate I finally double clicked.
Then I found double clicking with shift worked as expected for me.

Can't replicate in v4.3dev2

That's odd, I quickly glanced at the code and didn't see anything wrong or specific to an OS. I'm on Windows 11 Build 10.0.22631. I can check again.

What if we replace it outright with a button right in the middle to add both? More accessible?

What if we replace it outright with a button right in the middle to add both? More accessible?

That could work too, as long as we can fit all 3 buttons without making the UI too large.

Then it could be called "Add Both" instead of showing the symbol?

Then it could be called "Add Both" instead of showing the symbol?

Sounds good :slightly_smiling_face:

It adds both if I first press and hold Left MB, then hold down shift and release mouse button.
On Windows I can hold down shift and then click on button.


DOC: add sphinx-copybutton to the documentation

I suggest to add the sphinx-copybutton to the sphinx extensions.
This would allow to copy code blocks and examples to the clipboard without text prompts. This is super useful to try some code from the documentation and avoids unnecessary editing and removals for the user.
The main change will be in conf.py, where the extension has to be listed.
extensions = [
    ...
    'sphinx_copybutton'
    ...
]

This extension is used in other projects like pandas and bokeh, too.
If wanted, I can open a pull request.

this sounds useful to me!

feel free to send a pull request @mosc9575 !


Add support for subpixel hinting

output  subpixel rgb|bgr|vrgb|vbgr|none
Manually sets the subpixel hinting for the specified output. This value is usually auto-detected, but some displays may misreport their subpixel geometry. Using the correct subpixel hinting allows for sharper text. Incorrect values will result in blurrier text. When changing this via swaymsg, some applications may need to be restarted to use the new value.

Currently complains about unknown directive 'subpixel' in profile output ... and fails.
Thanks !!

This isn't supported in kanshi, see the config file. Any reason why you want to configure subpixel in kanshi instead of sway?

One could need to configure subpixel hinting when specific displays are connected.
Leaving those output "Somecompany somemodel someserial" subpixel rgb lines in the sway config for each monitor that I connect to without proper subpixel detection seems inadequate... Or perhaps it's just me?

I also find it more intuitive to have subpixel in the same place as other output options such as scale.

The output-management protocol doesn't allow for changing the subpixel hinting. I'd rather not add this feature to the protocol.

This should be doable now using the "exec" feature added in #44.

Indeed. Closing.


Add Sphere x Despacito Mini Anti by GDVL

Song Name
Sphere x Despacito Mini Anti
Artist Name
GDVL
Source
Youtube
Youtube Link
I4Kuto9w_l0Iy9OJ
Direct File Link
No response
Song ID
739991
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 53858796

Song VN

Song VietNam


basic.rs failing to compile without async-smtp

Without the async-smtp dependency the compilation of the example/basic.rs failed with:
 let messages: Vec<_> = messages_stream.collect::<Result<_>>().await?;
   |                                            ^^^^^^^ method cannot be called on `impl async_std::stream::Stream+std::marker::Send` due to unsatisfied trait bounds

Same here. I wasn't able to find a workaround

I could solve this with
use futures::TryStreamExt;
...
let messages: Vec<_> = TryStreamExt::try_collect(messages_stream).await.unwrap();


Auto generated files detection

Could you please update your detection of "auto-generated" comment to be same as StyleCopAnalyzers have?
We started using CodeCracker side by side with StyleCopAnalyzers, but CC detects "auto-generated" comments more strictly and some of our auto-generated files are not detected as auto-generated.

@kindermannhubert Can you put as code sample ?

For clarity I write the line numbers too.
Now it will be detected by CC as auto-generated here:
1: //
2: // <auto-generated>
3: using System;

but not here:
1: // <auto-generated>
2: using System;

StyleCopAnalyzers detects both version as auto-generated.

@kindermannhubert It is actually checking for the second line.
What do you suggest? It would not be nice to go scanning the whole file for this comment, it would hurt performance. Would it be enough for you to check the 1st and 2nd lines?
Also, what tool is auto generating using this pattern (I'm curious)?

StyleCopAnalyzers goes through all comment lines at start of file.
See:
 var comments = trivia.Where(t => t.IsKind(SyntaxKind.SingleLineCommentTrivia) || t.IsKind(SyntaxKind.MultiLineCommentTrivia));
             return comments.Any(t =>
             {
                 string s = t.ToString();
                 return s.Contains("<auto-generated") || s.Contains("<autogenerated");
             });

where 'trivia' is leading trivia of first token. I think it is enough.
@giggio

Also, what tool is auto generating using this pattern (I'm curious)?

We have lot of custom auto-generated files from T4 and we place the aut-generated tag at the first line.

Ok, the suggestion to go through all the trivia makes sense.


I'm interested in this also ... bootstrapping a new GCP account coming from AWS with a fairly complex org. The examples in [https://github.com/terraform-google-modules/cloud-foundation-fabric] are great for organisational structure but they bootstrap terraform without using this module. This module seems preferable for getting a clean start to an account and observing good practices with regard to iam roles and groups etc.

I'm interested in this also ... bootstrapping a new GCP account coming from AWS with a fairly complex org. The examples in [https://github.com/terraform-google-modules/cloud-foundation-fabric] are great for organisational structure but they bootstrap terraform without using this module. This module seems preferable for getting a clean start to an account and observing good practices with regard to iam roles and groups etc.
I'm particularly looking at business unit example in the fabric repo.
Originally posted by @gilesw-vion in https://github.com/terraform-google-modules/terraform-google-bootstrap/issues/11#issuecomment-594140902

I'm not understanding if there's an ask here. You're free to use our examples, or the bootstrap module. Are you saying we should change our approach and integrate that module? Could you list in detail why do you think that's the case?


Specify in .ci.yaml to run in presubmit bot not postsubmit

Currently, in .ci.yaml, you can set a field presubmit: false, which causes a configuration to run only in postsubmit. It would also be useful to be able to run a configuration only in presubmit. This would allow us to better tailor presubmit feedback to the specific change. For example, presubmit clang-tidy can suggest fixes on a failure, but in postsubmit that wouldn't make sense.
cc @keyonghan

@zanderso this is possible today
  postsubmit: false

I recommend not using postsubmit: false as it can create an unknown state for the builder. With the way GitHub PRs are structured, a PR can land without running the builder. To work around this, we run all targets on postsubmit as well.
For clang tidy, it sounds like you're interested in a feature where certain targets can have a neutral status (instead of pass/fail).

Since this is already possible, I'll close this issue.


How to get the distribution of x in the lib?

How to get the distribution of x in the lib?
https://github.com/nchopin/particles/issues/83

See my reply in the other thread.


How do we wait to render something until the callback has finished?

Relevant to the payment display, also to the videocall setup keys.
How do we do this in the intro steps? Do updates to the player object in the intro steps (ie from the callback) get propagated onto the page display?

example
xport default function quality_control({ next }) {
    const player = usePlayer();
    const game = useGame();

    useEffect(() => { // runs on first mount
        console.log("QC Exit")
        player.set("paymentReady", false);
        player.set("isPaidTime", false); //stop paying participant when they get to this screen (so we can compute the time)
    }, [])

    if (player.get("paymentReady") && ! player.get("stopPaying") ) { //run only once!
        console.log("Played for " + player.get("activeMinutes") + " minutes, earned $" + player.get("dollarsOwed"));
        player.set("stopPaying", true)
    }

    const displayPayment = player.get("paymentReady") ? player.get("dollarsOwed") : "calculating..."

    return(

Thank you for participating!

                    You will be paid ${ displayPayment }  for your time today.

            <SurveyWrapper surveyJson={game.get("QCSurvey")} next={next} />

    )
}

Empirica.onChange("player", "isPaidTime", function ({isNew, player}) {
  // Todo: this is brittle if the callback fails.
  // If we get two "clock in" actions in a row, it takes the last one, but
  // won't have calculated the cumulative time properly
  // also, if we have two "clock out" actions in a row
  // (as could happen if called from the client side)
  // then the time will accumulate from the started time each time it's called

  const date = new Date();
  const timeNow = date.getTime()
  if(player.get("stopPaying")) {
    return;
  }
  if (player.get("isPaidTime")) {  // the participant clocks in
    player.set("startPaymentTimer", timeNow)
    player.set("paymentReady", false)
  } else {  // the participant clocks out
    const startedTime = player.get("startPaymentTimer")
    const minutesElapsed = (timeNow - startedTime)/1000/60;
    const cumulativeTime = player.get("activeMinutes") + minutesElapsed;
    player.set("activeMinutes", cumulativeTime)
    const dollarsOwed = (cumulativeTime/60 * config.hourlyPay).toFixed(2);
    player.set("dollarsOwed",  dollarsOwed)
    if (dollarsOwed > config.highPayAlert){
      console.warn("High payment for " + player.participant.identifier + ": " + dollarsOwed)
    }
    console.log("set dollars owed");
    console.log("Owe " + player.participant.identifier + " $" + player.get("dollarsOwed") + " for " + player.get("activeMinutes") + " minutes")
    player.set("paymentReady", true)
  }
});


Bump version to 0.8.3

v0.8.3 to include PR #46

Closed so I could include your recent bugfix PR.  Released new version https://hex.pm/packages/forcex/0.8.3
@timbuckley I've been thinking you might just wanna fork this project at some point since neither @jeffweiss nor I are currently working with Elixir or this library anymore.  I suppose Jeff could add you as an owner for this repo too, but at some point it seems weird to keep this code here.  Not sure if 2u would want to have this library under their github namespace or if Jeff has preferences.  Also if you forked it you could name it something that's not so uncomfortable to say out loud ;-)

I'm working with Elixir, but certainly not SalesForce (and/or its API) anymore. @timbuckley I'm happy to work something out if you want to maintain.

Also if you forked it you could name it something that's not so uncomfortable to say out loud ;-)

yeah, that's my bad and I had no way to rename in Hex 😱. As a result, in my mind, the c is now a hard-c. So more like Fork-Ex.


Visualization and sim info URL not shareable

Please describe the bug
If we share the URL to visualization, it won't work on other browsers. Would only work on the browser where the simulations are stored in the browser's local DB.
Please describe how to reproduce the bug
Steps to reproduce the behavior:

Dispatch a simulation from runbiosimulations
When it finishes, copy the URL
Paste and go to the URL in the incognito tab/window
There would be no data/visualization visible.

How should BioSimulations have behaved
The Simulation info, design, and visualization should be functional even if it's incognito or opened by another user on other computers.
Currently, all the simulation info is loaded (using Simulation Service) in the app only when the "Your Simulations" page is initialized. When we go to the logs/visualization page, it just uses the information from local storage to render as simulation info.
If we directly open the sim info URL ('view' component), the 'browse' component is never initialized, and therefore local storage is never initialized.
IMO, we should stop using local storage on the 'view' component, and fetch the sim info again (from dispatch API) on the 'view' component initialize for the respective simulation (using UUID).
@bilalshaikh42   @jonrkarr  thoughts?
URL: https://run.biosimulations.org/simulations/662d7e68-4efb-48aa-82aa-aa9a7b73886f

The implementation of this is not yet complete. I implemented most of this, but couldn't complete it because the API is still only partly functional.
The intended behavior is below.
When the app is opened, the following should happen:

The list of simulations that the user has worked with is loaded from local storage
The status of each of these is fetched from the API

Each time the user opens a page of a simulation

It should be fetched from the API
It should be added to local storage if its not already in local storage

@gmarupilla I looked into this. apps/dispatch/src/app/services/simulation/simulation.service.ts.getSimulationByUuid is not implemented as intended. getSimulationByUuid should query the API not local storage. Querying of a simulation that isn't stored in local storage should result in adding the simulation to the local storage.
I'm working on sorting this out. Unfortunately, its hard to make sure everything is working because the dispatch API isn't working right now. I'll have to finish debugging this when the API is available.

I brought this issue up in September as #1170. I had assigned this to @gmarupilla to connect with the API.

Remaining todo:

[ ] Check that app periodically polls API for updated status of simulations
[ ] Check that simulation export button works
[ ] Check that simulation import button works
[ ] Check that simulations not stored in local storage can be opened, and this results in adding an additional simulation to local storage

@gmarupilla @bilalshaikh42 please let me know when the API is working so I can finish making sure the local storage and retrieval from the database is working as intended.

#1630 fixed the job submissions. This is working
#1629 Should have addressed the results. I am not sure about this one. @gmarupilla  can confirm.

There was a bug in the submission of the jobs. The API is working for the following steps:

Using the /run path, create a simulations run. This creates a run with the status of Queued
Use the /jobinfo path to get the structure of the results
Use the /result path with the information from the Job info to view the results

Issues to address:

The status of the Job is not being updated properly.
The steps to get the results need to be changed to just call the /results enpoint

I think changing the front end to use the the simpler path is doable by next week. We can discuss tomorrow if we want to keep the current api and connect the front end or use the /results enpoint.
In either case, we can have the job updating properly shortly. All that needs to be done is to make a patch request from the service to the API

Status
I don't think it's critical to display detailed status to users now. For now, the status displayed to users could just be "Not yet run", "Succeeded", and "Failed", where

"Not yet run" covers created, queued, started, and running and
"Failed" covers all errors including run time errors, out of memory, time out, etc.

Does that simplify things?
Todos
I don't quite follow what needs to be done with respect to the API, service, and frontend. I can take care of any frontend stuff. I just need to know which endpoints to query for different information. We can sort this out tomorrow.

There is no real difference between the level of detail. The status just needs to be sent to the API either way.  @gmarupilla has already implemented monitoring the status. But right now, only the service is aware of the information
The breakdown between the  components is as follows: The API handles the database entries for the simulations runs, and has the information about user, filename, email, times etc. It provides methods for the front end to submit jobs, and retrieve results.
The service is responsible for connecting to the HPC to start jobs, monitoring the jobs, and getting the results from the HPC. It then uses the  API to then save the results and update the information.  This last step is what remains to be implemented

Thanks. I think I now understand what need to be done.

The required APIs are now working, changes will be merged with PR #1637.
Note: I've not tested/fixed all APIs. The APIs required for running a simulation, get logs, download results, get results in json format, get json data for chart, get result structure. All these are working. I've also plugged them with frontend.
Simulations are running end to end via frontend. Status are being updated as required as well (fixes #1640 )
@jonrkarr @bilalshaikh42 please review.

I substantially revised the view component and simulation service.
I believe this is working now.

Simulations are no longer dropped from the history -- this was due to saving to local storage before local storage finished initializing
Simulations run by other people or on other machines can be opened. This causes the simulation to be appended to local storage and its status updated using the API.

I also:

Set up the view component to also poll the API for updates when the status is created, queued, or running. This now behaves similarly to the browse simulations component.
Fixed the enabled/disabled status of tabs and select boxes based on the properties of the simulation and its outputs.
Fixed the change detection errors partly by passing viz data directly to the visualization component rather than through the visualization service


FUSETOOLS2-2050: Provide settings in VS Code for specifying the Camel version to run with JBang

Missings:

[ ] provide unit test
[ ] provide UI test
[ ] attach gif

@apupier what do you think about Camel version settings description? any suggestions what change? is that understandable?


Pagination broken with less than 5 pages

The pagination element doesn't seem to work correctly when using less than 5 total pages.
I am using it like:
<.pagination link_type="a" path={Routes.dashboard_news_path(@conn, :index)} current_page={1} total_pages={2} />

Thanks @philipgiuliani, looking into it.

Thanks, just pushed a fix in the latest version.

Thanks! Worked perfectly now 👍


Add new semesters

Add Fall 2017 semester to the drop-down for mid-semester reviews.

Done. Thank you for the notification!

Note that semesters are cached, and caches expire after 24 hours. This aggressive caching helps reduce DB bandwidth consumption (thus reducing costs).


FR-T5.1-11: xOpera should be able to parse get_artifact TOSCA function

ID:
FR-T5.1-11

Type:
USABILITY

User  story:
As a user I would want to use the prepared orchestration artifacts (e.g zipped FaaS function files) directly in a sevice template.

Requirement:
xOpera tool should have a support for get_artifact TOSCA function that is used to retrieve artifact location between entities defined in the same service template.

Extended Description:
Here the support for full TOSCA artifact function should be added and then the function could be used like this:  get_artifact: [ <modelable_entity_name>, <artifact_name>, <location>, <remove> ].

Priority:
Should have

Affected Tools:
DELIVERY_TOOLCHAIN, ORCHESTRATOR

Means of Verification:
Try to deploy a service template that uses get_artifact TOSCA function.

Thanks @anzoman,
@gcasale  to review

This seems a must?

This gives a better user experience and makes templates even more general, as it is possible to change/inject new artefacts (FaaS functions) in existing templates.
However, I don't see it as a must.

Accepted

Opera 0.6.0 now supports using get_artifact TOSCA function.

OK to close


Windows service: unquoted service path can allow for privilege escalation

Hello!
We use Telegraf (which depend on this library) and our vulnerability scanner notifies us of the following vulnerability with the telegraf service: Windows Unquoted Search Path or Element can allow local privilege escalation

I did some brief digging around and I think the problem boils down to this line: https://github.com/kardianos/service/blob/36c9bf8c36a2a4ca4629fb338687a850bef3eee4/service_windows.go#L226
Here you take the path to the executing program (if I understood correctly) and later use it when you install the service. Doing this without adding quotes to the path means that the unquoted service path issue comes into effect.
You should be able to simply add quotes to the path, and in doing to solve the issue at hand.

see #290

Hello?

@trespassing-potato Could it be that you got fooled by your security scanner?
Because if you step into the m.CreateService(... call at line 256, you will see that the path is already being escaped by a call to syscall.EscapeArg() (see https://docs.microsoft.com/en-us/previous-versions/ms880421(v=msdn.10)?redirectedfrom=MSDN).
Note: I copied the comment from the pull request #290 - just in case someone stumbles upon this issue.

Yes, I believe so. I should have looked into it further before raising this issue, my apologies!
(I tried to reproduce the issue discovered by our scanner, but the installed service in question (telegraf) has a quoted path)

@trespassing-potato This vulnerability CVE-2022-29583 still shows up in scans. And its still not marked as invalid. Can you please help ?


Waterpump on keystone trailers

Running isn't really running.  Running just means it has power.
There is no sensor that tells if it is actually running the pump.'
City water / external water sensor is just the inverse of pump powered.  Not really useful.
System Pressure doesn't actually show any value other than 0.

set this in the mqtt for any sensor not used
"enabled_by_default": False,  # this implementation doesn't expect this sensor to be used


How to run in Docker?

How can I run this library in Docker? Currently, when I include it in my dependencies, it says it cannot find the source file ggml.h, and that the wheel build failed. What does this mean?
Here is the error.
Using CPython 3.12.7 interpreter at: /usr/local/bin/python
Creating virtual environment at: .venv
Resolved 76 packages in 2.79s
error: Failed to prepare distributions
  Caused by: Failed to download and build `pywhispercpp==1.2.0`
  Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)

[stdout]
running bdist_wheel
running build
running build_py
creating build/lib.linux-aarch64-cpython-312/pywhispercpp
copying ./pywhispercpp/utils.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp
copying ./pywhispercpp/_logger.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp
copying ./pywhispercpp/model.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp
copying ./pywhispercpp/__init__.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp
copying ./pywhispercpp/constants.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp
creating build/lib.linux-aarch64-cpython-312/pywhispercpp/examples
copying ./pywhispercpp/examples/__init__.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp/examples
copying ./pywhispercpp/examples/assistant.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp/examples
copying ./pywhispercpp/examples/livestream.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp/examples
copying ./pywhispercpp/examples/main.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp/examples
copying ./pywhispercpp/examples/recording.py -> build/lib.linux-aarch64-cpython-312/pywhispercpp/examples
running build_ext
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- pybind11 v2.9.2
-- Found PythonInterp: /root/.cache/uv/builds-v0/.tmplYIiSU/bin/python (found version "3.12.7")
-- Found PythonLibs: /usr/local/lib/libpython3.12.so
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- CMAKE_SYSTEM_PROCESSOR: aarch64
-- ARM detected
-- Configuring done (0.4s)

[stderr]
CMake Deprecation Warning at pybind11/CMakeLists.txt:8 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Warning (dev) at pybind11/tools/FindPythonLibsNew.cmake:98 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
  pybind11/tools/pybind11Tools.cmake:50 (find_package)
  pybind11/tools/pybind11Common.cmake:206 (include)
  pybind11/CMakeLists.txt:200 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at whisper.cpp/CMakeLists.txt:468 (add_library):
  Cannot find source file:

    ggml.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc

CMake Error at whisper.cpp/CMakeLists.txt:468 (add_library):
  No SOURCES given to target: whisper

CMake Generate step failed.  Build files cannot be regenerated correctly.
Traceback (most recent call last):
  File "<string>", line 11, in <module>
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/build_meta.py", line 431, in build_wheel
    return _build(['bdist_wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/build_meta.py", line 422, in _build
    return self._build_with_temp_dir(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/build_meta.py", line 403, in _build_with_temp_dir
    self.run_setup()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
    exec(code, locals())
  File "<string>", line 132, in <module>
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/__init__.py", line 117, in setup
    return distutils.core.setup(**attrs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 183, in setup
    return run_commands(dist)
           ^^^^^^^^^^^^^^^^^^
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 199, in run_commands
    dist.run_commands()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands
    self.run_command(cmd)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/dist.py", line 991, in run_command
    super().run_command(command)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/command/bdist_wheel.py", line 407, in run
    self.run_command("build")
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/dist.py", line 991, in run_command
    super().run_command(command)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/command/build.py", line 135, in run
    self.run_command(cmd_name)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/dist.py", line 991, in run_command
    super().run_command(command)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 973, in run_command
    cmd_obj.run()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/command/build_ext.py", line 98, in run
    _build_ext.run(self)
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions
    self._build_extensions_serial()
  File "/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial
    self.build_extension(ext)
  File "<string>", line 118, in build_extension
  File "/usr/local/lib/python3.12/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['cmake', '/root/.cache/uv/sdists-v5/pypi/pywhispercpp/1.2.0/qU07NrZq-gfmEEDNyCqAL/pywhispercpp-1.2.0.tar.gz', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/root/.cache/uv/sdists-v5/pypi/pywhispercpp/1.2.0/qU07NrZq-gfmEEDNyCqAL/pywhispercpp-1.2.0.tar.gz/build/lib.linux-aarch64-cpython-312/', '-DPYTHON_EXECUTABLE=/root/.cache/uv/builds-v0/.tmplYIiSU/bin/python', '-DCMAKE_BUILD_TYPE=Release', '-DEXAMPLE_VERSION_INFO=1.2.0', '-GNinja', '-DCMAKE_MAKE_PROGRAM:FILEPATH=/root/.cache/uv/builds-v0/.tmplYIiSU/lib/python3.12/site-packages/ninja/data/bin/ninja']' returned non-zero exit status 1.
The command '/bin/sh -c uv sync' returned a non-zero code: 2

Here is my Dockerfile.
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim

WORKDIR /app

COPY pyproject.toml /app/pyproject.toml
COPY main.py /app/main.py
COPY routers /app/routers
COPY prompts /app/prompts
COPY outputs /app/outputs
COPY audio /app/audio

RUN apt update
RUN apt install -y build-essential ffmpeg
RUN uv sync

COPY .env /app/.env
COPY env.py /app/env.py

EXPOSE ${PORT}

CMD ["uv", "run", "python", "main.py"]

I use uv if that's relevant. Here is the dependencies section of my pyproject.toml.
dependencies = [
    "fastapi>=0.115.0",
    "google-generativeai>=0.8.2",
    "jsonpickle>=3.3.0",
    "more-itertools==10.5.0",
    "numba==0.60.0",
    "numpy==2.0.2",
    "pydub>=0.25.1",
    "python-dotenv>=1.0.1",
    "python-multipart>=0.0.12",
    "pywhispercpp>=1.2.0",
    "regex==2024.9.11",
    "soundfile>=0.12.1",
    "supabase>=2.8.1",
    "tiktoken==0.8.0",
    "uvicorn>=0.31.0",
]

@leftmove, it seems like you are using an ARM machine. There are no pre-built wheels for arm in the current PYPI version unfortunately.
I'll try to include it in the next release.
In the meantime, You can try to build it from the source.


Update alter-index-transact-sql.md

Better description of what STATISTICS_NORECOMPUTE actually does, also slightly reworded the warning for this option.

@HugoKornelis Thanks for doing some of the heavy lifting 😄

Replaced by internal PR https://github.com/MicrosoftDocs/sql-docs-pr/pull/30641.


Fix of the performance bug in get_useful_states

I guess we can merge this quickly so that Tom can run the next batch of experiments with it now.


Hosting react app on AWS Ampilfy

I'm trying to host a react app on was amplify but during the building stage, I keep getting an error. I have attached pics of my setup.
CustomerError: Artifact directory doesn't exist: build
version: 1 frontend:   phases:     # IMPORTANT - Please verify your build commands     build:       commands: []   artifacts:     # IMPORTANT - Please verify your build output directory     baseDirectory: build     files:       - '**/*'   cache:     paths: []

version: 1 frontend:   phases:     # IMPORTANT - Please verify your build commands     build:       commands: []   artifacts:     # IMPORTANT - Please verify your build output directory     baseDirectory: build     files:       - '**/*'   cache:     paths: []

Hi @raboomar can you provide you App ID?

I am also having this problem.  is there an answer to it?  I am building a nextjs amplify app.
2022-07-16T16:56:08.974Z [INFO]: !!Invalid custom header config file. The customHeaders key should be an array
2022-07-16T16:56:09.004Z [ERROR]: !!! CustomerError: Artifact directory doesn't exist: build

I wasn't in the right folder make sure your path is set right


Implements waypoint uploading.

@tcr3dr This works with the mission_import_export.py example. Merge please :-) Fixes #376

@tcr3dr Thank you. We'll need a new rc build on PyPi for this.


RuntimeError: Output size is too small

Thank you very much for modifying last bugs. It has benefited me a lot. But when I input following codes:
model = MobileNet2(in_channels=2, num_classes=10)
print (model)
x = torch.autograd.Variable(torch.randn(1, 2, 20, 224))
print(model(x))
I encounter such errors : RuntimeError: Given input size: (1280x1x7). Calculated output size: (1280x0x1). Output size is too small at /opt/conda/conda-bld/pytorch-cpu_1518281700712/work/torch/lib/THNN/generic/SpatialAveragePooling.c:64

Input size is assumed to be 224x224


Samples for nodejs script

I'm sorry, but I can't find any sample or the real API documentation for controlling my RGB Led Device using this library. Or am I missing something? Thanks for your work on the library, btw.

I don't understand what you are asking for.  This is not an API, this is a script which provides a bridge to control Tuya devices locally via MQTT.  The documentation has plenty of examples how to use this script with MQTT.

I'm sorry, but where are those examples? I can't find any. I've used tuyapi, and there are examples, but how can I use the friendly topics that tuya-mqtt implements? Are there any examples of that somewhere? Thanks

https://github.com/TheAgentK/tuya-mqtt/blob/master/docs/DEVICES.md

Ok... this doesnt' explain how can I make a nodejs script and change my led strip color... this all is so confusing and no example to work with.

If you want to control your devices via a nodejs script, maybe tuya-mqtt is the wrong approach.... tuya-mqtt is designed to control devices via MQTT... So basically you need a script which connects to your MQTT broker and from there you can send commands to the topics...

Why would this project need to explain how to make a nodejs script?  If you want to write your own NodeJS script, you should use TuyAPI, which you stated you already have done.
This project IS a NodeJS script, which allows you to interface Tuya devices to MQTT, you can then control your lights with any MQTT client, not NodeJS scripting required.  You don't need to make a NodeJS script to use this project as, other than being written for NodeJS, this project has nothing to do with it.  The linked documentation shows how to create a devices file so that your Tuya device will be exposed via MQTT and it documents all topics for the device.  I'm not sure what more I can possibly provide.

Instead of saying "this project shouldn't" why just don't point me to real samples, as it seems you may know? This is supposed to be a community of helping people, not people blaming other people asking for help. Thanks for nothing.

You opened an issue - which basically means you found something which is not working like it should.... Issues are not intended to skip reading documentation! Maybe you should go and google the difference between NodeJS and MQTT.

Thanks for nothing.

Likewise!

Instead of saying "this project shouldn't" why just don't point me to real samples, as it seems you may know?

There's literally a real sample config directly in the documentation that was linked above, and every single topic is fully documented, and if you just run the script one time it spits out all the topics for your device.  If you won't try it what good is linking to a different sample going to do?  Did you even try to use this script?

Thanks for nothing.

LOL!  That's the thing about community, the less effort you put in yourself, the less you're likely to get out.  If you put in nothing, well, that's result we have here.  If you decide that you are willing to put in some effort to figure this out, I'm still happy to help, but for now I'm closing this.


Cache busting for js

This PR enables Whitenoise caching / cache busting/
See https://whitenoise.evans.io/en/stable/django.html#add-compression-and-caching-support and https://docs.djangoproject.com/en/3.2/ref/contrib/staticfiles/#manifeststaticfilesstorage.
In a nutshell:

collectstatic will generate static files with a unique hash
using the static template tag will generate a link to the file names with hashes

@nikita-marchant let's discuss this

Nice catch the TEST_RUNNER = "hexa.core.test.runner.DiscoverRunner" !
This is why my PR did not work https://github.com/BLSQ/openhexa-app/pull/44


MXD Backend App - Dependency

The Backend App dependencies are generated manually with Dash License Tool.
Dependabot should update dependencies automatically.

Addressed in upstream PR: https://github.com/eclipse-tractusx/tutorial-resources/pull/402


Send focus_form 'type' field as 'elementType'

Change form and focus form events collect the same data and are tracked via the same method. Currently the schema for focus_form events has an elementType field but no type field, where the change form event uses type - resulting in legitimate events going to bad rows.
Minor schema upgrade should fix this issue.

The more pragmatic solution is to have the tracker conform to the existing schema - renamed issue to suit


IaaS errors are not bubbled up

Description
The error thrown by IaaS while deleting snapshot is not bubbled up.
https://github.com/cloudfoundry-incubator/service-fabrik-broker/blob/master/lib/iaas/CloudProviderClient.js#L179

Steps to reproduce the issue:

Create a backup
Delete the snapshot directly from the IaaS
Try deleting the backup

Describe the results you received:
The backup gets deleted.
Describe the results you expected:
The backup should not be deleted and a valid error should be thrown

@muralisc closing it as PR is merged.


feat: add page.xpath

Adds

page.xpath
frame.xpath
elementHandle.xpath

fixes #537

I'm not an XPATH user so my opinion matters little, but the inclusion of elementHandle.xpath() stands out to me. Might want to see that element-rooted xpath is desired before committing to it in the API. It wasn't mentioned in #537 so it's hard to say..

@paulirish I wanted to move all the query selector code to elementHandle anyway. It comes mostly for free. And elementHandle.xpath('..') to get the parent feels pretty nice.

I think we should also have page.$x as we have page.$ and page.$$, WDYT?

@brikou just as an alias or with different functionality? I think things could quickly get very cryptic.


Add validateAt to validation schema

The validateField function requires the validateAt function to be present on the validation schema. This pull request does that. Includes new tests, all passing locally.

Can you rebase this PR and resolve the conflicts so I can review this request?


Add Contributor License Agreement

Added cla-assistant.io to belbio org so any pull requests are checked for an up to date CLA.
The cla-assistant uses my github account to manage it.


Fixing panic when pubsub handler returns an error

Description
This PR removes some explicit casts to string when logging after a pubsub handler returns an error. Since all the formats accept the cloud event values as %v there is no need to assume they are strings.
Issue reference
Resolves #3281
Checklist

[x] Code compiles correctly
[ ] Created/updated tests
[x] Unit tests passing
[x] End-to-end tests passing
[ ] Extended the documentation / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Specification has been updated / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]
[ ] Provided sample for the feature / Created issue in the https://github.com/dapr/docs/ repo: dapr/docs#[issue number]

/cc @artursouza

Can we add a test that reproduces the bug?

@wcs1only I added a test but also noticed this only fixes the HTTP side.  The gRPC pubsub needs the same sort of fix. I'll add to this PR next week.

LGTM

/ok-to-test

/ok-to-test

/ok-to-test


Can I get to know where I can find the Boxer 1.0.0?

I am trying to satisfy your requirements. Kindly let me know where I can find the Boxer corpora as mentioned in your Read.Me file. Also I would like to know whether your program generates paraphrases or identifies paraphrases from some mentioned dictionary?
Would like to know whether you can share the code for the following research papers:

Split and Rephrase, Shashi Narayan, Claire Gardent, Shay B. Cohen and Anastasia Shimorina, to appear in the 2017 Conference on Empirical Methods on Natural Language Processing (EMNLP), Copenhagen, Denmark.

Neural Extractive Summarization with Side Information, Shashi Narayan, Nikos Papasarantopoulos, Mirella Lapata, Shay B. Cohen, In arXiv:1704.04530 (preprint).

Our models were trained on the corpora mentioned in this paper:
A monolingual tree-based translation model for sentence simplification, Z Zhu, D Bernhard, I Gurevych 2010
Please contact Zhu's website to download the data. No we do not use any additional dictionary.
I plan to release the datasets and the codes from both mentioned paper sometime in August. Keep in eye.

@shashiongithub  Where exactly I can find it. I tried searching on internet. Please do enlighten me.

@shashiongithub You know I am sleepless since, 5 days. just looking for paraphrase generator. I found your a bit compatible for what I am looking for. Kindly, if possible can you make it a bit sooner, if possible in this month. It will be awsome.

It used to be available on Zhemin's webpage, but I am not able to find it now. Could you write to Zhemin and check?

Sure I will. Can you send me the link of website?

Ok I will write.... Thank you.

https://sites.google.com/site/zhuzhemin/
For some reason I am not able to access them.

MIght be some privilege issue from the owner of the site.

@shankha117 No I didn't got it.

@JafferWilson you can try https://github.com/valeriobasile/learningbyreading.
but again this works only for small data.
Please let me know if you make some progress on this model.


EPIC: cosmwasm frameworks should be easily deployable via interchaintest

Ppl building on CW
Want to easily be able to deploy complex setup envs via interchaintest as a one-liner
Because it aligns the right thing to do w/ the easy thing to do (and save them—and Future Us—tens of hours)

### Common CW frameworks should be easier to setup & interact with in interchaintest
- [ ] https://github.com/strangelove-ventures/interchaintest/issues/1136
- [ ] https://github.com/strangelove-ventures/interchaintest/issues/1137
- [ ] https://github.com/strangelove-ventures/interchaintest/issues/1134
- [ ] https://github.com/strangelove-ventures/interchaintest/issues/1135

Idea
A user should launch a new chain. After it starts and is running, a single line add of cwabstract := chain.GetNode().SetupAbstractSDK(options ...Opts) which will then setup the cosmwasm contracts for abstract on the chain. (Opts example. It's like a builder pattern)
Contracts can either be auto downloaded from the github CI & cached for the user, or we can keep hard coded contracts/ folder. Must have a README.md w/ where the files are and the version upstream (or commit)
Further, interaction would be very nice within for exec & queries: i.e. cwabstract.myInteractionMethod(...). This would just wasm execute under the hood. Similar to BankSend and others
### Tasks

Development is paused as @kakucodes is working on other projects. Returning to backlog.


Upgrade QA / test infrastructure

Revisit versions, platforms, machines for testing for next release:

Support Java 1.8?
Drop IE9 support?
Clean machines?
see discrepancies on recommended vs. tested npm/node

// @gghai, @laurelnaiad

QA infrastructure (VMs and regression as needed) to be upgraded to test following versions for Samplestack 1.1:
OS
RHEL 6.6
Windows 7 64-bit Edition (x64)*
Mac 10.8 Mountain Lion
Browsers
FF 35
IE 10 (on Windows only)
Chrome 39
JVM
1.7-71
Other dependencies - to be updated/locked 2 weeks prior to release, based on developer input (see Readmes for documentation - browser/node)
npm
node
bower
gulp
(to be updated/locked 2 weeks prior to release)
MarkLogic Products
MarkLogic 8.0-1
Java Client 3.0.1
Node Client 1.0.0

MAC is upgraded to<EMAIL_ADDRESS>.  https://github.com/marklogic/marklogic-samplestack/issues/621#issuecomment-90740169

Update the list for record purposes .
QA infrastructure (VMs and regression as needed) to be upgraded to test following versions for Samplestack 1.1:
OS
RHEL 6.6
Windows 7 64-bit Edition (x64)*
Mac 10.8 Mountain Lion
Browsers
FF 34
IE 11 (on Windows only) - VM box comes with per-installed browser IE11 .QA has conducted all the tests on IE11
Chrome 41
JVM
1.7-71
Other dependencies -
npm
node
bower
gulp
(to be updated/locked 2 weeks prior to release)
MarkLogic Products
MarkLogic 8.0-1.1

Can you please confirm if everything above is included in readme's .Thanks

Do you want me to QA the readmes? I might not be best to QA them since I last modified them. Might be better to have a second set of eyes from the QA staff on this?

This may not require complete README review. Just ensuring the above entries are present in README is a good enough .


Dust selection bug

ontop of #1185 to avoid conflicts

adds a failing test when dust is selected
comments out dust selection for now

I clicked update on this PR.

I vote that we accept the amount leaked (1-dust, i.e. < 5_000) and the amount demotion (again < 5_000) in order to rescue that same amount, and have a less complex policy.

In other words, I think it's a useful test highlighting an interesting case.   Probably the best balance of concerns is to take the small demotion and information leak, for the payoff of a relatively simple sweeping policy, and rescue (albeit demoted) of the dust.

closed for #1188


Near-clash on setter names not detected

This is a corner case which will be resolved after Dart 2 is in place. Hence it is currently classified as low priority.
Consider the following program:
class A {
  void set n(value) {}
}

class B extends A {
  static void n() {}
}

main() => new B();

The language specification has
It is a static warning if a class $C$ declares a static method named $n$ and
has a setter named $n=$.

Presumably, such a static warning should be a compile-time error in Dart 2, but the situation is not detected. A similar behavior occurs for the following:
class A {
  static void n() {}
  static void set n(value) {}
}

void main() {
  new A();
}

Note the associated language specification issue #23739.

Analyzer now reports:

Class 'B' can't define static member 'n' and have instance member 'A.n' with the same name.


Git Status Section Hiding Font

The git status section of power line and the font inside it are always the same colour no matter the font or colour preset I choose. I attempted to change the bright black setting but the font once again seems to choose the same one.
Not highlighted:

Highlighted:

iTerm2 + Oh-My-Zsh + zsh 5.5.1 (x86_64-apple-darwin17.5.0)

Not a big deal. Fixed as soon as I committed. Not sure why it showed that section in the first place.


[BUG] ValueError: .to is not supported for 4-bit or 8-bit models. Please use the model as it is, since the model has already been set to the correct devices and casted to the correct dtype.

Describe the bug
Loading the llama2 70b model using 4 bit(bitstandbytes) and then distributed the model by calling deepspeed.initialize. Get the following error
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[3], line 39
      1 deepspeed_config = {
      2     "optimizer": {
      3           "type": "AdamW",
   (...)
     37     "contiguous_gradients": True,
     38 }
---> 39 model, optimizer, _, lr_scheduler = deepspeed.initialize(
     40 model=model,
     41 model_parameters=model.parameters(),
     42 config=deepspeed_config,
     43 )

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed/__init__.py:177, in initialize(args, model, optimizer, model_parameters, training_data, lr_scheduler, mpu, dist_init_required, collate_fn, config, config_params)
    165         engine = DeepSpeedHybridEngine(args=args,
    166                                        model=model,
    167                                        optimizer=optimizer,
   (...)
    174                                        config=config,
    175                                        config_class=config_class)
    176     else:
--> 177         engine = DeepSpeedEngine(args=args,
    178                                  model=model,
    179                                  optimizer=optimizer,
    180                                  model_parameters=model_parameters,
    181                                  training_data=training_data,
    182                                  lr_scheduler=lr_scheduler,
    183                                  mpu=mpu,
    184                                  dist_init_required=dist_init_required,
    185                                  collate_fn=collate_fn,
    186                                  config=config,
    187                                  config_class=config_class)
    188 else:
    189     assert mpu is None, "mpu must be None with pipeline parallelism"

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed/runtime/engine.py:262, in DeepSpeedEngine.__init__(self, args, model, optimizer, model_parameters, training_data, lr_scheduler, mpu, dist_init_required, collate_fn, config, config_class, dont_change_device)
    259 self.pipeline_parallelism = isinstance(model, PipelineModule)
    261 # Configure distributed model
--> 262 self._configure_distributed_model(model)
    264 # needed for zero_to_fp32 weights reconstruction to remap nameless data to state_dict
    265 self.param_names = {param: name for name, param in model.named_parameters()}

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed/runtime/engine.py:1113, in DeepSpeedEngine._configure_distributed_model(self, model)
   1111 # zero.Init() handles device placement of model
   1112 if not (self.dont_change_device or is_zero_init_model):
-> 1113     self.module.to(self.device)
   1115 # MoE related initialization
   1116 for _, module in self.module.named_modules():

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/transformers/modeling_utils.py:1895, in PreTrainedModel.to(self, *args, **kwargs)
   1892 def to(self, *args, **kwargs):
   1893     # Checks if the model has been loaded in 8-bit
   1894     if getattr(self, "is_quantized", False):
-> 1895         raise ValueError(
   1896             "`.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the"
   1897             " model has already been set to the correct devices and casted to the correct `dtype`."
   1898         )
   1899     else:
   1900         return super().to(*args, **kwargs)

ValueError: `.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the model has already been set to the correct devices and casted to the correct `dtype`.

To Reproduce
Steps to reproduce the behavior:
Here is the code to reproduce
model_name = 'llm-models/Llama-2-7b-chat-hf'
bnb_config = BitsAndBytesConfig(
        load_in_4bit=True,
        bnb_4bit_use_double_quant=True,
        bnb_4bit_quant_type="nf4",
        bnb_4bit_compute_dtype=torch.bfloat16,
    )

model = AutoModelForSequenceClassification.from_pretrained(
    model_name,
    return_dict=True,
    quantization_config=bnb_config
)

deepspeed_config = {
    "optimizer": {
          "type": "AdamW",
            "params": {
                "lr": "auto",
                "betas": "auto",
                "eps": "auto",
            },
    },
    "scheduler": {"type": "WarmupLR", "params": {"warmup_num_steps": 100}},
    "fp16": {"enabled": False},
    "bf16": {"enabled": True},  # Turn this on if using AMPERE GPUs.
    "zero_optimization": {
        "stage": 3,
        "offload_optimizer": {
            "device": "cpu",
            "pin_memory": True
        },
        "stage3_gather_16bit_weights_on_model_save": True
    },
    "gradient_accumulation_steps": 1,
    "gradient_clipping": True,
    "steps_per_print": 10,
    "train_micro_batch_size_per_gpu": 16,
    "wall_clock_breakdown": False,
    "overlap_comm": True,
    "contiguous_gradients": True,
}
model, optimizer, _, lr_scheduler = deepspeed.initialize(
          model=model,
         model_parameters=model.parameters(),
        config=deepspeed_config,
)

Expected behavior
get a distributed model and optimizer and etc
ds_report output
Please run ds_report to give us details about your setup.
[2024-02-26 15:34:02,963] [INFO] [real_accelerator.py:191:get_accelerator] Setting ds_accelerator to cuda (auto detect)
--------------------------------------------------
DeepSpeed C++/CUDA extension op report
--------------------------------------------------
NOTE: Ops not installed will be just-in-time (JIT) compiled at
      runtime if needed. Op compatibility means that your system
      meet the required dependencies to JIT install the op.
--------------------------------------------------
JIT compiled ops requires ninja
ninja .................. [OKAY]
--------------------------------------------------
op name ................ installed .. compatible
--------------------------------------------------
 [WARNING]  async_io requires the dev libaio .so object and headers but these were not found.
 [WARNING]  async_io: please install the libaio-devel package with yum
 [WARNING]  If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
async_io ............... [NO] ....... [NO]
fused_adam ............. [YES] ...... [OKAY]
cpu_adam ............... [NO] ....... [OKAY]
cpu_adagrad ............ [NO] ....... [OKAY]
cpu_lion ............... [NO] ....... [OKAY]
 [WARNING]  Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
evoformer_attn ......... [NO] ....... [NO]
fused_lamb ............. [NO] ....... [OKAY]
fused_lion ............. [NO] ....... [OKAY]
inference_core_ops ..... [NO] ....... [OKAY]
cutlass_ops ............ [NO] ....... [OKAY]
transformer_inference .. [NO] ....... [OKAY]
quantizer .............. [NO] ....... [OKAY]
ragged_device_ops ...... [NO] ....... [OKAY]
ragged_ops ............. [NO] ....... [OKAY]
random_ltd ............. [NO] ....... [OKAY]
 [WARNING]  sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.1
 [WARNING]  using untested triton version (2.1.0), only 1.0.0 is known to be compatible
sparse_attn ............ [NO] ....... [NO]
spatial_inference ...... [NO] ....... [OKAY]
transformer ............ [NO] ....... [OKAY]
stochastic_transformer . [NO] ....... [OKAY]
--------------------------------------------------
DeepSpeed general environment info:
torch install path ............... ['/opt/conda/envs/domino-ray/lib/python3.10/site-packages/torch']
torch version .................... 2.1.0+cu121
deepspeed install path ........... ['/opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed']
deepspeed info ................... 0.13.2, unknown, unknown
torch cuda version ............... 12.1
torch hip version ................ None
nvcc version ..................... 12.1
deepspeed wheel compiled w. ...... torch 2.1, cuda 12.1
shared memory (/dev/shm) size .... 64.00 MB
  [WARNING] /dev/shm size might be too small, if running in docker increase to at least --shm-size='1gb'
  [WARNING] see more details about NCCL requirements: https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/troubleshooting.html#sharing-data

Screenshots
detailed stacktrace
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[3], line 39
      1 deepspeed_config = {
      2     "optimizer": {
      3           "type": "AdamW",
   (...)
     37     "contiguous_gradients": True,
     38 }
---> 39 model, optimizer, _, lr_scheduler = deepspeed.initialize(
     40 model=model,
     41 model_parameters=model.parameters(),
     42 config=deepspeed_config,
     43 )

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed/__init__.py:177, in initialize(args, model, optimizer, model_parameters, training_data, lr_scheduler, mpu, dist_init_required, collate_fn, config, config_params)
    165         engine = DeepSpeedHybridEngine(args=args,
    166                                        model=model,
    167                                        optimizer=optimizer,
   (...)
    174                                        config=config,
    175                                        config_class=config_class)
    176     else:
--> 177         engine = DeepSpeedEngine(args=args,
    178                                  model=model,
    179                                  optimizer=optimizer,
    180                                  model_parameters=model_parameters,
    181                                  training_data=training_data,
    182                                  lr_scheduler=lr_scheduler,
    183                                  mpu=mpu,
    184                                  dist_init_required=dist_init_required,
    185                                  collate_fn=collate_fn,
    186                                  config=config,
    187                                  config_class=config_class)
    188 else:
    189     assert mpu is None, "mpu must be None with pipeline parallelism"

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed/runtime/engine.py:262, in DeepSpeedEngine.__init__(self, args, model, optimizer, model_parameters, training_data, lr_scheduler, mpu, dist_init_required, collate_fn, config, config_class, dont_change_device)
    259 self.pipeline_parallelism = isinstance(model, PipelineModule)
    261 # Configure distributed model
--> 262 self._configure_distributed_model(model)
    264 # needed for zero_to_fp32 weights reconstruction to remap nameless data to state_dict
    265 self.param_names = {param: name for name, param in model.named_parameters()}

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/deepspeed/runtime/engine.py:1113, in DeepSpeedEngine._configure_distributed_model(self, model)
   1111 # zero.Init() handles device placement of model
   1112 if not (self.dont_change_device or is_zero_init_model):
-> 1113     self.module.to(self.device)
   1115 # MoE related initialization
   1116 for _, module in self.module.named_modules():

File /opt/conda/envs/domino-ray/lib/python3.10/site-packages/transformers/modeling_utils.py:1895, in PreTrainedModel.to(self, *args, **kwargs)
   1892 def to(self, *args, **kwargs):
   1893     # Checks if the model has been loaded in 8-bit
   1894     if getattr(self, "is_quantized", False):
-> 1895         raise ValueError(
   1896             "`.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the"
   1897             " model has already been set to the correct devices and casted to the correct `dtype`."
   1898         )
   1899     else:
   1900         return super().to(*args, **kwargs)

ValueError: `.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the model has already been set to the correct devices and casted to the correct `dtype`.

Additional context
Add any other context about the problem here.

i am also facing this error. is there any updates on this?


When using the GT in Umetrack,  'landmarks as NaN' appears in some frames.

Thank you for organizing the Hands competition.
In order to verify the model's performance, we have split a portion of the training data to use as a validation set. The data processing for the validation set was done following the steps outlined in the Local validation section, which resulted in the file gt_landmarks_umetrack.json. In this file, some frames have "landmarks as NaN". For example:
`"sequence_name": "subject_030_synthetic_separate_hand_002136",
"frame_id": 184,
"landmarks": [
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
],
[
NaN,
NaN,
NaN
]
]
},
Here are the corresponding Umetrack model parameters:
{
"sequence_name": "subject_030_synthetic_separate_hand_002136",
"frame_id": 185,
"mano_theta": [
-1.2225896120071411,
0.36279019713401794,
0.14448513090610504,
0.4162368178367615,
1.6039888858795166,
-1.1659281253814697,
0.22714950144290924,
2.463958740234375,
0.3210441768169403,
0.02948339655995369,
-0.21838001906871796,
-0.37585991621017456,
0.2640269100666046,
0.15194766223430634,
-0.08119188994169235
],
"wrist_xform": [
-0.12045539170503616,
-0.26378971338272095,
0.2230101078748703,
-0.16797541081905365,
0.08163973689079285,
0.052317336201667786
],
"hand_side": 0
},`
When performing the evaluation, the presence of NaN values causes the evaluation metrics to also become NaN. Could you please clarify what might be causing this issue? Thanks for your response.

Hi, thanks a lot of reporting this. I've found the issue and will commit the fix soon.
For now, if you can replace the axis_angle_to_matrix implementation in umetrack_skinning.py with the following the problem should be fixed:
def axis_angle_to_matrix(axis_angle: torch.Tensor) -> torch.Tensor:
    leading_dims = axis_angle.shape[:-1]
    axis_angle = axis_angle.reshape(-1, 3)

    theta = torch.norm(axis_angle, p=2, dim=-1)
    out = torch.zeros((theta.shape[0], 3, 3), dtype=theta.dtype, device=theta.device)
    for i in range(3):
        out[:, i, i] = 1

    small_angle = theta < 1e-6
    theta = theta[~small_angle]
    axis_angle = axis_angle[~small_angle]

    axis = axis_angle / theta[..., None]

    c = torch.cos(theta)
    s = torch.sin(theta)
    kx = axis[..., 0]
    ky = axis[..., 1]
    kz = axis[..., 2]
    kxky = kx * ky
    kxkz = kx * kz
    kykz = ky * kz
    kx2 = kx * kx
    ky2 = ky * ky
    kz2 = kz * kz

    o = torch.stack(
        (
            c + kx2 * (1 - c),
            kxky * (1 - c) - kz * s,
            kxkz * (1 - c) + ky * s,
            kxky * (1 - c) + kz * s,
            c + ky2 * (1 - c),
            kykz * (1 - c) - kx * s,
            kxkz * (1 - c) - ky * s,
            kykz * (1 - c) + kx * s,
            c + kz2 * (1 - c),
        ),
        -1,
    )
    out[~small_angle] = o.reshape(-1, 3, 3)

    return out.reshape(*leading_dims, 3, 3)
    ```


GeneralPhpdocAnnotationRemoveFixer - does not remove given annotation

When trying to use the rule general_phpdoc_annotation_remove to remove some @noinspection annotations, I get get the following error: [InvalidArgumentException]  Cannot set empty content for id-based Token.
The particulars of my set up are below:
The PHP version you are using ($ php -v):
7.1.11
PHP CS Fixer version you are using ($ php-cs-fixer -V):
2.10.3
The command you use to run PHP CS Fixer:
vendor/bin/php-cs-fixer fix --config=.php_cs.dist.php -vvv
The configuration file you are using, if any:
Only Rule: 'general_phpdoc_annotation_remove' => ['annotations' => ["noinspection"]]
If applicable, please provide minimum samples of PHP code (as plain text, not screenshots):
/** @noinspection PhpAssignmentInConditionInspection */
while ($something = myFunction($foo) {
//code
}
I'd expect the annotation to get removed.
while ($something = myFunction($foo)) {
//code
}

Hi @MarcusFulbright and thanks for reporting.
From the sample and config you provided I created a unit test to prove the bug and proposed a fix here https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3574


Default autofocus of the first input field is causing problems on iOS

In my Cordova app, I had a huge problem on the very first page (which is the login page including the atForm template):
If I tried to tap the first input field (which is a combined username and email field) on iOS, nothing happened. I had to tap it 5-10 times, until the app reacted. This was an awful user experience, and I really feared that my users would turn away from my app just because of this first impression. Funny thing was that the password field below behaved much nicer. Though it also did not show up on the first tap, it should up at least on the second or third (which was still not optimal).
I was quite desperate and posted it on the Meteor forums, where I was lucky that user XDA gave me the hint this might be related to some JavaScript trying to set the focus of one of the fields, which causes problems on Cordova iOS under certain circumstances:
https://forums.meteor.com/t/cordova-useraccounts-keyboard-not-showing-up-in-ios-if-user-taps-username-field/14069/3
He also stated that setting the following preference in the Cordova mobile-config.xml file solves the issue:
App.setPreference("KeyboardDisplayRequiresUserAction",false);

And indeed, after I set this preference, the user input dialog behaved well.
I am writing this issue to suggest that you

document these Cordova-related issues caused by the the default auto-focus

hint the users that they either could set focusFirstInput to false (I was not aware that this option existed until I ran into these problems) or set the Cordova preference as described above.

Another idea would be to default the focusFirstInput setting to false in Cordova applications (using a Meteor.isCordova check) in the package. I personally think this would be a good idea anyways, since I do not expect a keyboard to "spring up out of nowhere" just because an input field is presented. That decision should IMHO at least be left to the author of the app. On desktop browsers, the situation is completely different, since your keyboard is under your fingers and does not take away any screen estate.

thanks @derwaldgeist for the comprehensive report!
I've change the code the get false as the default value in case you're running on Cordova as you suggested.

Fine, great to hear! Glad I could help.


Problem to Track Inventory

Using the example from the API I am trying to add inventory tracking to listing (physical, no options), however the listing still has "do not track inventory". What am I doing wrong? How to set inventory tracking? Does this function work?
        $json = json_encode(array(array(
            "slug" => $id,
            "quantity" => $qty
        )));
        $curl = curl_init();
        curl_setopt_array($curl, array(
            CURLOPT_URL => "http://localhost:4002/ob/inventory",
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_ENCODING => "",
            CURLOPT_MAXREDIRS => 10,
            CURLOPT_TIMEOUT => 10,
            CURLOPT_FOLLOWLOCATION => false,
            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
            CURLOPT_CUSTOMREQUEST => "POST",
            CURLOPT_POSTFIELDS => $json,
            CURLOPT_HTTPHEADER => array(
                "Content-Type: application/json",
                "Authorization: Basic ".$hash
            ),
        ));
        $response = curl_exec($curl);
        $err = curl_error($curl);
        curl_close($curl);
        if ($err) {
            echo "cURL Error #:" . $err;
        } else {
            echo $response;
        }

You'll need to update the listing with an item.skus object of {quantity: 1}.
The inventory is tracked using the skus array, even if no options exist. If you have options, the skus are set by the options, if you don't a single sku is created.

Using sku also didn't help:
$json = json_encode(array(array(
                "slug" => $sku,
                "quantity" => $qty
            )));
            $curl = curl_init();
            curl_setopt_array($curl, array(
                CURLOPT_URL => "http://localhost:4002/ob/inventory",
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_ENCODING => "",
                CURLOPT_MAXREDIRS => 10,
                CURLOPT_TIMEOUT => 100,
                CURLOPT_FOLLOWLOCATION => false,
                CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
                CURLOPT_CUSTOMREQUEST => "POST",
                CURLOPT_POSTFIELDS => $json,
                CURLOPT_HTTPHEADER => array(
                    "Content-Type: application/json",
                    "Authorization: Basic ".$hash
                ),
            ));
            $response = curl_exec($curl);
            $err = curl_error($curl);
            curl_close($curl);
            if ($err) {
                echo "cURL Error #:" . $err;
            } else {
                echo $response;
            }

How do you update the quantity? The following code not work. Do I have to complete all the fields again?
        $data = array(
            "currentSlug" => $id,
            "slug" => $id,
            "item" => array(
                "skus" => array(
                    array(
                        "productID" => $id,
                        "surcharge" => 0,
                        "quantity" => $qty
                    )
                )
            )
        );
        $json = json_encode($data);
        $curl = curl_init();
        curl_setopt_array($curl, array(
            CURLOPT_URL => "http://localhost:4002/ob/listing",
            CURLOPT_RETURNTRANSFER => true,
            CURLOPT_ENCODING => "",
            CURLOPT_MAXREDIRS => 10,
            CURLOPT_TIMEOUT => 0,
            CURLOPT_FOLLOWLOCATION => false,
            CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
            CURLOPT_CUSTOMREQUEST => "PUT",
            CURLOPT_POSTFIELDS => $json,
            CURLOPT_HTTPHEADER => array(
                "Content-Type: application/json",
                "Authorization: Basic ".$hash
            ),
        ));
        $response = curl_exec($curl);
        $err = curl_error($curl);
        curl_close($curl);
        if ($err) {
            echo "cURL Error #:" . $err;
        } else {
            echo $response;
        }

SKU assignment when creating a listing has fixed the problem, thank you.


[WIP] api: Add introspection code for logging /events data types.

api: Add introspection code for logging /events data types.
This is part of a larger project to provide nice API documentation for
the events that the Zulip webapp sends to clients.  It's available at
/api/events/explore/, and currently only works reliably in the
development environment, since one needs to run test-backend --capture-events test_events in order to set it up.  Documentation on
/devtools/.
There are definitely things I'd like to see improved:

It's generally pretty hacky; the validator.py logic in particular is
pretty messy.

While we suppress directly duplicate events from the examples, we
don't suppress near-duplicate events or duplicate schemas, so
examples have a ton of semi-duplicates.  May be fixable through a
semi-manual process of passing a new suppress_from_docs=True
argument to check_events_dict generated schema checkers.  Also, some
of the schema checkers are identical; we should fix that with
deduplication or otherwise.

See https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/events.20API.20docs/near/787813 for a screenshot and some discussion.

@Hypro999 @eeshangarg you may enjoy reading this :).

@timabbott I've read through the code and I think that this is a great initiative and that it solves the problem it sets out to solve quite well. IMHO, this can get merged if we just fix the failing tests first. Then we can do some cleanup if it's really required, because in the meanwhile, the app development team can start using this documentation page.

I pushed an update to this that's mostly a rebase.  It would be nice to get it integrated, since we're currently carrying it on the chat.zulip.org branch so that it's available for the mobile folks.
The things it needs to be mergable (albeit not great) are:

An investigation into whether there's a better way to do the zerver/lib/validator.py code of constructing type_structure.  @andersk might be the best person to help figure out if there's a better system we can/should be using; if we can get something we're happy with, we can merge the changes to that file and settings as an independent commit.
We need to fix CI; see the discussion in this comment: https://github.com/zulip/zulip/pull/13204#discussion_r332999024
We need to address the TODO in test-backend.

I think the other issues with this PR can be follow-up work.

FYI #15472 will probably accomplish what the remaining parts of this PR set out to accomplish.

Closing for the same reason expressed in #13499.


Playlists not starting properly

Discussed in https://github.com/orgs/music-assistant/discussions/1621

Originally posted by krisnoble November 10, 2023
Not 100% sure if this is an issue with my MA or just a quirk of my setup, but since b74 my playlists have not been starting properly so wondering if anyone can replicate?
My setup is:

RPi 3a's running HifiberryOS
HAOS + MA addon
Players grouped in a UGP but in this case targeting single players
All media and playlists stored in the /media directory

What seems to be happening is the playlists load, but don't actually play - they need the play button pressing manually either in HA or MA UI. This happens both when triggering via HA or via the blue play button in the MA UI.
If I run the command again when the player is in the stuck state, it works. So I'm working around it for now in HA by adding a second command after a 1s delay which seems to work reliably. Weirdly, running a "play" command after 1s in the same script/automation doesn't work although running the same play command manually does work, I can't figure out why.
Not seeing anything in the logs set at INFO globally, for the music controller and the queues controller.

Speculating but looking at the changelog I wonder if the debouncing might be the culprit here? Would make sense if the play command is being sent soon after another, and it's being incorrectly filtered out as a bounce? Sadly I'm not going to be able to look at this again until after next week but figured it was worth floating the idea...
DEBUG level logs from playing a queue then trying to play a new playlist:
2023-11-10 11:04:56.095 DEBUG (MainThread) [music_assistant.streams] Start serving audio stream for QueueItem filesystem_local://track/Deep House/The Anjunadeep Edition/325 - James Grant.mp3 to Lounge
2023-11-10 11:04:56.116 DEBUG (MainThread) [music_assistant.music.artist] updated Tagavaka in database: 638
2023-11-10 11:04:56.133 INFO (MainThread) [music_assistant.metadata] Unable to get musicbrainz ID for artist James Grant
 - using lookup-album(s): none
 - using lookup-track(s): Episode 325/Episode 345/Episode 360/Episode 384/Episode 325/Episode 345/Episode 360/Episode 384

2023-11-10 11:04:56.135 DEBUG (MainThread) [music_assistant.audio] start media stream for: filesystem_local://track/Deep House/The Anjunadeep Edition/325 - James Grant.mp3
2023-11-10 11:04:56.136 DEBUG (MainThread) [music_assistant.event] media_item_updated library://artist/638
2023-11-10 11:04:56.148 DEBUG (MainThread) [music_assistant.event] media_item_added library://artist/638
2023-11-10 11:04:56.178 DEBUG (MainThread) [music_assistant.music.artist] updated James Grant in database: 32
2023-11-10 11:04:56.181 DEBUG (MainThread) [music_assistant.event] media_item_updated library://artist/32
2023-11-10 11:04:56.188 DEBUG (MainThread) [music_assistant.event] media_item_added library://artist/32
2023-11-10 11:04:56.718 DEBUG (MainThread) [music_assistant.event] queue_updated b8:27:eb:0b:5c:03
2023-11-10 11:04:56.719 DEBUG (MainThread) [music_assistant.event] player_updated b8:27:eb:0b:5c:03
2023-11-10 11:04:56.734 DEBUG (MainThread) [music_assistant.webserver] [140696057703760] Handling command music/item_by_uri
2023-11-10 11:04:56.846 INFO (MainThread) [music_assistant.metadata] Unable to get musicbrainz ID for artist Tagavaka
 - using lookup-album(s): The Anjunadeep Edition/The Anjunadeep Edition
 - using lookup-track(s): Episode 467/Episode 467

2023-11-10 11:04:56.913 INFO (MainThread) [music_assistant.metadata] Unable to get musicbrainz ID for artist James Grant
 - using lookup-album(s): none
 - using lookup-track(s): Episode 325/Episode 345/Episode 360/Episode 384/Episode 325/Episode 345/Episode 360/Episode 384

2023-11-10 11:04:56.915 DEBUG (MainThread) [music_assistant.music.artist] updated Tagavaka in database: 638
2023-11-10 11:04:56.923 DEBUG (MainThread) [music_assistant.event] media_item_updated library://artist/638
2023-11-10 11:04:56.935 DEBUG (MainThread) [music_assistant.event] media_item_added library://artist/638
2023-11-10 11:04:56.979 DEBUG (MainThread) [music_assistant.music.artist] updated James Grant in database: 32
2023-11-10 11:04:56.985 DEBUG (MainThread) [music_assistant.event] media_item_updated library://artist/32
2023-11-10 11:04:56.992 DEBUG (MainThread) [music_assistant.event] media_item_added library://artist/32
2023-11-10 11:04:57.126 DEBUG (MainThread) [music_assistant.webserver] [140696057703760] Handling command music/playlists/library_items
2023-11-10 11:04:57.163 DEBUG (MainThread) [music_assistant] Provider file is not available
2023-11-10 11:04:57.168 DEBUG (MainThread) [music_assistant] Provider file is not available
2023-11-10 11:04:59.607 INFO (MainThread) [music_assistant.metadata] Unable to get musicbrainz ID for artist Afroham, Pleij
 - using lookup-album(s): none
 - using lookup-track(s): Birds/Birds

2023-11-10 11:04:59.648 DEBUG (MainThread) [music_assistant.music.artist] updated Afroham, Pleij in database: 644
2023-11-10 11:04:59.656 DEBUG (MainThread) [music_assistant.event] media_item_updated library://artist/644
2023-11-10 11:04:59.668 DEBUG (MainThread) [music_assistant.event] media_item_added library://artist/644
2023-11-10 11:05:01.093 DEBUG (MainThread) [music_assistant.webserver] [140696057703760] Handling command music/playlists/get_playlist
2023-11-10 11:05:01.130 DEBUG (MainThread) [music_assistant.webserver] [140696057703760] Handling command music/playlists/playlist_tracks
2023-11-10 11:05:04.650 DEBUG (MainThread) [music_assistant.webserver] [140696057703760] Handling command players/queue/play_media
2023-11-10 11:05:04.653 DEBUG (MainThread) [music_assistant.event] queue_items_updated b8:27:eb:0b:5c:03
2023-11-10 11:05:04.654 DEBUG (MainThread) [music_assistant.event] queue_updated b8:27:eb:0b:5c:03
2023-11-10 11:05:04.656 DEBUG (MainThread) [music_assistant.players] Handling command cmd_stop for player Lounge
2023-11-10 11:05:04.692 DEBUG (MainThread) [music_assistant.event] queue_items_updated b8:27:eb:0b:5c:03
2023-11-10 11:05:04.694 DEBUG (MainThread) [music_assistant.event] queue_updated b8:27:eb:0b:5c:03
2023-11-10 11:05:04.713 DEBUG (MainThread) [music_assistant.event] queue_updated b8:27:eb:0b:5c:03
2023-11-10 11:05:04.716 DEBUG (MainThread) [music_assistant.event] player_updated b8:27:eb:0b:5c:03
2023-11-10 11:05:04.774 DEBUG (MainThread) [music_assistant.streams] Got GET request to /b8:27:eb:0b:5c:03/single/6c5a2c723d87411cb407d5dd75c33e6c.flac from <IP_ADDRESS>
headers: <CIMultiDictProxy('Host': '<IP_ADDRESS>:8096', 'Connection': 'close', 'Accept': '*/*', 'Cache-Control': 'no-cache', 'User-Agent': 'VLC/3.0.9 LibVLC/3.0.9', 'Range': 'bytes=0-')>

2023-11-10 11:05:04.858 DEBUG (MainThread) [music_assistant.streams] Start serving audio stream for QueueItem filesystem_local://track/Funk mixes/21 Disco Funkin', Vol. 1 (Shaka Loves You Continuous Mix).mp3 to Lounge
2023-11-10 11:05:04.893 INFO (MainThread) [music_assistant.metadata] Unable to get musicbrainz ID for artist Shaka Loves You
 - using lookup-album(s): Disco Funkin', Vol. 1 (Curated by Shaka Loves You)/Disco Funkin', Vol. 1 (Curated by Shaka Loves You)
 - using lookup-track(s): Disco Funkin', Vol. 1/Disco Funkin', Vol. 1

2023-11-10 11:05:04.895 DEBUG (MainThread) [music_assistant.audio] start media stream for: filesystem_local://track/Funk mixes/21 Disco Funkin', Vol. 1 (Shaka Loves You Continuous Mix).mp3
2023-11-10 11:05:04.967 DEBUG (MainThread) [music_assistant.music.artist] updated Shaka Loves You in database: 4
2023-11-10 11:05:04.979 DEBUG (MainThread) [music_assistant.event] media_item_updated library://artist/4
2023-11-10 11:05:04.992 DEBUG (MainThread) [music_assistant.event] media_item_added library://artist/4

This should be fixed in beta 75. Let us know if not.


A beginners guide to Next.js Framework

Be sure to visit our Resources Page for tools, resources, and example articles to go over.
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We're looking for the first 2-3 paragraphs of the article that appropriately summarize what your article will be about.
NOTE: We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Proposed title of article
A beginners guide to Next.js
Introduction paragraph (2-3 paragraphs):
React.js has been one of the most influential UI libraries in front-end development. Being in the developer community has led to a revolution in how we build client-side applications. It uses a component-based approach to build robust applications.
Next.js is an open-source React front-end development web framework that enables functionality such as server-side rendering and generating static websites for React-based web applications. Next.js gives the best developer experience with all the features needed for production such as hybrid static & server rendering, TypeScript support, smart bundling, route pre-fetching, and more with no configurations needed. In this article, we will go through an in-depth beginner's guide to Netx.js.
Key takeaways:

Understanding what is Next.js

How to set up a Next.js Framework

What Static Site Generation is

What Server Side rendering is

Benefits of using Next.js

References:
N/A
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Thank you for your topic suggestion @EssyWanjira , but it seems there is quite a bit of overlap with content from this previously published article - https://www.section.io/engineering-education/node-versus-next-react-approach/. Please feel free to either refine your focus or suggest a different topic area to explore. Thank you.


Session detail screen's FloatingActionButton should not be floating

Idea Description
Please use FloatingActionButtonDefaults.bottomAppBarFabElevation() to remove the elevation.
figma

Reference images and links
https://www.figma.com/file/NcSMs6dMsD88d4wOY0g3rK/DroidKaigi-2022-Conference-App?node-id=0%3A1

i'll do ✋

Thanks! Assigned 👍


[Event Request] Codeunit 5940 “ServContractManagement”

Requesting a new IntegrationEvent:
Local [IntegrationEvent]  OnBeforeErrorsamesCust(VAR Rec : Record "Service Contract Line";VAR IsHandled : Boolean)
Function LookupServItemNo()
ServItem.FILTERGROUP(2);

//> New code
 OnBeforeErrorsamesCust(rec,ishandled);
IF Ishandled  THEN
//< New code

IF ServiceContractLine."Customer No." <> '' THEN
  ServItem.SETRANGE("Customer No.",ServiceContractLine."Customer No.");
ServItem.FILTERGROUP(0);

Name of suggested events is confusing, do you need to skip this line:
ServItem.SETRANGE("Customer No.",ServiceContractLine."Customer No.");

Rewritten:
Local [IntegrationEvent]  OnBeforeCustFilter(VAR Rec : Record "Service Contract Line";VAR SkipFilter: Boolean)
Function LookupServItemNo()
ServItem.FILTERGROUP(2);

//> New code
 OnBeforeCustFilter(rec,SkipFilter);
IF NOT SkipFilter THEN
//< New code

IF ServiceContractLine."Customer No." <> '' THEN
  ServItem.SETRANGE("Customer No.",ServiceContractLine."Customer No.");
ServItem.FILTERGROUP(0);

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


For FSI on CoreCLR use ResolutionEnvironment.CompilationAndEvaluation just like on desktop

Now that we have netcore 2.0 and netstandard 2.0.  The coreclr doesn't need quite such a rigid ResolutionEnvironment.
This PR removes a couple of places where we special cased the resolutionenvironment for the coreclr compiler.
This change enables FSI on the coreclr to resolve from the shared framework directory.  Sort of the moral equivalent of loading from the Windows Desktop Framework directory.

Lovely!

@KevinRansom Could we have FSI on netcoreapp2.0 under test?

Aside: could we start using terminology netcoreapp2.0, netstandard2.0 rather than just CoreCLR or even .NET Core?  With the former I know exactly what we're talking about.
Also it would be great if we could remove TargetDotNetProfile==coreclr in favour of netcoreapp2.0 and netstandard2.0 - the compilation defines may end up diverging for these (e.g. NETSTANDARD_16 v. NETSTANDARD_20 v. NETCOREAPP_20)

Completely agreed. These are also the terms our customers use and know.
We shouldn’t have different terminology.
On Fri, Nov 17, 2017, at 04:57, Don Syme wrote:

Aside: could we start using terminology netcoreapp2.0, netstandard2.0
rather than just CoreCLR or even .NET Core?  With the former I know
exactly what we're talking about.> Also it would be great if we could remove
TargetDotNetProfile==coreclr[1] in favour of netcoreapp2.0 and
netstandard2.0 - the compilation defines may end up diverging for
these (e.g. NETSTANDARD_16 v. NETSTANDARD_20 v. NETCOREAPP_20)> — You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub[2], or mute the
thread[3].>

Links:

https://github.com/Microsoft/visualfsharp/blob/master/src/FSharpSource.Profiles.targets#L13
https://github.com/Microsoft/visualfsharp/pull/3963#issuecomment-345237055
https://github.com/notifications/unsubscribe-auth/AGBEzgCV2uJUaDdncrwuyAAHBYLGILK_ks5s3YK0gaJpZM4QhYmp

@dsyme we will ... I promise.

@dsyme I am going to try to get rid of all of that profile nonsense from the compiler.   As for terminology, that's fine, I guess I can learn to type the new names for everything.  Although this isn't really a netcoreapp 2.0 or netstandard 2.0 change.


Instrument cache service

Instrument aspects of the cache service. E.g. the number of connected/disconnected clients, connection errors, submission times, etc...
Both in the cache service and beyla as a client.

This is done, right?


ImportError: No module named decorator

Yesterday I installed python scikit-learn to use its PCA algorithm and it worked fine. Today I rebooted the computer and when I try to import the PCA module by doing: from sklearn.decomposition import PCA
Scipy gives me the following error on one IDE:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 540, in runfile
    execfile(filename, namespace)
  File "/home/joao/PCA/dices.py", line 11, in <module>
    from sklearn.decomposition import PCA
  File "/usr/lib/python2.7/dist-packages/sklearn/decomposition/__init__.py", line 7, in <module>
    from .nmf import NMF, ProjectedGradientNMF
  File "/usr/lib/python2.7/dist-packages/sklearn/decomposition/nmf.py", line 19, in <module>
    from scipy.optimize import nnls
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/__init__.py", line 148, in <module>
    from ._root import *
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/_root.py", line 20, in <module>
    from . import nonlin
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py", line 122, in <module>
    import scipy.sparse.linalg
  File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/__init__.py", line 108, in <module>
    from .isolve import *
  File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/__init__.py", line 6, in <module>
    from .iterative import *
  File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/iterative.py", line 7, in <module>
    from . import _iterative
ImportError: cannot import name _iterative

and this one on another:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/sklearn/decomposition/__init__.py", line 7, in <module>
    from .nmf import NMF, ProjectedGradientNMF
  File "/usr/lib/python2.7/dist-packages/sklearn/decomposition/nmf.py", line 19, in <module>
    from scipy.optimize import nnls
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/__init__.py", line 148, in <module>
    from ._root import *
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/_root.py", line 20, in <module>
    from . import nonlin
  File "/usr/lib/python2.7/dist-packages/scipy/optimize/nonlin.py", line 122, in <module>
    import scipy.sparse.linalg
  File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/__init__.py", line 108, in <module>
    from .isolve import *
  File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/__init__.py", line 6, in <module>
    from .iterative import *
  File "/usr/lib/python2.7/dist-packages/scipy/sparse/linalg/isolve/iterative.py", line 11, in <module>
    from scipy.lib.decorator import decorator
ImportError: No module named decorator

I am using ubuntu 14

Is the file /usr/lib/python2.7/dist-packages/scipy/lib/decorator.py present on your system?

scipy.lib was renamed to scipy._lib quite a while ago, so this is for some older Scipy install or a mixup of two Scipy installs. So closing.
@jpiabrantes feel free to follow up though, we'll help you out if you're still stuck.

what is the solution, I am using scipy 0.17.0, I do not have decorator in my scipy._lib

I checked my decorator.py is an archive file,what should i do?

Seems like you have two scipy installations interfering with each other. The solution is actually "That shouldn't happened"

I got a similar issue. Uninstalling and reinstalling scipy solved it.

Your scipy version is old, try ' pip install -U scipy ' .  If it is failed, you may check  #issue504 https://github.com/blockstack/blockstack-core/issues/504

This is just an update. I also faced same error. Solution of this issue is installation of below package.
sudo apt install --reinstall python*-decorator


add Tuxedo jolt sample docker

adding Tuxedo Jolt sample docker:
README.md
jolt

This pull request includes the previous commits which have already been merged. Please rebase your branch and resolve the merge conflict.

I've merged from upstream to master, please help review and revise, thank you.


Crash during install

Description

It crashed during the project creation.
Steps to reproduce

Run the composer command
Answer the questions
Profit

Expected behavior

Run without crashing
Screenshots or output

 [ERROR] The command "'composer' 'dev:test:all'" failed.

         Exit Code: 254(Unknown error)

         Working directory: /Users/matronator/Documents/Work/dev.nosync/ormtr

         Output:
         ================

         Executing lint:syntax
         Unable to execute '/Users/matronator/Library/Application Support/Herd/bin/php83'.

         Executing lint:style
         ... 3 / 3 (100%)

         Time: 84ms; Memory: 10MB

         Executing analyze:phpstan

          [OK] No errors

         Executing analyze:psalm
         ------------------------------

                No errors found!

         ------------------------------

         Checks took 3.09 seconds and used 96.783MB of memory
         Psalm was able to infer types for 100% of the codebase

         Executing test:unit
         PHPUnit 10.5.9 by Sebastian Bergmann and contributors.

         Runtime:       PHP 8.3.0
         Configuration: /Users/matronator/Documents/Work/dev.nosync/ormtr/phpunit.xml.dist

         .                                                                   1 / 1 (100%)

         Time: 00:00.008, Memory: 8.00 MB

         OK (1 test, 1 assertion)

         Error Output:
         ================
         Note: Using configuration file /Users/matronator/Documents/Work/dev.nosync/ormtr/phpstan.neon.dist.
 3/3
         [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

         Target PHP version: 8.1 (inferred from composer.json).
         Scanning files...
         Analyzing files...

         ░

         At line 272 in phar:///usr/local/bin/composer/vendor/symfony/process/Process.php

Environment details

version of this package: 3.5.4
PHP version: 8.3
OS: macOS Ventura (13.4)

Additional context

This looks like it's found PHP at /Users/matronator/Library/Application Support/Herd/bin/php83 and is attempting to execute it, but it cannot:
Unable to execute '/Users/matronator/Library/Application Support/Herd/bin/php83'

This is occurring during the composer dev:lint:syntax stage.
Does this php83 file exist, and is it executable?


Updating version

The version that was listed here is 1.0.4, which was inconsistent with the one from package.json. It's just a small change to bring it up to date.

You're awesome thank you!


Does this really work for build status other than success?

@andreasgebauer
Not sure what you mean.