Incorporated black and flake8

Hi,
I have incorporated black code formatter and flake8 linter. Also the entire code based is updated so that most of the issues observed while running black and flake8 were removed.
Please review.
Thanks and Regards,
Sasikanth

To reopen pull request to master branch


Add Connect protocol implementation

Once all the prefactoring in #212 lands, it doesn't take much to add an
implementation of the Connect protocol: protocol_connect.go clocks in at just
809 lines of Go. Clients default to using the Connect protocol, and handlers
automatically support it.

Thanks for the explanation!

Most of the test coverage for this repo is protocol-independent - see TestServer in connect_ext_test.go. It doesn't show up in this diff though - none of it needed to change. There's always more cases we can add though :)
We shouldn't be relying on crosstest for anything that can be tested without a gRPC-Go dependency. Any bugs we've found with crosstest have had pure-connect regression tests added here as part of the fix.


TfServing is not Support neural-compressor directly, If I need to use docker build from Tfserving source code?

I want to run a PTQ model in tferving, but Tfserving not support directly,  If I need to use docker build from Tfserving source code?
my env:
tensorflow 2.7
tfserving 2.7.0-gpu

we didn't evaluate such feature. will have a look on that. thanks for the feedback

No feed back in 2 weeks, closed at first.


Try new StyleCI

Q
A

Is bugfix?
✔/❌

New feature?
✔/❌

Breaks BC?
✔/❌

Fixed issues
comma-separated list of tickets # fixed by the PR, if any

Isn't there a preset that would fit best?

Nope.


Fails with Gradle 4.9

When attempting to use the gradle-offline-dependencies-plugin with Gradle 4.9 I get the following error:

groovy.lang.GroovyRuntimeException: Could not find matching constructor for: org.gradle.internal.component.external.model.DefaultModuleComponentIdentifier(java.lang.String, java.lang.String, java.lang.String)
at io.pry.gradle.offline_dependencies.UpdateOfflineRepositoryTask$_collectRepositoryFiles_closure4.doCall(UpdateOfflineRepositoryTask.groovy:135)
at com.sun.proxy.$Proxy59.accept(Unknown Source)
at io.pry.gradle.offline_dependencies.UpdateOfflineRepositoryTask.collectRepositoryFiles(UpdateOfflineRepositoryTask.groovy:133)
io.pry.gradle.offline_dependencies.UpdateOfflineRepositoryTask.withRepositoryFiles(UpdateOfflineRepositoryTask.groovy:310)
io.pry.gradle.offline_dependencies.UpdateOfflineRepositoryTask.run(UpdateOfflineRepositoryTask.groovy:57)

yep, can confirm it does not work with gradle 4.9 onwards.
Can you go around using internal api for this?
I actually had some discussion with the gradle team about this at https://github.com/gradle/gradle/issues/5950. It is wether or not this should be better supported by core gradle. You plugin should not require internal api. Otherwise I'd open a ticket at Gradle about it.

Appears to be broken due to: https://github.com/gradle/gradle/commit/cb8d1762066084109168ceabbc50cb98869e889f which modifies the  DefaultModuleComponentIdentifier constructor.
The naive fix is to use DefaultModuleIdentifier, but this would break compatibility with Gradle releases prior to 4.9.

Any update on this?
Our project (Apache Beam) uses updateOfflineRepository, and are broken with Gradle 4.9: BEAM-5631. Our workaround is to downgrade to Gradle 4.8 before running this task.

Hoping for a fix to this! Any update?

Sorry for the delay, haven't had much time to work on the project over the last few months.
I have released version 0.5.0 of the plugin which has been tested with Gradle 5.1 and it seems to work now. Please let me know if the issue is resolved for you guys as well.


[BUG][1.20.1][1.2.2d] Completely evaporates the tab content of some mods from existence.

You asked for help testing the mod, welp, here ya go:
Describe the bug
Simply installing this mod will completely remove the majority of items from some modded tabs.
To Reproduce
Steps to reproduce the behavior:

For example, download the Create Mod and some of it's addons.
Download MoreCreativeTabs-combo-1.20-1.2.2d
Go to the Create Mod tab.
See how almost everything is missing.

Expected behavior
For items to not get yeeted out of existence.
Versions (DO NOT USE "LATEST"! I STEAL YOUR KNEE CAPS!):

Minecraft Version: 1.20.1
Modloader: NeoForge
Mod Loader Version: 47.1.100
Mod Version: 1.2.2d

Screenshots
As you can see, the majority of items are missing. There are not even enough present to scroll through.

Sigh... NeoForge... The one modloader this mod was never tested on....
I honestly don't know what to do with this mod anymore. It was so nice pre 1.20, and then mojang came and destroyed it all to the point where it's almost completely useless 😔
Seems like this will be one of those mods where we have to decide on only supporting a single mod loader, and making sure it works perfectly on that one, as forge/neoforge seem to be the biggest issues at this moment.
If anyone out there is willing to help to try and safe this mod, please, please help me.
Thanks for the feedback. Glad a release wasn't made after the PR was merged, as it would've only made things worse, instead of better

I suggest you focus on either NeoForge or Fabric. NeoForge seems to be the most promising one atm, as it derives from Forge, the one modloader that has the most modpacks made for it. (therefore there would be more people in need of a mod like yours) However, if you decide to focus on Fabric, we will hopefully be able to run it on NeoForge too by using Sinytra Connector.

Yeah, I understand, modding is tough!
Don't overthink it, that would make it more complex.
Take ur time :D

HEY HEY HEY HOLD UP WAAAIT!!!
I may have screwed up a little. I wanted to make sure that it wasn't another mod conflict causing this and guess what... Thankfully, it appears that one of the Create addons is the culprit. Your mod seems to be completely fine. I will test a little bit more to see whether similar issues arise with More Creative Tabs, as there were only a few tabs affected.
I AM SORRY!

Yeah, I had updated some Create addons at the same time I downloaded this mod and thought that it was causing this. There are no such issues in MoreCreativeTabs, sorry!


Y-axis scales not showing

Issue
I have managed to integrate Chart.js library with the project that I am working on that uses prototype library.
But when I try to draw a bar chart with the code that I have put it below it shows the chart with x-axis tables, individual bars with count and tool tip and all. But y-axis scales are not showing.
Expected Behavior
Y-axis scales should be shown
Current Behavior
Y-axis scales not showing
Possible Solution

