Adding a tee

Hi, sorry if this is a FAQ, but is there anything preventing the addtion of a tee function whithin this library (mimicking itertool's own tee : https://docs.python.org/fr/3.9/library/itertools.html#itertools.tee) ?
import { tee } from itertools;

const iterable= {
  *[Symbol.iterator]() {
    yield "a";
    yield "b";
    yield "c";
    yield "d";
    yield "e";
  },
};

const [iter1, iter2, iter3] = tee(iterable, 3)

console.log(...iter1);
console.log(...iter2);
console.log(...iter3);

// output:
// "a"   "b"   "c"  "d"  "e"
// "a"   "b"   "c"  "d"  "e"
// "a"   "b"   "c"  "d"  "e"

From my point of view, the gain of adding this function would be to be able to have several iterators """inheriting""" from the same iterator and have them iterate on it without having one consume the base iterator before the other.
In an ideal world I could see myself using this for async or even concurrent treatments ... But seeing as this was problematic for the original Python implementation I would hold to much hope here :p

I don't think there is anything preventing this from being implemented, but I wonder how useful this is going to be in practice. Suppose you have a long (or potentially infinite, even) iterable and then wrap it in a tee. You are then responsible for "simultaneously" consuming them both (or "all", if n > 2), which may be hard to do in practice.
For example, in your code example, if iterable would produce a very long stream of values, it would effectively have to read all those values into memory while consuming iter1, and it would need to retain those in memory until iter3 gets consumed. Only then we can start freeing memory again. If the input stream is long enough, code like this will run out of memory.
I think that is a big caveat that makes it hard to find practical applications for this. (Cases that do fit in memory could arguably be read into Array.from(...iterable) anyway.) Or you would have to go to lengths as a consumer to make sure you protect yourself against that, for example by simultaneously reading from all forks at once, perhaps in chunks:

Read 100 items from iter1
Read 100 items from iter2
Read 100 items from iter3
Read 100 items from iter1 again
etc.

I think the Python implementation suffers from the same problem, though.
All of that said, I'm not opposed to the idea of adding it and would definitely accept a pull request for this, but I would love to at least document the above subtleties and possibly provide some example code for how to best deal with the returned iterators in practice. If you have suggestions for this, they are more than welcome!

I think tee could actually be a function that takes away these issues from its users :
For simplicity I'll assume iterable and n refer to the arguments within tee(iterable, n);
Let's say we returned 3 iterators, our slowest iterator is currently at iteration i, the middle at i+a and the fastest at i+b (so a <= b);
We also have a shared array* A of variable length, where A.length always equals b;
I've got this ideas :

tee could check the type of iterable. In case iterable is known to not be infinite, like, for example, if Array.isArray(iterable) returns true, then we just return range(n).map(iterable[Symbol.iterator])
If it cannot be proven that iterable isn't infinite then we have 2 choices :

Operate in a forcefully synchronized fashion :
None of the returned iterators is allowed to jump to iteration i+1 if at least one of the iterators is still at iteration i-1
-> I could imagine a third argument for tee that would specify the size of a buffer (basically an array containing the elements of iterable that the slowest iterators hasn't reached yet). This buffer size also dictate how much of a gap there can be between the fastest and slowest iterators.
Operate in asynchronously :
Every time b increases so does A.length, A[0] corresponds to the oldest value of iterable that the slowest iterator hasn't gotten to yet, while A[b-1] is the that was just read by the fastest iterator.

*

I've been talking about an array but it would most likely be better to use a FIFO stack.
In order to contain the buffer Array I've been talking about, I would add an internal Map within the tee function itself where each key returns the corresponding buffer array, each returned iterator would therefore have to contain a key to access their buffer. (I haven't thought a whole lot about this so maybe there is a simpler/better way of doing this)

So ... What do you think ?


Added the code for flattening binary tree into linkedlist in-place in c++

Have you read the Contributing Guidelines on Pull Requests?
Yes.
Description
Code for the mentioned problem.
The motivation behind doing these changes is that, to solve this question , clear and concise knowledge of both linkedlist and tree is required .Along with this ,I tried to cover many concepts like inorder and level order traversal ,queue ,struct etc and provided the complete solution along with sample input and output to understand the solution quickly.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[x] I've edited the README.md and link to my code.

Related Issues or Pull Requests
flattening binary tree to linkedlist in-place using c++ #3291

kindly check this ,I am not able to resolve conflicts. Suggest plz ,what to be done.

Few changes:

Make the description shorter and more intuitive. Keep the diagrams below the code
Format the Code and indent it properly
Add code complexity

Okay sir.

Few changes:

Make the description shorter and more intuitive. Keep the diagrams below the code
Format the Code and indent it properly
Add code complexity

Sir ,I have added, committed and pushed all the changes that you have mentioned. Kindly review it.


[Refactor] Reduce log when disable replicated storage

What type of PR is this：

[ ] BugFix
[ ] Feature
[ ] Enhancement
[x] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[x] 2.5
[ ] 2.4
[ ] 2.3

@mergify backport branch-2.5

@mergify backport branch-3.0


About Table 6 in the Original Paper

Thanks for your excellent and outstanding efforts in this work! Really love the work.
As for the transferring performance experiments in Table 6, I have some questions about the detailed training settings:

Is either ViTS, ViTB or ViTL used for this experiment?
Is this model trained from scratch (using DinoV2 original weights and finetuning on speific single dataset) in Table 6, or trained by self-supervised manner on the whole labeled 1.5M and 65M unlabeled dataset? In other words, is there self-supervision manner involved in this experiment settings?

THX a lot for your kind reply and description.

Thank you for your questions.

ViT-L is used.
The model is fine-tuned from DINOv2 weights, without further performing SSL on our 1.5M + 62M depth data.

Thx for your kind information !


Gun on head script

As far as I remember, you had this on your edit, could you add it to this version? @shendlaw

sure i can

8dcc05a14f7bcb50ce3698db582f2820136a7bc3


feat: add name to envd envs describe

Signed-off-by: AlexXi19<EMAIL_ADDRESS>https://github.com/tensorchord/envd/issues/551
Show service name in ports list as specified by the issue.
Testing
Inspected envd envs describe for both jupyter notebook and R studio and verified that the names are correct.

Addressed the comments and moved label name fetching logic to ListEnvPortBinding


Allow disabling options validation for production use.

While running the test repeatedly, I noticed that the time it takes to do a validation is quite high, around 2-5ms per check. With some debugging, I noticed that most of that time is from the runtime checks on the options and presets by yup.
Considering that the options and preset will be hardcoded, yup could be disabled in the production build to significantly cut on runtime. For example, the tests for the blank symbol ? take between 100ms and 200ms  with yup enabled, but around 2ms with up disabled.

Addressed in https://github.com/Airfooox/cron-validate/pull/299

New PR addressing the topic: https://github.com/Airfooox/cron-validate/pull/306


Update (FIDO) device keys documentation

For the Role user admin
on line 2722 the more information states. that the role can Update (FIDO) device keys
but then later on line 2729 it states Cannot manage MFA.
on this authentication-table it states that user admin Manage user's auth methods no
the same Fido key reference is made here in the about-admin-roles.md
if you look at the microsoft graph documentation for List fido2AuthenticationMethod
the following
For delegated scenarios where an admin is acting on another user, the administrator needs at least one of the following Microsoft Entra roles
Global Reader
Authentication Administrator
Privileged Authentication Administrator
and for Delete fido2AuthenticationMethod
For delegated scenarios where an admin is acting on another user, the administrator needs at least the Authentication Administrator or Privileged Authentication Administrator
updating fido2 security key does not seem to be possible with user admin?
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 0767aac4-fcd9-eaac-2c30-8f17d8eadd92
Version Independent ID: a380a828-03f9-e037-3a62-e4165fda7cb6
Content: Microsoft Entra built-in roles - Microsoft Entra ID
Content Source: docs/identity/role-based-access-control/permissions-reference.md
Service: entra-id
Sub-service: role-based-access-control
GitHub Login: @rolyon
Microsoft Alias: rolyon

@BertinDEV
Thank you for bringing this to our attention.
I've delegated this to content author @rolyon, who will review it and offer their insightful opinions.

Hi @BertinDEV
Thanks for taking the time to provide detailed feedback about the docs. Sorry for the delay. We think you are correct. We've sent a message to the team. We've also created a work item to track.
We are migrating to a new doc feedback tool, so we will close this GitHub issue. Let us know if you have additional feedback.
thanks

#please-close


How to escape double quote in From header?

How would you escape double quote in From header? Say I want to have a From header like:
From: "Fred \"The Hammer\" Williamson"<EMAIL_ADDRESS>
Trying the following, the double quote escape \" gets escaped as \\\":
puts Mail::FromField.new('"Fred \"The Hammer\" Williamson"<EMAIL_ADDRESS>"Fred \\\"The Hammer\\\" Williamson"<EMAIL_ADDRESS>
p.s. The From name wrapping quotes are needed for the case when there is comma in the name.

I'd like to raise awareness about this issue because I am facing the same situation. If you already send a proper escaped address in the From field (also Reply-To and other address fields) it gets double escaped here
https://github.com/mikel/mail/blob/master/lib/mail/elements/address_list.rb#L29
which is called from
https://github.com/mikel/mail/blob/master/lib/mail/fields/common/common_address.rb#L104
I am not sure how we can avoid this situation because sending not proper escaped values in the From field could raise ParseError when building the message.
Any ideas?


Don't use the whole IETF language string when setting the MapsIndoors SDK language

What
Don't use the whole IETF language string when setting the MapsIndoors SDK language.
Why
The SDK/backend does not work properly when using the whole IETF language string. Eg. using es-co will cause the fetched data to fallback to the default language, since it is only possible to define translations for es in the MapsIndoors platform.
How
Only use the first part of the language string, eg. es or en when calling setLanguage(). Now when eg. using a browser with the language set to es-co, it will instruct the SDK to set the language as es, which corresponds better with the data.

Test OK ✅ @ammapspeople
Ready for release


Fix NTP server for GCP

How to categorize this PR?

/kind bug
/area os
/os garden-linux
What this PR does / why we need it:
On GCP the wrong file was edited for the correct NTP server. This patch fixes it.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Garden Linux on GCP now uses the Google NTP server.

Any reason why this is not a separate file in /etc/systemd/timesyncd.conf.d/ instead of modifying existing files?

No there is no particular reason. Does this work?


Last update seems to have broken things for me.

plugin was working great when I tried to split off a new repo and use it to create an app it errored out. logging the return value gives:
{ _connecting: false,
_handle:
{ fd: 14,
writeQueueSize: 0,
owner: [Circular],
onread: [Function: onread],
reading: true },
_readableState:
{ highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: false,
ended: false,
endEmitted: false,
reading: true,
calledRead: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
objectMode: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder:
{ encoding: 'utf8',
surrogateSize: 3,
charBuffer: <Buffer 00 00 00 00 01 00>,
charReceived: 0,
charLength: 0 },
encoding: 'utf8' },
readable: true,
domain: null,
_events:
{ end: { [Function: g] listener: [Function: onend] },
finish: [Function: onSocketFinish],
_socketEnd: [Function: onSocketEnd],
close: [Function],
data: [Function],
readable: [Function] },
_maxListeners: 10,
_writableState:
{ highWaterMark: 16384,
objectMode: false,
needDrain: false,
ending: false,
ended: false,
finished: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
sync: true,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
buffer: [],
errorEmitted: false },
writable: false,
allowHalfOpen: false,
onend: null,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 0,
_pendingData: null,
_pendingEncoding: '',
pipe: [Function],
addListener: [Function: addListener],
on: [Function: addListener],
pause: [Function],
resume: [Function],
read: [Function],
_consuming: true }
I grabbed the old version and replaced it for the new one and no problem at all. Let me know if I'm just being dumb and missed something.

Yeah, the update must have broken something. On the inside now the library does not use shelljs but child_process and thus the output returned is different.
Can you post an example of code where the new version breaks with the previous one? I'll take a look at it and try to give you a solution.


Node2 should support restart frame

Have a node2 debug session, right click on a stack frame
Notice there is no restart frame action
This is due to the fact that node2 does not return supportsRestartFrame: true

I think I meant to do this back in September, I'm not sure where it went. Thanks.


Minecraft Bedrock Edition Server Needs Java Installed to Run

Bug Report
System Information

Windows 10 Version 22H2 (OS Build 19045.25
AMP Release "Halimede" v<IP_ADDRESS>, built 21/12/2022 17:54
Mainline

I confirm:

[x] that I have searched for an existing bug report for this issue.
[x] that I am using the latest available version of AMP.
[x] that my operating system is up-to-date.

Symptoms

What are you trying to do?

Host a Minecraft Bedrock edition server.

What are you expecting to happen?

For the sever to launch when I start it.

What is actually happening?

It says that I need a valid Java installation to start the server, even though I selected Bedrock. Regardless of how many times I update or install the Bedrock server file. It's obvious that it seems to think it's supposed to run Java across the board when configuring the Bedrock server instance. Even if you have Bedrock selected in the server type drop-down you have to select it again to download/update it because if you don't, you get an error saying that Java isn't installed. It's as if a Bedrock configuration doesn't exist.
Reproduction

Enter reproductions steps here.

Start a new Minecraft Bedrock Edition instance.
Try to launch said instance with the server configured for Bedrock.

The following screenshots are what I'm seeing when managing the instance, which is configured for Bedrock Minecraft:

So I installed Java just to see if it needed an installation to run Bedrock for the time being, and it looks for a jar file. As of the time of writing this, Bedrock is totally unsupported from what I can tell.

Did you originally create a Java edition instance then swap it after the fact to Bedrock? Or did you pick Bedrock in the first place?

I definitely chose the Bedrock edition in the first place when creating the instance.

Could you jiggle the handle on the server type setting for me? Change it away from Bedrock to something else, then back to Bedrock and try again. It's definitely rigged to not care about Java or a Jar file. As it is I can't reproduce this right now.

Could you jiggle the handle on the server type setting for me? Change it away from Bedrock to something else, then back to Bedrock and try again. It's definitely rigged to not care about Java or a Jar file. As it is I can't reproduce this right now.

I did that, but no luck. I've also tried with a new instance, but no luck.

As a sanity check - on Windows Server 2022 that has no java installed at all, a fresh Bedrock instance updates and starts fine. 🤷♂

As a sanity check - on Windows Server 2022 that has no java installed at all, a fresh Bedrock instance updates and starts fine. 🤷♂

Windows 10 Enterprise is the OS. I installed Java and got the same result as before, even with a new instance. I've selected Bedrock each time, for what it's worth.

Windows 10 Home also works fine.
Just to be clear, you are selecting this from the instance creation drop-down?

And your AMP key is in New Instance Defaults?

Windows 10 Home also works fine.
Just to be clear, you are selecting this from the instance creation drop-down?

And your AMP key is in New Instance Defaults?

Yes and yes.

Wonder if you should do a ampinstmgr upgradeall --nocache (stop AMP entirely first) to address any funkiness with the AMP files installed.

Wonder if you should do a ampinstmgr upgradeall --nocache (stop AMP entirely first) to address any funkiness with the AMP files installed.

I'll give that a shot.

Okay, that looks like it worked. It would be great to have a separate configuration for Bedrock, but this is a win nonetheless. Thanks for your help, closing this out.


Camel 13850

This PR adds support for fast property placeholders in the Camel routes (EIP model).
We now generate java source code classes that provides fast getter/setters for options you can use on the EIP models with property placeholders (this is for string types, and not all EIP models).
Using a profiler (YourKit) I can now see that no class introspections is done on our own model classes during startup.
The generated source goes into target/generated-sources/annotations and are generated at build time via our apt compiler plugin.

You can see before vs after reduction of reflection class caches in this tweet
https://twitter.com/davsclaus/status/1161176136338018304?s=20
The remainder is not the model classes, but Camel components.

Has been merged


Better than GPT-4？[US Medical Licensing Exam]

as title says...

According to https://arxiv.org/pdf/2305.09617.pdf,  GPT-4 scores 86.1%.  Med-PaLM 2 achieved an accuracy of 86.5%.


Is it possible to disable autorename when use dropbox storage?

Dropbox allows storing a history of a file, it's convenient to use that feature.

fix with PR to django-storage


Requires yarn installed on local machine

admin-frontend wants to use yarn to install dependencies.
If it isn't installed on the local machine make setup will fail
09:16:56           admin-frontend | yarn install --frozen-lockfile  # We use --frozen-lockfile here so that Travis catches dependencies which need updating.
09:16:56           admin-frontend | /bin/bash: yarn: command not found
09:16:56           admin-frontend | make: *** [yarn-install] Error 127
09:16:56                    setup | * Bootstrap failed for admin-frontend with exit code 2

Resolved in https://github.com/samuelhwilliams/dmrunner/pull/18


About the 4th Test

Sorry for doing the actions so late. I figured out where is the problem for can't pass the test even the page shows the correct content. The HTML code for showing the picture has to be exactly same as
<img src="{% static 'images/rango.jpg' %}" alt="Picture of Rango" />
No SPACE or LINE BREAK is allowed 😵
I personally think that maybe a little bit too harsh for people who need to pass the test to get the grade like university students. I wish it can be changed to a more friendly test : ) 😄

Hi @FanxuMeng,
Okay. Yeah -- it does. The whole point of these tests is that you need to write the code exactly as it appears in the book. Why? Because when you get a job as a developer and are given some module to write, you need to comply with the specification as it is given. It you don't, then your module might do something that is unexpected (according to the specification you are given), and might break the system it is part of!
However, I also get and accept that this can be considered a little harsh (from your point of view). Given that the HTML specification does allow linebreaks between attributes, maybe I can look into this in the future.
Given that the book does provide you with an example of what you needed to provide, I'll leave it for now.
Can you help me though: how did you have this line of code when the test was failing? I would very much like to see what you did -- and if I can see that, maybe I can add a clarifying remark in the book.
Cheers,
David

🤷♂


Update nektar submodule to v5.6.0.

Description
Update nektar submodule to v5.6.0. No changes to NESO code required.
Type of change

[x] New feature (non-breaking change which adds functionality)

Testing
No new tests. Passes existing unit and integration tests.
Test Configuration:
OS: Ubuntu 22.04
Compiler: GCC 11.3.0 / OneAPI v2022.1.0
SYCL implementation: Hipsycl v0.9.2 / DPC++ v2022.1.0
MPI details: MPICH v4.0.2
Hardware: CPU (Intel Alder Lake)
Checklist:

[x] New and existing unit tests pass locally with my changes
[x] My changes generate no new warnings
~- [ ] I have added tests that prove my fix is effective or that my feature works~
~- [ ] I have used understandable variable names~
~- [ ] I have run clang-format against my *.hpp and *.cpp changes~
~- [ ] I have made corresponding changes to the documentation~
~- [ ] I have performed a self-review of my own code~
~- [ ] I have commented my code, particularly in hard-to-understand areas~

No pressing need for this, but I think it's useful to keep nektar up-to-date if we can.

Unit and integrations tests passed for me with adaptivecpp.


Windows compatibility issue

Issue

Pagination is not working on windows
color for output is wrongly displayed

Environment:

windows server 2019 from AWS EC2

I have the same issue on Windows Server 2019. In case if the output is longer than console window size the utility shows "The system cannot find the file specified." no matter if I select Y or N:

It seems like the issue is related to a bug in click library namely click.echo_via_pager function.
The simples workaround is to set:
set PAGER=cat
Instead of cat you can use any other program capable of displaying an input file receiving the full file name as the first parameter in quotes. You cannot use more on Win server because default more implementation is trying to concatenate the current folder to the file name in case if the filename is provided in single quotes.

Alternatively, you can set:
set PAGER=notepad.exe
Windows Notepad is displaying the output quite nicely.

@vfro Thank you for explaining the issue you met in detail. I am not a windows user,  but I tried your workaround and it worked. Besides, I also looked into the issue and it is related to an issue with click.echo_via_pager, and it was solved in the latest 7.1.2 release. I updated it and the pagination works well.

Since I am not a Windows user, and odfe_sql_cli is not fully tested on Windows, so we didn't marked it as supported on windows in release notes. However, with the help of community, we hope we can fixed all windows compatibility issue soon, and there will be an official support for Windows in the near future.

Found another two issues w.r.t Windows compatibility , created issues for them #51 #52

@zhongnansu I confirm, that after upgrading click to 7.1.2 the issue with pagination is resolved. The default pager works as expected now. Thanks!


Show done actions in project view & two UI tweaks

Issue #50 plus some related UI tweaks related to displaying completed action lists.

Actually don't merge this, I just noticed it causes extra "Completed Actions" sections to appear in other dashboards.

Still needs some work to fix sorting.
Let me know if you think the sorting of completed items by completed date should be enabled with a setting.

Okay commit bcbed19 is working okay.

@simonbaird Thanks for you work Simon.  I will take a look at this tonight.  I think your sort by gsd_comp_date will still suffer from #46.  When I wrote the date sorts I hadn't noticed the design of the eachday and sameday filter would cause problems.  I have a patch to fix the issue in TW5 but just awaiting Jeremy's approval. https://github.com/Jermolene/TiddlyWiki5/pull/1520  Otherwise we can just patch it and overwrite from our end for now, though I would like to avoid it.

A quick demo here:
http://randomibis.com/gsd5-completed-tweaks-demo.html#Action Dashboard:[[Action Dashboard]] SomeProject
Don't merge this in any case.
I'll put "Fix missing colon typo" in a new PR.

Should probably be cut up into separate pull requests.

Apologies, that wasn't very tidy.

But thanks for the merge. :)

Thank you for your contributions.  I wasn't sure if you were working on something related to this pull so I left it open.  But everything committed looked stand-alone.
Given my skill with git and coding, it is surprising this thing actually works and some else project hasn't shown up in the repo too.


Update README page

see week 11 project

I saw this but there's nothing to be updated. it mostly reflects what our app is supposed to do


add host to visualization

Addresses https://github.com/umami-software/umami/issues/2688
Please check the linked issue for possible use cases.
This is the first time i'm working with Next, I've never used it before, so please guide me regarding any aspects I might be missing
EDIT: addresses also https://github.com/umami-software/umami/issues/2710

In https://github.com/umami-software/umami/issues/2710 has emerged the possibility to make this feature configurable, I'd make configurable only the visualization leaving the filtering always enabled. But I'm quite open to any design modifications.

I think the configuration he refers to is only for the interface.  the filter via API will continue to exist.


Admin Generator Future: Add grid config prop toolbar to make Toolbar optional

PR Checklist

[x] Verify if the change requires a changeset. See CONTRIBUTING.md
[x] Link to the respective task if one exists: SVK-254
[x] Provide screenshots/screencasts if the change contains visual changes

Screenshots/screencasts

For forms we never render the toolbar inside the form (due to technical reasons). Should we do the same for grids?

@andrearutrecht please resolve conflicts


Fate of optional_labels attribute of BioCypherNode

Do we have a use case?

connected to #4, moving to on hold as well


Editable sliders

Hello everyone. Recently I found Polymer and I've started to redesign my website. However, it seems nonsense for me to do it with Polymer now and I was looking for a framework. Likely, I found MaterializeCSS.
The most important component for my website is the editable sliders like those in Polymer website. Is there any way to create the same thing with Materialize?

Would you mind linking the component? I'm not sure which one you are talking about.

@acburst Of course
Here is the link --> https://www.polymer-project.org/components/paper-slider/demo.html
The second group with the Red Green Blue labels

Updated link - https://elements.polymer-project.org/elements/paper-slider?view=demo:demo/index.html&active=paper-slider

Checkout the http://materializecss.com/forms.html#range-input html5 range component


no model错误

C:\ProgramData\Anaconda3\envs\torch\python.exe E:/hyx/seq2seq-master/seq2seq.py train
C:\ProgramData\Anaconda3\envs\torch\lib\site-packages\torch\nn\modules\rnn.py:54: UserWarning: dropout option adds dropout after all but last recurrent layer, so non-zero dropout expects num_layers greater than 1, but got dropout=0.05 and num_layers=1
"num_layers={}".format(dropout, num_layers))
Error(s) in loading state_dict for seq2seq:
size mismatch for encoder.embedding.weight: copying a param with shape torch.Size([600, 100]) from checkpoint, the shape in current model is torch.Size([14, 100]).
size mismatch for decoder.embedding.weight: copying a param with shape torch.Size([1600, 100]) from checkpoint, the shape in current model is torch.Size([15, 100]).
size mismatch for decoder.out.weight: copying a param with shape torch.Size([1600, 200]) from checkpoint, the shape in current model is torch.Size([15, 200]).
size mismatch for decoder.out.bias: copying a param with shape torch.Size([1600]) from checkpoint, the shape in current model is torch.Size([15]).
No model!
还有下面的报错
Traceback (most recent call last):
File "E:/hyx/seq2seq-master/seq2seq.py", line 436, in
seq.train()
File "E:/hyx/seq2seq-master/seq2seq.py", line 210, in train
loss, logits = self.step(inputs, targets, self.max_length)
File "E:/hyx/seq2seq-master/seq2seq.py", line 271, in step
return loss.data[0] / target_length, decoder_outputs
IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number
怎么调都不对，求指点~~

