Add keywriter fork with decreased font size

Would be great to have this rm keywriter fork with smaller font size for edit mode:
https://github.com/danschrage/remarkable-keywriter
There have been few more people who wanted to have a writing experience with smaller font size.

It would probably make more sense to ask for that change to be upstreamed, or configuration added to tweak it per install.

Seems to have been added to upstream. Keeping this open as a reminder to update our package.


Add MarkDown formatting to examples/mnist_siamese.py

Signed-off-by: Marcela Morales Quispe<EMAIL_ADDRESS>Summary
Add MarkDown formatting to examples/mnist_siamese.py.
Result

Related Issues
#12219
PR Overview

[ ] This PR requires new unit tests [y/n] (make sure tests are included)
[ ] This PR requires to update the documentation [y/n] (make sure the docs are up-to-date)
[x] This PR is backwards compatible [y/n]
[ ] This PR changes the current API [y/n] (all API changes need to be approved by fchollet)

Thanks for the PR.
We are postponing the addition of new examples on keras.io pending a future refactor of the docs website (which will have a dedicated examples section).


Build error in boost-graph with latest vcpkg (Updating after about 6 months away)

Hi all. After months away from vcpkg I went back to get all the latest. I did a git pull, then .\bootstrap-vcpkg.bat and finallly vcpkg upgrade --no-dry-run. I got a long way through then hit this error.
`
Building package boost-graph[core]:x86-windows... done
Installing package boost-graph[core]:x86-windows...
Installing package boost-graph[core]:x86-windows... done
Elapsed time for package boost-graph:x86-windows: 34.87 s
Starting package 268/458: python3:x86-windows
Building package python3[core]:x86-windows...
-- Downloading https://github.com/python/cpython/archive/v3.6.4.tar.gz...
-- Extracting source D:/src/vcpkg/downloads/python-cpython-v3.6.4.tar.gz
-- Applying patch D:/src/vcpkg/ports/python3/0004-Fix-iomodule-for-RS4-SDK.patch
-- Applying patch D:/src/vcpkg/ports/python3/0005-Fix-DefaultWindowsSDKVersion.patch
-- Using source at D:/src/vcpkg/buildtrees/python3/src/v3.6.4-5bfb0301b2
-- Building D:/src/vcpkg/buildtrees/python3/src/v3.6.4-5bfb0301b2-Lib-dynamic-crt-dynamic/PCBuild/pythoncore.vcxproj for Release
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:56 (message):
Command failed: msbuild;D:/src/vcpkg/buildtrees/python3/src/v3.6.4-5bfb0301b2-Lib-dynamic-crt-dynamic/PCBuild/pythoncore.vcxproj;/p:Configuration=Release;/t:Rebuild;/p:Platform=Win32;/p:PlatformToolset=v141;/p:VCPkgLocalAppDataDisabled=true;/p:UseIntelMKL=No;/p:WindowsTargetPlatformVersion=10.0.17763.0;/m
Working Directory: D:/src/vcpkg/buildtrees/python3/x86-windows-rel
See logs for more information:
D:\src\vcpkg\buildtrees\python3\build-x86-windows-rel-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_msbuild.cmake:119 (vcpkg_execute_required_process)
ports/python3/portfile.cmake:55 (vcpkg_build_msbuild)
scripts/ports.cmake:71 (include)
Error: Building package python3:x86-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: python3:x86-windows
Vcpkg version: 2018.11.23-nohash
When I re-ranvcpkg update->git pull->vcpkg upgrade --no-dry-run` it said everything was up to date.
Any ideas and am I in a working state now?
Thanks

@akoolenbourke, thank you for posting the issue, does the issue still occur? I installed python3[core]:x86-windows successfully with VS2017 15.9.11 and VCPKG latest source.

Thanks for posting this issue. Please open a new issue if this is still a problem for you.


feat: change default crop behaviour to undefined from faces

BREAKING CHANGE: default crop behaviour is now imgix default, not faces
Description
This PR removes the default setting for crop. The old behaviour may be confusing to new developers, so it is better for them to enable it if they would like the behaviour.
This PR fixes #34
New Feature

[N/A] If this is a big feature with breaking changes, consider [opening an issue][issues] to discuss first. This is completely up to you, but please keep in mind that your PR might not be accepted.
[x] Run unit tests to ensure all existing tests are still passing
[x] Add new passing unit tests to cover the code introduced by your PR
[x] Update the readme
[x] Add some steps so we can test your cool new feature!
[x] The PR title is in the conventional commit format: e.g. feat(<area>): added new way to do this cool thing #issue-number
[x] Add your info to the contributors array in package.json!

Steps to Test
Review the changes to the tests.

Going to merge this! Your crushing it.


adding normalization, regrouped functions to increase readability

I added a set of new anomaly scorers with 'v2' appended to their names that "learn" and apply the proper scale of the input data before checking for anomalies

I've now also committed my notebook to test the scaling anomaly scorers, too.
You'll find it in my playground
and it also shows how to use FileModelStore to run the scalers locally (expect a couple of files named 'KPI ...' to appear in your directory.)


[Bug] Uncaught (in promise) dicomParser.ByteStream: parameter 'position' cannot be greater than or equal to 'byteArray' length

Describe the Bug
Hello, I'm experiencing this problem, but based on what is known so far, the problem may be in the Cornerstone3D
's DICOM Volume Streaming Loader, the previous discussion can be viewed here issue, I'm not sure if you will continue to update the issues related to the v1 version at this time,or if you know of a solution to this issue?  Thanks. @sedghi
Steps to Reproduce
Loading volume objects via wadouri
The current behavior
Some DICOM files cannot be displayed properly
The expected behavior
DICOM files are displayed normally
OS
win11
Node version
.
Browser
edge

Can you try version 2?


Gh 1657 loader tests

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.2 out of 3 committers have signed the CLA.:white_check_mark: m55624:white_check_mark: p013570:x: t616178You have signed the CLA already but the status is still pending? Let us recheck it.


e2e failure in reaching/fetching objects from github

e2e scripts fail at times like so:
+ ocm_registration_operator_kubectl hub cluster-manager apply
+ kubectl --context hub apply -k 'https://github.com/stolostron/registration-operator/deploy/cluster-manager/config?ref=c723e190c454110797d89e67bcb33250b35e1fd7'
error: hit 27s timeout running '/usr/bin/git fetch --depth=1 origin c723e190c454110797d89e67bcb33250b35e1fd7'

The issue seems to be the timeout fetching the required resources from github. This may happen at any such fetch command in the scripts.
The problem auto resolves after some time, but adding an issue here for further investigation and information sharing.

Also encountered with the foundation operator:
+ kubectl --context hub apply -k /tmp/bhatfiel/open-cluster-management/foundation/hub/hub
error: accumulating resources: accumulation err='accumulating resources from 'https://github.com/stolostron/multicloud-operators-foundation/deploy/foundation/hub?ref=dc43ec703e62594e3942c7f06d38d1897550ffea': yaml: line 163: mapping values are not allowed in this context': hit 27s timeout running '/usr/bin/git fetch --depth=1 origin dc43ec703e62594e3942c7f06d38d1897550ffea'

I'm addressing this by specifying each manifest file url in the kustomization resources for registration and foundation operators, instead of the url of a directory containing a kustomization file.  Testing indicates it is faster and does not encounter the non-configurable 27-second timeout.


TypeError: tokenInfo.scope is undefined

const config = {
  client_id: process.env.client_id,
  client_secret: process.env.client_secret,
  username: process.env.username,
  password: process.env.password,
  user_agent: 'Agent'
};
r = new snoowrap(config);

With that configuration I've got:
TypeError: tokenInfo.scope is undefined.
Event when I tried:
const config = {
    client_id: process.env.client_id,
    client_secret: process.env.client_secret,
    username: process.env.username,
    password: process.env.password,
    user_agent: 'Agent',
        scope: ['history'] // added that
};

It doesn't work and the error is the same. How to get work with snoowrap then?

Hi,
Could you show the rest of your code? I don't think a tokenInfo.scope error would be occurring from just the code you've given.

I've also tried snoowrap code and:
function updateAccessToken() {
   alert(_this2.scope) // here it is null
  _this2.scope = tokenInfo.scope.split(' ');
}

This looks like the same issue as https://github.com/not-an-aardvark/snoowrap/issues/93. Is your app a "personal script"?

Actually it is web application. Can you add that in updateAccessToken():
if (tokenInfo.error === 'unauthorized_client') {
  throw new Error('Only script apps may use password auth');
}

{error_description: "Only script apps may use password auth", error: "unauthorized_client"}


CP-11612: BidirectionalGraph.ContainsEdge(TVertex source, TVertex target) has a bug..

From unknown CodePlex user on Thursday, 13 November 2008 00:14:14
if Source edge is not in the graph, it fails..

Disabling the contracts has side effects it appears.

Form unknown CodePlex user on Thursday, 04 December 2008 17:21:54
This can not be correct!  If sourceEdge is not in the graph an exception is thrown. This is clearly WRONG.
CORRECT SOLUTION:

Check if Source Edge is in the Graph.
if not in Graph, return FALSE
If it is in graph, check to see if Target is in Source.TargetEdges.

Form unknown CodePlex user on Thursday, 04 December 2008 23:08:25
Humm, you are right I can fix that.


Adding the allowed modification of resizing legend

This adds the allowed modification to let both specifications, profiles and capabilities set that legend can be resized to match the rest of the files

Approved in CD Board meeting 22/11-17


Can't Login to GitHub

When I click the Button "Login to GitHub", it's wrong

When you click ‘Login to GitHub,’ a dialog should appear displaying the device code for login. Are you seeing this dialog?
And could you try a few more times? As far as I know, the GitHub website can occasionally be unstable when accessed from China.

Not only from China, I from Vietnam, still login success but still not work. Both all version, do I need to use VPN for login?

Do you need log for debugging?

sorry my mistake comment, found solutions in other issues opened, thank


Rework how audio is managed

Describe the problem
Currently audio clips are added in an ad hoc way that is different for each interactible element in the MRTK. The slider has a script that is programmatically associates the clips to the script, while most other elements use the editor events to trigger audio clips.
With this system a number of problems arise:

Since the audio is set in the editor event response, it is impossible to programmatically change which clips come out of elements, without painstakingly updating editor references.
It is impossible to setup an interactible component purely programmatically, without instantiating a prefab, as there is no audio field to address.
It is not clear what interaction events trigger audio clips, as the events sometimes span across different components.

Describe the solution you'd like
My ideal system would have two sets of scriptables objects

Audio clips are wrapped in audio config scriptable objects that have all the audio source properties they need to play properly. This would allow each clip to have associated volume, pitch, etc.
Buttons and other interactions, would have an interaction audio config scriptable object, which would use the audio clip configs in a clear field for each related event. (PointerEnter, Exit, Down, Up, etc).

