no_grad option

Hi Shane,
I want to use your CG solver for a simple linear system in Pytorch. For my purpose, I only need to solve, but no need to use backward. Of course I could do this by converting to numpy and back, but using your repo seemed the cleaner solution.
Is there a possibility to include an option to only use forward without Pytorch building up the graph?
Best, Fabian

Just put
with torch.no_grad():

Around your code
On Tue, Jan 25, 2022 at 12:33 PM fabian-sp @.***> wrote:

Hi Shane,
I want to use your CG solver for a simple linear system in Pytorch. For my
purpose, I only need to solve, but no need to use backward. Of course I
could do this by converting to numpy and back, but using your repo seemed
the cleaner solution.
Is there a possibility to include an option to only use forward without
Pytorch building up the graph?
Best, Fabian
—
Reply to this email directly, view it on GitHub
https://github.com/sbarratt/torch_cg/issues/6, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AB7LUGOJUKCKITZZPEBLGJLUX3NFFANCNFSM5MY4N56A
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Hi, thanks for the quick answer. I wasn't sure whether that would surpress all graph computation, so thanks for confirming!


Added a new project: ToDoList

Type of change

[x] Added new project
[ ] Bug fix
[ ] New features
[ ] Enhanced documentation

Changes proposed in this pull request

Project name : ToDoList

Short description :  This is a simple command-line ToDo List application written in Python.

Checklist

[x] The code is Python 3 compatible
[x] I have added relevant comments in my file to make code understandable
[x] I have added my project in a folder which includes all the necessary files

Hey @otahina 👋
Dont have to change any configurations in the GitHub actions. It's automated and tested 🚀 .
this folder --> .github/

Hi! Thank you for telling me. 😀 I wanted to add a new project, and it wasn't my intention to change any GitHub actions, but now I don't know how to remove these commits other than adding a new project. I would appreciate it if you could teach me how to undo them. 🙏

I think I could remove other commits than adding a new project! Could you check it out?

Yeah now its removed 👍


Strange behaviour when installing this

What happened?
I try to use this tool - but had problems installing it (as for now I only want to use/try it ;-) I think the behaviour is strange, and some information in the docs how to start would be really nice.
How can we reproduce it?
This fails:
go install<EMAIL_ADDRESS>go<EMAIL_ADDRESS>module<EMAIL_ADDRESS>found, but does not contain package github.com/crossplane-contrib/x-generation