从no model的错误来看，是模型文件和模型不匹配的问题，删掉模型文件重新训练。第二个错误是loss这个tensor为空，也就是对应的input为空，检查一下输入数据即可。


Not working on Flutter beta chanel

Error:
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...
../../../../.pub-cache/hosted/pub.dartlang.org/readmore-1.0.1/lib/readmore.dart:82:58: Error: No named parameter with the name 'nullOk'.
        widget.locale ?? Localizations.localeOf(context, nullOk: true);
                                                         ^^^^^^
../../../sdk/flutter/packages/flutter/lib/src/widgets/localizations.dart:413:17: Context: Found this candidate, but the arguments don't match.
  static Locale localeOf(BuildContext context) {
                ^^^^^^^^
Failed to compile application.

Flutter localization API update commit
Now, should use maybeLocaleOf method, not localeOf, if u want to get locale safety.

related PR #15


dist dir is replaced on empty --input args

What happened
Empty input files arg is allowed, dist dir is replaced with empty dir on run.
Reproduce
$ cargo run -- -i

Expected
Program exits or shows an error on empty --input.

Thank you Andrew this is now fixed


Expose partition information in mirror

As described by https://github.com/bakdata/kafka-key-value-store, Quick mirrors should expose information about the different partitions and the corresponding hosts.

The functionality has already been implemented but it has not been tested yet.

Tests implemented in #33


[HOLD for payment 2023-03-13] Can't edit the last comment if there's another comment deleted in the middle

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Add a comment
Add a second comment to the same chat
Press up, delete the whole comment and confirm the deletion
Wait for the api command to finish
Press up, check that it does not open the last comment for editing when it should

Expected Result:
Describe what you think should've happened
Actual Result:
Describe what actually happened
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] MacOS / Chrome / Safari