With a system like this, each object manipulator, button, etc, would have a field for the Interaction Audio Config, that could be set via code, or in the inspector, and it would update in one swoop all the clips used for that given interaction. Then, when iterating on audio, one could update that single config to change the audio for all buttons in a scene, without modifying each game object manually.
Additional context
I'm currently working with an audio designer to expand on the sound library of MRTK, for use in MRTK-Quest.

This seems a great idea. I have been struggling with how button that trigger hiding itself on clicking don't have a chance to play the full clip. Looking for solutions to that as well.

Is there any activity on this issue? It remains a pain point for me.
I’ll add that having the ability to just get audio raised events would be great in case I want to have my own audio sources or a different audio system altogether.

Agreed that this is really painful. In addition, some people might be using a separate audio middleware (Wwise, FMOD, Master Audio, etc) which handles all audio.
I'd love to see some kind of audio handler system, where a developer can choose to completely take over all audio generation, and can just react to events in a uniform way (which action was performed and at which transform / game object).

Keeping this issue to track our AudioManager story. @davidkline-ms, what is the update on this story?

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all-new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visit https://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


Integrate bad node detection into the launcher

On theta there is an issue that the msr-safe driver is not always properly loaded.  We have a work around for this issue which is documented in the quick start guide for theta here:
https://github.com/geopm/theta-tutorial/blob/master/QUICKSTART.md#failure-of-msr-safe
The script in this discussion should be integrated with the launcher so that the user can avoid bad nodes automatically.

It's sounding like they've bottomed out on this issue over at Argonne: https://github.com/LLNL/msr-safe/issues/43#issuecomment-431477986
Do we still want to have this functionality in the launcher?  Or is it better to put the burden on future labs to fix the OS software stack that may impact msr-safe?


Scroll to top button added

PR Description 📜
I have added button that scroll to top side of website with show progress.
Fixes #3877

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have specified the respective issue number for which I have requested the new game.

Thank you soo much for contributing to our repository 💗

Thank you @zalabhavy ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

@kunjgit please merge !!

Thank you  @zalabhavy , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Please reference case 1508 for history.  After a new installation and new deployment, when adding the authors app back to a Team, I get the following error.  The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

Hi @stehodge
Thanks for reaching out to us
We will respond to you as soon as possible.

Hi @stehodge

Could you verify if the app domain value in the Author manifest file has been entered correctly?

App service deployment failure could be the reason. So, Please verify the deployment status as mentioned here: Troubleshooting · OfficeDev/microsoft-teams-apps-company-communicator Wiki (github.com)

The three values match up in the author's manifest file.

We have started discussing about this ticket internally

ok


parent made relative...

<?php

namespace Model;

/**
 * Model\Article document.
 */

// before...
// class Article extends \Model\Base\Article

// after...
class Article extends Base\Article
{
}

We use the full class name everywhere, so I think it's better to do the same when generating the classes with Mondator.
Anyway thanks for the PR :)


[T2A2][F09-A1] Bernard Tan Ke Xuan

Good job.. Keep up the good work. Some suggestions:

extract the code to runProgram doesn't really help the reader to understand your code, because you use too generic term.
Fix the indentation in setupGivenFileForStorage


Various fixes for python wheel building and icc handling

This adds two open source icc profiles which can be used for testing, script running etc. See "openicc" on sourceforge and tools for generating the icc binaries from them.
fix to the pyproject.toml allows wheel building on case sensitive operating systems (i.e. linux) plus the C++23 std and add debug for symbols are available when using pygdb/gdb for debugging.
When loading the binary library from the python, Pythons don't always say FileNotFoundError, they sometimes say OSError, the wheel sometimes ends with a version number.
Reduced the version requirement on the pdfviewer, although I suspect this is code that will end up being removed as it's not a component of the library.
Don't use CAPYPDF_SO_OVERRIDE as this is a hack and shouldn't be required if using a virtualenv. If needed this should be up to the developer's own environment and not in the scripts/testing/tools etc.
This isn't a complete list of changes, but it's a little basket of small items for you to review.

Should be resolved now.

Why two different commits with the same message? Should they not be squashed into one?

Commits fixed. Hmm, not sure how that happened.


Suggestion: Submit Blitzar to vuejsexamples?

I didn't see Blitzar in https://vuejsexamples.com/ under form. Blitzar is a lot nicer than the other form generators I saw on this list. You might want to submit it?

@jasonfharris thank you so much for your kind words!
Would you be able to help me putting it on there for me? 😊

There is the https://vuejsexamples.com/submit-project/ link at the bottom of the page. The submission is probably best coming from the author? Again thanks for Blitzar!

@jasonfharris thanks! I've emailed ;) let's see

@jasonfharris they released it! 🎉

https://vuejsexamples.com/generate-vue-forms-and-data-tables-fast-with-a-simple-json-like-syntax/


fix(development-environment): remove "johnsoncodehk.volar" entry from recommended extensions list

The Problem
The johnsoncodehk.volar extension from the list of workspace recommendations have the issue:  not found in marketplace.
The Solution
The solution is to remove the entry from the list.

They changed the extension id, can you replace it with "Vue.volar" ?

They changed the extension id, can you replace it with "Vue.volar" ?

Yes, I'll try.

@matschik, can you merge this PR please?


[TACHYON-1434] Changed FileInStream to be not final

https://tachyon.atlassian.net/browse/TACHYON-1434

@calvinjia, PTAL

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/7255/
Test PASSed.

+1 LGTM


feat: add<EMAIL_ADDRESS>

Uses @ape//:zstd to get hermetic compress/decompress:
load("@rules_zstd//zstd/compress:defs.bzl", "zstd_compress")
load("@rules_zstd//zstd/decompress:defs.bzl", "zstd_decompress")

zstd_compress(
    name = "compress",
    src = "//fixture:hello-world.txt",
)

zstd_decompress(
    name = "decompress",
    src = ":compress",
)

Looks like an infrastructure failure for the Mac OS arm64 runner:
(16:21:37) INFO: Build completed successfully, 28 total actions
//toolchain/zstd:resolved                                                PASSED in 0.1s
//zstd:zstd                                                              PASSED in 0.2s
//zstd/dictionary:zstd                                                   PASSED in 0.2s
Executed 3 out of 3 tests: 3 tests pass.
(16:21:37) INFO: Build Event Protocol files produced successfully.
Command '['/tmp/tmp1r7dz385/bazelci-agent', 'artifact', 'upload', '--debug', '--delay=5', '--mode=buildkite', '--build_event_json_file=/tmp/tmp1r7dz385/test_bep.json']' returned non-zero exit status 1.
🚨 Error: The command exited with status 1
user command error: exit status 1


When will the authentication system be done?

I have a small programme using InfluxDB,and I am glad to try Greptime.
While in the doc/User Guide/Concepts/Components ,which says "Frontend accepts incoming request, authenticates it,......", I have not found a way to authenticate requests.
As there is no way to authenticate requests, I am afraid that data will leak or be tampered with.

Thanks, the auth feature is under rapid development, we will release it in the near future!


#74845 Retain pipeline build

Hi Ravi, can you update the main README.md in the root directory to the direction to the README.md you added. Cheers


fix: retry looking for pending merged release

Hopefully retrying this query will prevent the extra release PR from being created
Fixes #826

Closed in favor of https://github.com/googleapis/release-please/pull/977


Filters duration query by span name

Least code approach to ensure people can get relevant results when looking for a long "get" vs long "post"

cc @yurishkuro

manually verified also, by putting 30000 into the duration bin. with "all" names selected, bootstrap and get spans returned. selecting either refined as expected


Query in output

The code ran successfully, but I am getting GO in the output. Is it a valid output? Or is there anything else that I'm missing out on?
could you please help me figure this out @MarcusOlivecrona

Got it. I took number of steps as 10. Valid molecules were generated by taking number of steps=1000


cmake: Add build option for Address Sanitizer

I got tired of manually editing the CMake files to enable ASAN in this repo.
Only supported on Linux at the moment. Not because it doesn't work on macOS, but because I am not sure ASAN can be enabled on macOS bundles, which is currently what vkcube/vkcubepp are built as. If someone requests support for ASAN on macOS, I can then look into it.

CI Vulkan-Tools build queued with queue ID 53040.

CI Vulkan-Tools build queued with queue ID 53040.

CI Vulkan-Tools build # 961 running.

CI Vulkan-Tools build # 961 passed.


POLIO-166: add % to globalIM, remove txt shadow

Changes