Steps to Reproduce (for bugs)
var xvalues =['1930-1939, '1940-1949','1950-1959','1960-1969', '1970-1979','1980-1989','1990-1999','2000-2009','2010-2019'];
var yvalues =[3,0,0,0,1,153,1041,1313,850];
var title = '1930-2019 (decades)';
var backgroundColor ='teal';
var borderColor = 'teal';
$j(window).load(function() {
	var canvas = document.getElementById('canvas');
	var ctx = canvas.getContext('2d');
	var barPercentage = ((canvas.width / xvalues.length) / 100);

	var barChart = new Chart(ctx, {
	    type: type,
	    data: {
	        labels: xvalues,
	        datasets: [{
	            label: '',
	            data: yvalues,
	            backgroundColor: backgroundColor,
	            borderColor: borderColor,
	            borderWidth: 1
	        }]
	    },
	    options: {
	        scales: {
	            yAxes: [{
	                ticks: {
	                    beginAtZero: true,
	                    display: true
	                },
	                gridLines: {
	                	display: true
	                }
	            }],
	            xAxes: [{
	                // Change here
	            	barPercentage: barPercentage,
	            	ticks: {
	                    display: true //this will remove only the label
	                },
	                gridLines: {
	                	display: true
	                }
	            }]
	        },
	        legend : {
	           display: false
	        },
	        title: {
	        	display: true,
	        	text: title
	        },
	        hover: {
	            onHover: function(e) {
	               var point = this.getElementAtEvent(e);
	               if (point.length) e.target.style.cursor = 'pointer';
	               else e.target.style.cursor = 'default';
	            }
	         }
	    }
	});

Context
I am trying to use Chart.js version 2.8.0 and trying show a bar chat with date ranges on x-axis and count on y-axis. Graph is showing with x-axis scales , bars tool tips and all. But y-axis scales are not showing.
Environment

Chart.js version: 2.8.0
Browser name and version: Version 12.1 (146<IP_ADDRESS>.4)

I have attached the output that shows y-axis with no scale labels.

Your example is invalid code that won't run. '1930-1939 is missing an end quote. Once that is fixed it works fine with the y-axis showing. The bug is likely in some other piece of code you have not included here


CASMREL-1046 kdump overview and test plan

Description

This provides a new section that describes kdump, its usage, and various test plans to use against it.
Checklist Before Merging

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[x] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport main


Sinhala courses (Youtube videos) added

What does this PR do?
Add resource(s)
For resources
Description
Added Udith Sanjaya's tutorials of HTML, CSS, Python, Javascript and Bootstrap,
Added React js tutorial of Code with Bunchi
Why is this valuable (or not)?
Those are popular Youtube playlists videos that native Sinhalese use to learn the programming
How do we know it's really free?
Because they are available on Youtube
For book lists, is it a book? For course lists, is it a course? etc.
Checklist:

[X ] Read our contributing guidelines.
[X] Search for duplicates.
[X] Include author(s) and platform where appropriate.
[X] Put lists in alphabetical order, correct spacing.
[X] Add needed indications (PDF, access notes, under construction).
[X] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

Thanks, and welcome to free-programming-books!


fix: Change rpc URL domain

Reported at https://discord.com/channels/955773041898573854/1182427601046884352/1282067787845730304
we've just had a report that the proposals are showing "hasn't started" even though the users have already voted and the proposal already started.
https://snapshot.box/#/sn:0x07bd3419669f9f0cc8f19e9e2457089cdd4804a4c41a5729ee9c7fd02ab8ab62/proposal/5

How to test: Go to the proposal http://localhost:8080/#/sn:0x07bd3419669f9f0cc8f19e9e2457089cdd4804a4c41a5729ee9c7fd02ab8ab62/proposal/5
You should see that proposal is active

Jumping back on this one, seems like we also have the rpc.brovider.xyz domain, which is used on some other repo like stamp.
Which one is the real one ?

Afaik we removed rpc.brovider.xyz because it was being blocked by some browsers.


Undefined method 'gmtime' for DateTime

I get the following error when checking remember me:
undefined method `gmtime' for Mon, 26 Dec 2011 22:58:58 -0500:DateTime
It appears to be related to the content of the cookie. The Time class has a gmtime method, but not DateTime. I am running Rails 3.0.9 and mongoid 2.0.2.
Here is the full stack trace, although it isn't very helpful:
rack (1.2.3) lib/rack/utils.rb:184:in set_cookie_header!' actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:205:in block in write'
actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:205:in each' actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:205:in write'
actionpack (3.0.9) lib/action_dispatch/middleware/cookies.rb:305:in call' actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:46:in block in call'
activesupport (3.0.9) lib/active_support/callbacks.rb:416:in _run_call_callbacks' actionpack (3.0.9) lib/action_dispatch/middleware/callbacks.rb:44:in call'
rack (1.2.3) lib/rack/sendfile.rb:107:in call' rack (1.2.3) lib/rack/static.rb:33:in call'
sass (3.1.2) lib/sass/plugin/rack.rb:54:in call' actionpack (3.0.9) lib/action_dispatch/middleware/remote_ip.rb:48:in call'
actionpack (3.0.9) lib/action_dispatch/middleware/show_exceptions.rb:47:in call' railties (3.0.9) lib/rails/rack/logger.rb:13:in call'
rack (1.2.3) lib/rack/runtime.rb:17:in call' activesupport (3.0.9) lib/active_support/cache/strategy/local_cache.rb:72:in call'
rack (1.2.3) lib/rack/lock.rb:11:in block in call' <internal:prelude>:10:in synchronize'
rack (1.2.3) lib/rack/lock.rb:11:in call' actionpack (3.0.9) lib/action_dispatch/middleware/static.rb:30:in call'
hoptoad_notifier (2.4.11) lib/hoptoad_notifier/user_informer.rb:12:in call' railties (3.0.9) lib/rails/application.rb:168:in call'
railties (3.0.9) lib/rails/application.rb:77:in method_missing' railties (3.0.9) lib/rails/rack/debugger.rb:21:in call'
railties (3.0.9) lib/rails/rack/log_tailer.rb:14:in call' rack (1.2.3) lib/rack/content_length.rb:13:in call'
rack (1.2.3) lib/rack/chunked.rb:15:in call' thin (1.2.11) lib/thin/connection.rb:84:in block in pre_process'
thin (1.2.11) lib/thin/connection.rb:82:in catch' thin (1.2.11) lib/thin/connection.rb:82:in pre_process'
thin (1.2.11) lib/thin/connection.rb:57:in process' thin (1.2.11) lib/thin/connection.rb:42:in receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in run_machine' eventmachine (0.12.10) lib/eventmachine.rb:256:in run'
thin (1.2.11) lib/thin/backends/base.rb:61:in start' thin (1.2.11) lib/thin/server.rb:159:in start'
rack (1.2.3) lib/rack/handler/thin.rb:14:in run' rack (1.2.3) lib/rack/server.rb:217:in start'
railties (3.0.9) lib/rails/commands/server.rb:65:in start' railties (3.0.9) lib/rails/commands.rb:30:in block in <top (required)>'
railties (3.0.9) lib/rails/commands.rb:27:in tap' railties (3.0.9) lib/rails/commands.rb:27:in <top (required)>'
script/rails:6:in require' script/rails:6:in '

I can confirm that this error has resurfaced with Rails 4 and Mongo and yes, as hoang1417 said, changing all User fields to Time instead of DateTime seems to fix it.

Does anyone still experience this problem? I've tried to reproduce it, but I can't - for more than 3 years already, Sorcery defines time fields using Time instead of DateTime class. Also, Rails wraps it into ActiveSupport::TimeWithZone class, which also has gmtime method defined.
Any idea how to reproduce the issue?

I have to say that the model I was using for User I coded it myself at hand and those fields were set to DateTime because I defined them that way. That is not a Devise issue that I know.
Setting them manually to DateTime did trigger the error though when I tried to log in with the "remember me" check box active.

@arnvald, I didn't see this issue in Sorcery, just my solution for same issue from other gems (thought it may help someone). Then if Sorcery already defines time fields using Time, it won't be issue anymore, I think.


[Feature Request] Support collecting all used tables in a SQL

To enhance our database system, we should introduce a feature that allows users to collect all the tables referenced within a SQL statement.

@earayu Could you please elaborate on the task in more detail? I'd like to try it as my first task in wescale, thanks :)

@BruceAko Hi there,
I apologize for any confusion caused. The issue you mentioned has been resolved, but it appears it wasn't closed properly. Thank you for bringing this to our attention!
We appreciate your involvement and your help in keeping our project's issue tracker up-to-date. If there's anything else related to this issue that needs discussion or you have further questions, please feel free to let us know. Otherwise, I will close this issue now to reflect its resolved status.
Thanks again for your contribution!


Backends

So far, we've used the BitField .authentication_methods on Realm
for tracking which backends are enabled for an organization. This
however made it a pain to add new backends (requiring altering the
column and a migration - particularly troublesome if someone wanted to
create their own custom auth backend for their server).
Instead this will be tracked through the existence of the appropriate
rows in the RealmAuthenticationMethods table.
To give an example, with this new design adding a custom backend requires just a simple diff like this:
diff --git a/zproject/backends.py b/zproject/backends.py
index ade8e1252d..68d84f1989 100644
--- a/zproject/backends.py
+++ b/zproject/backends.py
@@ -427,6 +427,34 @@ def check_password_strength(password: str) -> bool:
     return True

+def custom_auth_enabled(realm: Optional[Realm] = None) -> bool:
+    return auth_enabled_helper(["Custom"], realm)
+
+
+class CustomAuthBackend(ZulipAuthMixin):
+
+    name = "custom"
+
+    @rate_limit_auth
+    @log_auth_attempts
+    def authenticate(
+        self,
+        request: HttpRequest,
+        *,
+        username: str,
+        password: str,
+        realm: Realm,
+        return_data: Optional[Dict[str, Any]] = None,
+    ) -> Optional[UserProfile]:
+        if not custom_auth_enabled(realm):
+            return None
+
+        if password == "topsecret":
+            return common_get_active_user(username, realm, return_data)
+
+        return None
+
+
 class EmailAuthBackend(ZulipAuthMixin):
     """
     Email+Password authentication backend (the default).
@@ -2775,6 +2803,7 @@ AUTH_BACKEND_NAME_MAP: Dict[str, Any] = {
     "Dev": DevAuthBackend,
     "Email": EmailAuthBackend,
     "LDAP": ZulipLDAPAuthBackend,
+    "Custom": CustomAuthBackend,
 }

 for external_method in EXTERNAL_AUTH_METHODS:
diff --git a/zproject/dev_settings.py b/zproject/dev_settings.py
index b45085c30b..9189f9b3e8 100644
--- a/zproject/dev_settings.py
+++ b/zproject/dev_settings.py
@@ -51,6 +51,7 @@ ALLOWED_HOSTS = ["*"]
 # for Google and GitHub auth you'll need to do some pre-setup.
 AUTHENTICATION_BACKENDS: Tuple[str, ...] = (
     "zproject.backends.DevAuthBackend",
+    "zproject.backends.CustomAuthBackend",
     "zproject.backends.EmailAuthBackend",
     "zproject.backends.GitHubAuthBackend",
     "zproject.backends.GoogleAuthBackend",

and just a simple row creation in manage.py shell (or equivalent in dbshell)
RealmAuthenticationMethod(name="Custom", realm=r).save()

Another, tangential, note is that I stumbled upon this commit - 58ca1ba5a472b538e53da14341d40c07bc945c64 claiming we disabled the caching "temporarily". Do we want to stick with that and get rid of the "temporary" claim or file an issue to fix it?

@timabbott Answered the comments and pushed a commit (probably can be squashed) for https://github.com/zulip/zulip/pull/25146#discussion_r1168840659


Bad handling of file extensions with unpackaged genotype data in trident v<IP_ADDRESS>

Option -p does not correctly infer file type from the input. Example: -p pileupcaller.double.geno produces an error option -p: unknown file extension: .double.geno.

Very annoying. This is a consequence of our new love for takeExtensions, as discussed here. We need to fix this ASAP.

I pushed a PR to fix this, see #315


Try using preloaded containerd if no version is specified.

@yujuhong
Signed-off-by: Lantao Liu<EMAIL_ADDRESS>

/lgtm


As an editor I want to publish a news article at a particular time so I can schedule the date

Acceptance criteria

CET and CEST should be automatic depending on time of year.
Editor should be able to publish 'now', without picking date/time.
Editor should be able to schedule a particular date and time to publish.
Date on the published article should display Date and time (eg: 7 April 2021 08:00 CEST) the article was published.
If the editor edits and re publishes the article, Article should should display the original date and time and also the modified time. (eg: 23 March 2021 08:00 CET | Last modified 23 March 2021 15:50 CET)
Must respect time zone and daylight saving time

In order to ensure good quality we should (Keep the ones we need for this US)

[ ] Perform integration testing
[ ] Perform functional testing
[ ] Extra focus on usability
[ ] Test for portability
[ ] Test for accessibility
[ ] Create automated acceptance test/smoke test
[ ] Perform performance and load test
[ ] Perform user testing
[ ] Perform security testing

Related issue: #287
Quote:

Published date should be automatically added when editor clicks publish. (real time date)
Date picker should only apply if editor wants to schedule the publication for a specific time and date.
Modify date should automatically be added once editor makes a change and re publishes. Currently it appears on the initial publish.
The modify date appears to show the "actual" date published when an article is first published. IE if editor sets to publish an hour ahead (ie schedule), the modify date displays the actual time one early than scheduled.

Main todo / thing missing is the actual scheduling, where the "Publication date and time" field is used to schedule the post and have that serve as publication date instead of the built-in _createdAt field in Sanity

@nilsml - adding a comment for the future news template work after testing a news today; editors need to be able to prepare a news article sometimes days before it is published, and to be able to add internal links we have to publish the news article. We need to ensure that we are not showing the "published to be able to add links date" but have the real "published to the world date" as the published date (and not as the modified date).

This also applies to local news @fernandolucchesi

Duplicate of #339


Fix sonarlint vulnerabilities (initial)

Initial fix for https://issues.redhat.com/browse/RHIDP-1153
Description

Initial resource limits set based on metrics-server measurment (needs more infomation based on operator monitoring, when available)
Fixed some automountServiceAccountToken issues

NOTES:
I think we need to fix some sonarLint rules, in particular:

Requirement to have resource limits and automountServiceAccountToken fixed on yaml patches (such as manager_auth_proxy_patch.yaml and manger_config_patch.yaml) does not seem correct b/c it is fixed on the main manifest.
Setting automountServiceAccountToken=false does not work for controller's SA, it is intentionally set to true.
Seems like requiring tag for Docker's "FROM scratch" makes no sense.

Which issue(s) does this PR fix or relate to
https://issues.redhat.com/browse/RHIDP-1153
PR acceptance criteria
No issues in this report
https://sonarcloud.io/project/issues?resolved=false&types=VULNERABILITY&id=janus-idp_operator

/cherrypick 1.1.x


net: ARP is broken (at least) on STM32

I was trying to introduce networking support to new STM32 boards earlier today and was scratching my head about was was wrong with the driver because I couldn't get a single ARP reply into the ARP cache. Out of desperation I ripped out a known good device (Nucleo-F429ZI) board out of a setup and tried the latest Zephyr version on that one and low-and-behold: it shows the same problem.
So I went back to an older version and it worked fine, so I reduced my sample config and bisected the latest changes. The bisection is not 100% conclusive (because the changes don't seem to be 100% separate) but the build fails somewhere around: 89eeba4250049a54a2a9ee720221b4258cea399c.
Signs of the problem are constant ARP resends with the responses being ignored:
[net/arp] [DBG] arp_entry_find_move_first: (0x200064b0): dst <IP_ADDRESS>
[net/arp] [DBG] arp_entry_find_pending: (0x200064b0): dst <IP_ADDRESS>
[net/ethernet] [DBG] net_eth_fill_header: (0x200064b0): iface 0x2000ba20 src 00:80:E1:E1:11:5E dst FF:FF:FF:FF:FF:FF type 0x806 len 0
[net/arp] [DBG] net_arp_prepare: (0x200064b0): Resending ARP 0x20007f40
[net/ethernet] [DBG] ethernet_send: (0x200064b0): Sending arp pkt 0x20007f40 (orig 0x20007f88) to iface 0x2000ba20
[net/ethernet] [DBG] ethernet_recv: (0x200044b8): iface 0x2000ba20 src C8:0E:14:BC:64:B2 dst 00:80:E1:E1:11:5E type 0x806 len 60
[net/ethernet] [DBG] ethernet_recv: (0x200044b8): ARP packet from C8:0E:14:BC:64:B2 received
[net/arp] [DBG] arp_update: (0x200044b8): src <IP_ADDRESS>
[net/arp] [DBG] arp_entry_get_pending: (0x200044b8): dst <IP_ADDRESS>

and net arp always yielding an exactly empty list.

Probably caused by either #8029 and/or #8608.

Can you give more information? what test do you run, what .config content (grep on CONFIG_NET_)
I quickly retried on dhcpv4_client sample (enabled CONFIG_NET_SHELL to get the ping command and arp/ethernet logging) and it seems to work fine, though I am on a frdm_k64f.
In your case looks like there is already a pending request registered, do you ever get this:
[net/arp] [DBG] arp_entry_cleanup: (0x20002148): 0x20001a88
[net/arp] [DBG] arp_entry_cleanup: (0x20002148): Releasing pending pkt 0x20003120 (ref 0)

?
Seems like you arp_update can't find the pending one, thus why he does not finally put the entry on table.

@tbursztyka I'm using samples/net/lwm2m_client/ with the standard configuration but IPv6 disabled, fixed static default IP removed and CONFIG_NET_APP_PEER_IPV4_ADDR set to my default server. I've had the problem on various STM32 boards (including the previously working Nucleo-F429ZI and two new boards I'm working on right now) but I have a FRDM-K64F here with me, too so I can quickly retry there.

@tbursztyka FRDM-K64F works for me. One suspicion I had yesterday was incorrect initialisation of the ARP entries list, maybe the NXP platform initialisation (or the MCU itself) does something different to STM32 which just happens to work with the new ARP code?

Could be indeed. All these:
static bool arp_cache_initialized;
static struct arp_entry arp_entries[CONFIG_NET_ARP_TABLE_SIZE];

static sys_slist_t arp_free_entries;
static sys_slist_t arp_pending_entries;
static sys_slist_t arp_table;

struct k_delayed_work arp_request_timer;

"should" be zero-ed by default since there are not on a noinit section.  Can you run something like:
In my PR I specifically set arp_cache_initialized to false, but checkpatch issued me an error that static bool should not be set to false (since it's 0). Can you instrument arp.c like:
NET_DBG("ARP already initialized");

line 658.

btw try also a memset(&arp_entries[i], 0, sizeof(struct arp_entry)); in the arp_init for loop before entry is being inserted into free list.

For reference, for me frdm_k64f works too with 58e40cb029d55306afd1fcb835e0572b1c561698 (current HEAD). Using samples/net/sockets/dumb_http_server, I can ping the board and issue HTTP requests to it.

LOL, you're not going to believe it: I found the problem and it is something completely different... Missing call to ethernet_init() in the stm_eth driver, it's exposed by the move of net_arp_init() into ethernet_init().


Cannot play Globed

i cant play geode bc it says outdated resources and when i try to see whta it is it says error

strange, can you please send a log file? open the Geometry Dash folder, inside open geode/logs/ and send the newest file from there

Geode 2024-11-24 17.03.46.log

does this still occur on the latest update?

the same thing with me


Deprecation warning with style/className

I'm getting the following deprecation error: Prop style is deprecated. Use function as children to style dropzone and its contents.. Fair enough, I use children, but removing the style (or className) prop causes the default styling to reappear. What's the preferred way to prevent default styling with the deprecation of those props?
Edit: Also, how do I set a class name on the wrapper (for targeting with CSS, e.g.) without className?

https://github.com/okonet/react-dropzone/pull/364#issuecomment-282334432


Migration Order

Optional index for migration order, if no order is given, the default should be to be index numerically from 0, 10, 20...
Migrations should be ran in order of 0, 10, 20...

Fixed in 74ab8b9057170e2bf2114279967488cf5dffc81d


Support local.settings.gradle file

The recent composite build feature is awesome.  But there is one thing which is not very handy - the necessity to modify the existing project settings.gradle file which is committed to VCS.
The docs advise to create a separate composite build in this case with both projects includeBuild'ed, but creating and keeping a new project with a bunch of configuration files does not seem like a simple solution.
A better approach would be to add support for local.settings.gradle which the system would automatically pick local settings from.

Sorry for the late reply.
The recommended way to do some local customization is to use init scripts.
There is also a feature request for .env files.
We think that the existing features of Gradle are enough to achieve what you want. If you feel otherwise, please open a new issue with a more detailed use case and explanation of why the existing options do not work for you.


Getting Up From Crit Deletes Players

Reproduction

Heal anyone in the crit state back to health and they'll disappear the second they stand up, no matter what means you use to heal them. The rejuvenate debug command does not work either.

already fixed in next publish #20430


Segmentation fault with mmseqs align for linclust results

Hi,
It seems that in some cases I get a segmentation fault when trying to get the alignment for linclust results.
As always I would be highly thankful for your help to resolve this ;-)
Thanks!
Haim
Expected Behavior
Current Behavior
mmseqs align All_chr.seq50.noDup.mmseqdb.gz All_chr.seq50.noDup.mmseqdb.gz  All_chr.seq50.noDup.mmseqdb.linclust All_chr.seq50.noDup.mmseqdb.linclust.aln -a
Creates many (empty) .aln.x and (mostly non-empty) .aln.index.x files and crash just (before?) finish.
Steps to Reproduce (for bugs)
Please make sure to execute the reproduction steps with newly recreated and empty tmp folders.
mmseqs align All_chr.seq50.noDup.mmseqdb.gz All_chr.seq50.noDup.mmseqdb.gz  All_chr.seq50.noDup.mmseqdb.linclust All_chr.seq50.noDup.mmseqdb.linclust.aln -a
MMseqs Output (for bugs)
Please make sure to also post the complete output of MMseqs. You can use gist.github.com for large output.
align All_chr.seq50.noDup.mmseqdb.gz All_chr.seq50.noDup.mmseqdb.gz All_chr.seq50.noDup.mmseqdb.linclust All_chr.seq50.noDup.mmseqdb.linclust.aln -a
MMseqs Version:           	1f302134aa1c6c7c4e2b9da272fd26af33860780
Substitution matrix       	nucl:nucleotide.out,aa:blosum62.out
Add backtrace             	true
Alignment mode            	0
Allow wrapped scoring     	false
E-value threshold         	0.001
Seq. id. threshold        	0
Min alignment length      	0
Seq. id. mode             	0
Alternative alignments    	0
Coverage threshold        	0
Coverage mode             	0
Max sequence length       	65535
Compositional bias        	1
Max reject<PHONE_NUMBER>
Max accept<PHONE_NUMBER>
Include identical seq. id.	false
Preload mode              	0
Pseudo count a            	1
Pseudo count b            	1.5
Score bias                	0
Realign hits              	false
Realign score bias        	-0.2
Realign max seqs<PHONE_NUMBER>
Gap open cost             	nucl:5,aa:11
Gap extension cost        	nucl:2,aa:1
Zdrop                     	40
Threads                   	256
Compressed                	0
Verbosity                 	3
Compute score, coverage and sequence identity
Query database size: 1233743 type: Nucleotide
Target database size: 1233743 type: Nucleotide
Calculation of alignments
Segmentation fault===============================================>] 99.07% 509.65K eta 0s
Context
Providing context helps us come up with a solution and improve our documentation for the future.
Your Environment
Include as many relevant details about the environment you experienced the bug in.

Git commit used (The string after "MMseqs Version:" when you execute MMseqs without any parameters):
Which MMseqs version was used (Statically-compiled, self-compiled, Homebrew, etc.):
For self-compiled and Homebrew: Compiler and Cmake versions used and their invocation:
Server specifications (especially CPU support for AVX2/SSE and amount of system memory):
Operating system and version:

I am a bit surprised that this is working at all. The clustering result doesn't include any seeding points, but the nucl-nucl alignment algorithm requires one. So it shouldn't progress that far at all. This is something we want to tackle sometime soonish, but it's tricky to fix.

Thanks for the quick response!
For some cases, I do get a result for nucl-nucl alignment (used later to produce m8 file, as described here), do you think it would be risky/buggy to use such results?
Would the best way to compute the alignments among cluster members is to run mmseqs search command for each representative sequence against its cluster members (as a DB)? Would it be better to externally compute the Smith-Waterman alignment for each representative and cluster member?

I think right now it only works (in the nucl-nucl case) sometimes accidentally when a somewhat good alignment is on diagonal 0 (and on the forward strand).
If you can run the whole search an representatives vs members then it will work correctly, however it's a bit tricky to get that to be fast. Running a separate search with a single representative vs all its cluster members will be pretty inefficient. Just searching all representatives vs all members will work, but do a bit unnecessary work and might run into issues with --max-seqs.

I see. Thanks a lot for the tips!


Switch to pistol

This image is neither in the public domain nor your own creation
Changing the water pistol back to display as a gun would put us out of alignment with every other major emoji vendor

This is Twemoji. If it isn't, then rename the project or add a warning to the readme saying that it has nothing to do with X, and any emojis lifted from X will be ignored.

We literally cannot lift emoji off X.com due to copyright law. The emoji we have that also appear on X were previously published under a permissive license on the twitter/twemoji GitHub repo. Further emoji created for use on X haven't been similarly published, so we don't have the right to use them.


Problems creating a resource and its relationships at the same time

I have these models:
class Address
end

class Event
  belongs_to :address
end

and these resources
class AddressResource < JSONAPI::Resource
  attributes :id,
    :name
end

class EventResource < JSONAPI::Resource
  attributes :id,
    :name,
    :created_at,
    :updated_at

  has_one :address
end

Given that no addresses or events exist, when I perform POST /events with this payload
         {
          "data": {
            "type": "events",
            "attributes": {
              "name": "My Event",
              "start-at": "2016-07-30T00:11:21Z",
            },
            "relationships": {
              "address": {
                "name": "My Place",
              }
            }
          }
        }

I'm getting this error:
{
    "errors": [
        {
            "title": "must exist",
            "detail": "address - must exist",
            "code": "100",
            "source": {
                "pointer": "/data/relationships/address"
            },
            "status": "422"
        }
    ]
}

Shouldn't it insert both rows in the database? Doing it from the console:
irb(main):008:0> e = Event.new(name: 'my event', start_at: 2.days.ago, address: Address.new(name: 'my address'))
=> #<Event id: nil, name: "my event", start_at: "2016-08-03 13:44:56", created_at: nil, updated_at: nil, url: nil, address_id: nil>
irb(main):009:0> e.save!
   (0.1ms)  BEGIN
  SQL (0.3ms)  INSERT INTO "addresses" ("name", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["name", "asfd"], ["created_at", 2016-08-05 13:44:58 UTC], ["updated_at", 2016-08-05 13:44:58 UTC]]
  SQL (2.5ms)  INSERT INTO "events" ("name", "start_at", "created_at", "updated_at", "address_id") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "my event"], ["start_at", 2016-08-03 13:44:56 UTC], ["created_at", 2016-08-05 13:44:58 UTC], ["updated_at", 2016-08-05 13:44:58 UTC], ["address_id", 2]]
   (0.4ms)  COMMIT

The JSON API spec does not support creating dependent objects. There will be a new version which supports multiple operations. We will be adding support for that in JR once the spec is finalized.

I know this isn't specific to jsonapi-resources but is there a recommended solution for this in the meantime?
For situations like the one above you could just save the event and then save the address afterwards using the returned event id. But what about for a large application form with dozens of nested models?

@Subtletree thanks for the proposal, anyway I have some concerns about this:
For situations like the one above you could just save the event and then save the address afterwards using the returned event id.

You cannot handle this as a business and database transaction. If you save the event and it passes, then you attempt to save the address and it fails, your database will end with data inconsistency.
You need to perform syncronous requests, since you need to wait for the response for the event creation in order to create the address

I know this isn't specific to jsonapi-resources but is there a recommended solution for this in the meantime?

I'm hoping to have a prototype version that supports operations out fairly soon. The goal is to test out ideas for the upcoming spec, so it obviously won't be production ready. Other than testing with that I don't have a solution for the mean time.

@ezilocchi Oh yeah I 100% agree. It's definitely a far from ideal solution, I'm just trying to think of any methods to deal with this in the meantime.
@lgebhardt That sounds awesome, I'll jump on the prototype for testing as soon as you've got it. Loving jsonapi-resources btw, thanks heaps!


inbuilt terminal input scrolled at bottom

VSCode Version: 1.31.1
OS Version: Windows 10

Steps to Reproduce:

Open a new or even existing terminal in VSCode.

Entering commands like this is very annoying. The cursor always is starting from below the terminal line as shown in the above image.

The issue get's resolved after entering the very first command, but reappears only if you close the terminal and bring it back up again, which I do mostly and thus the frustration.

There were never any problems such as this before with the terminal.

This is a bug in Windows 1809, see https://github.com/Microsoft/vscode/issues/57803


Arguments of nested anonymous functions are crammed into a single line

When I have an anonymous function that returns another anonymous function, I would like to keep the arguments of each consecutive layer in a separate line. However, Scalariform moves them all into a single line, and I could not find a configuration key to change this behaviour.
Here's an example:
Before:
object Main {
  def foo: Int => Int => String = {
    x: Int =>
      y: Int =>
        "x"
  }
}

After:
object Main {
  def foo: Int => Int => String = { x: Int => y: Int =>
    "x"
  }
}

This issue may be similar to #21, but it is not a duplicate. In particular, the example from #21 is not being reformatted.
I use SBT 1.1.1 with Scala 2.12.4 and sbt-scalariform 1.8.2 with scalariform 0.2.5.
Scalariform 0.1.7 in sbt-scalariform 1.5.1 with Scala 2.11.8 does not exhibit this issue.

Update: The old version I was comparing against is in fact older than 0.1.7. I thacked the breaking change to commit 34a7bbde77b83455e0b511ac4055b4aa0c754a46.


Add minimal e2e test to exchange_server

What does this PR do?
Some tests do not have an e2e environment because it’s not really feasible to have a dockerized environment for the service we integrate with.
Still it is valuable to check that the integration can run in a built agent to ensure there are no issues with the dependencies.
In order to do so we can add a test that ensures there is a critical service check emitted when the integration runs against an inexistent service.
Motivation
Additional Notes
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached

datadog_checks/base changes were reverted, so I removed the label and core team from reviewers.


dbt ingestion causes duplicate key errors

Describe the bug
After our second dbt ingestion run, we encounter errors in the frontend and gms when trying to display the impacted DataSets. This also prevents showing sibling datasets, such as Snowflake tables.
Only some dbt datasets are impacted by this bug.
In the Frontend UI:
An unknown error occurred. (code 500)
Failed to load results! An unexpected error occurred.
And in the GMS logs, it looks like this:
06:42:03.642 [Thread-484] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler:21 - Failed to execute DataFetcher
java.util.concurrent.CompletionException: java.lang.RuntimeException: Failed to retrieve entities of type Dataset
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
    at java.base/java.util.concurrent.CompletableFuture$BiRelay.tryFire(CompletableFuture.java:1423)
    at java.base/java.util.concurrent.CompletableFuture$CoCompletion.tryFire(CompletableFuture.java:1144)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
    at org.dataloader.DataLoaderHelper.lambda$dispatchQueueBatch$3(DataLoaderHelper.java:272)
    at java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
    at java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
    at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705)
    at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.RuntimeException: Failed to retrieve entities of type Dataset
    at com.linkedin.datahub.graphql.GmsGraphQLEngine.lambda$createDataLoader$183(GmsGraphQLEngine.java:1588)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
    ... 1 common frames omitted
Caused by: java.lang.RuntimeException: Failed to batch load Datasets
    at com.linkedin.datahub.graphql.types.dataset.DatasetType.batchLoad(DatasetType.java:146)
    at com.linkedin.datahub.graphql.GmsGraphQLEngine.lambda$createDataLoader$183(GmsGraphQLEngine.java:1585)
    ... 2 common frames omitted
Caused by: java.lang.IllegalStateException: Duplicate key EntityAspectIdentifier(urn=urn:li:dataset:(urn:li:dataPlatform:dbt,XXXXXXXXXXXXX.YYYYYYYYYYYYYY.ZZZZZZZZZZZZZ,PROD), aspect=upstreamLineage, version=0) (attempted merging values com.linkedin.metadata.entity.EntityAspect@f613625b and com.linkedin.metadata.entity.EntityAspect@f613625b)
    at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:133)
    at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:180)
    at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169)
    at java.base/java.util.ArrayList$Itr.forEachRemaining(ArrayList.java:1033)
    at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    at com.linkedin.metadata.entity.ebean.EbeanAspectDao.batchGet(EbeanAspectDao.java:263)
    at com.linkedin.metadata.entity.EntityService.getEnvelopedAspects(EntityService.java:1826)
    at com.linkedin.metadata.entity.EntityService.getCorrespondingAspects(EntityService.java:379)
    at com.linkedin.metadata.entity.EntityService.getLatestEnvelopedAspects(EntityService.java:333)
    at com.linkedin.metadata.entity.EntityService.getEntitiesV2(EntityService.java:289)
    at com.linkedin.metadata.client.JavaEntityClient.batchGetV2(JavaEntityClient.java:109)
    at com.linkedin.datahub.graphql.types.dataset.DatasetType.batchLoad(DatasetType.java:130)
    ... 3 common frames omitted
06:42:03.645 [Thread-421] ERROR c.datahub.graphql.GraphQLController:99 - Errors while executing graphQL query: "query getSearchResultsForMultiple($input: SearchAcrossEntitiesInput!) {\n  searchAcrossEntitie
...

followed by an extremely long failed GraphQL query.
To Reproduce
In our case, we just run our dbt ingestion at least twice.
Expected behavior
Expectation is to browse the datasets.
Additional context
Restoring indices using the datahub-restore-indices-job did not help (also using the -a clean option).
Next thing I did was updating from v<IP_ADDRESS> to v.0.10.0 but the error persists :-(
In the end, we purged all our datasets and ingested them again, but the error keeps on reappearing after the 2nd ingestion of dbt.

We have also experienced the same problem and made a small investigation. We were using csv-enricher ingesting data to Datahub v 0.10.1.
Here are the findings:

We made the mistake to use flawed capitalisation in the platform name part of the URN (we input “Snowflake” not “snowflake”).
The script happily ingested flawed data creating new records in ElasticSearch datasetindex_v2 for something that got interpreted as new URNs.
When using the UI we’ve noticed lots of 500 errors when entering search prompt.
After an investigation we’ve noticed autoCompleteForMultiple Graph API query is returning not only a valid (existing) URNs but also those with incorrect capitalisation - see attachment. Note the list is not formally duplicated.
The GMS engine processing of autoCompleteForMultiple involves retrieval of entities aspect which is handled as a batchLoad call from MySQL with the URNs mentioned in point 4 as input keys.
With:
a. MySQL being case insensitive
b. the UNION ALL logic used by batchLoad
c. two ids being identical and differing only by their casing
the result set retrieved from DAO contains duplicated entries. This can’t be processed further and GMS throws an exception when converting results to a map keyed by URN.
Ultimately we were able to solve the issue without clearing the whole database just by running a delete by query in ElasticSearch removing flawed “Snowflake” URNs from datasetindex_v2.

Not sure where the fix should be applied but there is clearly no validation of the input in csv-enricher and that eventually leads to serious data corruption. Also, there is a huge difference in the way the two persistence layers (ElasticSearch and MySQL) are behaving. This will no doubts lead to more problems in the future if not addressed.


TE, CE: Notifications don't appear for scripts, Datasets

Description
Issue from CloudBeaver backlog (3061)
I Notifications don’t appear for scripts or appear incorrectly in DBeaver node when a user is in CloudBeaver node:

create a script without a connection - no notifications appear
create a script associated with a connection - 3 notifications appear
rename a script - no notifications appear+2 scripts are displayed in the project tree
associate a saved script with a conection - 3 notifications appear and the script disappears (e.g. associate a script and then relogin in DBeaver)
remove connection associatiation from a script - 3 notifications appear (the change is applied)
dnd to a folder - no notifications appear
create a folder  - no notifications appear
rename a folder  - no notifications appear and two folders with old is new names are displayed in the tree (fixed by refresh/relogin)

I Notifications don’t appear for scripts in CloudBeaver node when a user  in DBeaver node makes any changes except

associating a script without a connection with a connection
making changes in a script content using following steps

run two DBeaver and CloudBeaver nodes
create an empty script without a connection association in CloudBeaver node
open this script in the DBeaver node and write smth in it

note: if you reopen the script, notifications will stop to appear
DBeaver Version
23.0.4
Operating System
No response
Database and driver
No response
Steps to reproduce
No response
Additional context
No response

This issue will be closed in another project.


Convert terraform to bicep

Is there any comprehensive blog or documentation available for converting entire Terraform code to Bicep, ensuring a smooth and issue-free migration? Additionally, what challenges should be considered when converting a large Azure infrastructure with more than 100 VMs?

I don't think there is a tool for converting from Terraform to Bicep. What you can do is to export Bicep templates from the Azure portal for the infrastructure you want to start managing with Bicep.
Migrating from Terraform to Bicep is "easy" because you don't need to take care of migrating the state file. Once you have exported the Bicep templates from the portal you could start using them directly*. Just remember that if you use some sort of hybrid environment with both Bicep and Terraform you have to remove resources from the Terraform state files when you start managing them through Bicep.

You will probably want to tidy the Bicep code before you start doing something with it

Any impact on current infrasrturture while converting the terraform to bicep code & need any downtime ?

@nithinkumarkatta No downtime.
However, the impact will depend a little bit on how large your current Terraform footprint is. Migrating from Terraform to Bicep can be as simple as:

Export all the resources as Bicep code from the Azure portal
Polish/clean the code (remove unnecessary default values, split into modules, etc)
Delete your Terraform source code and state file
Done

But if you need to do the migration in steps, where you will use both Terraform and Bicep in parallel, then you need to proceed with care. The general workflow will be something like:

Export a resource as Bicep code from the Azure portal
Remove the resource from your Terraform configuration (replace the resource with a data source if you still need to reference it elsewhere in Terraform) and add a removed block for that resource
Repeat until you don't have any more Terraform resources

Again, at no point during this is there any downtime required.


Implement Time.from_ms and Time#to_ms

I'm very open to changing the names for these methods or changing how they're implemented.
I know this doesn't exactly follow what Ruby does, but Ruby works with seconds mostly. I need these methods to work with BSON which allows for milliseconds precision (which is nice).
I also added Time#to_seconds and aliased Time#to_i to it.

Maybe we can add a scale or unit parameter to Time.at?
def self.at(time : Int, unit  = :seconds, kind = Kind::Utc)
    ms = case unit
         when :milliseconds, :ms
           time
         when :seconds, :s
           time * 1000
         else
           raise ArgumentError.new "Unknown unit: #{unit}"
         end
     new(UnixEpoch + ms.to_i64 * TimeSpan::TicksPerMillisecond, kind)
end

Or @asterite would probably want this to be an enum....

Oh and I'd go for epoch and epoch(:milliseconds), to_x should return an X IMO and we have no Second and no Millisecond class ;) and seconds and milliseconds should return the component of the time, not the elapsed amount since epoch.

I think TimeSpan deals with ms (and so it does Time). Maybe the confusing thing is that Time#to_i returns the total of seconds. Not sure why Time#to_i is needed.
Also, as @jhass said, I would prefer Time#seconds to returns the component. I am fine with Time#total_seconds to give the elapsed amount since epoch thou.
Adding the constructor to Time form ms seems fine to me. Isn't that enough to accomplish your work with BSON?

I'll wait for @asterite to comment before modifying code.

I'm thinking for this maybe the best thing to do would be to have a Time.epoch method that would return a Time instance at the unix epoch. From that you can do:
# To create a Time relative to the epoch
Time.epoch + 1234.seconds # same as the current Time.at
Time.epoch + 1234.milliseconds
Time.epoch + 10.days
# and so on... and maybe:
# Time.epoch { 1234.seconds }

# To convert a time to a unit relative to the epoch
time = Time.now
(time - Time.epoch).total_seconds.to_i # same as the current Time#to_i
(time - Time.epoch).total_milliseconds.to_i
# and so on... and maybe:
# time.relative_to_epoch.total_seconds.to_i

I'm unsure about the commented alternatives, but pretty sure about the uncommented ones. They take a bit more writing but they are very flexible and we don't need to add many methods to Time. And they are not cryptic, what's Time.at(...), at seconds? Days? Relative to what?

Nice! :+1:

@jeromegn :-)
We didn't find Time.at very descriptive, neither Time#to_i, and then we concluded that seconds and milliseconds are the most used for dealing with unix epoch, so well named and convenient methods are the way to go.

We can no longer call time_or_nil.to_i or time_or_nil.to_f so we have to manually discriminate against Nil now, nor can we cast whatever (eg: String | Time | Int | Float) to a timestamp, etc.
Also, Time.epoch sounds like a getter to me (to something weird), and not like a factory that returns a "Time at timestamp".
(sorry for ranting)


Highest Response Ratio Next [CPU Scheduling] in C, C++, Python and Java

Is your feature request related to a problem? Please describe.
Highest Response Ratio Next is a non-preemptive CPU Scheduling algorithm and it is considered as one of the most optimal scheduling algorithms. The name itself states that we need to find the response ratio of all available processes and select the one with the highest Response Ratio. A process once selected will run till completion.
Describe the solution you'd like
- Get the list of processes along with their arrival times and burst times.
- Set the current time to 0.
- Initialize an empty ready queue to hold the processes.
- While there are processes in the list or the ready queue is not empty:
   - Check if any processes have arrived at the current time. If yes, move them from the list to the ready queue.
   - If the ready queue is empty, increment the current time by 1.
   - If the ready queue is not empty:
     - Calculate the response ratio for each process in the ready queue using the formula:
                      Response Ratio = (Waiting Time + Burst Time) / Burst Time
     - Select the process with the highest response ratio from the ready queue.
     - Execute the selected process for its entire burst time.
     - Update the waiting time for all other processes in the ready queue by adding the burst time of the executed process.
     - Update the current time by adding the burst time of the executed process.
     - Remove the executed process from the ready queue and the list.
- Repeat steps 4a to 4c until all processes have been executed.
- Calculate the average waiting time and turnaround time based on the execution sequence.

Additional context

@Kumar-laxmi I would like to work on this issue. Could you please assign it to me under SSOC 23.
Thank you!

@Kumar-laxmi I would like to work on this issue as well.

@Kumar-laxmi would like to work on this issue as it'll be my first contribution in algorithms repo under the ssoc'23 program and I have also implemented similar algorithms in my OS classes. Thanks in advance!

Assigned!
@Ashutoshbind15 : C, C++, Python and Java

@Kumar-laxmi I would like to work on this issue and create a PR. Could you please assign it to me as it seems to be inactive.
Thank you!

Completing it asap!


local https for serve-web

tldr
with code serve-web --host <IP_ADDRESS>  --without-connection-token Jupyter notebooks alias .ipynb files won’t work and stay blank see blow

to resolve this is use caddy with sudo caddy run —config /etc/caddy/Caddyfile
pi.local {
        reverse_proxy <IP_ADDRESS>:8000
}

to put a reverse proxy with local signed tls cert in front of it like @connor4312 suggested here and removed —host <IP_ADDRESS> as this defaults to localhost only
more info
this is probably the wrong place to put this but the issue mentioned above is locked i want to document this for me and perhaps others. other than that the code cli features are so cool and simple to use. furthermore I know this very insecure but since I use this locally only with a pi connected via usbc to a ipad this seems tolerable to me please let me know otherwise. anyways please close this if this is irrelevant or covered else where.
other findings
with just code serve-web --host <IP_ADDRESS> or with —connection-token  im not able to connect via a browser on a ipad to the pi. perhaps the browser strips the token duno

I don't have any plans to do this; the serve-web interface is not designed as a public-facing server at the moment. Using Caddy or something similar is the way to go.


Changed list_multipart_upload function verification parameters

Changed "list_multipart_upload function" verification parameters after below bug fix
https://bugzilla.redhat.com/show_bug.cgi?id=2271804
Pass log: https://privatebin.corp.redhat.com/?89044189b9886623#3FPXgNQxyj3TXQjybR868sMiGJYBTb27CLfBjnc1jXx9

Just double checking - do we also need to change "Parts" to "Uploads" in the following code as well while we're at it?

https://github.com/red-hat-storage/noobaa-sa-ci/blob/e1a734f92329162eec878ff29bfe2b55a65c7af1/noobaa_sa/s3_client.py#L529
https://github.com/red-hat-storage/noobaa-sa-ci/blob/e1a734f92329162eec878ff29bfe2b55a65c7af1/tests/test_multipart_operations.py#L109

Just double checking - do we also need to change "Parts" to "Uploads" in the following code as well while we're at it?

https://github.com/red-hat-storage/noobaa-sa-ci/blob/e1a734f92329162eec878ff29bfe2b55a65c7af1/noobaa_sa/s3_client.py#L529
https://github.com/red-hat-storage/noobaa-sa-ci/blob/e1a734f92329162eec878ff29bfe2b55a65c7af1/tests/test_multipart_operations.py#L109

It is not needed


[CONTROLLER/HTTP] remove resource api business code

This PR is for:

Server

remove resource api business code
Checklist

[ ] Added unit test.

Backport to branches

main

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.zhengya seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Broken remote links

Added a http link checker to the xt link tester, which found the following issues:
(part of #4476)
    not ok 20 - HTTP 404 https://colabti.org/irclogger/irclogger_log_search/raku
    not ok 2 - HTTP 404 https://github.com/rakudo/rakudo/blob/master/src/core.c/CompUnit/RepositoryRegistry.rakumod
    not ok 5 - HTTP 404 https://raku.land/github:raku-community-modules/Test::Output
    not ok 6 - HTTP 403 https://linux.die.net/man/3/clock_gettime
    not ok 29 - HTTP Unknown error: https://dev.mysql.com/downloads/repo/apt/
    not ok 7 - HTTP Unknown error: http://www.MegaGigaTeraPetaCorp.com/std/disclaimer.txt
    not ok 59 - HTTP Unknown error: https://en.wikipedia.org/wiki/Hyperbolic_function
    not ok 25 - HTTP Unknown error: http://perl6maven.com/perl6-is-a-value-in-a-given-list-of-values

Thank you, especially for the web.archive link.

# [1] https://linux.die.net/man/3/clock_gettime
# [1] https://dev.mysql.com/downloads/repo/apt/
# [1] https://en.wikipedia.org/wiki/Natural_logarithm
# [1] https://colabti.org/irclogger/irclogger_log_search/raku

On Jul 16, 2024, at 17:53, Will Coleda @.***> wrote:
[1] https://linux.die.net/man/3/clock_gettime

--snip--
Based on https://gitlab.com/gitlab-org/gitlab-docs/-/merge_requests/4646
saying "linux.die.net - everything pointing to this site always returns 403 Forbidden",
and my own experiments with curl leading me to believe that die.net is using some JS voodoo,
I recommend changing that link to an equivalent on another host.
This one looks best to me:
https://www.man7.org/linux/man-pages/man3/clock_gettime.3.html

This one looks best to me:

Done, thanks.

skip-listed the mysql URL.
Now getting only this occasionally:
    not ok 67 - HTTP (Stream reset by the server): https://en.wikipedia.org/wiki/Cis_%28mathematics%29

Typically for wikipedia URLS, but not always the same one. Always runs clean if I then immediately test the one file it was in. Will add a retry mechanism for this particular error.

With d8a2bbd6a, the test now runs clean (as far as remote link checks goes). Still some missing internal links, but there's a separate ticket for that.

On Jul 17, 2024, at 14:44, Will Coleda @.***> wrote:
skip-listed the mysql URL.
Now getting only this occasionally:
not ok 67 - HTTP (Stream reset by the server): https://en.wikipedia.org/wiki/Cis_%28mathematics%29

Typically for wikipedia URLS, but not always the same one. Always runs clean if I then immediately test the one file it was in. Will add a retry mechanism for this particular error.

I ran curl -v ... on the Cis_%28mathematics%29 URL, 20 times total (10 today, 10 yesterday), and examined the -v details, and see no problem. I have not analysed with WireShark, but I have a hunch the problem is Cro's use of persistent connections.
Reading the source of rakudoc-l.rakutest, I notice that $ua is populated with a new Cro::HTTP::Client instance only once. If that line was moved to just before the .get line, then a new instance would be used on each call. This would be microscopically less efficient, but would stop the effect of the persistent connections.
Alternately, the docs imply that changing line 25 to my $ua = Cro::HTTP::Client.new( :!persistent ); would have the same disabling of persistent connections, with less other impact. I have not played with Cro enough to know the effectiveness of this approach.

The reuse of the user agent was intentional, old habit.
I've already got the error handling code to retry if there's a 429, a GoAway, or just a stream reset, so I think we're good.


Added references in RefreshSignInAsync doc

@LayZeeDK,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot


Create complete XData interface based on genreated XData types

This was implemented as part of 2.0.0


Added 0535-encode-and-decode-tinyurl.cs

File(s) Modified:0535-encode-and-decode-tinyurl.cs
Language(s) Used:csharp
Submission URL: https://leetcode.com/submissions/detail/1140078244/

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

@Dalton-V Thanks for your contribution 👍


"Down" events  still get proceed when ipsec service is upgrading.

Rancher server 1.6.17 upgraded to 1.6.18-rc3
Steps to reproduce the problem:
Fresh install of  1.6.17
Add 25 hosts to the setup.
Add 300 health check enabled instances.
Upgrade to 1.6.18-rc3.
Upgrade ipsec stack.
After ipsec stack gets upgraded successfully , there was no health check enabled instances that got recreated.
After I clicked "Finish Upgrade" and wait for the ipsec services to get to "active" state.
one of the " healthcheck-healthcheck-10" instances got recreated. In this case instance was still "healthy" when it was removed . Not sure why it was recreated in this case.
mysql> select id,created,removed, state,health_state from instance  where name like
    -> "%healthcheck-healthcheck-10%";
+-----+---------------------+---------------------+---------+--------------+
| id  | created             | removed             | state   | health_state |
+-----+---------------------+---------------------+---------+--------------+
|  87 | 2018-05-29 17:20:02 | 2018-05-29 17:21:48 | purged  | initializing |
| 153 | 2018-05-29 17:21:49 | 2018-05-29 18:47:49 | purged  | healthy      |
| 635 | 2018-05-29 18:47:43 | NULL                | running | healthy      |
+-----+---------------------+---------------------+---------+--------------+
3 rows in set (0.00 sec)

No other user containers got recreated. But i still see that "DOWN" events were being processed when ipsec was being upgraded and "DOWN" was reported from all 3 hosts.
| 2742 | NULL |          5 | serviceEvent | 1597fe8d-4b75-4690-8f87-8c45b5aca529 | NULL        | created | 2018-05-29 18:47:31 | NULL    | NULL        | {}   |      11 | 3283c97f-d4c4-4a16-a2f5-91e201aa16fa_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | DOWN            |<PHONE_NUMBER> |
| 2746 | NULL |          5 | serviceEvent | 0e0228d2-9cb5-4aeb-8e3f-0a4ba97849ea | NULL        | created | 2018-05-29 18:47:31 | NULL    | NULL        | {}   |      14 | 86a7e73e-779e-4547-9352-3d27b9822f1a_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | DOWN            |<PHONE_NUMBER> |
| 2762 | NULL |          5 | serviceEvent | 7678ac17-dbaa-4bac-884a-dda49f9ae6ce | NULL        | created | 2018-05-29 18:47:32 | NULL    | NULL        | {}   |       5 | ad8e9882-6428-49d3-a9b1-14ecbd68b514_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | DOWN            |<PHONE_NUMBER> |
| 2783 | NULL |          5 | serviceEvent | 633e7d61-6486-44c3-a45b-3200e537f665 | NULL        | created | 2018-05-29 18:47:34 | NULL    | NULL        | {}   |      11 | 3283c97f-d4c4-4a16-a2f5-91e201aa16fa_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | DOWN 1/2        |<PHONE_NUMBER> |
| 2787 | NULL |          5 | serviceEvent | ec677130-3787-4586-af6b-2f623553ecf0 | NULL        | created | 2018-05-29 18:47:34 | NULL    | NULL        | {}   |      14 | 86a7e73e-779e-4547-9352-3d27b9822f1a_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | DOWN 1/2        |<PHONE_NUMBER> |
| 2802 | NULL |          5 | serviceEvent | 3ef77ba5-8c7c-4239-894a-1ac6f4dcaab4 | NULL        | created | 2018-05-29 18:47:34 | NULL    | NULL        | {}   |       5 | ad8e9882-6428-49d3-a9b1-14ecbd68b514_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | DOWN 1/2        |<PHONE_NUMBER> |
| 2827 | NULL |          5 | serviceEvent | 92689c16-b852-4e29-a408-008973b49f7f | NULL        | created | 2018-05-29 18:47:36 | NULL    | NULL        | {}   |      11 | 3283c97f-d4c4-4a16-a2f5-91e201aa16fa_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | INIT            |<PHONE_NUMBER> |
| 2829 | NULL |          5 | serviceEvent | dcea6ef0-f2b4-4466-9c7c-2ae947a0e828 | NULL        | created | 2018-05-29 18:47:36 | NULL    | NULL        | {}   |      14 | 86a7e73e-779e-4547-9352-3d27b9822f1a_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | INIT            |<PHONE_NUMBER> |
| 2857 | NULL |          5 | serviceEvent | 181e7879-a468-43f0-ba2a-1be82c4cd97c | NULL        | created | 2018-05-29 18:47:37 | NULL    | NULL        | {}   |       5 | ad8e9882-6428-49d3-a9b1-14ecbd68b514_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | INIT            |<PHONE_NUMBER> |
| 2876 | NULL |          5 | serviceEvent | b82cdb73-228c-41e7-81a4-cd1c977bd357 | NULL        | created | 2018-05-29 18:47:38 | NULL    | NULL        | {}   |      14 | 86a7e73e-779e-4547-9352-3d27b9822f1a_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | UP              |<PHONE_NUMBER> |
| 2878 | NULL |          5 | serviceEvent | cb731e8f-699f-4809-9147-41bd2c1cf3da | NULL        | created | 2018-05-29 18:47:38 | NULL    | NULL        | {}   |      11 | 3283c97f-d4c4-4a16-a2f5-91e201aa16fa_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | UP              |<PHONE_NUMBER> |
| 2896 | NULL |          5 | serviceEvent | cce14752-de61-4427-a475-7af05bde71a3 | NULL        | created | 2018-05-29 18:47:39 | NULL    | NULL        | {}   |       5 | ad8e9882-6428-49d3-a9b1-14ecbd68b514_806c7030-dd81-4cf2-a256-034c0b976331_1 |         183 |                      56 | UP              |<PHONE_NUMBER> |
+------+------+------------+--------------+--------------------------------------+-------------+---------+---------------------+---------+-------------+------+---------+-----------------------------------------------------------------------------+-------------+-------------------------+-----------------+--------------------+

@deniseschannon reviewed the code, the logic is fine. Tested various scenarios on a smaller setup, and @sangeethah helped with the testing on the bigger ones (25 hosts, 300 user healthcheck enabled instances) The issue wasn't seen. It is possible that on the previous setup the recreate happened right after ipsec went into active state. But don't want to speculate given I don't have any data to prove it.
Up to you whether you want to keep this bug open or close.


[hive] exclude parquet-hadoop-bundle from paimon-hive-catalog.

Purpose
[hive] exclude parquet-hadoop-bundle from paimon-hive-catalog.

Linked issue: close #3881

Tests

No.
API and Format

No.
Documentation

No.

+1


src: Change the way we handle static stylesheet.

Previously we deduped duplicate styles from being added to the
document.head by only adding the own method of a component.
This time we keep a reference to the static function in a
seen array and only call it once.
We expose a new static method called registerStyles() which
can be called by any child class that wants to inherit and
overwrite styles
For example
class MyDialog extends Dialog {
  static stylesheet () {
    Tonic.registerStyles(super.stylesheet)
    return 'CSS'
  }
}

Note that in this implementation Tonic.add() will work.

Also note that if we have two dialogs
class GroupsDialog extends Dialog {
  static stylesheet() {
    return super.stylesheet() + 'CSS'
   }
}

class StreamsDialog extends Dialog {
  static stylesheet() {
    return super.stylesheet() + 'CSS'
   }
}

This will work as well; however the super.stylesheet() of TonicDialog will be inserted into document.head twice if both are added to the application.

An application developer has the oppurtunity as an optional optimization to call Tonic.registerStyles()
class GroupsDialog extends Dialog {
  static stylesheet() {
    Tonic.registerStyles(super.stylesheet)
    return 'CSS'
   }
}

class StreamsDialog extends Dialog {
  static stylesheet() {
    Tonic.registerStyles(super.stylesheet)
    return 'CSS'
   }
}

This will only insert the styles of Dialog into document.head once.

I don't think we have any code that calls super.stylesheet

@heapwolf  from slack
I think thats good
but _seenStylesheets I think should be _stylesheetRegistry
otherwise +1


add param allowReplace in copy template task

What this PR does / why we need it:
add Param allowReplace in copy template task
When this param is set, task will not fail, when template already
exists, but it will update already existing template with newly copied template
Release note:
add param allowReplace in copy template task

/retest

/retest

/retest

/lgtm


How can I get the HD map information

Hi, Thank you for great work !
I'm wondering if the planning algorithm need HD map, how can I get the map information?
I need get map data from WOMD/NuPlan and convert data format to meet algorithm requirements？

Yes, the planning algorithm uses HD map. You can find the converted data format in the road_dic. All HD map information is packed into this dictionary for the planner to use.


bug: java.util.concurrent.CompletionException: java.lang.Exception: Failed to start Cody agent

Installation Information
Plugin version: 5.4.358-nightly
IDE version: PS-233.14475.35
Describe the bug
Doesn't work at all. Have been trying to use it every time an update comes out. There is no way. At the begining it just broke my computer. Now it just doesn't work. Never worked. Using Windows 10 + WSL2. Has anyone with this setup been able to use it?
Expected behavior
To answer in the chat when a prompt is submitted.
Additional context
Stacktrace:
java.util.concurrent.CompletionException: java.lang.Exception: Failed to start Cody agent
	at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:413)
	at java.base/java.util.concurrent.CompletableFuture.getNow(CompletableFuture.java:2134)
	at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent$lambda$1(CodyAgentService.kt:129)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.Exception: Failed to start Cody agent
	at com.sourcegraph.cody.agent.CodyAgentService.startAgent$lambda$3(CodyAgentService.kt:74)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:249)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	... 7 more
Caused by: java.util.concurrent.ExecutionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")

Error: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")
    at f (C:\snapshot\dist\agent.js)
    at e3.t3 (C:\snapshot\dist\agent.js)
    at new e3 (C:\snapshot\dist\agent.js)
    at Function.parse (C:\snapshot\dist\agent.js)
    at _Uri.parse (C:\snapshot\dist\agent.js)
    at C:\snapshot\dist\agent.js
    at MessageDecoder.callback (C:\snapshot\dist\agent.js)
    at MessageDecoder._write (C:\snapshot\dist\agent.js)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at Socket.ondata (node:internal/streams/readable:766:22)
    at Socket.emit (node:events:537:28)
    at Socket.emit (node:domain:482:12)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:396)
	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:2096)
	at com.sourcegraph.cody.agent.CodyAgentService.startAgent$lambda$3(CodyAgentService.kt:61)
	... 10 more
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")

Error: [UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")
    at f (C:\snapshot\dist\agent.js)
    at e3.t3 (C:\snapshot\dist\agent.js)
    at new e3 (C:\snapshot\dist\agent.js)
    at Function.parse (C:\snapshot\dist\agent.js)
    at _Uri.parse (C:\snapshot\dist\agent.js)
    at C:\snapshot\dist\agent.js
    at MessageDecoder.callback (C:\snapshot\dist\agent.js)
    at MessageDecoder._write (C:\snapshot\dist\agent.js)
    at writeOrBuffer (node:internal/streams/writable:392:12)
    at _write (node:internal/streams/writable:333:10)
    at Writable.write (node:internal/streams/writable:337:10)
    at Socket.ondata (node:internal/streams/readable:766:22)
    at Socket.emit (node:events:537:28)
    at Socket.emit (node:domain:482:12)
    at addChunk (node:internal/streams/readable:324:12)
    at readableAddChunk (node:internal/streams/readable:297:9)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
	at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
	at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
	at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	... 1 more

@matiasgaletto Thanks for the report! I'm closing in favor of https://github.com/sourcegraph/jetbrains/issues/723 where we'll look into it. In general we recommend using the "stable" channel to users, since nightly releases haven't gone through QA yet.


Amendments

Coverage remained the same at 76.563% when pulling 9e742f5f8edf915788ee8f29344d0c7efc8e2f75 on scorphus:amendments into 719609f8f331eab8bd3e53ef00f1b862d41fdd2d on backstage:master.


Request for Documentation: AD Groups for Multi-Domains, Single forrests

Mattermost user katie.wiersgalla from https://community-daily.mattermost.com has requested the following be documented:
@john.thompson I have completed the test for multi-domain, single forrest using a child trust and everything seems to work:
* Users from both domains can login
* Groups from both domains can be linked
* Group members from both domains get populated (**as long as the group is a Univeral group**, otherwise the `member` attributes are omitted by AD, for some reason)

See the original post here.
This issue was generated from Mattermost using the Doc Up plugin.

@wiersgallak, is this section sufficient to resolve this issue or does it need to be expanded?

@justinegeffen Yeah I think this is a great start and we can collect more feedback from Customers if we need to expand more.

Closing.


Virtual keyboard

Hi,
The same way there is a virtual gamepad, it would be handy to have a virtual keyboard.

Virtual gamepad is not part of recalbox-manager, i just linked to it on manager dashboard.
I'm sorry, this would be too much work for me since i don't ever have any time for now for manager features. I have to reject your issue, you should talk about your request on IRC channel.

Ok I didn't know that, I'm just discovering all that recalbox stuff

no problemo

Please check out this forum post of mine:
https://forum.recalbox.com/topic/3482/virtual-keyboard
It might be of interest for you. I'm working on exactly what you asked for.


setPrecision in Program before naming

It seems that setPrecision must be called before SHADER_NAME apply, because now we have duplicate in vertex shaders with highp precision:
precision highp float;
#define SHADER_NAME pixi-shader-4
precision highp float;

https://github.com/pixijs/pixi.js/blob/3619fa0f6e872ffca4df4127353a9f554551c750/packages/core/src/shader/Program.ts#L95

@ivanpopelyshev is working on a better shader preprocessor. I think that'll fix this.

@ivanpopelyshev is working on a better shader preprocessor. I think that'll fix this.

Yeah! I'm working on it. Honestly.

Yeah! I'm working on it. Honestly.

#7277


Add ending line and column to Location.kt

External tooling, such SARIF or IDE may need ending lines and columns, in addition to the SourceLocation. They should be provided in :detekt-api.
Originally posted by @BraisGabin in https://github.com/detekt/detekt/pull/5011#discussion_r911449557

Hello!
May I work on this?

Thanks @VitalyVPinchuk, of course you can!


[FEA] Graph Transformer Processor for GraphCast

Modulus Pull Request
Description

Closes https://github.com/NVIDIA/modulus/issues/572, https://github.com/NVIDIA/modulus/issues/570, https://github.com/NVIDIA/modulus/issues/571
Checklist

[x] I am familiar with the Contributing Guidelines.
[x] New or existing tests cover these changes.
[x] The documentation is up to date with these changes.
[x] The CHANGELOG.md is up to date with these changes.
[x] An issue is linked to this pull request.

Dependencies

Need to update the changelog

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci

/blossom-ci


[Modal] Fix with react@next

Hopefully, after 3 iterations we have it right but the iteration, but it's hard given that enzyme doesn't support react@next yet.
Closes #7672.

[x] PR has tests / docs demo, and is linted.
[x] Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
[x] Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

I'm still getting the bug Cannot read property 'contains' of null on release 1.0.0-beta.4

I need to ship it.


using EditAction API to build an "inline prompt" feature

Looking for some help building out a feature. Basically looking for a way to be able to write prompts "inline" and then iteratively execute the whole file, using the current line as a prompt. (I think this could be a workflow gamechanger.)
example.js
let foo = 'bar';

const HelloWorldMainComponent = (props) => {
  return
Hello
;
};
// Write a function that prints "Hello, World!" to the console
export default HelloWorldMainComponent;

Here is my lua function, but getting stuck trying to figure out how to use the EditAction
local function run_with_context()
	local current_line = vim.api.nvim_get_current_line()
	local current_line_number = vim.api.nvim_win_get_cursor(0)[1]
	local extended_prompt = current_line
		.. ". Insert at line "
		.. current_line_number
		.. "."
	local EditAction = require("chatgpt.flows.actions.edits")
	local opts = {
		params = {
			model = "gpt-3.5-turbo",
			stop = {
				"```",
			},
		},
		template = extended_prompt,
		variables = {},
		strategy = "edit",
	}
	local action = EditAction.new(opts)
	action:run()