This succeeds:
go install<EMAIL_ADDRESS>
but ...
pkg --help
Usage of pkg:
  -configFile string
        path where global config file can be found (default: ./generator-config.yaml) (default "./generator-config.yaml")
  -inputName string
        input filename to search for in current directory (default "generate.yaml")
  -inputPath string
        input filename to search for in current directory (default "/Users/.../go/1.19.0/pkg")
  -outputPath string
        path where output files are created (default: same directory as input file)
  -scriptName string
        script filename to execute against input file(s) (default: generate.jsonnet or specified in each input file)
  -scriptPath string
        path where script files are loaded from  (default<EMAIL_ADDRESS>
... I don't like the name of the command installed ... somehow misleading or not intuitive?
Maybe it was my fault when installing it (but that's where to docs could pick me up where i stand... Thank you!

Thank you a lot! Maybe you can link it in the readme as a full example? It's helpfull!


Missing apps

I sometimes see missing obvious apps in the search results, like this:

Obviously missing the actual App Store.app – only finding the prefpane.

@oskarkrawczyk yep, app store is also missed for me. Do you have other examples? Going to fix it

@KELiON I thought I've seen this happening for other apps but I might have been wrong

@oskarkrawczyk fixed in #54 and will be included in next version


Update docs for new repo

A variety of cleanups:

Move CONTRIBUTING.md to the /docs directory and actually add the
useful information that was previously in the README.
Update the readme and user guide to explain the difference between the
new and old repo.
Update the Krew documentation so that it doesn't need to be updated
every release, and to point to the new repo.

a few nits but lgtm if you decide to skip them (remove hold).
/lgtm
/approve
/hold

/hold cancel

/lgtm


fix(inspector): call call_end/create_end when inspector shortcircuits calls

If the Inspector shortcircuits the call of call/create, functions for call end call_end/create_end were not called, these calls were expected by the foundry and it broke a few things.

@rakita yep double checking rn


WIP grpcagent: resend unit states after connecting to a new engine

I'll remove the WIP once I'm happy with the test results

ping @hectorj2f


ResolveAll() and ResolveAll() do not return the same results

Hello,
If i have the following:
            var c = new TinyIoCContainer();
            c.Register<IXFormsApp>(App);
            var results3 = c.ResolveAll(typeof(IXFormsApp)).ToList();
            var results4 = c.ResolveAll<IXFormsApp>().ToList();

results3.Count <> results4.Count;
Shouldn't they be equal?

Seems the implementation of ResolveAll(Type resolveType) does not match its description
/// <summary> /// Returns all registrations of a type, both named and unnamed /// </summary> /// <param name="resolveType">Type to resolveAll</param> /// <returns>IEnumerable</returns> public IEnumerable<object> ResolveAll(Type resolveType) {       return ResolveAll(resolveType, false); }
should be
return ResolveAll(resolveType, true);


Update gleeunit to version ~ 1.0

I've made the changes to the GitHub workflow so that CI wouldn't fail and bumped all deps, thanks!


Portfolio: mobile menu

In this pull request, I've implemented the following,

Add linters configuration for HTML, CSS, and Javascript
Add the following features for

When the user clicks (or taps) the hamburger button, the mobile menu appears.
When the user clicks (or taps) the close (X) button, the mobile menu disappears.
When the user clicks (or taps) any of the mobile menu options, the mobile menu disappears.
When the user clicks (or taps) any of the mobile menu options, a correct part of the page is displayed.

Hi @K0ppai 😊,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request 🆘💀

You have submitted a project, that no partners committed at the pull request, so this  💯milestone is pair programming, so please try to let your partners commit at the pull request to make it valid for reviewing 😊

Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers, and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear. Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
Invalid Code Review Request does not count into the code reviews limit.

Hello @osamaashraf6 ,
The commit "Update script.js" is my partner commit. Somehow his profile is not showing.


docs: fix deps discrepency between Fedora/Ubuntu

Slight discrepancy between the instructions for Fedora and Ubuntu.
In the Fedora instructions, it doesn't include pkg-config, in Ubuntu, it does.

Are any of these still needed? These instructions were for Glazier.

Are any of these still needed? These instructions were for Glazier.

Not sure, I just figured.


Unable to see themes effect in IIS

I had deploied the latest 1.10.3 website in IIS (using Orchard.web zip file) and found that it doesn't have any theme/style on the website.  I had also tried rebuild/publish the project using visual studio2009 and got the same result.  There's no error in iis log as well as the Orchar log.

Can you try to "ping" one of the assets that are requested? I assume you are actually hitting 404s for all these themed assets.

Sorry, I am a new developer and not sure how to ping the asset.  But I found if I run from Visual Studio 2019, then everything is working fine.  The problem only happened when I published to IIS.

You probably need to add some user permissions on the Media folder.


feat(classifier): implement transformer torch sequence classifier

https://github.com/jina-ai/jina-hub/issues/6191 implemented.

Good job! Many thanks for your contribution.

recheckcla

Jina CLA check
❤ Thank you for your pull request. It looks like this is your first contribution to an open source project maintained by Jina AI Limited. Before we can look at your pull request, we kindly ask that you sign our Contributor License Agreement. You can sign it by commenting in format below.

I have read the CLA Document and I hereby sign the CLA

hi, there. @mezig351  Thanks for the PR. Your contribution is greatly appreciated. Would you please sign the CLA above so that we can proceed to merge this PR?

I have read the CLA Document and I hereby sign the CLA


Fix lint issues on frontend

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
Fix lint issues on frontend.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
/label tide/merge-method-squash

/test lint-frontend-with-yarn

/test all

/test pull-kube-scheduler-simulator-run-tests

/test pull-kube-scheduler-simulator-lint

/test all

/test all

/test pull-kube-scheduler-simulator-backend-lint

/test pull-kube-scheduler-simulator-backend-lint

/test all

/test pull-kube-scheduler-simulator-backend-unit-test

/test pull-kube-scheduler-simulator-frontend-lint

/pull-kube-scheduler-simulator-frontend-lint

/test pull-kube-scheduler-simulator-frontend-lint

/test pull-kube-scheduler-simulator-backend-lint

/test all

/test pull-kube-scheduler-simulator-frontend-lint

/test pull-kube-scheduler-simulator-frontend-lint


Non-generic Retryer?

I wanted to start a discussion before submitting a PR. I think it would pretty useful to have a non-generic Retryer that would allow you to use the Retryer with any generic callable.
A quick look through the code seems to suggest the only reason for the generics at the class-level is to retry on a specific return value. However, if this is not needed, but the same retry logic (on exception) is needed for multiple methods, each with different return types, then a non-generic Retryer seems to be a cleaner approach.
Thoughts?

Somewhat related, isn't a "generic callable" more like a Runnable? I would like to have support for giving a Runnable, but that would also require some refactoring to have different types of Retryers.

I think I was thinking more along the lines of RunnableFuture. The idea is that I would like to build a single retryer that works for any number of callables with arbitrary return types. This would probably lose out on the ability to retry on a specific return value. I took a pass at it, but Java's type system (and type erasure) made it really annoying to implement cleanly.
Full disclosure, I no Java expert.

@jalaziz I see. Did you try to use a Callable<Object> and do type checking of the result? Would that work?

It would, but it sacrifices type safety and is less convenient (having to cast every result would be a pain). It's not that much of a concern anymore, though, as I've started transitioning to Scala where this type of thing is much easier to do.


Add html.to.design to the allowlist

Duplicates ❌

[X] I have searched the existing Figma plugins requests.

Figma plugin name
html.to.design
Figma plugin URL
https://www.figma.com/community/plugin/1159123024924461424/html.to.design
Why do you need this Figma plugin?
Reviews team (business unit: Decathlon Core Platform) is working on the redesign of its Legacy.
In this context, the internal tool Openvoice is constantly being improved.
To speed up the creation of mockups, the Product team wants to use the html.to.design plugin to quickly create mockups from external benchmarks.

Hi @RomThib, thanks for your proposal.
Just accepted your request, you can now use html.to.design inside our Figma organization.
Have a nice day,
Laurent


make meteors snipe people and shittles less

About the PR
does the following:

halves meteor speed
doubles meteor lifetime so they travel the same distance
makes meteor sprites unshaded

Why / Balance
currently meteors have very little counterplay (hiding somewhere can often (salv) not be possible, and shuttles are just never safe), so this PR makes it possible to dodge or shoot them
if you're making/driving a shittle currently there's a good chance a meteor will just snipe you and your shuttle so you permadie and/or have an irrecoverable shuttle wreck
Media
https://github.com/user-attachments/assets/ad94307c-271a-48df-a34c-f7414a3251ba
video showcases meteors being visible and slow enough to shoot and hit them
video shows outdated implementation of meteors being pointlights and not unshaded, unshaded meteors here:

Requirements

[x] I have read and am following the Pull Request and Changelog Guidelines.
[x] I have added media to this PR or it does not require an ingame showcase.

Changelog

:cl:

tweak: Increased meteor visibility and halved their speed.

based PR

you sir are an angel of light.

Do space dust also get these changes?

Do space dust also get these changes?

they're meteors so yes

The pointlight I can see being good, but instead of making meteors just really slow, why not change them from targeting players to targeting tiles?

Test fail looks real

Test fail looks real

test fail says something about airlocks so not my fault

Meteors being unshaded looks weird to me visually. And space should be a dark and scary place in my opinion. But we can wait on a second maintainer opinion for that.
The speed change is a good idea I would say. It allows you some counterplay and makes meteors feel less like an immovable rod.

it looks weird but i don't really see another option that will both work and be easy to use, so it's kinda necessary to prevent meteors from being invisible until they hit you

Most, if not all stations in the game have solar pannels, which means that these stations are relatively close to a star, which means that it actually should be quite bright outside the station.

I don't mean from a logical or lore perspective, but from a visual aesthetics standpoint. I had a look at them in-game and it looks weird to have that full-bright texture show up in the total darkness of other objects directly next to them.

Most, if not all stations in the game have solar pannels, which means that these stations are relatively close to a star, which means that it actually should be quite bright outside the station.

I don't mean from a logical or lore perspective, but from a visual aesthetics standpoint. I had a look at them in-game and it looks weird to have that full-bright texture show up in the total darkness of other objects directly next to them. If there was some kind of directional lighting system for objects outside the station it would look better.

directional lighting would need normal maps on everything which would be lots of sprites to do


Add FileCompressionSkill

Motivation and Context
We want to be able to compress and decompress file.
Description
Add the FileCompressionSkill and associated tests

@glahaye Merge conflicts

This PR is to be completed as PR #82 - I messed up and rebased on main instead of merged main to this branch so it gives a bunch of conflicts. Pushing a new branches was easier for me.


Improve TypeScript syntax highlighting

Version 1.2.1
Commit fe7f407b95b7f78405846188259504b34ef72761
Date 2016-06-14T13:00:22.146Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0
Windows 7 x64
Here's a side by side comparison of the (almost) same sample code from the TypeScript playground.

As you can see the TypeScript side doesn't highlight function/method calls in green as the JavaScript side does.
It's not easy to go through a big white-colored block like this. Specially for people new to TypeScript.

Adding further details to this. I believe Types should be colored too when being used and not only when declaring them.
Here's the same example in three different color themes.

I'd like Types to be colored equally when declaring, importing and using them.
Ideally, I'd like the monokai example to look like this:

Related to https://github.com/Microsoft/TypeScript-TmLanguage/issues/149 (?)

This is a duplicate of https://github.com/Microsoft/vscode/issues/3886 which asks for variable and function reference highlighting
But yes, to implement that we need https://github.com/Microsoft/TypeScript-TmLanguage


Ref 314

This is a recommit of #314 rebased with some code cleanup and commit split, and hopefully a few bug fixes to come

@JohanMabille ready for review. I did some benchmarking of the generic adds method, applying it to int16_t where we have a reference intrinsic. the home made implementation still acheieves ~3Instruction per cycle, so no pipeline stall. It's roughly 4 time slower than the intrinsic, which is somehow expected. And 4 time faster than the sequential naive version, which is good too :-)

@JohanMabille ready for another round of review :-)

Awesome!


Missing keyspace notifications from redis-cluster after master failover

Expected behavior
When connected to a redis-cluster and a master is failed over, the client should receive keyspace notifications from the new master
Actual behavior
Keyspace notifications from the new master are lost
Steps to reproduce or test case
Setup a redis cluster as explained in :

https://redis.io/docs/manual/scaling/#creating-and-using-a-redis-cluster
https://redis.io/docs/manual/scaling/#initializing-the-cluster

For each node provide the following configuration (port number varies from 7000 to 7005):
port 700[0-5]
cluster-enabled yes
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly yes
notify-keyspace-events E$
protected-mode no

Run the following test:
Config config = new Config();
ClusterServersConfig clusterServersConfig = config.useClusterServers();
clusterServersConfig.setNodeAddresses(Arrays.asList(
        "redis://<IP_ADDRESS>:7000",
        "redis://<IP_ADDRESS>:7001",
        "redis://<IP_ADDRESS>:7002",
        "redis://<IP_ADDRESS>:7003",
        "redis://<IP_ADDRESS>:7004",
        "redis://<IP_ADDRESS>:7005"));
clusterServersConfig.setSubscriptionsPerConnection(1); // needed because of https://github.com/redisson/redisson/issues/4213
RedissonClient c = Redisson.create(config);

c.getPatternTopic("__keyevent@*__:*", StringCodec.INSTANCE).addListener(String.class, new PatternMessageListener<String>() {
    @Override
    public void onMessage(CharSequence pattern, CharSequence channel, String msg) {
        System.out.println("Received event pattern " + pattern + " channel " + channel + " msg " + msg);
    }
});
Thread.sleep(600_000);

Shutdown one of the master nodes and wait until redisson logs the new cluster configuration.
Connect to the redis cluster and update keys on all master nodes:
<IP_ADDRESS>:7001> set a 1
-> Redirected to slot [15495] located at <IP_ADDRESS>:7002
OK
<IP_ADDRESS>:7002> set b 1
-> Redirected to slot [3300] located at <IP_ADDRESS>:7000 <- new master
OK
<IP_ADDRESS>:7000> set c 1
-> Redirected to slot [7365] located at <IP_ADDRESS>:7001
OK

The notification from the new master is lost:
Received event pattern __keyevent@*__:* channel __keyevent@0__:set msg a
Received event pattern __keyevent@*__:* channel __keyevent@0__:set msg c

Additional comments
As a work around, I'm periodically retrieving the list of master nodes (client.getRedisNodes(RedisNodes.CLUSTER)), and when the list changes I recreate the subscription as follows:
client.getPatternTopic("__keyevent@*__:*", StringCodec.INSTANCE).removeListener(prevId);
client.getPatternTopic("__keyevent@*__:*", StringCodec.INSTANCE).addListener(String.class, new PatternMessageListener<String>() {
    @Override
    public void onMessage(CharSequence pattern, CharSequence channel, String msg) {
        System.out.println("Received event pattern " + pattern + " channel " + channel + " msg " + msg);
    }

Notice: I need to pass explicitly the previous listener id (prevId) to removeListener() because with removeAllListeners() I still miss the keyspace notifications from the new master and get dupe notifications from old masters.
Redis version
Redis server v=6.2.6 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=40f6d3ded4e576d9
Redisson version
3.17.0
Redisson configuration
See "Steps to reproduce or test case"

Fixed in https://github.com/redisson/redisson/issues/5039


Cancelling Kap camera permissions - UX workflow bug and Error on recording stop

macOS version:
ProductName:	Mac OS X
ProductVersion:	10.15.7
BuildVersion:	19H524
Kap version:
3.3.2
Quick explanation:
I'm using the https://github.com/karaggeorge/kap-camera plugin, but i'm not sure how much of this is for them (see https://github.com/karaggeorge/kap-camera/issues/38), and how much is for core Kap.
Steps to reproduce

Make sure Kap does not have access to your camera in system preferences
Open Kap and click record
It will prompt you to give kap permission to use your camera (every time you click record when kap doesn't have permission)
Click cancel instead of granting access. Recording will start
Record your video and then click stop.

Current behavior
The video will have recorded successfully, and you can export/save or do whatever you normally do, but a message will pop up with this error after you click stop:
Unhandled Promise Rejection
CancelError: Promise was canceled
    at PCancelable.cancel (/p-cancelable/index.js:99:17)
    at Object.didStopRecording (/kap-key-cast/index.js:54:17)
    at /Applications/Kap.app/Contents/Resources/app.asar/main/common/aperture.js:56:28
    at Array.map (<anonymous>)
    at callPlugins (/Applications/Kap.app/Contents/Resources/app.asar/main/common/aperture.js:53:66)
    at cleanup (/Applications/Kap.app/Contents/Resources/app.asar/main/common/aperture.js:74:9)
    at Tray.stopRecording (/Applications/Kap.app/Contents/Resources/app.asar/main/common/aperture.js:218:5)

Expected behavior

No prompt (for anything) between me clicking record and the recording starting.

Prompt users when opening Kap for permissions, and then never again
or at least before the "recording initialization" loo. NOT as a pitstop between 1. clicking record and 2. recording start.

Do not prompt me for the same permissions each time I try to record. If i've declined them once, I probably don't want to enable it.

The permissions pop-up is unexpected and unnecessary once, but especially more than once. Once a user hits record, recording should start. If you need to check permissions on record button hit, then do so, but prompt the user to hit record again.
Workaround
No workaround needed, error seemed to have no impact except to provide me with an error message that Kap didn't handle a promise rejection.

Hey @SgtPooki ,
To address the two issues described:

For the error dialog, this actually has nothing to do with the camera plugin, but rather the kap-key-cast plugin https://github.com/karaggeorge/kap-key-cast/issues/7

For the permission dialog, if you have the kap-camera plugin installed and enabled, the expectation is that you want to use it, so it'll ask for the permission every time. The plugin is obviously useless without that permission, so you can either disable it (using the ... menu on the cropper -> Plugins -> uncheck camera plugin) or by uninstalling it all-together using the preferences window.

Then when you do want to use it at some point, you can always re-install or re-enable and accept that permission


Fix typo

Fix typo in link to the transducer protocol

Thank you very much for the fix! Sorry for taking so long to respond- I've been on vacation for the last week- but this contribution is really appreciated!


Attempting to import latest parent script via CDN results in a 400 error

Describe the bug
I'm attempting to load the parent script on my site via CDN, using the URL: https://cdn.jsdelivr.net/npm/@iframe-resizer/@iframe-resizer/parent@latest from the website. However, this results in a request with a 400 status. The child script seems to load fine. In this case parent and child scripts are loaded from the same domain.
To Reproduce
On the parent page (i.e. the page containing the iframe):
<head>
    <script src="https://cdn.jsdelivr.net/npm/@iframe-resizer/@iframe-resizer/parent@latest"></script>
</head>

Additionally, I'm attempting to initialise iframe-resizer just before the closing </body> tag using:
<script>
    iframeResize({}, 'id-of-my-iframe');
</script>

Expected behavior
I would expect the parent script to load without problems (i.e. 200 status instead of 400).
Desktop (please complete the following information):

OS: macOS 14.5
Browser: chrome
Version: 125.0.6422.113

Additional context
Is this a bug or is this a licensing issue? I have no license yet, I want to try it out first. If it is a licensing issue then it would be good if this could be mentioned in the documentation more explicitly.

Hi,
You can test it out by using the GPL licenses key license: 'GPLv3'. If you look in the browser console, it should explain this, but I will have a think about how to make it clearer.
Can you please let me know if that fixes it for you.
Cheer,
Dave.

Thinking a bit more you should still not be getting 400. Can you please add a screen shot of the error your seeing in the browser.

OK that that was my bad in the docs, the link should be
https://cdn.jsdelivr.net/npm/@iframe-resizer/parent@latest

and
https://cdn.jsdelivr.net/npm/@iframe-resizer/child@latest

I had @iframe-resizer in their twice

Fixed on live, thank you for spotting this.

Can confirm it works now for me. Thanks for the quick fix!


feat: moved imports of all shared components to ui-library

A part of our effort to move reusable logic to the public components library and use the ui-components packages as a private library for sharing code between Apify apps.

Lgtm, thanks!
Out of curiosity, does this mean we won't need to do the github keys in .npmrc anymore? Is the ui-library gonna be publicly on npm?

@barjin That's the plan. We can't do it yet but it's coming.


[wip] big type refactor

@tlmn struggling with some of this import stuff, would you have any advice?

it's because @types is a reserved keyword @tlmn


Make Span public to allow access to non-std methods for testing

For example, allow access to span.OperationName()

Coverage decreased (-0.1%) to 83.212% when pulling 6897a8cdc88b22a5bdecf563c246a6275b44c92a on make-span-public into 42d26acb018f6af5d9e352503a3b0008666dfad7 on master.

Coverage increased (+0.04%) to 83.394% when pulling<PHONE_NUMBER>bb0bbc5f86295d385308321faf759c on make-span-public into 42d26acb018f6af5d9e352503a3b0008666dfad7 on master.


Save not working

Hi, I want to greatly commend the great work done with this library.
Please i'm having issue trying to resize using the following syntax
{:mogrify, "~> 0.6.1"}
I'm run on terminal
Mogrify.open("test.jpg") |> Mogrify.resize("100x100") |> Mogrify.save
and error output
** (ErlangError) Erlang error: :enoent
    (elixir) lib/system.ex:605: System.cmd("mogrify", ["-resize", "100x100", "-write", "/tmp/977056-test.jpg", "/opt/app/test.jpg"], [stderr_to_stdout: true])
    lib/mogrify.ex:26: Mogrify.save/2

Please how can i resolve this? Thanks.

Do you have ImageMagick installed on your PATH?


Launch CI with Chrome

@homu r+

:pushpin: Commit 5b83a8e has been approved by poteto

:hourglass: Testing commit 5b83a8e with merge ab1b3c7...

I rebased on master, but it trips on the decimal issue. Any ideas @poteto?

Never mind, pushed to wrong fork.

Odd, let me investigate

@homu r+

:pushpin: Commit 84840f3 has been approved by martndemus

:zap: Test exempted - status


Is there an easier way to log request and response body that using Lua filters?

Describe the feature request
I'd like to easily log full request and response bodies, especially a json data passed to the pod and returned by it and access it using prometheus or save it to the database.
Describe alternatives you've considered
I see that it should be possible using Lua filter. Is there a better method?
Affected product area (please put an X in all that apply)
[ ] Ambient
[ ] Docs
[ ] Installation
[x ] Networking
[ ] Performance and Scalability
[ x] Extensions and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Affected features (please put an X in all that apply)
[ ] Multi Cluster
[ ] Virtual Machine
[ ] Multi Control Plane
Additional context

wasmplugin?

wasm is more conplexter.  For request body you can use traffic mirror

you can use https://www.envoyproxy.io/docs/envoy/v1.27.0/api-v3/extensions/filters/http/tap/v3/tap.proto to dump the request/response

@ramaraochavali

you can use https://www.envoyproxy.io/docs/envoy/v1.27.0/api-v3/extensions/filters/http/tap/v3/tap.proto to dump the request/response

I really like the idea, but it doesn't work for me :// Could I kindly ask you to verify if I use it correctly?

I enabled Access Logs using istioctl install -y --set meshConfig.accessLogFile=/dev/stdout for installation

I applied an EnvoyFilter:

apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
  name: request-logging
  namespace: my-namespace
spec:
  configPatches:
  - applyTo: NETWORK_FILTER
    match:
      context: ANY
      listener:
        portNumber: 8080
        filterChain:
          filter:
            name: envoy.filters.http.tap
    patch:
      operation: INSERT_AFTER
      value:
        name: envoy.filters.http.tap
        typed_config:
          "@type": type.googleapis.com/envoy.extensions.filters.http.tap.v3.Tap
          common_config:
            static_config:
              match_config:
                any_match: true
              output_config:
                sinks:
                  - format: JSON_BODY_AS_BYTES
                    streaming_admin: {}

I create a pod in ns my-namespace, curl it and expect to see the body of the request using kubectl logs ... command.

Thank you in advance ;))

It is only allowed to specify the streaming admin output sink if the tap is being configured from the POST /tap admin endpoint.
If you use static configuration, you can configure it like this.
  name: envoy.transport_sockets.tap
  typed_config:
    "@type": type.googleapis.com/envoy.extensions.transport_sockets.tap.v3.Tap
    common_config:
      static_config:
        match_config:
          any_match: true
        output_config:
          sinks:
            - format: PROTO_BINARY
              file_per_tap:
                path_prefix: /some/tap/path

Using StreamingGrpcSink may be a better solution, but it has not been implemented yet.


Fixed Broken Links

Codelabs were broken because linked css and js files are getting access denied on
https://storage.googleapis.com/codelab-elements
Workaround is to use:
https://storage.googleapis.com/codelab-elements-tmp
Found this problem in issue 801 of codelabs repo
https://github.com/googlecodelabs/tools/issues/801

Codelabs were broken because linked css and js files are getting access denied on
https://storage.googleapis.com/codelab-elements
Workaround is to use:
https://storage.googleapis.com/codelab-elements-tmp
Found this problem in issue 801 of codelabs repo
https://github.com/googlecodelabs/tools/issues/801


Upgrade pomchecker-maven-plugin 1.11.0 -> 1.12.0

This PR contains the following updates:

Package
Type
Update
Change

pomchecker-maven-plugin
build
minor
1.11.0 -> 1.12.0

Release Notes

kordamp/pomchecker (pomchecker-maven-plugin)
v1.12.0
Compare Source
Changelog
🚀 Features

96676f9 Switch from Maven resolver to MIMA

🐛 Fixes

9756f88 gradle: Explicitly set remote repositories before resolving poms, closes #22
87c5a68 Explicitly set remote repositories before resolving poms, closes #22

🛠  Build

f2c3ac1 Bump Gradle to 8.7
f5f19a9 Fix site generation
bc993bf Bump version upon release

7cf363d Releasing version 1.12.0
5652dcf Bump for next development cycle
da85409 Reset reproducible timestamp expression

Contributors
We'd like to thank the following people for their contributions:

Andres Almiray (@aalmiray)
George Gastaldi (@gastaldi)
Tamas Cservenak (@cstamas)

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade pomchecker-maven-plugin 1.11.0 -> 1.12.0

See:
- https://github.com/kordamp/pomchecker/releases/tag/v1.12.0
- https://github.com/kordamp/pomchecker/compare/v1.11.0...v1.12.0

Version 1.13.0 also LGTM.


fixes #373 hamburger menu hidden issue in small devices

Closes #373 bug
Fixes Issue
hamburger menu hidden in small devices
in dark mode it's fine but in light mode the manubar is hidden
Changes proposed

Check List (Check all the applicable boxes)

[X] My code follows the code style of this project.
[X] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[X] All new and existing tests passed.
[X] This PR does not contain plagiarized content.
[X] The title of my pull request is a short description of the requested changes.

Screenshots

Thankyou so much for merging this PR


IA-913 locationlimit

⚠ Please use this PR https://github.com/BLSQ/bluesquare-components/pull/31

create a LocationLimit component with a local state to handle incorrect values
remove locationLimit filter

https://user-images.githubusercontent.com/12494624/144825276-01aad399-3fbb-4bff-8b32-bf7416cdf12a.mov

The PR on bluesquare-components has been merged, I updated package-lock to bring it up to date


catalogsource object and subscription object name change

Fixes: https://issues.redhat.com/browse/MTSRE-580
Signed-off-by: ashish<EMAIL_ADDRESS>

/retest

/retest


feat: add options.attachTo

Tests from here
SSR test not ported, because I'm not sure how to test it.
Note
The reset of the document body now only happens if you don't pass a child, maybe this should be passed as an option?

Hm, I think we need to reset the body for the majority of cases (except this one).
VTU beta did not mount on the DOM by default. Only with this option. Vue 3 doesn't seem to be able to mount without an element and a DOM... I wonder what the implications of this are.
Code seems fine, I will play with it a bit before merging. thanks for porting this!

Seems good! Thanks 👍


Mark entities as unavailable if the controller is in service mode

There is a backyard status that is reported in the telemetry to indicate that the controller is in service mode If this is set, we should mark all of the entities as unavailable as home assistant will not be able to control them while the controller is in service mode.
We should also create a sensor to indicate if the controller is in service mode.

One thing I noticed during testing, when the Omni go's into service mode, the telemetry call does not report any data for anything other than the "Backyard".  This will have to be accounted for as currently the integration spews all kinds of errors when the Omni go's into service mode as it was written with an assumption of the telemetry being available..


run compute_uncertainty_measures.py、analyze_results.py individually

Hello, in the semantic_uncertainty project, I successfully ran the command python semantic_uncertainty/generate_answers.py --model_name=Llama-2-7b-chat --dataset=trivia_qa, and currently have obtained experiment_details.pkl, train_generations.pkl, uncertainty_measures.pkl, validation_generations.pkl, and also reproduced the visualization graph in notebooks/example_evaluation.ipynb.

I want to run compute_uncertainty_measures.py and analyze_results.py separately to recalculate the results. What do I need to do?

Hi LLLoUo,
You can set the eval_wandb_runid arg to the wandbid of the run which you wish to evaluate when executing compute_uncertainty_measures.py. This should also trigger analyze_run.py as the analyze_run arg should be True by default. If you wish to store the results to a new wandbid, e.g. because you want to avoid overwriting the old results, make sure to set assign_new_wandb_id as well.
We do not support execution from a custom set of files, but, if this is something you require, it should hopefully not be too hard to implement. Lines 90-94 in compute_uncertainty_measures (https://github.com/jlko/semantic_uncertainty/blob/a8d9aa8cecd5f3bec09b19ae38ab13552e0846f4/semantic_uncertainty/compute_uncertainty_measures.py#L90C1-L95C1) should be a good starting point.
Cheers
Jannik


feat: add global tags variable to zones

Description
Add a global tags variable for tags that should be added to all Route53 zones.
Motivation and Context
Tags like ManagedBy = "Terraform" and similar should only be set once as this will make it much easier to manage.
How Has This Been Tested?
Zones have been created with and without tags.

👍  @wolffberg
v1.7.0 has been just released.


Random Game ID Generation

Currently, each new game ID is just the maximum of all existing game IDs plus one. This may not work too well long-term.

https://github.com/hto-projects/friendpardy/pull/88


feat(cli): add --details flag to vulnerability cmd

This change is adding a new flag to the vulnerability command called
--details, this flag will extend the report shown to the end-user.
The new information presented with this flag is the list of CVE's with
its severity, version and, if any, fix version, plus the layer that the
vulnerability was introduced by.
Example:
$ lacework vulnerability report sha256:123ab...xyz --details

This flag is available to all sub-commands inside the vulnerability
cmd. (scan run, scan show, and report as shown above)
Closes https://github.com/lacework/go-sdk/issues/82
Signed-off-by: Salim Afiune Maya<EMAIL_ADDRESS>

The team continues to review the output displayed, as of this message, the current output
shown would look similar to:

An open question is:

How would a user get more details about the SHA256 layer displayed?

Another alternative is to display the entire content of the layer, this could make
the table look a little bit more filled with data and, perhaps, a little bit harder
to read:

Any feedback would be highly appreciated! 💯


problem with file paths

i am using javascript obfuscator with angular 2 and sytemjs for electron application.
the problem is after obfuscation file paths are wrong and systemjs get file not found error.
for example:
Object['defineProperty'](exports, '\x5f\x5fesModule', { '\x76\x61\x6c\x75\x65': !![] }); var core_1 = require('\x40angular\x2fcore'); var router_1 = require('\x40angular\x2frouter');

Hmm strange, path like require('\x40angular\x2fcore'); should be a valid file path.
Can you provide small example app with this problem?

when i run electron app on windows the final path is like
D:/appfolder/dist/x40angular/x2fplatform/x2dbrowser
but folder names are:
D:/appfolder/dist/@angular/platform-browser

Path like x40angular/x2fplatform should be understanded by javascript engine like usual @angular/platform-browser path.
But in your example here strange problem with escape slashes and hyphen.
Can you provide small example with one or two files that i can reproduce this error?

For example
var _0x6051 = ['\x40angular\x2frouter'];
var _0x1605 = function (_0x41af57, _0x9291fc) {
    _0x41af57 = _0x41af57 - 0x0;
    var _0x51c5de = _0x6051[_0x41af57];
    return _0x51c5de;
};
var module = require(_0x1605('0x0'));

With this code i got error: Cannot find module '@angular/router' because i haven't this module.

i think systemjs is the problem.
when module name has any of (@ . - /) in form of hex (\x40 \x2e \x2d \x2f ) systemjs cannot load the module.
is there any way to prevent hex encoding for "require"?

Right now - no. I'll look into this.

for now i tried to replace back hex for (\x40 \x2e \x2d \x2f) after obfuscation and it's ok!
we may report this problem to systemjs.
thanks for your project and your support.

From my side currently even if 'unicodeEscapeSequence' option is disabled - all non-digit and non-latin symbols will encoded to unicode escape sequence.
This is hack because without that i got esprima errors like unexpected token ILLEGAL.
Now i should understand why this errors happens and encode or escape only important characters, so i'll work on this today and this fix shold be as part of 0.9.5 version alongside with es2017 async functions support.

Hi again!
Please try new<EMAIL_ADDRESS>

Any news?

Problem should be fixed few beta releases ago. Closed.


Add experiment with controlling garbage collection

It turns out that Process.spawn/2 already accepted the options that
erlang.spawn_opt/4 could take, so we could use that to set up our
process for us.
This is a super bare bones implementation with a very simple
supervision tree setup. Our main process just watches for :DOWN
messages from the tasks and exits if that happens. We should probably
do something else to make this a better experience for users in the
event that they do crash a process with their benchmarking scenarios.
Right now I'd just consider this an experiment, but I'm putting it up to
show what we have and how it affects current benchmarks.
In general, I'm seeing what (I think) are a fewer number of spikes, but
we're seeing some really big spikes in the runtimes because of
the less frequent, but bigger, GC runs. Below are some graphs illustrating
this point.

Maybe we could toss out the top 1% of runtimes as "GC affected" to try and take GC times out of the equation?

Oh, yeah, and it looks like we'll need some configurability or more robustness around how much memory we're trying to allocate, because I apparently tried to allocate more than is available in CI.

Oh, and lastly, I kind of have no idea how those spawn_opt settings work. I just played around with them at first to see what happened. There is almost certainly more/better tuning that can be done once I realize how that stuff all works, but at least the plumbing is there.

I like the idea of "cleaning" measurements. In my first experiments with measuring memory usage there was a lot of "dirty" data there.
I also realized while walking the dog this morning that I think there's still something going on with the run times here that's unrelated to garbage collection. Here's my thinking:
We know that each process has its own garbage collection.
We know that each Task.async function is run in its own process.
We know that each Task.async function for a given scenario is the exact same.
Given those three facts, wouldn't it stand to reason that every runtime should be exactly the same? If a GC run is triggered for any single process, shouldn't it be triggered for every process?
Is it possible that maybe it's garbage collection of the "main"/"owner" process that's causing those runtime spikes? And if we block execution of that process, might things smooth out a bit?
Just another idea that I might dig into after I'm back from Japan.

@devonestes I'm unsure what you mean :)

wouldn't it stand to reason that every runtime should be exactly the same

I wouldn't think so, because there's other stuff happening on the computer, CPU turbo boosting, still warmup effects, CPU Caches etc... so there's a lot of variance there. The big spikes should definitely go down but not away is what I'm thinking. Or maybe I'm not understanding :)

Yeah, maybe not exactly the same, but those big spikes shouldn't be there. If our theory is that the big spikes come from GC runs, I'm not sure that's the case. At least, not from GC runs in the processes doing the calculation that we're measuring. I'd be really curious to see what happens if we do these in sequence instead of in parallel to see if we still get big spikes, or if maybe we could even block the parent process while all these other processes are running the benchmarking scenarios to see if it's something in that parent process hogging the CPU for a bit.

@devonestes we're not running in parallel by default imo - parallel is set to 1. Or do you mean just get rid off of the extra processes so everything runs in the same process? I'm not sure I understand :D  Imo the big spikes can still come from the GC that's happening... or just the OS interrupting us.
For memory measurements, I think/hope we should get near constant measurements :)

Yeah, you're right, by default we only run one benchmarking process at a time, but we're doing so by using Task in Benchee.Parallel.map/2. That's spawning a new process for every benchmarking scenario, and GC for those processes are handled individually, so (in theory) every process either should or shouldn't be interrupted by a GC run initiated from that process's GC. Even if we're only spawning one child process at a time without parallel execution, we're still running each scenario in its own process.
I'm going to experiment with explicitly blocking the parent process to see if that's part of what's eating up CPU power and causing those big spikes. It seems too regular and consistent (z.B. the spikes are almost always exactly the same runtime, even across runs and with various other programs running on my computer when I run the benchmarks) to be some other random OS process causing it.

@devonestes exact same time imo still points towards GC :D Because at some point the GC is full. I'd thrown in a :erlang.garbage_collect somewhere in our benchmarking processes or just drop it in an after_each :)

FYI I also had to get rid off 3 nines (i.e. down to 999_999_999) so that it'd run on my desktop computer :scream:

Okay so I played with this a bit :tada:
I took the standard flat_map vs. map.flatten benchmark and ran it with 10 seconds run time and 3 variants:

normal (without this branch)
avoid_gc (with this branch)
avoid_gc + after_each (with this branch + after_each :erlang.garbage_collect)

I ran each one 2 times.
I used #161 to load them all in a single suite for comparison and even fixed up the HTML formatter to display them and here they are:
http://www.pragtob.info/benchee/gc-experiment/gc_experiment.html
(caution: especially the 1k version + comparisons often doesn't load cause tooo many samples)
It doesn't work perfectly as a lot of it relies on maps and so cause I did all of them twice only one result is in, but they were fairly close so it wasn't needed.
For a full run down of all the statistics (including the duplicates) see the console output:
tobi@speedy ~/github/benchee $ mix run btask_try.exs
warning: variable "map_fun" is unused
  btask_try.exs:5

Operating System: Linux
CPU Information: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
Number of Available Cores: 8
Available memory: 15.61 GB
Elixir 1.5.2
Erlang 20.0
Benchmark suite executing with the following configuration:
warmup: 2 s
time: 10 s
parallel: 1
inputs: 100k, 1k
Estimated total run time: 9.60 min

##### With input 100k #####
Name                                          ips        average  deviation         median         99th %
flat_map (avoid gc + after_each)           252.65        3.96 ms     ±4.74%        3.96 ms        4.56 ms
flat_map (avoid gc + after_each)           252.61        3.96 ms     ±3.82%        3.97 ms        4.56 ms
flat_map (avoid gc)                        236.41        4.23 ms    ±43.98%        4.04 ms        5.02 ms
flat_map (avoid gc)                        228.93        4.37 ms    ±65.10%        4.05 ms        5.15 ms
map.flatten (avoid gc + after_each)        181.34        5.52 ms     ±3.39%        5.50 ms        6.19 ms
flat_map (normal)                          173.69        5.76 ms    ±10.84%        5.94 ms        6.90 ms
flat_map (normal)                          171.04        5.85 ms    ±12.24%        5.99 ms        7.95 ms
map.flatten (avoid gc)                     170.33        5.87 ms    ±30.38%        5.65 ms        6.71 ms
map.flatten (avoid gc)                     168.39        5.94 ms    ±32.78%        5.71 ms        7.04 ms
map.flatten (avoid gc + after_each)        167.32        5.98 ms     ±4.70%        5.97 ms        6.72 ms
map.flatten (normal)                       127.82        7.82 ms     ±8.55%        7.73 ms        9.60 ms
map.flatten (normal)                       127.69        7.83 ms     ±8.29%        7.77 ms        9.54 ms

Comparison:
flat_map (avoid gc + after_each)           252.65
flat_map (avoid gc + after_each)           252.61 - 1.00x slower
flat_map (avoid gc)                        236.41 - 1.07x slower
flat_map (avoid gc)                        228.93 - 1.10x slower
map.flatten (avoid gc + after_each)        181.34 - 1.39x slower
flat_map (normal)                          173.69 - 1.45x slower
flat_map (normal)                          171.04 - 1.48x slower
map.flatten (avoid gc)                     170.33 - 1.48x slower
map.flatten (avoid gc)                     168.39 - 1.50x slower
map.flatten (avoid gc + after_each)        167.32 - 1.51x slower
map.flatten (normal)                       127.82 - 1.98x slower
map.flatten (normal)                       127.69 - 1.98x slower

Extended statistics:

Name                                        minimum        maximum    sample size                     mode
flat_map (avoid gc + after_each)            3.67 ms        7.40 ms         2.07 K                  4.01 ms
flat_map (avoid gc + after_each)            3.67 ms        5.25 ms         2.07 K                  4.00 ms
flat_map (avoid gc)                         4.01 ms       92.71 ms         2.36 K                  4.02 ms
flat_map (avoid gc)                         4.00 ms      138.67 ms         2.29 K                  4.01 ms
map.flatten (avoid gc + after_each)         5.25 ms        7.20 ms         1.57 K                  5.29 ms
flat_map (normal)                           4.34 ms        7.79 ms         1.74 K                  6.27 ms
flat_map (normal)                           3.96 ms       11.22 ms         1.71 K                  6.28 ms
map.flatten (avoid gc)                      5.52 ms       60.39 ms         1.70 K                  5.64 ms
map.flatten (avoid gc)                      5.53 ms       64.46 ms         1.68 K                  5.64 ms
map.flatten (avoid gc + after_each)         5.63 ms        9.99 ms         1.46 K                  6.01 ms
map.flatten (normal)                        6.58 ms       13.88 ms         1.28 K                  7.70 ms
map.flatten (normal)                        6.60 ms       10.75 ms         1.28 K                  7.11 ms

##### With input 1k #####
Name                                          ips        average  deviation         median         99th %
flat_map (normal)                         26.92 K       37.15 μs    ±35.42%          36 μs          70 μs
flat_map (normal)                         26.90 K       37.17 μs    ±35.64%          36 μs          68 μs
flat_map (avoid gc + after_each)          26.40 K       37.88 μs    ±11.42%          37 μs          63 μs
flat_map (avoid gc + after_each)          26.09 K       38.32 μs    ±14.33%          37 μs          69 μs
flat_map (avoid gc)                       24.48 K       40.86 μs   ±248.41%          36 μs         130 μs
flat_map (avoid gc)                       24.47 K       40.86 μs   ±278.65%          37 μs         130 μs
map.flatten (normal)                      19.06 K       52.47 μs    ±19.17%          51 μs          89 μs
map.flatten (normal)                      18.98 K       52.69 μs    ±19.26%          51 μs          89 μs
map.flatten (avoid gc + after_each)       18.49 K       54.08 μs     ±8.89%          53 μs          82 μs
map.flatten (avoid gc + after_each)       17.26 K       57.96 μs     ±8.22%          57 μs          85 μs
map.flatten (avoid gc)                    17.22 K       58.06 μs   ±256.30%          52 μs         146 μs
map.flatten (avoid gc)                    17.13 K       58.38 μs   ±264.05%          52 μs         147 μs

Comparison:
flat_map (normal)                         26.92 K
flat_map (normal)                         26.90 K - 1.00x slower
flat_map (avoid gc + after_each)          26.40 K - 1.02x slower
flat_map (avoid gc + after_each)          26.09 K - 1.03x slower
flat_map (avoid gc)                       24.48 K - 1.10x slower
flat_map (avoid gc)                       24.47 K - 1.10x slower
map.flatten (normal)                      19.06 K - 1.41x slower
map.flatten (normal)                      18.98 K - 1.42x slower
map.flatten (avoid gc + after_each)       18.49 K - 1.46x slower
map.flatten (avoid gc + after_each)       17.26 K - 1.56x slower
map.flatten (avoid gc)                    17.22 K - 1.56x slower
map.flatten (avoid gc)                    17.13 K - 1.57x slower

Extended statistics:

Name                                        minimum        maximum    sample size                     mode
flat_map (normal)                             36 μs        3959 μs       260.99 K                    36 μs
flat_map (normal)                             36 μs        4023 μs       260.97 K                    36 μs
flat_map (avoid gc + after_each)              36 μs         138 μs        17.31 K                    37 μs
flat_map (avoid gc + after_each)              36 μs         161 μs        17.29 K                    37 μs
flat_map (avoid gc)                           36 μs       43316 μs       238.49 K                    36 μs
flat_map (avoid gc)                           36 μs       49943 μs       238.34 K                    36 μs
map.flatten (normal)                          51 μs        2780 μs       186.47 K                    51 μs
map.flatten (normal)                          50 μs        2545 μs       185.67 K                    51 μs
map.flatten (avoid gc + after_each)           52 μs         145 μs        16.81 K                    52 μs
map.flatten (avoid gc + after_each)           55 μs         203 μs        16.73 K                    57 μs
map.flatten (avoid gc)                        51 μs       44651 μs       168.55 K                    52 μs
map.flatten (avoid gc)                        51 μs       44517 μs       167.85 K                    52 μs
Suite saved in external term format at save_avoid_gc_+_after_each.benchee

Observations:

one of the map.flattens somehow got super fast and overtook flat_map on normal
I'm glad I benchmarked 100k and 1k - as their performance characteristics are a bit reverse (normal being slowest vs. normal being fasted) :scream: - when normal is fastest the speed difference is much less so though
the normal example is super interesting as the average and median are very close, but 99th% is better for avoid_gc + after_each - I think that due to the much bigger sample size it just managed to accumulate more faster times which make up for the few slower run times
I'm surprised at the big speed difference for averages (~40% to 50%)
as expected the standard deviation for avoid_gc + after_each is by far the best (also smaller maximums mostly) :muscle:
standard deviation even gets higher wit avoid_gc (probably because there are fewer spikes but those ARE bigger)
mode can be virtually identical for the avoid gcs (i.e. 100k flat_map)
the hit of gcing in after_each on the sample size isn't big for 100k and it's ~4ms runtime (2k vs 2.3k)  but it's HUGE for the 1k case (260k vs. 17k)

Something that could also be affecting these results is the fact that garbage collection can compact the heap, if there's a lot of empty space. So even if the process is started with large heap, if that heap is not used, it will be just compacted during collections and we can end up ultimately at the same position when starting with a small heap.

@michalmuskala argh - good point. Seems I need to read all these revised BEAM 20 garbage collection articles. :grin:

We don't need this anymore, so I'm closing it.


Additional goals by next Ailey Meeting

[ ] Find the 100,000 bright points for each of your brains
[ ] Ingest the ARA as a RAMON object so that you can see the names of each region
[ ] Ingest those points overlay them on both views of the brain

-----------stretch goals-------------------------

[ ] Integrate the ingest process given the output of Terastitcher
[ ] Integrate Terastitcher

We need to also do some research on the feasibility of fusing 2 different planes


Use dune-build-info for version display

I believe this is the last PR before Gospel.0.3.0

CI is green and this is trivial changes that only affects how the --version option works.
Merging.


Nested & turfs to front instead of before selector

This was unexpected for me, don't know if it's a bug or if I've been thinking this would work and have just never tried it before. If I have the following selectors:
  .bar {
    .baz & {
  }
}```

The outcome I expect should be:

``` .foo .baz .bar{}```

But instead what we get is:

``` .baz .foo .bar()```

Is this simply a misunderstanding of nested & or is my assumption correct and it's a bug? Either way, thoughts on implementing it? If it's a misunderstanding, this becomes an API change, dunno if we wanna do that (it's just as easy for me to rewrite the selectors, just came across and thought I'd ask).

This is working as designed. & is the full selector context. We are planning new enhancements to & in bug #286.

Cool, thank you.


CI/CD integration guide

Inspired by #549 I think an overall integration guide with all of the popular CI/CD pipelines would be a Good Thing to increase adoption.
Potential target lists:

https://hevodata.com/learn/open-source-ci-cd-tools/
https://estuary.dev/open-source-ci-cd-tools/

+1. Let's polish up our GH actions first, and then we can document this.


Use a more sophisticated template for end-to-end testing of Create React App

We currently test the same template we generate by default, which is probably file, but we miss out on testing more advanced features. Ideally we should have a kitchensink template that uses all possible features (JSX, Flow, NODE_PATH, generators, async/await, class properties etc), and make sure that that template builds and passes tests.
If you’d like to work on it, please write in this issue so others don’t duplicate effort. The task would consist of:

Looking at tasks/e2e.sh and learning how we test CRA
Figuring out how to make it use a different template just for e2e test—not sure how I’d do that so suggestions welcome
Creating that kitchensink template

Stretch goal: use Jest snapshot testing for build output!
(You can look at Jest repo to see how Jest tests its own output with snapshots.)

I'd like to take a crack at this

Cool, let me know if you stumble onto something. It’s a pretty open-ended task and will require some experimentation.

@gaearon For getting the e2e test to use a kitchensink template, would it be ok to pass an additional flag to create-react-app (like --use-kitchensink, --e2e, or --ci), which it would pass to scripts/init.js, where the copying of template actually happens? I can't really think of another way to get init to use a different template.

Let’s make it --from-template <path>. We might eventually allow remote URLs there as well 😛


Draft a team work contact

Closing this issue as no more comments from team members.

agreed on the changes.


add empty wedge unit value

Recently, I came to the realization that the determinant of a 0x0 matrix is 1.
julia> LinearAlgebra.det(Matrix{Float64}(undef,0,0))
1.0

In my Grassmann.jl package, I am using wedge for the exterior product, and so it makes sense to have wedge() = 1 defined, since that would be the equivalent of the determinant of a 0x0 matrix.
If this conflicts with your definitions, it's not necessary to merge this pull request, let me know if it's compatible for you.

Interesting issue you raise.
In the situations where I use this module, wedge operates like minimum and vee operates like maximum.  That is, they generalize intersection and union. And, in general, an empty expression should default to the identity element for that operation (empty sums are 0 and empty products are 1).
For example, if we're using these operators for true and false, then wedge is the and operation, in which case you're proposed value of 1 (as true) makes sense. But if we're thinking about the Boolean algebra of all subsets of {1,2,...,n}, then an empty wedge should be the full set {1,2,...,n}.
If the lattice in question is the positive integers ordered by divisibility, then wedge becomes GCD and vee is LCM. In this case, an empty vee should be 1 and an empty wedge is best left undefined.
So, thank you for the option to say "no thanks".

In my case, I need wedge() = 1 and vee() = I because 1 is scalar (lowest grade) and I is pseudoscalar (highest grade).
Indeed, I could define them in my module. However, are you not concerned about a situation where one might want to simultaneously work with the Grassmann algebra lattice and another different lattice? In that case it might be best left undefined.
For now, I'll experiment with adding it into my module (wedge() = 1 and vee() = I).

Another question is whether wedge(x) = x and vee(x) = x should both be implemented. Since both methods are the same, I don't necessarily see any issue with this one. I've got them in my module currently, but they could be transferred over to you.

Yes, I think wedge(x)=x and vee(x)=x make a lot of sense. I'll add them ... I just hope it doesn't break anything. All this package stuff is mysterious to me!

It would be considered a breaking change for me, so you'd have to register this as v0.2.0 of AbstractLattices.
Have you looked at the instructions in https://github.com/JuliaRegistries/General for how to use the new registry?

I am able to use the new registry. I mostly know what I'm doing. AbstractLattices is already at 0.2.0. I'm going to add this as version 0.2.1 and send it up the food chain.

Do you think I should leave wedge() and vee() undefined in my own modules to avoid any potential conflicts?
Otherwise, I think I may transfer wedge() = 1 and vee() = I over to AbstractTensors.jl

Eek. I guess so? All this package interaction stuff is confusing to me. Sorry, I'm the wrong person to ask that :-(

Do you think there is a possibility you might someday register conflicting definition for the wedger() or vee() in a separate repo?

Probably not. Would you like me to remove those definitions? I thought they'd make sense no matter what.

Those can't be removed because they currently don't exist in AbstractLattices. I think you are misunderstanding something.
Indeed wedge(x) = x and vee(x) = x make sense no matter what, I was just only wondering if I define wedge() = 1 and vee() = I` in my own module if there is the possibility that you might define a conflicting method in another module someday.

No, I don't plan to define wedge() or vee()

Okie dokie, then I'll just wait until v0.2.1 is registered and transition over to it once it is finished registering.

Could you please register v0.2.1? thanks

Could you please register v0.2.1? thanks

I did. Perhaps you need to make sure you free it in the package manager?

Ah, okay, I was confused because you didn't tag a new release in the repository under https://github.com/scheinerman/AbstractLattices.jl/releases
It would help with consistency if you also tag the release in the repository.

Always learning something new! I think I did it.


fix(startup/perm): check config_dir exists before permissions check

in windows, permissions check using accessSync in appDir() fails when the directory does not exist, have no received reports of this on linux but potentially could apply to it as well.
for users installing v6 fresh, when there is no config path in the appDir accessSync will throw erroneously failing to launch and generate any config directory.
this PR addresses this by checking if a path exists before running accessSync() on it. enabling the config path to be made if it does not exist rather than throw and terminate
fixes #766

Can we check for ENOENT in the catch block instead?

Yea that works, force pushed it.


Why the .prj is empty? saved from osmnx

I tried to use the following statement to get the street information of the latitude and longitude range. However, the saved file does not get the latitude and longitude information of each node. Why?
In fact, I successfully acquired the Manhattan area, and the street information of the entire Beijing area was successful.

# your code goes here
BJ_3 = ox.graph_from_bbox(40.03, 39.83, 116.46, 116.26, network_type='drive')
ox.save_graph_shapefile(BJ_3, folder='F:\enjoy\Beijing', filename='BJ3_drive_network')

I have read your guidance document, modified the code, and now I have solved this problem, but I still don’t understand what their differences are.
north, south, east, west = 40.03, 39.83, 116.46, 116.26
G3 = ox.graph_from_bbox(north, south, east, west, network_type='drive_service')

I ran your original code:
BJ_3 = ox.graph_from_bbox(40.03, 39.83, 116.46, 116.26, network_type='drive')
ox.save_graph_shapefile(BJ_3, folder='beijing', filename='BJ3_drive_network')

And the contents of the nodes.prj file look right:
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]


[Unity][Relax] Add leaky relu operator

add leaky relu operator to relax
add test

cc @MasterJH5574

Thanks Guoyao @guoyaol! There are a few formatting issue in the tests (https://ci.tlcpack.ai/blue/organizations/jenkins/tvm-unity/detail/PR-15296/2/pipeline), could you take a look and fix them?

just fixed the formatting issue, waiting for the Jenkins result

fixed and passed tests @MasterJH5574


Use full output of git show-ref --tags to get tags for PushUpdateAddTag (#19235)

Backport #19235
Strangely #19038 appears to relate to an issue whereby a tag appears to
be listed in git show-ref --tags but then does not appear when git show-ref --tags -- short_name is called.
As a solution though I propose to stop the second call as it is
unnecessary and only likely to cause problems.
Fix #19038
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

Thanks @6543


Support hot reloading from multiple files using mesop CLI (via pip install)

Use https://github.com/gorakhargosh/watchdog?

So watchdog seems to be working OK see #166, however the problem now is that the logic https://github.com/google/mesop/blob/9469b95ff01abfc99570f4a202ecb69245438927/mesop/cli/execute_module.py#L55 basically doesn't work in Python projects out in the wild.
Consider the following example:
main.py
import mesop as me

import hi as hi

@me.page()
def page():
  me.text("main")

hi.py
import mesop as me

@me.page(path="/hi")
def page():
  me.text("hi")

I think the problem here is that https://github.com/google/mesop/pull/129 basically allows Mesop app developers to do absolute imports which makes it very difficult to have heuristics whether something is an app module or not


Doesn't really use NSCache!?

I looked through the code, even did a find in files and there doesn't seem to be any NSCache usage anywhere? What gives? Am I missing something? Or do you need to update the project description?

Hey There,
JMImageCache is actually a subclass of NSCache.

Indeed it is, my bad. Weird, though. I did do a find in files in the xcode project. Must have been a typo.
All apologies, hope no harm was done with my somewhat brash comment.


Add log level

Hi,
Could you add log level parameter to the list?
Thank you!

Sure, will do

A new variable named MINIDLNA_LOG_LEVEL is available now.

That was fast! Thank you!

Consider starring the repo if you like my work. Thank you!


Several problems on trying to run the demo

Hello,
since I can not get the demo to run I am asking here:
I run the command ([...] is just the path to that folder before with my personal name, so I leave it out):
python demo/demo.py image --config [...]/nanodet/config/nanodet-m.yml --model [...]/nanodet/nanodet_m/archive/data.pkl --path [...]/data/dog.jpg
Then I get the follwing errors:
model size is  1.0x
init weights...
=> loading pretrained model https://download.pytorch.org/models/shufflenetv2_x1-5666bf0f80.pth
Finish initialize Lite GFL Head.
Traceback (most recent call last):
File "demo/demo.py", line 106, in
main()
File "demo/demo.py", line 80, in main
predictor = Predictor(cfg, args.model, logger, device='cuda:0')
File "demo/demo.py", line 31, in init
ckpt = torch.load(model_path, map_location=lambda storage, loc: storage)
File "[...]/anaconda3/envs/nanodet/lib/python3.8/site-packages/torch/serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "[...]/anaconda3/envs/nanodet/lib/python3.8/site-packages/torch/serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.
I followed all of the installation steps strictly. So I ran python setup.py develop and so on exactly as told. And after checking if the model file and so on are not empty I got this error. But since I am somewhat new to that I am now at a point where I can't resolve that issue myself. Can somebody help me to get at least a demo run?

What is your pytorch version? Try to use pytorch1.6 or higher version. Pth format seems changed after 1.6

I have the same problem with pytorch-1.7.0
I think you might need a specific version to get it to work
The error message is
model size is  1.0x
init weights...
=> loading pretrained model https://download.pytorch.org/models/shufflenetv2_x1-5666bf0f80.pth
Finish initialize Lite GFL Head.
Traceback (most recent call last):
File "demo/demo.py", line 106, in
main()
File "demo/demo.py", line 80, in main
predictor = Predictor(cfg, args.model, logger, device='cuda:0')
File "demo/demo.py", line 31, in init
ckpt = torch.load(model_path, map_location=lambda storage, loc: storage)
File "[...]/anaconda3/envs/nanodet/lib/python3.8/site-packages/torch/serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "[...]/anaconda3/envs/nanodet/lib/python3.8/site-packages/torch/serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.

I have the same problem with pytorch-1.7.0
I think you might need a specific version to get it to work
The error message is
model size is 1.0x
init weights...
=> loading pretrained model https://download.pytorch.org/models/shufflenetv2_x1-5666bf0f80.pth
Finish initialize Lite GFL Head.
Traceback (most recent call last):
File "demo/demo.py", line 106, in
main()
File "demo/demo.py", line 80, in main
predictor = Predictor(cfg, args.model, logger, device='cuda:0')
File "demo/demo.py", line 31, in init
ckpt = torch.load(model_path, map_location=lambda storage, loc: storage)
File "[...]/anaconda3/envs/nanodet/lib/python3.8/site-packages/torch/serialization.py", line 595, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "[...]/anaconda3/envs/nanodet/lib/python3.8/site-packages/torch/serialization.py", line 764, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: A load persistent id instruction was encountered,
but no persistent_load function was specified.

Make sure you download the nanodet_m.pth file, not a .pkl file. Google Drive incorrectly recognized the .pth file as a zip file and lead people to download the data.pkl in it.

Pth file for torch<1.6 has been uploaded. Download link has been updated in readme.


Add support for new host-based routing features in AWS

We should expand our L7 routing support beyond paths (currently in #5) into hosts now that AWS supports host-based routing.

With this it would be neat to have more control over ALB creation. $16.20 per Ingress per month is a pretty steep base price for some startup-types;  now that there is host-based routing and up to 75 rules per ALB it would be nice to be able to get full allocation per cost
(Obviously this complicates SSL, but like ... star certs I guess)

I believe we can have as many as 75 hosts per ALB, which could be a huge cost savings.

I am also available to help with this.

@donaldguy @Awk34 @pweiss82 : Thanks for the input and willingness to help.
This is certainly one of the most important features of this controller and I'd like to see it implemented as soon as possible.
When we first wrote this controller (before open sourcing it) host-based routing wasn't available in ALBs. Additionally, we weren't aware Amazon was releasing it when they did.
That said, I think we should consider a [non-formal] proposal, which concisely describes how we'd like to handle host-based routing. Then we can implement against it.
An example ingress-resource manifest and a description of how the controller should act upon it should suffice. Detailing considerations like the one in #73.
I might not get to writing this up until early next week, but if someone would like to take a stab at it sooner, I'm open to it.

Quick-n-dirty proposal up.
https://docs.google.com/document/d/1yrJU_6qmuF1KkDyIiQvIjZ5N1wZ2Svbfsp0f-dPApss/edit?usp=sharing
Please add comments!
/cc @bigkraig @donaldguy @Awk34 @pweiss82 @yawboateng

Hey @joshrosso. Thanks for raising this issue.
Is there any work currently being done on this? I'd love to see this functionality implemented and am willing to contribute.

We are really in need of this at my organization. Do you think putting up a bounty for this would speed along the implementation? I think GO is a stopper for us contributing much as we don't have that skill set in house.

A lot of work has been done on this in #183 incase you guys want to give it a try. It will require building new load balancers since it is now able to use a single ALB for the ingress resource.

Very cool @bigkraig, thanks for the update!
We will definitely take a look.

Thanks for the update @bigkraig.
Will I have to build from source to test?

@tomhughesnice - you can probably use a Docker image from https://quay.io/repository/coreos/alb-ingress-controller?tab=tags (right @bigkraig?).

Ok cool, I guess I can just use the latest tag.

Just been messing around with it using the latest tag.
This is supposed to allow two separate Ingress resources to share the same the same ALB as long as the spec.rules.host is the same? So far not having any luck, it always creates a separate ALB for each.
Do I have to reference the shared ALB by name in the ingress?  I checked the Google doc above and their was a proposed 'alb.ingress.kubernetes.io/alb' annotation. But that does not appear to work.

@tomhughesnice That part isn't implemented yet. This is the first step towards something like that. What this allows today is configuring host & path rules and the use of a single ALB for multiple ingress paths.

I think we can consider this ticket the MVP and since it's implemented i'll close the issue as part of 1.0 (https://github.com/coreos/alb-ingress-controller/pull/197).
For those of you who test it out, please let us know what limitations or issues you find in new tickets.


Improve update_ancestors_after_delete trigger

Previous benchmark results:
delete_node_worst_case        4.00s
delete_node_best_case         1.32s

New benchmark results:
delete_node_worst_case        1.98s
delete_node_best_case         317.17ms

Postgresql 9.4.5 with default settings on OSX.

Thank you, that's a nice speed-up! I get similar results, before:
delete_node_worst_case        5.16s
delete_node_best_case         1.45s

After:
delete_node_worst_case        3.97s
delete_node_best_case         327.91ms


Fixed faulty link

correct faulty link to analog buttons chapter = macros ..

or: features/macros/#analog-button ?


Allow for optional (weak) dependencies in task declarations

Hi,
I have a problem whereby I need two tasks, one which runs a full scale cleanup&build and one which builds individual files.
The sub tasks within the full build task used to depend on the cleanup step, but since they were also called from the individual files task they would clean more than they needed to.
What I'm looking for is a method of assigning a flag to a dependency, such that it's only a dependency if it's going to be preformed in the task anyway.
For example if I had a default task called ["clean", "build"], then within build had ["buildFileA", "buildFileB"] as dependencies.
And a watcher that was watching the files that would go into FileA and the files that would go into FileB.
For the first example I would need "clean" as a dependency in buildFileA and buildFileB, but for the second I wouldn't want clean in there at all (unless to clean only files related to that task).
So, what I'm suggesting is adding a flag, similar to the "!" in front of excluded files which will cause a task to only be seen as a dependency if another task within the dependency tree has also requested it.
buildFileA and buildFileB could have dependencies of ["?clean", "step1", "step2"].
Not sure how useful this would be outside the scope of this particular problem, and I'm guessing it would add considerable overhead to the task dependency tree resolving logic - but it would be useful in situations like this and reduce task repetition.

It's a shame that this information is so hard to find!
Thanks to @arantir and @contra !


nodejs: 10.24.0 -> 10.24.1, 12.22.0 -> 12.22.1, 14.16.0 -> 14.16.1

Motivation for this change
https://nodejs.org/en/blog/vulnerability/april-2021-security-releases/
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 118777 at bfd32642 run on aarch64-linux 1

131 packages marked as broken and skipped:

foo-yc20
libsForQt512.akonadi-calendar
libsForQt512.akonadi-contacts
libsForQt512.akonadi-import-wizard
libsForQt512.akonadiconsole
libsForQt512.akregator
libsForQt512.calendarsupport
libsForQt512.eventviews
libsForQt512.incidenceeditor
libsForQt512.kaddressbook
...

275 packages skipped due to time constraints:

adoptopenjdk-icedtea-web
airfield
anki
ankisyncd
bat-extras.prettybat
botamusique
bs-platform
calamares
calibre
calligra
...

5 packages built successfully:

csslint
nodejs (nodejs-14_x)
vscode-extensions.matklad.rust-analyzer
yarn
zerobin

Do we want to target staging with the amount of rebuilds?

I think it can land directly into master, since it's only ~500 packages


(PUP-8117) Make it possible to parameterize Boolean data type

This commit makes it possible to parameterized the Boolean data type
using a boolean value. When set, the resulting type will only represent
that value.

CLA signed by all contributors.


[MLlib] [SPARK-2885] DIMSUM: All-pairs similarity

All-pairs similarity via DIMSUM
Compute all pairs of similar vectors using brute force approach, and also DIMSUM sampling approach.
Laying down some notation: we are looking for all pairs of similar columns in an m x n RowMatrix whose entries are denoted a_ij, with the i’th row denoted r_i and the j’th column denoted c_j. There is an oversampling parameter labeled ɣ that should be set to 4 log(n)/s to get provably correct results (with high probability), where s is the similarity threshold.
The algorithm is stated with a Map and Reduce, with proofs of correctness and efficiency in published papers [1] [2]. The reducer is simply the summation reducer. The mapper is more interesting, and is also the heart of the scheme. As an exercise, you should try to see why in expectation, the map-reduce below outputs cosine similarities.

[1] Bosagh-Zadeh, Reza and Carlsson, Gunnar (2013), Dimension Independent Matrix Square using MapReduce, arXiv:1304.1467 http://arxiv.org/abs/1304.1467
[2] Bosagh-Zadeh, Reza and Goel, Ashish (2012), Dimension Independent Similarity Computation, arXiv:1206.2082 http://arxiv.org/abs/1206.2082
Testing
Tests for all invocations included.
Added L1 and L2 norm computation to MultivariateStatisticalSummary since it was needed. Added tests for both of them.

Does anyone know how to extend this to the 'Cross Product' case as mentioned in the paper?


tlp: 1.2.2 -> 1.3.1

Motivation for this change
I noticed that tlp was out of date and that it's nixos module had some spiderwebs as well. This bumps tlp to the latest 1.3.1  and updates the relevant module.
Fixes #81049
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg eval

@GrahamcOfBorg build tlp

Running this now, it seems pretty hot. but that's the only thing that should be hot cuz it wouldn't be working if my system was on fire.

diff --git a/nixos/modules/services/hardware/tlp.nix b/nixos/modules/services/hardware/tlp.nix
index 8e47d63edc8..bd8c072cf39 100644
--- a/nixos/modules/services/hardware/tlp.nix
+++ b/nixos/modules/services/hardware/tlp.nix
@@ -65,6 +65,9 @@ in
       # FIXME: Should this only happen when enableRDW = true?
       sockets.systemd-rfkill.enable = false;
       services.systemd-rfkill.enable = false;
+
+      # Have to set manually when using systemd.packages
+      services.tlp.wantedBy = [ "multi-user.target" ];
     };
   };
 }

This still needs a fix for the sleep (suspend/resume) unit which I am working on.

Alright, this is now complete and everything works!


Inconsistent regression test sampled-roulette

sampled-roulette regression test fails on linux in workflow, but not locally

Local Ubuntu system has the same discrepancy as github runners.  The error is only around the convergence ring, as far as I can tell from visual inspection.


Updated Upload Component

name: 'Pull request'
about: A new pull request
New Pull Request
Checklist

[x] I am not disclosing a vulnerability.
[x] My code is conform the code style
[x] I have made corresponding changes to the documentation
[x] I have updated Typescript definitions when needed

Issue Description

Related issue: #862.
Solution Description

Updated Upload component:

users can select only certain file types to be accepted with acceptedFiles prop
can set custom text with descriptionText prop
using style prop they can set custom CSS
if non-image file is uploaded the component won't break
the name of the uploaded file is written below the image/icon

Example of non-image file uploaded.

Example of custom text and custom CSS.

Nice work @0xTijan 🥳


FIX-#7224: Importing modin.pandas.api.extensions overwrites re-export of pandas.api submodules

What do these changes do?
This PR re-exports the submodules of pandas.api from within modin/pandas/api/__init__.py to ensure they are not overwritten when a user tries to import modin.pandas.api.extensions.

[x] first commit message and PR title follow format outlined here

NOTE:  If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

@YarShev is it not already signed? I see the "Verified" badge next to it on GitHub, and I can see my GPG signature in git log --show-signature.

There is no your email address. Can I use Jonathan Shi<EMAIL_ADDRESS>to sign your commit when merging?

Sorry about that, I added -s this time (I forgot the signed-off-by message is different from GPG signing).
For future reference, since Ponder got acquired by Snowflake a few months ago, our @ponder.io emails no longer work, so I'll be signing commits with my personal email<EMAIL_ADDRESS>on this GitHub account for continuity. My @snowflake.com email is tied to a different GitHub account (@sfc-gh-joshi), so I don't think I should be using that email to sign unless I make a PR with that account.


Prisma server crashes while saving array(text) in Postgres.

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v13.8.0

OS
debian-openssl-1.1.x

Prisma Client
2.8.0

Description
signalCode: null | exitCode: 255 | killed: true
SocketError: closed
    at Socket.mc (/home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_@prisma+cli@2.8.0/node_modules/@prisma/node_modules/.pnpm/undici@2.0.5/node_modules/undici/lib/core/client.js:687:31)
    at Socket.emit (events.js:321:20)
    at Socket.EventEmitter.emit (domain.js:485:12)
    at TCP.<anonymous> (net.js:668:12)
Exit code: 255
Started http server

Logs
  plusX Execution permissions of /home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_<EMAIL_ADDRESS>are fine
  plusX Execution permissions of /home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_<EMAIL_ADDRESS>are fine
  plusX Execution permissions of /home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_<EMAIL_ADDRESS>are fine  +14s
  plusX Execution permissions of /home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_<EMAIL_ADDRESS>are fine  +1s
  plusX Execution permissions of /home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_<EMAIL_ADDRESS>are fine  +2s
  plusX Execution permissions of /home/dotsinspace/Documents/dev/truck.pe__server/node_modules/.pnpm/@prisma/client@2.8.0_<EMAIL_ADDRESS>are fine  +1s

Hello! Can you please provide a minimal reproduction for the above crash? Unfortunately the automatically collected information in the issue does not give us much to go with here - we will need a bit more information. What were you doing? Can you share the code and schema that was active?

Suppose in Postgres you create table as follows:

id
createdAt
updatedAt
mobiles

1
2:00BLABLA
2:00BLABLA
+91992999999

#Schema
  id              String            @id @default(cuid())   createdAt       DateTime          @default(now())   updatedAt       DateTime          @default(now()) @updatedAt   mobilenumber String               <------------ Just Change String to String[] as in postgres you could save list. }
await Prisma.account({
  mobilenumber: [8826668515]
})

Server will crash now for sure.

@rootandleaves Sorry for the late reply here.  I am unable to reproduce this after using the correct types:

If you looking to store BigInts instead of Strings, that is now possible with the new native types feature flag, check it out here: https://www.prisma.io/docs/concepts/components/preview-features/native-types/native-types-mappings#bigint

@rootandleaves Sorry for the late reply here.  I am unable to reproduce this after using the correct types:

If you looking to store BigInts instead of Strings, that is now possible with the new native types feature flag, check it out here: https://www.prisma.io/docs/concepts/components/preview-features/native-types/native-types-mappings#bigint


Regulariztion bugfix

This pull request includes several bugfixes and enhancements related to 3-body regularization matrices.

3 commits on Oct 1, 2023 and commit 226d7e5 on Oct 22, 2023:

Fixed issue 3 in the attached docx file (issues 1 and 2 were fixed in #85 ).

Commit 0b1e409 on Oct 2, 2023:

Fixed issue 4 and 5 in the attached docx file. Also illustrated in the attached pptx file.

Commit 9857b3c on Oct 2, 2023 and commit a882598 on Oct 18, 2023:

3-body regularization center value adjustment (see attached pptx file).

First 5 commits on Oct 17, 2023:

Clean up and refactoring regularizer-related methods in uf3/representation/bspline.py and uf3/regression/regularize.py

Last commit on Oct 17, 2023 and first commit on Oct 18, 2023:

Unit tests for regularization matrices (see attached pptx file)

After all the changes, I ran some hyperparameter optimizations on the tungsten dataset to find the optimal kappa and lambda values. While many different sets of lambda values seemed to give similar results, it strongly showed that kappa=0.8 is the best value for balancing both energy and force errors. The Jupyter notebooks and .json files for the tungsten example have been updated with these new hyperparameter values.

Docx file:
loss_function_weights_math.docx
Pptx file:
regularization_3b.pptx

When generating frozen indices (uf3/representation/bspline.py BsplineBasis.generate_frozen_indices()), there is an option to set the trimmed coefficients to a nonzero value (but the default is 0). However, the current implementation of generate_frozen_indices() only applies the value to 2-body but is not carried over to 3-body. In addition, nowhere in the entire UF3 code is this custom nonzero value passed in, so I am guessing that this feature is either deprecated or unimportant. Ideally, the effect of freezing a coefficient to a nonzero value should be reflected when freezing the regularize, but I will leave this part unchanged because this feature seems unimportant or deprecated.
If we eventually decide to fix the nonzero freezing feature (even for 3-body), then a partial change to freezing the regularize would be something like:
    #regularizer = freeze_regularizer(self.regularizer, self.mask)  # OLD
    regularizer, reg_y = freeze_columns(self.regularizer,
                                        np.zeros(len(self.regularizer)),
                                        self.mask,
                                        self.frozen_c,
                                        self.col_idx)  # if np.all(self.frozen_c == 0), then reg_y == 0

Depending on this eventual fix, the 3-body regularization matrix compression may need to take place in uf3/representation/bspline.py BSplineBasis.get_regularization_matrix_3b().

@sunghjung3 I don't understand your last comment. I am going to need some more time to go over it

@monk-04 Sure. Take your time.
To provide more context, it is just because of a minor detail that arises from the feature to freeze some 2-body coefficients to a user-provided nonzero value. For instance, if we have a curvature regularization c_1 - 2*c_2 + c_3 == 0 and the user wants to freeze c_3 to 1.0, then I believe the curvature regularization should be updated accordingly when c_3 is frozen, like c_1 - 2*c_2 == -1.
Currently, this regularization update for nonzero frozen coefficients is not implemented in UF3. I was going to implement it, but this required some semi-significant changes. And I wasn't sure if this feature was deprecated or not, so I left it unchanged.


Be more verbose about why moving containers between hosts failed if profiles are not in sync

Required information

Distribution: Gentoo
Distribution version: current
The output of "lxc info" or if that fails:

config:
  core.https_address: <IP_ADDRESS>:8443
  core.trust_password: true
  images.auto_update_interval: "0"
api_extensions:
- storage_zfs_remove_snapshots
- container_host_shutdown_timeout
- container_stop_priority
- container_syscall_filtering
- auth_pki
- container_last_used_at
- etag
- patch
- usb_devices
- https_allowed_credentials
- image_compression_algorithm
- directory_manipulation
- container_cpu_time
- storage_zfs_use_refquota
- storage_lvm_mount_options
- network
- profile_usedby
- container_push
- container_exec_recording
- certificate_update
- container_exec_signal_handling
- gpu_devices
- container_image_properties
- migration_progress
- id_map
- network_firewall_filtering
- network_routes
- storage
- file_delete
- file_append
- network_dhcp_expiry
- storage_lvm_vg_rename
- storage_lvm_thinpool_rename
- network_vlan
- image_create_aliases
- container_stateless_copy
- container_only_migration
- storage_zfs_clone_copy
- unix_device_rename
- storage_lvm_use_thinpool
- storage_rsync_bwlimit
- network_vxlan_interface
- storage_btrfs_mount_options
- entity_description
- image_force_refresh
- storage_lvm_lv_resizing
- id_map_base
- file_symlinks
- container_push_target
- network_vlan_physical
- storage_images_delete
- container_edit_metadata
- container_snapshot_stateful_migration
- storage_driver_ceph
- storage_ceph_user_name
- resource_limits
- storage_volatile_initial_source
- storage_ceph_force_osd_reuse
- storage_block_filesystem_btrfs
- resources
- kernel_limits
- storage_api_volume_rename
- macaroon_authentication
- network_sriov
- console
- restrict_devlxd
- migration_pre_copy
- infiniband
- maas_network
api_status: stable
api_version: "1.0"
auth: trusted
public: false
auth_methods:
- tls
environment:
  addresses:
  - <IP_ADDRESS>:8443
  architectures:
  - x86_64
  - i686
  driver: lxc
  driver_version: 2.1.1
  kernel: Linux
  kernel_architecture: x86_64
  kernel_version: 4.14.12-2
  server: lxd
  server_pid: 62390
  server_version: "2.21"
  storage: zfs
  storage_version: 0.7.5-r0-gentoo

Issue description
When moving a container from one host to another, if all profiles do not exist on both of them lxd errors out with:
lxc move lobot:container1 local:
error: Failed container creation:
 - https://<IP_ADDRESS>:8443: not found

It would be helpful if LXD would be more verbose about why the move failed. Like profile "so-and-so" not found on destination.
Steps to reproduce

create container and apply profile that doesn't exist on the second host
move the container from one host to another

It could even ask the user to copy the profile to the second host and retry with the move.

Looking into this. We seem to have suitable errors when passing unknown profiles locally but somehow that code path isn't hit when copying remotely, odd.

Thank you


Replace internal colab links with aliyun links

Any links in the notebooks which point to colab need to be replaced with the appropriate China accessible link.
I think the easiest way to to just search and replace. Since we will use the same directory structure , it should be as easy as running a find/replace on the whole repository.

@superr90 seems like this can be done with a single sed command on the repo.


Add Marathi and Gujarati to V3 API

@amandasong : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off


EGAD00001008030 - Mapping single-cell transcriptomes in the intra-tumoral and associated territories of kidney cancer

Project short name: IntraTumoralKidneyCancer
Primary Wrangler: Wei Kheng
Secondary Wrangler:

Paper
Data
Ingest
Associated files:

Google Drive: https://drive.google.com/drive/folders/1zTB8webkgasDkCC7I6LRgCAvwHi37P0H

Key Events

[ ] Send initial instructions about contributing, including questionnaire and T&Cs
[ ] Receive project questionnaire
[ ] Assign the Primary Wrangler
[ ] Receive T&C form filled out by at least 1 representative of group/project
[ ] Send custom metadata template spreadsheet, how-to guide and directions for submitting data, matrix and cell annotation files.
[ ] Receive spreadsheet (to a sufficient standard to submit dataset)
[ ] Receive data, matrix and cell annotation files (to a sufficient standard to submit dataset)
[ ] Curate metadata spreadsheet with ontologies
[ ] Upload sheet to validate metadata
[ ] Run graph validator & Check linking
[ ] Validate data files
[ ] Ask the Secondary Wrangler for an end-to-end review of the project. Ask the Expertise Wrangler to review specific tabs if needed
[ ] Get final approval of submission from the contributor including release date, metadata spreadsheet and data files
[ ] Submit to production and inform ingest-devs the project is ready for archiving
[ ] Complete the Export SOP
[ ] Convert project data to SCEA format following the SCEA conversion SOP if appropriate

Please track the below as well as the key events:

Track date first spreadsheet received and final spreadsheet sent by editing ticket to include
date next to event.
Track spreadsheet iterations by placing asterisks next to receive spreadsheet event.
Track any metadata issues/tickets made for dataset with a bulleted list of links under
received spreadsheet event. Links should be to the ticket in the metadata repo.

Ready for secondary review

Changes made and graph validation requested


Upload PDF playground

Bug Description
I am using the DataStax Langflow version and I already have the entire chatbot configured, however, as I created a chatbot that interacts with PDF files, I am unable to upload the PDF files to the playground. Can someone help me with how I configure it so that it is possible to upload PDF files to the playground?
Reproduction
I am trying to upload a pdf file to the playground, however I get the error "Error uploading file
Please ensure your file has one of the following extensions:
png, jpg, jpeg"
Expected behavior
N/A
Who can help?
No response
Operating System
Windows 11
Langflow Version
1.0.18
Python Version
3.12
Screenshot

Flow File
No response

and where can I change this file within the Langflow version of DataStax

But I don't have access to the DataStax Langflow installation files

@mazierovictor
Today, it's not possible to send a PDF file via Playground. To upload the file in Langflow's Canvas, drag the File component to upload the file.

@carlosrcoelho Isso significa que é impossível criar um chatbot que interaja com arquivos PDF? Para cada arquivo PDF, terei que abrir o fluxo do Langflow e alterar o arquivo?

@carlosrcoelho What I need is to create a PDF chat where I upload a PDF file and ask him questions. Given this and what you told me, would you have any suggestions?

You can use the Get Started example Vector Store RAG

We also have a YouTube channel with some cool tutorials videos:
https://www.youtube.com/@Langflow


docs(guide/Forms): The CSS example is missing binding results

It will be good to have the binding results of CSS example, similar to the Simple Form example.

I signed it!