Removed condition preventing calculation of vaccinated % for ImSummary for Global IM
removed text-shadow and used darker color for text with status warningin LqasSummaryand `ImSummary

feel like that will get complicated real quick :/
On Mon, Jan 17, 2022 at 2:36 PM Martin De Wulf @.***>
wrote:

@.**** commented on this pull request.
In plugins/polio/js/src/components/LQAS-IM/ImSummary.tsx
https://github.com/BLSQ/iaso/pull/586#discussion_r786011548:

@@ -24,9 +30,9 @@ const style = theme => ({

 containerGrid: { justifyContent: 'space-evenly' },

 centerText: { textAlign: 'center' },

 boldText: { fontWeight: 'bold' },

pass: { color: OK_COLOR, textShadow: '1px 1px 2px black' },

fail: { color: FAIL_COLOR, textShadow: '1px 1px 2px black' },

warning: { color: WARNING_COLOR, textShadow: '1px 1px 2px black' },

pass: { color: OK_COLOR },

fail: { color: FAIL_COLOR },

warning: { color: 'rgb(255,196,53)' },

Because it's used at other places, where we were asked to keep yellow, and
not orange 🤷♂
—
Reply to this email directly, view it on GitHub
https://github.com/BLSQ/iaso/pull/586#discussion_r786011548, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAUERHEBDRU6ZRH3YBZDSLUWQLNTANCNFSM5MEWRCYQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID:
@.***>


Font Weight / Font Style / Google Noto Font

Hello,
I wanted to bring to your attention that I have implemented several enhancements to improve the text elements in the project. The following updates have been made:
Font Weight: I have introduced the option to modify the font weight, allowing for greater flexibility and control over the visual appearance of the text.
Font Style: Additionally, I have added functionality to adjust the font style. This enables further customization of the text elements, ensuring that they align well with the overall aesthetics of the project.
Noto Font Integration: To enhance language support and ensure that the text is displayed consistently across different languages, I have integrated the Noto Font into the project. Noto Font is known for its comprehensive language coverage, making it an ideal choice for this purpose.
These updates aim to not only improve the text styling options but also to ensure broader and more accurate language representation. I believe these changes will contribute significantly to the project and I look forward to your feedback.
Best regards.

Hi @caferyukseloglu, you raise a good point how a font like Noto could help internationalize the canvas contents.  A couple comments/questions: Your PR currently has two sans-serif fonts, and two monospace fonts.  Per your proposal, you'd probably want to replace the current sans-serif and monospace fonts with the Noto counterparts.  How would you propose to achieve the same internationalization for the "handdrawn" font?  Regarding bold/italics fonts, check out #6678.  Someone from @excalidraw could give you more definitive feedback than my comments here.

Thank you DanielJGeiger, I am searching an alternative also for handwriting font like as Noto but no luck yet. I will keep you updated as soon as I found new font without increasing the package size.

@caferyukseloglu I think the approach of #6966 has potential for internationalization of handwritten fonts.

Can also add Monaspace


cooperation

Hello,
I am working on very similar project https://github.com/Nic30/hdlConvertor .
I am using parser/lexer generated from grammar written in ANTLR4 and representing HDL by json like objects.
Are you interested in cooperation?

This parser is intentionally limited to support documentation only. It isn't well suited for fully parsing VHDL or Verilog.


Figure out a way to not require skeptic for users of a crate using skeptic

Using skeptic from build.rs and having it in build-dependencies means that everyone using a crate that uses skeptic winds up building skeptic and all of its dependencies, which adds build time and provides no real value to the end user. It would be nice to figure out a way to only require skeptic when building tests for a crate.
One way to support this would be if cargo added a way to run build scripts for tests. Another way would be for skeptic to be implemented as a procedural macro that could be invoked from inside a #[cfg(test)] block.

Hi,
Indeed, skeptic is built on top of few hacks glued together as there is no way to hook onto the test harness other than writing an actual rs file containing tests into some directory recognized by cargo. Also I am waiting for build plans to land in order not to be able to hook into cargo smarts about dependency resolution and compilation.
At this moment I see not way to fix these issues but I'm open to ideas!

One way that I'm pretty sure could be made to work currently would be to use macros 1.1 as a hack for procedural macros, something like:
#[cfg(test)]
mod test {
  #[macro_use]
  extern crate skeptic_derive;

  #[derive(Skeptic)]
  #[skeptic_files = "README.md, docs/foo.md"]
  struct SkepticTests;
}

Obviously it'd be nicer to have real procedural macro support so it could look more like:
#[cfg(test)]
mod test {
  #[macro_use]
  extern crate skeptic;

  add_skeptic_tests!["README.md", "docs/foo.md"];
}

Hmm neat idea @luser!
This would require fundamental skeptic rewrite and I cannot say that I'm well acquainted with 1.1 style macros, so none of these would happen in the foreseeable future (I'm currently the only active maintainer with not much spare time).
I would really welcome a PR or a partial POC if you would be willing to contribute some of your time.

Annoyingly, this issue caused me to switch off skeptic for https://github.com/asajeffrey/swapper/ since it was dragging skeptic and all its dependencies into servo.

@budziq yes, I was quite grumpy. The blocker was https://github.com/asajeffrey/swapper/pull/3#issuecomment-316421198
  Dev-dependencies are not allowed to be optional: `skeptic`

@luser's workaround means one cannot avoid a rebuild when running cargo test with only integration tests and no unit tests.

@nox suggests a solution, which is to have a separate cargo command for running skeptic: https://mozilla.logbot.info/servo/20171108#c13824351

@nox suggests a solution, which is to have a separate cargo command for running skeptic: https://mozilla.logbot.info/servo/20171108#c13824351

Hi @nox, @asajeffrey,
Sorry for taking so long to respond.
Do you see any advantage of separate cargo skeptic or a standalone skeptic cli app over just running rustdoc?
rustdoc ./README.md --test -L ./target/debug/deps/

As far as I know these should be more or less equivalent except for:

conflicting deps version handling
template/skt files

I'm inclined to follow @luser's suggestion once I care enough free time to actually play with Macros 1.1. This should make the lib slightly less painful to use.
If you see a clear advantage of cargo skeptic over rustdoc I might be persuaded otherwise.

@budziq yes, I ended up just running rustdoc directly, e.g. https://github.com/asajeffrey/josephine/blob/e6a385af2ac2f83a2af21b634b840cd95de17662/.travis.yml#L15. The lack of .skt is a bit annoying, but it does the job!

I liked @asajeffrey's suggestion so I tried out integrating it as a Rust test so that it'd run as part of cargo test:
https://github.com/luser/read-process-memory/blob/master/tests/skeptic.rs
It seems to work reasonably well! It would be neat to figure out if that could be written as a macro so it could be encapsulated into some sort of skeptic-lite crate.

While I know skeptic can be replaced with as little as rustdoc -L target/debug/deps/ --test README.md, I've gone ahead and created a "skeptic-lite" inspired from https://github.com/im-0/log4rs-syslog/pull/17
https://github.com/assert-rs/docmatic
I see some people have been adding --extern.  So far I've not done that but we can always look at adding it in the future.

Do you see any advantage of separate cargo skeptic or a standalone skeptic cli app over just running rustdoc?

So I'm not looking at this from the angle of integrating into a CI (test reporting, coverage, etc).  So far we've been creating replacements for cargo test.  I'm feeling ambitious right now and I'd like to add support for doctests and this got me thinking it'd be nice to have these tools also support the role of skeptic.  This means we'd ship a pre-built binary that people download and run in their CI rather than having to make skeptic a dependency


Problem send notification

Hello,
I can not send a notification from a button in my application.
i try with the code next for send a notification:
   let contents = {      'en': 'You got notification from user'    }    OneSignal.postNotification(contents, token);
This returns me the following error : JSON value ' ' of type NSString cannot be converted to
NSDictionary
Someone can help me?
Thank

@DarkXelus this isn't a bug with the SDK, you should have more than two arguments when calling postNotification.
For example:
OneSignal.postNotification(contents, additionalData, playerId, otherParameters);


[Feature Request]: Callback Events for Refine output_cls pydantic invocations

Feature Description
When using output_cls with Refine, you don't get TOOL like events in the callbacks that describe the pydantic schema. If you attach the llama_index.callbacks.LLamaDebug as callback, you can see that the pydantic invocation to parse the arguments is missing  in the span tree
**********
Trace: query
    |_query ->  1.749029 seconds
      |_retrieve ->  7.1e-05 seconds
      |_synthesize ->  1.74883 seconds
        |_templating ->  1.2e-05 seconds
        |_llm ->  1.745828 seconds
**********

It would be nice to be able to get a bit more visibility into the tool like behavior since function calls are being leveraged.
Reason
Got a feature request for visibility into the invocation of pydantic here: https://github.com/Arize-ai/phoenix/issues/1700#issuecomment-1792219834
Value of Feature
Better visibility into the pydamtic model being advertised to the model and visibility into the pydantic model used

Alongside function calls/pydantic invocations being missing, there are also other missing bits of information from llamaindex here.
Here's a quick snap of what happens when I run a (structured output) query engine in parallel over three different retrievers (representing different collections of files):

I only get one out of the three visible in phoenix, an "unknown" trace appears, and (not sure if intentional or not) the single response I do get is split into two "chains", one missing the output. At the same time, the actual output is perfectly valid and I get all three results that I was looking for.

Here's a gist which reproduces these failure modes.

Just to be clear btw, should I open a separate ticket for the "bug" aspect of this? Specifically, the high level picture is that tracing with query engines (when they have structured output, not tested the regular case):

Does not report function calls (like in the Tool) case, and
Misses a bunch of queries/LLM calls, generating "unknown" traces (this is stinging me a bit in prod)

Both are present in the MWE.

We can work off this issue, no worries 👍


Add a simple journaling mechinism.

I see there are several feature requests for various forms of task management, when all I am looking for is a simple free-form text field that would log an entry in a specified log/journal file for each pormodoro. Other systems could parse this text file, to achieve some level of task management, but I only want a record of what I have worked on -- to refresh my memory from time to time.
Thank you for this great tool!

+1

+1

+1


Issue 12487 - DMD correctly reports excessive CTFE recursion, but not template recursion

https://issues.dlang.org/show_bug.cgi?id=12487
When an instance that will be converted to a constant exists, the instance representation "foo!tiargs" is treated like a variable name, and its recursive appearance check (note that it's equivalent with a recursive instantiation of foo) is done separately from the recursive definition check for the eponymous enum variable declaration.
By the approach, we can remove problematic global.gag check in DsymbolExp::semantic() without breaking fail_compilation/diag10141.d.

@donc You're the person who added the gag check in #3594. Can you review this?

Fixed trailing space in expression.c.

Rebased on master, and ready for ddmd.

Couldn't this be 5 PRs instead of one?

@WalterBrigt A commit depends on the previous commits. So this cannot be 5 independent PRs.

The 'Refactor ScopeExp::semantic()' appears to be independent.

@WalterBright Yes, but latter 4 commits depend on that refactoring. I don't like to create multiple "dependent PRs", because their maintenance is troublesome.

@WalterBright I've separated the first commit to #5132. Is that reviewable/mergeable to you?

2nd separation: #5135

3rd separation: #5142

Last separation! #5149

All of separation commits (#5132, #5135, #5142, and #5149) has been merged. Now this PR contains only diagnostic test case.

Auto-merge toggled on


Should write newlines at the end of files

I think it's generally considered good practice to add newlines to the end of files, especially since some tools complain if they are not present. This StackOverflow question says that ending files w/ a newline is part of the POSIX standard.

Yes, it should add a newline. In the more recent version of this tool, at litpro  this should be adding newlines. Since I am intending to replace this with litpro, I recommend trying that. It is much more powerful but should be mostly compatible. See litpro-lib for more documentation on what it can do.
Let me know if that works out for you. Otherwise, I'll see about adding the newline behavior to this. Would prefer not to modify this version at all at this point.

Awesome, switching to litpro fixes this for me, thanks! Can I add a note to the README of this library that it's no longer supported and users should switch to litpro?

Note added; glad litpro worked for you. I intend to put litpro+batteries here, but it has taken a long time to get around to doing that.


How to use in documentations

Thanks for the nice plugin.
But there should be how to use details in the documentation to make easy for the user to use.

On the home page: http://asvd.github.io/intence/
There is a dark section with the documentation. Is this what you need? Is there something missing?

Yes,
Thanks asvd for the support.
On Fri, Jun 26, 2015 at 12:13 PM, asvd<EMAIL_ADDRESS>wrote:

On the home page: http://asvd.github.io/intence/
There is a dark section with the documentation. Is this what you need? Is
there something missing?
—
Reply to this email directly or view it on GitHub
https://github.com/asvd/intence/issues/3#issuecomment-115555119.


Ghost  investigation

Summary
Brief explanation of the feature.
Basic example
Include a basic example or links here.
Motivation
Why are we doing this? What use cases does it support? What is the expected outcome?

Closing this for now - Feel free to re-open this issue even when you have updated the issue description with some details about your problem :)


Engine - stopping in the middle, processing batches of notices

Yesterday I've left engine to process Polish notices. Today it was still running. Not a big surprise as there are a lot of them. I've checked the website and to my surprise the new notices are not included in the results. I've stopped the enging and run post-processing script hoping some aggregation may need to be run - still result is the same, only 60 pages on http://pl.redflags.transparencee.org/
I would expect that processed notices are inserted into the database from time to time? Isn't this the case? Do I as a an admin need to process it in small chunks?
Can mySQLExporter be configured to do it in batches?

MySQLExporter spits out all data into text files then loads them into the database. This loading operation is performed when the engine finishes processing all notice in the given scope.

So do not stop the engine, if you need those data. :)
If you need smaller batches, you need to define a smaller scope.
Or you can implement a new exporter gear which stores data into database on-the-fly - but it will be much more slower.

Ok, thank you for the info!


Revert "Code cleanup for Observer class (#2041)"

This reverts commit 590d9ccc96f6c69090849f2e5cfb4587da647ee5.
Fixes #2067 (this.handlers is undefined)

@thijstriemstra what version number

Coverage increased (+0.08%) to 80.755% when pulling c9de8bdc889755038b5383995ea5f368629582c6 on sundayz:master into f63638dbbb06adb6b43c3f9dcdbfc3a2b45c3495 on katspaugh:master.

@sundayz sounds good.


unfinished codebase?

Hello, first, thank you for your work. I find it fascinating!
I was wondering if the codebase isn't yet complete, since the predict.py and predict_downstream_conditionals.py still have missing imports, etc.
I was hoping to see how the model actually functions after I've trained it after one epoch.
Any plans on updating soon?

Hi, Do you mean modeling_elasticbert.py? I received an email reporting this but forgot to update :(
Traceback (most recent call last):
File "predict.py", line 5, in
from models.modeling_elasticbert import ElasticBertForPreTraining
ModuleNotFoundError: No module named 'models.modeling_elasticbert'
If the missing import is some huggingface modeling files, just comment them out and run predict.py. This is because we evaluated DiffusionBERT on some other PLMs but did not report those results.
This issue will be solved soon :)

Hi, I deleted the missing import in the previous update in the last commit https://github.com/Hzfinfdu/Diffusion-BERT/commit/404d222f1535fa971908c2099b227d9b94d55fdc. Did you clone before that? Pulling again may help.


Game Crashes

[19:45:22 CPP/INF] [global_import_hook] "C:\WINDOWS\System32\winrnr.dll" ("LDAP RnR Provider DLL" ver 10.0.22621.1) has been loaded at 0x7FFF87620000 ~ 0x7FFF87631000 (0x11000); finding import table items to hook.
[19:45:22 CPP/INF] [global_import_hook] "C:\WINDOWS\system32\wshbth.dll" ("Windows Sockets Helper DLL" ver 10.0.22621.1778) has been loaded at 0x7FFFA47D0000 ~ 0x7FFFA47E5000 (0x15000); finding import table items to hook.
[19:45:22 CPP/INF] [global_import_hook] "C:\WINDOWS\system32\nlansp_c.dll" ("NLA Namespace Service Provider DLL" ver 10.0.22621.2070) has been loaded at 0x7FFF875C0000 ~ 0x7FFF875E1000 (0x21000); finding import table items to hook.
[2023-08-06 19:45:29.571] [info] [websocket_client.cpp:204] ignoring request to stop websocket client -> already stopped!
[19:46:03 CPP/INF] [global_import_hook] Redirecting GetProcAddress("kernel32.dll", "GetProcAddress")
[19:46:23 CPP/INF] [global_import_hook] "C:\WINDOWS\system32\c_g18030.dll" ("GB18030 DBCS-Unicode Conversion DLL" ver 10.0.22621.1) has been loaded at 0x7FFF8C180000 ~ 0x7FFF8C1BC000 (0x3C000); finding import table items to hook.
Fatal error. Internal CLR error. (0x80131506)
Repeat 2 times:
at System.Buffer.__Memmove(Byte*, Byte*, UIntPtr)
at System.Buffer._Memmove(Byte ByRef, Byte ByRef, UIntPtr)
at System.Runtime.InteropServices.Marshal.CopyToManaged[[System.Byte, System.Private.CoreLib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](IntPtr, Byte[], Int32, Int32)
at Dalamud.Memory.MemoryHelper.ReadRaw(IntPtr, Int32)
at BossMod.Network.HandleMessage(IntPtr, UInt16, UInt32, UInt32, Dalamud.Game.Network.NetworkMessageDirection)
at BossMod.Network.ProcessZonePacketDownDetour(Void*, UInt32, Void*)
at Dalamud.Game.Framework.HandleFrameworkUpdate(IntPtr)

What region are you playing on - is it using 'global' client? If it is CN/KR, I don't really support them (at least for now).


Season time and date check

There was an issue with one user not being able to submit picks last year before the kickoff the first game.  The time & date check is probably written wrong.
I've re-written it using Pendulum to help with datetimes in MLBPool2 and it appears to be working here:  https://github.com/prcutler/mlbpool2/commit/eddcf4c94d734f45beff6d1760598855451df411

Now using Pendulum in the GameDay and Time services.
Fixed in dev:  a486e41dee1fc05571704c5b03d266af3b4496a4

This is now merged into master and should be fixed, but needs a bit more testing:  94bab1a522beb6508f425a505210f2c6f7a46c63

Tested and working


Dymo 4XL Label Writer usage

The one that was picked at https://github.com/130s/hut_10sqft/issues/193#issuecomment-327684922
Downloads from dymo.com (open "Support" tab

Only supports Win and Mac so I used OSX. The app on it remembered the last config so printing the same thing was easy.


Remove windows 7zip dependency from agent install script

Modern versions of Windows now contain tar (and curl) preinstalled. It should be available on Windows Server 2019 and later and Windows 10+. Removing 7zip means that you can now run this script on a base image without any additional steps.

Thanks @tjcorr Nice catch!  I'd thought it was just an alias to extract-archive for some reason.
We should poke the Actions compute folks as well. (i.e. - https://github.com/actions/runner-images/blob/main/images/windows/scripts/build/Install-CodeQLBundle.ps1)

As an alternative to 7zip on Windows/Server 2016 -   Git for Windows has a git Bash folder that includes tar and gzip - was able to copy over those exe's and accompanying dll's into a folder that is on the PATH.  This will allow using the script as is ✅


Add collective communications

This PR adds new collective communications such as

chainermn.functions.scatter
chainermn.functions.gather
chainermn.functions.all_gather

Preceded by #242.


stream_info: moving downstream timing into its own class

Companion PR to https://github.com/envoyproxy/envoy/pull/18934
Risk Level: low (refactor)
Testing: n/a
Docs Changes: n/a
Release Notes: n/a

/wait


Does not correctly parse table rows with w:gridBefore or w:gridAfter elements

When iterating over cells within rows, the index calculations for cells and rows within the table are off by the accumulated w:gridBefore and w:gridAfter from prior rows.

What are the semantics of those elements?

Microsoft Word for Microsoft 365 MSO (16.0.13231.20372) 64-bit
XML Excerpt:
<w:trPr>
<w:gridAfter w:val="1"/>
<w:wAfter w:w="11" w:type="dxa"/>
<w:trHeight w:val="432"/>
</w:trPr>
https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.gridafter?view=openxml-2.8.1
When the object is serialized out as xml, its qualified name is w:gridAfter.
Remarks
[ISO/IEC 29500-1 1st Edition]
gridAfter (Grid Columns After Last Cell)
This element specifies the number of grid columns in the parent table's table grid (§17.4.49; §17.4.48) which shall be left after the last cell in the table row.
If this element conflicts with the remaining size of the document grid after all table cells in this row have been added to the grid, then it shall be ignored. If this element is not specified, then its value shall be assumed to be zero grid units.
https://docs.microsoft.com/en-us/dotnet/api/documentformat.openxml.wordprocessing.gridbefore?view=openxml-2.8.1
When the object is serialized out as xml, its qualified name is w:gridBefore.
Remarks
[ISO/IEC 29500-1 1st Edition]
gridBefore (Grid Columns Before First Cell)
This element specifies the number of grid columns in the parent table's table grid (§17.4.49; §17.4.48) which must be skipped before the contents of this table row (its table cells) are added to the parent table. [Note: This property is used to specify tables whose leading edge (left for left-to-right tables, right for right-to-left tables) does not start at the first grid column (the same shared edge). end note]
If this element is omitted, then its value shall be assumed to be zero grid units. If this element's value is larger than the size of the table grid, then the value shall be ignored and the first cell in the row can span the full table grid (i.e. the second cell, if one exists, should start at the last shared edge in the table).

I've added a small number of details here https://github.com/python-openxml/python-docx/pull/564#issuecomment-710678543

I thought about fixing this by adding support on the Row class for gridAfter and gridBefore. Then the issue is how to expose the row and cell indexing to the user. It seems like the table cells are in a linear list, repeated for each gridSpan. It might be plausible to repeat the first cell in a row a number of times equal to gridBefore + gridSpan (defaulting to 0 and 1 respectively) and repeat the last cell in a row a number of times equal to gridAfter + gridSpan (again, defaulting to 0 and 1 respectively).
However, I would prefer to iterate through the cells in a row and get a single cell element when that cell contains a gridSpan. Possibly exposing a gridSpan property on the Cell. If cell access was modified in this manner, then the Row could expose gridAfter and gridBefore properties and cell iteration would still only return a single Cell instance for each iteration, effectively "skipping" the cells that would otherwise exist for gridAfter, gridBefore, and any gridSpan values.

Yeah, the interface design for cell access is tricky and the current implementation is what we settled on after a lot of consideration and experimentation. Our primary concern is making it accessible for most folks for the most common cases, and keeping the cognitive load low.
I'm inclined to think that any alternative cell access scheme at least start out life as a parallel implementation. Then maybe if it's clearly simpler for folks to understand maybe we replace what's there, but I doubt we'd ever get there. Tables are just complicated things and most folks only care about the simple cases.
Anyway, you might want to create an alternate proxy object for tables, perhaps one that subclasses the existing Table object, and give it access semantics that suit your use case. Looking at how the Microsoft API handles grid-offsets could possibly be interesting.
One possibility might be a AltTable.iter_cells() method which generates one _AltCell object for each actual <w:tc> element in the table and then has properties for things like its grid-row, grid-column, horz-span, vert-span, etc. and then leaves the working out of what's happening to the caller without trying to fit them neatly into a matrix concept.

I was also thinking about a parallel access method as well so current users don't have to update code. I like your proposed implementation. I only need reading for the moment, so an iterator as you mention would be ideal. I have been exploring the object properties and getting access to the XML directly through the _tr and _tc objects. They seem to have access to the gridAfter XML element in my file and access to gridSpan element in the TcPr elements as well, so I think all the info is within the structure.
I'm having difficulty extracting text from the XML element. From a long time ago, I remember accessing text by looking at "pre" text, then descendants in order then "post" text.  itertext() method on _tc seems to duplicate text in my case, but I'm still exploring. Thanks for your input!

I added the following definition to class Table in table.py:
    def iter_row_cells(self, row_idx):
        """
        iteration over row cells with ONE cell per actual table cell. This does not repeat cells with gridSpan and properly handles (by ignoring) gridAfter and gridBefore.
        Use of this method results in a ragged array of cells:
        A potentially different number of cells per row.
        """
        # HiGregSmith added
        for c in self._tbl.tr_lst[row_idx].tc_lst:
            yield _Cell(c,self)

Then to use this call, I needed to get the max row index. Ideally, this would be abstracted, but this seems the most direct way to access by row number rather than an iterator for row and for cell within a row. Note also that this is more properly called a "generator" and only creates Cell objects when needed rather than creating them all at once for the row (or table, for that matter).
documentlist is a list of filenames each of which is suitable for using when calling Document(). This example prints out the text in each cell with a maximum horizontal spacing and a vertical line with all the cells in each row appearing on one line:
import docx
from pprint import pprint

for docname in documentlist:
    document = docx.Document(docname)
    for table in document.tables:
        for row_idx in range(len(table._tbl.tr_lst)):
            for c in table.iter_row_cells(row_idx):
                print ('{!r: ^{fieldsize}.{fieldsize}}|'.format(c.text,fieldsize=19),end='')
            print ('')
    print('-'*40)

@HiGregSmith Nice :) Thanks for posting what you came up with :)

Function for correct retrieve real cells from row:
def real_row_cells(row:'_Row') -> 'Sequence[_Cell]':
  from docx.oxml.simpletypes import ST_Merge
  from docx.table import _Cell

  cells = []
  table:'Table' = row.table

  drows = getattr(table, '_real_rows', {})
  if not drows:
    table._real_rows = drows = {}

  row_ind = row._index
  if ocells := drows.get(row_ind):
    return ocells

  for i, tc in enumerate(row._tr.tc_lst):
    for grid_span_idx in range(tc.grid_span):
      if tc.vMerge == ST_Merge.CONTINUE:
        prev_cels = real_row_cells(table.rows[row_ind - 1])
        cells.append(prev_cels[i])
      elif grid_span_idx > 0:
        cells.append(cells[-1])
      else:
        cells.append(_Cell(tc, table))

  ocells = tuple(cells)
  drows[row_ind] = ocells
  return ocells

Function for correct retrieve real cells from row:

This does not work for me.

I added the following definition to class Table in table.py:
    def iter_row_cells(self, row_idx):

And here is a version that does not need monkey patching:
def table_itercells(table):
    for row_idx in range(len(table._tbl.tr_lst)):
        for cell in table._tbl.tr_lst[row_idx].tc_lst:
            yield _Cell(cell, table)

The following function table_iterrows() helped me to parse table rows correctly
from typing import Tuple
from dataclasses import dataclass

from docx.table import Table, _Cell

@dataclass
class _SimpleRow:
    cells: Tuple[_Cell, ...]

def table_iterrows(table: Table) -> _SimpleRow:
    for row_idx in range(len(table._tbl.tr_lst)):
        cells = []
        for cell in table._tbl.tr_lst[row_idx].tc_lst:
            cells.append(_Cell(cell, table))
        yield _SimpleRow(tuple(cells))

It returns a _SimpleRow dataclass, so that you can simply replace code like:
for item in doc.iter_inner_content():
    if isinstance(item, docx.table.Table):
        for row in item.row:
            for cell in row.cells:
                print(cell.text)

with
for item in doc.iter_inner_content():
    if isinstance(item, docx.table.Table):
        for row in table_iterrows(item):
            for cell in row.cells:
                print(cell.text)


Switch backend to SymbolicUtils?

SymbolicUtils.jl is pure Julia, and is extendable: https://github.com/JuliaSymbolics/SymbolicUtils.jl
It could replace the sympy backend.

Can we implement the current system using just symbolics.jl without getting into the symbolic utils part of it?
They seem to give an endpoint to "register" functions so they are treated as primitive symbols/functions. That sounds like it might help
https://juliasymbolics.github.io/Symbolics.jl/dev/manual/functions/
But one would still have to write the canon_bp rules using the symbolicutils API probably.
If you have an idea on how to begin to implement this in symbolicutils.jl I'm very curious, and would love to hear a very rough sketch.

That's a good idea, and if possible could make this a lot easier. I'm not quite sure how you could enforce indices matching, etc in Symbolics.jl, but maybe I just need to think about it more. I'd love to hear ideas if you have them. And apparently Symbolics.jl is supposed to eventually support array-valued variables, so then adding rules for tensor contractions might be pretty easy.
The rough sketch I had in mind for SymbolicUtils went something like this:
Following https://symbolicutils.juliasymbolics.org/interface/, we just need to define istree, operation, arguments for the tensor objects. And maybe more?
So I was thinking something like this, basing the rough types off of sympy.tensor.tensor
abstract type Tensor <: Number end

struct TensorHead <: Tensor
    num_indices::Integer
    TIT::TensorIndexType
    # index symmetries, maybe more stuff
end

struct TensorIndexType
    name::Symbol
end

struct TensorIndex
    name::Symbol
    TIT::TensorIndexType
    is_up::Bool
end

struct TensorExpr <: Tensor
    operation::Symbol
    args::Vector{T} where T <: Tensor
    free_indices::Vector{TensorIndex}
end

istree(tens::T) where T <: Tensor = false
istree(tens::TensorExpr) = true
operation(T::TensorExpr) = T.operation
arguments(T::TensorExpr) = T.args

I think I got that right? And then actual addition / index contraction / canon_bp, etc would have to be expressed as @rule statements of TensorExprs.
Like this one might be addition, if I am using the rules correctly
function add(a::TensorExpr, b::TensorExpr)
    if all([aᵢ ∈ b.free_indices for aᵢ in a.free_indices]) &&
        all([bᵢ ∈ a.free_indices for bᵢ in b.free_indices])
        # there's definitely a faster way to check this
        # addition is associative and commutative so use acrule
        r = @acrule ~x + ~y => TensorExpr(operation=:+,args=push((~x).args,~y))
        return r(a,b)
    else
        error("incompatible indices")
    end
end
```julia

