In lammps job executable file, lammps potential file name is lmp mpi vs the actuall name is lmp

alledProcessError                        Traceback (most recent call last)
File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:936, in execute_command_with_error_handling(executable, shell, working_directory, cores, threads, gpus, conda_environment_name, conda_environment_path, accepted_return_codes, accept_crash)
    935 try:
--> 936     shell_output = execute_subprocess(
    937         executable=executable,
    938         shell=shell,
    939         working_directory=working_directory,
    940         conda_environment_name=conda_environment_name,
    941         conda_environment_path=conda_environment_path,
    942         cores=cores,
    943         threads=threads,
    944         gpus=gpus,
    945     )
    946 except (subprocess.CalledProcessError, FileNotFoundError) as error:

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:745, in execute_subprocess(executable, shell, working_directory, cores, threads, gpus, conda_environment_name, conda_environment_path)
    744 if conda_environment_name is None and conda_environment_path is None:
--> 745     out = subprocess.run(
    746         executable,
    747         cwd=working_directory,
    748         shell=shell,
    749         stdout=subprocess.PIPE,
    750         stderr=subprocess.STDOUT,
    751         universal_newlines=True,
    752         check=True,
    753         env=environment_dict,
    754     ).stdout
    755 else:

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/subprocess.py:571, in run(input, capture_output, timeout, check, *popenargs, **kwargs)
    570     if check and retcode:
--> 571         raise CalledProcessError(retcode, process.args,
    572                                  output=stdout, stderr=stderr)
    573 return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command '/home/users/baghasq1/anaconda3/envs/workflow-rdf-v0.2/share/pyiron/lammps/bin/run_lammps_2024.02.07.sh' returned non-zero exit status 134.

During handling of the above exception, another exception occurred:

RuntimeError                              Traceback (most recent call last)
File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:978, in execute_job_with_calculate_function(job)
    973 try:
    974     (
    975         shell_output,
    976         parsed_output,
    977         job_crashed,
--> 978     ) = job.get_calculate_function()(**job.calculate_kwargs)
    979 except RuntimeError:

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:139, in CalculateFunctionCaller.__call__(self, working_directory, input_parameter_dict, executable_script, shell_parameter, cores, threads, gpus, conda_environment_name, conda_environment_path, accept_crash, accepted_return_codes, output_parameter_dict)
    135     self.write_input_funct(
    136         input_dict=input_parameter_dict,
    137         working_directory=working_directory,
    138     )
--> 139 job_crashed, shell_output = execute_command_with_error_handling(
    140     executable=executable_script,
    141     shell=shell_parameter,
    142     working_directory=working_directory,
    143     cores=cores,
    144     threads=threads,
    145     gpus=gpus,
    146     conda_environment_name=conda_environment_name,
    147     conda_environment_path=conda_environment_path,
    148     accepted_return_codes=accepted_return_codes,
    149     accept_crash=accept_crash,
    150 )
    151 parsed_output = None

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:953, in execute_command_with_error_handling(executable, shell, working_directory, cores, threads, gpus, conda_environment_name, conda_environment_path, accepted_return_codes, accept_crash)
    952         f.write(error.output)
--> 953     raise RuntimeError("External executable failed")
    954 else:

RuntimeError: External executable failed

During handling of the above exception, another exception occurred:

RuntimeError                              Traceback (most recent call last)
Cell In[13], line 1
----> 1 job.run()

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_snippets/deprecate.py:158, in Deprecator.__deprecate_argument.<locals>.decorated(*args, **kwargs)
    148     if kw in self.arguments:
    149         warnings.warn(
    150             message_format.format(
    151                 "{}.{}({}={})".format(
   (...)
    156             stacklevel=2,
    157         )
--> 158 return function(*args, **kwargs)

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/generic.py:880, in GenericJob.run(self, delete_existing_job, repair, debug, run_mode, run_again)
    878     self._run_if_repair()
    879 elif status == "initialized":
--> 880     self._run_if_new(debug=debug)
    881 elif status == "created":
    882     self._run_if_created()

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/generic.py:1402, in GenericJob._run_if_new(self, debug)
   1394 def _run_if_new(self, debug=False):
   1395     """
   1396     Internal helper function the run if new function is called when the job status is 'initialized'. It prepares
   1397     the hdf5 file and the corresponding directory structure.
   (...)
   1400         debug (bool): Debug Mode
   1401     """
-> 1402     run_job_with_status_initialized(job=self, debug=debug)

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:189, in run_job_with_status_initialized(job, debug)
    187 else:
    188     job.save()
--> 189     job.run()

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_snippets/deprecate.py:158, in Deprecator.__deprecate_argument.<locals>.decorated(*args, **kwargs)
    148     if kw in self.arguments:
    149         warnings.warn(
    150             message_format.format(
    151                 "{}.{}({}={})".format(
   (...)
    156             stacklevel=2,
    157         )
--> 158 return function(*args, **kwargs)

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/generic.py:882, in GenericJob.run(self, delete_existing_job, repair, debug, run_mode, run_again)
    880     self._run_if_new(debug=debug)
    881 elif status == "created":
--> 882     self._run_if_created()
    883 elif status == "submitted":
    884     run_job_with_status_submitted(job=self)

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/generic.py:1413, in GenericJob._run_if_created(self)
   1404 def _run_if_created(self):
   1405     """
   1406     Internal helper function the run if created function is called when the job status is 'created'. It executes
   1407     the simulation, either in modal mode, meaning waiting for the simulation to finish, manually, or submits the
   (...)
   1411         int: Queue ID - if the job was send to the queue
   1412     """
-> 1413     return run_job_with_status_created(job=self)

When I install atomrdf with the help pf yml file of workflow environment and try to run a simple lammps job I got this error.
File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:212, in run_job_with_status_created(job)
    210     run_job_with_runmode_manually(job=job, _manually_print=True)
    211 elif job.server.run_mode.modal:
--> 212     job.run_static()
    213 elif job.server.run_mode.srun:
    214     run_job_with_runmode_srun(job=job)

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/generic.py:917, in GenericJob.run_static(self)
    913 """
    914 The run static function is called by run to execute the simulation.
    915 """
    916 if self._job_with_calculate_function:
--> 917     execute_job_with_calculate_function(job=self)
    918 else:
    919     return execute_job_with_external_executable(job=self)

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:717, in run_time_decorator.<locals>.wrapper(job)
    715 if not state.database.database_is_disabled and job.job_id is not None:
    716     job.project.db.item_update({"timestart": datetime.now()}, job.job_id)
--> 717     output = func(job)
    718     job.project.db.item_update(job._runtime(), job.job_id)
    719 else:

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:980, in execute_job_with_calculate_function(job)
    974     (
    975         shell_output,
    976         parsed_output,
    977         job_crashed,
    978     ) = job.get_calculate_function()(**job.calculate_kwargs)
    979 except RuntimeError:
--> 980     raise_runtimeerror_for_failed_job(job=job)
    981 else:
    982     job.set_input_to_read_only()

File ~/anaconda3/envs/workflow-rdf-v0.2/lib/python3.11/site-packages/pyiron_base/jobs/job/runfunction.py:873, in raise_runtimeerror_for_failed_job(job)
    871 if job.server.run_mode.non_modal:
    872     state.database.close_connection()
--> 873 raise RuntimeError("Job aborted")

RuntimeError: Job aborted

@sepidbgh I am not sure what is wrong here. Could you please mention how you informed lammps, and what is the version installed? Thanks!


remove unnecessary texts from placeholders

Description
Changes proposed in this pull request:

remove unnecessary texts from placeholders
small fixes

Related issue(s)
Resolves #978

/retest

/retest

/retest

/retest


Support for downloading only provided split

We can pass split to _split_generators().
But I'm not sure if it's possible to solve cache issues, mostly with dataset_info.json

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

My previous comment didn't create the retro-link in the PR. I write it here again.
You can check the context and the discussions we had about this feature enhancement in this PR:

#2249


Relicense to MIT license

Recently, @xa relicensed the original RetroWrapper project to use the MIT license. I'd like to relicense this fork to use the same license if possible. @araghon007 are you happy for your contributions to also be relicensed to the MIT license?

Oh hello, long time no see

@araghon007 are you happy for your contributions to also be relicensed to the MIT license?

Absolutely! And I'm hapy to see this project is still being worked on.

Oh hello, long time no see

@araghon007 are you happy for your contributions to also be relicensed to the MIT license?

Absolutely! And I'm hapy to see this project is still being worked on.

Thanks! I'm not super active at the moment, but I'm hoping I'll have some more time to work on projects soon.


Context (Average) Precision and LongContextReorder

Hi, I noticed something interesting that I thought might be worth mentioning.
There's been some attention around the paper "Lost in the Middle: How Language Models Use Long Contexts"
LangChain has introduced a LongContextReorder class, which basically reorders the retrieved documents so that the least relevant documents are in the middle instead of at the end of the document list. The claim is that having the most relevant documents at the beginning and end is actually better for the LLM than to rank them in true ascending order.
The side effect of course is that LongContextReorder should have the unfortunate effect of lowering the Average Precision calculation.
I just thought I'd make a note of that in case anyone else came across this.

Hey @austinmw , thank you for sharing this. I had similar thoughts after going through the paper. This is one of the reasons why I added the new context_precicion metric which is rank-sensitive precision, Would love to know your thoughts on it. Here's a reference
Regarding finding in "lost in the middle" paper, I believe this behavior of the particular LLM is due the nature of finetuning data ( which makes LLM attention scores ignore tokens in the middle).  In my research & understanding it is always best to have relevant chunks at the top.
I appreciate your genuine interest in our project, I would love to have a chat with you on this and possible contribution opportunities. Here's my calendly.

Scheduled, looking forward to talking!


Sticking up the NavBar so it don't overlap the text.

The navbar in the website is overlapping the text in various places.

So not to Overlap of the navbar will make the UI clean and easy to read.

Can you assign me the issue under GSSOC.
Currently the position of the navbar is fixed it can be made non fixed and the ui will clean.

this has been fixed already @Abhishekraj8757 @AditiSingh2003

It is resolved


Add extra sensors

Adding extra sensors to the integration, based on the additional information published from the OpenEVSE status

Thanks!

Thanks to you for the integration!
I am not sure about the 'Sleep' switch that you have implemented. I need to understand what it does. I think that it is more interesting to provide the 'Manual Override' switch/button and the Normal/Eco switch. But for that I will need a bit more time, as the switch.py function may require some refactoring.
I am also working to provide a template for this integration within the custom charger-card -  see this PR there
Happy New Year.

It's a stand in for Manual Override right now.
It needs to be version gated for OpenEVSE hardware using firmware v3.xx or lower.

It's a stand in for Manual Override right now.
It needs to be version gated for OpenEVSE hardware using firmware v3.xx or lower.


Can't download video from YouTube

Checklist

[ x] I'm asking a question
[ x] I've looked through the README and FAQ for similar questions
[ x] I've searched the bugtracker for similar questions including closed ones

Question
I've been trying to download https://www.youtube.com/watch?v=UvQUKp07HxA.  Unfortunately, if I specify the format [mp4], I get errors downloading the entire file.  It starts and then almost immediately dies with "ERROR: Did not get any data blocks".  If I switch to [webm] (the only other option), I'm told the format isn't available.  But I browsed the list of formats in the json and found both mp4 and webm up to 1080p.
So why can't I download the video?

WRITE QUESTION HERE

Why is it incomplete?  What am I missing?

This is what I see:
``
PS C:> youtube-dl.exe https://www.youtube.com/watch?v=UvQUKp07HxA -o "H:\YouTube Videos\2020 Supra Street Hunter by TJ
Hunt Part 11.%(ext)s" -f "[height<=1080][ext=mp4]"
[youtube] UvQUKp07HxA: Downloading webpage
[youtube] UvQUKp07HxA: Downloading video info webpage
[download] Destination: H:\YouTube Videos\2020 Supra Street Hunter by TJ Hunt Part 11.mp4
[download]   0.3% of 237.04MiB at  1.28MiB/s ETA 03:05 [download] Got server HTTP error: Downloaded 648596 bytes, expect
ed 248553454 bytes. Retrying (attempt 1 of 10)...
ERROR: unable to download video data: HTTP Error 404: Not Found
PS C:> del 'H:\YouTube Videos*11.mp4.part'
PS C:> youtube-dl.exe https://www.youtube.com/watch?v=UvQUKp07HxA -o "H:\YouTube Videos\2020 Supra Street Hunter by TJ
Hunt Part 11.%(ext)s" -f "[ext=webm]"
[youtube] UvQUKp07HxA: Downloading webpage
[youtube] UvQUKp07HxA: Downloading video info webpage
ERROR: requested format not available
PS C:>

Well I got it downloading by specifying the desired format id, 248, directly.  I still don't understand why I couldn't specify the webm extension in -f.

There is no best format with ext=webm as clearly stated in the error message.

Huh?  It looks like it when I look at the json.


autocomplete requires too many tabs

Description
For files foo.{a,b} (but also foo_{a,b} etc.)
v fo<TAB>

completes to
v foo.

but shows no file menu to make clear that the completion is not done.
Sometimes hitting <TAB><CR> is enough to edit a file and sometimes <TAB><TAB><TAB><CR> is needed, depending on the context (e.g. is there a .h file for a .c file).
An alternative would be to complete the most frequently/recently used suffix instead.
But at least it should already show the completion menu to indicate that there is a choice to be made - currently this requires another <TAB>.
To get from fo to foo.a you even have to do fo<TAB><TAB><TAB> since the first result is not selected.
I don't know if this can be done inside prezto or if it's a zsh issue.
Expected behavior
fo<TAB> completes to foo. and opens the completion results. Another <TAB> selects the first result.
Alternative:
fo<TAB> completes to foo.a and opens the completion results.
This means we can't complete to the longest common prefix anymore.
Maybe hitting <BS> could be used to shorten the completion to that longest common prefix.
Versions

Prezto commit: e94b6b2078ccd0b289293dc4b996983a96a34681
ZSH version: zsh 5.7.1 (x86_64-apple-darwin18.2.0)
OS information: macOS 10.14.5 (18F132)

After reading http://zsh.sourceforge.net/Doc/Release/Completion-System.html I arrived at the following:
Alternative 1:
setopt menu_complete

v fo<TAB> -> v foo.a with open menu with foo.a selected (<TAB> cycles), <CR> accepts completion, <CR> executes command.
^O accepts completion and executes command.
Alternative 2:
zstyle ':completion:*:default' menu 'yes' 'search'

v fo<TAB> -> v foo.a with interactive search prompt (typing b will select foo.b, <TAB> cycles through results), <CR> ends isearch, <CR> accepts completion, <CR> executes command.
^O accepts completion and executes command.
Optional:
#  sort file completions by last access time (most recent first)
zstyle ':completion:*' file-sort access
# highlight the first ambiguous character in completion lists
zstyle ':completion:*' show-ambiguity 'true'
# make ctrl-j also accept completion and execute command, enter or space can still be used to accept w/o execution
bindkey -M menuselect '^J' .accept-line

I don't know if that's a better default (for me it certainly is). Sadly I didn't find an option to just show the menu w/o completing.
I'll leave this open for now in case someone has better ideas. Feel free to close.

I can't find a place to put bindkey -M menuselect '^J' .accept-line. Both in zshrc and zpreztorc I get no such keymap 'menuselect'.
If I leave off -M menuselect or try -M main it doesn't complain, but it also doesn't work (bindkey-all only lists .accept-line in a keymap .safe, but that's coming from somewhere else).


How To remove Edge (only edge)

HI
How to remove one edge from the elements, I try with example https://reactflow.dev/examples/edge-with-button but is not remove the element and the code is empty about this, only show javascript alert no remove the edge.
I try with removeElements but is not working for removing edge, only remove nodes.
And i try with updateEdge like that:
updateEdge(edge,{}, elements);
and
updateEdge(edge,null, elements);
but still not working

In the examples we add functions to the data option of nodes/edges. We only do this for simplifying the examples. I would recommend to use a state lib like Zustand or use React context.

My solution.

OnConnect function add data: {setEges}

const onConnect = useCallback(
    (params) =>
      setEdges((eds) =>
        addEdge(
          {
            ...params,
            type: 'edgewithbutton',
            markerEnd: { type: MarkerType.ArrowClosed },
            style: { strokeWidth: 2 },
            data: { setEdges },   <---------
          },
          eds,
        ),
      ),
    [setEdges],
  );

in edgeWithbutton component, read this props and use it.

export const EdgeWithButton = ({  ...,  markerEnd,  data,}) => {
  ...
   const onEdgeButtonClick = (evt, id) => {
    evt.stopPropagation();
    data?.setEdges((edges) => edges.filter((ed) => ed.id !== id));
  };

  return (
    <>
       ...
      <foreignObject >
        <RemoveIcon onClick={(event) => onEdgeButtonClick(event, id)} />
      </foreignObject>
    </>
  );
};

@AndreyPatseiko
Awesome.
I wonder how to pass setNodes to a custom node?

@AndreyPatseiko, there is no need to pass setEdges() function with data since it is already present in ReactFlow instance, which can be obtained with useReactFlow():
const reactFlow = useReactFlow()

const onClick = useCallback(
  (evt, id) => {
    evt.stopPropagation()
    reactFlow.setEdges((edges) => edges.filter((edge) => edge.id !== id))
  },
  [reactFlow]
)

reactFlow.setEdges((edges) => edges.filter((edge) => edge.id !== id))

Thank you. You're right.


Error: No active provider set. Please select a provider for this project

Operating System
windows 11
Python Version
3.10.14
ClaudeSync Version
0.6.1
Installation Type
New
Configuration
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync config ls
{
  "claude_api_url": "https://api.claude.ai/api",
  "compression_algorithm": "none",
  "file_categories": {
    "all_files": {
      "description": "All files not ignored",
      "patterns": [
        "*"
      ]
    },
    "all_source_code": {
      "description": "All source code files",
      "patterns": [
        "*.java",
        "*.py",
        "*.js",
        "*.ts",
        "*.c",
        "*.cpp",
        "*.h",
        "*.hpp",
        "*.go",
        "*.rs"
      ]
    },
    "build_config": {
      "description": "Build configuration files",
      "patterns": [
        "**/pom.xml",
        "**/build.gradle",
        "**/package.json",
        "**/setup.py",
        "**/Cargo.toml",
        "**/go.mod",
        "**/pyproject.toml",
        "**/requirements.txt",
        "**/*.tf",
        "**/*.yaml",
        "**/*.yml",
        "**/*.properties"
      ]
    },
    "production_code": {
      "description": "Production source code",
      "patterns": [
        "**/src/**/*.java",
        "**/*.py",
        "**/*.js",
        "**/*.ts",
        "**/*.vue"
      ]
    },
    "test_code": {
      "description": "Test source code",
      "patterns": [
        "**/test/**/*.java",
        "**/tests/**/*.py",
        "**/test_*.py",
        "**/*Test.java"
      ]
    },
    "uberproject_java": {
      "description": "Uberproject Java + Javascript",
      "patterns": [
        "**/src/**/*.java",
        "**/*.py",
        "**/*.js",
        "**/*.ts",
        "**/*.vue",
        "**/pom.xml",
        "**/build.gradle",
        "**/package.json",
        "**/setup.py",
        "**/Cargo.toml",
        "**/go.mod",
        "**/pyproject.toml",
        "**/requirements.txt",
        "**/*.tf",
        "**/*.yaml",
        "**/*.yml",
        "**/*.properties"
      ]
    }
  },
  "log_level": "INFO",
  "max_file_size": 32768,
  "prune_remote_files": true,
  "submodule_detect_filenames": [
    "pom.xml",
    "build.gradle",
    "package.json",
    "setup.py",
    "Cargo.toml",
    "go.mod"
  ],
  "two_way_sync": false,
  "upload_delay": 0.5
}
  claudesync 3.10.14  shane @ moa ❯ ~ ❯

Steps to Reproduce
steps:
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync auth login
Choose provider (claude.ai) [claude.ai]: claude.ai
A session key is required to call: https://api.claude.ai/api
To obtain your session key, please follow these steps:
1. Open your web browser and go to https://claude.ai
2. Log in to your Claude account if you haven't already
3. Once logged in, open your browser's developer tools:
   - Chrome/Edge: Press F12 or Ctrl+Shift+I (Cmd+Option+I on Mac)
   - Firefox: Press F12 or Ctrl+Shift+I (Cmd+Option+I on Mac)
   - Safari: Enable developer tools in Preferences > Advanced, then press Cmd+Option+I
4. In the developer tools, go to the 'Application' tab (Chrome/Edge) or 'Storage' tab (Firefox)
5. In the left sidebar, expand 'Cookies' and select 'https://claude.ai'
6. Locate the cookie named 'sessionKey' and copy its value. Ensure that the value is not URL-encoded.
Please enter your sessionKey:
Please enter the expires time for the sessionKey (optional) [Tue, 22 Oct 2024 11:19:41 UTC]:
Received a 403 Forbidden error.
Failed to retrieve organizations. Please enter a valid sessionKey.
Please enter your sessionKey:
Please enter the expires time for the sessionKey (optional) [Tue, 22 Oct 2024 11:19:55 UTC]:
Successfully authenticated with claude.ai. Session key stored globally.
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync project create
Enter a title for your new project [shane]: sync-test
Enter the project description [Project created with ClaudeSync]:
Enter the absolute path to your local project directory [C:\Users\shane]: C:\Users\shane\Dropbox\shane\ai\sync
Pick the provider to use for this project (claude.ai) [claude.ai]: claude.ai
Project 'sync-test' (uuid: 6865e2e9-e3ff-46c0-9d44-02ee4c0e22b1) has been created successfully.

Project setup complete. You can now start syncing files with this project. URL: https://claude.ai/project/6865e2e9-e3ff-46c0-9d44-02ee4c0e22b1
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync push
Error: No active provider set. Please select a provider for this project.

Description
 claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync push
Error: No active provider set. Please select a provider for this project.
Logs
where are logs saved to in Windows 11?

It looks like your current working directory is set to C:\Users\shane. However, you’re trying to create the project in C:\Users\shane\Dropbox\shane\ai\sync.
To resolve the issue, you need to change your working directory to C:\Users\shane\Dropbox\shane\ai\sync before running the claudesync push command.
Since this is expected behavior based on your setup, I’ll be closing the issue as it appears to be a user-handling error.

  shane @ moa ❯ sync  ❯ conda activate claudesync
  claudesync 3.10.14  shane @ moa ❯ sync ❯ claudesync push
Error: No active provider set. Please select a provider for this project.
  claudesync 3.10.14  shane @ moa ❯ sync ❯ pwd

Path
----
C:\Users\shane\Dropbox\shane\ai\sync

  claudesync 3.10.14  shane @ moa ❯ sync ❯ cd
  claudesync 3.10.14  shane @ moa ❯ ~ ❯ pwd

Path
----
C:\Users\shane

  claudesync 3.10.14  shane @ moa ❯ ~ ❯ claudesync push
Error: No active provider set. Please select a provider for this project.
  claudesync 3.10.14  shane @ moa ❯ ~ ❯

@shaneholloman can please share the location of your project .claudesync directory

I was able to solve this issue by creating a new project with claudesync: claudesync project create

Exact same issue here @jahwag
macbookpro:~ 26tja$ claudesync project create
Enter a title for your new project [26tja]: SMTP2
Enter the project description [Project created with ClaudeSync]: SMTP
Enter the absolute path to your local project directory [/Users/26tja]: /Users/26tja/Downloads/smtp-addon-docker-main
Pick the provider to use for this project (claude.ai) [claude.ai]: claude.ai
Project 'SMTP2' (uuid: ffac0be7-bd64-4f46-be52-caae6e117c09) has been created successfully.
Project setup complete. You can now start syncing files with this project. URL: https://claude.ai/project/ffac0be7-bd64-4f46-be52-caae6e117c09
macbookpro:~ 26tja$ claudesync push
Error: No active provider set. Please select a provider for this project.
macbookpro:~ 26tja$

don't think that's it - it seems to be an issue if the cookie expiry date is not explicitly provided on mac - I re-authed and gave it an explicity expiry (rather than using the default suggestion) and that fixed it

@26tajeen
You're misunderstanding. You created the project in /Users/26tja/Downloads/smtp-addon-docker-main, so you need to change your working directory to that before running claudesync push. You did not do that as evidenced by "~ 26tja":
macbookpro:~ 26tja$ claudesync push

so the correct error message for being in the wrong directory is:
"No active provider set. Please select a provider for this project."  ??
It's your project, so maybe it is?

affirmative, humans are more inventive than there are error messages)

Proof I was right on Friday :-)

Same command issued from the same directory only works if the default option is not used and a provider is explicitly chosen

I too had this issue and fixed it by changing directory from "C:\Users\PcName" to "C:\Users\PcName\Documents". When I ls the projects it shows up.
However now it hangs and doesn't proceed on push.

related error here, created a project directly at the Claude website, switched to the directory with the files I want to sync and need to do claudesync organization set and claudesync project set twice before I'm able to do claudesync push
otherwise I get "No active provider set" too

To push to a claude.ai project, you must have once set the destination
organization and project via:
claudesync organization set
claudesync project set
OR,
claudesync project create
This will create a hidden .claudesync directory in your working directory
with the specified claude.ai destination. Sub-directories will be
considered part of this project when issuing commands.
There is also the possibility to define submodules, in order to reduce
context window size when working in larger projects. This is not
(well-)documented, but can be inferred from the command line options and
inspection of claudesync.local.json. There are a specific subset of project
files eg package.json that will be considered as constituting a submodule.
Hope that clears up any outstanding questions.
Probably should get around to releasing more helpful error messages
sometime.To push to a claude.ai project, you must have once set the
destination organization and project via: claudesync organization set
claudesync project set OR, claudesync project create This will create a
hidden .claudesync directory in your working directory with the specified
destination. Sub-directories will be considered part of this project. There
is also the possibility to define sub-modules, in order to reduce context
window. This is not (well-)documented but can be inferred from the command
line options and inspection of claudesync.local.json. Hope that clears up
any outstanding questions. Probably should get around to releasing more
helpful error messages.
On Wed, Oct 23, 2024 at 16:43 Lucas @.***> wrote:

related error here, created a project directly at the Claude website,
switched to the directory with the files I want to sync and need to do claudesync
organization set and claudesync project set twice before I'm able to do claudesync
push
otherwise I get "No active provider set" too
—
Reply to this email directly, view it on GitHub
https://github.com/jahwag/ClaudeSync/issues/74#issuecomment-2432462493,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAED5XBP727N6PEGKL44O2TZ46YYNAVCNFSM6AAAAABOUPEMEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZSGQ3DENBZGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

There’s definitely a bug around having to create the project twice sometimes (using identical commands) before it will allow you to do a Claudesync push


fix(versions): update Activiti/activiti-cloud-full-chart-security versions

UpdateBot pushed helm dependency: activiti-cloud-full-example to: 7.1.287

UpdateBot commands:
updatebot push-version --kind helm activiti-cloud-full-example 7.1.287


gensio: 2.2.9 -> 2.3.0

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for gensio is: "General Stream I/O"
meta.homepage for gensio is: "https://sourceforge.net/projects/ser2net/"
meta.changelog for gensio is: ""
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

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

/nix/store/yx6zsrr6gy164j2hfp13bay4q5gxg0dz-gensio-2.3.0/bin/gensiot passed the binary check.

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

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

found 2.3.0 with grep in /nix/store/yx6zsrr6gy164j2hfp13bay4q5gxg0dz-gensio-2.3.0

found 2.3.0 in filename of file in /nix/store/yx6zsrr6gy164j2hfp13bay4q5gxg0dz-gensio-2.3.0

directory tree listing: https://gist.github.com/4aba908e81e952196abbd38b3975a01c

du listing: https://gist.github.com/7d640c9645c912097390d37a1685d9c1

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

7 total rebuild path(s)

2 package rebuild(s)

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

First fifty rebuilds by attrpath
gensio
ser2net

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/yx6zsrr6gy164j2hfp13bay4q5gxg0dz-gensio-2.3.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 gensio https://github.com/r-ryantm/nixpkgs/archive/cdb466320a6e9e61eb1a131fbee4cd70377b4bb2.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/yx6zsrr6gy164j2hfp13bay4q5gxg0dz-gensio-2.3.0
ls -la /nix/store/yx6zsrr6gy164j2hfp13bay4q5gxg0dz-gensio-2.3.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 run on x86_64-linux 1

2 packages built:

gensio
ser2net

Maintainer pings
cc @emantor for testing.

Upstream is at v2.3.6 ; closing to let the bot pick it up on its next run


[WIP] Use k8s.io/kubelet/pkg/cri/streaming instead

What type of PR is this?

/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
k8s.io/kubelet/pkg/cri/streaming will be released in 1.28, and we can remove the
dependencies.
Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:

NONE

Continue on #772


Fix Issue #233

Hi @bsvicente, thank you for your contribution. Could you please squash your commits to have only one. Also, could you rename your commit with fix(extension-registry): add schema references to data model.
Thank you

@fhussonnois done


the manifest is missing a Swift tools version specification

the manifest is missing a Swift tools version specification; consider prepending to the manifest '// swift-tools-version:5.5.0' to specify the current Swift toolchain version as the lowest Swift version supported by the project; if such a specification already exists, consider moving it to the top of the manifest, or prepending it with '//' to help Swift Package Manager find it

+1
please add // swift-tools-version:5.5 into Package.swift

The same // Someone found solution ?

Make sure you set the latest version which is right now is 15.0.0
@PJStation
@fresh-Blood


test: reduce number of operations and make names more unique

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

[ ] Make sure to open an issue as a bug/issue before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
[ ] Ensure the tests and linter pass
[ ] Code coverage does not decrease (if any source code was changed)
[ ] Appropriate docs were updated (if necessary)

Fixes #1758  🦕

TLDR: This PR does 2 primary things: 1. makes bucket naming more unique as testbench as of v0.11.0 is enforcing naming uniqueness. 2. We essentially had a lot of duplicated (n^2ish) operations going on in part due to misunderstanding the sequencing of before / beforeEach with describe blocks. This has now been unwound and most everything is part of beforeEach with a new nested describe block to encapsulate the individual tests.

@ddelgrosso1 any reason this is still a draft PR?


Question: Custom DataFrame Check Method based on NaN Verification

Hello everybody,
I am currently using the Pandera library and try to implement the following verification:
Assume for simplicity, that we have the four columns: 'b', 'a', 'z', and 'p'. The columns 'b', 'a', and 'p' are not nullable with the data type int and 'z' is nullable and has the data type float (because as far as I know only floats can be NaN?). The actual check which I am interested in is that for each row where 'z' is not NaN the equation/equality: df['b'] == df['a'] - df['z'] should be checked and on the other hand for each row where 'z' is NaN the equation/equality: df['b'] == df['a'] - df['p'] should be checked as well (see code snippet '#CustomCheck').
# CustomCheck
@extensions.register_check_method()
def customCheck(df: pd.DataFrame)-> pd.Series:
    az = df['b'] == df['a'] - df['z']
    ap = (df['b'] == df['a'] - df['p']).where(df['z'].isna(), False)
    return az | ap

# Schema
schema = pa.DataFrameSchema(
    columns= {
        'b': pa.Column(
            dtype=int,
            nullable=False,
        ),
        'a': pa.Column(
            dtype=int,
            nullable=False,
        ),
        'z': pa.Column(
            dtype=float,
            coerce=True,
            nullable=True,
        ),
        'p': pa.Column(
            dtype=int,
            nullable=False,
        ),
    },
    checks=[pa.Check.customCheck()],
    coerce=True,
    strict=False,
    name=None,
    ordered=False
    )

The actual question/problem is the following have a look at the following DataFrame:
# test DataFrame
df = pd.DataFrame(columns=['b','a','z','p'], index=list(range(0,3)))
df['b'] = [10] * 3
df['a'] = [15] * 3
df['z'] = [5, np.nan, np.nan]
df['p'] = [999, 5, 10]

Dataframe df looks as follows:

b
a
z
p

10
15
5.0
999

10
15
NaN
5

10
15
NaN
10

Applying the rules mentioned in the beginning only the third row violates them. However validating this DataFrame (as shown below) does not throw an error for the third row (10 != 15-10) and I do not know why since the resulting logical/bool pd.Series of the custom check is [True,True,False].
schema.validate(df)

# Manual check
az = df['b'] == df['a'] - df['z']
ap = (df['b'] == df['a'] - df['p']).where(df['z'].isna(), False)
print(az | ap)
#0     True
#1     True
#2    False
#dtype: bool

hi @kraussel ! this is a gotcha that needs to be documented better... but you need to supply ignore_na=False to the check: pa.Check.customCheck(ignore_na=False)
https://pandera.readthedocs.io/en/stable/reference/generated/pandera.checks.Check.html#pandera.checks.Check
This question comes up enough that I think it's reasonable to make ignore_na=False the default value... it's better for the check to error out and say that null values are failure cases than for it to (surprisingly) pass validation.

hey @cosmicBboy,
thanks for the fast reply! Supplying ignore_na=False to the toy example worked.
However, adding it to my validation pipeline and thus checking the entire dataset it also indicates that for each column of a failed row that the CustomCheck has failed. Is there a way such that only the columns (in my case ' 'b', 'a', 'z', and 'p') are mentioned in the error or even only one entry with the index?
To showcase the problem assume another column 'ignoreMe' with data type string. Thus, the extended DataFrame would look like the following:

b
a
z
p
'ignoreMe'

10
15
5.0
999
'not important for the Custom Check'

10
15
NaN
5
'not important for the Custom Check'

10
15
NaN
10
'not important for the Custom Check'

Validating the DataFrame results in:
    schema_context    column        check  check_number                        failure_case  index
0  DataFrameSchema         b  customCheck             0                                  10      2
1  DataFrameSchema         a  customCheck             0                                  15      2
2  DataFrameSchema         z  customCheck             0                                 NaN      2
3  DataFrameSchema         p  customCheck             0                                  10      2
4  DataFrameSchema  ignoreMe  customCheck             0  not important for the Custom Check      2

hi @kraussel unfortunately pandera's error-reporting mechanism is not customizeable, so the resulting SchemaError.failure_cases is formatted in long (tidy) form.
What is your use case for formatting the failure cases in a particular way? We do have some ideas on how to customize error reporting, so your use case would be a useful data point in desigining it.

Hey @cosmicBboy,
I understand, just wanted to ask if there is some (hidden) feature I didnt find out while reading the documentation.
Well, regarding your question, the overall goal is to integrate the validation step to a (ML data) pipeline and if one of the validation rules fail an expert takes a look at it. Since there are more than 3000+ features it would be handy to have an option that just states the indexwith the respective test which failed. However, since the SchemaError.failure_cases is a pandas DataFrame I will definitly find a solution for that.
All in all thanks for the fast replies, it absolutely helped me a lot!


rails <IP_ADDRESS> raises PendingMigrationsError when using NullDB

ERROR
Trying to run 'rake spec' while using nulldb I get this error:
$ rake spec
Migrations are pending. To resolve this issue, run:

        bin/rails db:migrate RAILS_ENV=test

CONFIGURATION

The Rails app has migrations in db/migrations.
We are using the default rails_helper.rb from rspec-rails, which runs under RAILS_ENV='test'

Environment:
ruby 2.6.6 (linux)
rails (<IP_ADDRESS>)
rspec-rails (4.0.1)
activerecord (<IP_ADDRESS>)
activerecord-nulldb-adapter (0.4.0)

database.yml defines
test:
  adapter: nulldb

WORKAROUND
Adding this to the end of config/environments/test.rb fixes the problem and allows the specs to run:
module ActiveRecord
  class MigrationContext
    def needs_migration?
      false
    end
  end
end

I also ran into this. A more flexible patch is:
module NullDBMigrationContextPatch
  def needs_migration?
    return false if schema_migration.connection.adapter_name == 'NullDB'
    super
  end
end

class ActiveRecord::MigrationContext
  prepend NullDBMigrationContextPatch
end

That is very slick!  Thanks!


No drawing visible! (iOS 5.1/Storyboards)

This looks like a fine control in the example project, but I can't get it working in my own...
I'm placing the control visually in my storyboard, and changing the class in IB to "StyledPageControl" (as per usual).
The drawRect method does indeed get called, but nothing is being drawn on screen!
What could the problem be?

you can add it to storyboard set up most options by defining user defined runtime attributes, like this


Cookie size prevents Safari working

[x ] I read and understood how to enable logging

Issue / Steps to reproduce the problem

Use the IdentityServer4.Samples/Quickstarts/8_EntityFrameworkStorage
Login with Google Chrome (Windows 10) - all OK
Long with Safari (Windows 10) - An unhandled exception occurred while processing the request. FormatException: The chunked cookie is incomplete. Only 1 of the expected 2 chunks were found, totaling 4029 characters. A client size limit may have been exceeded.

Relevant parts of the log file
Microsoft.AspNetCore.Authentication.Cookies.ChunkingCookieManager.GetRequestCookie(HttpContext context, string key)
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler+<ReadCookieTicket>d__11.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler+<HandleAuthenticateAsync>d__12.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Authentication.AuthenticationHandler+<InitializeAsync>d__52.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Authentication.AuthenticationMiddleware+<Invoke>d__18.MoveNext()
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware+<Invoke>d__7.MoveNext()

That's a know Safari problem. All you can do is to keep the cookies as small as possible. I assume this is happening at the client not IdentityServer?

@leastprivilege Yes, it's on the client, IdentityServer is fine.
I presume claims are the culprit so would storing these claims in MemoryCache or RedisCache solve the problem?
services.AddCookieAuthentication(o => o.SessionStore = new MemoryCacheTicketStore());
Would it break IdentityServer or cause any unexpected issues?

Well - it's the SaveTokens feature that is making cookies so big. Either take control over your own persistence or try the session store.

I just ran into this problem where it's trying to stuff too much into the idsrv cookie (which AFAIK I don't really controll what get's put into). Could you provide more explanation about "Either take control over your own persistence or try the session store"? What would I need to plug into to store in session or similar instead?

Related: https://github.com/IdentityServer/IdentityServer4/issues/1066


wip: prerender

#357  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hi-ogawa and the rest of your teammates on  Graphite


[BUG] Hydrogen store navigation breaks if native DOM elements are replaced/removed from page

Describe the bug
When replacing a native DOM element from the hydrogen app and navigating to another page, the app breaks because it doesn’t find the initial element anymore. Nosto's implementation relies heavily on div replacements or dynamic placements - where any element, selected via CSS selectors, can be replaced.
This error is thrown:
DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this code.
...

To Reproduce

Replace HTML element once the site finishes loading

 should be replaced/new ones should be injected
Click on any link on the page
You will be redirected to the Shopify error page

Expected behaviour
Navigation via links should work seamlessly, even after the removal of native DOM elements.
Screenshots

Additional context
There seems to be an issue with the way the React app is "destroyed"/"disembled" on navigation. Ideally, elements that no longer exist should not be explicitly "destroyed", and can be ignored? The error happens in the removeChild function, so there likely needs to be an override for elements that no longer exist.

This doc from React may help https://reactjs.org/docs/integrating-with-other-libraries.html

Closing as this isn't a bug with hydrogen, but feel free to continue to ask more questions here.
Thanks!

Thanks for sharing more context

But the way Nosto works, in general, is to use static and dynamic placements. Static placements work seamlessly with Hydrogen and React components, but 'dynamic placements' (where the merchant themselves define DOM elements that should be replaced during render) are what's causing the issue here. The behaviour is merchant-defined, so I think it should not come as a surprise to them really.

In custom storefront environments, the "merchant" should be a developer building the application and not the standard no-code end-user of online stores.
For this reason, all components should be "statically" placed by the developer. In other words, the developer should not have to add a
 and wait for a script to inject the logic, but instead they should import a react component and place it where needed by the "no-code" end user.
Hope this helps

That's a great point! The idea of "static" and "dynamic" placements shouldn't really exist in this environment, since the merchant would be creating the page themselves and should not expect
s to be replaced during runtime.
Thanks a lot, @juanpprieto! :)


Belt tensioner for left y-belt and x-belt

Would be nice to have a matching belt tensioner for the left y-belt. Also a fitting x-belt tensioner would be awesome, because most other printable belt tensioners don't fit on the left y-linear carriage from stage 2.

you can just loosen the nuts and adjust that that side like you do for a stock ender 5

Did you find anything for the x belt?

For my endorphin stage 3 I found this one to be a perfect fit and it works pretty well for me:
https://www.thingiverse.com/thing:5647135
It is small and it does not add additional size to left side of the printer.


[BUG/FEAT]Allow goto definition when inside in-memory class

When f12'ing on a Type/Object it will go to definition but if you then try to go to a type or definition from the generate metafile it does nothing.
This works in visual studio and really should work in vscode as well, I use this quite often when exploring third party libraries.
Thanks!

Thanks for reporting this. It's ultimately a bug since we support this behavior in Visual Studio. However, this issue is a duplicate of #771.


Add 5XX and 4XX status pages for production

We should have a nice 4XX page for production.
Also the 5XX page is necessary IMHO. In general it is not recommended to show too much error information to the user on a production system due to security issues (revealing paths, versions and code). However, I think that a sensible 5XX page with the stacktrace would be a better user experience. The standard plain 500 page leaves users very confused. Showing the stack-trace end the exception will make it more clear that something is not right and we are more likely to get a screenshot with usefull debug information on first contact. But in any case I would limit this to authenticated users.
Further information about this can be found in the Django docs:
https://docs.djangoproject.com/en/dev/topics/http/views/#customizing-error-views

Edit: Do not show the stack-trace, only the exception message.

Done #117


(2nd attempt) set up gitpod to automate the workspace for all contributors

gitpod needs to be set up with each repo.

gitpod setup complete


1321

Description
This PR fixes #1321
Notes for Reviewers
Signed commits

[x] Yes, I signed my commits.

@ShivangRawat30 Let's discuss it on the websites call on Monday. Please add this as an agenda item in the meeting minutes.

@ShivangRawat30 will you update the PR title to be descriptive of the change?

@leecalcote @Ghat0tkach please review my PR.

@Ghat0tkach This situation poses a challenge because all the other classes are same, and we need to identify a distinguishing characteristic for the specific division.

Hey @ShivangRawat30 Let's discuss this on website call today at 5:30 PM IST / 7 AM Central time. Please add this as an agenda item in the meeting minutes

Hey @ShivangRawat30  Let's discuss this on website call tomorrow at 5:30 PM IST / 7 AM Central time. Please add this as an agenda item in the meeting minutes.


Make Experience Collectors more expensive (or remove entirely)

The Experience Collector, added by Mob Farm Helpers is another convenient block to add in various kinds of farms, but the recipe to build it is farly cheap. It requires one mobfarmhelpers:item_collector and eight minecraft:lapis_lazuli. While some of this will be fixed by making the Item Collector more difficult to get (see #12 for details), this item needs to be made more expensive as well.
Since experience is mostly gotten by killing mobs, I think it makes sense to make use of the fettlol:soul_shard or fettlol:soul_gem here, as these are associated to the souls of mobs. Maybe something like this?

Interesting discovery: Using an empty minecraft:bucket on an Experience Collector with 1000 or more stored experience will give you a mobfarmutilities:liquid_experience_bucket, which can be emptied out onto the ground, giving you a green fluid of some sort. This fluid can then be captured inside a techreborn:cell, giving you a Tech Reborn Liquid Experience Cell.

2 Soul Gems is waaaaay overpriced, need I remind you I only got 1 in what feels like 2 months of play time?
2 Soul Shards should be more than enough.
I don't even think the xp collector is anything special. It stores some xp but since there's no automatic way to produce xp without a player, there's little reason to actually do use it - if you need xp, you sit at your farm, if you don't, you don't.
While I like the idea of basing the recipe it off the item collector, I feel the item collector is way more valuable than the xp collector, so maybe it should have an independent, cheaper recipe.

Soul Shards are bugged on the server at the moment. Play with the current v1.12 branch and see if your experience with Soul Shards/Soul Gems is the same.
As for the independent recipe, I agree. How about replacing the Item Collector with an Industrial Machine Frame?

Soul Shards are bugged on the server at the moment.

I know, still, I've mined far less than 150 diamond ore, no more than 80 I think, so I wouldn't have 2 Soul Gems.
Most my diamonds are from smelting diamond gear and finding them in treasure chests, at some point there's very little incentive to go mining for diamonds.
It's just not right that extremely useful Spawners cost 1 Soul Gem while questionably useful xp collectors cost 2.

How about replacing the Item Collector with an Industrial Machine Frame?

That works I guess, though comparing with the suggestion for the Item Collector, the xp collector would be more expensive (even when going with "just" 2 soul shards).

You're right. I think soul shards is the way to go for the Experience Collector, and then we'll find a way to make the Item Collector more expensive instead.

Implemented in 9960a8e56fed36e9cbee8c9df54c3fd801b749eb alongside other refactoring having to do with custom recipes.


adding an option for installing the dependencies required

If the setuptools module not installed, the setup.py file will not run, so i added an option to install the dependencies by adding a requirements.txt file to install all the modules required for waymore to run and/or the setup.py to run.
Added this because it might solve user issues in the future.

Thanks @0xRar !

Thanks @0xRar !

My Pleasure!


Synchronous Functions?

I have the following code in my application:
redis.client('setname', 'application name');

Is this a synchronous call? Since I haven't specified a callback or used a promise? Similar to how the documentation just has:
redis.set('foo', 'bar');

which also doesn't specify a callback or promise. Is this how these functions should be used? Or is it asynchronous and I should be specifying a callback or promise?

They are async calls in which a callback is optional.  The last parameter is always the optional callback.
You should specify a callback if you want to check for error/results!

To handle errors properly it is best to use promises. If you do not set a callback a promise will be returned by the call. The call itself is async but redis works sync so it is possible to fire multiple calls without waiting for the response but this is not recommended in most cases.

Thanks guys. That helps a lot!


Custom rule

** Q: **
Is it possible to make some custom rule, for example here:
https://github.com/paritytech/parity-bridges-common/issues/333
The spellcheck does not make sense, how to make it clean without warning?

The correct approach would be to introduce a custom dictionary with project specific lingo (see in .config in this repository for an example.

Appreciate the answer, thanks!


Had to tweak build to prevent module resolution error when app launched on Mac

This is in case anyone was getting the error where app/main.prod/js wasn't found when a packaged app launched.
It seems like electron builder wasn't looking in app.asar for the start script, i.e., app/main.prod.js.
Two workarounds were:

use "asar": false in the build config in package.json (which is not recommended but works)

add --em.main=main.prod.js as an option to the build command at the end of the package script (or pass it via command line, per boilerplate's suggestion), and add "extends": null to the build config (found : https://github.com/electron-userland/electron-builder/issues/2030#issuecomment-327155801)

Haven't tested other platforms, but this was happening on my Mac, 10.13.6

You can just edit the main prop in app/package.json like below so that it points to the correct file inside the packaged app.
// from
"main": "..app/main.prod.js",

// to
"main": "./main.prod.js",


Closes: #1

Updated validations.py python script.
Fixed the behavior of validate_user function in validations.py to only accept usernames that start with a letter.
Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

[ ] Tests pass
[ ] Appropriate changes to README are included in PR

@googlebot I signed it!

@googlebot I fixed it.

@googlebot I signed it!

@googlebot I fixed it.

@googlebot I fixed it.

@googlebot I fixed it.


Calling a SOAP service that requires a mutual SSL cert

Can this documentation also includes a scenario for calling/consuming a third party SOAP API that requires a SSL cert? I think above scenario is when API is a receiver and requires a SSL cert from a caller (like IIS etc)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 51769134-4b97-0a48-3031-cbcea10ca714
Version Independent ID: dc70bd8c-54be-1592-2137-aed9cae0094b
Content: Secure APIs using client certificate authentication in API Management - Azure API Management
Content Source: articles/api-management/api-management-howto-mutual-certificates-for-clients.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

@manish-jain-1 I have assigned this to content author for further review and update as appropriate.

#reassign:dlepow

Thank you for the suggestion to improve the documentation! As part of our regular process to maintain documentation, I recorded it and we'll consider it when we next make updates. I'll now proceed to close this issue. If you want to discuss this with community experts, please reach out on Microsoft Q&A.
#please-close


[PKG-4251] 1.23.0 ❄

opentelemetry-sdk 1.23.0 :snowflake:
Destination channel: {Snowflake | defaults}
Links

PKG-4251
Upstream repository
Upstream changelog / diff
Relevant dependency PRs:

https://github.com/AnacondaRecipes/opentelemetry-api-feedstock/pull/2
https://github.com/AnacondaRecipes/opentelemetry-semantic-conventions-feedstock/pull/3

Explanation of changes:

...

Linter check found the following problems:
ERROR conda.cli.main_run:execute(124): `conda run conda-lint /tmp/abs_edyadd7nhl/clone` failed. (See above for error)
The following problems have been found:
===== WARNINGS =====

clone/recipe/meta.yaml:44: documentation_specifies_language: Use the generic link, not a language specific one
===== Final Report: =====
0 Errors and 1 Warning were found


✨ 概要
なぜ必要
備考

m5-core2
mahiwa-backend v0.3.0
mahiwa-frontend-rust v0.2.0
pio v6.1.11
cargo 1.73.0 (9c4383fb5 2023-08-26)
rustc 1.73.0 (cc66ad468 2023-10-03)
opt=s

result
133810,
133810,
133810

full
❯ m r-core2
pio run -t upload -e m5stack-core2
Processing m5stack-core2 (platform: espressif32; board: m5stack-core2; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core2.html
PLATFORM: Espressif 32 (6.4.0+sha.6186d2c) > M5Stack Core2
HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
 - framework-arduinoespressif32 @ 3.20011.230801 (2.0.11)
 - tool-esptoolpy @ 1.40501.0 (4.5.1)
 - tool-mkfatfs @ 2.0.1
 - tool-mklittlefs @ 1.203.210628 (2.3)
 - tool-mkspiffs @ 2.230.0 (2.30)
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 34 compatible libraries
Scanning dependencies...
Dependency Graph
|-- Wasm3 @ 0.5.0
Building in release mode
Compiling .pio/build/m5stack-core2/src/lib/roader/wasm-roader.cpp.o
Linking .pio/build/m5stack-core2/firmware.elf
Retrieving maximum program size .pio/build/m5stack-core2/firmware.elf
Checking size .pio/build/m5stack-core2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [          ]   0.5% (used 22688 bytes from 4521984 bytes)
Flash: [=         ]   5.6% (used 368705 bytes from 6553600 bytes)
Building .pio/build/m5stack-core2/firmware.bin
esptool.py v4.5.1
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
Configuring upload protocol...
AVAILABLE: cmsis-dap, esp-bridge, esp-prog, espota, esptool, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa
CURRENT: upload_protocol = esptool
Looking for upload port...
Auto-detected: /dev/ttyUSB0
Uploading .pio/build/m5stack-core2/firmware.bin
esptool.py v4.5.1
Serial port /dev/ttyUSB0
Connecting.........
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 24:0a:c4:f9:a4:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0006afff...
Compressed 17536 bytes to 12202...
Writing at 0x00001000... (100 %)
Wrote 17536 bytes (12202 compressed) at 0x00001000 in 0.7 seconds (effective 195.4 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.1 seconds (effective 240.3 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.2 seconds (effective 387.4 kbit/s)...
Hash of data verified.
Compressed 369072 bytes to 200102...
Writing at 0x00010000... (7 %)
Writing at 0x0001c6e8... (15 %)
Writing at 0x0002a0a7... (23 %)
Writing at 0x00031319... (30 %)
Writing at 0x0003652f... (38 %)
Writing at 0x0003bdb1... (46 %)
Writing at 0x000411df... (53 %)
Writing at 0x00046765... (61 %)
Writing at 0x0004bf5e... (69 %)
Writing at 0x00054756... (76 %)
Writing at 0x0005c7b2... (84 %)
Writing at 0x00063525... (92 %)
Writing at 0x00068e6c... (100 %)
Wrote 369072 bytes (200102 compressed) at 0x00010000 in 4.7 seconds (effective 621.7 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
=========================================================================== [SUCCESS] Took 66.79 seconds ===========================================================================

Environment    Status    Duration
-------------  --------  ------------
m5stack-core2  SUCCESS   00:01:06.792
=========================================================================== 1 succeeded in 00:01:06.792 ===========================================================================
make[1]: ディレクトリ '/opt/usuyuki/mahiwa_space/mahiwa-backend' に入ります
pio device monitor -b 115200
--- Terminal on /dev/ttyUSB0 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
Project Mahiwa started🎉
ESP32 Mode
CPU Frequency:240 MHz
Project Mahiwa : WebAssembly launch
Rust mahiwa | check_1s
result: 5
time(micro): 133810
Project Mahiwa : WebAssembly done


Ticket 185: adding cookie functionality to the site

Added cookie banner and page for essential cookies

This looks great. Is it worth pushing to prod without adding the analytics cookies? Given that we have no essential cookies (as far as I'm aware) it could be misleading to the user. Is it worth getting Martin or Jeremy to look at this from either an interaction or content design point of view. I can't imagine it would take them long.
But other than that the code looks reasonable to me. I have raised some questions around the package.json in the digital-land-frontend module it looks like it's all been changed but I wasn't sure which lines were actually changed. Also there are 4 empty files which seem to have been added I'm not sure what these are?


Catalog Ruby: Book test

Helooooo @Salwa99

Activities done in this PR for issue #6 :

[x] Installed RSpec testing framework
[x] Created testing for the following instances:

For creating a new book
To make sure the book is a kind of Item
To return the correct publisher name given while creating the object
To return the correct cover state given while creating the object

Cheers 🥂

@Salwa99 Thank you so much. Have a good day.


Mac code command switches to desktop when vscode is maximised

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version:
OS Version:

Steps to Reproduce:
Version

Installed code command

Maximise vscode with the green button

try to enter the code command to open a file in the terminal

File opens in vscode but instead of staying in vscode my application switches to the desktop

Any help would be appreciated

When I run the code command my application switched out of vscode and into the desktop automatically.
Normally when I run the code command, the window will stay in vscode

Closing in favour of https://github.com/microsoft/vscode/issues/135291


cmd/test2json: parse entire output lines for pass/fail/other update messages

Fixes #26325

@ianlancetaylor I'm not completely sure I understand what Gerrit is trying to tell me... are you reviewing this change?

@MisterSquishy I asked a question about the change, and you answered it, but I am not reviewing it.  We are currently in a release freeze for the 1.19 release.  This change can be reviewed for 1.20.  But it's a hard change to review because the effects are difficult to analyze.  We have two unlikely scenarios; which is less likely?
That said it's much better for our process if discussion can take place in Gerrit, not here.  Thanks.


Prestwich/super pending

Motivation
Provide a reasonable and working alternative to gas escalator middleware.
Solution

Introduce a new Future EscalatingPending that broadcasts a series of transactions

functions similarly to PendingTransaction but with a simpler (but less informative) state machine
it returns the first receipt to confirm.
it also returns the first RPC error to occur
it allows users to configure polling and broadcast intervals

Add a middleware method send_escalating

allows users to instantiate with a TypedTransaction and an escalation policy
may be better as a middleware extension trait?

things I don't like

Invariant enforcement is done in the Middleware method rather than the constructor.

This is brittle
it's hard to see how to sign and nonce correctly otherwise

Naming

PR Checklist

[ ] Added Tests
[X] Added Documentation
[ ] Updated the changelog

test failure is unrelated to these changes
@gakonst @mattsse do you think that this belongs on the main middleware or on some sort of extension trait?

@gakonst @mattsse do you think that this belongs on the main middleware or on some sort of extension trait?

What, could be nice if this could be somehow integrated with the current send_transaction -> PendingTx, so that we can do something like p.send_transaction(tx).escalate(||...).await and p.send_transaction(tx).await.await still works.
I believe this would be possible with an additional future type (SendTx or something?) that would have Output = PendingTransaction and a fn escalate. But this would mean, async fn send_transaction would become fn send_transaction() -> SendTx.
this would be a breaking change however.
The easiest way would probably be to add another provider function, as is the case now.

the problem with that is that the signing must be done in the top-level middleware. It can't be done by the provider that the pending transaction has access to. So that feature is blocked by an object-safe Middleware trait

ah I see, makes sense, this would then be limited to only the SignerMiddleware...

Not exactly, as the raw provider may sign in many cases (using eth_sign or similar). However, relying on the provider would result in a conflict if any SignerMiddleware were used.
E.g SignerMiddleware( Provider ).  The SignerMiddleware may be signing with address 0x1234... where the node controls address 0xabcd.... This would cause errors and other unexpected behavior if we choose to have signing in the Provider held by a PendingTransaction

latest commit uses FuturesUnordered. I think this is better as @mattsse says. We don't require ordering here, so this functions similarly to select_all, but is easier to manage

I have no other outstanding changes so I'll update the changelog and this is ready for consideration

I like it. Thank you for the hard work, we can iterate on it post-merge. @mattsse any further comments?

lgtm

gg. Should we receive the escalator middleware?


It's taking more than 30min to reflect and because of this issue development activities are getting impacted alot. Previously endpoint used to reflect as soon as we update it. This behavior is being shown from yesterday. Please help out asap.

I'm facing this issue since today morning. If we go to "Test from webchat" blade in Azure, it's hitting the bot engine. But if tested from Facebook, it's not hitting the end point. It's taking around 30-40 minutes to point to the URL updated in the bot service settings

I am facing same issue from today morning. its taking more then 30mints to point to the URL updated in the azure bot service setting.

I confirmed that this is a bug in the service code.  We'll get a fix out in the next release.  ETA 12/3

Thank you for the update

Hi @craigjensen , can you please share an update on this

fix should be live now - please reopen if you're still seeing this


Fails compiling Uploadcare

Fails compiling Uploadcare https://uploadcare.com/docs/uploads/file-uploader/#npm.
For example at a route page, user imports uploadcare
import { onMount } from "solid-js";
import uploadcare from "uploadcare-widget";

const Home = () => {
  let uploadcareRef!: HTMLInputElement;
  onMount(() => {
    const widget = uploadcare.Widget(uploadcareRef, {
      publicKey: "",
    });
  });
  return (
    <>
      <input ref={uploadcareRef} type="hidden" />
    </>
  );
};

export default Home;

Results in Error
An error occured while server rendering /home:

	$__default.default.extend is not a function
TypeError: $__default.default.extend is not a function
    at /Users/caleb/Documents/work/project/node_modules/.pnpm/uploadcare-widget@3.20.0/node_modules/uploadcare-widget/uploadcare.js:1367:43
    at /Users/caleb/Documents/work/project/node_modules/.pnpm/uploadcare-widget@3.20.0/node_modules/uploadcare-widget/uploadcare.js:11:83
    at Object.<anonymous> (/Users/caleb/Documents/work/project/node_modules/.pnpm/uploadcare-widget@3.20.0/node_modules/uploadcare-widget/uploadcare.js:14:3)
    at Module._compile (node:internal/modules/cjs/loader:1159:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
    at Module.load (node:internal/modules/cjs/loader:1037:32)
    at Module._load (node:internal/modules/cjs/loader:878:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
    at async nodeImport (file:///Users/caleb/Documents/work/project/node_modules/.pnpm/vite@3.2.2/node_modules/vite/dist/node/chunks/dep-c842e491.js:54315:21)
    at async eval (/Users/caleb/Documents/work/project/src/containers/Profile/EditProfile.tsx:10:0)
    at async instantiateModule (file:///Users/caleb/Documents/work/project/node_modules/.pnpm/vite@3.2.2/node_modules/vite/dist/node/chunks/dep-c842e491.js:54236:9

A workaround is to use lazy import
import { onMount } from "solid-js";
import uploadcare from "uploadcare-widget";

const UploadCare = () => {
  let uploadcareRef!: HTMLInputElement;
  onMount(() => {
    const widget = uploadcare.Widget(uploadcareRef, {
      publicKey: "",
    });
  });
  return (
    <>

hi

      <input ref={uploadcareRef} type="hidden" />
    </>
  );
};

export default UploadCare;

// ------------------------------------------------------

const UploadCare = lazy(() => import("./UploadCare"));
const Page = () => {
  return (
    <>
      <UploadCare/>
    </>
  );
};

Hmm.. the error looks like it coming from the library itself. I'm unclear how lazy import would change this. Probably needs a reproduction.

Stale/Needs Reproduction closing.


umbrella issue related to linking sets of images

At the 2021-12-15 Audubon Core Maintenance Group call, we spent a significant amount of time discussing the issue of how one should designate that a particular set of images were linked to each other. The proximate context was sets of images from camera traps ("sequences" = bursts that are grouped together because they occurred within the same 120 seconds), but there are other use cases. For example: images of the same specimen, label images that should be linked to images the specimens themselves (#200), slices of a 3D CT scan, etc.
This is also related to the issue raised at https://github.com/gbif/portal16/issues/1570#issuecomment-952207604, which involves the problem of linking related images in IIIF manifests.
This is probably an issue that needs to be addressed if we revise the Structure document as we discussed as a possible priority for 2022. That needs to happen anyway now that the ROI proposal is complete.

The FishAIR project has another use case for sequences of processed images used in machine learning: raw image, image with bounding box, segmented image, and feature extraction images.


fix: typos in documentation files

This pull request contains changes to improve clarity, correctness and structure.
Description correction:
"format is the data format the is expected as input arguments" -> "format is the data format that is expected as input arguments"
Corrected "the" to "that".
Please review the changes and let me know if any additional changes are needed.


Push forward: stable/newton to master

@pjbreaux
What issues does this address?
This is a merge forward with several items being pushed forward
What's this change do?
Several changes
Where should the reviewer start?
These items are items that have already been committed to previous branches and approved by team members for lower branches.
Any background context?
None

@pjbreaux, let me know if you want me to do anything further to push things into master.


Unrelated prop watcher is called when updating prop value.

Vue version
3.3.4
Link to minimal reproduction
https://github.com/LittleSaya/vue3-issue-demo
Steps to reproduce
git clone https://github.com/LittleSaya/vue3-issue-demo
cd vue3-issue-demo
npm install
npm run dev

then open the dev site, click 'Fn', two alerts appear.
What is expected?
Only one alert (the 'dbg watch b') is expected to pop up, as only prop b is modified.
What is actually happening?
Both alerts (the 'dbg watch b' and 'dbg watch a') poped up.
System Info
System:
    OS: Windows 10 10.0.19045
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
    Memory: 5.21 GB / 15.88 GB
  Binaries:
    Node: 16.15.1 - D:\Program Files\nodejs\node.EXE
    Yarn: 1.22.4 - D:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 8.11.0 - D:\Program Files\nodejs\npm.CMD
    pnpm: 8.5.1 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (114.0.1823.67)
    Internet Explorer: 11.0.19041.1566
  npmPackages:
    vue: ^3.3.4 => 3.3.4

Any additional comments?
There are two *.vue files, the modification is done in App.vue, watchers are in Comp.vue.
There are three props in the demo, two arrays and one number, the number (prop c) looks ok, its watcher is not called when prop b is modified, but prop a's watcher is called when I modify prop b.
This problem only occurs in development environment, it works well when I build it and visit it through nginx.
I tried vue-cli, but the problem is still there, so I think it is not caused by build tool.
I failed to reproduce this problem in Vue SFC Playground, which confused me, because I think the playground is some kind of development environment, this is what I have tried in the playground:
https://play.vuejs.org/#eNqtU02P2jAQ/SsjX2ClKKilJxqifohDe2hXbW+EgxMmIbuObdkOICH+e8d2Auxq+3HYS5KZ92b8PPNyYh+1Tvc9sgXLHHZacId5IQGyz6rTsODLgq3fJPB2UzBYlBSV9DGLlLJ3Tkn4UIm2eiSolgXLa5nNIkCkbHbTlEJbmVY7EFw2xHeWell0vSa07bQyDk5gsIYz1EZ1MCFlk/cXLEiKQDrzgVfu8UJWSloHJSx9eSb7rkSz3uTT9eYu4HUvK9eS2FpO7+Dk5ZfpnoseqWQ9T+DdhnhnrzhqJEUsIYXUuG6b9MEqSTMKhQWr6OxWoPmufU+6xSK29BgXQh2+hpwzPSZjvtph9fhC/sEefa5g9wYtmj0W7II5bhp0EV79/IZH+r6Andr2gth/AX+gVaL3GiPtUy+3JPuGF9R+CeNtZfPLro4OpR0v5YV65jnwC0bj9mP/09WvcufpPNTRSGmK46qemswED1nNZS6V29HxsEODtACf8vCteygMqcFBwTW3PgqMi4cO3FW7Zy4aOkSnaKO0pdVvsW4l3vsoO0VJfAGjf0IROeVZ5pxPyVVDv3DUNBLJWss89k55cpsbegPE49EYOlziAVbGKDO0G3ElMBWqmU62ZTNchfuSSeKfVy6nPbgnrMkI0sbo/W+V5auqLP9LZfmiyuuPRwE7/wYqjYUx

Can't reproduce it.

And here's why it only happens in dev:
In prod, we do a finer-grained props update - we do a looseEqual check to catch precisely the case I described before: elements created in the template.
However in dev, due to requirements from hot reloading, we always send all props to the child, regardless of wether or not they passed the looseEqual check.

And here's why it only happens in dev, if I recall correctly:
In prod, we do a finer-grained props update - ~we do a looseEqual check to catch precisely the case I described before: elements created in the template~ the compiler knows which props are stable (like your static inline array in :a="") and which can potentially change. Only those will actually be sent to the child during an update.
However in dev, due to requirements from hot reloading (and as such, only in dev with HMR enabled), we send all props to the child, regardless of wether or not they are stable, because you might have changed the "stable" value in a hot reloaded edit of the template.

@LinusBorg Thank you for your reply! I turned off hmr and the problem is gone, hope this inconsistency will be fixed in future versions.


Tests failing with newer versions of pytest-plus: "has an id that does not match our safe pattern '^[\w_-.]+$' for use with a terminal"

Newer versions of pytest-plus are complaining because the naming of the tests is not safe:
[   32s] ============================= test session starts ==============================
[   32s] platform linux -- Python 3.11.5, pytest-7.4.3, pluggy-1.3.0 -- /usr/bin/python3.11
[   32s] cachedir: .pytest_cache
[   32s] rootdir: /home/abuild/rpmbuild/BUILD/ansible-compat-4.1.10
[   32s] configfile: pyproject.toml
[   32s] testpaths: test
[   32s] plugins: mock-3.12.0, plus-0.0.0
[   32s] collecting ... ERROR: Failed run due to following issues being identified:
[   32s] Test <Function test__update_env_no_old_value_no_default[value1-a:b]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env_no_old_value_no_default[value2-a:b:c]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env_no_old_value[a:b-value0-c:a:b]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env_no_old_value[a:b-value1-c:d:a:b]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env_no_default[a:b-value0-c:a:b]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env_no_default[a:b-value1-c:d:a:b]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env[a--value1-e:a]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s] Test <Function test__update_env[a-c-value3-e:f:a]> has an id that does not match our safe pattern '^[\w_\-\.]+$' for use with a terminal.
[   32s]
[   32s] collected 93 items

I have not found a fix in the list of commits, did I just miss it or is there none yet?
Kind Regards,
Johannes

The check can be disabled with
PYTEST_CHECK_TEST_ID_REGEX=0

See https://github.com/pytest-dev/pytest-plus#user-content-avoiding-problematic-test-identifiers

Thanks @sebix! I think the test names should finally be fixed upstream like in other ansible-related tools. But for now at least the openSUSE package is building again...


Scope generator

This adds a generator for scopes. The user runs "rails g scope" and passes in a resource name and a scope name. The generator then adds a route for the scoped collection, a controller action for the scope, as well as the scope itself. The user will then be able to view the scoped collection via "/resource_name/scope_name". Please let me know if you have any questions or suggestions. Thanks!

Hey. If there's anything I need to do to improve this so it can be merged, please let me know. Thanks!

Hey sorry for the very late reply but this project is unmaintained by now. This project won't accept new features like this one at this point. Please go ahead and contribute to Rails API in Rails itself.
I'm closing this one for now, thanks for the work you've done and sorry for not replying.


Use the specified keystore as source of certificates to trust

Is your feature request related to a problem? Please describe.
I'm unable to use my keystore as source of certificates to trust for the HttpClient of Spring Cloud Gateway. When I specify the keystore, it only takes the certificates from the default keystore (CA certs that came with JDK) instead of taking certificates from both my keystore and the default keystore.
Describe the solution you'd like
As a developer, I need to be able to configure the HttpClient used by the Spring Cloud Gateway for its routing such that I can specify the keystore as the source of certificates to trust and must be able to also specify whether to include the default keystore.
What I propose is to either change the behavior of the current configuration to include the certificates from both specified keystore and the default keystore
Describe alternatives you've considered
Alternatively, allow us to specify our own implementation of TrustManager that HttpClient will use.
Additional context
Check out my post on SO to see more details.

Closing in favor of stack overflow. Please don't cross post

Closing in favor of stack overflow. Please don't cross post

If you don't mind, why is SO the preferred way to track this issue?


Get both HTML and JSON report at the same time

Hi,
is it possible to get both reports at the same time with the command line client?
Our use case is that we'd like to have the detailed HTML report for humans and the JSON report for further processing in our observability stack.
Thanks!

The moment you scan your project using SecHub, you will receive a SecHub JobUUID. The SecHub JobUUID is unique to the scan. You can always use it get the report in either HTML or JSON. The only thing you need to is the SecHub JobUUID of the job. You can save the SecHub JobUUID in a variable or file.
Let's assume your SecHub JobUUID is: 1b9fe5ae-e1bd-11ec-a0ae-7b003d0318b3. Then you can get the HTML and JSON report like so:
sechub -jobUUID 1b9fe5ae-e1bd-11ec-a0ae-7b003d0318b3 -reportformat json getReport
sechub -jobUUID 1b9fe5ae-e1bd-11ec-a0ae-7b003d0318b3 -reportformat html getReport

Because json is the default format, the explicit -reportFormat json can be omitted:
sechub -jobUUID 1b9fe5ae-e1bd-11ec-a0ae-7b003d0318b3 getReport

It is possible to get the job report at any given point in time from the server. However, the SecHub administrator might have set a retention policy for the reports.
For more information have a look at the client documentation:

https://mercedes-benz.github.io/sechub/latest/sechub-client.html#getreport
https://mercedes-benz.github.io/sechub/latest/sechub-client.html#commandline-options

@sven-dmlr I think we should add an example to the documentation on how to use the combination getReport, -jobUUID and -reportFormat to get the report in different formats.

@Jeeppler I've just created #1369

Thanks for addressing this!
I'd be curious what a good way would be to get the jobUUID. Currently I'm doing this in our CI pipeline:
sechub -output ./sechub-report scan
for report in ./sechub-report/*.json; do
  sechub -jobUUID "$(jq -r '.jobUUID' "$report")" -reportformat html -output ./sechub-report getReport
done

This doesn't look too nice and it has another flaw, will get into that in the end.
The scan will put a JSON report in ./sechub-report (which doesn't exist at that point) but the filename will contain the job UUID which I don't know beforehand. So, I have to do the globbing and I'm doing the for just in case even though there's probably only ever one single JSON report in the directory. Then I get the job UUID from inside the JSON report to get the HTML report.
Is there maybe a better way to get the job UUID?
The other flaw with that approach is when the scan has a non-zero exit code. Then our script aborts (set -e) and it won't fetch the HTML report.
While I can script my way around that somehow, it'd be quite a bit more convenient to get both reports with a single scan command. Maybe you could accept a comma-separated list of formats, i.e. -reportformat html,json?

Hi @dAnjou
when you call the client, then the jobUUID is printed several times.
So you could script it like this:
# Run scan and get report as JSON plus read jobUUID:
JOBUUID=`sechub scan | grep "Fetching result" | awk '{print $9}'`
# Get HTML Report
sechub-0.31.0 -jobUUID $JOBUUID -reportformat html getReport

This is not really a good option in my opinion, because in my experience log output like this is considered to be for humans and therefore developers tend to change it without thinking about the implications (no offence, I've done that myself).
So while today the line looks like this:
2022-06-06 18:09:13 (Z) Fetching result (format=html) for job 2ab1123e-4f15-4e76-a191-9923dd40a52c

Tomorrow it might look like this for whatever reason:
2022-06-06 18:09:13 (Z) Fetching result (format: html) for job UUID 2ab1123e-4f15-4e76-a191-9923dd40a52c

So I'd rather not rely on parsing output intended for humans.

Which still leaves the other bigger pain point:

The other flaw with that approach is when the scan has a non-zero exit code. Then our script aborts (set -e) and it won't fetch the HTML report.

Please reconsider the multiple formats feature (-reportformat html,json), it seems pretty backwards-compatible and straight-forward to implement.

Btw., what I've also tried is -output ./sechub-report/report.json so I can avoid the globbing. According to the docs it accepts a file path:

-output <path to folder or file>
Where to place reports, false-positive files etc. Can be a directory, a file name or a file path (defaults to current working directory and default file names)

But somehow it creates a file like this: sechub-report/report.json/sechub_report_xyz_2ab1123e-4f15-4e76-a191-9923dd40a52c.json.
Probably a separate issue though.

You can safely upgrade the client.
We are extending the server api, but always are backwards compatible (existing api calls/json configs will still work).


Simplify attribute access on directory read?

I suspect I am not alone in using the new attribute capability to store file time and date.
This is already addressed for file-based accesses. However when enumerating a directory, the process for getting attributes is slightly long-winded, since the current file has to be looked up by name using lfs_getattr() - probably a bit slow with my I2C FRAM.
When calling lfs_dir_read(), would it be practicable to store the tag generated by lfs_dir_find() (or some other appropriate value) in the lfs_info structure, then have a function lfs_getattr_by_tag()? Looks as if it might be quite a small amount of additional code. Or is there a better way?
And on a slightly related note, how about defining some values for 'standard' attribute types? Various time and date types are obvious; possibly security-related ones as well.

Ah! Good to hear. And thanks for creating this issue, it's useful to know problems users run into.
Yeah, I think this is a part of a wider issue: in a traditional POSIX API, going from lfs_dir_read() -> other operations requires string manipulations. And string manipulations on a microcontroller is usually a sign of something going wrong.
Related: https://github.com/ARMmbed/littlefs/issues/42
I've been looking around at what else is out there, and one thing that's stood out is the openat APIs in Linux (similar to the lfs_file_open_direct suggested by @apmorton):
https://linux.die.net/man/2/openat
This would be a parallel set of APIs that take in a directory and a path instead of just a path. So attribute iteration could be turned into this:
lfs_dir_t dir;
err = lfs_dir_open(&lfs, &dir, "stuff");
if (err) {
    return err;
}

while (true) {
    struct lfs_info info;
    err = lfs_dir_read(&lfs, &dir, &info);
    if (err) {
        return err;
    }

    if (err == 0) {
        break;
    }

    uint32_t timestamp;
    err = lfs_getattrat(&lfs, &dir, info.name, TIMESTAMP_ATTR, timestamp, sizeof(timestamp));
    if (err < 0) {
        return err;
    }

    printf("file %s type %d time %d\n", info.name, info.type, timestamp);
}

That's what I'm currently leaning towards. Though as this duplicates the littlefs API in almost its entirety, I'm going to be cautious and see what others think.

I considered outlining some standard attributes, but the hard part is choosing formats that work for everyone. 40-bit timestamps for the 2038 problem? Is the Linux 8-bit permission field sufficient for cloud-connected devices?
I don't think I should be deciding these myself. I'd rather have some way we could propose and vote on standard attributes, but I don't have a good answer on how to do that at the moment.

Thankyou for the reply.  Your suggestion goes some way to simplifying things; however lfs_getattrat() would still have to search for the file entry; usually multiple reads, which are relatively expensive on a slow device.
My suggestion goes a bit further. First re-factor lfs_getattr() thus:

lfs_ssize_t lfs_getattr_by_tag(lfs_t *lfs, lfs_stag_t tag,
        uint8_t type, void *buffer, lfs_size_t size) {
    if (tag < 0) {
        return tag;
    }

    uint16_t id = lfs_tag_id(tag);
    if (id == 0x3ff) {
        // special case for root
        id = 0;
        int err = lfs_dir_fetch(lfs, &cwd, lfs->root);
        if (err) {
            return err;
        }
    }

    tag = lfs_dir_get(lfs, &cwd, LFS_MKTAG(0x7ff, 0x3ff, 0),
            LFS_MKTAG(LFS_TYPE_USERATTR + type,
                id, lfs_min(size, lfs->attr_max)),
            buffer);
    if (tag < 0) {
        if (tag == LFS_ERR_NOENT) {
            return LFS_ERR_NOATTR;
        }
        return tag;
    }

    return lfs_tag_size(tag);
}

lfs_ssize_t lfs_getattr(lfs_t *lfs, const char *path,
        uint8_t type, void *buffer, lfs_size_t size) {
    lfs_mdir_t cwd;
    lfs_stag_t tag = lfs_dir_find(lfs, &cwd, &path, NULL);

	return lfs_getattr_by_tag(lfs, tag, type, buffer, size);
}

The 'tag' value needed by lfs_getattr_by_tag() is presumably accessible, or easily computable, in lfs_dir_read(). So if this value is stored in the info structure, it becomes much more efficient to retrieve attributes. (This does assume I've understood enough about how things work under the hood!)
This could also minimise the amount of code added by a lfs_getattrat() routine.
On the attribute types, I suggest you approach it from a slightly different angle. Define a block of values which are reserved for standard attributes. Then define attribute type values for 'well-known' attributes. Unix and FAT time/date stamps come immediately to mind. None of this prevents users from defining their own types and formats; which they will hopefully put forward if they are of general use.


vimPlugins.nvim-dap-lldb: init at 2024-06-09

Things done
Created for https://github.com/nix-community/nixvim/issues/2400 and tested with https://github.com/NixOS/nixpkgs/pull/352277 to find dependencies (it should depend on nvim-dap but they use a pcall so it actually doesn't throw an error, do we want to bundle it as a dep anyways?).

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

(it should depend on nvim-dap but they use a pcall so it actually doesn't throw an error, do we want to bundle it as a dep anyways?)

Yes, it still fails if it can't find nvim-dap
https://github.com/julianolf/nvim-dap-lldb/blob/81273514fdb5107b79090364b57a3ff5570bea21/lua/dap-lldb.lua#L22
https://github.com/julianolf/nvim-dap-lldb/blob/81273514fdb5107b79090364b57a3ff5570bea21/lua/dap-lldb.lua#L222

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 360625

x86_64-linux

:white_check_mark: 2 packages built:

vimPlugins.nvim-dap-lldb
vimPluginsUpdater

aarch64-linux

:white_check_mark: 2 packages built:

vimPlugins.nvim-dap-lldb
vimPluginsUpdater

x86_64-darwin

:white_check_mark: 2 packages built:

vimPlugins.nvim-dap-lldb
vimPluginsUpdater

aarch64-darwin

:white_check_mark: 2 packages built:

vimPlugins.nvim-dap-lldb
vimPluginsUpdater


[Discussion] Community meetings for Operator SDK Contributors

As the project shifts to upstream, we are looking for ways to increase transparency and community involvement.
Would you be interested in attending a community meeting?
Do you have a preference for meeting format? (IRC, slack, video call, and so on)

We have monthly Operator Framework SIG meetings, and if you have topics related to Operator-SDK, please add them to the OF-SIG agenda here: https://github.com/operator-framework/community/projects/2#column-6841650

@dmueller2001 I think what we're talking about here is getting more developers involved in contributing to the upstream development of the SDK as well as roadmap and feature development decisions. @asmacdo I'd be interested in attending. maybe this is something we can address at the SIG as to the format and how to get more folks involved.

I'm an open source developer that's looking to contribute to the operator framework, I'd definitely like something like this. I think a video conference call kind of thing would be good.

a community meeting is being scheduled here: https://github.com/operator-framework/community/pull/4

We now have an Operator-SDK SIG meeting https://github.com/operator-framework/community/projects/3


rationalizing logs

updating mapping to more constricted set of logs per
https://github.com/RackHD/RackHD/issues/34
NOTE: Requires https://github.com/RackHD/on-core/pull/48 to be
committed prior to tests passing, as it adds the synonym 'critical' to
the existing 'crit' level.

:+1:

:+1:


[AIRFLOW-6824] EMRAddStepsOperator problem with multi-step XCom

Issue link: WILL BE INSERTED BY boring-cyborg
Make sure to mark the boxes below before creating PR: [x]

[x] Description above provides context of the change
[x] Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
[x] Unit tests coverage for changes (not needed for documentation changes)
[x] Commits follow "How to write a good git commit message"
[x] Relevant documentation is updated including usage instructions.
[x] I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].

In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@946bdc2). Click here to learn what that means.
The diff coverage is 20%.

@@            Coverage Diff            @@
##             master      #17   +/-   ##
=========================================
  Coverage          ?   32.14%
=========================================
  Files             ?      877
  Lines             ?    41179
  Branches          ?        0
=========================================
  Hits              ?    13235
  Misses            ?    27944
  Partials          ?        0

Impacted Files
Coverage Δ

...ow/providers/amazon/aws/operators/emr_add_steps.py
30.76% <20%> (ø)

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 946bdc2...777fe3f. Read the comment docs.