Lab 7 Level 4 UnaryOperator

Summary
Unsure of how to apply map function to a stream of a list following the rules in the question
Description:
For level 4, my approach is to convert the list to a stream by using .stream() , before using .map() and collecting it at the end. However, I am not sure about the syntax of mapping selected elements to follow the
game of life rules. Should I define another function that checks if the cell will die next round? Or is it possible to put my conditions in the map function itself, because i have to check the numbers adjacent to the list?  Or should I approach the level differently (im not sure if we can map selectively with the map function...)?
For example, the code ive attached maps all the elements in the list to 1.

Thank you!

Hi! Personally I think it is easier to make use of List indexing to check whether the cells will be alive, because we need to consider the adjacent cells. But I think there might be alternatives with Streams too.
As for mapping selectively, I'm not sure if this works but maybe something like
.map(x -> somePredicate(x) ? someMethod(x) : x)

might do the trick?
Hope this helps!

You can try creating helper classes/methods to help consolidate the checking logic and then call it within the stream pipeline

maybe try to construct an IntStream containing the previous round indices and use a local IntUnaryOperator as a mapper?

Hey there guys, could someone explain what's the idea behind level 4? I don't really know how to start

Hello! The UnaryOperator in this qn essentially takes in a List of Integers with 0 and 1 inside, and should return an updated result for the next stage for the game of life. For example,
UnaryOperator a = x -> x + 1
When we put a.apply(1) in jshell, it gives a result 2.
For this question, perhaps you could consider using some helper functions to manipulate the list first.
So instead of manipulating an integer we are dealing with a list of integers this time. Hope this helps!


Ignore repeated prompt

Same with https://github.com/openai/whisper/pull/1253

In my case, there was a lot of improvement.

Hi, your commit brings a lot of improvements, but still sometimes the model gets stuck in an iterative loop.
As a more aggressive alternative, what do you think about adjusting prompt_reset_since when duplicate text is detected, as shown below?
            duplicate_prompt = False

            for segment in current_segments:
                tokens = segment["tokens"]
                text = tokenizer.decode(tokens)

                if segment["start"] == segment["end"] or not text.strip():
                    continue

                check_prompt_num = 1
                if all(
                    [
                        text.strip() != i.strip()
                        for i in all_prompt_text[-check_prompt_num:]
                    ]
                ):
                    all_tokens.extend(tokens)
                    all_prompt_text.append(text)
                else:
                    duplicate_prompt = True

                idx += 1

                yield Segment(
                    id=idx,
                    seek=seek,
                    start=segment["start"],
                    end=segment["end"],
                    text=text,
                    tokens=tokens,
                    temperature=temperature,
                    avg_logprob=avg_logprob,
                    compression_ratio=compression_ratio,
                    no_speech_prob=result.no_speech_prob,
                    words=(
                        [Word(**word) for word in segment["words"]]
                        if options.word_timestamps
                        else None
                    ),
                )

            if (
                not options.condition_on_previous_text
                or temperature > 0.5
                or duplicate_prompt
            ):
                prompt_reset_since = len(all_tokens)

Works well, and the users reported positive experience with this PR.


How send a local variable into form

Dear greyli,
Thanks for your previous help in the previous issue https://github.com/greyli/flask-dropzone/issues/43
I meet another difficult problem, I found if I want to get the input "title" and "description" from html, I must set the "<form> </form>". And Your tutorial supplies a good way: https://github.com/greyli/flask-dropzone/blob/master/examples/in-form/app.py
I have a similar problem like the previous issue I asked. How do I send local variable "r" into the route "./form"? If the local variable "r" can be sent to "hand_form", I can get "title", "description" and return a new page. Please see the below code:
@app.route('/upload', methods=['POST'])
def handle_upload():
for key, f in request.files.items():
if key.startswith('file'):
f.save(os.path.join(app.config['UPLOADED_PATH'], f.filename))
r = dealFileFunction()
return '', 204
@app.route('/form/<r>', methods=['POST'])
def handle_form(r):
title = request.form.get('title')
description = request.form.get('description')
t = database().extract("r")
return render_template('another.html', title=title, description=description, r=r, t=t)
I have checked the HTML in https://github.com/greyli/flask-dropzone/blob/master/examples/in-form/templates/index.html
See below code:
<form action="{{ url_for('handle_form') }}" enctype="multipart/form-data" method="post">
Title
<input type="text" id="title" name="title"/>

Description
<input type="text" id="description" name="description"/>

{{ dropzone.create() }}
<input type="submit" id="submit" value="Submit and Upload">
</form>
{{ dropzone.load_js() }}
{{ dropzone.config() }}
It seems the action will return the "handle_form" directly when the uploaded job is complete. I also try the previous method:
{{ dropzone.config(custom_options="success: function(file, response){ window.location.href = '/handle_form/' + response.message; }") }}
And I also found "document.form.action=" can modify form action property. But both of two methods are failed. If it can be done like the previous way, the webserver can not only sends a local variable to return a new page, but also get "title" and "description" at same time.
Do you have a good idea to solve it?
Thanks for your warming answer.
@greyli

I would recommend adding a hidden field in the form, then in the success callback function, fill the random value into the hidden field.
BTW, for questions related to your own code, please use Stack Overflow or HelloFlask Forum, this issue tracker is used to report bugs and features about this project itself.


DOC: Link to recipe for SafeHDF5Store

Just a link in the cookbook, as suggested by https://github.com/pydata/pandas/issues/9641

thanks!


Remove unnecessary checks

Graceful shutdown and kill with SIGRTMIN..SIGRTMAX don't work.
https://github.com/moby/moby/issues/36219
https://github.com/opencontainers/runc/pull/1706
I found this problem in the actual scene, I hope to fix this bug.

Clean cherry-pick is possible.
@free2k: Have you reported it in RHBZ? If you have a RHEL subscription, it'll be even more great.

@unshare  I have already submitted this question to RHBZ


Save Proxy Credentials

VSCode Version: 1.15
OS Version: MacOS Sierra 10.12.6

It would be nice if Code could save my proxy credentials for a certain proxy address. It is a bit intrusive having to enter my credentials every time I hop onto my corporate proxy.

How about this issue? I was tired of proxy authentication popup after every restart. Perhaps there is a solution?

They are going after our storage pull the keys
On Nov 9, 2017 11:12 PM, "Nikita Aprelskiy"<EMAIL_ADDRESS>wrote:

How about this issue? I was tired of proxy authentication popup after
every restart. Perhaps there is a solution?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/32566#issuecomment-343392450,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZPuW5hUV7-CjuU55zJkZukdHy9okgbCks5s0_dFgaJpZM4O3tgP
.

I concur with the previous comments, it's quite bothersome to reenter the credentials everytime I'm launching my IDE.