This is actually an excellent starting point, I think. It would probably be better to implement this using SymbolicUtils then, this starting point looks very clear and elegant to me. I imagine the index lowering and raising problems may be too finicky to implement in Symbolics.jl. I've coded up a Minimum Working Example of the above, and one thing I've noted is that SymbolicUtils is not very easy to work with and the error messages are not at all helpful.
Starting from the code you have provided, the next step would be to have something like A(μ,ν) + B(μ,ν) and that should equal to some sort of TensorExpr with operation + as the head
Aside: The operation for a TensorExpr needs to be a Function and not a Symbol
I was trying to set it up with the following code.

#Define Index Type
L = TensorIndexType(:Lorentz)

#Define Indices
μ = TensorIndex(:μ,L,true)
ν = TensorIndex(:ν,L,true)
ρ = TensorIndex(:ρ,L,true)
σ = TensorIndex(:σ,L,true)

#Define Tensor Heads
A = TensorHead(2,L)
B = TensorHead(2,L)

#Do the operation (this currently not implemented)
C = A(μ,ν) + B(μ,ν)

Now one would need a way to define a Tensor with some indices, like A(μ,ν), and have it work with add.
The issue is that A(μ,ν) would then have to be a TensorExpr (to work with add), and then the question becomes what is the operation property of this TensorExpr? We could define a new function AssignIndices and call that the operation but I'm not sure if that's the direction we should take here.
I propose we create a new struct TensorInstance <: Tensor. This is an instance of the TensorHead, with specific indices provided such as A(μ,ν).
TensorHead need not be a subtype of Tensor. Since Tensor <: Number, and a TensorHead is not technically a number until we provide it with some indices. Ex. A does not act like number, but A(μ,ν) does.
We can create an abstract type AbstractTensor  and have + work with just Tensor:

abstract type AbstractTensor end
abstract type Tensor <: Number end

struct TensorIndexType
    name::Symbol
end

struct TensorIndex
    name::Symbol
    TIT::TensorIndexType
    is_up::Bool
end

struct TensorHead <: AbstractTensor
    num_indices::Integer
    TIT::TensorIndexType
    # index symmetries, maybe more stuff
end

struct TensorInstance <: Tensor
    tensorhead::TensorHead
    free_indices::Vector{TensorIndex}
end

function (A::TensorHead)(indices::Vararg{TensorIndex})::TensorInstance
    ## Error check to see if the right number of indices is provided
    ## If we allow Tensorhead to be a parametric type like
    ## TensorHead{num_indices}, we can use dispatch to get rid of the
    ## error check
    if length(indices) == A.num_indices
        TensorInstance(A,collect(indices))
    else
        error("Number of Indices provided doesn't match the
            number of indices of the the tensor")
    end
end

struct TensorExpr <: Tensor
    operation::Function
    args::Vector{Number}
    free_indices::Vector{TensorIndex}
end

using SymbolicUtils
import Base.+, Base.-, Base.*

free_indices(a::TensorExpr) = a.free_indices
free_indices(a::TensorInstance) = a.free_indices

index_matching(a::Tensor, b::Tensor) = (all([aᵢ ∈ free_indices(b) for aᵢ in free_indices(a)]) &&
                                                all([bᵢ ∈ free_indices(a) for bᵢ in free_indices(b)]))

function (+)(a::Tensor, b::Tensor)
    if index_matching(a,b)
        TensorExpr(operation= +,args=vcat(a,b),free_indices = free_indices(a))
    else
        error("incompatible indices")
    end
end

function (-)(a::Tensor, b::Tensor)
    if index_matching(a,b)
        TensorExpr(operation= -,args=vcat(a,b),free_indices = free_indices(a))
    else
        error("incompatible indices")
    end
end

(*)(a::Number, b::Tensor) = TensorExpr(operation= *,args=vcat(a,b),free_indices = free_indices(b))
(*)(a::Tensor, b::Number) = TensorExpr(operation= *,args=vcat(a,b),free_indices = free_indices(a))

Then I tested the code above by running:

#Define Index Type
L = TensorIndexType(:Lorentz)

#Define Indices
μ = TensorIndex(:μ,L,true)
ν = TensorIndex(:ν,L,true)
ρ = TensorIndex(:ρ,L,true)
σ = TensorIndex(:σ,L,true)

#Define Tensor Heads
A = TensorHead(2,L)
B = TensorHead(2,L)

C = A(μ,ν) + A(μ,ν)

C |> display #Basically gives A(μ,ν) + A(μ,ν) as a TensorExpr

r = @rule( ~x => ~x*10 )

r(C) |> display #Basically gives 10*(A(μ,ν) + A(μ,ν)) as a TensorExpr

r2 = @rule( ~x + ~x => 2*~x )

r2(C) |> display #Returns Nothing, which means it was unable to match this expression

Hence doing 3*A(μ,ν) + 4*B(μ,ν) is basically implemented as an operation.
However, SymbolicUtils is not able to match some simple expressions. This may be because we may still needs some additional functions implemented, and I'm looking into how to implement them.
Please do critique any design choices and/or symbolicutils implementation here.
If you want I could make a PR with the Minimal Working example and you can examine that code.
Alternatively, we could test this on a completely new repo before finalising the structure and what needs to be done, and add a finished backend to SymbolicTensors.jl when it is ready, whatever is better.

Wow, awesome work. Yeah I think a PR should work well, as far as I know nobody is using this repo in production so we can just commit to master. I'll tag the current state just in case someone needs it.
I think you now officially have more experience actually using SymbolicUtils than me, since I've just been reading the docs haha. It's a shame that the error messages aren't very good. On Zulip people are saying that its public API is at least guaranteed to not change, but that a lot of internals are still being worked on.
One thing I am just now realizing is that we probably want tensors with mixed index types (think like changing bases and things like that) so maybe TensorHead should have been
struct TensorHead <: AbstractTensor
    index_types::Vector{TensorIndexType}
    # index symmetries, maybe more stuff
end

in practice, TensorHead::num_indices is the same as the length of the types vector, so no need to store it either.
Also great idea with TensorInstance, that makes more sense than packing it all into TensorHead.
I'm not sure exactly how to get SymbolicUtils to distribute coefficients and things like that -- from what I'm reading we might need to be careful about defining symtype(::TensorExpr). One thing I really didn't like about sympy's tensor module is that it didn't treat fully contracted tensors like scalars (e.g. 1/(A(-a)*A(a)) would error), but we might be able to make sure that doesn't happen by telling SymbolicUtils the appropriate symtype. Another SymbolicUtils function we probably have to define is simiilarterm, but I need to read up more how that works.
But yeah, awesome work and we'll probably have to play around with the exact implementation for a while before simplification is working well, but this is great progress.


Compat for changes from node 0.4.x to 0.6.x

Hi Isaacs,
I've understood you are not particularly interested in maintaining a compatibility between a native binding to glob and node version superior to 0.5.x so i wont be upset if you discard my commit.
In this path, you find a API correction as well as a change in the require path. This will break compatibility with 0.4.x version of node but i don't know any better ways to handle this upgrade.
David

The scons build system is going away, so this is at best a stop gap measure.  But it seems like a pretty reasonable stop-gap, so why not?
Landed on master, published as 2.1.0

Do you know by any chance a place where new package recommendations, libuv usage or other documentation are at least partially described? I couldn't find anything on node wiki/api/blog websites

Sorry, i forgot to thank you for pushing this new version: )


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.10 to before v5.10.99",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=95fe51096b7adf1d1e7315c49c75e2f75f162584",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=75c610212b9f1756b9384911d3a2c347eee8031c"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "95fe51096b7adf1d1e7315c49c75e2f75f162584",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "75c610212b9f1756b9384911d3a2c347eee8031c",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "RDMA/ucma: Protect mc during concurrent multicast leaves\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.99 by commit 75c610212b9f1756b9384911d3a2c347eee8031c, it was introduced in version v5.10 by commit 95fe51096b7adf1d1e7315c49c75e2f75f162584. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2022-1000225