end

Spinning my wheels a bit here-- getting an API error on the result:
// API ERROR: 'instruction' is a required property
Been playing around for an hour but have run out of time, will continue to experiment over the upcoming days. Any ideas on how to help?

I'm not sure if I understood it correctly, but there is a CodeCompletion feature showcased here: https://youtu.be/7k0KZsheLP4?si=-htsXx8ErRjG62ER&t=387. Is this what you are looking for?

Ah not quite-- unless the CodeCompletion feature also works with prompts?
I'm looking to write a prompt inline and get the result inline (not necessarily write partial code inline and get the result inline)

Could this be related to https://github.com/jackMort/ChatGPT.nvim/issues/285 ?


Update to Jupyter Core 1.3.

This PR updates the dependency from the Microsoft.Quantum.Katas package to Microsoft.Jupyter.Core to version 1.3, and uses new functionality in that version to provide extended documentation about the %kata and %check_kata magic commands.

Could you please clarify 1) when does this change take effect? (I'm assuming with the next release?) and 2) what does the effect of this change look like? I'm not sure how the documentation for magic commands can be accessed.

Could you please clarify 1) when does this change take effect? (I'm assuming with the next release?) …

This was the content of https://github.com/microsoft/iqsharp/pull/113 and https://github.com/microsoft/iqsharp/pull/114, and should hopefully be a minor enhancement for the next release of IQ#, yes.

…and 2) what does the effect of this change look like? I'm not sure how the documentation for magic commands can be accessed.