Is there anything new about this topic? I love vscode, but this popup hurts every morning :(

Same here! I would love not having to do a manual login every time vscode starts up.

Same for me, please add save crendials ! I've found there are other issues, like #44041

+1

same problem for me !

Any updates on this?

It's shocking to see, this issue was opened nearly one and half an year ago, and still no fix, while vs code is launching new and complicated feature every month.
Its really annoying to put the credential several times, every day and sometimes extensions (like wakatime) doesn't work properly for this.

Just started using VSCode at work and it's really annoying having to type creds in each time. Even a "save credentials" tickbox would reduce some of the annoyance.

This is the largest UX pain point for me in a nearly perfect and constantly improving tool.

This is very annoying.
Additional info:
In my case the window shows up twice. Any idea why this happens?
I am pretty sure that I enter the credentials correctly both times.

@FerhatAkgun this is because of the extensions.

Nearly 2 years ago for a (simple?) useful feature. dying

Hi,
i got the same problem. I disabled all extensions: same problem.
In my case, it was due to the fact that their is 2 proxy settings: 1st is user specific, the other one is workspace specific. And i haven't fill the second one.
In my case, this solved the problem when i filled up both proxy settings with the user/password syntax: http://user:password@proxy:proxy_port

I tried that but the proxy box is still popping up

+1

I do not need this change any more because I've changed my employer and they use a transparent proxy ... lol
I have been following this ticket for a year now...

Same issue for me, the pop-up appers twice (once for the Extensions I guess).
Windows 10, 64-bit
VS Code 1.33.1 (user setup)
I tried lots of things in the GUI settings and settings.json for User Settings and Workspace Settings, also both as mentioned in https://github.com/microsoft/vscode/issues/32566#issuecomment-480692463
    "http.proxy": "http://user:password@proxy-ip:port" (with password, without, username only, ...)
    "http.proxyStrictSSL": false or true
    "http.proxySupport": "on (override, off, ...)

The environment variables are set (lowercase) and work fine for other programs
https_proxy=http://user:password@proxy-ip:port
http_proxy=http://user:password@proxy-ip:port

What is the expected behaviour? Is VS Code always supposed to ask for the password even if it is stored in the URL in the settings or the environment variables?
Could there be a "store password" in this pop-up which puts it to the settings.json if authentication works?

I have a different issue that my popup never show up even I'm behind a proxy which need authentication.  This makes my VSCode not connected to network and I don't know how to fix this :/

I have this issue too. It's really annoying to type in my proxy credentials every time I open VSCode.

I am living the pain also.....starting to think about switching back to Atom.

I found this issue https://github.com/Microsoft/vscode/issues/38888
They mention that supplying the proxy parameters on the command line works, even if setting it in VS Code doesn't. And this works for me. Still not beautiful, as the password is clear text, but for the other options (environment variables, settings.json) this would also be the case.
So I added this to my desktop shortcut and the two popups are gone:
"C:\Path\To\Code.exe" --proxy-server=http://user:password@<IP_ADDRESS>:8080

Supplying --proxy-server= gives the following errors:

Menu Help/Check for Updates...: net::ERR_NO_SUPPORTED_PROXIES.
Check for extension updates: An unknown error occurred. Please consult the log for more details..
So, the pop up window is no more there, but the setting just doesn't work.

Specifying --proxy-server= makes the pop up disappear, but the IDE cannot actually connect to the Internet. Trying to check for updates for the IDE or the extensions fails either with time out, or with net::ERR_NO_SUPPORTED_PROXIES.

Yes, that's correct. Argh, it can't be that difficult.
Is there a way to see which proxy settings are being used when VCS is connecting somewhere? I checked the developer tools but they only state the errors.

@zicklag, I tried your Gist and it works like charm! Thanks!

I tried the Gist (on Windows 10, starting manually "node index.js") and unfortunately does not work for me => still getting the annoying VSCode Proxy dialog.

@amir-alic Did you set your proxy settings in VSCode to http://localhost:3128. That will make VSCode use the local proxy that you started when you ran node index.js, which won't ask for authentication.

You can enter the settings in VSCode, or if you have problems with other software you can also set the user environment variables http_proxy and https_proxy both to http://localhost:3128 or https://localhost:3128 which VSCode will find and use.

I just found a much easier "proxy proxy" to use instead of the NodeJS one from my Gist above. You can use glider. Just run it like this:
glider -listen http://localhost:3128 -forward http://user:pass@123.456.789.1:1234

That is way nicer than using Node and writing a script and it also fixes a problem with my previous suggestion that I noticed recently: the NodeJS proxy will listen on all IP addresses which means that anybody on your local network that knows the port you are hosting the server on will be able to connect to your computer on that port to make proxied requests with your credentials. Probably not good.
Glider also doesn't require installing NodeJS or using npm to install dependencies. It is just a single downloadable binary.

Actually, you could probably easily make a VSCode plugin that implements that workaround without having to modify VSCode core.

Brother, write this extension yourself.
I think you can handle it.

If we cannot save proxy credential, could we have a better UI for the proxy dialog?
A better UI likes something has unify/sync theme/style with the rest UI.
If we have this, the pain of typing credential every morning will much reduce.

With https://github.com/microsoft/vscode/issues/106489 landing in October there is a new setting "window.enableExperimentalProxyLoginDialog": true to enable a new login experience that will show a dialog in the active window:

This experience allows to remember the credentials and thus not ask again.
I would appreciate if people could try this from our insider build today and give some feedback how it goes. We would like to make this experience the new default beginning with our release end of the year if it works fine.
You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Just tested it and it works as advertised!
Thank you for putting effort into this. As an issue with 51 :+1:  and tons of other users who probably never bothered to jump on GitHub and search for an issue, I think this will really help our a bunch of people!

Closing, as this shipped and is being tested during the week via https://github.com/microsoft/vscode/issues/109377. Will address issues as we see them.

Just as a feedback, I just testes the released version and everything seems to be working pretty fine. Thanks to everyone involved in this!


Expose 'links' from catalog assets

Reviewing asciidoctor docs I see we are missing links. Adding this property, we'll offer users all the properties of the catalog assets.

I'll start working on it based on previous images work https://github.com/asciidoctor/asciidoctorj/pull/1171.

Internally there are more properties in the catalog, but I'd rather stay on what's being publicly documented.


Update winrm.py

Closes https://github.com/byt3bl33d3r/CrackMapExec/issues/310

Just for anybody referencing this, the WINRM module does not allow you to pass-the-hash (yet) so this is just a temporary fix in order to get rid of en error


versions:2.17.0:set updates grandchilds with wrong version

Hi,
I think there is a bug in versions:2.17.0:set when used in a maven reactor with different versions. We have

Grandparent:
  <artifactId>Grandparent</artifactId>
  <version>1</version>

Parent:
   <parent>
     <artifactId>Grandparent</artifactId>
     <version>1</version>
  </parent>
  <artifactId>Parent</artifactId>
  <version>100-SNAPSHOT</version>

Child:
   <parent>
     <artifactId>Parent</artifactId>
     <version>100-SNAPSHOT</version>
  </parent>
  <artifactId>Child</artifactId>

Grandchild:
   <parent>
     <artifactId>Child</artifactId>
     <version>100-SNAPSHOT</version>
  </parent>
  <artifactId>Grandchild</artifactId>

If one calls
mvn versions:2.17.0:set -DnewVersion=2
Not only the version in grandparent and parent gets updated from 1 to 2 but also the version in Grandchild gets updated from 100-SNAPSHOT to 2. Also the log messages contains
[INFO] Processing change of com.company.test:grandparent:1 -> 2
[INFO] Processing com.company.test:grandparent
[INFO]     Updating project com.company.test:grandparent
[INFO]         from version 1 to 2
[INFO]
[INFO] Processing com.company.test:parent
[INFO]     Updating parent com.company.test:grandparent
[INFO]         from version 1 to 2
[INFO]
[INFO] Processing com.company.test:grandchild
[INFO]     Updating parent com.company.test:child
[INFO]         from version 100-SNAPSHOT to 2
If one calls
mvn versions:2.16.2:set -DnewVersion=2
instead, only grandparent and parent gets updated from 1 to 2.
Attached you find a minimal set to reproduce the error
testVersionsSet.zip

we experience a similar issue with -pl flag:
 mvn versions:set -DnewVersion=1.10.0 -pl module-name

updates versions across the whole project and not only one single module

We also noticed the behavior that @svetlana-nikitina mentioned. Updating in a single module updates across the entire project. Version 2.16.2 didn't do that.

Thanks for reporting .... I would like to start to check again change: #1051
We can start by add attached example as IT
I can try to work on it but in next week ... and end of July I will have 🌴
So any help can be valuable

we experience a similar issue with -pl flag after the new release:
 mvn versions:set -DnewVersion=1.0.0 -pl module-name

updates versions across the whole project and not only one single module

next example which can be ease added as IT.

Does any one want to help .... I will create an issue #1106 and first part of fix in #1107
There is many other ITs for cleanups.
It will be easier to understand where is a bug.


NTR Helper in Japanese Language

When we automate the ID Bot, it does not work for Japanese language due to the difference in location of "Enter" button.
Is it possible to use "Start" Button on 3ds followed by A button instead so that it works for all languages?

https://github.com/wwwwwwzx/3DSRNGTool/commit/63991b429f9d66385e04ee52c1b10a6bddcfbad0


Add first-class 'time' scan

Equivalent to
def tscan(steps, delay):
    for s in range(steps):
        ct()
        time.sleep(delay)

What about just having a dummy positioner that counts? That would be much more within our eco-system.
S
From: Thomas A Caswell <notifications<EMAIL_ADDRESS>Reply-To: NSLS-II/ophyd <reply<EMAIL_ADDRESS>Date: Tuesday, April 14, 2015 at 3:03 PM
To: NSLS-II/ophyd <ophyd<EMAIL_ADDRESS>Subject: [ophyd] Add first-class 'time' scan (#115)
Equivalent to
def tscan(steps, delay):
for s in range(steps):
ct()
time.sleep(delay)
—
Reply to this email directly or view it on GitHubhttps://github.com/NSLS-II/ophyd/issues/115.

Why is adding a dummy positioner more natural? And that does not deal with
the delay time nicely with out abusing settle time.
On Tue, Apr 14, 2015, 16:29 Stuart Wilkins<EMAIL_ADDRESS>wrote:

What about just having a dummy positioner that counts? That would be much
more within our eco-system.
S
From: Thomas A Caswell<EMAIL_ADDRESS><EMAIL_ADDRESS>Reply-To: NSLS-II/ophyd<EMAIL_ADDRESS><EMAIL_ADDRESS>Date: Tuesday, April 14, 2015 at 3:03 PM
To: NSLS-II/ophyd<EMAIL_ADDRESS><EMAIL_ADDRESS>Subject: [ophyd] Add first-class 'time' scan (#115)
Equivalent to
def tscan(steps, delay):
for s in range(steps):
ct()
time.sleep(delay)
—
Reply to this email directly or view it on GitHub<
https://github.com/NSLS-II/ophyd/issues/115>.
—
Reply to this email directly or view it on GitHub
https://github.com/NSLS-II/ophyd/issues/115#issuecomment-93050390.

Taken care of by bluesky in Count


Get rid of all unsafety, add deny(unsafe)

I think all the use of unsafe in this library is pre-1.0 stuff that can be made safe now. We should do that.

Two comments

On #rust people pointed out that you can override deny(unsafe_code) by putting allow(unsafe_code) on individual blocks. I'd probably ban anyone from the repo if they tried this ;) but better safe than sorry. We should use #[forbid(unsafe_code)] instead, that can't be overridden.
Unfortunately this transmute appears to have no safe equivalent. We have a #[repr(u8)] enum with 256 variants and need a way to convert a u8 to the enum. Does anyone know another way?

Googleing around a bit there seems to be no satisfying standard way to convert integers to enums in rust. https://internals.rust-lang.org/t/pre-rfc-enum-from-integer/6348. There is https://crates.io/crates/enum-primitive-derive but reading the release notes keeping the number of dependencies small seems to be a goal of the project. In https://github.com/nikomatsakis/rust-memory-model/issues/41 the idea to use newtype + constants for all the values instead of enums was discussed.

Yeah, I really don't want to add dependencies for the sake of "hiding" unsafety. The one exception I make in many of my projects (though not rust-bitcoin) is to use lazy_static for things like log mutexes...and if lazy_static weren't in the rust nursery, I probably wouldn't even do that.
Unfortunately with regards to "are invalid enum values UB?" the answer is resoundly yes. The discussion you link seems to peter out in 2017 but more recently there is stuff like this discussion about uninhabited types where it's clear that rustc can get a lot of mileage out of assuming invalid enum values never exist, and the language is not going to change to allow this.
Unfortunately-er, this case where we have a #[repr(u8)] enum with 256 variants so that there really are no invalid values, is very niche. I don't expect any language-level support for that case. The best we can hope for is a TryFrom impl, but TryFrom is blocked on the never type, which is blocked on very complicated-seeming design work.

Unfortunately this transmute appears to have no safe equivalent. We have a #[repr(u8)] enum with 256 variants and need a way to convert a u8 to the enum. Does anyone know another way?

I see you inlined the function, but how performance critical is it actually? If we can afford one additional pointer add, deref and copy we could just build a big lookup table. The code duplication doesn't seem too bad since no variants will be ever added or removed and if one forgets to rename an existing variant consistently the compiler will complain about it. If there are nonetheless worries about code duplication I could try to build a macro for that.


Link resources together

If I get me as an author of Zenodo and me from DBLP, it should be showed as one item.
Thus, link them by URL or ORCID. Same for papers

DBLP and OpenAlex duplicates have been merged. The hyperlink is assigned to the first result found. Zenodo is still shown as independent results, it should be merged and will handle duplicates then.
Screenshots to show how it behaves and will close the issue with positive feedback.


No such file or directory

Describe the bug
Write according to usage, console input error
To Reproduce

git clone https://github.com/spencer17x/vid-multi.git
cd  vid-multi
pnpm install
pnpm run dev

Expected behavior
The console has no error output, and the frame truncation is completed normally
Screenshots

Desktop (please complete the following information):

macOS Sonoma
chome 116.0.5845.179（正式版本） (arm64)

Problem recurrence： https://github.com/spencer17x/vid-multi/tree/ab50d5348f090dbda863849fa3d1a3ff84387238


How to put a mail address link in the comments?

Search terms

link,mail
Question
Want to add the mail address of the author in the comment, but typedoc complains. The file header comment is:
/**
 * Creating/closing windows and setup communications to them
 * @packageDocumentation
 * @author [John<EMAIL_ADDRESS> */

And the error is:
./src/electron/modules/WindowsUtilities.ts:6:25 - [warning] The relative path<EMAIL_ADDRESS>does not exist

Tried also with {@link <EMAIL_ADDRESS>with the same result. Seems the only solution is to put the mail address as a normal string:
 * @author John Doe<EMAIL_ADDRESS>
Any suggestion?
Thanks!
mario

That's a bug, TypeDoc shouldn't be recognizing that as a relative link


Remove Emacs-like shortcuts from TextArea::input

The problem
Currently TextArea::input supports Emacs-like keyboard shortcuts. This was a good idea when tui-textarea had less features. However, now tui-textarea supports more features and adds more default key shortcuts and running out key combinations. And now it causes some conflicts.

C-a is used for moving to head of line in Emacs, but usually it is used for selecting all text in normal textarea
C-v is used for moving to the next page in Emacs, but usually it is used for pasting yanked text

Current default key shortcuts can be found here: https://github.com/rhysd/tui-textarea#minimal-usage
Emacs solves the problem by key sequence (like C-x b) but tui-textarea doesn't have the functionality (and should not have for avoiding complexity).
tui-textarea aims to be something like <textarea> element in HTML as described in the first sentence of README.md. So the default shortcuts should be intuitive and kept simple.
The solution
Remove Emacs-like shortcuts from TextArea::input and add TextArea::input_with_emacs_shortcuts instead.
Supported key shortcuts are as follows.
TextArea::input

Mappings
Description

Ctrl+H, Backspace
Delete one character before cursor

Delete
Delete one character next to cursor

Enter
Insert newline

Alt+Backspace
Delete one word before cursor

Alt+Delete
Delete one word next to cursor

Ctrl+Z
Undo

Alt+Z
Redo

Ctrl+C
Copy selected text

Ctrl+X
Cut selected text

Ctrl+V
Paste yanked text

Ctrl+A
Select all text

Ctrl+F, →
Move cursor forward by one character

Ctrl+B, ←
Move cursor backward by one character

Ctrl+P, ↑
Move cursor up by one line

Ctrl+N, ↓
Move cursor down by one line

Ctrl+→
Move cursor forward by word

Ctrl+←
Move cursor backward by word

Ctrl+↑
Move cursor up by paragraph

Ctrl+↓
Move cursor down by paragraph

End, Ctrl+Alt+→
Move cursor to the end of line

Home, Ctrl+Alt+←
Move cursor to the head of line

Ctrl+Alt+↑
Move cursor to top of lines

Ctrl+Alt+↓
Move cursor to bottom of lines

PageDown
Scroll down by page

PageUp
Scroll up by page

Note: Alt+Z is unusual, but Ctrl+Shift+Z cannot be detected due to limitation of the terminal escape sequence.
Note: Ctrl+N, Ctrl+P, Ctrl+F, Ctrl+B, Ctrl+H remain because they are supported on macOS by default key shortcuts.
TextArea::input_with_emacs_shortcuts

Mappings
Description

Ctrl+H, Backspace
Delete one character before cursor

Ctrl+D, Delete
Delete one character next to cursor

Ctrl+M, Enter
Insert newline

Ctrl+K
Delete from cursor until the end of line

Ctrl+J
Delete from cursor until the head of line

Ctrl+W, Alt+H
Delete one word before cursor

Alt+D
Delete one word next to cursor

Ctrl+U
Undo

Ctrl+R
Redo

Ctrl+Y
Paste yanked text

Ctrl+Space
Start selection

Ctrl+W
Cut selected text

Alt+W
Copy selected text

Ctrl+G
Cancel selection

Ctrl+F, →
Move cursor forward by one character

Ctrl+B, ←
Move cursor backward by one character

Ctrl+P, ↑
Move cursor up by one line

Ctrl+N, ↓
Move cursor down by one line

Alt+F
Move cursor forward by word

Atl+B
Move cursor backward by word

Alt+], Alt+P
Move cursor up by paragraph

Alt+[, Alt+N
Move cursor down by paragraph

Ctrl+E, End, Ctrl+Alt+F
Move cursor to the end of line

Ctrl+A, Home, Ctrl+Alt+B
Move cursor to the head of line

Alt+<, Ctrl+Alt+P,
Move cursor to top of lines

Alt+>, Ctrl+Alt+N,
Move cursor to bottom of lines

Ctrl+V, PageDown
Scroll down by page

Alt+V, PageUp
Scroll up by page

I certainly think that ctrlz,ctrlx,ctrlc,ctrlv should be standard. And ctrla. I added ctrlc and ctrlx in the select PR
BTW - I am working on a table lookup key dispatch mechanism making it much easier for the caller to change the key mappings. At present I have basically had to copy and paste the entire input function into my gitui code just to tweak a few keys

I think most CLI users would expect Emacs key bindings to work as a default (I actually use Ctrl+A/E/U/etc. everywhere in macOS as there's an OS level switch for turning on the shortcuts), and Ctrl+C to always mean SIGINT rather than copy. Strong preference for keeping that the default so that apps built with tui-textarea generally "just work", and instead making the non-emacs mode the opt-in / configurable approach.

Ctrlc does not always equal sigint . Raw mode passes it through as a plain ol keystroke. Interestingly this is bound to the other new issue about keystrokes and their meaning

Sure - but IMO your app should probably do something reasonable with that rather than treating it as copy at least in the default situation.

It is up to the app author to decide what ctrlc should do. If they pass that keystroke to tta rather than acting on it themselves then doing a copy is reasonable. The app I am working on exits cleanly on ctrlc but if tta has focus then it will pass it to tta

I see your point that its the app creator that decides, but I'd caution that there's a problem with that approach. It leads to building apps that all act slightly inconsistently with respect to how they handle keystrokes. For the most part I find it jarring when an application changes widely held conventions. Ctrl+C is basically never copy on macOS (that's Cmd+C). So my point isn't that the shortcuts shouldn't be customizable - it should be. My point is that out of the box the defaults should respect and be consistent with the operating system defaults.
P.S. if you're interested, there's some discussion about how to design keybinding more generally at https://github.com/ratatui-org/ratatui/discussions/627. It would be worth feeding some ideas about how libs can take advantage of something like that.

Sorry for the delay in response. I was working on refactorying and bug fix.
@pm100

I am working on a table lookup key dispatch mechanism making it much easier for the caller to change the key mappings.

It would be useful as a separate crate. For me, match statement is powerful enough to define basic key bindings and don't want more flexibility. I saw some discussion about key bindings implementation in the forum of ratatui repository as @joshka pointed. You may be interested in it.
@joshka

everywhere in macOS as there's an OS level switch for turning on the shortcuts), and Ctrl+C to always mean SIGINT rather than copy. Strong preference for keeping that the default so that apps built with tui-textarea generally "just work", and instead making the non-emacs mode the opt-in / configurable approach.

Ah, nice point. I've not thought about C-c sends signal. Is it common sense for general ratatui applications? demo example in ratatui does not stop on C-c.

General TUI app users' expectations.

They would expect basic Emacs shortcuts like C-f, C-b, ... since many language REPLs provide them
They would not expect Emacs's copy/paste shortcuts (C-Space for starting selection, C-w for cut, and C-y for copy)

I'd like to enable both Emacs shortcuts and copy/paste/undo/redo shortcuts in general textarea in browser. The problem is C-a.

It might be a good idea to follow key bindings of micro text editor:
https://github.com/zyedidia/micro/blob/master/runtime/help/keybindings.md#default-keybinding-configuration

Ah, nice point. I've not thought about C-c sends signal. Is it common sense for general ratatui applications? demo example in ratatui does not stop on C-c. I would expect C-c to stop the process when the application is non-interactive. But I'm not sure the expectation can be applied to interactive applications.

I'm not 100% sure what the general rule for this should be, but probably a TUI that's just a display type UI should stop running when Ctrl+C is pressed, editor type TUIs are probably a bit different. Ctrl+Z should put the app into the background rather than being undo (try it in vim).

Using Alt for Emacs-like shortcuts may be another option:

This brings me back to the comment about respecting the conventions of the operating system / environment. For that reason, I'd suggest avoiding this option.

My 10cents
The key dispatch logic in input should not be in tta. tta should be an API driven component, Many real uses require a complete replacement of that input code, my use of it involved basically copying and pasting that huge chunk of logic and tweaking it.
I would

make it more table driven
have multiple starter tables (emacs like, ctrlzxcv, ....)

You need to make sure that if I have my own input interpreter it has the same features that the in box one has - ie no secret hooks into tta. You could argue that the input interpreter should be separate sample / crate.

probably a TUI that's just a display type UI should stop running when Ctrl+C is pressed, editor type TUIs are probably a bit different. Ctrl+Z should put the app into the background rather than being undo (try it in vim)

I tried tig and I confirmed both C-c and C-z are working as you said. I need more consideration. Thank you for the point.

Many real uses require a complete replacement of that input code

Yes, that's what I assume. Key shortcuts are very application specific. TextArea::input is just a convenient method for casual use. APIs are more fundamental.

You could argue that the input interpreter should be separate sample / crate.

I would suggest to create separate crate for this.
use your_crate::InputState;

// Input state such as current pending key sequence and table of key shortcuts
let mut input_state = InputState::default();

// event loop
loop {
    let input: Input = crossterm::event::read()?.into();

    // Receive new single input and modify textarea state if necessary
    input_state.apply(input, &mut textarea);

    // ...
}


Cannot sign in if local user already exists

I cannot sign into my account if a local account with that email already exists, as it will throw The following fields contain error: emails. Can this be fixed?

Should it sign in as the existing user?
Option 1: set the subField: { name: 'email' } to use email as unique user id.
Option 2: use the userinfo option to update the sub field of the matching user before returning the userinfo.

Should it sign in as the existing user?

For us, yes, as we do not allow local user registrations. For other applications out there, likely not without additional security checks.

Option 2: use the userinfo option to update the sub field of the matching user before returning the userinfo.

What do you mean in Option 2? We already return the sub field value.

Well, it's good to return it, but if there is no user with that sub, a user will be created. If this is not what you want, you should make sure there is a user with that sub.
userinfo() {
  const sub = ...
  const email = ...
  // pseudo code
  const exists = payload.find({ collection: "users", where: email equals email })
  if (exists.sub !== sub) payload.update(... exists.id ... { sub })
  return { sub, email }
}


unable to load a saved WeibullAFTFitter model

Hello, I have saved a WeibullAFTFitter model as a pkl file.
Versions being used:
Python: 3.9.16
lifelines: 0.27.7
Here is the entire stacktrace. I am able to load CoxPHFitter with a problem, the code only breaks with WeibullAFTFitter
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In[21], line 2
      1 for w in weibull_files:
----> 2   load_saved_model(w)

File ~/git/gqc/loe_coe_app_deven_fork/pipe_breaks/tl/loader.py:12, in load_saved_model(pkl_file)
      6 def load_saved_model(pkl_file: str | Path):
      7   """Load trained model
      8
      9   Args:
     10       pkl_file (str | Path): path to the saved model
     11   """
---> 12   model = pickle.load(open(pkl_file, 'rb'))
     13   return model

File ~/mambaforge/envs/lifelines/lib/python3.9/site-packages/formulaic/formula.py:277, in Formula.__getattr__(self, attr)
    275 def __getattr__(self, attr: str) -> Any:
    276     # Keep substructures wrapped to retain access to helper functions.
--> 277     subformula = super().__getattr__(attr)
    278     if attr != "root":
    279         return Formula.from_spec(subformula)

File ~/mambaforge/envs/lifelines/lib/python3.9/site-packages/formulaic/parser/types/structured.py:405, in Structured.__getattr__(self, attr)
    403 def __getattr__(self, attr: str) -> Any:
    404     if attr.startswith("_"):
--> 405         raise AttributeError(attr)
    406     if attr in self._structure:
    407         return self._structure[attr]

AttributeError: __dict__

I'm not able to repro this. Can you share you dump code, and what verion of formualic you are using?


ArtistsToFollow

From @briansw on March 29, 2016 19:54

see prototype for card transitions (click follow): http://files.artsy.net/other/follow-cards-v2.zip

Filter out existing artist follows
Original list is compiled via the following:
For You: based on user’s genome profile
Trending Artists: ARTIST_INQUIRY
Most Popular: ARTIST_SEARCH
Randomize the order within each bucket so the user gets different suggestions each visit
Subsequent follows injects 5 related artists to the one just followed and should be inserted into rail in the 5th spot so that it slides in as the artist you just clicked follow on, slides into view
clicking arrows should paginate to a new set of 4
if user isn't logged in, don't display "for you" tab

Copied from original issue: artsy/force-private#4712

From @broskoski on May 31, 2016 15:13
For You API: https://github.com/artsy/gravity/blob/master/app/api/v1/me_suggestions_endpoint.rb#L39


hujsonfmt: init at 0-unstable-2022-12-23

Description of changes

Package Tailscale's formatter for HuJSON / JSON With Comments and trailing Commas (JWCC). Tailscale uses this format for its ACL configurations. This formatter is useful if you are managing such configurations via GitOps (rather than the web interface). It also provides a transformation from JWCC to plain JSON, which may be more broadly useful.
JWCC is described at https://nigeltao.github.io/blog/2021/json-with-commas-comments.html
No releases of this utility have been cut, but it's been stable for over a year in its current form. Open to discussion as to whether this belongs in nixpkgs, but I have the package definition & am willing to maintain it. I am not aware of an alternative JWCC formatter.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/3743

Result of nixpkgs-review pr 301395 run on x86_64-linux 1

1 package built:

hujsonfmt


chore(release): fix uv_os_get_passwd in jenkins

Similar to https://github.com/microsoft/playwright/pull/22826.
Didn't fish out the exact line where SFDX goes haywire, but this is not the first time docker & this command clashes.
It's unlikely for the CLI to fix it, as this is working as intended probably (they can't assume basic system API won't work..)
So it's our job to make it work ™.
For that, we need the docker container to have /etc/passwd defined.
The easiest way is to map it to the host.
Another approach would be to investigate what's needed to spoof it enough in the Docker.

This should fix SFINT-5221 as well


Add link to group routes in TOC of README

Small thing, but I overlooked this myself. :smile:

Thanks.


fix: follow any redirects when downloading CSV file

Fixes #14

Closing as duplicate of https://github.com/brightnucleus/country-codes/pull/13


Add Edge Selenium Tools

Description
The Microsoft Edge DevTools Team added DevTools support to the EdgeDriver for Selenium 3 (and 4 of course). We should leverage this because it provides some really cool features like:

Test Microsoft Edge (chromium) and Legacy Microsoft Edge (EdgeHTML)
Accesses functionality and information not available to JavaScript running in browsers.
Simulates user events or OS-level events more accurately.

Here's the tweet:
https://twitter.com/EdgeDevTools/status/1263515642516262914
And here's the official docs:
https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium?tabs=python#using-selenium-3
Notes
This will require some changes to be made in the webdriver_factory.py module. Feel free to clean things up and optimize while you're in there 😄

This is handled by the EdgeChromiumDriverManager class from webdriver_manager


Update service.md

fix https://github.com/kubernetes/website/issues/6235

This change is

Travis appears to be failing for reasons unrelated to this PR. Docs LGTM 👍
@tengqm 👋 Are you available for a tech review?

@wackxu FYI, the Travis CI error has been fixed. Please rebase or update the branch. Thx!

@tengqm Done


Allow debuggers to contribute doc links to debug configs

This feature request comes from an idea raised here: https://github.com/microsoft/vscode-python/issues/18389#issuecomment-1029914639
It would be nice if there was a way for extensions to specify documentation links for debug arguments, so users can learn more about what the config does. A workaround right now would be to add links to descriptions but it's not very generalizable:

Sorry, I don't understand what you're asking for. If it works to put a link in a hover, that seems like a good solution. What are you looking for besides that?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Updated bit-set crate to version 0.4

Can you also release new version - 0.3.1 ?
Thanks! ;)

pr has failed on rust 1.3. Is there a reason to keep this crate backwards compatible with such old version of compiler?

Also old bit-set now breaks with recent Cargo versions... in the next update or the one after, libusb will stop working

It did finally break in preparation for 2024 edition (they deprecated very old packages). https://github.com/rust-lang/cargo/issues/13824
Now we need this PR to get merged.


[BUG] Low nutrients grant positive effects instead of negative ones

Versions:

NutritionZ: 1.0.11
Minecraft: 1.21.1
Fabric: 0.16.9
Cloth Config: 15.0.140
Fabric API: 0.108.0

Description:
Being low on carbs gives the player movement and attack speed bonus.
Being low on protein gives the knockback and attack damage bonus.
Being low on fat gives the player 2 armor points and knockback resistance.
Being low on vitamins gives the player extra heart. Weakness is applied correctly.
Being low on minerals gives the player 1 point of armor toughness. Mining fatigue is applied correctly.
Expected behavior:
Being low on nutrients should give players negative effects.
Screenshots:
(Hunger, regeneration and resistance were applied via commands, so I wouldn't die while testing.)

Here's the fixed default.json: default.json
The problem is that the negative sections still add positive values to attributes.

If anyone wants to have this fixed, here's the aforementioned file in a datapack: nutritionz_fix.zip
It can be wherever in the datapack load order.


Problem with parsing JSON file

I use a JSON tool (jq) for automatically modifying the configuration files of IPOP.
The tool, for some reason reorders the fields in the configuration JSON file, but the result is exactly same as modifying by hand.
I had been using the tool for some weeks now and suddenly today the controller ran into an error on one of the JSON files.
The error log reads:
`CFx initialized. Loading Controller Modules
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/grapleadmin/ipopbin/controller/Controller.py", line 13, in
main()
File "/home/grapleadmin/ipopbin/controller/Controller.py", line 8, in main
CFx.initialize()
File "controller/framework/CFx.py", line 138, in initialize
self.load_module(key)
File "controller/framework/CFx.py", line 195, in load_module
handle.initialize()
File "controller/framework/CFxHandle.py", line 45, in initialize
self.CMInstance.initialize()
File "controller/modules/StatReport.py", line 27, in initialize
self.CFxHandle.submitCBT(logCBT)
File "controller/framework/CFxHandle.py", line 28, in submitCBT
self.__CFxObject.submitCBT(cbt)
File "controller/framework/CFx.py", line 60, in submitCBT
self.CFxHandleDict[recipient].CMQueue.put(CBT)
KeyError: 'Logger'
`
EDIT: Also used an online comparison tool and it says the configurations are same. (http://tlrobinson.net/projects/javascript-fun/jsondiff)
Attached JSON files for reference. Appended to .txt for Github support.
notworking-gvpn-config.json.txt
working-gvpn-config.json.txt

Looks like it was solved by #68


chore: minor typos and variable assignment

This commit is to help with debug branch.
It basically assigns the result to a variable and then returns it.

That will be part of the first cherry-pick into debug branch later.

yup, not big deal, that change is just to print out the object


Why not update uglify-js in devDependencies from "1.3.5" to "2.x.x"?

https://github.com/mishoo/UglifyJS
https://github.com/mishoo/UglifyJS2
browser-pack/bin/prepublish.js is using uglify-js

Last time I tried it, it removed the outer parens - which are needed - and the output was the same. So no point in updating.

It block debian package... BTW new uglify render test fail


editing types does not refresh dependent functions

related to #2203. It seems we are not propagating type changes to its consumers

potential duplicate of https://github.com/Vector35/binaryninja-api/issues/2060

Followup on this: Jordan showed a case where it fails: the code references a data variable, and we first select 16 bytes, hit "1", and then hit "*". Then if we go back to the code that references the data, the HLIL is not updated. If you press "Y" to change type and specify "char var_name[0x10]", the HLIL is updated.
This only happens on MacOS, I cannot reproduce it on Linux. (The HLIL is updated in all cases on Linux)

fixed in dev 2.3.2761


Triggere mailer for admin created accounts

The mailer doesn't get triggered at all, my configuration is as follows:
[mailer]
ENABLED = true
HOST = localhost:587
FROM =<EMAIL_ADDRESS>
[service]
REGISTER_EMAIL_CONFIRM = true
ENABLE_NOTIFY_MAIL = true

When I create a new issue or user, I only get the following line in my log, not any error from the mail service:
Issue created: 4/3

Also, my mail server's log doesn't contain anything about an email being sent. I've also tried providing an username and password, but it doesn't change anything.
Is this a bug? I'm on the latest release (<IP_ADDRESS>5 Beta).

Okay, when I register myself using another email address without using the admin panel I do get an email.
Why don't I get an email when I create an issue or when I create an user using the admin panel? Could this be an option?

@Naxiz good catch!
Yes, mailer only be triggered by self-sign up page, I can add a checkbox says something like send registration confirmation e-mail when you create a user through admin panel.
How does it sound?

Yes, that would be great! Thanks!

No problem :grinning:

It's now possible on master branch!

Nice!


Query inside jsonb

Hello,
I can't find anything in the documentation, so I was wondering if it was possible or not.
Let's say I have a table :
interface JsonBContent {
  data?: { [key in 'one' | 'two']?: number }
}

const tableWithJsonB = defineTable({
  id: Generated<string>,
  annee: string,
  content: JsonBContent
})

I'd like to query this data given the presence of the key 'one' in the row.
In full sql I can do it like that :
select * from tableWithJsonB where tableWithJsonB.contenu -> 'data' ? 'one'
But I can't find a way to do that with kysely. Is there something I am missing?
something like const request =  await db.selectFrom('tableWithJsonB')    .select('annee').select('content')    .where("content->'data'->?", 'one')
Edit
I know I can do something like this: .where(sql`titres_activites.contenu -> 'data' ? 'one'`) but this is not typed here, I don't have any completion nor anything, it's "just" plain sql. I'm looking for a way to do that within kysely strong type system

Hey,
This type of operator does not have built-in support at this point.
You can use sql tag in the meantime.
Something like this..
import { sql } from 'kysely'

const request = await db
  .selectFrom('tableWithJsonB')
  .select(['annee', 'content'])
  .where(sql`content -> 'data' ? 'one'`)

This should also work:
import { sql } from 'kysely'

const request = await db
  .selectFrom('tableWithJsonB')
  .select(['annee', 'content'])
  .where(sql`content -> 'data'`, '?', 'one')

It's very difficult to add support for this that would allow you to have autocompletion. JSON support is very different on each engine. A third party package would be more appropriate.

Thanks a lot, that's what I suspected. We will see if we can start a third party package or not.
Have a nice day!

I'm working on some changes that will allow Kysely user's to define helpers like this with full type safety and autocompletion goodness:
interface DB {
  person: {
    id: Generated<number>
    address: {
      postal_code: number
      street_address: string
    }
  }
}

async function main(db: Kysely<DB> ) {
  const res = await db
    .selectFrom('person')
    .select([
      'id',
      (eb) => jsonRef(eb).col('address').ref('postal_code').as('postal_code'),
    ])
    .executeTakeFirstOrThrow()

  res.postal_code
}

Here's how the implementation would look. This doesn't work yet, but soon it will:
class JsonReferenceBuilder<DB, TB extends keyof DB, O>
  implements Expression<O>
{
  #column?: AnyColumn<DB, TB> | AnyColumnWithTable<DB, TB>
  #refs: string[] = []

  get expressionType(): O | undefined {
    return undefined
  }

  col<SR extends AnyColumn<DB, TB> | AnyColumnWithTable<DB, TB>>(
    column: SR
  ): JsonReferenceBuilder<DB, TB, ExtractTypeFromStringReference<DB, TB, SR>> {
    const newBuilder = new JsonReferenceBuilder<
      DB,
      TB,
      ExtractTypeFromStringReference<DB, TB, SR>
    >()

    newBuilder.#column = column
    return newBuilder
  }

  ref<R extends keyof O & string>(
    field: R
  ): JsonReferenceBuilder<DB, TB, O[R]> {
    const newBuilder = new JsonReferenceBuilder<DB, TB, O[R]>()

    newBuilder.#column = this.#column
    newBuilder.#refs = [...this.#refs, field]

    return newBuilder
  }

  as<A extends string>(alias: A): AliasedExpression<O, A> {
    return {
      expression: this,
      alias,
      toOperationNode() {
        return AliasNode.create(
          this.toOperationNode(),
          IdentifierNode.create(alias)
        )
      },
    }
  }

  toOperationNode(): OperationNode {
    return sql`${sql.ref(this.#column!)} -> ${sql.join(
      this.#refs.map(sql.ref),
      sql`->`
    )}`.toOperationNode()
  }
}

function jsonRef<DB, TB extends keyof DB>(
  eb: ExpressionBuilder<DB, TB>
): JsonReferenceBuilder<DB, TB, unknown> {
  return new JsonReferenceBuilder()
}

hi @koskimas, great initiative! Did it already happen? :)

Any update on this enhancement? I'm using sql but would like type completion

@MichaelBitard @grreeenn @chukwumaokere type-safe JSON traversal has been released in https://github.com/kysely-org/kysely/releases/tag/0.26.0.


no contract when got PR

PR is submited, now adding bounty

Transaction: 0xef9df702128f5a841767dd5fa94e3705671d973724631ba7ddb52b6b815342a2

got snt on contract will merge pr


Align on process for maintaining multiple branches/stable versions

[ ] set date for initial call

I believe this can be closed now that we have the outcome of the discussion here: https://github.com/beamer-bridge/beamer/pull/1185

Thanks for noticing, yes, this should be closed.


Add JMAP support

I know this is a huge feature request, but I want to propose adding support for the JMAP protocol as specified by proposed standards RFC 8620 and RFC 8621. While the whole spec for JMAP (which includes contacts and calendars) is still in development, the core spec and the mail extension have been completed. For reference, this is the implementation guide.
JMAP has significant advantages over IMAP, especially regarding mobile network performance. It's modern, well documented and already has several server and client implementations. Server support has been (as expected) quite slow, but servers like Cypht have had experimental support for some time now.
The protocol was specifically meant to be compatible with the IMAP data model, but I don't enough about Mox to know how big of a change this would involve.

I looked at the jmap.io website again, and it looks good. I would like to have it in mox as well. But me working on it doesn't feel like the biggest move at the moment. If you or anyone else wants to work on it, I can help out (explain mox internals, review code, make some mox internal changes) where time allows.
Like you said, JMAP is compatible with the IMAP data model, so the fit should be relatively good. I did notice a few things that mox doesn't do yet and would have to be added: keeping track of message threads, keeping track of history for fast sync (mox also doesn't do IMAP CONDSTORE/QRESYNC yet).
I would like to add a basic webmail in the future too, and it seems like a webmail should be speaking JMAP (I'm happy to see it uses SSE). So JMAP should come first.

@ArnoSen nice, good to hear. feel free to email me at<EMAIL_ADDRESS>with questions. we can open up more communication lines too. i can probably provide some time-saving answers to some questions.

@mjl- I start with the core jmap functions first and then work my way down to implementing the mail capability. When I arrive there, I will definitely contact you. For now I do some cycles to define the interfaces that need to be implemented in the end.

Small update: I am busy implementing  the core functionality of JMAP . I will be busy with that for some time (weeks maybe a few months). When that is basically done,  I will do the email part. This is where the real integration happens with the existing code base.
So far so good and I am still enjoying the work.

That's great to hear!
Don't hesitate to ask questions about mox internals when you're ready for it.
And don't be afraid to just hack around locally to get something going quickly and dirty. At least that often helps me feel I'm making progress, and it can highlight integration pain points early.

A small update: I making progress with implementing the core JMAP functionality and creating unittests. Although there is still a lot to do, I am slowly moving towards starting to look at what needs to be done to implement JMAP Mail. When I start with that I will definitely get in touch with you @mjl- .

nice, great to hear, thanks for the update!

@mjl- do you have any recommendation for a VPS like provider that is okay with running your own mail server?

i have had vps'es at tilaa.com. they've been solid with excellent customer support. it's a dutch company, with focus on the EU, so may not make as much sense from elsewhere in the world.
in general, i think technical-focused, smaller companies that aren't price fighters could be a good bet. you can probably find localized hosting provider comparison websites that can point in the right direction. the large cheap vps providers often don't have a great reputation, probably because they attract bad actors and they don't assign enough resources to fight them.

Hi, I am setting up a VPS.
When I run the quickstart, I get:
WARNING: checking your public IP <IP_ADDRESS> in DNS block list sbl.spamhaus.org: temperror  (dnsbl: dns error: lookup <IP_ADDRESS>.sbl.spamhaus.org. on [::1]:53: read udp [::1]:56813->[::1]:53: read: connection refused).
Apparently DNS is defaulted to systemd-resolved. I do not have experience with that service and can work my way around it but it may be worth supporting this DNS flavour as well.
When taking a closer look, it looks like it does not run on ::1 but has dedicate ips:
sudo ss -lnp | grep 53
u_str LISTEN 0      5                        /run/user/1000/p11-kit/pkcs11 36253                  * 0    users:(("systemd",pid=1840,fd=31))
udp   UNCONN 0      0                                           <IP_ADDRESS>:53               <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=21))
udp   UNCONN 0      0                                        <IP_ADDRESS>%lo:53               <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=19))
udp   UNCONN 0      0                                              <IP_ADDRESS>:5353             <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=15))
udp   UNCONN 0      0                                              <IP_ADDRESS>:5355             <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=11))
udp   UNCONN 0      0                                                 [::]:5353                [::]:*    users:(("systemd-resolve",pid=204,fd=16))
udp   UNCONN 0      0                                                 [::]:5355                [::]:*    users:(("systemd-resolve",pid=204,fd=13))
tcp   LISTEN 0      4096                                           <IP_ADDRESS>:5355             <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=12))
tcp   LISTEN 0      4096                                     <IP_ADDRESS>%lo:53               <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=20))
tcp   LISTEN 0      4096                                        <IP_ADDRESS>:53               <IP_ADDRESS>:*    users:(("systemd-resolve",pid=204,fd=22))
tcp   LISTEN 0      4096                                              [::]:5355                [::]:*    users:(("systemd-resolve",pid=204,fd=14))