fix: prefix host call

Was this crashing?

Was this crashing?

unfortunately, yes. and it went unnoticed. I guess it's time for #114

unfortunately, yes. and it went unnoticed. I guess it's time for https://github.com/aspect-build/rules_ts/issues/114

I think we can even write plain js but still typecheck it by putting types in comments and just type inference on its own is useful.

unfortunately, yes. and it went unnoticed. I guess it's time for #114

I think we can even write plain js but still typecheck it by putting types in comments and just type inference on its own is useful.

i agree.


New line if too many badges & fix bg color

What changes?

Currently, when you have too many badges, it bugs out the view - making the container a flex fixes the issue.
The background of the container seems to have vanished - brings it back.

Before
After

Thanks for this, but I can't seem to recreate the original issue? eg.

Could there potentially be a plugin or other theme enabled which could be causing this?
Also a few notes for future:

I'm assuming this should belong to the user profile popout (src/modules/popouts/_user.scss) as the class provided in the change doesn't seem to appear in the user modal.
The [class^=""] selector is generally avoided unless absolutely necessary. Use the full class (eg. profileBadges__1f2ab) instead.


parseZone(s) differs from moment(s).utcOffset(s);

Description of the Issue and Steps to Reproduce:
moment.parseZone does not produce same results as mentioned in  parseZone() Docs.  The docs state that moment.parseZone is equivalent to parsing the string and using moment#utcOffset.  This fails with +/-00:00.  Example below:
var test = '2016-10-20T03:00:00+00:00';
moment(test).utcOffset(test).format() // Good: 2016-10-20T03:00:00Z
moment.parseZone(test).format()       // Bad:  2016-10-19T22:00:00Z, Expected: 2016-10-20T03:00:00Z

Environment:
Node 6.6.0 on OSX
Other information
console.log( (new Date()).toString())  // Sat Oct 22 2016 09:06:24 GMT-0500 (CDT)
console.log((new Date()).toLocaleString())  // 10/22/2016, 9:06:24 AM
console.log( (new Date()).getTimezoneOffset())  // 300
console.log(moment.version)  // 2.15.1

I'm seeing the same. I've also observed discrepancies for any offset within a 15-minute range of 00:00. In those cases, moment.parseZone reinterprets the offset as hours instead of minutes.
var test = '2016-10-24T10:00:00+00:15';
moment(test).utcOffset(test).format(); // Good:  2016-10-24T10:00:00+00:15
moment.parseZone(test).format();      // Bad:     2016-10-25T00:45:00+15:00, Expected: 2016-10-24T10:00:00+00:15

I'd expect moment.parseZone(s) to behave like moment(s).utcOffset(s) in these cases too.
Environment
Chrome 53.0.2785.143 on Windows 10
Other info
new Date().toString(); //  Mon Oct 24 2016 10:12:07 GMT-0500 (Central Daylight Time)
new Date().toLocaleString(); // 10/24/2016, 10:12:22 AM
new Date().getTimezoneOffset(); // 300
moment.version // 2.15.1

We have a couple of different parseZone fixes in the works, but I'd like to keep this open and take one more pass over it to make sure we got everything; I hadn't seen the issue @TimHambourger is reporting and maybe that's still in there.

The original issue here is fixed in 2.16.0. @TimHambourger's additional issue still happens.

pr #3643


Feature Request: Has this been tested with Dynamoid?

Just wondering if this has been tested with Dynamoid, as I was trying to use it with that.
Is that in the roadmap?

we don't have a roadmap at this point and no one is really actively maintaining it.  I'm looking for volunteers to take it over right now.

Support for dynamoid is not in the roadmap but a PR for supporting dynamoid would be more than welcome!


How to print complete data array in openpnm

Sometimes I need to check the array in openpnm, for example, sgl['pore.coords']. But the command numpy.set_printoptions(threshold='nan') or numpy.set_printoptions(threshold=None) is not useful for pnm objects.  Does anyone know how to realize that?

We don't do anything to overwrite this behavior.  We don't subclass numpy arrays, just store them in the OpenPNM dicts.
I find that these functions work as expected for me.  For instance:
>>> pn['pore.coords']
array([[5.0e-05, 5.0e-05, 5.0e-05],
       [5.0e-05, 5.0e-05, 1.5e-04],
       [5.0e-05, 5.0e-05, 2.5e-04],
       ...,
       [9.5e-04, 9.5e-04, 7.5e-04],
       [9.5e-04, 9.5e-04, 8.5e-04],
       [9.5e-04, 9.5e-04, 9.5e-04]])

>>> # Change some options
>>> np.set_printoptions(linewidth=20)
>>> pn['pore.coords']
array([[5.0e-05,
        5.0e-05,
        5.0e-05],
       [5.0e-05,
        5.0e-05,
        1.5e-04],
       [5.0e-05,
        5.0e-05,
        2.5e-04],
       ...,
       [9.5e-04,
        9.5e-04,
        7.5e-04],
       [9.5e-04,
        9.5e-04,
        8.5e-04],
       [9.5e-04,
        9.5e-04,
        9.5e-04]])

One of the examples that you give above does not work for me however as 'nan' threshold is not valid.  The None threshold does not throw an error for me but doesn't seem to do anything.

Sorry to bother you again, maybe I do not clarify my question clear. I just want to print all the data with no omitting.

Ahh, in that case do np.set_printoptions(threshold=pn.Np)  to print ALL the entries in pore.coords


V2: update user-agent string to include the source

What this PR does

[x] Update the user-agent to include the serving source name (or SSR)

cc @sampotts @benhinchley @jonathaningram for review.

@jonathaningram Can you take another look at this too?


chore(main): release 0.2.2

:robot: I have created a release beep boop
0.2.2 (2023-08-02)
Dependency Updates