Since IQ# 0.5, ? commands can be used to look up documentation on magic commands:

This needs some improvement to make use of the logic in https://github.com/microsoft/iqsharp/pull/114, but in the meantime https://github.com/microsoft/iqsharp/pull/113 generates Markdown documents from each magic symbol as a part of builds; these Markdown files could in principle be added to reference documentation.

Thanks for the review, and my apologies for not providing more context from the start!


Remove identifiers_to_exclude from test_utils (take 1)

Depends on #296
Delete dead code.

replaced by #311


feature request - clear format of text when normal pasting (not from clipboard in maccy)

it would be nice if the format of the text when pasting gets cleared even when normal copy and pasting. i know that the feature exists when pasting from maccy but i'd like to have it when not grabbing something previously copied.

please use Pure Paste app for this https://apps.apple.com/us/app/pure-paste/id1611378436?mt=12


Unable to see correct physical plan on executing delta merge

Environment: DBR 8.3 | Spark 3.1.1 | Scala 2.12
Trying to reproduce what is given at https://kb.databricks.com/delta/delta-merge-into.html
Ran the following code:
val df = spark.range(30000000)
    .withColumn("par", ($"id" % 1000).cast(IntegerType))
    .withColumn("ts", current_timestamp())
    .write
      .format("delta")
      .mode("overwrite")
      .partitionBy("par")
      .saveAsTable("delta_merge_into")