don't run counter subprocesses over upgrades

for now, that is

For https://issues.apache.org/jira/browse/CASSANDRA-12441

+1


Grid not centered all the time

Homepage grid is not always centered when collapsing the width. It drops an image down to the next row correctly but does not recenter the entire grid after doing so.

Fixed with redesign.


more UI-as-code

Description
Use UI-as-code to inline children into widget-tree.
Related Issues
None
Tests
None
Breaking Change
Does your PR require Flutter developers to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
[x] No, this is not a breaking change.

/cc @dnfield

Sorry, I lost track of this one.
Some of these changes make a lot of sense, some of them feel a little strange to me.  I'd like to get some feedback from some others on this one - /cc @goderbauer @Hixie

My recommendation would be that we write up our style for this, and add that to the style guide, before committing this. Then we would review it by comparing it to the guide.

I updated the wiki in https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo/_compare/3de72c72ff530b0d9fb31b142511d774604d30df...b016b3489b8dfcf73e47e98c2548a8bbab5a5073 .
PTAL

PTAL

It looks like there are a number fo merge conflicts that need to be resolved here.

It looks like there are a number fo merge conflicts that need to be resolved here.

rebased (there were no conflits yesterday)

@Piinks thanks for the review :)


How do I pass function arguments to reduce, map, etc?

