Add current version of Git backend

What he said in the title :-)
Implements https://github.com/ContainerSolutions/externalsecret-operator/issues/14 .
Haven't committed vendor dir yet and etc not to make PR confusing.

You can commit vendor. GitHub will exclude it automatically.

Archiving this pull request. Things changed quite a bit and it would require major refactoring to be merged.


don't return transitionTo from beforeModel

This removes unnecessary returns from the AuthenticatedRouteMixin and UnauthenticatedRouteMixin mixins - there's basically no difference between return this.transitionTo(… and this.transitionTo(… in beforeModel anyway and the code currently is a bit confusing actually.
closes #1238

@stevenwu: can you approve via the Review UI if this is fine so we get the green check mark?


default tag version

with 0.5.0 and the switch to the new ASDF extension API we also get a 'fresh start' with the version numbering
I would prefer to reserve the 1.0.0 version for schema files for the initial (final) 1.0.0 release of weldx
But since there are now use cases based on the format we should also keep compatibility in mind from 0.6.0 forward.
So I am thinking, maybe we should reset the schema versions to 0.1.0 and apply all the versioning mechanisms of asdf going forward. We don't have to keep backwards compatibility code in the codebase for too long imo but should avoid breaking files between releases (like we are doing now with the old tag format)
I might remember trying to set a 0.1.0 version somewhere before and running into some kind of issue but not sure so I will try it again just to see if that is viable
everything seems to work fine with 0.1.0 #535
please offer your opinions @vhirtham @marscher @AndreasPittner

I have implemented the changes here #535, everything seems to work 🎉

I think the schema version number only gets relevant if we finally release WelDX 1.0.0. So setting it back to 0.1.0 is fine by me. Has the additional benefit, that we can increase it freely if we want to test our versioning procedures later.

I think the schema version number only gets relevant if we finally release WelDX 1.0.0. So setting it back to 0.1.0 is fine by me. Has the additional benefit, that we can increase it freely if we want to test our versioning procedures later.

yes we should definitely do some test runs with versioning

I've just noticed that you reimported the legacy tags to support reading "old" files again. As users probably never has to work with tag versions themself it is purely cosmetic at this point to reset the versions. But breaking compatibility with old files (you might argue that there are no files yet) is bad. I already run into trouble with asdf-2.8 new tag layout on old files and I guess artificially down-grading tag version numbers will not increase backward compatibility.
I'd just use semantic versioning for the tags, no matter whats' the current stage of the project. This way we could learn how to do it properly and as I said before, the version does not really affect the user.

I'd just use semantic versioning for the tags, no matter whats' the current stage of the project. This way we could learn how to do it properly and as I said before, the version does not really affect the user.

yes that is exactly the idea from now on, just use semantic versioning for schemas etc.

I've just noticed that you reimported the legacy tags to support reading "old" files again. As users probably never has to work with tag versions themself it is purely cosmetic at this point to reset the versions. But breaking compatibility with old files (you might argue that there are no files yet) is bad. I already run into trouble with asdf-2.8 new tag layout on old files and I guess artificially down-grading tag version numbers will not increase backward compatibility.

that is why I wanted to do this now with the big asdf 2.8 refactor
Since the old and new schema files use a completely different naming scheme there is no real versioning conflict going 'down' to 0.1.0 now.
basically we are deprecating the tag:weldx.bam.de namespace completely (but still support it via the legacy files)
the new asdf://weldx.bam.de tag namespace is completely unrelated to the old schemas now (although obviously the file layout etc are still the same, but we could also change that)


(server) Access log missing under QUIC mode

WebSocket mode seems fine. This seems like an upstream issue. So I'm going to CC the all-knowing @VictoriaRaymond. :smile:
P.S. QUIC works much better with the latest update. Nice!

如何关闭udp 我设置了 "mode":"tcp_only" 无效


@types.ts -> types.ts

Description

Describe the solution you'd like

Describe alternatives you've considered

Additional context

keep

keep


malihu custom scrollbar puts  in wrong place on electron

malihu custom scrollbar puts html

  in wrong place on electron.
I looked at the versions in my browser and it works just fine. HTML Code it generates looks something like this:

But in electron itself, it generates  inside  which leads to funky behaviour...
Here is what it generates in electron itself:

Here is code which i use to to "use" this scrollbar:

Also it gives Uncaught ReferenceError: jQuery is not defined error any time i run it. I have no idea what is going on pls help.
P.S. If anything is needed to solve this mystery, i'll attach it.

I had such a problem on one of the projects. As it turned out, the problem was in the version of the jquery. This bug appears in jquery version 3.5.1. With version 3.4.1, everything works fine.
P.S. sorry for my English (Google Translate)

#652

@jinixx thank you for the fix - it fixed this vertical scrollbar issue.
It seem like new issue created with the horizontal scrollbar.
First - left and right buttons disappeared. Width and max-width are calculated wrong.
Second - the horizontal scrollbar drawn inside the div of the vertical scrollbar.
The code looks like this:

I had such a problem on one of the projects. As it turned out, the problem was in the version of the jquery. This bug appears in jquery version 3.5.1. With version 3.4.1, everything works fine.
P.S. sorry for my English (Google Translate)

At what here jquery if in a script code these blocks go one after another http://joxi.ru/5md3QgJU8keJLr

I had the same issue today and we don't have a fix for 3.5.1 version, so, I create a function to move the rail to the proper place when the scrollbar is initialized.
I know it is not the best solution, but, it works in the meantime until we'll have a final fix.
` function jQueryFix(el) {
var $rail = el.find('.mCSB_draggerRail');
var $target = el.find('.mCSB_draggerContainer');
    if ($rail.length > 0 && $rail.parent().hasClass('mCSB_dragger') ) {
      $rail.appendTo($target);
    }
  }`

      const scrollbarConf = {         callbacks:{           onInit:function(){             jQueryFix($(this));           }         }       };

Switching to another version of jQuery fixed the issue. Thanks!


Troubles with patroni metrics