Version Number: 1.2.76-7
Reproducible in staging?:  y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/221225790-9b20717c-89cc-427f-9b7c-74289c3cf2ec.mp4
Expensify/Expensify Issue URL:
Issue reported by: @iwiznia
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1677182500365509
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~0125d977a0cd449523
Upwork Job ID:<PHONE_NUMBER>430939648
Last Price Increase: 2023-02-28

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@michaelhaxhiu Whoops! This issue is 2 days overdue. Let's get this updated quick!

I fix

Actually going to tag you back in @michaelhaxhiu to help with adding regression tests when we're done

Job added to Upwork: https://www.upwork.com/jobs/~0125d977a0cd449523

Ok, PR is ready for review: https://github.com/Expensify/App/pull/15545

Reviewing label has been removed, please complete the "BugZero Checklist".

The solution for this issue has been :rocket: deployed to production :rocket: in version 1.2.78-0 and is now subject to a 7-day regression period :calendar:. Here is the list of pull requests that resolve this issue:

https://github.com/Expensify/App/pull/15545

If no regressions arise, payment will be issued on 2023-03-13. :confetti_ball:
After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

[ ] External issue reporter
[ ] Contributor that fixed the issue
[ ] Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

Merged PR within 3 business days of assignment - 50% bonus
Merged PR more than 9 business days after assignment - 50% penalty

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

[ ] [@rushatgabhane / @roryabraham] The PR that introduced the bug has been identified. Link to the PR:
[ ] [@rushatgabhane / @roryabraham] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
[ ] [@rushatgabhane / @roryabraham] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
[ ] [@rushatgabhane] Propose regression test steps to ensure the same bug will not reach production again.
[ ] [@michaelhaxhiu] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@michaelhaxhiu, @rushatgabhane, @roryabraham Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Invited Rushat to the job for $1k payment as C+ PR reviewer

@michaelhaxhiu, @rushatgabhane, @roryabraham Eep! 4 days overdue now. Issues have feelings too...

https://github.com/Expensify/App/issues/16435

@michaelhaxhiu hi, how's it going?
I think we missed settling the upwork job for this :)

Oh no! Looking 👀

You are correct. Just sent you an offer. Can you DM when you accept it, so this doesn't get lost in the mix :)? I'll try to action it today/tomorrow (but I'm OOO till Tuesday as a heads-up)


Add reset zoom button to Controls

It would be nice to have

Hey @jefvel
It's a good idea but we will not expand the controls component. It is simple to re-implement it with your own functionalities. You can find everything you need in the  useZoomPanHelper hook. https://reactflow.dev/docs/api/hooks/

Hey @jefvel
It's a good idea but we will not expand the controls component. It is simple to re-implement it with your own functionalities. You can find everything you need in the  useZoomPanHelper hook. https://reactflow.dev/docs/api/hooks/

You can now easily extend the controls: https://reactflow.dev/docs/api/components/controls/#extended-controls


GPIO write at CLOCK_REALTIME

Hello,
I am trying to generate a signal on GPIO pin at precise wall clock but callback+write() latencies are about 1300us. I discover trying to mirror a PPS signal (prove with python and C).
I understand that latencies are unavoidables but I am wondering if I there are any solution of do precise gpio activation at time base on system clock (i.e each UTC second)
Thanks in advance

I have written software using pigpio try to do a similar job.  You could try searching for joan and GPS on the raspeberrypi.org/forums where I did post a couple of examples (years apart).  They might give you an idea, although I'm not sure if they would be compatible with the current pigpio (they depended on internal functioning).
I might have another look.
My approach would to be to use a wave.
Every second I'd send a wave looking like.
                         +-+
                         | |
                         | |
                         | |
    preamble             | |      postamble
-------------------------+ +---------------------------

The overall length would be a million (or whatever number of ticks calibrates to one second).
The low preamble and postamble could be altered to centre the pulse on the second.
Every second you would need to calibrate the system tick against wall time so that the pre-amble and post-amble could be changed if needed as well as the overall length.  The new wave could then be sent using the SYNC option (see http://abyz.me.uk/rpi/pigpio/cif.html#gpioWaveTxSend).

Hi Joan,
I am not sure I understand you ... I mean gpioWaveTxSend()  will have some latency as write() has so... How do you asure that preamble pulse will be started at rigth time (or tick)?
One solution would be to make a new function to write gpio in the future at desire tick write_at_tick(gpio,level,future_tick) but I don't know if is fesasible..
Thank you for your anwers and your incredible support!

OK. I understand your point. Using this aproach you can get a equal space in CLOCK_REALTIME  train of pulses.
But how do you know either the tick or the wall clock when the first wave start at? You need this data to do the first 'prologue' calculation. Don't you?

I answer myshelf. Put in simply I used a  RISSING_EDGE callback on auxiliary signal to do wave to UTC syncronization. Now I am able to fire a gpio with an accuracy of +-5micros from UTC !!


JFYI

Following up from ASG :).
The Self Certification is unnecessary here, AFAIU it's done (inside the go-attestation) to resemble what windows does 🤷.
Read this interesting thread for more info, https://github.com/google/go-attestation/issues/98
https://github.com/Foxboron/ssh-tpm-ca-authority/blob/e92b30331d2dc7f74e5ab8c39effa61784431a5a/attest/attest.go#L254

Awesome, thanks for the link :)!