When I try to use reduce() on a vector as per example, I get "reduce() requires 3 arguments"
func int addNumbersInJson(int acc, json_value json) {
	let type = get_json_type(json)

	if(type == json_object) {

	}
	else if(type == json_array) {
		return reduce(json, acc, addNumbersInJson)
	}
	else if(type == json_number) {
		return jsonvalue_to_value(json, int)
	}
	else {
		// Ignore
	}
}

How should I call it?

Reduce works like this: R reduce([E], R init, R f(R accumulator, E element))
Argument 1: the vector with elements of type E
Argument 2: an initial value of the same type you want the final result to be.
Argument 3: a function that take the current accumulator value (type R), one of the elements (type E) and returns a new result R.
Documentation needs more information. There are some examples in floyd_test_suite.cpp:
func int f(int acc, int element){
	return acc + element * 2
}

let result = reduce([ 10, 11, 12 ], 2000, f)

print(to_string(result))
assert(result == 2066)

and
func string f(string acc, int v){
	mutable s = acc
	for(e in 0 ..< v){
		s = "<" + s + ">"
	}
	s = "(" + s + ")"
	return s
}

let result = reduce([ 2, 4, 1 ], "O", f)
print(to_string(result))
assert(result == "(<(<<<<(<<O>>)>>>>)>)")