Describe the bug
Having troubles with reading patroni metrics:
{"level":"error","service":"pgscv","time":"2021-09-23T16:41:30+03:00","message":"patroni/common collector failed; Get \"http://[<nil>]:8008/liveness\": dial tcp: lookup <nil>: n$
 such host"}

Steps to reproduce
sudo -u postgres ./pgscv --config-file pgscv.yaml
Also tried running file with root.
Also tried running with PATRONI_URL="https://hostname:8008" exported
Expected behavior
No errors and patroni metrics shown in grafana.
pgSCV startup options
listen_address: <IP_ADDRESS>:9890
defaults:
    postgres_username: "postgres"
    postgres_password: "mypassword"

Errors and Logs
sudo ./pgscv --config-file pgscv.yaml
{"level":"info","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"read configuration from pgscv.yaml"}
{"level":"info","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"no-track disabled, for details check the documentation about 'no_track_mode' option."}
{"level":"info","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"listen on http://<IP_ADDRESS>:9890"}
{"level":"info","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"auto-discovery: service added [system:0]"}
{"level":"info","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"auto-discovery [python3]: service added [patroni:8008]"}
{"level":"info","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"auto-discovery [postgres]: service added [postgres:5432]"}
{"level":"warn","service":"pgscv","time":"2021-09-23T16:55:03+03:00","message":"service [patroni:8008] failed: tries remain 1/10"}
{"level":"error","service":"pgscv","time":"2021-09-23T16:55:30+03:00","message":"patroni/common collector failed; Get \"http://[<nil>]:8008/liveness\": dial tcp: lookup <nil>: no such host"}
{"level":"error","service":"pgscv","time":"2021-09-23T16:55:30+03:00","message":"patroni/common collector failed; Get \"http://[<nil>]:8008/liveness\": dial tcp: lookup <nil>: no such host"}
{"level":"warn","service":"pgscv","time":"2021-09-23T16:55:30+03:00","message":"get model for vda failed: open /sys/block/vda/device/model: no such file or directory; skip"}
{"level":"warn","service":"pgscv","time":"2021-09-23T16:55:30+03:00","message":"get model for vdb failed: open /sys/block/vdb/device/model: no such file or directory; skip"}

In Debug mode:
{"level":"debug","service":"pgscv","time":"2021-09-23T17:15:31+03:00","message":"auto-discovery: looking up for new services..."}
{"level":"debug","service":"pgscv","time":"2021-09-23T17:15:31+03:00","message":"auto-discovery [patroni]: analyzing process with pid 24042"}
{"level":"debug","service":"pgscv","time":"2021-09-23T17:15:31+03:00","message":"auto-discovery: patroni service has been found, pid 24042, available through [<nil>]:8008"}

Environment (please complete the following information):

Used OS (or Containers): [output of cat /etc/os-release]

NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"

pgSCV Version [output of pgscv --version]
pgscv 0.7.5 d52f09925a44a67493bd8c598a42c7455e182d5e-release
PostgreSQL Version [output of psql -c 'select version()']
PostgreSQL 11.8 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0, 64-bit
patroni 2.0.2
Do PostgreSQL and pgSCV are running on the same host?
Yes

Additional context
None

provide please patroni.yml and output of sudo ss -luntp |grep 8008

patroni.yml
restapi:
  listen: my.host.fqdn:8008
  connect_address: my.host.fqdn:8008

I hope it's sufficient, since you require only listen and certfile string  from config file.
sudo ss -luntp |grep 8008
tcp   LISTEN   0        5                ip_address:8008          <IP_ADDRESS>:*      users:(("python3",pid=24042,fd=8))

also:
curl -s  http://$(hostname):8008

works fine

Changed listen from fqdn to ip. Seems working
at least getting:
curl -s http://ip:9890/metrics | grep patroni
# HELP patroni_up State of Patroni service: 1 is up, 0 otherwise.
# TYPE patroni_up gauge
patroni_up{service_id="patroni:8008"} 1
pgscv_services_registered_total{service="patroni",service_id="patroni:8008"} 1

But why can't I use fqdn? In out IAC rules fqdns is preffered over IPs.

There is no reason not to use FQDN's. I think this is just a bug/mistake, I will fix it.

got some more errors for patroni monitoring:
{"level":"error","service":"pgscv","time":"2021-09-24T11:07:00+03:00","message":"patroni/common collector failed; parse patroni postmaster_start_time string '2021-09-24 06:22:35.102 MSK' failed: parsing time \"2021-09-24 06:22:35.102 MSK\" as \"2006-01-02 15:04:05.999999Z07:00\": cannot parse \" MSK\" as \"Z07:00\""}

Not sure id it deserves separate issue.


integrate ragavi into notebooks

@bennahugo put me onto this tool. May be an interesting option for notebooks.
https://bokeh.pydata.org/en/latest/docs/user_guide/quickstart.html

Duplicate of #29.


Missing parents after breeding

Describe the bug
After taking my egg from the day care , my Drilbur and Ditto disappeared and did not go to my pc
Expected behavior
my Drilbur and Ditto should be in my pc
Username:
FatherKarp
Server name (all applicable):
Titan
Discord - .ratpriest

this is a discord support ticket issue, file one here
https://discord.com/channels/151095626916954113/1102942606335418428/1239683818487549983


Chromakey video sample invert effect

In https://github.com/google-ar/sceneform-android-sdk/blob/master/samples/chromakeyvideo/app/sampledata/models/chroma_key_video_material.mat
It removes the green color from the video, how to reverse the effect to keep specified colors in the video and remove all other colors?

The chromakey video sample simply sets the alpha based on the green color.  In order to negate the behavior in the material that you linked, instead of setting alpha to smoothstep(edge0, threshold, distance) like that sample does, set it to 1.0 - smoothstep(edge0, threshold, distance) and you should see the opposite behavior.


Ftpd leaks sockets

Currently there is no way to close the server and be sure all sockets are closed. The close() method only closes the main listening socket but not the data sockets. Is there any way around that?

Actually, it's the pasv server associated with each connection that is not closed.

Agreed, this is an issue that should be resolved. I'll accept a pull request for this, if not, I will try to get to it. Thanks.

I'l' have to see about that - I'm under pressure to deliver something and I've worked around it by closing the pasv field of the connection object that was passed in the connected event.
By the way I've added TypeScript definitions for your module on borisyankov/DefinitelyTyped so your  module can be used from TypeScript as well. You might see an increase in usage :)

Quoting from @rogierschouten's comment on #42 I think this is a good solution (although we should bake this in and expose a simpler way to do this).
== Original Message ==

Attach a handler to the "client:connected" event and store the connection object you get (called 'client' below).
When you want to dispose, do this:

if (client.dataSocket) {
      client.dataSocket.destroy();
}
if (client.socket) {
      client.socket.destroy();
}
if (client.pasv) {
      client.pasv.close();
}

@sstur @rogierschouten After implementing it. This is what I get after disconnecting from FTP:
events.js:72
throw er; // Unhandled 'error' event
^
Error: This socket is closed.
at Socket._write (net.js:638:19)
at doWrite (_stream_writable.js:226:10)
at writeOrBuffer (_stream_writable.js:216:5)
at Socket.Writable.write (_stream_writable.js:183:11)
at Socket.write (net.js:616:40)
at wwenc (/home/node/node_modules/ftpd/lib/ftpd.js:74:17)
at FtpConnection.respond (/home/node/node_modules/ftpd/lib/ftpd.js:201:12)
at FtpServer._onConnection (/home/node/node_modules/ftpd/lib/ftpd.js:153:8)
at Server. (/home/node/node_modules/ftpd/lib/ftpd.js:108:10)
at Server.emit (events.js:95:17)
at TCP.onconnection (net.js:1192:8)

What's the benefit of .destroy() over .end() in this case?

Problem is: After ftp client disconnects, on command
netstat -tulpn | grep node.js
I see many unclosed, established connections.. After reaching ~1024 node app crashes..

Each row is generated after 1 client disconnects from FTP. Later - everything in app is broken and needs restart because it reaches ulimit..

@mk-pmb end() takes longer than destroy() as it will perform a Fin-Ack handshake I thought. I'm in unittests so I want a quick end without a lingering connection.
@BenasPaulikas  what is your code? Did you attach the event handler, store the connection object, and close the connections when you're done with them? It looks like you tried to write after you closed the connections.

@rogierschouten Let me begin again because I made a mistake before. So I have a simple server enabled.
var server = new ftpd.FtpServer('<IP_ADDRESS>', options);

server.on('client:connected', function(conn) {
   ...
   conn.on('command:pass', function(pass, success, failure) {
      ...
      success();
   })
})

I connect to edit, edit few files perfectly and disconnect. Each time I connect it's opening and not closing a socket connection(marked red in image) So when I connect ~ 1024th time(max ulimit) my node app starts crashing because other module can't no more open files because it reached ulimit..

@mk-pmb The destroy() method "ensures that no more I/O activity happens on this socket. Only necessary in case of errors (parse error or so)."
So I think the end() method would be a better choice. Regardless, this seems to be a bug and we should get a fix out. I'll take a closer look at implementing @rogierschouten's solution...

If you use end(), sockets will not leak but they will linger. For some uses this is not acceptable. Why not offer both while you're at it? Small effort big result.

@rogierschouten You mean like a destroySockets opt-in? I'm open to that, but it will add more complexity to test for (config permutations). I wonder if we do a setTimeout to check if a socket it still open after N milliseconds and destroy if necessary, would that solve your use case? How long are these lingering for?

That's OS specific, node does not control that. It is tpically more than 30
seconds because the protocol takes three messages with their possible
timeouts and retries. Servers typically have separate end() and destroy()
methods. There are use cases for both. Depending on your implementation you
may want to treat destroy as one more unittest rather than permutating it
with other config options.

I see. Hmm, well something like this could solve your use case, right:
server.on('connection', function(connection) {
  connection.on('end', function() {
    connection.destroy();
  });
});

I'm actually not opposed to adding a config option, I just want to explore the options and make sure we make a good choice.

Well no, because you would send the end event only when ending is finished, i,e, after the 30+ seconds?

Oops, you're right. What I was trying to say is imagine we had an event that fired when socket.end() is called and allowed your code to choose what it wants to do. I guess I should have looked at the API docs first. Turns out there is no built in event for this so we would have to fire a custom event and that could possibly be confusing. I'll go with the config option.

Considering @BenasPaulikas' "Error: This socket is closed." at wwenc (…/ftpd/lib/ftpd.js:74:17), we should add graceful error handling. This StackOverflow thread looks like we'd need a try-catch in wwnec, as this seems to not emit an error event on the socket.

@sstur Do I understand this correct. We need a config option which would allow FTP module to fully close these unused connections ?

Thanks @mk-pmb. It seems in addition to calling destroy() instead of end() we can check socket.writable and possibly socket.destroyed before writing (or even look for the presence of socket._handle but underscore-prefixed properties are meant to be private). I have a diff for this almost ready.

When deciding about whether to attempt writing to the socket, assuming a good API, no other socket property other than socket.writable should be of concern.

I'm still confused. We don't have a solution yet to solve these open listen ports

I think I have a solution. Will push my changes tomorrow and maybe you can help me see if it solves the issue...

I will be waiting to test. Can't wait :+1:

Hi guys!
I also experienced leaking sockets a while ago and the first thing I tried was this and I never had any leaking sockets since.
I'm not sure this was correct but I forgot to continue on this because the problem disappeared.

@BenasPaulikas: I have pushed my fix to master. Can you try it out and see if it fixes your issue? I need a way to test for lingering listeners, but that will take a little refactoring.
@oleksiyk: That's actually a very elegant solution! I think even more so than mine (although I hope to have a better one soon after I refactor the pasv listener to a module). One point though, you probably only need that in the _onClose since "close" event is guaranteed to be emitted after error/end. So actually, yours could even be a one-line solution!

@sstur It works! Sockets are closed without any error :+1: . Is this is a final solution ? When can I expect this to work via npm install :) ?

I can bump the version and push to npm today. Thanks!


feat: add Mode Mainnet 1.3.0 contracts

Please add Mode Mainnet:

https://github.com/safe-global/safe-deployments/pull/356

Thank you!

@moisses89 done :heavy_check_mark:

@moisses89 done ✔

I just merged a previous PR and looks like we have conflicts again :( could you review?

@moisses89 no worries :wink:
thank you for review!


Make initial changes

Good pull requests have a body description that tells other contributors about the change you're suggesting, so they understand the context.
Let's edit this pull request to add a body description.
Activity: Fixing your pull request

The first comment on your pull request will have the default text of No description provided. Click on the ... icon located at the top right corner of the comment box, then click on Edit to make an edit
Add a description of the changes you've made in the comment box. Feel free to add a description of what you’ve accomplished so far. As a reminder, you have: created a branch, created a file and made a commit, and opened a pull request
Click the green Update comment button at the bottom right of the comment box when done

If you would like assistance troubleshooting the issue you are encountering, create a post on the GitHub Community board. You might also want to search for your issue to see if other people have resolved it in the past.
I'll respond when I detect this pull request's body has been edited.
Have made a branch called my-slide, and created a file _posts0000-o1-02-dishonkuria.md, made a commit, and opened a pull request.

my-slide branch, then _posts0000-01-02-dishonkuria.md


Easy undo after space bar press

As a cashier,
I want to be able to undo a space bar press
So that I can continue a sale if I pressed by mistake

Solved in commit 024c7062083315b353505b3779ee6980df725a66.


ROX-12380: Scope subjects to cluster role for Most Cluster Admin Roles widget

Description
Per Charmik in the Jira request:

The query is used by "Users with most cluster admin roles" widget and queries all clusters and all subjects within each cluster. With postgres is enabled, the widget call a query with "Cluster Role:true" filter added to subjects because for all clusterAdmin subjects, their RoleBindings would have ClusterRole set to true. The additional filter can improve the turnaround time of the query in many cases.

Checklist

[ ] Investigated and inspected CI test results

Testing Performed
Gives the same results before and after the optimization.

@charmik-redhat Does this change need to be scoped, so that it only happens in a Postgres environment, or can it exist in a non-Postgres environment, too?

@vjwilson I have not tested the extra filter with Postgres disabled. Tagging @md2119 to ask if boolean matching queries need any pre-processing in non-postures environments.

@charmik-redhat @md2119
Is this OK to merge yet, or not?
If not, do you want to add the BE changes to this PR, so that it an atomic change?

@charmik-redhat @md2119
Is this OK to merge yet, or not?
If not, do you want to add the BE changes to this PR, so that it an atomic change?

@vjwilson The BE change is in PR #3682 but I think we can merge that and then this PR after 3.73

@charmik-redhat @md2119
Is this OK to merge yet, or not?
If not, do you want to add the BE changes to this PR, so that it an atomic change?

Hold this PR until 3.73 is released and the backend PR is merged.

@vjwilson might want to update the JIRA with 3.74 fix version.

@charmik-redhat
Now that release 3.73 has been cut, can I merge this FE change?
cc: @md2119

@charmik-redhat Now that release 3.73 has been cut, can I merge this FE change?
cc: @md2119

@vjwilson Yes, it should be good to merge now.


LinAlgError using scipy.signal.savgol_filter since windows 10 (2004) update

My issue is about using scipy.signal.savgol_filter under windows 10 (version 2004).
The code works fine with all previous windows versions, but since the new update my scripts with scipy.signal.savgol_filter are not working anymore. On PCs with the former windows versions, I do not get an error.
Reproducing code example:

import scipy.signal
import pandas as pd
import matplotlib.pyplot as plt

panda = pd.read_csv("Savgol.csv")

fig, ax = plt.subplots()
ax.clear()
for n in ["Sample1", "Sample2", "Sample3"]:
    panda["Filter_" + n] = scipy.signal.savgol_filter(panda[n],19, 5, deriv=2, delta=-1.0, axis=-1, mode='interp', cval=0.0)
    panda.plot(kind='line',x="Item", y=("Filter_" + n), ax=ax, linewidth=1, grid=True)
ax.set_title("Title", fontsize=20)
ax.set_ylabel("Value", fontsize=16)

Error message:

---------------------------------------------------------------------------
LinAlgError                               Traceback (most recent call last)
 in
      8 ax.clear()
      9 for n in ["Sample1", "Sample2", "Sample3"]:
---> 10     panda["Filter_" + n] = scipy.signal.savgol_filter(panda[n],19, 5, deriv=2, delta=-1.0, axis=-1, mode='interp', cval=0.0)
     11     panda.plot(kind='line',x="Item", y=("Filter_" + n), ax=ax, linewidth=1, grid=True)
     12 ax.set_title("Title", fontsize=20)

~\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\signal\_savitzky_golay.py in savgol_filter(x, window_length, polyorder, deriv, delta, axis, mode, cval)
    333         x = x.astype(np.float64)
    334
--> 335     coeffs = savgol_coeffs(window_length, polyorder, deriv=deriv, delta=delta)
    336
    337     if mode == "interp":

~\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\signal\_savitzky_golay.py in savgol_coeffs(window_length, polyorder, deriv, delta, pos, use)
    135
    136     # Find the least-squares solution of A*c = y
--> 137     coeffs, _, _, _ = lstsq(A, y)
    138
    139     return coeffs

~\AppData\Local\Programs\Python\Python38\lib\site-packages\scipy\linalg\basic.py in lstsq(a, b, cond, overwrite_a, overwrite_b, check_finite, lapack_driver)
   1219                                                cond, False, False)
   1220         if info > 0:
-> 1221             raise LinAlgError("SVD did not converge in Linear Least Squares")
   1222         if info < 0:
   1223             raise ValueError('illegal value in %d-th argument of internal %s'

LinAlgError: SVD did not converge in Linear Least Squares

Scipy/Numpy/Python version information:

1.5.2 1.19.0 sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
Savgol.zip

This appears to be the same issue as https://github.com/numpy/numpy/issues/16744.

Microsoft C++ team released the patch and it will also appear on the windows update stream very soon. If you want to install the patch manually please follow the instructions on the pinned solutions
https://developercommunity2.visualstudio.com/t/fmod-after-an-update-to-windows-2004-is-causing-a/1207405


Error after migrating to capacitypools from old workloads

tid: 414
Explorer: Testnet
Error:

{"error": "401 Client Error: {\"error\":\"unauthorized access: signature verification failed\"}\n for url: https://explorer.testnet.grid.tf/api/v1/reservations/convert"}

This workload fails to delete https://explorer.testnet.grid.tf/api/v1/reservations/workloads/463072

Can you tell me when did you do the migration ?
This is a bug that should already be fixed by now.

Can you tell me when did you do the migration ?
This is a bug that should already be fixed by now.

it was on 19 June

Added the missing pieces in https://github.com/threefoldtech/tfexplorer/pull/153
Fixed version has been pused to devnet and testnet.
@waleedhammam can you retry to delete your workload that was giving issue please ?

Yes this one fixed, thanks. also the unauthorized access for has migrated.
But I got an error from a recent workload after migration while I was trying to delete it, is that related ?
https://explorer.testnet.grid.tf/api/v1/reservations/workloads/469085

@waleedhammam this new error is not related, Please open a new issue fo it and close this one if it's working now.

@waleedhammam this new error is not related, Please open a new issue fo it and close this one if it's working now.

Okay, thank you


docs(ngmodule): Fix typo of italic in backquote

The underscore would turn to real underscore character within backquote and resulting in _entryComponents_.

Thanks


Introduce option to fail validate if an already applied migration couldn't be found

Validate currently fails if the hash of a applied migration differs from the hash of the same migration found in the classpath. However, it doesn't fail if the applied migration could not be found on the classpath.
I would like to see an option for this. Actually I thought that would be the default behaviour, so I would even suggest to activate that option per default, maybe in the next major release.
The option would help in cases where:

a migration wasn't just edited but removed all together
one uses an older version of the software and the database schema contains newer migrations

Related stackoverflow question:
http://stackoverflow.com/questions/29541845

+1
We are experiencing the same problem.
Should we trigger a manual validation before or this will be fixed?

+1
This could be quite a serious issue. We don't know whether a file is legitimately missing or accidentally removed so at the point of deployment should be alerted that a file we've already applied is no longer present

+1

+1

+1

+1

Fixed. No new config option. Missing migrations now always trigger an exception.

@axelfontaine Is there no way to skip this check?
I had a version 8 that I now have removed and no longer want applied, which was working on 3.x, but on 4 I get:
 Validate failed: Detected applied migration not resolved locally: 8

@davidkarlsen You can either set validateOnMigrate to false or drop your schema_version table and (re-)baseline your schema.

We are using for every featrue a new branch, so it appears, that the following situation appears:
Branch 1 has migration script "V20160317_1__Unique_User_Names"
Branch 2 has migration Script "V20160318_1__Add_Filter_Names"
So, if I started in Branch 1 everything is alright. Ich I switch to Branch 2, I will get this Error:
"Validate failed: Detected applied migration not resolved locally: 20160317.1"
The only chance I have is to NOT validate or using version 3.
Is there a way, to handle this in version 4?

I am facing the same issue.

Is there a way, to handle this in version 4? +1

Same problem here,
The flag validateOnMigrate doesn't seem to  prevent the validation.

Checked again on v4.0.3 and the validateOnMigrate=false does not prevent the error:
`[aar@localhost db-migrations]$ mvn clean install flyway:info  flyway:migrate flyway:info -Dflyway.password="migrate"   -Dflyway.url=jdbc:mysql://localhost:3306/olap_quotation   -Polap,grants-preprod2  -DvalidateOnMigrate=false
[INFO] Scanning for projects...
Downloading: http://nexus.lan.courtanet.net/content/repositories/snapshots/org/flywaydb/flyway-maven-plugin/4.0.3/flyway-maven-plugin-4.0.3.pom
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-maven-plugin/4.0.3/flyway-maven-plugin-4.0.3.pom
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-maven-plugin/4.0.3/flyway-maven-plugin-4.0.3.pom (5 KB at 16.7 KB/sec)
Downloading: http://nexus.lan.courtanet.net/content/repositories/snapshots/org/flywaydb/flyway-parent/4.0.3/flyway-parent-4.0.3.pom
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-parent/4.0.3/flyway-parent-4.0.3.pom
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-parent/4.0.3/flyway-parent-4.0.3.pom (31 KB at 171.6 KB/sec)
Downloading: http://nexus.lan.courtanet.net/content/repositories/snapshots/org/flywaydb/flyway-maven-plugin/4.0.3/flyway-maven-plugin-4.0.3.jar
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-maven-plugin/4.0.3/flyway-maven-plugin-4.0.3.jar
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-maven-plugin/4.0.3/flyway-maven-plugin-4.0.3.jar (30 KB at 453.7 KB/sec)
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Devtools - DB Migrations 3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-core/4.0.3/flyway-core-4.0.3.pom
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-core/4.0.3/flyway-core-4.0.3.pom (19 KB at 189.6 KB/sec)
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-commandline/4.0.3/flyway-commandline-4.0.3.pom
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-commandline/4.0.3/flyway-commandline-4.0.3.pom (9 KB at 92.2 KB/sec)
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/mariadb/jdbc/mariadb-java-client/1.4.5/mariadb-java-client-1.4.5.pom
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/mariadb/jdbc/mariadb-java-client/1.4.5/mariadb-java-client-1.4.5.pom (16 KB at 93.0 KB/sec)
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-core/4.0.3/flyway-core-4.0.3.jar
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-commandline/4.0.3/flyway-commandline-4.0.3.zip
Downloading: http://nexus.lan.courtanet.net/content/groups/public/org/mariadb/jdbc/mariadb-java-client/1.4.5/mariadb-java-client-1.4.5.jar
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-core/4.0.3/flyway-core-4.0.3.jar (345 KB at 1840.2 KB/sec)
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/mariadb/jdbc/mariadb-java-client/1.4.5/mariadb-java-client-1.4.5.jar (363 KB at 1329.6 KB/sec)
Downloaded: http://nexus.lan.courtanet.net/content/groups/public/org/flywaydb/flyway-commandline/4.0.3/flyway-commandline-4.0.3.zip (11623 KB at 3629.9 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.6.1:clean (default-clean) @ db-migrations ---
[INFO] Deleting /ssd/lesfurets/devtools/db-migrations/target
[INFO]
[INFO] --- git-commit-id-plugin:2.1.15:revision (default) @ db-migrations ---
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-grants-benefit) @ db-migrations ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-resources-plugin:2.7:copy-resources (copy-grants-olap) @ db-migrations ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ db-migrations ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ db-migrations ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:testResources (default-testResources) @ db-migrations ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /ssd/lesfurets/devtools/db-migrations/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:testCompile (default-testCompile) @ db-migrations ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.18.1:test (default-test) @ db-migrations ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ db-migrations ---
[INFO] Building jar: /ssd/lesfurets/devtools/db-migrations/target/db-migrations-3.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ db-migrations ---
[INFO] Installing /ssd/lesfurets/devtools/db-migrations/target/db-migrations-3.1-SNAPSHOT.jar to /home/aar/.m2/repository/net/courtanet/devtools/db-migrations/3.1-SNAPSHOT/db-migrations-3.1-SNAPSHOT.jar
[INFO] Installing /ssd/lesfurets/devtools/db-migrations/pom.xml to /home/aar/.m2/repository/net/courtanet/devtools/db-migrations/3.1-SNAPSHOT/db-migrations-3.1-SNAPSHOT.pom
[INFO]
[INFO] --- flyway-maven-plugin:4.0.3:info (default-cli) @ db-migrations ---
[INFO] Flyway 4.0.3 by Boxfuse
[INFO] Database: jdbc:mysql://localhost:3306/olap_quotation (MySQL 5.5)
[INFO]
+---------+--------------------------------------+---------------------+---------+
| Version | Description                          | Installed on        | State   |
+---------+--------------------------------------+---------------------+---------+
| 2.1     | base olap quotation bo 20160620      | 2016-06-21 17:31:25 | Success |
| 2.2     | base olap quotation REFS bo 20160620 | 2016-06-21 17:31:25 | Missing |
| 4       | grants bo4 20151112                  | 2016-06-21 17:31:25 | Success |
| 2.22    | base olap quotation REFS bo 20160620 |                     | Pending |
+---------+--------------------------------------+---------------------+---------+
[INFO]
[INFO] --- flyway-maven-plugin:4.0.3:migrate (default-cli) @ db-migrations ---
[INFO] Database: jdbc:mysql://localhost:3306/olap_quotation (MySQL 5.5)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.717 s
[INFO] Finished at: 2016-06-21T17:34:39+02:00
[INFO] Final Memory: 23M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:4.0.3:migrate (default-cli) on project db-migrations: org.flywaydb.core.api.FlywayException: Validate failed: Detected applied migration not resolved locally: 2.2 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[aar@localhost db-migrations]$ `
Should we fill a new bug report ?
Thanks,
Andrei

@AndreiArion Yes, please open a new issue with all the relevant details on how to reproduce this.

These needs to be controlled by a configuration option!! This requirement assumes that schema updates are all handled by one repository and process. That's just no realistic! In our shop, we have so many projects that all feed in to each customer's databases, depending on what modules they license. Each module, has it's own specific schema update necessary to make that module work. They all need to co-mingle, and turning off the validateOnMigrate feature just won't cut it. Migrations still need to be validate in case we start to use the new Repeatable option or if an older Validate migration is changed by mistake.
With this new requirement, we're stuck at 3.2.1... :(

@AndreiArion It appears @pik0 was faster and opened #1352

Yeah, the powers-that-be were breathing down my neck for answers. Had to revert back to 3.2.1 and advise them of the status. Decided to file the bug since I already had gathered the report for them. Looks like this won't be fixed until 4.1 at the earliest based on other issue reports I'm seeing... :-/

Hi, I getting below error while running spring boot with flyway and postgres sql. Any one can please help on to fix this issue,
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Invocation of init method failed; nested exception is org.flywaydb.core.api.FlywayException: Validate failed: Detected resolved migration not applied to database: 1.0
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766)
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307)
at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
... 25 more
Caused by: org.flywaydb.core.api.FlywayException: Validate failed: Detected resolved migration not applied to database: 1.0
at org.flywaydb.core.Flyway.doValidate(Flyway.java:1000)
at org.flywaydb.core.Flyway.access$100(Flyway.java:72)
at org.flywaydb.core.Flyway$2.execute(Flyway.java:974)
at org.flywaydb.core.Flyway$2.execute(Flyway.java:971)
at org.flywaydb.core.Flyway.execute(Flyway.java:1361)
Thanks and Regards,
VADIVEL

Could you please guide on http://stackoverflow.com/questions/23776706/flyway-3-0-migration-checksum-mismatch ?


OCR type in api docker version

Hello Team,
What type of OCR is implemented in the docker version?
I did a test for an image between the docker version and the hosted API and the result is very different, the docker version does not extract a valid text most of the time

The hosted api uses the docker image as of each release commit, so hopefully everything should be consistent. Do you have an example file that we could test with?

I encountered the same problem, the docker version does not extract a valid text most of the time. they extract some words instead of meaningful paragraphs and sentences.


finch compose logs forces runtime dependencies between services

Describe the bug
This bug can be related to https://github.com/runfinch/finch/issues/385. The behaviour of finch compose logs is similar. It should show only logs of specified service but it also does show all depends_on services logs as well.
Steps to reproduce

One need a docker-compose file defining more then one service e.g.:

finch compose logs app

Expected behavior
Shows only logs of app service
Screenshots or logs
This screen show that also logs of db service which app depends_on are shown:

Additional context
Add any other context about the problem here.
To help debug the issue as quickly as possible, we recommend generating a support bundle with finch support-bundle-generate and attaching it to this issue. This packages all Finch-related configs and logs into one file.

Validated Docker only prints logs of the service without dependencies in compose logs.
docker compose logs svc1
finch-svc1-1  | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
finch-svc1-1  | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
finch-svc1-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
finch-svc1-1  | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
finch-svc1-1  | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
finch-svc1-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
finch-svc1-1  | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
finch-svc1-1  | /docker-entrypoint.sh: Configuration complete; ready for start up

Validated fixed.
finch compose logs svc1
svc1-1 |/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
svc1-1 |/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
svc1-1 |/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
svc1-1 |10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
svc1-1 |10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
svc1-1 |/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
svc1-1 |/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
svc1-1 |/docker-entrypoint.sh: Configuration complete; ready for start up


Create Lazy component

I think we should add a new component: Lazy.
This component would be used to lazy load another component. If we decide to start lazy loading Mapbox GL maps, we could include this new component in GLWrapper to handle lazy loading maps, if supported by the browser. I can imagine other components that load a significant amount of data or other packages using this new component to help improve performance.
The component will include:

The ErrorBoundary component as a fallback if the dynamic import fails
A loader to display until the component loads

Resources:

https://reactjs.org/docs/code-splitting.html#reactlazy

Note: we will need to do work on Batfish end to support lazy loading on the server side.

Note: we will need to do work on Batfish end to support lazy loading on the server side.

We'll use dynamic imports, closing for now


hey,man~how should i setting this ip

I am chinese,please tell me what should i setting my pastebin text of ip and port,i have wacth your video ,but your video is test on local,i have try it,and it success,but when i test on my public computer,it can't receive a session.what's the problem.Looking fo

rward to your reply.Very thankful~~~

Hello @jackhah
It means your IP is wrong. check http://checkip.dyndns.org/ to get your IP.

is this port even possible?


dark sky returns zero for temp when there is no internet

Home Assistant release (hass --version):
hass --version
0.65.3
Python release (python3 --version):
python3 --version
Python 3.6.0
Component/platform:
weather/darksky
Description of problem:
When there is no internet it can not get an update, the temp returned 0c.
Expected:
do not return a number. This meant on my 35c day all my heaters turned on. Not cool (pun intended). return a null or nil if it can not get a value.
Problem-relevant configuration.yaml entries and steps to reproduce:
 38 - platform: darksky
 39   api_key: cbasdfd7c65b
 40   monitored_conditions:
 41     - apparent_temperature
 42     - cloud_cover
 43     - humidity
 44     - icon
 45     - precip_probability
 46     - summary
 47     - temperature
 48     - temperature_max
 49     - temperature_min
 50     - uv_index
 51     - visibility
 52     - wind_bearing
 53     - wind_speed

Traceback (if applicable):

Additional info:

I doubt that home-assistant can solve that issude, because the code is just displaying the data from the python-forecastio instance.

For now the simplest solution would be to add an additional condition to your automation rule.


Unable to up the docker file after adding a new python file for custom authentication

I have a requirement in which i need to add custom authentication. For it I followed below steps:
How to reproduce the bug

Go to superset/superset folder. Create a new file e.x. CustomSecurityManager.py.
Add below code

from superset.security import SupersetSecurityManager
class MySecurityManager(SupersetSecurityManager):
def init(self, appbuilder):
super(MySecurityManager, self).init(appbuilder)

Edited superset_config.py file that is present in docker/pythonpathtodev. Edited below entry

from CustomSecurityManager import MySecurityManager
CUSTOM_SECURITY_MANAGER = MySecurityManager

In the docker file I have also entry for the above file to copy.
In the superset/init.py file I have entry

from CustomSecurityManager import MySecurityManager

Then I am using docker-compose -f docker-compose-non-dev.yml up command. See the below error

Expected results
Docker should be up
Actual results

Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):

browser type and version: Chrome
superset version: superset version
python version: python --version  -- 3.9.7
node.js version: node -v --v12.22.5
any feature flags active:

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[x] I have reproduced the issue with at least the latest released version of superset.
[x] I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context
Add any other context about the problem here.

Hi @nikhilmahawar the non-dev yml is exactly that, focused on just getting the common default functionality working quickly (e.g. using prebuilt frontend assets, etc).
You'll likely be better off just doing docker-compose up instead

Can you post in #debug-together in the Superset Slack community? This isn't a bug or feature request, which is what Github issues are best used for!
You can join the Slack here: https://join.slack.com/t/apache-superset/shared_invite/zt-uxbh5g36-AISUtHbzOXcu0BIj7kgUaw


[GH-#92] Endpoint to get transactions concerning account from chain

Resolves #92

Except for https://github.com/aeternity/elixir-research/pull/158#discussion_r156311032 it looks really good


feat(topics): allow non admin to create and edit

Supersedes #95

Show bouquet creation button to everyone
Show edit button to admin or owner of the bouquet

The build is randomly failing on Netlify (see below), I think we might have introduced a bug somewhere :-/ The build is actually fine, I reran it with clearing cache, but it's not updating the check status.
6:07:40 PM: ><EMAIL_ADDRESS>build
6:07:40 PM: > vite build
6:07:40 PM: failed to load config from /opt/build/repo/vite.config.js
6:07:40 PM: error during build:
6:07:40 PM: Error: The package "@esbuild/linux-x64" could not be found, and is needed by esbuild.
6:07:40 PM: If you are installing esbuild with npm, make sure that you don"t specify the
"--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
6:07:40 PM: of "package.json" is used by esbuild to install the correct binary executable
6:07:40 PM: for your current platform.

I got the same issue this morning.


pipe Auth ID to wush ssh

how can I directly pipe the auth id to wush commands without explicitly insert it by user input?

TEMP_DIR="$(mktemp -d)"
mkfifo $TEMP_DIR/auth
wush serve | while read l; do
    echo "$l" >> $TEMP_DIR/auth
done &
AUTH="$(cat $TEMP_DIR/auth)"
echo "auth: $AUTH"
wait
```

Going to close, @gdmn's option seems to be the best here. We won't be able to accept the auth key via stdin because we'll need to attach that to the tty for input.


fix: silently fail if a swapper has already been added instead of throwing

fix: silently fail if a swapper has already been added instead of throwing
We need this in order to cleanly handle async swapper initialization without having to catch every error if a swapper has already been added

@elmutt and i discussed this at length. this is basically required for web, unless we add the concept of swappers into plugins and move all existing swappers into plugins.
this is required to allow us to have swapper manager singleton in the client, and deal with feature flags being turned on and off dynamically at runtime.
we could get really fancy on the client side, and use the partitionCompareWith functions that the plugin manager already uses to add chain adapters to avoid this, but given that the swapper manager is dealing with a language-native Map - the language ensures we can't actually add a swapper with the same key again, so adding the same existing swapper is basically a noop, and has the same desired effect.

@elmutt i do wonder if we should return the new swapper on add, vs the old one, such that re-adding is like an upsert?


DRAFT docs: Revise quickstart with code-first approach

This commit revises the quickstart to use an example application and build a pipeline for it by writing bespoke Dagger Functions.
Also see #7196

Made an error while rebasing, closing this and opening https://github.com/dagger/dagger/pull/7326 instead


mesh: failed to persist layer hashes

Description

Many errors on devnet 205 report failed to persist layer hashes:

Layer ID: 2347

It's hard to debug what exactly wasn't found in the DB. There will be a PR that wraps errors to extend their contents. After the PR is merged, we can continue the investigation

PR that adds more context to errors: https://github.com/spacemeshos/go-spacemesh/pull/2855

I couldn't find these logs in the 209, so this probably was fixed. Therefore, I'm closing the issue. However, there's a possibility that we will reopen this if it appears in logs again.


Linux executable. pygame segmentation fault on ubuntu 14.04

I ran into an issue similar to #2034. I created an executable for my kivy 1.9.1 application in python 2.7 using PyInstaller 3.0 in arch linux. The executable runs fine in other arch-based distros but when I try to run it on a Ubuntu 14.04 using the latest nouveau drivers, I get:
Fatal Python error: (pygame parachute) Segmentation Fault
Abortado (imagem do núcleo gravada)

However, if I replace the nouveau drivers with the proprietary nVidia drivers, the app runs. So it seems there's some issue between pygame and nouveau drivers? If so, this is a bit inconvenient, since I wouldn't like to ask users to activate proprietary graphic drivers just for the app.
I should also mention that the app starts by spawning a window, as suggested in the FAQ
from kivy.base import EventLoop
EventLoop.ensure_window()

The pygame providers were deprecated.
Have you tried with sdl2? Check the deps here: https://kivy.org/docs/installation/installation-linux.html#ubuntu-example.
Recompile kivy after the dependencies are installed, and make sure USE_SDL2=1 is there at the start of the compilation log.

So, I recompiled kivy after installing the equivalent sdl2 arch linux packages and the compilation log did show * use_sdl2=1. The app also runs successfully from source after the recompilation. However, using the new packaging instructions for kivy 1.9.1 and above:
from kivy.deps import sdl2, glew

yielded ImportErrors  for both sdl2 and glew. If I use pyinstaller with my previous spec file, which included:
from kivy.tools.packaging.pyinstaller_hooks import get_hooks

and **get_hooks() in Analysis(), PyInstaller seems to finish successfully, but when I try to run the executable in my system I get:
[CRITICAL] [App         ] Unable to get any Image provider, abort.

I'm guessing that I need to provide the sdl2 dependencies to PyInstaller, which should be accomplished with the new packaging instructions that I couldn't complete? I also tried all steps using kivy 1.9.1 and 1.9.2.

I finally managed to create an executable of my app using SDL2 with pyinstaller 3.2 and kivy 1.9.2, but the original problem remains. The app successfully runs in my arch linux system and Ubuntu with proprietary graphics drivers (nvidia in this case), but crashes with a segmentation fault when I switch to the nouveau drivers in Ubuntu. The full log in Ubuntu:
[INFO   ] [Logger      ] Record log in /home/diogo/.kivy/logs/kivy_16-01-19_24.txt
[INFO   ] [Kivy        ] v1.9.2-dev0
[INFO   ] [Python      ] v2.7.11 (default, Dec  6 2015, 15:43:46)
[GCC 5.2.0]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <3.0 Mesa 10.5.9>
[INFO   ] [GL          ] OpenGL vendor <nouveau>
[INFO   ] [GL          ] OpenGL renderer <Gallium 0.4 on NVC1>
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <1.30>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
 /home/diogo/TriFusion/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
segmentation fault (core dumped)

However, the app runs successfully from source, even with the nouveau drivers.

Does it also happen with a sample app, without using mpl etc?

Yes. I created an executable for the touchtracer app in examples/demo and got the same error.
[INFO   ] [Logger      ] Record log in /home/diogo/.kivy/logs/kivy_16-01-19_26.txt
[INFO   ] [Kivy        ] v1.9.2-dev0
[INFO   ] [Python      ] v2.7.11 (default, Dec  6 2015, 15:43:46)
[GCC 5.2.0]
[INFO   ] [Factory     ] 179 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <3.0 Mesa 10.5.9>
[INFO   ] [GL          ] OpenGL vendor <nouveau>
[INFO   ] [GL          ] OpenGL renderer <Gallium 0.4 on NVC1>
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <1.30>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [GL          ] NPOT texture support is available
segmentation fault (core dumped)

Apparently, this was an issue of missing packages in Ubuntu. I had originally installed only the dependencies with SDL2 for ubuntu (https://kivy.org/docs/installation/installation-linux.html#dependencies-with-sdl2), but after installing the dependencies for the development version (https://kivy.org/docs/installation/installation.html#development-version), the executable was up and running. I'm marking this as closed since the original issue was solved, but I'm still puzzled as to why I cannot create a functional executable in Arch Linux (probably some packages that I'm missing..)


Facebook is missing display props  when styling

Checking the other players,
we pass props.display when styling.
on Facebook, we don't pass it.
https://github.com/CookPete/react-player/blob/master/src/players/Facebook.js#L102
example from YouTube (https://github.com/CookPete/react-player/blob/master/src/players/YouTube.js)
    const { display } = this.props
    const style = {
      width: '100%',
      height: '100%',
      display
    }

The display prop is only used for players that support preload config, which doesn't include Facebook.
You can just use <ReactPlayer style={{ display: 'whatever' }} /> and it will be applied to the element that wraps the Facebook player.


Improve Rebindable documentation

Add Params and Returns where appropriate
Turn examples into documented unittests

LGTM. Thanks!

Auto-merge toggled on


Running dockerfile on arm requires a specific netcat

I had the choice between:
netcat-openbsd/stable,stable 1.219-1 armel
netcat-traditional/stable,stable 1.10-47 armel
I am using the first one atm, assuming the extended functionality is required.
Can we make this install specific to one of these packages, assuming this will also work on originally used architecture?

moved from postgresql to sqlite3, netcat dependency (checking is postgresql is up) has been removed


Test cache against latest release in CI

Detect cache incompatibility issues like #2711 by testing against the last version of uv continuously

I'll test homeassistant and choose something prudent for test suite runtime

Yeah, it looks like getting a broader sampling here matters. Things are hunky dory with anyio:
$ uv cache clean && rm -rf .venv
Clearing cache at: /home/andrew/.cache/uv
Removed 41594 files (246.2MiB)

$ uv-0.1.24 venv
Using Python 3.12.0 interpreter at: /home/andrew/.pyenv/versions/3.12.0/bin/python3
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate

$ uv-0.1.24 pip install anyio
Resolved 3 packages in 80ms
Downloaded 3 packages in 23ms
Installed 3 packages in 5ms
 + anyio==4.3.0
 + idna==3.6
 + sniffio==1.3.1

$ uv-0.1.25 pip install anyio --reinstall-package anyio
Resolved 3 packages in 25ms
Installed 1 package in 6ms
 - anyio==4.3.0
 + anyio==4.3.0

But homeassistant lets me repro:
$ uv cache clean && rm -rf .venv
Clearing cache at: /home/andrew/.cache/uv
Removed 41598 files (246.2MiB)

$ uv-0.1.24 venv
Using Python 3.12.0 interpreter at: /home/andrew/.pyenv/versions/3.12.0/bin/python3
Creating virtualenv at: .venv
Activate with: source .venv/bin/activate

$ uv-0.1.24 pip install -q homeassistant

$ uv-0.1.25 pip install -q homeassistant --reinstall-package homeassistant
error: Failed to download and build: pyric==<IP_ADDRESS>
  Caused by: Failed to deserialize cache entry
  Caused by: expected version to start with a number, but no leading ASCII digits were found


Add more instructions

Add instructions on how to clone the repo and starting the docker container

Thanks :D


Using PQL to grab DNS ipaddress

Since joining a domain requires the dns resolver to find the MS DNS records, this requires looking up the ipaddress of the AD DNS server, and then setting it as the DNS server.
This assumes that the AD server for the class always has the certname of adserver.  An alternative would be to do a lookup of a class that only ever gets assigned to the ad server.
Once DSC is fully integrated, it'd be best to use an exported resource from that, but this solves the issue until then.
This also updates the unless to check for the ad ipaddress, since as long as that is there we don't care so much about the rest.

Added validation, a default value, and fixed the syntax, both the missing puppetdb_query and the '.

@binford2k I'm fine with this as long as it's well tested before our next Windows course.
@Nekototori if you're so inclined, I think a better solution would be to roll out the DSC code. It was initially commented out because it depended on an unreleased module, which has now been released. I'm not sure when the EDU team will have time to prioritize that work, probably not this quarter.

I rebased this PR with the master.  Not sure if you want me to do anything with the old commits.  The only one that matters at this point is f12c892b221267cab301dde1fcfd20424e6a1027
Once I was in a classroom environment I traced the whole code and saw it was already dealing with an exported resource, so the issue ended up being how the exec was called, specifically in the classroom environment.  I've updated the exec to apply the ip address of the ad server to all interfaces starting with the name of Ethernet0.


Turn off onClick support by default

Just used this plugin (which is awesome BTW!) on a project where we wanted drag and drop support but not clicking, and made this change to support that. It means you have to pass in supportClick={true} to turn the click support. What do you think? Be happy to change the approach but probably quite useful to be able to customise this stuff?

Oh good idea, but usually on websites where I am able to drag and drop, I am also able to click - so I believe the default should be supportClick={true}.

:+1: Change incoming!

@paramaggarwal all set :)


Add Docker Image yaml workflow

Required a docker image build, run, and push workflow.

i want to try this , can you assign me .

Hi @Abhinavks1405, great. Could you open a PR so that I can review the file and its location?

@SaashaJoshi
i have created a pr .
please tell me if any change is needed .


sorting files by type is wrong

Description
FILES should sort files by type the same as file explorer, putting folders first and then other file types.
Steps To Reproduce
FILES should sort files by type the same as file explorer, putting folders first and then other file types.
Expected behavior
FILES should sort files by type the same as file explorer, putting folders first and then other file types.
Files Version
2.3
Windows Version
w10 21h2 home
Relevant Assets/Logs
debug_fulltrust.log
debug.log
https://user-images.githubusercontent.com/90144967/173606563-634c7991-bbf4-477b-81c4-cee4e661e973.mp4

Thanks for the report. Please confirm that you have not checked the "sort folders alongside files" option.

sorry, the "sort folders alongside files" option was enabled, I disabled it and now it's working as expected.


subsys/testsuite/ztest: create stub headers at CMake configure time

These header stubs seems to be required by the unit_testing board only. Instead of having them in the source, let's remove them and only generate them at CMake configure time.
See also #69442, which relocates these headers instead of having them generated at build

ping - @nashif could you PTAL again? Thanks!

another ping @nashif


Unable to upgrade MSK cluster in-place. Cluster configuration is overly strict by pinning to one kafka version.

On 2020-05-28, AWS updated MSK to allow in-place Kafka version upgrades. This isn't possible with this module because the msk configuration resource has immutable fields that are attempted to be changed, but cannot be changed while the cluster is associated with the msk configuration.
aws_msk_configuration is being set to the specific kafka version that is passed in on initial creation, and it must be recreated when a newer supported Kafka version is passed in.
The kafka_versions list is immutable in an aws_msk_configuration, so destroy/create of the resource is the only option, but this cannot work because the cluster is still associated with the configuration, so it cannot be destroyed. create_before_destroy also doesn't work here because there's no way to orchestrate it in a way where the association of the MKS cluster to the new MSK configuration can complete before the old MSK configuration is destroyed.
I propose:

Not setting the kafka_versions variable to a specific version at all, by setting it to []
Some flag/behavior that you can opt into that has the same effect as (1)

I have same issue.  MSK in-place update when there is changes in msk configuration completes by creating a new revision of configuration but MSK still pinned to the revision that it was created first time.   Please advise.
23:23:33    # module.msk.aws_msk_configuration.this will be updated in-place
23:23:33    ~ resource "aws_msk_configuration" "this" {
23:23:33          arn               = "arn:aws:kafka:eu-west-1:XXXXXXXXXXX:configuration/demonexus-uat-msk-2-6-1/c1307ab1-03ae-4ec5-aeXXXXXXXXX8259d-3"
23:23:33          id                = "arn:aws:kafka:eu-west-1:XXXXXXXXXX:configuration/demonexus-uat-msk-2-6-1/c1307ab1-03ae-4ec5-aeXXXXXXXXXX259d-3"
23:23:33          kafka_versions    = [
23:23:33              "2.6.1",
23:23:33          ]
23:23:33          latest_revision   = 1
23:23:33          name              = "demonexus-uat-msk-2-6-1"
23:23:33        ~ server_properties = <<~EOT
23:23:33              auto.create.topics.enable = true
23:23:33            - default.replication.factor = 2
23:23:33            + default.replication.factor = 3
23:23:33              message.max.bytes = 100000000
23:23:33          EOT
23:23:33      }

It created revision 2 for configuration after this update

Revision number
Description
Creation time

2 (latest)
-
May 18, 2021, 11:27:04 PM GMT+3

1
-
May 7, 2021, 9:36:39 AM GMT+3

But, my MSK still point to revision1.
Cluster configuration
Cluster configuration ARN

arn:aws:kafka:eu-west-1:XXXXXXXXXXXX:configuration/demonexus-uat-msk-2-6-1/c1307ab1-03ae-4ec5-ae1b-XXXXXXXX-3
Cluster configuration name
demonexus-uat-msk-2-6-1
Configuration description
-
Revision
1
Revision description

I opened a PR-11 for this issue-2 , pending approval #https://github.com/angelabad/terraform-aws-msk-cluster/pull/11
@angelabad  @bradonkanyid  @victorcmoura  @andormarkus

@angelabad @bradonkanyid @victorcmoura @andormarkus
Please approve PR

Hi, sorry, but I cant reproduce this error, on this module I dont use configurartion versiones, because of this, I recreate the full configuration and delete prior config, In my computer if I change properties I get something like:
 # module.simple.aws_msk_cluster.this will be updated in-place
  ~ resource "aws_msk_cluster" "this" {
        id                       = "arn:aws:kafka:eu-west-2:342631421827:cluster/simple/5c07d788-791a-4239-b92f-0b3a1c47ce41-3"
        tags                     = {}
        # (10 unchanged attributes hidden)

      ~ configuration_info {
          ~ arn      = "arn:aws:kafka:eu-west-2:342631421827:configuration/simple-2940432070742172855/884bfe18-c47b-485b-85e2-82fe948ba7e4-3" -> (known after apply)
            # (1 unchanged attribute hidden)
        }

        # (3 unchanged blocks hidden)
    }

  # module.simple.aws_msk_configuration.this must be replaced
+/- resource "aws_msk_configuration" "this" {
      ~ arn               = "arn:aws:kafka:eu-west-2:342631421827:configuration/simple-2940432070742172855/884bfe18-c47b-485b-85e2-82fe948ba7e4-3" -> (known after apply)
      ~ id                = "arn:aws:kafka:eu-west-2:342631421827:configuration/simple-2940432070742172855/884bfe18-c47b-485b-85e2-82fe948ba7e4-3" -> (known after apply)
      ~ latest_revision   = 1 -> (known after apply)
      ~ name              = "simple-2940432070742172855" -> (known after apply) # forces replacement
      ~ server_properties = "default.replication.factor = 3" -> "default.replication.factor = 2"
        # (1 unchanged attribute hidden)
    }

  # module.simple.random_id.configuration must be replaced
+/- resource "random_id" "configuration" {
      ~ b64_std     = "simple-KM6DY6bA5Lc=" -> (known after apply)
      ~ b64_url     = "simple-KM6DY6bA5Lc" -> (known after apply)
      ~ dec         = "simple-2940432070742172855" -> (known after apply)
      ~ hex         = "simple-28ce8363a6c0e4b7" -> (known after apply)
      ~ id          = "KM6DY6bA5Lc" -> (known after apply)
      ~ keepers     = { # forces replacement
          ~ "server_properties" = "default.replication.factor = 3" -> "default.replication.factor = 2"
        }
        # (2 unchanged attributes hidden)
    }

And it changes the configuration info arn.
Please could you help me to understand where the error is?
Thanks for your info!

Hi,  In my case, configuration is in-place upgrade and not re-create with some random number in name.
There is fundamentally diff approach here. Just curious if you didn't face issues with this approach in in-place MSK upgrades?
here is the code diff.

Hi @nsvijay04b1, @bradonkanyid I reviewed the code and because of this I create new configuration resource when it changes, because there is a bug on aws provider resource. This bug causes that changes in configuration doesnt trigger change notification, so msk doesn't know about this change. It only knows about it on next apply/refresh, you can see the bug here:

https://github.com/hashicorp/terraform-provider-aws/issues/16719

My workaround to avoid this error is to generate a random id everytime the config changes and genereate new one.
When this bug is resolved I will remove my workaround from this module. I will try to research about the provider bug.
Thanks for your contributions!

I'd request re-opening this issue, as somehow it got taken over by a different issue altogether. My issue wasn't around being able to update configuration in-place, per se, but with upgrading Kafka versions in-place.
Steps to reproduce:

Build an MSK cluster w/ version = 2.7.0, using this module
Change your version to 2.7.1
Try to apply

Looking over this issue again, I think the right thing to do would be to include the kafka version in the random_id keepers, so that a change to kafka_version would generate a new aws_msk_configuration. This would side-step the fact that an MSK configuration's kafka_version is immutable after creation.

  # module.msk.module.msk.aws_msk_configuration.this must be replaced
+/- resource "aws_msk_configuration" "this" {
      ~ arn               = "arn:aws:kafka:us-east-1:436196666173:configuration/msk-test-13535995669164465721/7d1eb4a5-f2dd-424e-a6ea-48ad4e71c495-17" -> (known after apply)
      ~ id                = "arn:aws:kafka:us-east-1:436196666173:configuration/msk-test-13535995669164465721/7d1eb4a5-f2dd-424e-a6ea-48ad4e71c495-17" -> (known after apply)
      ~ kafka_versions    = [ # forces replacement
          - "2.7.0",
          + "2.7.1",
        ]
      ~ latest_revision   = 1 -> (known after apply)
        name              = "msk-test-13535995669164465721"
        # (1 unchanged attribute hidden)
    }

Here's the problem. The configuration sees it needs to change, but random_id has no idea. With create_before_destroy = true, it will attempt to create a new configuration with the same name as the existing configuration, and fail.


rb_cData is deprecated

Hi,
The guide recommends inheriting from rb_cData, but it's been deprecated and will be removed.  Instead we should inherit from rb_cObject.

fixed in 19a8ee0


[HELP NEEDED]  Slow training of DINO DETR

Describe the bug
Original Repo : https://github.com/IDEA-Research/DINO
MLX Port : https://github.com/sachinraja13/DINO_DETR_MLX
Severe performance degradation after 10 iterations is seen - GPU utilisation decreases from 98% to 40% or thereabouts.
When use_dn flag (here) is set to True.
To Reproduce
Set the use_dn flag here to true and run the following on the terminal:
python main.py
--output_dir logs/DINO/R50-MS4 -c config/DINO/DINO_4scale.py
--options dn_scalar=100 embed_init_tgt=TRUE
dn_label_coef=1.0 dn_bbox_coef=1.0 use_ema=False
dn_box_noise_scale=1.0
The config is already set to use synthetic dataset (here) and the code is standalone and does not require any dataset to be tested for performance and execution.
Severe performance degradation after 10 iterations is seen - GPU utilisation decreases from 98% to 40% or thereabouts.
When use_dn flag (here) is set to false, the training goes smoothly with consistent GPU utilisation of 95% or higher.
I use a 64GB M1 ultra Mac Studio.
There seems to be some bottleneck in this code below, which I'm unable to figure out.
def prepare_for_cdn(dn_args, training, num_queries, num_classes, hidden_dim, label_enc):
    """
    MLX adaptation of the prepare_for_cdn function.
    """

    if training:
        targets, dn_number, label_noise_ratio, box_noise_scale = dn_args
        # Double dn_number for positive and negative queries
        dn_number = dn_number * 2
        known = [mx.ones_like(t['labels']) for t in targets]
        batch_size = len(known)
        known_num = [mx.sum(k) for k in known]
        if int(max(known_num)) == 0:
            dn_number = 1
        else:
            if dn_number >= 100:
                dn_number = dn_number // (int(max(known_num) * 2))
            elif dn_number < 1:
                dn_number = 1
        if dn_number == 0:
            dn_number = 1
        unmask_bbox = unmask_label = mx.concatenate(known)
        labels = mx.concatenate([t['labels'] for t in targets])
        boxes = mx.concatenate([t['boxes'] for t in targets])
        batch_idx = mx.concatenate([mx.full(t['labels'].shape, i) for i, t in enumerate(targets)])
        known_indice = mx.arange(unmask_label.shape[0])
        known_indice = mx.tile(known_indice, (2 * dn_number,)).flatten()
        known_labels = mx.tile(labels, (2 * dn_number,1)).flatten()
        known_bid = mx.tile(batch_idx, (2 * dn_number,1)).flatten()
        known_bboxs = mx.tile(boxes, (2 * dn_number, 1))
        known_labels_expaned = mx.array(known_labels)
        known_bbox_expand = mx.array(known_bboxs)
        if label_noise_ratio > 0:
            p = mx.random.uniform(shape=known_labels_expaned.shape)
            new_label = mx.random.randint(0, num_classes, shape=known_labels_expaned.shape)
            known_labels_expaned = mx.where(p < (label_noise_ratio * 0.5), known_labels_expaned, new_label)

        single_pad = int(max(known_num))
        pad_size = int(single_pad * 2 * dn_number)
        positive_idx = mx.arange(len(boxes)).astype(mx.int32)  # Equivalent to torch.tensor(range(len(boxes))).long()
        positive_idx = mx.tile(positive_idx[None, ...], (dn_number, 1))  # Equivalent to repeat(dn_number, 1)

        # Adjust based on dn_number
        positive_idx += (mx.arange(dn_number).astype(mx.int32) * len(boxes) * 2).reshape(-1, 1)  # Equivalent to torch addition

        # Flatten the positive_idx
        positive_idx = positive_idx.flatten()

        # Calculate negative_idx
        negative_idx = positive_idx + len(boxes)

        if box_noise_scale > 0:
            known_bbox_ = mx.zeros_like(known_bboxs)
            known_bbox_[:, :2] = known_bboxs[:, :2] - known_bboxs[:, 2:] / 2
            known_bbox_[:, 2:] = known_bboxs[:, :2] + known_bboxs[:, 2:] / 2
            diff = mx.zeros_like(known_bboxs)
            diff[:, :2] = known_bboxs[:, 2:] / 2
            diff[:, 2:] = known_bboxs[:, 2:] / 2
            sign_choices = mx.array([-1.0, 1.0])
            rand_sign = sign_choices[mx.random.categorical(mx.array([0.5, 0.5]), shape=known_bboxs.shape)]
            rand_part = mx.random.uniform(shape=known_bboxs.shape)
            rand_part[negative_idx] += 1.0
            known_bbox_ = mx.clip(known_bbox_ + rand_sign * rand_part * diff * box_noise_scale , 0.0, 1.0)

            known_bbox_expand[:, :2] = (known_bbox_[:, :2] + known_bbox_[:, 2:]) / 2
            known_bbox_expand[:, 2:] = known_bbox_[:, 2:] - known_bbox_[:, :2]

        input_label_embed = label_enc(known_labels_expaned)
        input_bbox_embed = inverse_sigmoid(known_bbox_expand)

        padding_label = mx.zeros((pad_size, hidden_dim))
        padding_bbox = mx.zeros((pad_size, 4))

        input_query_label = mx.tile(padding_label, (batch_size, 1, 1))
        input_query_bbox = mx.tile(padding_bbox, (batch_size, 1, 1))
        if len(known_num):
            map_known_indice = mx.concatenate([mx.arange(num) for num in known_num])  # [1,2, 1,2,3]
            map_known_indice = mx.concatenate([map_known_indice + single_pad * i for i in range(2 * dn_number)])
        if len(known_bid):
            input_query_label[known_bid, map_known_indice] = input_label_embed
            input_query_bbox[known_bid, map_known_indice] =  input_bbox_embed

        tgt_size = pad_size + num_queries
        attn_mask = mx.ones((tgt_size, tgt_size))

        attn_mask[pad_size:, :pad_size] = True
        for i in range(dn_number):
            if i == 0:
                attn_mask[single_pad * 2 * i:single_pad * 2 * (i + 1), single_pad * 2 * (i + 1):pad_size] = True
            if i == dn_number - 1:
                attn_mask[single_pad * 2 * i:single_pad * 2 * (i + 1), :single_pad * i * 2] = True
            else:
                attn_mask[single_pad * 2 * i:single_pad * 2 * (i + 1), single_pad * 2 * (i + 1):pad_size] = True
                attn_mask[single_pad * 2 * i:single_pad * 2 * (i + 1), :single_pad * 2 * i] = True

        dn_meta = {
            'pad_size': pad_size,
            'num_dn_group': dn_number,
        }

        dn_meta = {'pad_size': pad_size, 'num_dn_group': dn_number}
    else:
        input_query_label, input_query_bbox, attn_mask, dn_meta = None, None, None, None

    return input_query_label, input_query_bbox, attn_mask, dn_meta

Will greatly appreciate any help in this regard. Thanks!

Adding mx.eval(model, optimiser.state) in the engine.py file after every iteration gets the training going. However, when use_dn flag is set to True, memory consumption goes up to ~46 GB from ~20GB which is the case when use_dn flag in config is set to False. This jump in memory is not explained by the extra arrays required in the prepare_for_cdn function above.

Hi @awni :
Looks like following piece of code in the function prepare_for_cdn  is the culprit for memory inflation:
        Input_label_embed = label_enc(known_labels_expaned)
        input_bbox_embed = inverse_sigmoid(known_bbox_expand)
        padding_label = mx.zeros((pad_size, hidden_dim))
        padding_bbox = mx.zeros((pad_size, 4))

        input_query_label = mx.tile(padding_label, (batch_size, 1, 1))
        input_query_bbox = mx.tile(padding_bbox, (batch_size, 1, 1))
        if len(known_num):
            map_known_indice = mx.concatenate([mx.arange(num) for num in known_num])  # [1,2, 1,2,3]
            map_known_indice = mx.concatenate([map_known_indice + single_pad * i for i in range(2 * dn_number)])
        if len(known_bid):
            input_query_label[known_bid, map_known_indice] = input_label_embed
            input_query_bbox[known_bid, map_known_indice] =  input_bbox_embed

I'm unsure what is it that I'm doing wrong here. Just FYI, label_enc is an nn.Embedding layer that I have passed to function prepare_for_cdn. When I comment the lines above, the memory use remains stable at below 20GB. On uncommenting, memory utilisation goes upto ~46GB.

Changing this function to be a call function of a new class extending mlx.nn.Module solved the problem, but it would be great to know why that is the case.

This got fixed after compiling the forward pass. Memory is now constant during training ~12GB. Closing.


MLSUM

@sasaadi Thanks for this PR! Could you split up your changes into individual PRs (e.g., one for each newly added task and separate ones for the model changes)? Otherwise, things get confusing.


[VL] duplicate sort in window op

Describe the bug
Rows are sorted twice in  orderBy op and window op (https://github.com/facebookincubator/velox/blob/main/velox/exec/Window.cpp#L242). In spark, planner would take care the partitioning and sortting for window op. The window op only calculates and outputs (windowed) aggregates over the rows in a single (sorted) partition. So, the second sort in window op should be skipped.
Before:

After:

cc @zhouyuan , thanks.

@zhli1142015 Thanks for this patch! Indeed it's not necessary, looks like we missed this when implemented Window operator
-yuan


Alternate Pickers?

I opted to use telescope as a default since it's probably the most popular, but I know that there's also:

https://github.com/ibhagwan/fzf-lua
https://github.com/echasnovski/mini.pick?tab=readme-ov-file

It probably wouldn't be much work to refactor a bit and allow for selectable pickers? Not super familiar with Lua but I think we could do that and let users choose their dependency?
Will look into this.
If anyone is interested in a particular direction let me know.

@Ukesh-dev What picker would you prefer most?


Fixed typo

Fixed typo

@JackStromberg : Thanks for your contribution! The author, @cherylmc, has been notified to review your proposed change.

#sign-off


Settings button/link

Add settings icon in top right to take user to a management page, with the ability to add/edit/delete person entries. May add additional settings there. Should require a login. DB login would suffice.
Hopefully doesn't clutter main interface.

Perhaps we should load names/extensions from CSV? Makes implementation and editing a lot simpler, and farms out the data curation to text file. We simply clear table and insert values from file each time.
Would need to clear statuses when importing so people don't end up with old/unrelated statues.

Edit page header text on settings page, store in settings table.

Setting idea: Select between extension URL prefix in settings page. Allow choice of 'sip:', 'tel:' (used by skype, etc) or 'mailto:'. Change 'Ext' column to 'Contact'.

Implemented basic settings page with login step (default password is 'admin').

Made some changes to settings table while doing this.

I don't see the need for the delete option. Do we really want people to be able to delete an entire setting? Perhaps a 'clear' option, although I think 'edit' would suffice, if they want to clear it they can save an empty text box, as empty values are not really encouraged.
Key field should not be editable.
Deleting the entire row has potential to break the software, which it did when I deleted the SettingsPassword key.

So the settings will all be predefined, just the values editable?

I think so. When would they need to be editable? That's why i never included the key column initially, expected to rely on the Id column to identify the setting.

Ditched the delete option.

Oh should prob ditch the new button, too.

Ditched it.

I think the cog button should go, and we go for a 'settings' link bottom right under the table? same line as the version number etc?

Cool.

Done.

Settings link is fine. No need for further work here.


Type error for enums with string values

Since TypeScript 2.4 enums can have string literal values.
[https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-4.html](TypeScript changelog)
But Typedoc fires the following message:
[11:52:16] c:/Projekte/HolterOnline/TypeScript/src/enums/DokumentTyp.ts(9)
 Type '"promotion"' is not assignable to type 'DokumentTyp'.

Content of DokumentTyp.ts is as follows:
export enum DokumentTyp {
    Aktion = "promotion",
    Katalog = "catalog",
    Preisliste = "pricelist",
    Ersatzteile = "spareparts",
    Prospekt = "flyer",
    Handbuch = "manual",
    Datenblatt = "datasheet",
    Zertifikat = "certificate",
    Werkszeugnis = "factory_certificate",
    Sicherheitsdatenblatt = "material_safety_data_sheet",
    Anleitung = "instruction",
    Leistungserklärung = "declaration_of_performance",
    Präsentation = "presentation",
    Sonstiges = "other"
}

TypeScript compiles without errors, but Typedoc cannot generate the documentation.
Am I doing something wrong, or is this some missing feature in Typedoc?
I'm running Typedoc in gulp via gulp-typedoc.

Related to #599

This seems to work correctly in 0.9.0 for me, what version are you using?

Currently 0.7.2
I'm gonna update immediately

Thank you, in 0.9.0 this issue doesn't exist.
Sorry for wasting your time. Have a nice day 👍


SAK-33562 honor p check

@ern ?

Hi Dave, I recall on that page your only viewing it and it made sense to show it as disabled, what is your feeling on that?

https://jira.sakaiproject.org/secure/attachment/48612/SAK-33562-1.png (1, text)
https://jira.sakaiproject.org/secure/attachment/48613/SAK-33562_disabled.png (disable, no text) :(


Task Viewer: Image hint not centered

In contrast to textual hints, image hints are not centered in task viewer

Done on dev!


Verify email change for individual

When an individual changes their email on their Communication and consultation preferences page or the Communication and consultation section of their public page, their new email address needs to be verified.

https://www.figma.com/file/AXufBnFAVHvGdsxnQMVhNF/The-Accessibility-Exchange-Wireframes?node-id=2308%3A62005
https://www.figma.com/file/AXufBnFAVHvGdsxnQMVhNF/The-Accessibility-Exchange-Wireframes?node-id=3635%3A98597


Create Responsiveness

i'm doing that

Hey @jessuircleydson,
Just to make it responsive.
I guess that tonight i'll be free to do more

Hey @jessuircleydson,
Will you still help me with portfolio responsiveness? I realized that the footer is still not responsive on PR https://github.com/interaminense/react-portfolio-behance/pull/12

hey @interaminense. yes i will.
I couldn't see everything in the first time, but i have a time now


run_once pre_upgrade tasks which are executing in localhost

The preinstall/pre_upgrade tasks are executing in localhost in that sense it is not necessary to run more than once this tasks.

ci check this

@Atoms could I get error why this is failing?

it was stuck with not authorized, i manually retried now.


Is it possible to unsubscribe from events?

Is it possible to unsubscribe from events? How?

There is currently no way to unsubscribe from events but maybe we can put it in the library.
What is your use case?

I'm trying to write code that launches specific applications in specific containers. It appears the only way to do that is to wait for the application window to open (by listening for the window::new event) and then move on to the next workspace/container. But once the window is open, I no longer need to listen for that event. It's not a problem from my end; I can quit out of the loop. But I wonder if i3 has a list of listeners somewhere in memory that should be cleaned up.

There is no way to cleanly unsubscribe from the i3 ipc events themselves so the best I could do for you is to make your handler no longer notify. If you want that, you would have to make an issue with the i3 project.
This means the library would still receive and process any event for the window event but no notifiers would be triggered.
If you want to clean up the connection to the ipc, destroy the Connection instance itself.

That's helpful, thanks.


[Bug] - Focused item is switched unexpectedly in popup list

Insomnia Version: 6.5.4
Operating System: Windows 10

I ordinary use Insomnia for GraphQL. When I write query, I use the Crtl+Space combination to see popup with possible query fields. If I start navigating in the list using arrows at the same time, focus is reset on first list item after one or two seconds. If I wait for some seconds before navigating, this problem is not reproduced. This is a minor bug but it's very annoying.

I'm pretty sure there is another issue around here for this. I haven't been able to reproduce it on my end, which is why it has not yet been fixed.
...
Found it: https://github.com/getinsomnia/insomnia/issues/1015


[UI] Update default Oracle Linux Version (OL 7.7 is purged) in OCI driver (2.4 branch)

What kind of request is this (question/bug/enhancement/feature request):
feature request
Steps to reproduce (least amount of steps as possible):
For OCI Driver:

Open your Node Templates in Rancher UI
Add a new Template and Select Oracle Cloud Infrastructure
In the Image drop-down list, notice that "Oracle Linux 7.8" is not listed.

Result:
Provisioning an OCI cluster with "Oracle Linux 7.7" fails due to error "Oracle Linux 7.7" image is not found.
Other details that may be helpful:
We shouldn't need to make these types up manual updates if the PR to fetch values like these was back-ported to the 2.4 branch.
Environment information

Rancher version: v2.4.8 (using rancher/rancher:latest)
Installation option (single install/HA): single

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported):
Machine type (cloud/VM/metal) and specifications (CPU/memory):
Kubernetes version (use kubectl version):

(paste the output here)

Docker version (use docker version):

(paste the output here)

The bug is reproduced with Rancher server rancher\rancher:2.4.8
Steps:
Create a node template for Oracle Cloud Infrastructure
See Oracle-Linux-7.7 as the only default option

Create a cluster using the node template
Result:
Cluster creation fails with:
Error with pre-create check: "could not retrieve image id for an image named Oracle-Linux-7.7"; Timeout waiting for ssh key

The bug is seen with Rancher server rancher\rancher:2.4-head version eb990af
Steps:
Create a node template for Oracle Cloud Infrastructure
See Oracle-Linux-7.8 as the only default option

Create cluster using the node template
Result:
Cluster creation fails with:
Error with pre-create check: "could not retrieve image id for an image named Oracle-Linux-7.7"; Timeout waiting for ssh key

Reopening for a fix as well as one in 2.5-head and master-head.

@aaronRancher Can you make a separate issue for 2.5/master?
There should be 1 issue for 2.5/master and 1 for 2.4.

Anything I can do to help?
HEAD on the 2.4-fixes branch already has the fix.
master and 2.5-fixes no longer maintains a static map for these types of values and instead pulls them in dynamically.

@jlamillan Did this work on your test environment? It's not working in our QA environment and still pulling the wrong ID.

Out of the box, the v2.4.8 node template wizard only offers Oracle Linux 7.7.
I have to update the the ui-index setting (from local) to https://releases.rancher.com/ui/latest-2.4/index.html to pick up the UI fix from the 2.4-fixes.

The dynamic fetch from OCI API fix for 2.5-head and master-head was done in this issue: https://github.com/rancher/rancher/issues/27051
From the dropdown value perspective, this has been fixed. Unfortunately we are still seeing the same error when trying to provision a cluster with Oracle-Linux-7.8. We will track the error specifically in this issue: https://github.com/rancher/rancher/issues/29503
Will close this issue once we are able to provision a healthy cluster with OL 7.8.

Yeah, it's a little confusing.
Even when the UI offers Oracle-Linux-7.8, version 1.0.0 of the Docker machine driver for OCI does an explicit look up of the Oracle-Linux-7.7 image ID in its  PreCreateCheck(), which is the root cause of the Error with pre-create check above.
Updating the driver to v1.0.1 in combination with the UI populating Oracle-Linux-7.8 will resolve the issue.

Closing issue, as cluster can be provisioned with the correct version. Tracked in this issue: https://github.com/rancher/rancher/issues/29503#issuecomment-708765091


What is the role of masks？ Why do I get all the mask values of 0？

Please be more specific, I am not sure about what the question is

Closing this for now, please reopen if needed


Cannot use drill-by/drill-to  without can explore on Superset permission

Bug description
A end-user should be able to drill-by/drill-to with 2 permissons:

can read on Explore
can samples on Datasource

Currently can explore is mandatory but it gives too many privileges ( see query, open chart,...)
How to reproduce the bug
Create a user have only the permissions:

can read on Explore
can samples on Datasource

this user can't drill down.
Screenshots/recordings
No response
Superset version
3.1.2
Python version
3.10
Node version
16
Browser
Not applicable
Additional context
No response
Checklist

[X] I have searched Superset docs and Slack and didn't find a solution to my problem.
[X] I have searched the GitHub issue tracker and didn't find a similar bug report.
[X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Hi Guys,
Any update on this?

I have the same problem, the end user cannot see the drill options without the can explore on superset permission

I have the same problem here: I can enable drill to detail by adding the can read on Explore and can samples on Datasource permissions. However, it's noted that the can explore permission is currently mandatory but gives too many privileges.
menu (In red what I don't need)

drill to detail

Cannot use drill-by/drill-to without can explore on Superset permission #27900
chore: Add granular permissions for actions in Dashboard #27029
Slack thread

Hmm... pinging @michael-s-molina in case he has any input here. Maybe we need to migrate to a more explicit permission?

This remains a pain point. I want to give the Gamma user permission to drill-by and drill-to-detail. Right now in 4.0.2 I'm giving them:

can explore on Superset
can samples on Datasource
can write on DashboardFilterStateRestApi
can write on ExploreFormDataRestAPI <-- this one was necessary for drill-by, specifically
all datasource access on all_datasource_access  <-- without this, things work but there are error messages both as toast and in the drill to detail view

This seems to have done it.  As others note, can explore on Superset is too broad as it lets the user see the query and edit the chart.  And all datasource access on all_datasource_access seems like overkill too, especially because I believe it's only getting rid of error messages and there's no reason it's really needed?
My ideal fixes would be:

break the can explore on Superset permission into a more granular package
if those error messages are misleading or erroneous, squash them so we don't need to invoke all datasource access


Osmand Maps updates - OsmAnd equivalent for iOS

OsmAnd Maps now supports adding waypoints.  Waiting for verification from another collaborator, and determine whether OsmAnd 2 guide needs updating.

Closing as stale. There have been many changes and a champion to monitor this module would be welcome. Can be opened then.


在debian:jessie上安装错误

python版本
root@618a2a9f4dd7:/# python -V
Python 2.7.9

执行pip install webssh出现下面的错误
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_files
    req_to_install.extras):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2630, in _compute_dependencies
    common = frozenset(reqs_for_extra(None))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2627, in reqs_for_extra
    if req.marker_fn(override={'extra':extra}):
  File "/usr/lib/python2.7/dist-packages/_markerlib/markers.py", line 113, in marker_fn
    return eval(compiled_marker, environment)
  File "<environment marker>", line 1, in <module>
NameError: name 'platform_system' is not defined

Storing debug log for failure in /root/.pip/pip.log

https://github.com/huashengdun/webssh/issues/78

升级pip和setuptools
pip install --upgrade pip
pip install --upgrade setuptools