Update README.txt to with a description of the new feature

@PanBartosz Thanks for your update. But the json feature only support import data now. We also want to support json format export feature in future. After we finish it, we will update the json part in README.


Add summary & golden metrics for powerdns_authoritative & powerdns_recursor

Relevant information
Add summary & golden metrics for powerdns_authoritative & powerdns_recursor
Checklist

[X ] I've read the guidelines and understand the acceptance criteria.
[ X] The value of the attribute marked as identifier will be unique and valid.
[ X] I've confirmed that my entity type wasn't already defined. If it is I'm providing an
explanation above.

These are the validation errors ^


Can I request a new recipes?

Like the title.

I will try requesting new recipes anyway. If you don't want it then just close it.

I looked at your requests (#7 #8 #9 #10 #11 #12 #13 #14).

FOX Toolkit (#7) already had a working recipe.
TEA Text Editor (#8) built right out of the box.
The others didn't build out of the box.

Those that don't build (yet) I added to my work in progress folder so I get notified if there are any new versions, so I can try again in the future.


[BUG] Error on first run: "Error: Could not retrieve repository contents. Status: 404"

Describe the bug
The first time a contributor triggered the workflow (v2.4.0) on a repository, the action failed before doing much of anything.  The error message is "Error: Could not retrieve repository contents. Status: 404".
Here's an example in a clean repository with the Action installed simply by copy/pasting YAML from the action's Marketplace page: https://github.com/liffiton/testrepotest/actions/runs/9551059846
The error appears to come from SetupClaCheck.ts.  However, I can't tell how the error is being thrown, because if error.status is 404, which the error message says it is, then the conditional should trigger the createClaFileAndPRComment() call instead.  Maybe a type issue where error.status is a string for some reason?
To Reproduce
Steps to reproduce the behavior:

Create a new repository.
Set up the workflow on that repository by copying the .yml file from contributor-assistant/github-action's README.
Trigger the action with a new pull request on the repository.

I'm encountering this same problem in my test repo as well:
https://github.com/nvzkupu/cla-test/actions/runs/9572474510/job/26391861486?pr=1

same here, thanks for looking into it

Same here. It works on existing repositories and fails on new repositories.

I manually created a file for storing CLA Signatures as a workaround.
https://github.com/arktwin/arktwin/commit/2d19501c66376d888b3574bc48a82f096308efbb

As @piyo7 mentioned, manually creating the signatures file solves the problem. The instructions specifically say not to create the file, so one possible fix would be to change the instructions.


[Feature request] focus and blur events are missing in next

What problem does this feature solve?
Restore the focus and blur events that we had in Vue2. Is there any way to access those events?
What does the proposed API look like?

  mounted() {
    document.querySelector('.mx-input').addEventListener('focus', () => {
      console.log('focus');
    });
  },


[AddressPage] Zip Code regex based validation

Details

With this PR, we are making the following changes:

All fields in the Home Address page will no longer accept just empty spaces, except Address Line 2.
The zip code field will now ensure that the value entered is correct according to the zip code format of the chosen country.
The acceptable format will be shown as a hint normally and in the error text as well.

Fixed Issues

$ https://github.com/Expensify/App/issues/14958
PROPOSAL: https://github.com/Expensify/App/issues/14958#issuecomment-1424743785
Tests

For the testing, you can also use ChatGPT to generate random address from a specific country (very helpful tip).
ChatGPT prompt: Generate 5 random addresses from {country}
All fields except zip code input:
All tests are based on Step 0 as the pre requisite.
0. Go to Settings > Profile > Personal Details > Home Address.
Test 1

Enter any address in the address line 1.
Choose any address from the suggestions.
Ensure that the values are entered correctly.
Click on save.
Open the Home Address again. Ensure values are as entered.

Test 2

Enter just spaces   in any field.
Ensure that an error is shown as soon as you unfocus on the field.
Ensure you are not allowed to save the values as long you don't fix the error.
Repeat the steps for all fields accept Address Line 2 and Zip / Postcode, where we allow empty values.

Extensive tests specifically for zip code field:
Test 1

Enter any address from any country in Address Line 1.
Click on any suggestion.
Ensure that the fields are filled correctly.
If the zip code was in the chosen address, ensure that it was filled and was correct according to the country zip code format so no error is shown.

Test 2

Choose any random country from the Country dropdown.
Ensure that the Format: is updated accordingly.
Ensure that the zip code format is correct for the chosen country.
Repeat this test for as many countries as you can.
Note that some countries do not have a postal code system so empty values for zip code are allowed in this case.

Broadly, the countries can be classified into two parts:

Without a regex code.
With a regex code.

A few sample for the same are:

United Arab Emirates, Benin, Fiji, Grenada, North Korea.
(Notably) Bahrain, Azerbaijan, Argentina, Barbados, Bermuda, Brazil, Canada, United Kingdom, Isle of Man, Iran, Jersey, Marshall Islands, Niue, Saudi Arabia, South Sudan.

You can also choose and test any country at random as well.
Repeat all the above tests in the Spanish language as well.

[x] Verify that no errors appear in the JS console

Offline tests

N/A. Changes do not depend/affect on the connectivity status of the component.
QA Steps

Make sure that the "Use Staging Server" toggle is turned ON in Settings > Preferences as this PR is dependent on a backend change, which might or might not be deployed to prod by the time this reaches QA.
Same as above.

[x] Verify that no errors appear in the JS console

PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message: https://expensify.slack.com/archives/C01GTK53T8Q/p1678558158115389

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is correct English and approved by marketing by adding the Waiting for Copy label for a copy review on the original GH to get the correct copy.
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If a new component is created I verified that:

[x] A similar component doesn't exist in the codebase
[x] All props are defined accurately and each prop has a /** comment above it */
[x] The file is named correctly
[x] The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
[x] The only data being stored in the state is data necessary for rendering and nothing else
[x] For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
[x] Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
[x] All JSX used for rendering exists in the render method
[x] The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions

[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)

[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
[x] I have checked off every checkbox in the PR author checklist, including those that don't apply to this PR.

Screenshots/Videos

Web
https://user-images.githubusercontent.com/54077356/229156427-55f05ac8-5367-4407-8a76-c5cf44335954.mp4

Mobile Web - Chrome
https://user-images.githubusercontent.com/54077356/229156460-5355bda2-300a-4c00-b38d-2eb9e452a51a.mp4

Mobile Web - Safari
https://user-images.githubusercontent.com/54077356/229157305-9185f792-1799-4cc3-a612-7a0267e2cb8d.mp4

Desktop
https://user-images.githubusercontent.com/54077356/229156547-b9642849-a533-4ec8-bb24-90724fc5f8b6.mp4

iOS
https://user-images.githubusercontent.com/54077356/229157259-d260b338-2509-4c4b-b579-132cce97cc01.mp4

Android
https://user-images.githubusercontent.com/54077356/229156548-0ede5408-29bc-430b-bff7-7e8b2158f720.mp4

@Beamanator @eVoloshchak One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

Bug:
when saving an address with no zip code (for a country that has no zipRegex), the new address replaced with an old adress in a couple of seconds
https://user-images.githubusercontent.com/9059945/224975207-79018469-6432-40c9-9eab-1fa13abac283.mov
(notice how Angola is correctly displayed for a split second, and then it changes back to Ukraine, which is the previous address)
Native platforms behave the same, looks like a back-end issue

Just to clarify, not sure @eVoloshchak was assigned here (something wrong with pullbear). I am C+ on the linked issue and already reviewed proposals.

Oh, I was thinking this is an internal PR since I wasn't assigned to the issue. Must be something with Melvin
All you then!

@0xmiroslav this should be fixed now, right?

@Prince-Mendiratta can you please resolve the Github comments that have been resolved? I see a lot still open and now that I have the time to jump back into reviewing I'm a bit confused if I should check all open comment threads or not :D

@Prince-Mendiratta thanks for explaining why you have been force pushing on these PRs! I'd say if you "love" doing that, feel free :D 👍  But I would say it's a bit slow / waste of time - none of us Expensifiers care about extra Merge commits in our PRs, so I guess it's up to you if you wanna keep doing it that way haha

And @0xmiroslav I agree with your latest conclusions about expected behavior for zip codes 👍

I also like the idea of keeping the field available, and just not validating anything (except maybe < 15 characters / digits, something reasonable like that?)

This is the last conclusion

Oh @Prince-Mendiratta I think your PR only allows 0 - 10 characters / digits in the zip code, right? In the "Generic" regex?

FYI the back-end PR (https://github.com/Expensify/Web-Expensify/pull/36882/files) was merged, will take a day to get on staging, then we can keep this moving
The logic in the backend (for zip codes) is basically:

if country is 'US' and there's no zip, throw error
If country isn't US, no zip required
Both ways, check the zip is <= 10 characters

Back-end PR is on staging! 💪

Reviewing in a few minute! 👍

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

🚀 Deployed to staging by https://github.com/Beamanator in version: 1.2.94-0 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
failure ❌

🕸 web 🕸
success ✅

🚀 Deployed to production by https://github.com/thienlnam in version: 1.2.94-3 🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Update form validation error message styling

Why: As an end-user, if I try to submit a form with invalid form values, I want to see consistent and accessible messaging that tells me what I need to complete before I can submit the form successfully.
References:

LG-4235
https://gsa-tts.slack.com/archives/C01JVKYE4KD/p1632934852000500

Before
After

Live preview URL: TBD

The failing visual regression test is expected, since it reflects the larger border size and relocated icon.


Raise public awareness for picocli

https://softwarerecs.stackexchange.com/questions/16450/what-library-should-i-use-for-handling-cli-arguments-for-my-java-program
http://stackoverflow.com/questions/1200054/java-library-for-parsing-command-line-parameters/19666893#19666893
http://stackoverflow.com/questions/367706/how-to-parse-command-line-arguments-in-java

When use picocli?

writing a Java command line utility
don't want to add an external dependency
parsing should be easy, like CommandLine.run(new MyAnnotatedClass(), args);
bonus: usage help with ANSI colors
bonus: gives your utility auto-complete

http://www.vogella.com/contact.html
http://www.mkyong.com/contact-mkyong/
http://javarevisited.blogspot.jp/p/about-me.html (Java & Linux)
http://javapapers.com/category/java/ (Tools category)
http://www.programcreek.com/
http://blog.codefx.org/cat/tools/
http://www.thoughts-on-java.org/
https://antoniogoncalves.org/

https://blogs.oracle.com/java/2017-dukes-choice-award-nominations-v2


[Feature]: Interactive browser window

What problem or use case are you trying to solve?

Agents start a web app but the browser is view-only, making it difficult to quickly test the outcome.

Describe the UX of the solution you'd like

Users can go to the address bar of the browser view and explicitly type in URL
Users can interact with the frontend (to test the UI).

Do you have thoughts on the technical implementation?
N/A.
Describe alternatives you've considered

The alternative is to let docker pass through all ports with docker run --net=host (with the added documentation) cc: @neubig

Additional context
N/A.

See: github.com/langchain-ai/langgraph/blob/main/docs/docs/tutorials/web-navigation/web_voyager.ipynb

@mamoodi  can you show me way to implement or use this interactive browser ??

@rishi8011 you can't use an interactive browser because currently it's not interactive. You and the user that created issue would like that to be the case.
I will say that the browser is in beta phase and it might go through a large change in the future.


investigate "storage buckets"

https://developer.chrome.com/docs/web-platform/storage-buckets

Hello @getify, I might be stating the obvious here so pardon me if this is the case.
However, it seems like Storage Buckets operate on top of an already established storage API, like indexedDB: which you are already using through the "idb-keyval" package! Notice that somebody has already pushed this conversation there:
https://github.com/jakearchibald/idb-keyval/issues/174
If they work on that I believe you could do some testing for free, or almost for free, in this amazing project with Storage Buckets. Or, you could clone that dependency and do the suggestion in the opened issue and then use the set/get APIs with the small change of using StorageBucket.indexedDB instead of window.indexedDB.
Dropped this two cents here just to see if it helps! Regards

TBH I only found the article about them, haven't read it yet, don't know what they're for or if they're relevant at all here. this is mostly a research task, not yet a dev task. :)

Here’s a concise summary of the Storage Buckets API:
Multiple Storage Buckets: Developers can create separate buckets to prioritize which data to keep or discard under storage pressure
Granular Control: Allows for fine-grained control over persistent storage, avoiding the traditional "all-or-nothing" approach for data persistence
Eviction Prioritization: Developers can assign priorities to buckets, ensuring important data (e.g., unsent drafts) remains while less critical data can be evicted
Customizable Durability: Buckets can have different durability settings—strict for safer but slower writes, or relaxed for faster, more performance-optimized writes
API Compatibility: Works with common web storage APIs like IndexedDB, Cache API, and File API
DevTools Integration: Storage buckets can be debugged and monitored via Chrome DevTools
Hope this helps :)

Thanks for the info. After thinking about it, I don't think this makes sense for this library, at this time. If it expands beyond a Chrome-only feature, it may be worth re-visiting.


Avoid splatting and more @inline for better inference

Here is one example using NamedTupleTools.select
using NamedTupleTools: namedtuple, select

# no inline, no splat (version in NamedTupleTools at time of writing)
select_00(nt::NamedTuple, ks) = namedtuple(ks)(((nt[k] for k in ks)...,))
# inline, no splat
@inline select_10(nt::NamedTuple, ks) = namedtuple(ks)(((nt[k] for k in ks)...,))
# no inline, splat
select_01(nt::NamedTuple, ks) = namedtuple(ks)(map(k->nt[k], ks))
# inline, no splat
@inline select_11(nt::NamedTuple, ks) = namedtuple(ks)(map(k->nt[k], ks))

test_select_hc(t) = (b=t.b, a=t.a)  # hard-coded
test_select_00(t) = select_00(t, (:b, :a))
test_select_01(t) = select_01(t, (:b, :a))
test_select_10(t) = select_10(t, (:b, :a))
test_select_11(t) = select_11(t, (:b, :a))

# @code_llvm test_select_ntt((a=3,b=4,c=5))

using Test: Test

macro testinferred(ex)
  quote
    try
        Test.@inferred $ex
        nothing
    catch e
        e
    end
  end
end

@show @testinferred test_select_00((a=3,b=4,c=5))
@show @testinferred test_select_01((a=3,b=4,c=5))
@show @testinferred test_select_10((a=3,b=4,c=5))
@show @testinferred test_select_11((a=3,b=4,c=5))

produces
@testinferred(test_select_00((a = 3, b = 4, c = 5))) = ErrorException("return type NamedTuple{(:b, :a),Tuple{Int64,Int64}} does not match inferred return type NamedTuple")
@testinferred(test_select_01((a = 3, b = 4, c = 5))) = ErrorException("return type NamedTuple{(:b, :a),Tuple{Int64,Int64}} does not match inferred return type NamedTuple{_A,Tuple{Int64,Int64}} where _A")
@testinferred(test_select_10((a = 3, b = 4, c = 5))) = ErrorException("return type NamedTuple{(:b, :a),Tuple{Int64,Int64}} does not match inferred return type NamedTuple{(:b, :a),_A} where _A<:Tuple")
@testinferred(test_select_11((a = 3, b = 4, c = 5))) = nothing

Also, it's good that test_select_11 and test_select_hc produce the same code (at least on the example I tried).

thanks!

thanks!


rename build app

rename the app to Defikarte.ch for the app stores.

do you want to call it "defikarte.ch" or "Defikarte.ch"?

do you want to call it "defikarte.ch" or "Defikarte.ch"?

Defikarte.ch

Defikarte.ch

Will be there with the next builds

Will be there with the next builds


Error during build: std::clone::Clone is not implemented for sea_orm::DatabaseConnection

In the dependencies of Cargo.toml:
sea-orm = {version = "0.5.0-rc.1", features = ["runtime-async-std-rustls"]}
Relevant code:
use sea_orm::DatabaseConnection;

#[derive(Clone)]
struct AppState {
    conn: DatabaseConnection,
    schema: Schema<Query, EmptyMutation, EmptySubscription>,
}

...
    let conn = sea_orm::Database::connect(&db_url).await.unwrap();
    let schema = Schema::new(Query, EmptyMutation, EmptySubscription);
    let state = AppState { conn, schema };

...
HttpServer::new(move || {
        App::new()
            .app_data(Data::new(state.clone()))
            // .service(web::resource("/").guard(guard::Post()).to(index))
            .service(web::resource("/").guard(guard::Get()).to(index_playground))
    })
    .bind("<IP_ADDRESS>:8000")?
    .run()
    .await

Any idea to why I could get this error during build? From the source code and examples I see that the Clone trait IS implemented for DatabaseConnection.

Hey @DavidFreire-FEUP, this error occured because you have "mock" feature enabled. If you don't need mock connection, then you could opt-out from "mock" feature.
https://github.com/SeaQL/sea-orm/blob/da21e79bb59755800153a1b8d55a1641ffc6c683/src/database/db_connection.rs#L16-L34

Thanks for the fast response. I had forgot to disable default features! Sorry for the newbie mistake and thank you so much again :)

Welcome :P


pushsecrets crd error when disabled

Describe the solution you'd like
component: external-secrets
helm chart version: 0.8.1
Issue:
pushsecrets crd when disabled throws exception followed by controller restarts, if leader election enabled the pod restarts goes on and on. There is no issue in reading secretsstore, externalsecrets.
Logging observed continuously from the deployment startup.
"level":"error","ts":1682453652.2495687,"logger":"controller-runtime.source","msg":"if kind is a CRD, it should be installed before calling Start","kind":"[PushSecret.external-secrets.io](http://pushsecret.external-secrets.io/)","error":"no matches for kind \"PushSecret\" in version \"[external-secrets.io/v1alpha1](http://external-secrets.io/v1alpha1)\"","stacktrace":"[sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start](http://sigs.k8s.io/controller-runtime/pkg/source.(*Kind).Start).
Number of restarts due to the above continuous logging.
NAME READY   STATUS    RESTARTS        AGE
pod/eso-controller-6468c67bc9-4rm2f   1/1     Running   2 (42s ago)     8m21s
pod/eso-controller-6468c67bc9-rtr4z   1/1     Running   1 (3m32s ago)   8m21s
due to leaderElection set to true the controller pods switches back and forth due to the error logging on pushsecrets v1alpha1.
What is the added value?
pushSecrets crd can be disabled properly either using --set  crds.createPushSecret=false  command line or using helm values boolean flag to false  and the controller pod doesn't get into a restart panic.
When checking the generated yaml spec the crd/push-secrets.yaml is not present in the helm generated manifest which is expected behavior.
Observations (Constraints, Context, etc):
Use case:
Ability to read secrets manager using SecretsStore and ExternalSecrets, no requirement to push or write from SecretsStore to the secrets manager module of AWS.
Params disabled.

crds.ClusterExternalSecret, crd.ClusterSecretStore, processClusterExternalSecret, processClusterStore, all the flags disabled i.e., false
crds.createPushSecret: false

Modules disabled. (Not required due to use case.)
Webhook (SecretStore/ExternalSecrets use  apigroup/apiversion - external-secrets.io/v1beta1)
ServiceMonitor
CertManager
helm values file used for deployment
replicaCount: 2
revisionHistoryLimit: 10

image:
  repository: ghcr.io/external-secrets/external-secrets
  pullPolicy: IfNotPresent
  # -- The image tag to use. The default is the chart appVersion.
  # There are different image flavours available, like distroless and ubi.
  # Please see GitHub release notes for image tags for these flavors.
  # By default the distroless image is used.
  tag: "v0.8.1"

# -- If set, install and upgrade CRDs through helm chart.
installCRDs: true

crds:
  # -- If true, create CRDs for Cluster External Secret.
  createClusterExternalSecret: false
  # -- If true, create CRDs for Cluster Secret Store.
  createClusterSecretStore: false
  # -- If true, create CRDs for Push Secret.
  createPushSecret: false
  annotations: {}
  conversion:
    enabled: false

imagePullSecrets: []
nameOverride: ""
fullnameOverride: "eso-controller"

# -- If true, external-secrets will perform leader election between instances to ensure no more
# than one instance of external-secrets operates at a time.
leaderElect: true

# -- If set external secrets will filter matching
# Secret Stores with the appropriate controller values.
controllerClass: "eso-custom"

# -- If set external secrets are only reconciled in the
# provided namespace
scopedNamespace: "eso-system"

# -- Must be used with scopedNamespace. If true, create scoped RBAC roles under the scoped namespace
# and implicitly disable cluster stores and cluster external secrets
scopedRBAC: true

# -- if true, the operator will process cluster external secret. Else, it will ignore them.
processClusterExternalSecret: false

# -- if true, the operator will process cluster store. Else, it will ignore them.
processClusterStore: false

# -- Specifies whether an external secret operator deployment be created.
createOperator: true

# -- Specifies the number of concurrent ExternalSecret Reconciles external-secret executes at
# a time.
concurrent: 1

serviceAccount:
  # -- Specifies whether a service account should be created.
  create: true
  # -- Automounts the service account token in all containers of the pod
  automount: true
  # -- Annotations to add to the service account.
  annotations:
    eks.amazonaws.com/role-arn: "arn:aws:iam::123434543:role/Eso-Controller-Role"
  # -- Extra Labels to add to the service account.
  extraLabels: {}
  # -- The name of the service account to use.
  # If not set and create is true, a name is generated using the fullname template.
  name: "eso-service-account"

rbac:
  # -- Specifies whether role and rolebinding resources should be created.
  create: true

## -- Extra environment variables to add to container.
extraEnv: []

## -- Map of extra arguments to pass to container.
extraArgs: {}

## -- Extra volumes to pass to pod.
extraVolumes: []

## -- Extra volumes to mount to the container.
extraVolumeMounts: []

## -- Extra containers to add to the pod.
extraContainers: []

# -- Annotations to add to Deployment
deploymentAnnotations: {}

# -- Annotations to add to Pod
podAnnotations: {}

podLabels: {}

podSecurityContext: {}
  # fsGroup: 2000

securityContext: {}
  # capabilities:
  #   drop:
  #   - ALL
  # readOnlyRootFilesystem: true
  # runAsNonRoot: true
  # runAsUser: 1000

resources:
  # requests:
  #   cpu: 10m
  #   memory: 32Mi
  limits:
    cpu: 10m
    memory: 32Mi

prometheus:
  # -- deprecated. will be removed with 0.7.0, use serviceMonitor instead.
  enabled: false
  service:
    # -- deprecated. will be removed with 0.7.0, use serviceMonitor instead.
    port: 8080

serviceMonitor:
  # -- Specifies whether to create a ServiceMonitor resource for collecting Prometheus metrics
  enabled: false

  # -- Additional labels
  additionalLabels: {}

  # --  Interval to scrape metrics
  interval: 30s

  # -- Timeout if metrics can't be retrieved in given time interval
  scrapeTimeout: 25s

  # -- Let prometheus add an exported_ prefix to conflicting labels
  honorLabels: false

  # -- Metric relabel configs to apply to samples before ingestion. [Metric Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#metric_relabel_configs)
  metricRelabelings: []
  # - action: replace
  #   regex: (.*)
  #   replacement: $1
  #   sourceLabels:
  #   - exported_namespace
  #   targetLabel: namespace

  # -- Relabel configs to apply to samples before ingestion. [Relabeling](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config)
  relabelings: []
  # - sourceLabels: [__meta_kubernetes_pod_node_name]
  #   separator: ;
  #   regex: ^(.*)$
  #   targetLabel: nodename
  #   replacement: $1
  #   action: replace

metrics:
  service:
    # -- Enable if you use another monitoring tool than Prometheus to scrape the metrics
    enabled: false

    # -- Metrics service port to scrape
    port: 8080

    # -- Additional service annotations
    annotations: {}

nodeSelector: {module: "infra"}

tolerations: []

topologySpreadConstraints: []

affinity: {}

# -- Pod priority class name.
priorityClassName: ""

# -- Pod disruption budget - for more details see https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
podDisruptionBudget:
  enabled: true
  # minAvailable: 1
  # maxUnavailable: 1

webhook:
  # -- Specifies whether a webhook deployment be created.
  create: false
  # -- Specifices the time to check if the cert is valid
  certCheckInterval: "5m"
  # -- Specifices the lookaheadInterval for certificate validity
  lookaheadInterval: ""
  replicaCount: 1

  # -- Specifies the amount of historic ReplicaSets k8s should keep (see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy)
  revisionHistoryLimit: 10

  certDir: /tmp/certs
  # -- Specifies whether validating webhooks should be created with failurePolicy: Fail or Ignore
  failurePolicy: Fail
  # -- Specifies if webhook pod should use hostNetwork or not.
  hostNetwork: false
  image:
    repository: ghcr.io/external-secrets/external-secrets
    pullPolicy: IfNotPresent
  # -- The image tag to use. The default is the chart appVersion.
    tag: ""
  imagePullSecrets: []
  nameOverride: ""
  fullnameOverride: ""
  # -- The port the webhook will listen to
  port: 10250
  rbac:
  # -- Specifies whether role and rolebinding resources should be created.
    create: true
  serviceAccount:
    # -- Specifies whether a service account should be created.
    create: true
    # -- Automounts the service account token in all containers of the pod
    automount: true
    # -- Annotations to add to the service account.
    annotations: {}
    # -- Extra Labels to add to the service account.
    extraLabels: {}
    # -- The name of the service account to use.
    # If not set and create is true, a name is generated using the fullname template.
    name: ""
  nodeSelector: {}

  tolerations: []

  affinity: {}

    # -- Pod priority class name.
  priorityClassName: ""

  # -- Pod disruption budget - for more details see https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
  podDisruptionBudget:
    enabled: false
    minAvailable: 1
    # maxUnavailable: 1
  prometheus:
    # -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
    enabled: false
    service:
      # -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
      port: 8080

  serviceMonitor:
    # -- Specifies whether to create a ServiceMonitor resource for collecting Prometheus metrics
    enabled: false

    # -- Additional labels
    additionalLabels: {}

    # --  Interval to scrape metrics
    interval: 30s

    # -- Timeout if metrics can't be retrieved in given time interval
    scrapeTimeout: 25s

  metrics:
    service:
      # -- Enable if you use another monitoring tool than Prometheus to scrape the metrics
      enabled: false

      # -- Metrics service port to scrape
      port: 8080

      # -- Additional service annotations
      annotations: {}

  readinessProbe:
    # -- Address for readiness probe
    address: ""
    # -- ReadinessProbe port for kubelet
    port: 8081

    ## -- Extra environment variables to add to container.
  extraEnv: []

    ## -- Map of extra arguments to pass to container.
  extraArgs: {}

    ## -- Extra volumes to pass to pod.
  extraVolumes: []

    ## -- Extra volumes to mount to the container.
  extraVolumeMounts: []

    # -- Annotations to add to Secret
  secretAnnotations: {}

    # -- Annotations to add to Deployment
  deploymentAnnotations: {}

    # -- Annotations to add to Pod
  podAnnotations: {}

  podLabels: {}

  podSecurityContext: {}
      # fsGroup: 2000

  securityContext: {}
      # capabilities:
      #   drop:
      #   - ALL
      # readOnlyRootFilesystem: true
      # runAsNonRoot: true
      # runAsUser: 1000

  resources: {}
      # requests:
      #   cpu: 10m
      #   memory: 32Mi

certController:
  # -- Specifies whether a certificate controller deployment be created.
  create: false
  requeueInterval: "5m"
  replicaCount: 1

  # -- Specifies the amount of historic ReplicaSets k8s should keep (see https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#clean-up-policy)
  revisionHistoryLimit: 10

  image:
    repository: ghcr.io/external-secrets/external-secrets
    pullPolicy: IfNotPresent
    tag: ""
  imagePullSecrets: []
  nameOverride: ""
  fullnameOverride: ""
  rbac:
  # -- Specifies whether role and rolebinding resources should be created.
    create: true
  serviceAccount:
    # -- Specifies whether a service account should be created.
    create: true
    # -- Automounts the service account token in all containers of the pod
    automount: true
    # -- Annotations to add to the service account.
    annotations: {}
    # -- Extra Labels to add to the service account.
    extraLabels: {}
    # -- The name of the service account to use.
    # If not set and create is true, a name is generated using the fullname template.
    name: ""
  nodeSelector: {}

  tolerations: []

  affinity: {}

    # -- Pod priority class name.
  priorityClassName: ""

  # -- Pod disruption budget - for more details see https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
  podDisruptionBudget:
    enabled: false
    minAvailable: 1
    # maxUnavailable: 1

  prometheus:
    # -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
    enabled: false
    service:
      # -- deprecated. will be removed with 0.7.0, use serviceMonitor instead
      port: 8080

  serviceMonitor:
    # -- Specifies whether to create a ServiceMonitor resource for collecting Prometheus metrics
    enabled: false

    # -- Additional labels
    additionalLabels: {}

    # --  Interval to scrape metrics
    interval: 30s

    # -- Timeout if metrics can't be retrieved in given time interval
    scrapeTimeout: 25s

  metrics:
    service:
      # -- Enable if you use another monitoring tool than Prometheus to scrape the metrics
      enabled: false

      # -- Metrics service port to scrape
      port: 8080

      # -- Additional service annotations
      annotations: {}

    ## -- Extra environment variables to add to container.
  extraEnv: []

    ## -- Map of extra arguments to pass to container.
  extraArgs: {}

    ## -- Extra volumes to pass to pod.
  extraVolumes: []

    ## -- Extra volumes to mount to the container.
  extraVolumeMounts: []

    # -- Annotations to add to Deployment
  deploymentAnnotations: {}

    # -- Annotations to add to Pod
  podAnnotations: {}

  podLabels: {}

  podSecurityContext: {}
      # fsGroup: 2000

  securityContext: {}
      # capabilities:
      #   drop:
      #   - ALL
      # readOnlyRootFilesystem: true
      # runAsNonRoot: true
      # runAsUser: 1000

  resources: {}
      # requests:
      #   cpu: 10m
      #   memory: 32Mi

# -- Specifies `dnsOptions` to deployment
dnsConfig: {}

Tested command switch for helm (same as above)
helm template eso external-secrets/external-secrets \
--namespace=eso-system \
--set crds.createsClusterExternalSecret=false\
--set crds.createClusterSecretStore=false \
--set crds.createPushSecret=false \
--set crds.conversion.enabled=false \
--set leaderElect=true \
--set replicaCount=2 \
--set image.tag="v0.8.1" \
--set controllerClass="eso-custom" \
--set processClusterExternalSecret=false \
--set processClusterStore=false \
--set createOperator=true \
--set serviceAccount.create=true \
--set serviceAccount.name="eso-service-account" \
--set rbac.create=true \
--set serviceMonitor.enabled=false \
--set metrics.service.enabled=false \
--set webhook.create=false \
--set nodeSelector.module=infra

SecretStore tested
---
apiVersion: external-secrets.io/v1beta1
kind: SecretStore
metadata:
  name: store-test
  namespace: external-secrets
spec:
  provider:
    aws:
      service: SecretsManager
      region: "us-east-1"

External secrets manifest tested
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
  name: api-test
  namespace: eso-system
spec:
  # ...
  refreshInterval: 60m
  secretStoreRef:
    name: store-test
    kind: SecretStore
  target:
    name: secrets-test
    # this is how the Kind=Secret will look like
  data:
  - secretKey: readme
    remoteRef:
      key: "preprod/esotest"
      property: readme
  - secretKey: dummy
    remoteRef:
      key: "preprod/esotest"
      property: value1

Thanks for reporting this, i think there's just a conditional missing in the controller.
Free for someone to pick this up :pray:

have you given this a shot @sheetalsingala

Hi, I looked into this issue and found we have another flag called processPushSecret. I confirmed if we disable it, no error occurs. I think it would be better if we disable it when a specify crds.createPushSecret=false, so I'll change it so 🙂


Remove outdated code and update with new functionals

The big change here is updating the l-curve and posterior consistency code to use simplified functionals, as are outlined in the explanatory text. Old WIP code has been removed though the enforced posterior consistency code has been kept for me to put in my thesis.
Note that the original L-curves were wrong and had a false inflection point (it was some numerical error that I ought to have been able to reporoduce with the new code but couldn't) - the new outputted values are correct. And l-curve is also now made for the point cloud functional (J).

This looks good to me! We may want to switch from DumbCheckpoint to the new CheckpointFile, but I can do that in another PR.

This looks good to me! We may want to switch from DumbCheckpoint to the new CheckpointFile, but I can do that in another PR.

We may run into trouble because of https://github.com/firedrakeproject/firedrake/issues/2452, but let's see.


Spyder crashes when running simulation with NEST

Description of your problem
Spyder crashes running script that uses NEST spiking simulator. Its a problem with Spyder because the script works from the terminal using python3
What steps will reproduce the problem?

Run this script. It only occurs if simtime is set to longer than 2500 ms

import nest
import nest.raster_plot
import matplotlib.pyplot as plt

nest.ResetKernel() # gets rid of all nodes, customised models, reset internal clock to 0

# parameters
g = 5.0
eta = 2.0
delay = 1.5
tau_m = 20.0
V_th = 20.0
NE =100
NI = 100
N_neurons = NE+NI
CE = NE//10
C_I = NI//10
J_E = 0.1
J_I = -g*J_E
nu_ex = eta * V_th / ( J_E *CE*tau_m )
p_rate = 1000.0 * nu_ex * CE # spikes / s of external popn
N_rec = 50
simtime = 3000 # ms

nest.SetKernelStatus({'print_time':True}) # set sim kernel to print simulation time

# create neurons and devices
nest.SetDefaults('iaf_psc_delta',
            {'C_m':1.0,
             'tau_m':tau_m,
             't_ref':2.0,
             'E_L':0.0,
             'V_th':V_th,
             'V_reset':10.0})
nodes = nest.Create('iaf_psc_delta',N_neurons) # create the neurons
nodes_E = nodes[:NE]
nodes_I = nodes[NE:]
noise = nest.Create('poisson_generator',1,{'rate':p_rate}) # iid for all targets
spikes = nest.Create('spike_detector',2,[{'label':'brunel-py-ex'},{'label':'brunel-py-in'}])
spikes_E = spikes[:1] # GID 1st spike detector
spikes_I = spikes[1:]

# connect network
nest.CopyModel('static_synapse_hom_w','excitatory',{'weight':J_E,'delay':delay}) # same weights, delays for all
nest.Connect(nodes_E,nodes,{'rule':'fixed_indegree','indegree':CE},'excitatory') # nest.ConnectionRules()
nest.CopyModel('static_synapse_hom_w','inhibitory',{'weight':J_I,'delay':delay})
nest.Connect(nodes_I,nodes,{'rule':'fixed_indegree','indegree':C_I},'inhibitory') # source, targ, rule, synapse model
nest.Connect(noise,nodes,syn_spec='excitatory')
nest.Connect(nodes_E[:N_rec],spikes_E) # connect to spike recorders; default all-to-all
nest.Connect(nodes_I[:N_rec],spikes_I) # could select the N_rec at random

# simulate the network
nest.Simulate(simtime)
#import pdb; pdb.set_trace()

events = nest.GetStatus(spikes,'n_events')
rate_ex = events[0] / simtime*1000.0/N_rec # external rate /s/neuron
print('Excitatory rate : %.2f 1/s' % rate_ex)
rate_in = events[1]/simtime*1000.0/N_rec
print('Inhibitory rate : %.2f 1/s' % rate_in)
nest.raster_plot.from_device(spikes_E, hist=True)
plt.show()

What is the expected output? What do you see instead?
I expect a raster plot.
Spyder crashes.
Please provide any additional information below
Versions and main components

Spyder Version: 2.3.8
Python Version: 3.4.3
Operating system: Ubuntu 14.04

Dependencies
NEST spiking simulator
Please go to the menu entry Help > Optional Dependencies (or
Help > Dependencies), press the button Copy to clipboard
and paste the contents below:
IPython >=1.0      :  None (NOK)
jedi >=0.8.1;<0.9.0:  None (NOK)
matplotlib >=1.0   :  1.5.1 (OK)
pandas >=0.13.1    :  0.16.0 (OK)
pep8 >=0.6         :  None (NOK)
psutil >=0.3       :  None (NOK)
pyflakes >=0.6.0   :  None (NOK)
pygments >=1.6     :  None (NOK)
pylint >=0.25      :  1.4.4 (OK)
rope >=0.9.2       :  None (NOK)
sphinx >=0.6.6     :  None (NOK)
zmq >=2.1.11       :  None (NOK)

Sorry, we don't have the resources to debug this.


Verify ssh access to CAPV nodes

Towards https://github.com/giantswarm/roadmap/issues/319
User Story

As a GS on call person, I would like CAPV workload cluster nodes to be accessible via ssh so that I can have access in case of problems with a node.

Acceptance Criteria

[x] for alpha: Cluster creator has ssh access to nodes in the cluster
[x] for beta: All GS on call staff has access to the nodes in the cluster

Dependencies

[x] https://github.com/giantswarm/roadmap/issues/457
[x] https://github.com/giantswarm/roadmap/issues/456

Tasks

Should be compatible with https://github.com/giantswarm/opsctl/pull/1241

done in https://github.com/giantswarm/cluster-vsphere/pull/23/files#diff-d1a933b82280a2653a1968219355c6edc14be0a2b4f5210f0939a96aa98c04f8R11
ssh to nodes work. One has to use opsctl ssh to some known machine first so that the signed ssh key is added to user's ssh-agent


check for non-canonical field element representations

Considering the conversation here https://github.com/ethereum/consensus-specs/issues/3057 and ongoing discussion, just want to record that the C library may need to detect and fail on non-canonical inputs (i.e., greater than the modulus).

Key question - is there a valid case that MODULUS <= value <= MAX_DATA_TYPE_VALUE at the application level. Seems not. So the crypto library should just throw an informative error that it got a value that doesn't fit into MODULUS. This would also help to debug the application.

I would vote for adding an informative error at the crypto library just because at the application level most of the devs are not that familiar with cryptography. By application level, I mean client level.

Does this need to happen for the arguments of any other API functions than verify_kzg_proof?
Or is it all the functions that take a blob or blobs too?

Following the latest specs (after https://github.com/ethereum/consensus-specs/commit/23d3aeebba3b5da0df4bd25108461b442199f406) I think the way to do it is put the check in bytes_to_bls_field (and have an unchecked version hash_to_bls_field for compute_challenges)

Closed by #20


Typescript support required !

@SurajMazar, what exactly does the error say?

@Jacobs63, I'm not sure if it is related to SurajMazar's problem, but it seems that in 1.1.3 the dist folder disappears from node_modules. I don't have this problem with 1.1.0 and 1.1.2.
Node: v16.19.0
NPM: 8.19.3

@Jacobs63, I'm not sure if it is related to SurajMazar's problem, but it seems that in 1.1.3 the dist folder disappears from node_modules. I don't have this problem with 1.1.0 and 1.1.2. Node: v16.19.0 NPM: 8.19.3

My bad - forgot to publish the compiled files 🤦

@Jacobs63, solved with 1.1.4, thank you 👍

@Jacobs63  well i m using vue with typescript , and when i import the components from library it cannot find the type definitions .
ps i also did look in the src code there was no type definitions (.d.ts) files
hence

@Jacobs63 when i use the library with plain js or ignore the warning (while working with ts) it works fine . but it think its nice to have a type definition for typescript support.

Hello,
version 1.3.0 now includes the package fully rewritten in TypeScript.

Hi @Jacobs63 , I'm using Nuxt 3 & "vue3-tabs-component": "^1.3.7",
But I'm still got this error when importing the component


Reporter image is blurry in issue preview

Summary
The Jira plugin displays the reporter's Jira image in a post after creating an issue. The reporter's image is pixelated, maybe we can an avatar link that has higher resolution. Jira gives us a few different options to choose from when we fetch the profile picture.
Screenshots

Closing issues due to inactivity. This issue can be re-opened with more interest from our community.


make list of formatters polyglot

Fixes #585.
Tasks:

[x] Check if the lists for jvm, ruby and specflow are correct
[x] Agree what to do about the "Formatters API" section - the examples are ruby only and the event details are I think based on the outdated protocol and should perhaps be replaced by an overview of messages?

Per https://docs.specflow.org/projects/specflow/en/latest/Tools/Reporting.html it seems like SpecFlow has its own reporting model. Should we remove specflow from the language list for this page?

Excellent!

Should we remove specflow from the language list for this page?

Yes I think so.


schema not allowing empty string through

Describe the bug and the expected behavior
https://stackblitz.com/edit/remix-run-remix-fd6e6f?file=app%2Froutes%2F_index.tsx,app%2Fentry.client.tsx
I'd expect being able to press "Submit" to work because the default value of inputs is ""
Conform version
v.1.1.4
Steps to Reproduce the Bug or Issue

Goto the stackblitz page
press enter
see validation error instead of submission

What browsers are you seeing the problem on?
No response
Screenshots or Videos
No response
Additional context
No response

This is working by design. You can find an explanation here.

@edmundhung in order to support empty strings I've had to use z.string().optional().default("__EMPTY_STRING__").transform(value => typeof value === undefined || value === "__EMPTY_STRING__" ? "" : value);
this seems like a bit of a footgun, any ideas on how to make this a bit easier to handle?

@edmundhung in order to support empty strings I've had to use z.string().optional().default("__EMPTY_STRING__").transform(value => typeof value === undefined || value === "__EMPTY_STRING__" ? "" : value);

Is the .default() necessary? I believe .transform(value => value ?? '') would be enough

@edmundhung you're right, is there a reason why z.string() works differently than other types?
I'd expect z.string().optional().default('') to work as well, since it works with all other types too such as z.number, z.boolean, etc

It is because .default() runs before the coercion and so defaulting to empty string will still result in undefined here. But I can see how the inconsistency here will trap many people.
I can add additional logic to handle this case. But I wonder if .default('') is really what we want here. As the default value will still be validated. If you have a email schema like z.string().email().default(''), you will end up with a invalid email error. While z.string().email().optional().transform(value => value ?? '') would not have such issue.

@edmundhung I believe in the case where you have a larger schema that has a union the default will still pass the object validation and then the individual email check will happen, you can see an example of this in the schema I sent you on discord.


Display bug server role permission and channel permission

Describe the bug
All in title
To Reproduce
Go to a channel settings -> permission
Or go to server settings -> role -> permission
Screenshots

Infomation (please complete the following information)
Discord channel: Canary
OS: Windows
Mod: BetterDiscord
Discord language: EN
Code :
/**

@name !JustTransparent
@author Soulivan71#0001
@version 2.0.0
@description Display your picture of choice with adjustable blur and brightness.
@source https://github.com/DiscordStyles/FrostedGlass
@authorId<PHONE_NUMBER>41659403
*/

@import url("https://dav1312.github.io/BD/SimpleBackground/main.css");
:root {
--background: none;
--chat-transparency: 0.4;
--sides-transparency: 0.1;
--sides-blur: 0;
}

Its fix for channel permission but on server roles Im having this :


netbeans: update homepage

Update homepage so that checkver is working again

Closes #10613

[x] I have read the Contributing Guide.

/verify

Use this checkver instead:
    "checkver": "Apache\\sNetBeans\\s([\\d]+)"

/verify

I forgot the comma... Sorry

/verify

/verify

/verify

I resolved the conflict added because of the autoupdate of the manifest that happened in the official repo, and updated my branch, so it should be good to go (should be why a merge didn't happen).


conversation starter for introductory docs

This is an attempt at streamlining the README to be more salesy and get people who land here the info that they need more quickly.  The exact wording and terms isn't the point and obviously needs refinement.

@paddymul thank you. overall, I like your ideas on improving this documentation. but it feels like considerable effort needs to be put from our end on this enhancement.

@paddymul thank you. overall, I like your ideas on improving this documentation. but it feels like considerable effort needs to be put from our end on this enhancement.

How can I break this down into smaller chunks that we can release?
How about this:

Auto-selecting landing page as a PR.
a. make the auto-select landing page
b. change README and docs intro page to link to the autoselect landing page, with backup small icons for different OSes
Persona specific doc pages as a PR
a. I will write the first version, I will need some collaboration for refinement
Rewrite the README/DOCS intro to lean on the persona specific docs pages as a PR
a. Splitting this up into two stages should make it easier to get across the line.

I am eager to do the bulk of the work... But I will need collaboration sessions (maybe 2 30 minute sessions) to get the wording tight.

@JasonWeill do you have any bandwidth to work with Paddy on these efforts to improve documentation?

I am still willing and eager to work on this if the interest from Jupyterlab desktop is there.
What is the interest level in

Auto configuring download page?
first defining the relevant personas?  I think they are
a. inexperienced data scientist looking for the quickest way to start running jupyter
b. experienced data scientist looking to use jupyterlab with custom environments
c. sysadmin/IT who is less interested in data science but does need to know how to support a userbase who is requesting jupyterlab
Are there other personas that I am missing?
Given agreement on 2 and willingness to add them to docs, I will write separate docs/readme sections for each persona (mostly pulling from existing)
Finally given the above rewrite README/docs with more streamlined flow that doesn't get lost in the weeds.

@paddymul Thanks for the follow up! I can take a look at your README as soon as I can. Sorry for not getting back to you sooner.
It might be good to open additional issues for, for example, revising the download page and making additional changes to the docs, so that we can deliver changes incrementally over time, with smaller pull requests. Thanks again for your interest in improving JupyterLab Desktop.

@paddymul The Jupyter web site (GitHub repo) might be a better place for product recommendations based on personas. Today, when you go to jupyter.org, you see a few products listed (Lab, Notebook, Hub, and Voilà) and links to either download them or learn more about them. JupyterLab Desktop isn't mentioned at all on jupyter.org, so users are less likely to discover it.
Open source projects like ours often avoid the "Who is it for?" question in favor of saying that we're for everyone. That said, I like the idea of differentiating between our products to help new users make a decision: do they want Jupyter Notebook, JupyterLab, JupyterLab Desktop, or something else?
If you look at corporate web sites, like AWS's (disclosure: my employer), they include case studies based on real-world customer deployments. It might be better to add some real-world cases of people using Jupyter to jupyter.org. To me, a project README should be primarily about answering the questions, "What is this?" and "How do I get started using this?"


identify not exported from libp2p

I am getting an error saying that identify is not exported from libp2p.
When I install peerbit with pnpm I get the following versions:
peerbit 2.0.15
libp2p 0.42.2
I think that peerbit might be relying on an old libp2p version, which does indeed not export ./identify:
https://github.com/dao-xyz/peerbit/blob/e811dd871b7c71269bc2f15c11fbf0c1e9e3b352/packages/clients/peerbit/src/libp2p.ts#L7
I couldn't find libp2p in the dependencies as well, so I wonder where the libp2p version comes from:
https://github.com/dao-xyz/peerbit/blob/e811dd871b7c71269bc2f15c11fbf0c1e9e3b352/packages/clients/peerbit/package.json#L36

This is not an issue within peerbit but seems to be a dependency conflict with ipfs-core


[re]evaluate consul and etcd

Re-evaluate Consul or etcd as a possible replacement for our redis config backend.  Our trees of versioned maps may not be easy to scale, and we haven't yet added multiple redis servers for availability.
With consul we would get a nameserver for free, and may be able to get rid of the dnsmasq galaxy domain hack.

For Consul we'd might still need to run a nameserver to forward requests: https://www.consul.io/docs/guides/forwarding.html

yeah, unless the apps so lookups directly against the consul. Docker can also inject hosts file entries at runtime

thinking about this a little more... we could use setcap to give consul the ability to bind to port 53, and have it forward additional DNS requests to the real resolver. that way we wouldn't need either bind or dnsmasq

I'd rather dodge the whole DNS issue entirely for now. Nothing currently really cares what the ip address of a service is, except for commander. All app access happens through shuttle.
I think having a "hosts" section in the app's config would be all we need; e.g.
{
  "hosts": [
    {
      "<IP_ADDRESS>": "apiary.galaxy"
    },
    {
      "<IP_ADDRESS>": "honeycomb.galaxy"
    }
  ]
}

Those entries could then be injected into the container by commander when it starts, and give us the same effect we have already.
I'd actually try to put this in now, except I don't see a nice way to do it without enumerating the environment variables and every VIRTUAL_HOST entry to guess at what an app needs.

Looks like Consul is a good fit for what we want. If there's no objections, I'll close this and make a rough proposal with the other changes that go in tandem with replacing redis.

:+1:


Named port connection 'taps' does not exist for instance 'pipeline' of module 'harnessaxi'

An attempt to run the example
make out/conv_wide_handshake_taps.zynq10vivado.bit

produces the following error:
[Synth 8-448] named port connection 'taps' does not exist for instance 'pipeline' of module 'harnessaxi'

because the module harnessaxi is generated without the parameter taps. (The same is true of a number of other examples)
module harnessaxi(input wire CLK, input wire ready_downstream, output wire ready, input wire reset, input wire [64:0] process_input, output wire [64:0] process_output);

I think this is just a regression b/c I don't test things on FPGA automatically (unfortunately), so the FPGA harness has gotten out of date. I will do that soon and fix this issue. Thanks!

Let me know if this is blocking you in the short term.

No problem (for me). I've just made you aware about this issue.