I realized my bad was probably that the function argument was a jason_value. Would be cool if those could be used in map functions as well, somehow :)

Closing this issue


guesses the fingers

🎮 Game Request
The user have to guesses the number of fingers holding by and they have too guesses ,
HOW MANY FINGERS I AM HOLDING UP?
using random no i made this game it will always show different no of fingers holding my the user and a time came it will show "yes well done u got it

Point down the features
its was fun!
and just a basic game they will enjoy sure.
Select program in which you are contributing
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

Hey @Sushilverma002! 🙂
It seems like you are not following proper guidelines !! 👀
Read documentation properly !!🙏
If you have any queries reach out to us on Discord🕹 .

Hey @Sushilverma002 ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

can you please assign me i would like to contribute for this one.


Reconstructing the FP32 weights | HuggingFace conversion

Is your feature request related to a problem? Please describe.
This might be more of question rather than a feature request. As far as I understand if one trains with mixed precision using deepspeed stage 2or 3, deepspeed provides a script to reconstruct the fp32 weights.
Given the scenario that I train my model using mixed precision and fp16 or even bf16 using deepspeed stage 0 or 1 is there a way to reconstruct the fp32 weights?
If so shouldn't it be the preferred case to share/use the model for inference in its fp32 form?
Thanks for the help :)

