[FlatButton] Unused props.

I noticed there are unused props in FlatButton, here:
onKeyboardFocus: React.PropTypes.func,
onMouseEnter: React.PropTypes.func,
onMouseLeave: React.PropTypes.func,
onTouchStart: React.PropTypes.func,

And here:
  onKeyboardFocus,
  onMouseLeave,
  onMouseEnter,
  onTouchStart,

Unless there's a plan to use these, I'll remove them.

Are you sure those aren't being use?
Looks like they're being called here: https://github.com/callemall/material-ui/blob/eec70d6bb255d86bb2852c3d1da17f01b826fed2/src/flat-button.jsx#L209-L227
That being said, we could probably check to see if the prop is defined before attempting to call:
if (this.props.onMouseLeave)  this.props.onMouseLeave(e);

Yes, sorry, realised my mistake and just came to close this. Shouldn't depend on syntax highlighting!


[scalability] a script to automate threshold estimations

What would you like to be added:
A script to automate the estimation for scalability thresholds, based on the experiment here: https://github.com/kubernetes-sigs/kueue/issues/2066#issuecomment-2079053502.
In order to make the estimations more reliable we should only use main branch. For that, it would be good to setup the periodic build of the main branch for perf tests.
Note: Once the script is added, and we have data for the main branch, use it to set new values.
Why is this needed:
There is no easy and reliable way to set the thresholds, it leads to flakes, and unnecessary chore.
Having an easy way to collect the data per build will also enable us to see visually if there is a drop in performance on the main branch, which isn't picked by the current automation.
Also, we could use it to confirm our wins when we optimize the performance, by visualizing easily that there
is better performance based on historical main builds.

/cc @alculquicondor @trasc

Right, there would be some maintenance cost, which makes me hesitant as well.
The idea is that currently is there is a failure it is not clear it would be not clear to me how much to bump the thresholds, and collecting the data manually takes time.
All In all, I'm ok to park it for now and see how it plays out, and invest only if bumping becomes to much chore.

/close
Parking the idea. It does not seem like a priority now as the tests are rather stable after a couple of bumps.

cross-referencing the discussion which may support re-considering adding the script: https://github.com/kubernetes-sigs/kueue/pull/2758


Solve index exception in HeaderHelper

Check if the list is empty before trying to apply the headerhelper to avoid index exception

thank you


Update repository after transfer

See https://github.com/senzing-garage/garage-roadmap/issues/3

Pull requests:

https://github.com/senzing-garage/docker-ibm-db2/pull/33


No longer stops on breakpoints...

Hi, this plugin has been working brilliantly for me until recently.
I'm not sure what the change is, Atom has updated, but our dev env has not changed, that config is exactly the same.
The PHP execution does halt, and the debugger says "connected", but all of the "step in", "step over" controls are disabled, and it doesn't stop on any break points.
if I close the debugger then execution carries on - so it is connecting, its just not going to a break point or letting me control it....
Atom : 1.17.2
XDEBUG config
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=<IP_ADDRESS>
xdebug.remote_autostart=1

Can you check if you are still having issues in 0.2.6?


Batch Command / Multi Command Container for single Aggregate

For our API it would be nice to have some kind of BatchCommand. This is basically a command, which contains a List of commands for a single Aggregate.
If you have fine granular commands (and no cache), this would provide some huge performance improvements, because the aggregate must only be loaded once. And the resulting events can be persisted with a single write operation.
At the moment I use a custom MyAggregateBatchCommand, which gets handled by MyAggregate and this then calls the matching @CommandHandlers on this Aggregate. Something like this:
@Aggregate
class MyAggregate {
  @CommandHandler
  public void handle(FooCommand cmd) {
    // validate cmd
    apply(new FooEvent(...));
  }

  @CommandHandler
  public void handle(BarCommand cmd) {
    // validate cmd
    apply(new BarEvent(...));
  }

  @CommandHandler
  public void handle(MyAggregateBatchCommand cmd) {
    // pseudo code, because shorter:
    cmd.getCommands().forEach(command -> {
      command.setTargetAggregateIdentifier(cmd.targetAggregateIdentifier);
      command.setTargetAggregateVersion(cmd.targetAggregateVersion++);
      this.handle(command);
    });
  }
}

But this has a few issues:

If a @CommandHandler requires additional parameters like @MetaData or some Spring Bean injection, the MyAggregateBatchCommand command handler will become really huge and ugly.
External Command Handlers can only work, if you inject those into the MyAggregateBatchCommand command handler, which makes the code even more coupled, and ugly.
(here I'm not sure, if this is intended or just a lucky coincidence) If one of the command handlers throws an exception, then all previously applied events are discarded. That's nice. But I'm not sure if this is "by design".

As far as I've seen CommandBus and CommandGateway only provide the execution of a single command. This makes sense, because each command can contain a different @TargetAggregateIdentifier. Though I guess, I won't make sense to add a dispatchBatch or sendBatch method.
Basically all I need is to dispatch more commands from the MyAggregateBatchCommand command handler, and stay within the same UnitOfWork (as far as I understood the concept) in order to have a "all or nothing" transaction.
So my question is: How can this be achieved?

I maybe found a solution, but I'm not sure at all if this behavior is intended.
Some feedback would be highly appreciated!
@Aggregate
class MyAggregate {
  @CommandHandler
  public void handle(FooCommand cmd) {
    // validate cmd
    apply(new FooEvent(...));
  }

  @CommandHandler
  public void handle(BarCommand cmd) {
    if("1".equals("1")) { // simulate validation exception
      throw new RuntimeException("??");
    }
    apply(new BarEvent(...));
  }

  @CommandHandler
  public void handle(
      MyAggregateBatchCommand cmd,
      CommandGateway commandGateway,
      UnitOfWork<?> unitOfWork) {

    try {
      FooCommand cmd1 = cmd.getFooCommand();
      cmd1.setTargetAggregateIdentifier(cmd.getTargetAggregateIdentifier());
      cmd1.setTargetAggregateVersion(cmd.getTargetAggregateVersion());
      commandGateway(cmd1);

      BarCommand cmd2 = cmd.getBarCommand();
      cmd2.setTargetAggregateIdentifier(cmd.getTargetAggregateIdentifier());
      cmd2.setTargetAggregateVersion(cmd.getTargetAggregateVersion() + 1);
      commandGateway(cmd2);
    } catch(Exception ex) {
      unitOfWork.rollback(ex);
    }

  }
}

This works as expected. I guess Axon has some kind of UnitOfWork hierarchy, because all 3 @CommandHandlers receive different UnitOfWork instances. But the unitOfWork.rollback() call on the "parent" discards all generated events.
If I remove the try-catch block, then FooEvent will get persisted.

Is this the way to go? Or what can go wrong? Will it load the Aggregate only once? (I'm not sure how Axon internally handles this)

Batch commands are usually best handled in an "external Command Handler". I.e. a Command Handler that is not inside an Aggregate, but rather on a "singleton" bean.
Explicitly rolling back the Unit of Work is not recommended. Instead, the command handler should take the necessary actions to ensure side-effects that have been executed already are rolled back.
Since this seems to be a question, rather than an issue, I'm closing it here. You can refer to the mailinglist<EMAIL_ADDRESS>for questions, or comment here if you feel this is an issue.


Fix RFC Quotation

Minor nitpick: The quote in http://www.python-requests.org/en/latest/user/quickstart/#response-headers is currently not formatted properly. This PR fixes this.

Fantastic @mhils! Thanks! :cake: :sparkles: :cake:


feat: add a new formatter for caddyfile

Thanks for another formatter!
Looks perfect, except for the Caddyfile issue with language-id. I'll merge this and add a special case _Caddyfile in format-all until GitHub Linguist adds an official identifier for it.


Difference of iteration count in camera-ready branch and main branch

Hi, I have one problem about the configuration. I notice that the camera-ready branch has set the default iteration to 40 for pcap w/o dp while the main branch set it to 80000. Could you please explain this difference? Are the results in the NetShare essay produced by experiments using the config in camera-ready branch?

I notice that the camera-ready branch has set the default iteration to 40 for pcap w/o dp while the main branch set it to 80000. Could you please explain this difference?

As written in the README,

We provide four different examples to cover the different datasets/scenarios that we described in the paper, i.e., PCAP (CAIDA dataset, with or without differential privacy), NetFlow (UGR16 dataset, with or without differential privacy). These examples use the exact same dataset as in the paper (1 million packets or flow records) but with a much smaller training iterations for quick validation. Therefore, the quality of the results generated by these example configurations (configs/config_test{i}) are not informative.
If you would like to reproduce the results in our paper, please use the configuration files named configs/config{i} and we recommend to follow the multi-machine setup guideline to achieve the maximum efficiency.

iteration=40 is just for quick E2E validation and does not generate informative results.

Are the results in the NetShare essay produced by experiments using the config in camera-ready branch?

You may refer to the configuration here but notice that it may not be plugged-in ready as we modified the codebase a lot since then but the key config details (e.g., iteration, sample_len) should be the same.
You may also refer to the branch from Purdue University for a nice reproduction example and even added their own datasets!
We apologize for the possible confusion here and recently did another refactor (python 3.9 and using PyTorch). We will release that version soon and please stay tuned. Thank you again for your interest in our work.


Question: How to fully parse a large file in an elegant way? (Solved)

I'm using Sprache to parse GCode .
Sprache is doing well by parsing single line.
However I found if input is too long and Parse.Many() doesn't parse to the end.
My parse result is stopped at position 73 but Remainder.Position is 65, so I don't know how to use IResult.IInput.Remainder.Position with IResult.IInput.Remainder.Source to get a truncated string.
Edit: I just found there is a method Parser( IInput ) would take IInput, but I have to deal with the not parsing full line behavior above.
I've read following articles:

Nicholas Blumhardt's this introductory article.
Justin Pealing's Sprache example with syntax
^^^^^^^ I'll suggest to add Justin Pealing's article to Sprache's github since it provide examples for each syntax.
Alexey Golub's article on monadic parser combinators

Edit2: I didn't take negative sign into account, after I consume the negative sign, it works smoothly.
Don't know how to close this issue.
Please close this question.
My question is how to let Sprache keep parsing to the end of text?
I couldn't find a Parse taking IInput as argument. Maybe I was digging the wrong way.
I assume there is an elegant way to fully parse a file.
Many thanks for reply! Even the answer might be "no other way to parse a large file".
Following is the minimum reproducible example.
	public class NcLineParser
        {
		public static readonly Parser<CNcTokenBase> ArgTokenParser =
		from Prefix in Parse.Letter.AtLeastOnce().Text().Token()

			// Arg number Might be X2=A, Y3=4.0
		from ArgNumber in Parse.Number.Optional().Token()
		from EqualSign in Parse.Char( '=' ).Optional().Token()

			// it could be X.3, X1 X1.2, so three value are optional
		from ValueInteger in Parse.Number.Optional()
		from ValueDecimalSign in Parse.Char( '.' ).Optional().Token()
		from ValueFraction in Parse.Number.Optional()

                // This is a place holder, actual logic is taking all variables above.
		select new CArgumentToken( Prefix );
        }

	internal class CArgumentToken
	{
		private string prefix;

		public CArgumentToken( string prefix )
		{
			this.prefix = prefix;
		}
	}

// Test case
	[Test]
	public void TestReadFile()
	{
		string szBlock = "T1M6\r\nG0Z5.000\r\nG0X0.000Y0.000S24000M3\r\nG0X0.001Y0.001Z5.000\r\nG1Z-3.743F6000.0\r\nG1X0.086Z-3.566\r\nX0.255Z-3.588\r\nX0.424Z-3.608\r\nX0.594Z-3.664\r\nX0.763Z-3.667\r\n";
		var result = NcLineParser.ArgTokenParser.Many().TryParse( szBlock );

                // It doesn't pass.
		Assert.AreEqual( true, result.Remainder.AtEnd );
	}

The problem is number not taking negative sign, so my parser end prematurely when seeing "Z-3".
After checking negative sign, it works well.


Python: Django

Description 📜
In this Video i have shown What is Django, it's features, advantages & disadvantages and how to install it.
Fixes #2249

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[x] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[ ] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[ ] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[x] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@queenish001
plz review my PR.
Thanks


Add return value to diff_relocs

Returns true if no diff found, else false

Oh actually, it's probably better to invert the true/false to be consistent with the return value of diff_secs


FoldWhile in Server.wl should be renamed to fix name clash with new System` symbol introduced in Mathematica 12.2

Basically, FoldWhile is a new System-context symbol in Mathematica version 12.2 and higher:

So there is a name clash with the function defined in Server.wl. As far as I can tell, the LSP function and the System-context context function do the same thing, but the LSP function should be renamed to fix the issue.
[INFO  2021-01-14T11:09:14] Initializing Wolfram Language Server

SetDelayed::write:
   Tag FoldWhile in FoldWhile[f_, x_, list_List, test_] is Protected.

SetDelayed::write:
   Tag FoldWhile in FoldWhile[f_, list_List, test_] is Protected.

Fixed in b3b85a5 develop branch. It will be merged on master soon. Thanks for the feedback!

Fixed in b3b85a5 develop branch. It will be merged on master soon. Thanks for the feedback!


Feature: Prevent user from typing in input at max value

Is it possible to prevent typing conditionally?
I'd like to implement a max-length feature of textarea element using editable.js.

No, that's not possible at the moment.
You could try setting up a beforeinput event on the dom element.
That one bubbles up and is cancelable.
But what we're usually doing is to extract the length and then show some warning if the value is above the limit. This results in a better behavior as it won't just cut off characters and also works the with copy/paste of text. Controlling the user input is too complicated most times.


[Feature] Add a composite component composed of StatefulSet and Service objects

Is your feature request related to a problem? Please describe.

We all know that the webservice component consists of Deployment and Service, so there is no composite component composed of StatefulSet and Service objects
Describe the solution you'd like

Add a composite component composed of StatefulSet and Service objects
Describe alternatives you've considered

Additional context

What's the benefits?


Shell integration unavailable

hi all
dear i always face this problem
((Shell Integration Unavailable
Claude won't be able to view the command's output. Please update VSCode (CMD/CTRL + Shift + P → "Update") and make sure you're using a supported shell: zsh, bash, fish, or PowerShell (CMD/CTRL + Shift + P → "Terminal: Select Default Profile"). Still having trouble?))
My vs code updated to last version
i set terminal powershell as defults
but still get always same error
so i appreciate if any one can assisst to solve

The image shows an npm command to install development dependencies for a Node.js project:
npm install --save-dev jest supertest mongodb-memory-server

The warning message indicates an issue with shell integration in your development environment (such as Visual Studio Code). To resolve this, you can try the following steps:

Update VSCode: Press CMD/CTRL + Shift + P and select "Update" to check for and install any available updates for the editor.
Select a Supported Shell: Press CMD/CTRL + Shift + P again, search for "Terminal: Select Default Profile," and choose a supported shell (zsh, bash, fish, or PowerShell).
Ensure the Selected Shell is Installed: If the selected shell isn't installed on your system, install it and then reselect it in VSCode.

These steps should help integrate the terminal with your editor.

I've selected Powershell. But I still face this issue.

I have the same problem too, please help

Same here, worked some versions ago.

Hey guys sorry you're having trouble with this. I've updated the troubleshooting doc with details that helped another user, please see if this resolves the issue: https://github.com/saoudrizwan/claude-dev/wiki/Troubleshooting-‐-Shell-Integration-Unavailable#still-having-trouble
If that doesn't work, pls provide the following information

Check what version of vscode youre on: Help > About
Run this command in your vscode terminal: echo $SHELL to see what shell you're using

Hey guys sorry you're having trouble with this. I've updated the troubleshooting doc with details that helped another user, please see if this resolves the issue: https://github.com/saoudrizwan/claude-dev/wiki/Troubleshooting-‐-Shell-Integration-Unavailable#still-having-trouble
If that doesn't work, pls provide the following information

Check what version of vscode youre on: Help > About
Run this command in your vscode terminal: echo $SHELL to see what shell you're using

Thx a lot, this works for me

I got the same error during the next update. It’s not clear how to fix it. Neither the instructions nor rolling back to the previous version helps.

I got the same error during the next update. It’s not clear how to fix it. Neither the instructions nor rolling back to the previous version helps.

Solution:
To resolve this error, you need to change the execution policy in PowerShell. By default, PowerShell blocks script execution to enhance security. To allow script execution, you can change the execution policy to a more lenient setting.
Steps to Change the Execution Policy:

Open PowerShell as an Administrator:

Press Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal (Administrator)".

Change the Execution Policy:

Enter the following command and press Enter:Set-ExecutionPolicy RemoteSigned

This command will set the execution policy to RemoteSigned, allowing you to run local scripts and scripts downloaded from the internet if they are signed by a trusted publisher.

Confirm the Change:

PowerShell will ask if you want to change the execution policy. Type Y and press Enter.

Verify the Policy Change:

Enter the following command to confirm the policy change:Get-ExecutionPolicy

You should see RemoteSigned as the current execution policy.

Now, you should be able to load and execute your PowerShell profile (Microsoft.PowerShell_profile.ps1) without errors.
Important:

The RemoteSigned policy is a compromise between security and convenience. It allows local scripts to run without restrictions but requires scripts downloaded from the internet to be signed.
If you want to revert the execution policy to a stricter setting, such as AllSigned or Restricted, you can do so using the Set-ExecutionPolicy command.

After completing these steps, the error should be resolved, and you should be able to use your PowerShell profile without issues.

@RaySinner I updated the troubleshooting doc with steps to update your powershell execution policy, can you pls look it over? https://github.com/saoudrizwan/claude-dev/wiki/Troubleshooting-‐-Shell-Integration-Unavailable#additional-troubleshooting-for-windows-powershell-users

Hello, i have also just encountered this problem and i have tried all the steps.
I am using windows 10, and my vscode is on version 1.93.1.
I have tried changing the default terminal profile to powershell but it still wont work.
I have also tried the manual installation and that also wont work.
I have also checked the execution policies and my powershell is on RemoteSigned, and that still wont work.
Any suggestions?

Hi I have tried all the suggested troubleshooting steps but nothing has resolved the issue. Claude Dev cannot see the output of any of the shell commands it executes in my VSCode
VSCode info:
Version: 1.93.1
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z (1 wk ago)
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 23.6.0
Laptop info:
macOS: Sonoma 14.6.1
Shell info:
I've tried with both zsh and bash being the default shell for VSCode. I've also made sure the default shell on my system matched the shell being used by vscode

Trying to use Claude to debug itself, it gave me this suggested workaround for now.. but it seems to think the issue lies in the execute_command method
Thank you for the update. This is a significant finding in our debugging process. Let's analyze what we've learned:

We can execute commands successfully using the execute_command tool.
We can write output to a file using command redirection.
We can read the contents of files using the read_file tool.
The output of commands is not directly visible in the <function_results> when using execute_command.
Based on these observations, it appears that the issue lies in how the output of execute_command is being handled or returned. Here's what we can conclude:

The commands are being executed correctly.
The output is being generated but not captured or returned in the <function_results>.
To further debug this issue, we could:

Check if there's a limitation on the size of output that can be returned.
Verify if there's a specific formatting or encoding issue with the output.
Investigate if there's a configuration setting that's preventing command output from being returned.
As a workaround for now, we can use a combination of execute_command to run commands and redirect output to files, and then use read_file to retrieve the output. This isn't ideal, but it allows us to see the results of our commands.

also having the same issue.

Shell: /usr/bin/zsh
I'm using WSL2, btw. Not sure if that's relevant.

Same problem on win server 2017.
Uninstalled VS-code und alles, have tried everything - But Claude Dev is still present after erasing VS-code. How do  I clean this totally and start from scratch?

@lars67 can you pls make sure you've got the latest version of powershell installed? It seems older versions don't work well with the shell integration

@abbasmech @lars67 @naroga @kingcoconut @JudeJeremy @RaySinner @crybest @arunkr93 @alexxety
I've created a new repo shell-integration-problems that serves as a minimal reproducible environment to help report issues with shell integration and assist the VSCode team in fixing & improving the API. Please follow the instructions in the readme and feel free to contact me on discord if you need help.

Using PowerShell, remote signed execution policy, PowerShell 7, and Cline can execute commands when running direct with code command. When I run from my VSCode desktop icon, PowerShell will not launch, it is trying to cwd into my users/desktop folder which doesn't exist, says the error.
More importantly that's not where PowerShell executable is, so I don't get it. I am not getting any errors when running direct from code command, but Cline can't see the output either.
I tried following the instructions in the Shell-integration problems repo, however the debug console doesn't seem to be very accessible with screen readers (Using NVDA here). That's where I get stuck in the process. However, terminal launches and commands execute fine using the extension command.
Another problem might be that Windows won't uninstall PowerShell V5.1 which comes with Windows. I'm not sure whether you can uninstall it--I've already tried to change my shortcuts to have everything redirect to seven by default, but that didn't appear to work.

I got the same error during the next update. It’s not clear how to fix it. Neither the instructions nor rolling back to the previous version helps.

Solution:
To resolve this error, you need to change the execution policy in PowerShell. By default, PowerShell blocks script execution to enhance security. To allow script execution, you can change the execution policy to a more lenient setting.
Steps to Change the Execution Policy:

Open PowerShell as an Administrator:

Press Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal (Administrator)".

Change the Execution Policy:

Enter the following command and press Enter:Set-ExecutionPolicy RemoteSigned

This command will set the execution policy to RemoteSigned, allowing you to run local scripts and scripts downloaded from the internet if they are signed by a trusted publisher.

Confirm the Change:

PowerShell will ask if you want to change the execution policy. Type Y and press Enter.

Verify the Policy Change:

Enter the following command to confirm the policy change:Get-ExecutionPolicy

You should see RemoteSigned as the current execution policy.

Now, you should be able to load and execute your PowerShell profile (Microsoft.PowerShell_profile.ps1) without errors.
Important:

The RemoteSigned policy is a compromise between security and convenience. It allows local scripts to run without restrictions but requires scripts downloaded from the internet to be signed.
If you want to revert the execution policy to a stricter setting, such as AllSigned or Restricted, you can do so using the Set-ExecutionPolicy command.

After completing these steps, the error should be resolved, and you should be able to use your PowerShell profile without issues.

This worked perfectly. Thank you

I already have and using a remote signed profile, unless it's different in VSCode. I'll double check.

From: bolaji3009 @.>
Sent: Wednesday, December 25, 2024 7:33 AM
To: cline/cline @.>
Cc: Orinks @.>; Comment @.>
Subject: Re: [cline/cline] Facing "Shell Integration Unavailable" even after following troubleshooting guide (Issue #299)
I got the same error during the next update. It’s not clear how to fix it. Neither the instructions nor rolling back to the previous version helps.
Solution:
To resolve this error, you need to change the execution policy in PowerShell. By default, PowerShell blocks script execution to enhance security. To allow script execution, you can change the execution policy to a more lenient setting.
Steps to Change the Execution Policy:

Open PowerShell as an Administrator:

 *   Press Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal (Administrator)".

Change the Execution Policy:

 *   Enter the following command and press Enter:

Set-ExecutionPolicy RemoteSigned
 *   This command will set the execution policy to RemoteSigned, allowing you to run local scripts and scripts downloaded from the internet if they are signed by a trusted publisher.

Confirm the Change:

 *   PowerShell will ask if you want to change the execution policy. Type Y and press Enter.

Verify the Policy Change:

 *   Enter the following command to confirm the policy change:

Get-ExecutionPolicy
 *   You should see RemoteSigned as the current execution policy.

Now, you should be able to load and execute your PowerShell profile (Microsoft.PowerShell_profile.ps1) without errors.
Important:

The RemoteSigned policy is a compromise between security and convenience. It allows local scripts to run without restrictions but requires scripts downloaded from the internet to be signed.
If you want to revert the execution policy to a stricter setting, such as AllSigned or Restricted, you can do so using the Set-ExecutionPolicy command.

After completing these steps, the error should be resolved, and you should be able to use your PowerShell profile without issues.
This worked perfectly. Thank you
—
Reply to this email directly, view it on GitHubhttps://github.com/cline/cline/issues/299#issuecomment-2561872312, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJFLE3F6FH632MPWMKZZVML2HKQ2TAVCNFSM6AAAAABOHD5QPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRHA3TEMZRGI.
You are receiving this because you commented.Message ID: @.***>

Oh, and another thing. The win+X shortcuts open PowerShell five, not seven. So doesn't set the execution policy in the correct version.

From: Joshua Tubbs @.>
Sent: Wednesday, December 25, 2024 7:47 AM
To: cline/cline @.>
Subject: Re: [cline/cline] Facing "Shell Integration Unavailable" even after following troubleshooting guide (Issue #299)
I already have and using a remote signed profile, unless it's different in VSCode. I'll double check.

From: bolaji3009 @.>
Sent: Wednesday, December 25, 2024 7:33 AM
To: cline/cline @.>
Cc: Orinks @.>; Comment @.>
Subject: Re: [cline/cline] Facing "Shell Integration Unavailable" even after following troubleshooting guide (Issue #299)
I got the same error during the next update. It’s not clear how to fix it. Neither the instructions nor rolling back to the previous version helps.
Solution:
To resolve this error, you need to change the execution policy in PowerShell. By default, PowerShell blocks script execution to enhance security. To allow script execution, you can change the execution policy to a more lenient setting.
Steps to Change the Execution Policy:

Open PowerShell as an Administrator:

 *   Press Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal (Administrator)".

Change the Execution Policy:

 *   Enter the following command and press Enter:

Set-ExecutionPolicy RemoteSigned
 *   This command will set the execution policy to RemoteSigned, allowing you to run local scripts and scripts downloaded from the internet if they are signed by a trusted publisher.

Confirm the Change:

 *   PowerShell will ask if you want to change the execution policy. Type Y and press Enter.

Verify the Policy Change:

 *   Enter the following command to confirm the policy change:

Get-ExecutionPolicy
 *   You should see RemoteSigned as the current execution policy.

Now, you should be able to load and execute your PowerShell profile (Microsoft.PowerShell_profile.ps1) without errors.
Important:

The RemoteSigned policy is a compromise between security and convenience. It allows local scripts to run without restrictions but requires scripts downloaded from the internet to be signed.
If you want to revert the execution policy to a stricter setting, such as AllSigned or Restricted, you can do so using the Set-ExecutionPolicy command.

After completing these steps, the error should be resolved, and you should be able to use your PowerShell profile without issues.
This worked perfectly. Thank you
—
Reply to this email directly, view it on GitHubhttps://github.com/cline/cline/issues/299#issuecomment-2561872312, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJFLE3F6FH632MPWMKZZVML2HKQ2TAVCNFSM6AAAAABOHD5QPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRHA3TEMZRGI.
You are receiving this because you commented.Message ID: @.***>

Cline is executing my shell commands, but always says he cannot see the output, so whenever a command is successful he just assumes there is no errors.

From: Joshua Tubbs @.>
Sent: Wednesday, December 25, 2024 7:49 AM
To: cline/cline @.>
Subject: Re: [cline/cline] Facing "Shell Integration Unavailable" even after following troubleshooting guide (Issue #299)
Oh, and another thing. The win+X shortcuts open PowerShell five, not seven. So doesn't set the execution policy in the correct version.

From: Joshua Tubbs @.>
Sent: Wednesday, December 25, 2024 7:47 AM
To: cline/cline @.>
Subject: Re: [cline/cline] Facing "Shell Integration Unavailable" even after following troubleshooting guide (Issue #299)
I already have and using a remote signed profile, unless it's different in VSCode. I'll double check.

From: bolaji3009 @.>
Sent: Wednesday, December 25, 2024 7:33 AM
To: cline/cline @.>
Cc: Orinks @.>; Comment @.>
Subject: Re: [cline/cline] Facing "Shell Integration Unavailable" even after following troubleshooting guide (Issue #299)
I got the same error during the next update. It’s not clear how to fix it. Neither the instructions nor rolling back to the previous version helps.
Solution:
To resolve this error, you need to change the execution policy in PowerShell. By default, PowerShell blocks script execution to enhance security. To allow script execution, you can change the execution policy to a more lenient setting.
Steps to Change the Execution Policy:

Open PowerShell as an Administrator:

 *   Press Win + X and select "Windows PowerShell (Administrator)" or "Windows Terminal (Administrator)".

Change the Execution Policy:

 *   Enter the following command and press Enter:

Set-ExecutionPolicy RemoteSigned
 *   This command will set the execution policy to RemoteSigned, allowing you to run local scripts and scripts downloaded from the internet if they are signed by a trusted publisher.

Confirm the Change:

 *   PowerShell will ask if you want to change the execution policy. Type Y and press Enter.

Verify the Policy Change:

 *   Enter the following command to confirm the policy change:

Get-ExecutionPolicy
 *   You should see RemoteSigned as the current execution policy.

Now, you should be able to load and execute your PowerShell profile (Microsoft.PowerShell_profile.ps1) without errors.
Important:

The RemoteSigned policy is a compromise between security and convenience. It allows local scripts to run without restrictions but requires scripts downloaded from the internet to be signed.
If you want to revert the execution policy to a stricter setting, such as AllSigned or Restricted, you can do so using the Set-ExecutionPolicy command.

After completing these steps, the error should be resolved, and you should be able to use your PowerShell profile without issues.
This worked perfectly. Thank you
—
Reply to this email directly, view it on GitHubhttps://github.com/cline/cline/issues/299#issuecomment-2561872312, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJFLE3F6FH632MPWMKZZVML2HKQ2TAVCNFSM6AAAAABOHD5QPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRHA3TEMZRGI.
You are receiving this because you commented.Message ID: @.***>


Codecov migration to marketplace app

Hi, Tom from Codecov here.
We noticed that you are using Codecov with fairly high frequency, and we’re so excited to see that! However, because you are not using our app, you may have experienced issues with uploading reports or viewing coverage information. This is due to rate-limiting issues from GitHub.
In order to prevent any future outages, we ask that you move over to our GitHub app integration.
The process is extremely simple and shouldn’t require more than a few clicks, and you should not expect any downtime. By moving to our app, you will no longer need an admin or separate account to manage the relationship with GitHub as the team bot.
Let me know if you have any questions, or if I can help at all with this process.

Hi, thanks for filing an issue. We're working on it.

Ok, we've now enabled the app integration for this repo.

Amazing, thank you!


Preparing 'Code' folder renaming

Problem

'Code' folder was renamed to 'src' in the dev branch of upstream.  The website needs a cronjob that is run every 10 minutes, and launches a php script located in the 'Code' folder. If 'Code' is renamed, the cronjob won't launch anything.

Solution

We add some code in the upgrade script, so that the daily update script can check if 'Code' was renamed after running util/udall (which includes a git pull command), and will adapt the cronjob accordingly if it was actually renamed. Also, if the website is already using the dev branch, with the renaming already made, the cronjob will also be adapted if the admin did not do it manually.
Some other adaptations were needed in other scripts so that everything runs smoothly.

PR Status

[x] Code finished and ready to be reviewed/tested
[x] The fix/enhancement were manually tested (if applicable)

Automatic tests
Automatic tests can be triggered on https://ci-apps-dev.yunohost.org/ after creating the PR, by commenting "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!". (N.B. : for this to work you need to be a member of the Yunohost-Apps organization)

!testme

Nope. Doen't work, I give up.


Allow dynamic routes to be customized on single pages

Summary
I have a Post content type configured as follows:
      use: '@gridsome/source-filesystem',
      options: {
        typeName: 'Post',
        path: 'content/posts/*.md',
        route: '/:slug',

I would like some posts to have a different route. I am not sure if it is currently possible to do so. Looking at the doc I understood that I could specify path for each Post manually, which I would like to avoid. But as far as I understood route takes precedence over path, so I would not be able to specify path only for a couple of posts.

Is there actually a way to do this? (For example, I tried passing a function to route but I did not succeed)
Wouldn't it make more sense for path to have precedence over route?

Motivation
I have an old blog where the routes had the form /:year/:slug and I would like to keep the old urls working, while switching to using only the slug in the url.
Thank you :)

The proper way to do this is with redirects on your hosting platform. Netlify and most other host platforms support redirects. You would have something such as /\d{4}/(.)* /$1 Meaning any route with 4 digits and then the slug would be redirected to just the slug.
For SEO this is also the better option since you are notifying browsers and search engines that this same page is now just under a different url.

Ok, that makes sense, thanks for the reply.
Meanwhile I had already found a workaround, which I will share hoping it can be useful to someone else.
Basically I removed the route setting from the ContentType definition in gridsome.config.js. This way I would need to manually specify a path for each Post. In order to avoid that I added the following snippet in gridsome.server.js:
module.exports = function(api) {
  const Post = api.store.getContentType('Post')

  // Automatically use the slug or title as a path by default
  Post.on('add', post => {
    if (post.path.startsWith('/content/posts')) {
      post.path = '/' + api.store.slugify(post.slug || post.title)
    }
  })
}

In this way, if I want to define a custom path, I just need to specify a path field in the frontmatter of one of my posts.

@tyrion interesting piece of code, however I couldn't make it work somehow. What I understand is that if you can get the existing getContentType('Post') that means the add has already been fired before Post.on('add' ... gets a chance to com into play. At least in my case, nothing happens.
Did you, by any chance, got it working using a slightly different code ?
Thanks !

Hello @Jonarod, I don't remember exactly, because since then I switched to using Netlify redirects as suggested by @u12206050 . However I think it should work as is. Notice that I put the code directly inside the module.exports function. It should get executed before everything else and getContentType('Post') will create the Post ContentType since it does not exist yet.


Question about few-shot versions of Pascal VOC

Firstly, thanks for your great work!
The question is about prepare_voc_few_shot.py, which ramdomly samples training shots for each category:
https://github.com/ucbdrive/few-shot-object-detection/blob/6b0769b5d682fbf7fdcdaed0c1d0dfd51c373468/datasets/prepare_voc_few_shot.py#L52
The question is, according to the code, the shots(eg. 1, 3, 5, and 10) are sampled incrementally and independently, therefore some duplicate images may be sampled, resulting in insufficient instances of some shots (mostly occurring in 10 shots).
For example, in seed 3, class 'sofa', shots 10, datasets/VOC2012/JPEGImages/2009_004076.jpg occurs twice, so there are only 9 sofa instance for 10-shot training in fact.
I want to know if this will cause any problems , thank you!

I see. Thank you for your reply! :)


[Bug]: User is allowed to save DS with same name as existing DS, though in back end it is stored as untitled datasource

Is there an existing issue for this?

[X] I have searched the existing issues

Description
Even if the datasource name is already used, the datasource can still be saved with that name, and the toast messages that appears on the datasource being saved is pointing to a name that does not exist.
Steps To Reproduce

Create a new DS - say mongo ds - and give it a name mongo. Save it
Create another new mongo DS and give it the same name as above -  mongo. Save it
Note that the datasource is still saved with the same name on the DS UI, though we get a prompt to change name as the DS name is already used.
The toast messages that appear on datasource being saved are pointing to a name that does not exist.

Public Sample App
No response
Environment
Production
Issue video log
https://ddpa7mfuvv.vmaker.com/record/eE83J1XxuFe4FYMD
Version
Self Hosted

https://images.zenhubusercontent.com/275993885/0b526f40-ee0d-4838-bf6d-091ab657cdd0/screen_recording_2023_05_15_at_14_01_30.mov
we do show a validation error, but if the user still insists and clicks save, the datasource is saved with overridden name as Untitled Datasource xx (xx is a number)
Datasource save should not be allowed in this case, and an error should be shown to the user that the name is duplicate.

This seems to be a FE issue, as the client is sending the new name as a parameter to the API server. API server, by itself, returns error if duplicate name is found:
AE-APP-4091: Duplicate key error: An object with the name null already exists. Please use a different name or reach out to Appsmith customer support to resolve this.

Update: closing this as it is not really a bug, may issue with UX. The datasource saves with Untitleds Datasource xyz because that is the name it gets initially assigned. When the user tries to update this name with a duplicate name it fails and shows an error to the user. When the user clicks on the save button it then accepts the earlier name because user specified name was not chosen.


Handle I18n case

PR checklist

[x] Addresses an existing issue: #4476
[x] New feature, bugfix, or enhancement
[x] Includes tests
[ ] Documentation update

Overview of change:
Interface name (never-prefix) doesn't return error for I18nSomething
CHANGELOG.md entry:
[bugfix] interface-name now handles interface starting with "I18n" correctly

/cc @adidahiya, from the linked issue.

After some reflexion, I'm not sure it's a good idea to check name.substr(1) is a valid identifier to know if name has a I prefix.
IDB case can be leggit. You don't want to forbid acronym. This way :

Two letters words may be allowed : ID can be acronym for IndexedData.
Three letters (+) words starting by two uppercases should be allowed if the third letters is also an uppercase. Like IDB or IDKWhatIsThis. We should also allow ID42, ID_42 or ID$42.

A good rule seems to be :
hasPrefixI: name[0] = 'I', name[1] Uppercase, name[2] Lowercase
And best way to check if name[1] is uppercase (and avoid special numeric or _, $ cases) is to check that name[1] is not lowercase. In the same way, I check name[2] is not uppercase.

@adidahiya @JoshuaKGoldberg I add a lot of test and then fix the edge cases.

I think this change caused a regression, I'm noticing now that correctly prefixed interfaces that have a number in it (e.g. IS3Foobar) is now returning errors

@styu I already made a fix here https://github.com/palantir/tslint/pull/4626, I'll check it fix your case

thanks so much!


feat(python): drop support for dictionary in Table.add

PR closes #1706

@wjones127 please review

@wjones127 updated PR. Please review.


[DOC-2428] Pipeline reference branch details

Pipeline reference branch details
For reviewers, a preview is available.
What Type of PR is This?

[ ] Issue
[ ] Feature
[x] Maintenance/Chore

If tied to an Issue, list the Issue(s) here:

Issue(s)

House Keeping
Some items to keep track of. Screen shots of changes are optional but would help the maintainers review quicker.

[x] Tested Locally
[ ] Optional Screen Shoot.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app


PyTorch implementation of DeepAR

Work in progress, open for comments.
This ports the PyTorch implementation of DeepAR from PyTorchTS (cc @kashif), with some changes:

The estimator class was slightly refactored, and in particular the way data loaders are set up is more in line with other estimators (but I want to try out a few things here, this is giving me some thoughts)
No specific "trainer" class was implemented, and instead the estimator relies on PyTorch Lightning for this.

A few surrounding, related changes are also included.
Some open questions:

should the dtype and device be specified at constructor time for the estimator? Or is it something we want to pass to the train method?
the base estimator class is really PyTorch Lightning oriented: should it be called PyTorchLightningEstimator?
we would now have gluonts.model containing existing models (mxnet based) and gluonts.torch.model containing this one; should the mxnet ones moved to gluonts.mx.model for the sake of symmetry?

TODOs (partial list, probably):

[x] cover also validation data in tests
[ ] remove the input_size parameter from the estimator (this should probably be inferred from the other ones)
[x] re-include the option to pseudo-shuffle batches at training time
[ ] run experiments to check the model accuracy
[ ] improve tests (also serde and so on)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup

This is weird, I wasn’t getting this locally

Looking good... I'll have a look at this branch hopefully today too 👁  👁

Looking good... I'll have a look at this branch hopefully today too 👁 👃🏽 👁

Thanks! I still want to at least resolve the TODOs above, so I'm expecting this to take a couple days more

Nice!
This seems to be "only" vanilla DeepAR. We have added quite a few features to the Mxnet DeepAR (like model missing value imputation and activation regularization). Thus, I'm wondering whether we should have it here as well?

@mbohlkeschneider I think so, but we can maybe track that in separate PRs? So that this PR can bring in some of the necessary “scaffolding”, as well as on example of model, for anyone working on other PyTorch-based models to take inspiration from.
I’ll add an issue for that and make it release-blocking for v0.8

Some results I got with the current code from the PR
                            count      mean       std       min       25%       50%       75%       max
dataset     model
electricity DeepAR_pytorch    5.0  0.068094  0.010365  0.052888  0.061976  0.073358  0.074637  0.077613
m4_daily    DeepAR_pytorch    5.0  0.028392  0.006089  0.023068  0.025569  0.027012  0.027466  0.038843
m4_hourly   DeepAR_pytorch    5.0  0.064823  0.026216  0.037337  0.043694  0.060085  0.084379  0.098621
traffic     DeepAR_pytorch    5.0  0.133552  0.001598  0.132023  0.132279  0.132940  0.135086  0.135431

I ran a bit more comparisons: the minimum scores are very close between the MXNet and PyTorch implementations, with the PyTorch one sometimes better. In some cases, higher variance is observed with the PyTorch estimator, resulting in worst worst-case runs, especially in electricity and exchange_rate. I think this is a problem with some different training options, like gradient clipping and "best model selection" during training (both absent in the PyTorch training loop I ran).
I will do some more runs on electricity and exchange_rate with the training options better aligned to check if variance can be reduced. But the minimum scores suggest that the networks are essentially equivalent: another way to check this would be to initialize the networks with the same weights, and check their output on the same input data.
mean_wQuantileLoss
                            count      mean       std       min       25%       50%       75%       max
dataset       model
electricity   DeepAR_mxnet   10.0  0.058250  0.003542  0.054607  0.055732  0.057031  0.060223  0.065524
              DeepAR_torch   10.0  0.070389  0.019396  0.050715  0.057407  0.067428  0.075375  0.114468
exchange_rate DeepAR_mxnet   10.0  0.011979  0.003958  0.007581  0.009066  0.010209  0.014335  0.019022
              DeepAR_torch   10.0  0.015999  0.009422  0.007932  0.009165  0.012377  0.022294  0.035100
solar-energy  DeepAR_mxnet   10.0  0.395402  0.006397  0.386605  0.390082  0.396136  0.397910  0.408057
              DeepAR_torch   10.0  0.397074  0.006896  0.386119  0.392976  0.395508  0.402427  0.408164
traffic       DeepAR_mxnet   10.0  0.130629  0.003020  0.126329  0.129284  0.129797  0.133450  0.134651
              DeepAR_torch   10.0  0.131482  0.006321  0.126205  0.126695  0.130697  0.132835  0.147017

@lostella may I ask what the fixed bugs commit does (dba30e9)? thanks!

@lostella may I ask what the fixed bugs commit does (dba30e9)? thanks!

@kashif I refactored the network a bit, and had introduced bugs in doing that :-) (in the sampling procedure in particular)
I got the dimensions wrong in the first sample, plus I was handling scale incorrectly: I was getting samples on the original scale, and feeding them directly into the RNN. Now the loop produces scaled samples (I don't give the scale argument when constructing the distribution), and samples are scaled back only at the end

Adding model checkpointing provide much more stable results on electricity and exchange_rate:
mean_wQuantileLoss
                            count      mean       std       min       25%       50%       75%       max
dataset       model
electricity   DeepAR_torch   10.0  0.054265  0.004268  0.050959  0.051395  0.053759  0.054148  0.065283
exchange_rate DeepAR_torch   10.0  0.015017  0.005611  0.007968  0.009751  0.015622  0.018340  0.024659

Is there any reason that the torch.deepar module wasn't included in the gluonts 0.8.0 release? I'm not seeing it in there, and I was looking forward to testing it out.

@mdancho84 the module should be there: https://github.com/awslabs/gluon-ts/tree/v0.8.x/src/gluonts/torch/model/deepar

@mdancho84 I confirm after installing gluonts==0.8.0 in a fresh environment, that the following runs fine (note that you need to have pytorch_lightning installed as well to use the DeepAREstimator (besides torch obviously)
from gluonts.torch.model.deepar import DeepAREstimator

@lostella Thanks for this! The problem was not having pytorch lightning installed.
Also, for what it's worth, I might as well introduce myself.

I am the creator of modeltime, an R forecasting ecosystem. https://github.com/business-science/modeltime
I've integrated GluonTS into the system here: https://github.com/business-science/modeltime.gluonts

I've been a big fan of GluonTS for several years and even teach it in my Time Series Course.
I really appreciate all of the work you are doing.

@lostella Just to Follow Up: I've successfully got the Pytorch DeepAR implementation working. Initial results are promising:

Speedup of 1.6X
Similar accuracy and forecast results of GluonTS vs Torch Implementations

Test:

10 Epochs on Walmart Time Series
1.12 min to train 10 epochs vs 42 sec

Also, for what it's worth, I might as well introduce myself.

Oh, thanks for doing all this, and for the kind words!
The results look indeed promising, I had also observed some speedup with the PyTorch version. Is not 100% feature complete compared to the MXNet one: some new imputation strategies for handling missing values during the RNN unrolling were added recently, which would take some time to replicate in PyTorch. We will see about these, but it's important that the biggest part of the model is there.
I think we will generally look into improving PyTorch support, tooling, model components, and try to add new models in PyTorch going forward. So please let me know if you find anything off in your experiments or in the code, we're very interested.

@lostella I forgot if I talked about this with you but the mxnet deepAR's imputation scheme is not quite correct as it uses the RNN to impute the values if they are missing, but it's doing so from the past... while imputation would need to consider the past and future values from the point of view of the missing time-point...

@lostella Thanks for your help. The kind words are well deserved.
If the API has stabilized for the Torch DeepAREstimator, then the next steps in my opinion are more algorithms. I've been getting good results with Deep State and GP Forecaster.
The speed-up and pylightning logging gives a nice compliment to the GluonTS versions. The GluonTS framework then makes it easy to forecast and compare. Win win.

@kashif true but you would need some other architecture for that, like bi-directional RNN or so, right? With the architecture at hand, the implemented imputation is one thing one can do, not necessarily the best of course.
@mdancho84 the API should be stable enough, but also what we tried enforcing in the torch-based DeepAR implementations is to have as much independent network/estimator classes as possible, so that potentially one can start implementing the “core” of the model while the higher level wrapper interface stabilizes. I think the ideal situation is one where the network is 100% usable in its own, in the sense that one can construct it easily (so: options are documented in the network, and have reasonable defaults) and train it with custom data loading logic and training loop.

@lostella Sounds great. I can always enforce gluonts==0.8.0 so my students have a working Torch DeepAR. Then upgrade when more models are released (if anything changes). I just pushed the latest version of Modeltime GluonTS. Looks good: https://github.com/business-science/modeltime.gluonts/issues/30


Don't alias pointers, correctly free on errors, fix memory leak

Modify how an MSRecord structure is freed when there is an invalid sampletype, to avoid a memory leak. This memory leak occurs if the original MSRecord has an invalid sampletype, so that ms_samplesize returns 0, then msr_duplicate leaks memory because the duplicated MSRecord is freed using free and not msr_free.

Set pointers to NULL immediately after copying the MSRecord structure, to avoid problems with pointers in the original MSRecord structure and the duplicate pointing to the same memory. These problems occur if there are problems allocating memory, for example if the fsdh field cannot be allocated, then freeing the duplicated MSRecord also frees fields in the original MSRecord. Because msr_duplicate uses memcpy to make the initial copy of the MSRecord, the pointers in the duplicated MSRecord point to the same memory as the original MSRecord. This can cause undefined behavior because it can lead to the same memory being freed twice.

Thanks.


Run time error in first simluation page.

I get a runtime error when running the simulation with default settings on page:  https://hsma-programme.github.io/Teaching_DES_Concepts_Streamlit/Simulating_Arrivals.
Assume this is a classic python dependencies thing, as error is:
RuntimeError: The pyarrow package must be version 11.0.0 or greater. Found version 0.0.1
Traceback:

Hi @chrismainey,
Apologies for not spotting this sooner!
This may now be fixed - I've made quite a lot of changes to the structure and dependencies.
Would you be able to try running it again now?
https://hsma-programme.github.io/Teaching_DES_Concepts_Streamlit/Simulating_Arrivals
If it still gives you the same error, would you be able to let me know what browser and operating system you are on, please?

Hi @Bergam0t , thank you for picking it up.  Looks good to me, all working nicely.  Lovely work by the way.  Teaches very clearly and functions well, but the presentation if it is excellent!  I particularly loved the icons! Shall I close, or will you?

Thank you for checking it out again to confirm that's sorted now! Thank you for the lovely feedback too. I shall close this as fixed :)


Double click to a tab (to hide the left panel) somehow opens other new tabs with sql editors

Description
As you can see, two tabs appeared at the bottom of the window.
https://github.com/user-attachments/assets/0d7f03ce-2571-4520-a22b-afacacdbf777
DBeaver Version
Community Edition 24.1.5-202408122322
Operating System
Windows 10
Database and driver
PostgreSQL 16
PostgreSQL JDBC Driver 42.7.4
Steps to reproduce
No response
Additional context
No response

Thank you for bug report.


chore: Exclude generated Relay files from git

The type of this PR is: Chore

Description
This PR removes all files generated by Relay in the folder src/__generated__ from version control to not see the file changes in pull requests anymore.

[x] Adds generated files to .gitignore
[x] Updates CircleCI config

Slack thread for context

PR Checklist (tick all before merging)

[x] I have included screenshots or videos to illustrate my changes, or I have not changed anything that impacts the UI.
[x] I have tested my changes on iOS and Android.
[x] I have added tests/stories for my changes, or my changes don't require testing/stories, or I have included a link to a separate Jira ticket covering the tests.
[x] I have added a feature flag, or my changes don't require a feature flag. (How do I add one?)
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added an app state migration, or my changes do not require one. (What are migrations?)
[x] I have added a changelog entry below or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

Add generated Relay files to gitignore - ole

This PR contains the following changes:

Dev changes (Add generated Relay files to gitignore - ole)

  Generated by :no_entry_sign: dangerJS against c87cbcd797f713c9faec436ed3e6f6b5a0a7e7eb

🎉


feat: modifier title par page - 86

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


Issue in pom.xml file

Hi Sir,
I have downloaded the .zip folder for RHAMT plugin integration with Jenkins but after importing the project, I am getting the below issue in the pom.xml file in parent tag.
Error as below::
Project build error: Non-resolvable parent POM for org.jenkins-ci.plugins:rhamt:1.0.0.Alpha-SNAPSHOT: Failure to transfer org.jenkins-ci.plugins:plugin:pom:3.6 from https://
repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced.
Original error: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:3.6 from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/):
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target and 'parent.relativePath' points at no local POM
Could you please help in solving this problem.
Thanks & Regards,
Naveen

Hi Naveen,
where do you see this error? When you are building the project? Where do you import it - to IDE or to Jenkins?

Hi Sir,
I downloaded the rhamt-plugin .zip folder and imported in the IDE for building the same and getting the error as mentioned in pom.xml file. In pom .xml file parent folder jar getting error.while updating maven project error is not resolving.

HI Sir,
Can you please help me in resolving the issue mentioned above. I am getting the error once the project is imported in the IDE. I have attached the screen shot for the same.
Error as:
Project build error: Non-resolvable parent POM for org.jenkins-ci.plugins:rhamt:1.0.0.Alpha-SNAPSHOT: Failure to transfer org.jenkins-ci.plugins:plugin:pom:3.6 from https://
repo.jenkins-ci.org/public/ was cached in the local repository, resolution will not be reattempted until the update interval of repo.jenkins-ci.org has elapsed or updates are forced.
Original error: Could not transfer artifact org.jenkins-ci.plugins:plugin:pom:3.6 from/to repo.jenkins-ci.org (https://repo.jenkins-ci.org/public/):
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested
target and 'parent.relativePath' points at no local POM
Please help.

Thanks & Regards,
Naveen

I'm sorry, but I can't reproduce it. Maybe you IDE somehow changes the pom. From your screenshot I see that it added  to parent node, which is not defined in this code. It's also possible that the jenkins maven repository is not accessible to you, try to add this to repositories in pom.xml:
		<repository>
		 	<id>repo.jenkins-ci.org</id>
			<url>https://repo.jenkins-ci.org/public/</url>
		</repository>```
Which java and maven version are you using? Which IDE?


Lagrange doesn't display a git:// URI at all

How to reproduce:

Go to gopher://bitreich.org:70/1/lawn in Lagrange. Scroll down to the bottom, where it says:

If you want to save the moderators time, check out
and add a file with categories and keywords to the »db« directory. There
are many example files in there for how the format looks like.

Go to gopher://bitreich.org:70/1/lawn in another Gopher client, such as sacc. Scroll down to the bottom, where it says:

If you want to save the moderators time, check out
git://bitreich.org/gopher-lawn
and add a file with categories and keywords to the »db« directory. There
are many example files in there for how the format looks like.

Compare the difference.

Here are some screenshots.

Fixed for next release.


remove o/p dependency of ndm cli commands from pkg/controller

This PR removes ndm device list cli command output from pkg/controller. Now it prints using defaultDeviceList template.

Previous output

root@instance-1:~#ndm device list
Path: /dev/sdc
Size:<PHONE_NUMBER>8
Status: Active
Model: PersistentDisk
Serial: ganesh-udev-disk
Vendor: Google

Path: /dev/sda
Size:<PHONE_NUMBER>0
Status: Active
Model: PersistentDisk
Serial: instance-1
Vendor: Google

Path: /dev/sdb
Size:<PHONE_NUMBER>0
Status: Active
Model: PersistentDisk
Serial: disk-1
Vendor: Google

Current output

root@instance-1:~#ndm device list
NAME                                         MODEL               VENDOR              SERIAL                   STATUS    PATH      CAPACITY
disk-9b4e2baab6ac7d66aa3d85bdc36b9987        PersistentDisk      Google              ganesh-udev-disk         Active    /dev/sdc<PHONE_NUMBER>8
disk-ccc636c88bd9ab09dde9de476309058d        PersistentDisk      Google              instance-1               Active    /dev/sda<PHONE_NUMBER>0
disk-ce41f8f5fa22acb79ec56292441dc207        PersistentDisk      Google              disk-1                   Active    /dev/sdb<PHONE_NUMBER>0

root@instance-1:~#ndm device list
No disk resource present.

This is one improvement mention in #53

Codecov Report

Merging #56 into master will increase coverage by 1.57%.
The diff coverage is 60%.

@@            Coverage Diff            @@
##           master     #56      +/-   ##
=========================================
+ Coverage   73.12%   74.7%   +1.57%
=========================================
  Files          16      16
  Lines         521     510      -11
=========================================
  Hits          381     381
+ Misses        111     100      -11
  Partials       29      29

Impacted Files
Coverage Δ

cmd/controller/diskstore.go
85.96% <100%> (ø)
:arrow_up:

cmd/controller/controller.go
25% <33.33%> (+3.87%)
:arrow_up:

Continue to review full report at Codecov.

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

How does this all fit working on a terminal that is 80chars?  is see things like printf %-45 for a single entry?!


Enhance documentation & implementation for constructors accepting polygons

Both Collision & AreaMap confuse me slightly with their signatures and there are some typos in the documentation.
This should fix those issues and allow maximum flexibility for constructor arguments.

small improvement to existing functionality, merging


Add workload identity support to the Azure provider

Current State
Today when you register the Azure provider rad provider register azure, it requires a client_id and a client_secret, referring to an Entra ID application registration. This is how UCP connects to Azure in order to deploy Azure resources.
Desired State
We should also support managed identities, leveraging the workload identity project where the cluster is federated to the app registration and there are no secrets to keep or rotate.
Ideally a user would:

Setup workload identity on their cluster
Create an app registration in Entra ID
Register their Azure provider with the app registration (client_id), but use workload identity instead of a client-secret.

AB#11482

We will a short functional spec to understand cli and any other user facing changes

The three key features coming out of this work will be:
Feature 1 : rad init interactive experience supports Workload Identity
rad init interactive experience supports additional prompts for workload identity. Once the user enables workload identity for Azure cloud provider, the control plane pods are patched with Azure workload identity labels and annotations.
Feature 2 : Non-interactive CLI supports Workload Identity
rad install and rad credential support azure-workload-identity-app-id option for user to register the federated credentials to Radius.
Feature 3 : DE, UCP, Applications RP supports Workload Identity auth
Use Azure client library and add workload-identity auth option.

closed by https://github.com/radius-project/radius/pull/7640


Mobile: Sub-nav items not visible when rotating between portrait/landscape mode.

Behavior:
Edge case:  If the last item in the nav has a sub-nav, when rotating from portrait to landscape mode and sometimes vice versa, the last sub-nav item is not visible and you cannot swipe to view it either.
Environment :
App-Nav: Master-7/18 evening Pull
Browsers: Safari/ios10.3.1 +iphone6 Plus
Screenshot:

/cc @davidrleonard

@ppeyro Make sure you aren't trying to scroll up from the very bottom of the screen (that is a native behavior in iOS that opens the bottom drawer). If you scroll up on the dropdown from the middle of the screen it should scroll to show the missing item.


Unable to change window pivot after creation

Is your feature request related to a problem? Please describe.
I'm able to open a Window centered on the screen by doing
let center = (ctx.input(|i| i.screen_rect.size()) / 2.0).to_pos2();
wnd.pivot(Align2::CENTER_CENTER).default_pos(center).[etc etc].show(...)

This works well, but it has the effect of permanently setting the pivot of the Window's Area to CENTER_CENTER. The consequence of that is that if the Window is automatically resized (e.g. because its contents change size, because a widget is added, an expander is opened, ...) it grows outward from its center, instead of southeastward from its top-left corner. Obviously, because the pivot is CENTER_CENTER.
This is pretty much the expected behavior, the problem is that... there doesn't seem to be a way to change the Area's pivot to LEFT_TOP after the Window has been created.
Describe the solution you'd like
Either:

allow changing the pivot afterwards

but this still requires changing it after the window has been shown, so it might look weird for a frame or two

allow using a "temporary" pivot (e.g. start the window with a position relative to a pivot, but still store the position relative to LEFT_TOP)
something else?

Having a similar issue here, the .pivot acts more like .default_pivot rather than immediate mode pivot. So whatever pivot I had on first opening the window gets stuck, even if I've re-created the window.
egui=0.21.0
This is for a tooltip that needs to flow left or right of the cursor so that it doesn't get cut off by the screen.
As a workaround I've put in two different window Ids for the left and right version.


test: nuts for lightning email templates

What does this PR do?
brings folder-type nuts test repo into plugin-source
adds examples of EmailTemplateFolder
This requires no other PRs to merge in SDR or STL
What issues does this PR fix or reference?
it's somewhat related to @W-10385112@ but should give us a heads up if anything else weird starts to happen with EmailTemplateFolder type where it's not compatible with EmailFolder

closing it while I make a proper solution for EF / ETF disambiguation


CSS

CSS
User Story
As a boot camp student
I want the prework notes to be structured on a webpage
So that I can easily find and read the information
Acceptance Criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I see a dark blue header and footer, and four boxes with a shadow

Finished adding the CSS to the project as per the course notes.


doctl: 1.48.1 -> 1.49.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/digitalocean/doctl/releases.
meta.description for doctl is: "A command line tool for DigitalOcean services"
meta.homepage for doctl is: "https://github.com/digitalocean/doctl"
meta.changelog for doctl is: ""
Updates performed

Golang update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

directory tree listing: https://gist.github.com/cb2a6fa557ac42a06451153b0323434a

du listing: https://gist.github.com/cb7508a8839c45b66bba7fcb3b743f00

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
1 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
doctl

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/w5jaksn68his7jkaq5a2nkclrn8381fw-doctl-1.49.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A doctl https://github.com/r-ryantm/nixpkgs/archive/59a7a55e104c8ceb46471bf6a50f3091e32422a4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/w5jaksn68his7jkaq5a2nkclrn8381fw-doctl-1.49.0
ls -la /nix/store/w5jaksn68his7jkaq5a2nkclrn8381fw-doctl-1.49.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:

doctl

Maintainer pings
cc @langston-barrett @kalbasit for testing.

Result of nixpkgs-review pr 102045 run on x86_64-darwin 1

1 package built:

doctl


Factorial Challenge: Correct, but doesn't register?

Challenge Factorialize a Number has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var total = 1;
function factorialize(num) {
  for (var i=0; i<num; i++){
    total = total * (num - i);
  }
  return total;
}

factorialize(5);

Duplicate of #9199

@LonePoop You just need to declare the 'total' variable inside the function scope.
function factorialize(num) {   var total = 1;   for (var i=0; i<num; i++){     total = total * (num - i);   }   return total; } factorialize(5);

Thanks guys!

Thanks all.
Closing in favor of the other thread.

RECURSION GUSY !!, https://msdn.microsoft.com/en-us/library/wwbyhkx4(v=vs.94).aspx
function factorialize(num) {
return (num !== 0) ? num * factorialize(num - 1) : 1;
}
factorialize(5);


warning message

I run scarHRD using sequenza *.small.seq.gz as input file, and I got warning message as below.
What's wrong?

scar_score("/run/media/skanematsu/9ce21fae-49c9-4d74-a898-7ac57ac02b29/sequenza/results/WGS/WG0015__WG0016_WG0015__WG0016_tumor/WG0015__WG0016_WG0015__WG0016_tumor.out.small.seqzPreprocessing started...", seqz=TRUE, chr.in.names=FALSE)
Collecting GC information ............................................................................................................................................................................................................ done

Processing 1:
544 variant calls.
374 copy-number segments.
159858 heterozygous positions.
9756090 homozygous positions.
Processing 2:
617 variant calls.
243 copy-number segments.
167178 heterozygous positions.
11252969 homozygous positions.
Processing 3:
339 variant calls.
152 copy-number segments.
151357 heterozygous positions.
8463792 homozygous positions.
Processing 4:
491 variant calls.
257 copy-number segments.
151892 heterozygous positions.
8191443 homozygous positions.
Processing 5:
444 variant calls.
175 copy-number segments.
129249 heterozygous positions.
8348594 homozygous positions.
Processing 6:
435 variant calls.
299 copy-number segments.
137295 heterozygous positions.
7330989 homozygous positions.
Processing 7:
400 variant calls.
282 copy-number segments.
123755 heterozygous positions.
6701081 homozygous positions.
Processing 8:
385 variant calls.
217 copy-number segments.
114530 heterozygous positions.
6202254 homozygous positions.
Processing 9:
296 variant calls.
184 copy-number segments.
92695 heterozygous positions.
4927459 homozygous positions.
Processing 10:
298 variant calls.
230 copy-number segments.
105259 heterozygous positions.
5652674 homozygous positions.
Processing 11:
316 variant calls.
203 copy-number segments.
99418 heterozygous positions.
5739393 homozygous positions.
Processing 12:
306 variant calls.
187 copy-number segments.
95666 heterozygous positions.
5723343 homozygous positions.
Processing 13:
272 variant calls.
124 copy-number segments.
74928 heterozygous positions.
4205669 homozygous positions.
Processing 14:
137 variant calls.
75 copy-number segments.
67596 heterozygous positions.
3625828 homozygous positions.
Processing 15:
188 variant calls.
128 copy-number segments.
63433 heterozygous positions.
3498831 homozygous positions.
Processing 16:
205 variant calls.
132 copy-number segments.
65664 heterozygous positions.
3656314 homozygous positions.
Processing 17:
190 variant calls.
161 copy-number segments.
56260 heterozygous positions.
3437042 homozygous positions.
Processing 18:
227 variant calls.
140 copy-number segments.
57844 heterozygous positions.
3287200 homozygous positions.
Processing 19:
157 variant calls.
147 copy-number segments.
45993 heterozygous positions.
2521251 homozygous positions.
Processing 20:
148 variant calls.
103 copy-number segments.
45145 heterozygous positions.
2629299 homozygous positions.
Processing 21:
109 variant calls.
83 copy-number segments.
35472 heterozygous positions.
1570443 homozygous positions.
Processing 22:
88 variant calls.
96 copy-number segments.
27945 heterozygous positions.
1514616 homozygous positions.
|++++++++++++++++++++++++++++++++++++++++++++++++++| 100% elapsed=11m 52s
Preprocessing finished
Determining HRD-LOH, LST, TAI
HRD Telomeric AI LST HRD-sum
[1,]   4            2   2       8
Warnings:
mean.default(extract$gc$adj[, 2]):
argument is not numeric or logical: returning NA

I also get the same warning. Can we still trust the scarHRD results if this warning is been shown? Anybody managed to solve the problem? Thanks!

I have the same issue, stops after chr14...

I get the same error, did anybody solve it??


Error loading into solr table from another hive table.

>sudo -u solr bin/solr create -c hiveCollection -d basic_configs -n hiveCollection -s 2 -rf 2
>hive>CREATE EXTERNAL TABLE authproc_syslog_solr (hid STRING, tstamp TIMESTAMP, type STRING, msg STRING, thost STRING, tservice STRING, tyear STRING, tmonth STRING, tday STRING) STORED BY 'com.lucidworks.hadoop.hive.LWStorageHandler' LOCATION '/tmp/solr' TBLPROPERTIES('solr.zkhost' = 'hadoop1.openstacksetup.com:2181/solr', 'solr.collection'='hiveCollection', 'solr.query' = '*:*');

>hive>INSERT OVERWRITE TABLE authproc_syslog_solr SELECT s.* FROM authproc_syslog s;

Vertex did not succeed due to OWN_TASK_FAILURE, failedTasks:1 killedTasks:32, Vertex vertex_1473357519389_0194_6_00 [Map 1] killed/failed due to:OWN_TASK_FAILURE]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0

DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0
FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_14733575
19389_0194_6_00, diagnostics=[Task failed, taskId=task_1473357519389_0194_6_00_000009, diagnostics=[TaskAttempt 0 failed, info=[Error: Failure wh
ile running task:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error whi
le processing row
Caused by: java.lang.NullPointerException
        at com.lucidworks.hadoop.io.impl.LWSolrDocument.getId(LWSolrDocument.java:46)
        at com.lucidworks.hadoop.io.LucidWorksWriter.write(LucidWorksWriter.java:184)
        at com.lucidworks.hadoop.hive.LWHiveOutputFormat$1.write(LWHiveOutputFormat.java:39)
        at org.apache.hadoop.hive.ql.exec.FileSinkOperator.process(FileSinkOperator.java:764)
        at org.apache.hadoop.hive.ql.exec.vector.VectorFileSinkOperator.process(VectorFileSinkOperator.java:102)
        at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:838)
        at org.apache.hadoop.hive.ql.exec.vector.VectorSelectOperator.process(VectorSelectOperator.java:138)
        at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:838)
        at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanOperator.java:133)
        at org.apache.hadoop.hive.ql.exec.MapOperator$MapOpCtx.forward(MapOperator.java:170)
        at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(VectorMapOperator.java:45)

The hive table and the hive_solr table have the exactly same schema.

Turns out my table didn't have id as the first field. I fixed it. But now the INSERT never finishes( I waited couple of hours, reduced dataset etc, but the query never finishes.

Sorry for the delay of a few days to get back to you.
Are there any errors besides those messages?
Can you also share a little bit about your environment - it seems you're using Tez? What version/distro of Hive?

I am able to load data into solr external table from another managed hive table.
But when I try to retrieve data from the solr table, it is throwing
"Failed with exception java.io.IOException:java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String"
I am using solr-hive-serde-2.2.6.jar on Hive 1.1.0-cdh5.4.5

@vishnucg can you please open a new issue with your question?

Did this issue get resolved? I'm getting the same error

I'm getting
Caused by: java.lang.NullPointerException 	at com.lucidworks.hadoop.io.impl.LWSolrDocument.getId(LWSolrDocument.java:46) 	at com.lucidworks.hadoop.io.LucidWorksWriter.write(LucidWorksWriter.java:190) 	... 22 more ], TaskAttempt 3 failed, info=[Error: Failure while running task:java.lang.RuntimeException: java.lang.RuntimeException: org.apache.hadoop.hive.ql.metadata.HiveException: Hive Runtime Error while processing row (tag=0) {"key":{},"value":{"_col0":null,"_col1":null,"_col2":null,"_col3":null,"_col4":null,"_col5":null,"_col6":null,"_col7":null,"_col8":null,"_col9":null,"_col10":null,"_col11":null,"_col12":null,"_col13":null,"_col14":null,"_col15":null,"_col16


remove spork 12

Spork 12 was never used and really wasn't all that useful. With the soon to be added chain locks it is completely irrelevant.

ReprocessBlocks and DisconnectBlocks can be dropped too now.

@UdjinM6 with those gone, we can remove mapRejectedBlocks too now, right?

@nmarley yes, good point! 👍

mapRejectedBlocks removed, squashed branch

After some discussion in Slack it's not clear anymore if we can drop it already. Going to put this on hold for now, should probably wait at least till next release/chainlocks deployment first.


does sbtools::item_replace_files() handle more than one file at a time?

From the function name, it seems this should support multi-file uploads, but from the documentation, it doesn't:

replaces existing files associated with an item with a new one. (Currently does not support multi-file uploads.) This function will not append an existing collection of files. If that is desired, use item_append_files

It seems to actually work for me...(I am on version 1.1.12)

I'll get this tested and fixed up in the block of work I'm queuing up.


Update setup.sh

ensures we are running the latest TF modules

shouldnt it always pull if there isnt a tf lock?
i just removed the tf lock that was stuck in there which should also resolve this: https://github.com/f5devcentral/f5-digital-customer-engagement-center/pull/166


Question on Token Masking in 4M Implementation

Thank you for open sourcing your amazing work.
I have a question regarding the token masking implementation: https://github.com/apple/ml-4m/blob/main/fourm/models/fm.py#L429
While I understand setting the tokens to 0, I'm curious about masking the positional embeddings. If we mask both tokens and positional embeddings to 0, how does the model distinguish between different tokens? Wouldn't this cause the model to treat these tokens identically? Would it make sense to add position embeddings after masking?
We can use causal attention to remedy this, but I'm wondering if I've misinterpreted the token masking process. Could you clarify this approach? Thank you!

Hi @yzhang511 ,
Thanks for your interest in 4M! I believe there is some confusion due to the double meaning of the word "mask" in our code and in the literature.
The decoder_mask that you're referring to is an invalid / ignore mask, indicating which tokens should be entirely ignored by the decoder when the number of valid tokens is less than the decoder sequence length (akin to padding tokens in LMs). This is also why that same operation is performed in the encoder, to remove invalid tokens there.
If you're looking for the "T5 / MAE" token masking implementation, the bulk of it is defined in masking.py as part of data loading, where we define:

Which tokens to give to the encoder
Which tokens to give to the decoder
Which tokens to discard altogether (i.e., which are "invalid")

Then, in forward_mask_encoder() and forward_mask_decoder() of the forward pass, we gather the valid tokens out of all concatenated tokens for the encoder / decoder respectively such that the valid tokens are at the beginning of the sequence, and the invalid ones at the end. The function that sets the decoder tokens to 0 for image-like modalities (i.e. BERT/MAE masking) is in the cat_decoder_tensors() function here.
Hope this makes everything clearer. If you have any further questions, please don't hesitate to ask.
Best, David


Basic frontend setup

Changes made:

Added basic views to render the home page and signup page
Reorganized folder structure for static elements
Used template inheritance and removed redundant code from HTML files

Good one @Cofucan.. Well done.


Fix navbar in phone mode

Moved contact us and language into the drop-down

On the computer it's

Can probably make the buttons prettier in the future but I'll leave it like this
@rbatista191


[VL] hive scan in ORC format support

Description
Currently if we use hive scan command and ORC format in backend, it fallback to vanilla spark.

fixed by spark.sql.hive.convertMetastoreOrc=true


[Enhancement] Add documentation for eventsApplied flag

Description
References

PR: https://github.com/kyverno/kyverno/pull/6284
Issue: https://github.com/kyverno/website/issues/763
Discussion: https://github.com/kyverno/kyverno/pull/6072 (closed this PR because of merge issues, has a conversation regarding the implementation)

Slack discussion
No response

The flag is added to all controllers except the cleanup controller https://github.com/kyverno/kyverno/pull/7010#issuecomment-1532820357.

omit-events: Set this flag to a comma sperated list of PolicyViolation, PolicyApplied, PolicyError, PolicySkipped to disable events, e.g. --omit-events=PolicyApplied,PolicyViolation


Add filter function binding

Opening this up for feedback.

Awesome! Looks good. It would be nice if it you could filter by entity and attribute, but I guess most times you just want to filter by value.
Could you add something to the README? Then I think I'm good to merge this.


Create a fifth specification to separate out workload metadata

Current Behavior
The specification nominally considers for the description and all of the interesting metadata of the application (e.g. application name, application version, helm chart version #, and so on).
Desired Behavior
The definition of the workload profile definition should be expanded on.
Consider definitions like CNAB, Docker Compose, Helm, and so on.

I will look into it.


Consider removing services.neon

When I find a new nette-related library the DI extension is usually the first thing I look at as it can ussually tell me pretty well what is the library about and how complicated it is. For this reason I like it when extensions are simple and don't use other classes / files so that I can see everything important right there.
I could understand using services.neon for complicated extensions (although I personally never use it) but with just one service it seems a bit pointless.

It just convention I prefer and also Zenify convention.
Nothing more. Both ways are ok.


Support Cordova plug-in "cordova-plugin-file-transfer"

Compatibility
Successfully tested r1.0.0

This is cordova-plugin-file-transfer? (please adopt title)
var fileTransfer = new FileTransfer();
runs in Developer App
But not on local build with config.xml settings
<plugin name="cordova-plugin-file-transfer" spec="~1.6.3" />
-> FileTransfer is unknown.
Do I have to register the plugin in additional way?

see https://github.com/eclipsesource/tabris-js-file-open-example/blob/master/www/app.js

Do I have to register the plugin in additional way?

You shouldn't have to; can you check your build log to see if there were any errors installing the plugin?

@cookieguru
Is there a special build log in the build folder?
Here comes the command line output.
There seems to be errors...
ios_build.txt

/Users/dirk/Documents/workspace/apps/maps/build/cordova/platforms/ios/Maps/Plugins/cordova-plugin-file-transfer/CDVFileTransfer.m:224:34: warning:
      values of type 'NSUInteger' should not be used as format arguments; add an
      explicit cast to 'unsigned long' instead [-Wformat]
    DLog(@"fileData length: %d", [fileData length]);
                            ~~   ^~~~~~~~~~~~~~~~~
                            %lu  (unsigned long)
/Users/dirk/Documents/workspace/apps/maps/build/cordova/platforms/ios/Maps/Plugins/cordova-plugin-file-transfer/CDVFileTransfer.m:31:91: note:
      expanded from macro 'DLog'
  ...[Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__)
                                                        ^~~~~~~~~~~
1 warning generated.

Looks like the plugin is broken.

@capotti Just for completeness: Yes, the plugin has been renamed to cordova-plugin-file-transfer and no, there's no additional step to register the plugin, the line in config.xml is sufficient.

thanx for completeness - suppose, errors resulted from inconsistent local environment
see https://github.com/eclipsesource/tabris-js/issues/1308#issuecomment-301210408

Are you building locally with the CLI?

@ralfstx Yes, he is

Then what do you mean by

inconsistent local environment

Did you npm update your tabris and tabris-cli and have the native client version that matches the tabris version?

That was the problem: inconsistent versions

uninstalled cordova via npm
downloaded both folder ios and android again (now 2.0.0rc1)
Now it works as expected!

that reduced a lot of local build errors in my case

Perfect! Thanks for the update.


Fixes: Malformed Lambda proxy response bug

This PR updates the API response to conform to the output format for a Lambda function for proxy integration (https://aws.amazon.com/premiumsupport/knowledge-center/malformed-502-api-gateway/).

Updated with v3.1


Introduce CLI commands to troubleshoot connectivity issues to the etcd kvstore and clustermesh control plane

Troubleshooting etcd connectivity issues, regardless of whether to the Cilium kvstore or to a remote cluster, is a complex activity, as issues can concern network connectivity, TLS certificates mismatch, authn/authz policies and so on.
As an effort to simplify this process, let's introduce new CLI commands part of the Cilium agent, clustermesh-apiserver and kvstoremesh responsible for performing a set of sanity checks, and outputting the result in a user-friendly way:

cilium troubleshoot kvstore:  troubleshoot connectivity towards the Cilium etcd kvstore;
cilium troubleshoot clustermesh:  troubleshoot connectivity towards remote clusters;
kubectl exec -it -n kube-system deploy/clustermesh-apiserver -c apiserver -- clustermesh-apiserver clustermesh-dbg troubleshoot: troubleshoot the clutermesh-apiserver connectivity to the local etcd kvstore;
kubectl exec -it -n kube-system deploy/clustermesh-apiserver -c kvstoremesh -- clustermesh-apiserver kvstoremesh-dbg troubleshoot [--include-local]: troubleshoot the kvstoremesh connectivity to the local etcd kvstore and remote clusters;

Example output of cilium troubleshoot clustermesh in case of success is:
Found 1 remote cluster configurations

Remote cluster "cheerful-rhino":
📄 Configuration path: /var/lib/cilium/clustermesh/clustermesh1

🔌 Endpoints:
   - https://clustermesh-apiserver.kube-system.svc:2379
     ✅ Hostname resolved to: <IP_ADDRESS>
     ✅ TCP connection successfully established to <IP_ADDRESS>:2379
     ✅ TLS connection successfully established to <IP_ADDRESS>:2379
     ℹ  Negotiated TLS version: TLS 1.3, ciphersuite TLS_AES_128_GCM_SHA256
     ℹ  Etcd server version: 3.5.13

🔑 Digital certificates:
   ✅ TLS Root CA certificates:
      - Serial number:       c0:ae:dd:fc:cd:20:b9:ca:c6:e6:be:ca:8e:b7:a1:03
        Subject:             CN=Cilium CA
        Issuer:              CN=Cilium CA
        Validity:
          Not before:  2024-05-03 07:15:23 +0000 UTC
          Not after:   2027-05-03 07:15:23 +0000 UTC
   ✅ TLS client certificates:
      - Serial number:       37:b3:23:16:b4:a0:61:b1:59:54:59:7a:e6:e2:54:13
        Subject:             CN=remote
        Issuer:              CN=Cilium CA
        Validity:
          Not before:  2024-05-03 07:15:29 +0000 UTC
          Not after:   2027-05-03 07:15:29 +0000 UTC

⚙ Etcd client:
   ✅ Etcd connection successfully established
   ℹ  Etcd cluster ID: 85e29469f06c55e1

Failure examples (providing only the relevant snippet for brevity) include:

The hostname doesn't resolve to any IP:

🔌 Endpoints:
   - https://bar.mesh.cilium.io:32380
     ❌ Cannot resolve hostname: lookup bar.mesh.cilium.io: no such host
     ❌ Cannot establish TCP connection to bar.mesh.cilium.io:32380: dial tcp: lookup bar.mesh.cilium.io: no such host

Failed to establish TCP connection:

🔌 Endpoints:
   - https://clustermesh2.mesh.cilium.io:9999
     ✅ Hostname resolved to: <IP_ADDRESS>
     ❌ Cannot establish TCP connection to clustermesh2.mesh.cilium.io:9999: dial tcp <IP_ADDRESS>:9999: connect: connection refused

The server certificate is not valid for the given IP/hostname:

🔌 Endpoints:
   - https://<IP_ADDRESS>:32380
     ✅ TCP connection successfully established to <IP_ADDRESS>:32380
     ❌ Cannot establish TLS connection to <IP_ADDRESS>:32380: tls: failed to verify certificate: x509: certificate is valid for <IP_ADDRESS>, ::1, not <IP_ADDRESS>
  - https://foo.cilium.io:32380
     ✅ Hostname resolved to: <IP_ADDRESS>
     ✅ TCP connection successfully established to <IP_ADDRESS>:32380
     ❌ Cannot establish TLS connection to foo.cilium.io:32380: tls: failed to verify certificate: x509: certificate is valid for clustermesh-apiserver.cilium.io, *.mesh.cilium.io, clustermesh-apiserver.kube-system.svc, not foo.cilium.io

The server certificate is signed by an unknown root CA:

🔌 Endpoints:
   - https://clustermesh2.mesh.cilium.io:32380
     ✅ Hostname resolved to: <IP_ADDRESS>
     ✅ TCP connection successfully established to <IP_ADDRESS>:32380
     ❌ Cannot establish TLS connection to clustermesh2.mesh.cilium.io:32380: tls: failed to verify certificate: x509: certificate signed by unknown authority

The client certificate is rejected by the peer as signed by an unknown CA:

🔌 Endpoints:
   - https://clustermesh2.mesh.cilium.io:32380
     ✅ Hostname resolved to: <IP_ADDRESS>
     ✅ TCP connection successfully established to <IP_ADDRESS>:32380
     ✅ TLS connection successfully established to <IP_ADDRESS>:32380
     ℹ  Negotiated TLS version: TLS 1.3, ciphersuite TLS_AES_128_GCM_SHA256
     ❌ TLS client authentication failed: remote error: tls: unknown certificate authority

🔑 Digital certificates:
   ...
   ✅ TLS client certificates:
      - Serial number:       37:b3:23:16:b4:a0:61:b1:59:54:59:7a:e6:e2:54:13
        Subject:             CN=remote
        Issuer:              CN=Cilium CA
        Validity:
          Not before:  2024-05-03 07:15:29 +0000 UTC
          Not after:   2027-05-03 07:15:29 +0000 UTC
        ⚠ Cannot verify certificate with the configured root CAs

The etcd user is not authorized to retrieve the data:

⚙ Etcd client:
   ❌ Failed to retrieve key from etcd: etcdserver: permission denied

I've marked this PR for backport to all stable branches as it qualifies as Debug tool improvements, and it doesn't introduce risks considering that it includes CLI changes only.

Fixes: #30937
Introduce CLI commands to troubleshoot connectivity issues to the etcd kvstore and clustermesh control plane

/test

/test

/test