deps: bump github.com/onsi/ginkgo/v2 from 2.10.0 to 2.11.0 (#178) (b1a7a46)
deps: bump github.com/onsi/ginkgo/v2 from 2.9.7 to 2.10.0 (#171) (e946205)
deps: bump github.com/onsi/gomega from 1.27.7 to 1.27.8 (#172) (75589f8)
deps: bump github.com/onsi/gomega from 1.27.8 to 1.27.10 (#184) (a47ddc7)
deps: bump go.uber.org/zap from 1.24.0 to 1.25.0 (#188) (14d8e21)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/statnett/controller-runtime-viper/releases/tag/v0.2.2 :sunflower:


CAMEL-8640 on Camel 2.15.x

Encapsulated BacklogTracer queue.
Implementation of queue changed to list based instead of array based.
Ensuring free space in queue responsibility moved into BacklogTracer instead from BacklogTracer's user.

Thanks for this PR. The code has been merged, do you mind closing this?

You are welcome.


[AutoPR cognitiveservices/data-plane/NewsSearch] typo: cognitiveservices/data-plane/NewsSearch

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

Build output:


ovn probe: Probe fails to start when there are too many objects

When enabling the ovn probe on a cluster, it can potentially deadlock on initialization.
The reason seems to be that the probe first creates the go-ovn.Client, and then creates the goroutine that processes the callbacks.
However, the go-ovn Client constructor, will internally try to populate the initial cache which can trigger a potentially large number of callbacks. Since the processing goroutine has not been created yet, if the number of callbacks exceed 50 (the size of the buffered event channel), the main thread will never return from the go-ovn Client constructor.
In my testing, the issue disappears by moving the creation of the event-processing go-routine to the top of the function (before calling go-ovn.NewClient).
I'd happily send a PR with that fix if it's considered a viable solution, or try to implement any alternative approach that is suggested.

@lebauce This issue is still happening.

Really fixed by https://github.com/skydive-project/skydive/pull/2288


getting error if row count = 0

Hi,
getting error if row count = 0.
gridviewscroll.js:34 Uncaught TypeError: Cannot read property 'rows' of null
at GridViewScroll.enhance (gridviewscroll.js:34)

Hi,
for time being I applied these checks:
if (this.ContentGrid == null) return;
if (this.ContentGrid.rows.length == 0) return;

Actually this.ContentGrid is null when zero rows.
Thanks

I had commit an update, It is because the element does not exist.


Assigning global roles to groups not getting applied to new users

SURE-4025
Rancher Cluster:
Rancher version: 2.6.3
Number of nodes: 2
Node OS version: SLES 15 SP3
Other:
Underlying Infrastructure: AWS
Any 3rd party software installed on the nodes: no
Customer’s main time zone: EST
Describe the bug
After assigning a global role to a group, when user logs in first time, they are not assigned to the role.
To Reproduce

Create a new v2.6.3 rancher environment with restricted admin turned on during bootstrap
Enable GitHub authentication (customer is using Azure AD)
Go to Users->Authentication, Groups, click Assign Global Roles
Enter rancher as group name, select Restricted Admin as Global Permission. Click Save.
Log out.
Log in as a user in the rancher GH group.

Result
New user is not created with user global role
Expected Result
New user is created with restricted admin role
Additional context
Reproduced this in lab with GitHub. Customer is using AzureAD. Appears to be an issue with both auth providers.
Workaround:
Is workararound available and implemented? yes
What is the workaround: can manually change user's role after they log in
Troubleshooting steps:
Checked globalrolebindings:
kubectl get globalrolebinding -o custom-columns=Name:metadata.name,user:userName,globalrolename:globalRoleName,GROUP:groupPrincipalName
Name                      user           globalrolename     GROUP
globalrolebinding-jntqq   user-vlfh7     restricted-admin   <none>
grb-stknj                 u-b4qkhsnliz   user               <none>
grb-q4vj5                 u-jjhnm3xzhu   user               <none>
grb-4k8hp                 u-odpzmcvto2   user               <none>
grb-mnzqw                 u-mhbgxumusa   user               <none>
grb-72l6s                 <none>         restricted-admin   github_org://9343031
grb-kmx7w                 <none>         restricted-admin   github_org://9343010
grb-v98hs                 u-emk3r7goqi   user               <none>

Checked user attributes for the group:

$ kubectl get userattributes u-emk3r7goqi -o yaml | grep "github_org://9343010" -B3
      memberOf: true
      metadata:
        creationTimestamp: null
        name: github_org://9343010

Got kind of the same problem, however, it's just not showing the permission inherited from the group in the UI, but it seems to work anyway.

As noted by others, this appears to be a UI issue at the moment. The permissions seem to be applied in the backend, but the mapping to discover which groups a user is a part of, and which permissions those groups have, is not explicitly exposed by the backend at this point. This makes it difficult for the UI to render permissions granted to a user by virtue of group membership. It is likely that for this to be fixed, the backend will need to expose an endpoint/add additional data to an existing endpoint so that the UI can make this connection.

The permissions seem to be applied in the backend, but the mapping to discover which groups a user is a part of, and which permissions those groups have, is not explicitly exposed by the backend at this point. This makes it difficult for the UI to render permissions granted to a user by virtue of group membership. It is likely that for this to be fixed, the backend will need to expose an endpoint/add additional data to an existing endpoint so that the UI can make this connection.

The "missing" connection seems to be the /v3/principals endpoint that returns all principals associated with a logged in user, including the user itself and any groups they're a member of, if any. Given the returned group principals the list of roletemplatebindings can be filtered using groupPrincipalName field, in addition to the username.
The resulting unique set of globalRoleNames can be then rendered in the user's Global Permissions UI. This should also apply to cluster and project membership.

@gaktive @nwmac based on the above we believe you guys dont need Collie to resolve this bug - going to remove the team/collie label.

@samjustus ok does this mean that UI can resume this or is there another backend team that needs to help here? Tickets in this repo with a project enter a void.

@gaktive the UI team can proceed. As far as we can tell, there are no changes needed on the backend side from Collie or any other team.


Can't install z3-solver, is it possible to support lean4?

Hello
1.Can't install z3-solver, is it possible to support lean4?
2.Is it possible to support alphageometry? For geometry problems, route to alphageometry, https://github.com/google-deepmind/alphageometry,
but I don't know how much effort to use it?

Can you tell me what error you faced with z3? It should be straightforward to install on mac/linux with pip install z3-solver.
It is possible to add lean4 or other tools. I am planning to add support for plugins so anyone could just add a script that will allow them to execute python code in between request and response of the proxy.

install on localhost
 File "/private/var/folders/nh/vsykft2139j3bbhvv98q4f_00000gn/T/pip-build-env-x6sfb9jd/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 303, in get_finalized_command
          cmd_obj.ensure_finalized()
        File "/private/var/folders/nh/vsykft2139j3bbhvv98q4f_00000gn/T/pip-build-env-x6sfb9jd/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
          self.finalize_options()
        File "<string>", line 267, in finalize_options
      KeyError: ('darwin', 'x86_64')

while using docker can generate the z3 code, but failed to execute it
2024-09-30 05:51:57,135 - INFO - <IP_ADDRESS> - - [30/Sep/2024 05:51:57] "GET /health HTTP/1.1" 200 -
2024-09-30 13:52:06 2024-09-30 05:52:06,156 - ERROR - Execution timed out

for running in docker, I'm solving this,
https://artofproblemsolving.com/wiki/index.php/2024_AIME_I_Problems/Problem_7,
code generated is
from z3 import *

# Define real variables for the real and imaginary parts of z
x = Real('x')
y = Real('y')

# Define the magnitude constraint |z| = 4, which translates to x^2 + y^2 = 16
magnitude_constraint = x**2 + y**2 == 16

# Define the real part of (96 + 144i) / (x + yi)
numerator_real = 96
numerator_imag = 144
denominator_real = x
denominator_imag = y

# Avoid division by zero by ensuring denominator is non-zero
denominator = denominator_real**2 + denominator_imag**2

# Real part of the division
real_part_division = If(denominator != 0,
                        (numerator_real * denominator_real + numerator_imag * denominator_imag) / denominator,
                        0)

# Define the objective function to maximize
objective = 75*x - 117*y + real_part_division

# Create an optimizer
opt = Optimize()

# Add the magnitude constraint
opt.add(magnitude_constraint)

# Maximize the objective function
opt.maximize(objective)

# Check for solution
if opt.check() == sat:
    model = opt.model()
    max_real_part = model.evaluate(objective)
    print(f"Maximum real part: {max_real_part}")
else:
    print("No solution found")

I suspect it's the code itself timeout?

yes, likely the formulation is not correct and times out. Which model did you use? And do you have the prompt with the question itself? I did try some of these problems with the techniques in this but the maximum I got was around 16.67%  with z3 and re2 see https://github.com/codelion/optillm/discussions/31#discussioncomment-10738332

can't install on localhost
 File "/private/var/folders/nh/vsykft2139j3bbhvv98q4f_00000gn/T/pip-build-env-x6sfb9jd/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 303, in get_finalized_command
          cmd_obj.ensure_finalized()
        File "/private/var/folders/nh/vsykft2139j3bbhvv98q4f_00000gn/T/pip-build-env-x6sfb9jd/overlay/lib/python3.11/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
          self.finalize_options()
        File "<string>", line 267, in finalize_options
      KeyError: ('darwin', 'x86_64')

What is the version of setuptools on your machine? Looks like some issue with it.

Python 3.11.4
pip show setuptools:
Name: setuptools
Version: 75.1.0

I'm using z3-gpt-4o(I found prefix approach a bit weird?)
the prompt be:
COT_PROBLEM_INSTRUCTION = """
Let's approach this problem by systematically breaking it down into distinct, logical steps. For each step, provide a clear explanation of the reasoning behind it, considering any underlying assumptions, potential biases, and alternative approaches. Explore how different assumptions or methodologies might lead to varying outcomes and critically assess the consequences of each decision. Additionally, consider the broader implications of these decisions within the context of the problem. Once all aspects have been thoroughly analyzed, synthesize the findings to reach a well-supported conclusion. Clearly express your final conclusion, ensuring that it is directly accessible and requires no further interpretation by presenting it explicitly within the tags <final_answer></final_answer>. Finally, include a verbalized confidence level for your conclusion (e.g., “Confidence: 60% / Medium”) to convey your level of certainty in the analysis and decision-making process.
"""
ASK_PROMPT = """context:
{input.short_context}
instruction:
{input.instruction}
query_type:
{input.query_type}
query:
{input.query}
"""
then:
(COT_PROBLEM_INSTRUCTION + ASK_PROMPT).format(input=self.input)
where input.query is
query="Find the largest possible real part of[(75+117i)z+\frac{96+144i}{z}]where $z$ is a complex number with $|z|=4$.",
input.instruction = "let's think step by step to solve this problem"
I don't think input.short_context
& input.query_type has value

I was able to get the right answer (540) with re2-gpt-4o-mini  without the CoT prompt
Just with initial_query as "Find the largest possible real part of[(75+117i)z+\frac{96+144i}{z}]where z is a complex number with |z|=4" and empty system_prompt.

I'm using z3-gpt-4o(I found prefix approach a bit weird?)

this was to make it easy and not require any change in the openai python sdk that people are already using. I will add ability to pass it in extra_body param as noted in #39 .

I was able to get the right answer (540) with re2-gpt-4o-mini without the CoT prompt
Just with initial_query as "Find the largest possible real part of[(75+117i)z+\frac{96+144i}{z}]where z is a complex number with |z|=4" and empty system_prompt.

Yes,I also able to make it work with bon with gpt-4o,
I think the problem is 1. it may not be stable
2.I want to implement general solution that divides math problem into subpart,
and each part invoke suitable tool to find answer,
this question is just an example.
I'll see what re2 is.
background is I'm doing this minion framework https://github.com/femto/minion,
so currently I also have code to divide problem. I'm trying to do aime and
see how much percentage I can make it pass.

I'm doing this aime task, but I'm not sure openai's 15 questions
refers to I: https://artofproblemsolving.com/wiki/index.php/2024_AIME_I
or II: https://artofproblemsolving.com/wiki/index.php/2024_AIME_II

It has been hard to combine different approaches in my experience for a specific problem like cot + z3. Unless we implement it with a particular task in mind. For math like problems I believe it may well work. For AIME I used https://huggingface.co/datasets/AI-MO/aimo-validation-aime and picked the problems that had 2024. Not sure if that is the same as what openai used but this dataset has been used by others in the community for similar comparison e.g. here -https://github.com/hughbzhang/o1_inference_scaling_laws

Yes, so I did dividing very complex. Dividing to each subtask,
and connect each subtask with input/output protocol.
Definitely we can communicate more as I move along these aime questions.

https://github.com/femto/minion/blob/49dc088747de1cbb1be8961c0c45fe86a49135f9/metagpt/minion/worker.py#L249
check my PlanMinion on currently how I implement this

you can consider my many different minions like your different algorithms

1.Is it possible to add approach to prompt? Just adds to user prompt: "Use bon approach to solve this.",
Or <optillm_config>bon</optillm_config> in prompt and doing regex to extract this,
maybe it's bit easier than change model name or adding extra_body params if using existing framework.
Currently I use metagpt's ActionNode to call llm and do response format parsing, it allow me to
pass in user prompts.
2.Could you test Problem 8 to Problem 11 from https://artofproblemsolving.com/wiki/index.php/2024_AIME_I_Problems#Problem_8,
all failed miserably, I think geometry problems should route to AlphaGeometry,
but I'm not sure how much effort is that.
3.z3's code looks similar to sympy, It appeared they solve the same thing? Then how about switching to sympy? Sympy is much easier to install than z3.

3.z3's code looks similar to sympy, It appeared they solve the same thing? Then how about switching to sympy? Sympy is much easier to install than z3.

Will implement it as part of #41

I have added sympy also to the list of libraries that can be used along with z3 for the solver approach here - https://github.com/codelion/optillm/commit/083a058b2774a106d325a0151f657b47a5251190#diff-19d890e5ca0dd11f52a9fa2911675351962520d210c2fbc438c302f96051c31c
Haven't had the time to test it extensively yet.

Closing this bug report but feel free to open a discussion post for sharing further ideas and issues.


Problem running nodejs version 10.x

We are using this code in our automation for provisioning and renewal of LE certs. This works with lambda runtime 8.10 however this fails with lambda runtime 10.x when deployed. I see no recent commits to the repository also.
Do we need to have code changes in repo in order for it to work with lambda runtime 10.x?
Awaiting reply.

I am not aware yet of changes necessary but will test and get back with you. Thanks for submitting the issue!

With the release of  https://aws.amazon.com/about-aws/whats-new/2019/11/aws-lambda-supports-node-js-12/  I'll skip addressing this issue and combine it with #30


scrollBehavior API docs would benefit from a link to the advanced guide

What problem does this feature solve?
I typically go straight to the API docs for Vue tools, but the scrollBehavior documentation in vue-router-next is pretty minimal. I didn't realise until I'd spent some time looking at the code that there's a very comprehensive guide available in the docs.
I'm happy to contribute a PR for this very small change.
What does the proposed documentation  look like?
scrollBehavior
Function to control scrolling when navigating between pages. Can return:

a ScrollPosition object, which can contain:

ScrollToOptions
an el property with a selector or reference to an element

a Promise to delay scrolling

See Scroll Behaviour for more details.
Signature:
scrollBehavior?: RouterScrollBehavior

Examples
function scrollBehavior(to, from, savedPosition) {
  // `to` and `from` are both route locations
  // `savedPosition` can be null if there isn't one
  return savedPosition || { top: 0 };
}

Thanks for the proposal, no need to open issues for doc PRs, just open the PR directly 🙂


Feature Request: daily backups

Have an option to backup settings to iCloud/OneDrive. This should also add the option to auto export the debug logs as well.
We us our log files to analyze and make setting suggestions. Having those auto exported at the end of the day could help create some automated recommendations.
Or is there a way to pull the logs remotely? Or push them to nightscout? I'm leaving the implementation details to the devs.
Thanks for all your help!

Backup of all settings including CoreData is currently in testing branch profiles, in a PR to dev.

The logs are quite big, but if you want to backup these to cloud you can. Just create an automation, using iOS shortcuts app, uploading the log.txt to cloud on every day (or both log files every second day).


about React 15.5 PropTypes

React.PropTypes will be removed from 16. https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html
Can you fix the question?
Thank you.

Yes, I'll release a new version next week, thanks

Should be fixed in v2.1.2


Wrong Typing in v2.2.0 and Correct in master branch in typescript

The wrong firebase version in v2.2.0 and correct firebase version in master branch.

The master branch will be released soon


[Discussion] Silent translation warning - yes or no and how to handle it?

As translator and programmer, I want to see translation warnings (about missing translation in my language and in English (base) language) in Development environment.
This discussion was moved from https://github.com/louislam/uptime-kuma/pull/499:

Another point is that general development and writing translations are often very different tasks. I don't think I need translation warnings unless I'm specifically dealing with translations. You would need skills like npm install to start the project in dev environment anyway, so I would argue keeping that setting manual isn't that big a problem?


fix #13

actually I find it's quite easy to fix

ummm.... tests fail seems not related?

ummm.... tests fail seems not related?

Well:
Table: Error During Test at D:\a\TOML.jl\TOML.jl\test\readme.jl:672
 Unexpected Pass
 Expression: roundtrip(str)
 Got correct result, please change to @test if no longer broken.

:-) I missed that lol, should be fixed now.

Codecov Report

Merging #14 (53fa1f5) into master (5a4db1d) will decrease coverage by 84.97%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #14       +/-   ##
==========================================
- Coverage   84.97%   0.00%   -84.98%
==========================================
  Files           3       3
  Lines         659     646       -13
==========================================
- Hits          560       0      -560
- Misses         99     646      +547

Impacted Files
Coverage Δ

src/print.jl
0.00% <0.00%> (-86.25%)
:arrow_down:

src/TOML.jl
0.00% <0.00%> (-100.00%)
:arrow_down:

src/parser.jl
0.00% <0.00%> (-84.43%)
:arrow_down:

Continue to review full report at Codecov.

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

@KristofferC bump

https://github.com/JuliaLang/julia/pull/38746


Osmumten fang/Lightbearer/Elidinis Ward have 0 value

🐛 Bug Report
Title. The price api or whatever it is, presumably uses the same price when they were placeholders. (Honestly, prices as a whole need another updating as its getting outdated now. Understand if not priority though)

Commenting to point out this is resolved.


Fonts sometimes missing in production build

I've been having an issue with this module, where the fetching of font files sometimes fails during the production build. I haven't been able to create a reliable reproduction yet—it seems to happen at random.
The build is done in GitHub CI, where a Docker image is built, using Node version 18.
This is the error log from the problematic deployment:
#25 20.31 [@nuxt/fonts]  ERROR  Could not fetch metadata for Red Hat Display from google. fetch failed
#25 20.31
#25 20.31   at Object.fetch (node:internal/deps/undici/undici:11372:11)
#25 20.31   at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
#25 20.31   at async getFontDetails$5 (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:550:12)
#25 20.31   at async cachedData (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:474:20)
#25 20.31   at async Object.resolveFontFaces (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:511:14)
#25 20.31   at async resolveFontFaceWithOverride (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:1395:26)
#25 20.31   at async addFontFaceDeclaration (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:940:22)
#25 20.31   at async Promise.all (index 0)
#25 20.31   at async transformCSS (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:1013:5)
#25 20.31   at async Object.transform (/opt/project/node_modules/.pnpm/@nuxt+fonts@0.8.0_ioredis@5.4.1_magicast@0.3.5_rollup@4.20.0_vite@5.4.3_@types+node@22.5.5_sa_d6a46d5cxhijk7lxvuwfjdzkcm/node_modules/@nuxt/fonts/dist/module.mjs:1025:17)
#25 20.31
#25 20.31
#25 20.31 [@nuxt/fonts]  WARN  Could not produce font face declaration from google for font family Red Hat Display.
#25 20.31
#25 42.48 ℹ ✓ 1387 modules transformed.

Has anyone else come across this issue? Wouldn't it be better to exit rather than continue with the build if the font fetch fails?

yes, it might be worth retrying the fetch a couple of times, and if not - failing the build ...
we can implement in github.com/unjs/unifont.

Unifont has added support for retries. @danielroe I think we should create a new release with the new unifont.

✅ Done - latest release should pull in the latest unifont changes.


Avoid delayProcessing in inner loop in RawPixel.py

Describe the bug
It appears that the delayProcessing method is being called repetitively within the getMetaData function of the RawPixel.py script.  This is (probably) unnecessary, because no requests are made during the inner loop (map/lambda pattern).  Removing this delay would likely increase the speed of this script considerably.

This will be addressed by #256


Enhance empty cart message with Icon/Image

when the cart is empty, our app displays a message that says, "Your cart is empty." While this message is informative, we believe that adding a visual element in the form of an icon or image can greatly enhance the user experience.
We've got the design structure we're itching to incorporate into our app, it's below!"

Hey @Anandsg, please assign this to me, I'll take a look into it

@DarkSoul26 done please install the extension to run the app in your system (have a look at README.md file)

@Anandsg check this, #46

Feature has been implemented and merged


chore(reorder-tab): reorder tabbing to columns left then right

Description

Changes tabbing order to go down left column then right column on home page

Issue(s)
Fixes #1353
How to test

Go to https://deploy-preview-1711--oak-web-application.netlify.thenational.academy/beta/teachers
Tab through 🙏🏿

Checklist

[x] Added or updated tests where appropriate
[x] Manually tested across browsers / devices
[x] Considered impact on accessibility
[x] Design sign-off
[x] Approved by product owner

:tada: This PR is included in version 1.186.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Switch to dependency injection

Does this really have a benefit?  The only reason the Application is required is due to the implicits in ViewAccessPoint, and switching to DI will result in losing that class anyway because ViewSupport and HandlerCache can be injected directly into the Deadbolt templates.

Yeah I know, I just hacked this together yesterday evening during pondering how to best solve this. I am fully aware this isn't a really good solution. So lets close this.


Components cleanup

Remove shared folder.
Move stories into component folders
Remove component duplicates

@dylancom I think we somehow lost the fixed width/size of the popup in this PR?

@bumi which browser / screen? I'm not noticing any differences.

The popup in FF. but haven't looked in detail