Given the scenario that I train my model using mixed precision and fp16 or even bf16 using deepspeed stage 0 or 1 is there a way to reconstruct the fp32 weights?

Yes, the model weights are stored in fp32 for stability. Typically the arithmetic operations are done in fp16 or bf16, while a master copy of the weights are stored in fp32.

If so shouldn't it be the preferred case to share/use the model for inference in its fp32 form?

Using weights in fp32 is generally considered strongly undesirable. It takes up twice as much space, meaning the largest LLM you can run inference on will be half the size (in parameters) in fp32. Additionally, inference on Volta, Ampere, and Hopper series GPUs will be significantly slower in fp32 than fp16

Hi Stella, thanks for your reply!
True, you are absolutely right.
What do you think about the loss in precision?
With large models > 10B parameters restoring the fp32 weights is probably undesirable due to hardware restrictions.
For smaller < 10B parameters it could make senses to use full precision weights or would you say there are no beneficial effects in terms of prediction performance using the fp32 weights relative to fp16 weights?
Thanks for your input, highly appreciate it :)

Tim Dettmers and Luke Zettlemoyer have a really excellent paper on the tradeoffs of more parameters fitting in VRAM vs better precision. I view Tim as the leading expert on this subject and mostly just repeat what he recommends as best practices :)


Cleanup retry logic in I2C drivers, implement better retries in main event polling loop, remove delays, possibly return NaNs