val updatesTableName = "update"
val targetTableName = "delta_merge_into"
val updates = spark.range(100).withColumn("id", (rand() * 30000000 * 2).cast(IntegerType))
    .withColumn("par", ($"id" % 2).cast(IntegerType))
    .withColumn("ts", current_timestamp())
    .dropDuplicates("id")
updates.createOrReplaceTempView(updatesTableName)

val fdf = spark.sql(s"""
    |MERGE INTO $targetTableName
    |USING $updatesTableName
    |ON $targetTableName.id = $updatesTableName.id
    |WHEN MATCHED THEN
    |  UPDATE SET $targetTableName.ts = $updatesTableName.ts
    |WHEN NOT MATCHED THEN
    |  INSERT (id, par, ts) VALUES ($updatesTableName.id, $updatesTableName.par, $updatesTableName.ts)
 """.stripMargin)

fdf.explain()

The physical plan shown is this:
== Physical Plan ==
Execute MergeIntoCommandEdge
   +- MergeIntoCommandEdge SubqueryAlias update, SubqueryAlias spark_catalog.default.delta_merge_into,
   Delta[version=7, dbfs:/user/hive/warehouse/delta_merge_into], (id#4334L = cast(id#4319
   as bigint)), [Update    [actions: [`id` = id#4334L, `par` = par#4335, `ts` = ts#4324]]],
   [Insert [actions: [`id` = cast(id#4319 as bigint), `par` =  par#4321, `ts` = ts#4324]]],
   StructType(StructField(id,LongType,true), StructField(par,IntegerType,true),
      StructField(ts,TimestampType,true))

This does not give me insight into the partitions read. How do I access the physical plans shown on the page linked above? (Spark UI also doesn't show the detailed physical plan anywhere)
When using the merge API, something like so: (taken from examples)
    deltaTable.as("oldData")
      .merge(
        newData.as("newData"),
        "oldData.id = newData.id")
      .whenMatched
      .update(Map("id" -> col("newData.id")))
      .whenNotMatched
      .insert(Map("id" -> col("newData.id")))
      .execute()

In this case, I'm not even sure what to call explain on to see the physical plan, but I'm required to for my use case.
I need to check whether partition pruning is happening or not for certain specific scenarios.

explain doesn't provide the internal queries used by MERGE. You can check the Spark UI which will show the internal SQL queries of MERGE.


flutter dashboard task detail shows invalid "Running for" time

See screenshot, the "Running for time looks like its broken":

@XilaiZhang can you dedupe this against your open bug?

Yeah I thought Casey kindly fixed this in https://github.com/flutter/cocoon/pull/1611, not sure why this is happening again

This is because these targets are using the luci scheduler. One's using the new scheduler have this fixed

Just asking, what would be the approximate time for the migration from luci scheduler to cocoon scheduler complete?

Just asking, what would be the approximate time for the migration from luci scheduler to cocoon scheduler complete?

ETA this quarter

Now everything is in cocoon scheduler: https://github.com/flutter/flutter/issues/92300, and the issue is fixed.


Feature Request: Option to hide site icons in timeline

Having the site name is enough to identify a source; it’d be nice to have the option to hide the site icon and be able to fit even more content in a cleaner looking timeline.

This is very similar to what is discussed in #1551 and #3098.

@ismh On macOS, iOS, or both?

Definitely on iOS, but I wouldn’t mind it on macOS either.

@brentsimmons I think this can be handled on iOS by adding another slot on the Icon Size slider.
Do you want this for macOS too? If so, is it a checkbox on the General tab or something else?

why the icon size slider is missing on macOS app?

For reference here are the two apps side by side. I am ofc. not saying that NetNewsWire needs to clone the Feedly layout, but the images should well illustrate the difference in purposeful information density.


Vivado freezes

Hi @stnolting
Since this commit the implementation in Vivado crashes.  It is freezes in the line:
# launch_runs impl_1 -to_step write_bitstream -jobs 4

That is, some change between commit 5486aa4 and commit 46baf5a causes a failure in the implementation with vivado.
As we can see  locally in the following image:

It should be noted that also crashes in my gitlab continuous integration.
The vivado version is v2022.2.
Note that until commit 5486aa4 there was no problem with the implementation so I am going to debug from 5486aa4, commit by commit to see what is causing the failure and I will update the progress on this issue.
I hope that we will solve it quickly! :smiley:
Cheers!

/cc @umarcor

Update:
The problem comes since the commit fa872ed - [rtl] add new generic cache module
I'm going to synth with ghdl to see if I get any hint.

Update 2:
I've synthesized with GHDL and with yosys (in commit fa872ed) and these have not given me any error.
Even I've generated a bitstream with nextpnr-xilinx/prjxray and the design works fine in FPGA. Therefore, the problem comes  specifically from Vivado.
Something that has caught my attention is that applaying the following code:
set -ex

cd $(dirname "$0")

mkdir -p build

echo "Analyze NEORV32 CPU"

ghdl -i --workdir=build --work=neorv32  ./neorv32-setups/neorv32/rtl/core/*.vhd
ghdl -i --workdir=build --work=neorv32  ./neorv32-setups/neorv32/rtl/core/mem/neorv32_dmem.default.vhd
ghdl -i --workdir=build --work=neorv32  ./neorv32-setups/neorv32/rtl/core/mem/neorv32_imem.default.vhd
ghdl -i --workdir=build --work=neorv32 ./neorv32-setups/neorv32/rtl/test_setups/neorv32_test_setup_bootloader.vhd
ghdl -m --workdir=build --work=neorv32 neorv32_test_setup_bootloader

echo "Synthesis with ghdl"

ghdl --synth --workdir=build --work=neorv32 neorv32_test_setup_bootloader > all_design.vhd

The  neorv32_cache.vhd is not analyse, as we can see in the following image:

When the file neorv32_cache.vhd is found in the path neorv32-setups/neorv32/rtl/core/.
Considering that it is since this file was added that the implementation in Vivado crashes, maybe it has something to do.
Still working on it!

Hey there!
Which version of the core are you using?

The problem comes since the commit fa872ed - [rtl] add new generic cache module

Do you use this cache (the external bus interface cache) at all in your setup?

Since this commit the implementation in Vivado crashes. It is freezes in the line:

Could you open your project with the GUI and run the synthesis step? Does that also crash/freeze?
A common reason for Vivado to freeze (or at least to take ages) while running implementation is when exhausting all available FPGA resources. For example, if no more BRAM are available Vivado tries to use generic FFs+LUTs to implement the remaining memories - and it usually takes some time for Vivado to figure out this won't succeed 😅

The neorv32_cache.vhd is not analyse, as we can see in the following image:

Hm, maybe you are using a version where the cache module is already present (as rtl file) but is not yet instantiated anywhere. However, that should not be a problem, for Vivado 🤔

Wow!
Now with this new commit that issue is solved. :partying_face:
To reproduce the failure:
- git clone --recursive https://github.com/stnolting/neorv32-setups
- cd neorv32-setups/neorv32
- git checkout 46baf5a998960dc4c8da99a25841f72120ee2a94
- cd ..
- cd vivado/arty-a7-test-setup
- source /tools/Xilinx/Vivado/2022.2/settings64.sh
- vivado -mode batch -nojournal -nolog -source create_project.tcl

And in this commit (46baf5a) can be checked that the Vivado freezes in the indicated line.

Which version of the core are you using?

I'm was using V<IP_ADDRESS> but now neorv32-setups points to neorv32 bd4fb29 commit that is v<IP_ADDRESS> and implementation with Vivado works fine with this version.
I got a scare because the CI in my gitlab was broken. :scream: But now looks that works fine.

A common reason for Vivado to freeze (or at least to take ages) while running implementation is when exhausting all available FPGA resources. For example, if no more BRAM are available Vivado tries to use generic FFs+LUTs to implement the remaining memories - and it usually takes some time for Vivado to figure out this won't succeed 😅

I don't know what could be the reason. Anyway, as I say you can reproduce the failure pointing neorve32 to 46baf5a commit.
This leads me to wonder, what synth tool do you use? :thinking:
As always thank you very much for your quick response!!
Cheers!

Now with this new commit that issue is solved.

Hmm... Ok, this will cause some sleepless nights on my side... 🙈
Anyway, great to heat that your setup works (again)!

And in this commit (46baf5a) can be checked that the Vivado freezes in the indicated line.

I have tested this version with Quartus Prime and Lattice Radiant - but without any problems. Maybe Vivado really has problems with RTL files that are part of the design files but are not actually used. I will have to investigate this.

This leads me to wonder, what synth tool do you use?

For the AMD world I am using Vivado 2019.2. The newer versions are so much faster (and so much fancier!) but my plain old Z3-like computer cannot handle that... :wink:

As always thank you very much for your quick response!!

For the AMD world I am using Vivado 2019.2. The newer versions are so much faster (and so much fancier!) but my plain old Z3-like computer cannot handle that... 😅

:rofl: :rofl:
In my home computer I have the v2018.3 and also crashes with neorv32-setups pointing to neorv32 46baf5a commit.
If you try to reproduce this failure tell me please.

Anyway, great to heat that your setup works (again)!

Yeah, I am happy again.  :sunglasses:

I have tested this version with Quartus Prime and Lattice Radiant - but without any problems. Maybe Vivado really has problems with RTL files that are part of the design files but are not actually used. I will have to investigate this.

Let's hope it was just a momentary lapse. It is curious that with yosys+nexpnr+prxray you can synthesize for the arty something that crashes in Vivado 🤔
It occurs to me that maybe the arty option can be added to the CI list of implementations. :monocle_face:
Anyway, thank you for your appreciated feedback!
Cheers!

If you try to reproduce this failure tell me please.

I have checked that specific version with Quartus Prime and Lattice Radiant - without any issues.

Let's hope it was just a momentary lapse

Right, let's hope that... 🙈 😅

It occurs to me that maybe the arty option can be added to the CI list of implementations.

That would be awesome! Feel free to propose a PR for that :wink:

I think this can be closed now, right?

That would be awesome! Feel free to propose a PR for that 😉

When I find some time I could do it (I'm a little busy right now but I won't forget it.) :upside_down_face:

I think this can be closed now, right?

Yeah!