A few of the sensors are more unreliable than most.
They fail before a data read and return false.
The firmware then loops over the event polling code again and detects the sensor is still overdue.
This repeats.
If they failed forever, then the code is basically in a tight loop polling the sensor indefinitely. The serial monitor can become flooded (along with the UI if available, but so far the main issue is around whether to retry inside the driver).
A few of the I2C drivers retry the data read inside the driver code to ensure the user's best chance of recording their desired data.
This deviates from the idea of being a short rapid interrupt-like method to fetch the data by using delays between read attempts.
In an ideal world they would quickly fail, and the main event loop would retry them a sensible number of times before marking the event as passed and updating the next poll time.
It's possible we may want to send a NaN in this situation (although the current thinking is NaN means something specific - i.e. that a target is not currently in the area for a proximity sensor), or bubble up another kind of error / msg to the IO website and accept the sensor data read event returned unsuccessfully.
Again there is a fair bit of code repetition for retries, and the main thing that came up was trying to monitor the millis while checking the result of a conditional, a possible rollover situation, which leads to a horrific looking for loop with the main execution block indistinguishable from the conditions (VL53L4CX development #564 ).
It was an interesting excercise to explore the idea of a RETRY_UNTIL_TIMEOUT macro, but unnecessary if we fix the main event loop to retry more efficiently.  For posterity: https://chatgpt.com/share/b760dd1d-5bdf-4f5d-b3ae-ec762eab6207

So I went a tiny bit further, and made a macro to retry a function with a conditional check and a timeout.
It's here:
Separately the retry-loop branch is going on here:
https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/compare/main...retry-loop


Enhancement: Farming station should farm Melons, Pumpkin, cocoa

I suggest, that it wont plant the Melons or Pumpkins, so the player can figure out an efficient pattern.
for the cocoa you would need some mechanism to prevent the harvesting of jungle wood

Cocoa farmer has been added


Notification filter

Add the ability to filter notifications of a given type (In-App and Push)
Expected Behavior
With Bluesky's user base constantly growing it would be good to have some more controls over notifications.
Currently it seems to be an all or nothing situation which is not optimal imo.
It would be great if you gave the users some control over the types of notifications they receive.
Off the top of my head I can think of a filter like "only replies" where it'll only surface replies. (Inverse for only follows could also be useful).
If you activate those filters there should be a choice of them only applying In-App or at push notification level even.
Current Behavior
Currently it seems like it's just a screen where all notifications gather with no control over them what so ever.
What's worse is that if you post something even decently popular your phone won't stop buzzing (It's nice but after a while too much ;) )
Context
Like stated above if your account reaches a certain size and you regularly post stuff that gets lots of attention your notifications and push notifications are just a mess (basically writing this for a friend of mine who told me his phone won't stop buzzing and he'd love some way to filter out the "noise" and only get the "important" notifications)

Never mind wrong Bluesky xD


Browser support list?

Is there a list of supported browsers?

This shows which browsers support web storage. http://caniuse.com/#search=web storage
Since angular-local-storage falls back to cookies it should support pretty much any browser. AngularJS itself dropped IE 8 support.
As stated on the main page: "An AngularJS module that gives you access to the browsers local storage with cookie fallback
http://gregpike.net/demos/angular-local-storage/demo.html"

@dholcombe  thanks!


add PKGBUILD for arch linux

@qiujiangkun thanks for this. Upon more thinking on this with the maintainers, this may be hard for us to maintain going forward (though I'm glad to link it here for posterity if anyone asks), since we've never officially sanctioned arch and don't run arch ourselves. Also, just looking at https://aur.archlinux.org/packages/dpdk-lts/, what issues are there w/ the upstream version? Is there a way to contribute this back to to dpdk aur: https://aur.archlinux.org/packages/dpdk/?

Hi, I definitely tried out dpdk-lts upstream. The upstream version used make, which is slow, and does not work out of the box(headers, libraries). Moreover, it seems that it lacks some modules that capsule requires. The official recommended way is to use meson and ninja, and they works very well. Though it requires extra build dependencies.
Actually, the scripts barely does nothing other than downloading and compiling. Maintaining it should not be hard since capsule changes dpdk version not very often. The thing to do is probably changing the version and md5 value in PKGBUILD.
For aur part, I'm not familiar with contributing back to aur. Maybe I can give it a try.

after some discussion, we feel that maintaining a dpdk package for a specific linux distro is tertiary to the work around capsule. since we don't do that for even the platforms we "officially" support, it's not a responsibility we are looking to take on at this time. also, seems to me that AUR is a more appropriate place for this. reading their home page, it's driven off of user contributions and is a centralized repository of arch linux packages. I encourage you to contribute your PR to them instead. it can benefit the arch linux community more broadly I think.


Question: Why handlebars class is static

Is there any reason for keeping the main class in the library as static (in fact all members are static). It limits the small scope of use cases.
Is there any reasonable argument for this decision, or it could be changed?

Handlebars.Net is intended to provide a very similar experience in .NET to what the original handlebarsjs library provides in JavaScript. In JS, the handlebars library registers a default handlebars object on the root scope for convenience and ease of use for simple cases; static accomplishes the same here.
Also as with the JavaScript library, there is a Create() method on the default instance that returns a new, self-contained handlebars instance if you don't want to use the static one.

Fair enough! I see the concept!


Table-mode: Move selector position

Probably up to the top w/ search and topologies.

I reckon we should do this soon, before users get used to the current position.
Of the options discussed my order of preference is exactly as shown there. IMO the last one makes search too dominant and loses precious vertical space. The 2nd one consumes precious horizontal space - it will be impossible to expand-on-click the search box (as we currently do) in all but very wide browser windows.


Add cmdidxs targets to Windows makefiles

Makefile has the cmdidxs target, but Windows makefiles don't have it.
Add the cmdidxs target.
Also add ex_cmdidxs.h as a dependency of ex_docmd.obj. (Also for VMS makefile.)

Codecov Report

Merging #5337 into master will increase coverage by 0.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #5337      +/-   ##
==========================================
+ Coverage   82.22%   82.24%   +0.01%
==========================================
  Files         134      134
  Lines      147578   147578
==========================================
+ Hits       121346   121371      +25
+ Misses      26232    26207      -25

Impacted Files
Coverage Δ

src/drawline.c
84.64% <0%> (-0.14%)
:arrow_down:

src/window.c
88.33% <0%> (+0.03%)
:arrow_up:

src/terminal.c
81.77% <0%> (+0.03%)
:arrow_up:

src/os_unix.c
63.59% <0%> (+0.22%)
:arrow_up:

src/viminfo.c
90.55% <0%> (+0.32%)
:arrow_up:

src/ui.c
72.4% <0%> (+1.28%)
:arrow_up:

Continue to review full report at Codecov.

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


Copying junit to system dir when exporting classpaths of Time 12-27

Hi! This seems to be the same as #97 (and by extension, #104), which have been closed. However, I am on the latest commit on java-8-support and am still running into this.
To reproduce: when I run defects4j export -p cp.compile or defects4j export -p cp.test on either the buggy or fixed versions of Time 12-27, I get
Running ant (export.cp.compile)............................................ FAIL
Buildfile: /<path>/defects4j/framework/projects/defects4j.build.xml

sanity.check:

init:
     [echo] -------- joda-time 2.1 --------

getjunit:

installjunit:
     [echo] Installing junit in /usr/share/ant/lib
     [copy] Copying 1 file to /usr/share/ant/lib
Attempt to copy /<path>/defects4j/framework/projects/lib/junit-4.11.jar to /usr/share/ant/lib/junit-4.11.jar using NIO Channels failed due to '/usr/share/ant/lib/junit-4.11.jar'.  Falling back to streams.

BUILD FAILED
/tmp/fix/build.xml:157: Failed to copy /<path>/defects4j/framework/projects/lib/junit-4.11.jar to /usr/share/ant/lib/junit-4.11.jar due to java.nio.file.AccessDeniedException /usr/share/ant/lib/junit-4.11.jar

Total time: 0 seconds
Executed command:  cd /tmp/fix && ant -f /<path>/defects4j/framework/projects/defects4j.build.xml -Dd4j.home=/<path>/defects4j -Dbasedir=/tmp/fix -Dfile.export=/tmp/fix/.export.cp.compile export.cp.compile 2>&1
Cannot export property cp.compile at /<path>/defects4j/framework/bin/d4j/d4j-export line 112.
Compilation failed in require at /<path>/defects4j/framework/bin/defects4j line 155.

I've worked around this by manually copying over the junit jar.

The key issue is that the Ant installation used to run the build does not have the expected version of JUnit installed. This issue existed in the Java-8 branch because we changed the precedence of the system-wide Ant installation. Enforcing the use of the Ant installation that comes with Defects4J (and Major), as was the case previously, avoids this issue entirely.
The latest version of master (which is Java-8 compatible) should work. Can you please try the most recent version?

The export command for Time does work on master (v2.0.0).


Set up semantic releases

Automated npm publish, an Actions bot to enforce PR names, and the like. I've been wanting to set this up in a repo for ages!

Actually, a basic workflow to publish on push to master already exists. I'll hold off on this for now given that tsd might take over...


Components

All the project requirements for the step 2 of the project - Components have been implemented:

Delete all the boilerplate from CRA (text, images, styles).
Create a directory called components.
Inside components, create a new Calculator.js file.
In Calculator.js, create a React component that matches this design: design
Don't add any extra design.
Develop just the UI of the calculator; the math logic to make it work will be added in the next project.
Use class based components.
Once the Calculator is ready, import it and use it in your main component (App.js).
Test it in the browser; it should render without problems.

Hi @Hombre2014,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Avoid some \ when cross compiling

fix https://github.com/openssl/openssl/issues/19196

IMO this would be acceptable with CLA: trivial. Other opinions?
Or, even better, @Ludea please sign a CLA. https://www.openssl.org/policies/cla.html

IMO this would be acceptable with CLA: trivial. Other opinions?
Or, even better, @Ludea please sign a CLA. https://www.openssl.org/policies/cla.html

Mail sent

The PR is not working.
I create a fork to openSSL (https://github.com/Ludea/openssl/commit/05f7de472d996dfbbb5415f578dcbfcac989016a) with modification, update all dependencies to use my fork , restart CI and still get issue:
https://github.com/Ludea/tauri-mobile/actions/runs/3065602681/jobs/4949864965#step:15:593

The PR is not working. I create a fork to openSSL (Ludea@05f7de4) with modification, update all dependencies to use my fork , restart CI and still get issue: https://github.com/Ludea/tauri-mobile/actions/runs/3065602681/jobs/4949864965#step:15:593

Ok, that's unnerving.  At this point, I have no idea who's doing something "interesting" with those defines, and exactly what they do.  It could be powershell, it could be mingw32-make, or it could be clang.  Something along the way is doing something rather unexpected.
Do note that this is a setup that we don't really have support for.  The thing we do support is doing mingw builds from within a mingw shell (bash)...  that sort of setup seems to be Unix-like enough not to give us nasty surprises.
Getting actual mingw32-make support under cmd.exe or pwsh.exe appears to be a bigger piece of work than just this simple adjustment.


After some time useSelector stops doing re-renders

What version of React, ReactDOM/React Native, Redux, and React Redux are you using?

React: 18.2.0
ReactDOM: 18.2.0
Redux: 4.0.1 (was too painful to update up to 5)
React Redux: 9.04 (downgraded to 8.1.3, didn't help)
Reselect: 5.0.1 (downgraded to 4.1.8, didn't help)

What is the current behavior?
The UI is working perfectly fine, but after a while it just stops receiving store updates. The Redux DevTools shows that the action was successfully dispatched, but no re-renders are triggered by that. We have a setState bound to a blur event on the root component, and when I move my cursor over DevTools, causing blur event, the UI re-renders. Any change in store do not trigger re-render. It is a rare bug, happens after user spends some time on the site without reloads.
I consider react-redux to be the root cause because my debugger says so (my breakpoint on the selector fires only when I move my mouse out, and when I press buttons causing store changes, it does nothing). One of the code examples:
const { selectedItemId } = useSelector(getComponentProps);

const getComponentProps = createStructuredSelector({ selectedItemId: (state) => state.path.to.selectedItemId })

Looks like the problem is in forceUpdate somewhere inside the codebase, but I don't really know.
What is the expected behavior?
The site is not going to freeze after some time, and all the store changes are received by the UI.
Which browser and OS are affected by this issue?
Windows, Google Chrome
Did this work in previous versions of React Redux?

[X] Yes

Wait, why<EMAIL_ADDRESS>is used as a dependency in<EMAIL_ADDRESS>why not 1.2.0? And why don't just use React's built-in, as you wrote in your article?

^1.0.0 means you should get 1.2.0, that's how semantic versioning works.
as for why it's used rather than the built-in, it's because React Redux uses useSyncExternalStoreWithSelector which is still not built into React.

@EskiMojo14 Ah, I missed that. I'm also confused with that, because it doens't reduce bundle size at all, and looks like it may result in using a buggy package (#2060 #1981). Hope the state of this issue won't get stale like the state of the redux store in my and the mentioned issues.

Can you provide an example project that reproduces the issue, or record and share a Replay ( https://replay.io/record-bugs ) ? I can't immediately think of anything likely to be related here, and the description doesn't give much detail for us to investigate. useSyncExternalStore is built into React, so we just rely on that.

@markerikson Suddenly, this one happen occasionally, but it cannot be considered as "rare". I caught the bug only once, but I missed that opportinuty in a dump way: I entered another module, and since we can only re-render by setting some state, I could not get back to my original module with the blur event to test it properly. I already wrote our other developers to be aware of this issue, and if it occurs, not reload the page and connect on that. When it happens, I, of course, will send here a replay.
I think that the issue is here because:

Was pointed out by other people
It really is the change that might've caused it, because I compared 7.2.7, 8.1.3, and 9.0.4, and it looks like the root cause candidate

I'm not sure what you're pointing to as the "root cause". Can you clarify? Does it also occur with v7.x?

@markerikson The thing is that in in 7.x (at least in 7.2.7) use-sync-external-store is not being used at all. Instead, there was a counter forcing re-renders. At this bug started occuring after we switched to one of the newer versions. "Root cause" is just what simply caused the bug and what needs to be fixed.
Replays:

https://www.loom.com/share/89b5849a9f054933b439c902ba2fcfd6?sid=90fca031-a1d3-44e8-828a-deb5c75f13a3 (the main part is in the beggining, where the store state changes only after setState (i.e. 'blur' event being fired))
https://www.loom.com/share/ac1594bc24144d4287518fd922ac2c90?sid=b70b64d4-4a6b-4717-8238-7fc4f2bb7dad (all the state that is not updating is store state)

@retueZe that's actually exactly my point.
If it occurs in 7, 8, and 9, then it's most likely a bug with React-Redux.
If it occurs with 8 and 9, but not 7, then it's most likely a bug with React itself (and thus the "root cause" is in React, and an issue should be filed over there instead).


documentation

Hello,
Is there any particular configuration for php-proxy script?
I'm installing it on my dedicated server and it doesn't work for facebook.com saying that the cookie isn't enabled. I suspect that's something to do with cookie handling on the script.
Btw:
somebody that want to install the script should be aware that the templates is using php short-tag. I need to change it to php long tag to make it work.

Is there any particular configuration for php-proxy script?

Whatever is in config.php that's it.
I'm not finished with CookiePlugin so I wouldn't expect any session stuff to work right now. Give it a week or two for me to finish everything that still needs work.


Kindly add an example for using Microsoft SQL Server on Windows VM

We do not support services on Windows.  So using SQL Server on a Windows VM would require it to be preinstalled and configured.

The Windows VM has SQL LocalDB pre-installed. What would be the appropriate repo. to suggest adding an example for using that?


update ml-gsd

We cannot do it now because new versions do not provide the peak.index property that is used in base-analysis

Related to https://github.com/mljs/global-spectral-deconvolution/issues/81


Web app breaks the back button

I mean, even more than I'm used to with a typical single page web application.  Need to make it less... broken.

Dumb mistake on my part.  It helps to read the Backbone documentation sometimes.  Should work much better now.


Moved: Vivaldi.Vivaldi version 5.1.2567.49

This pull request is automatically generated by 🥟 Dumplings
Microsoft Reviewers: Open in CodeFlow

/AzurePipelines run


Add NeedReload annotation to AssertOnNumberOfRows_IsEmpty_Test to ens…

…ure that the test-data for subsequent tests is present.
Without this AssertOnColumnEquality_HasValues_UUID_Test always fails because of missing data when I run the tests in Eclipse.

@PascalSchumacher Thanks a lot Pascal for all your contributions for cleaning code.


[Bug]: Files without a header don't seem to geocode first row

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Is there an existing issue for this?

[X] I have searched the existing issues

App Version
1.5.1
Electron Version
16.0.1
Operating System
Windows
What happened?
If I provide a csv without a header that has 522 rows and select the proper matching fields, the preview only shows 521 rows and the output only has 521 rows as well, missing the top row.
Steps To Reproduce

Delete the header row from a csv. Note the number of rows and the top row.
Geocode, selecting the proper fields.
Compare number of rows geocoded and output to input file.

Relevant log output
No response

Right now we require a header row. Please make an enhancement request for this.


Enhancement: Progress UI hook for custom endpoints

What features would you like to see added?
Both the Plugins endpoint and the new Assistants endpoint have UI elements that indicate the run/agent is busy using a tool/action/plugin. Custom endpoints allow for custom models that may be using tools in a similar way on the backend - it would be nice to still be able to display that status.
More details
As far as I understand it, LibreChat gets the status of an Assistant run by polling the OpenAI API, while it always knows the status of a Plugins run because it is managing the ReAct framework internally. Presumably, for custom endpoints, LibreChat would need to send an API request to the custom endpoint to check the status of a completion, which (AFAIK) is not part of the OpenAI API spec.
Which components are impacted by your request?
UI, Endpoints
Pictures
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Yup something like this is planned. I would like to make it so any LLM can run tools in a similar fashion. I learned a lot by implementing agents

Re-reading this, I may have misread the first time when this issue was posted. I'm not sure I can do this without a standard framework in place (which is defined by both Assistants and Plugins endpoints, which is how I'm able to do this).
In both cases, there are triggers that define the state of actions.


rsid-cli [.18] not authenticating --  [Matcher] version mismatch between 2 vectors.

GCC 10
cmake .. -DRSID_SAMPLES=1
Additional information:

S/N:<PHONE_NUMBER>4999A27FM10464-100
Firmware: NNLED:<IP_ADDRESS>|NNLAS:<IP_ADDRESS>|DNET:<IP_ADDRESS>|YOLO:<IP_ADDRESS>|AS2DLR:<IP_ADDRESS>|RECOG:<IP_ADDRESS>|OPFW:<IP_ADDRESS>
Host: 0.18.0

Not authenticating in the server mode of the rsid-cli
Searching 1 faceprints
[2021-05-20 12:40:35.973] [error] [Matcher] version mismatch between 2 vectors. Skipping this match()!
[2021-05-20 12:40:35.973] [debug] [Matcher] Match score: 0.000000, confidence: 0.000000, isSame: 0, shouldUpdate: 0

No issues with .17

whoops...
fixed with FW update to recommended as per https://github.com/IntelRealSense/RealSenseID/releases/tag/v0.18.0
./build/bin/rsid-fw-update --file ~/Downloads/F450_<IP_ADDRESS>_SIGNED.bin --port /dev/ttyACM1 --force-full --interactive


Bug Fix: Update bondQuote whenever  quantity is changed

Fixes the issue where bond quotes weren't updating with user input.

Going to merge this for now since this  has been an ohmie pain point. <3


Memoize the document type dependencies for faster unit of work ordering

This one might be non-trivial. Might also think about just having the topological ordering done ahead of time. Today it's all live in the new UnitOfWork.

Done in a local branch. Didn't make that much difference in the tests, but it only really matters when you commit multiple kinds of documents in one session.

This was done in the v4 codegen work

This wasn't done yet:(

Nevermind, this was totally done. See the StorageFeatures.GetTypeDependencies(Type type) method.


ProgressBar cannot be full width widget.

Describe the bug
Cannot make 100% width progressbar.
To Reproduce
GFProgressBar(
percentage: percent,
lineHeight: 3,
backgroundColor: Colors.black,
progressBarColor: Color(0xffe21c1c),
padding: EdgeInsets.zero,
)
Expected behavior
Should have margin option.
Progress Indicator always has fixed margins on both sides.
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):

Device: Android
OS: 9
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
GetWidget 2.0.2

Hi, above mentioned issue is fixed in getwidget version 2.0.4.


chore(github issue template): add npx to prisma -v

people keep reporting their Prisma 1 version as they have Prisma 1 globally installed.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


⚠ Bofrost.es has degraded performance

In cd65a95, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1253 ms

Resolved: Bofrost.es performance has improved in b29ed5c after 19 minutes.


Trying to iterate through menus

I'm trying to use this library as the model for visual menu system on a 320x480 LCD and I'm having trouble.  I think each menu or menu item should have a unique identifier in a given menu.
menu.get_current_component_num() seems to suggest that too.
I have a menu structure set up like this:
Menu mu0("Base Config");
MenuItem mm_00("Time & Date", &on_item00_selected);
MenuItem mm_01("Set PIN", &on_item02_selected);
MenuItem mm_02("Backlight/Contrast", &on_item03_selected);

Menu mu1("Sensor Config");
MenuItem mm_10("Module1/Module2", &on_item10_selected);
MenuItem mm_11("Probe Voltage", &on_item12_selected);
MenuItem mm_12("Units", &on_item15_selected);

Menu mu2("Calib");
MenuItem mm_20("New Calibration", &on_item20_selected);
MenuItem mm_21("Load Calibraion", &on_item21_selected);

And then I build up the menu like this:
  mu0.add_item(&mm_00);
  mu0.add_item(&mm_01);
  mu0.add_item(&mm_02);

  ms.get_root_menu().add_menu(&mu1);
  mu1.add_item(&mm_10);
  mu1.add_item(&mm_11);
  mu1.add_item(&mm_12);

  ms.get_root_menu().add_menu(&mu2);
  mu2.add_item(&mm_20);
  mu2.add_item(&mm_21);

I have a stupid simple renderer (btw, it would be nice if the documentation discussed the need for a renderer):
class MyRenderer : public MenuComponentRenderer
{
public:
    virtual void render(Menu const& menu) const
    {
        menu.get_current_component()->render(*this);
    }

    virtual void render_menu_item(MenuItem const& menu_item) const
    {
        Serial.println(menu_item.get_name());
    }

    virtual void render_back_menu_item(BackMenuItem const& menu_item) const
    {
        Serial.println(menu_item.get_name());
    }

    virtual void render_numeric_menu_item(NumericMenuItem const& menu_item) const
    {
        Serial.println(menu_item.get_name());
    }

    virtual void render_menu(Menu const& menu) const
    {
        static byte i = 0;
        Adafruit_GFX_Button button;

//        Serial.println(menu.get_name());

//        MenuComponent const* comp = menu.get_current_component();

        uint8_t menu_num = menu.get_current_component_num(); // prints all zeros
        Serial.println(menu_num);

        switch (i) {
          case 0:
          case 1:
            button.initButton(&tft, 120 + 240*i, 100, 200, 60, HX8357_GREEN, HX8357_BLACK, HX8357_WHITE, (char*)menu.get_name(), 2);
            button.drawButton();
            break;
          case 2:
          case 3:
            button.initButton(&tft, 120 + 240 *(i-2), 200, 200, 60, HX8357_GREEN, HX8357_BLACK, HX8357_WHITE, (char*)menu.get_name(), 2);
            button.drawButton();
            break;
          default:
            break;
        }

        if (i++ == 3) {
          i=0;
        }
    }
};

(the switch is a hack and all I could do to get what I wanted to draw)
My questions:
1 What portion of the renderer gets called when?
2 Given a menu passed into the renderer, what's the right way to find its spot in the hierarchy for its parent?  I'm hoping there's a simple way to get the menu's 'number' and use that as an index for drawing.  So in my case, when the menu being drawn is mu1 is there a way to know that this is menu 1?
3 What's a component?  A menu, a menu item, both, neither?
(I think that's all I have for now.  Thanks)

You're right that more documentation is needed for the renderer and I have an issue for it, just not enough time to work on it at the moment.

1 What portion of the renderer gets called when?

When you call MenuSystem::display() it calls render on the Renderer passing a pointer the current Menu.
The Renderer::render function is the entry point to rendering. In here you need to decide which MenuComponent's you're showing and call render on them. So if you just want to show a single item, you'd get that item and call render; if you want to show everything, you'd want to loop over the entire menu and call render on each item.
When you call render on a MenuComponent is calls back to the appropriate render method in the renderer for the given component. For example, calling render on a NumericMenuItem will cause the NumericMenuItem to call render_numeric_menu_item. This function should have code to display this item.

2 Given a menu passed into the renderer, what's the right way to find its spot in the hierarchy for its parent? I'm hoping there's a simple way to get the menu's 'number' and use that as an index for drawing. So in my case, when the menu being drawn is mu1 is there a way to know that this is menu 1?

MenuComponent don't know where they are in the heirarchy, and they shouldn't. You have two options for achieving numbering:

Hard code it into the menu name;
Add a counter variable to the renderer and increment it each time you render an item; reset it once you're done.

3 What's a component? A menu, a menu item, both, neither?

If you look in MenuSystem.h you can see the classes for the library. The menu system is implemented using the composite design pattern. A MenuComponent is the component part of this pattern, which acts as a base class from which the leaf MenuItem and composite Menu classes derive. This allows you to build up a nested hierarchy.

This is great and thank you.  There's enough here for me to make progress and get myself in trouble.  :)
One more question - what is a NumericMenuItem?

I hope JonBlack not will be upset if I help you in that.
So, a NumericMenuItem and a CustomNumericMenuItem are special menu items. If you like to use a menu item to execute something when you selecting it, just use a MenuItem and use the method linked to it to do the logic what you want to execute.
The NumericMenuItem is very handy when you like to use that menu item to store a numeric value, for example, the display brightness, or a language selector. The value will be rendered next to the menu item text like "Brightness=90" and if you press the select on that item it will be switched into edit mode and you will see something like "Brightness<90>" then pressing the up/down you can change the value what will be saved when you press the select again. You can use a custom renderer to show something like "Brightness=90%" or "Language=English" for more details check this example: arduino-menusystem/examples/serial_nav/serial_nav.ino
Btw I'm happy to help if you will get in trouble. (I'm very close to finishing a woodchip boiler driver using a 320x480 TFT,  with a multi-language menu system and settings saved back to SD card, (I will upload a youtube video very soon) so I struggled a lot to figure out how to make it nice for user and elegant from programming side.)

Can this issue be closed now?

I'm assuming this is now resolved. Re-open if it's not.


Fix automatic state change on LRC GEM-X 5p cDNA PCR XP plate

2 fixes based on UAT testing:

Fix automatic state change on LRC GEM-X 5p cDNA PCR XP plate

It wasn't completing the requests when coming down the SeqOps cDNA Prep route
It only worked for the Faculty input route
This is because the only request type specified in the 'work_completion_request_type' config was 'limber_scrna_core_cdna_prep_input'
Had to enhance the AutomaticStateChange functionality to allow multiple request types

De-duplicate requests in the requestsForWell function

in the aggregation pipeline for scRNA Core, the plates that the submission is done on may contain multiple aliquots
if this is the case, each aliquot in the well references the same request
this method was pulling the request from each of the aliquots - presumably with the assumption that each aliquot would have a different request
in our case, it created duplicates in the array
there could also theoretically by duplicates if the same request was referenced on the aliquot and in requests_as_source (although I think this shouldn't happen)
therefore I added de-duplication to the end of the function chain, based on request id

Closes #
Changes proposed in this pull request

Instructions for Reviewers
[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

Merging to unblock @andrewsparkes , but will come back to improve the js tests