Default values not working

I'm trying out Lume. I'm liking it so far, but I found a small problem. Default field values aren't working

Version
"lume/"<EMAIL_ADDRESS>"lume/cms/"<EMAIL_ADDRESS>
None of the following configs make a default value appear on the frontend
{
  name: "date",
  type: "datetime",
  label: "Published date",
  value: new Date(),
  description: "Set a future date if you want to publish it later",
  attributes: {
    placeholder: "For example: 2024-01-01 00:00:01",
  },
},

{
  name: "content",
  type: "markdown",
  label: "Page content",
  value: "Write **markdown** code here",
  description:
    `<a target="_blank" href="https://www.markdownguide.org">More info about markdown syntax</a>`,
},

{
  name: "createdAt",
  type: "datetime",
  mode: "create",
},
{
  name: "updatedAt",
  type: "datetime",
  mode: "update",
},

If it changes anything, I'm trying to use DenoKV to store my data, but I've also tried with the disk driver and it's the same behavior. Am I doing something wrong here? Thanks!

If it helps, here's the outerHTML code generated by each of those examples

Example 1
<f-datetime data-nameprefix="changes" data-field="{"tag":"f-datetime","label":"Published date","cmsContent":{"basePath":"/admin","site":{"name":"Lume CMS","url":"http://localhost:3000/"},"collections":{"Entradas del Blog":{"name":"Entradas del Blog","permissions":{"create":true,"delete":true}}},"documents":{},"uploads":{}},"name":"date","type":"datetime","value":"2024-09-11T10:14:17.705Z","description":"Set a future date if you want to publish it later","attributes":{"placeholder":"For example: 2024-01-01 00:00:01"}}" class="field">
    Published date
Set a future date if you want to publish it later
<input placeholder="For example: 2024-01-01 00:00:01" id="field_changes.date" name="changes.date" type="datetime-local" class="input" style="--max-width: none;"></f-datetime>

Example 2
<f-markdown data-nameprefix="changes" data-field="{"tag":"f-markdown","label":"Page content","cmsContent":{"basePath":"/admin","site":{"name":"Lume CMS","url":"http://localhost:3000/"},"collections":{"Entradas del Blog":{"name":"Entradas del Blog","permissions":{"create":true,"delete":true}}},"documents":{},"uploads":{}},"name":"contento","type":"markdown","value":"Write **markdown** code here","description":"More info about markdown syntax"}" class="field">
    Page content
More info about markdown syntax
<textarea id="field_changes.contento" name="changes.contento" hidden=""></textarea>

<button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M170.48,115.7A44,44,0,0,0,140,40H72a8,8,0,0,0-8,8V200a8,8,0,0,0,8,8h80a48,48,0,0,0,18.48-92.3ZM80,56h60a28,28,0,0,1,0,56H80Zm72,136H80V128h72a32,32,0,0,1,0,64Z"></path></svg></button><button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M200,56a8,8,0,0,1-8,8H157.77L115.1,192H144a8,8,0,0,1,0,16H64a8,8,0,0,1,0-16H98.23L140.9,64H112a8,8,0,0,1,0-16h80A8,8,0,0,1,200,56Z"></path></svg></button><button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M224,128a8,8,0,0,1-8,8H175.93c9.19,7.11,16.07,17.2,16.07,32,0,13.34-7,25.7-19.75,34.79C160.33,211.31,144.61,216,128,216s-32.33-4.69-44.25-13.21C71,193.7,64,181.34,64,168a8,8,0,0,1,16,0c0,17.35,22,32,48,32s48-14.65,48-32c0-14.85-10.54-23.58-38.77-32H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM76.33,104a8,8,0,0,0,7.61-10.49A17.3,17.3,0,0,1,83.11,88c0-18.24,19.3-32,44.89-32,18.84,0,34.16,7.42,41,19.85a8,8,0,0,0,14-7.7C173.33,50.52,152.77,40,128,40,93.29,40,67.11,60.63,67.11,88a33.73,33.73,0,0,0,1.62,10.49A8,8,0,0,0,76.33,104Z"></path></svg></button>

<button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm75.77,49a8,8,0,0,0-8.21.39l-24,16a8,8,0,1,0,8.88,13.32L216,127V208a8,8,0,0,0,16,0V112A8,8,0,0,0,227.77,105Z"></path></svg></button><button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm88,144H208l33.55-44.74a32,32,0,1,0-55.73-29.93,8,8,0,1,0,15.08,5.34,16.28,16.28,0,0,1,2.32-4.3,16,16,0,1,1,25.54,19.27L185.6,203.2A8,8,0,0,0,192,216h48a8,8,0,0,0,0-16Z"></path></svg></button><button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm73.52,90.63,21-30A8,8,0,0,0,240,104H192a8,8,0,0,0,0,16h32.63l-19.18,27.41A8,8,0,0,0,212,160a20,20,0,1,1-14.29,34,8,8,0,1,0-11.42,11.19A36,36,0,0,0,248,180,36.07,36.07,0,0,0,225.52,146.63Z"></path></svg></button><button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M152,56V176a8,8,0,0,1-16,0V124H48v52a8,8,0,0,1-16,0V56a8,8,0,0,1,16,0v52h88V56a8,8,0,0,1,16,0Zm96,112h-8V144a8,8,0,0,0-16,0v24H195.1l20.49-61.47a8,8,0,0,0-15.18-5.06l-24,72A8,8,0,0,0,184,184h40v24a8,8,0,0,0,16,0V184h8a8,8,0,0,0,0-16Z"></path></svg></button>

<button class="buttonIcon" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M165.66,90.34a8,8,0,0,1,0,11.32l-64,64a8,8,0,0,1-11.32-11.32l64-64A8,8,0,0,1,165.66,90.34ZM215.6,40.4a56,56,0,0,0-79.2,0L106.34,70.45a8,8,0,0,0,11.32,11.32l30.06-30a40,40,0,0,1,56.57,56.56l-30.07,30.06a8,8,0,0,0,11.31,11.32L215.6,119.6a56,56,0,0,0,0-79.2ZM138.34,174.22l-30.06,30.06a40,40,0,1,1-56.56-56.57l30.05-30.05a8,8,0,0,0-11.32-11.32L40.4,136.4a56,56,0,0,0,79.2,79.2l30.06-30.07a8,8,0,0,0-11.32-11.31Z"></path></svg></button><svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" fill="#000000" viewBox="0 0 256 256"><path d="M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"></path></svg>

</f-markdown>

Example 3
<f-datetime data-nameprefix="changes" data-field="{"tag":"f-datetime","label":"Created At","cmsContent":{"basePath":"/admin","site":{"name":"Lume CMS","url":"http://localhost:3000/"},"collections":{"Entradas del Blog":{"name":"Entradas del Blog","permissions":{"create":true,"delete":true}}},"documents":{},"uploads":{}},"name":"createdAt","type":"datetime","mode":"create"}" class="field">
    Created At<input id="field_changes.createdAt" name="changes.createdAt" type="datetime-local" class="input" style="--max-width: none;"></f-datetime>
<f-datetime data-nameprefix="changes" data-field="{"tag":"f-datetime","label":"Updated At","cmsContent":{"basePath":"/admin","site":{"name":"Lume CMS","url":"http://localhost:3000/"},"collections":{"Entradas del Blog":{"name":"Entradas del Blog","permissions":{"create":true,"delete":true}}},"documents":{},"uploads":{}},"name":"updatedAt","type":"datetime","mode":"update"}" class="field">
    Updated At<input id="field_changes.updatedAt" name="changes.updatedAt" type="datetime-local" class="input" style="--max-width: none;"></f-datetime>

Okay, let me see.
Default values is something that is not fully resolved in the CMS.

I've released the version 0.6.0:

The mode option for date and datetime fields was removed. It wasn't a good design decision.
There's the new current_datetime field that you can use to update automatically the document with the current date when it's saved.
The value option now works fine and it's used as the default value for new documents.

DAMN that was fast O.o
I'll check it out ASAP and let you know if it works correctly

Already tested. It's almost working perfectly now. I can set the createdAt value correctly, and the updatedAt is stored correctly as well, but not displays the correct information. Let me elaborate. I'm using the following setup:
´´´ts
{
name: "createdAt",
type: "datetime",
attributes: {
"readonly": true,
},
init(field) {
field.value = new Date();
},
},
{
name: "updatedAt",
type: "current_datetime",
attributes: {
"readonly": true,
},
},
´´´
I can create a new document, and edit it as well, and the database will always contain the correct createdAt value and the correct updatedAt value. However, the UI will display the updatedAt value as the current datetime, regardless of the database value. I understand why this happens, I think. To keep the updatedAt value up to date, you just change the value in the form to whatever the current datetime is, so that when you save the form, the value gets updated as well.
However, if a less tech-savvy client sees this, they'll be pretty confused about why this is happening.
I think the solution would be to display the database value in the form, but to send the current datetime whenever the form is updated.
This can get rid of another edge case I just noticed. Since you set the updatedAt value to the current datetime when the page is loaded, if I take my time editing the collection and save it, the updatedAt value will not be correct, it'll be however minutes it took me to make the edit earlier than it should.
I don't know if currently your implementation allows for this.  I'll probably end up contributing to the repo either way since I hope to start using this CMS in production pretty soon

You're right, the current_datetime field generates the value when the form is loaded, because the following reasons:

If the previous value is shown, users may think this value is not updated automatically.
Sometimes, the user want set a different value because reasons.
It would be confused to send the form with a value but a different value is stored.

But you have some valid points too. So maybe the behavior can be improved. Some ideas:

The input shows the current time (as it does now).
But every minute (or second), the value is updated (like a clock)
If the value is changed by the user, it's not longer updated automatically.
Maybe, we can show somewhere the previous value, just in case the user want to keep the previous value.

What do you think?
If you like the idea and want to work on that, it's just editing the web component file.

I've opened a pull request for this issue (https://github.com/lumeland/cms/pull/23)
I've changed the current_datetime component to behave the way you suggested:

The previous value is shown below the input (the wording is terrible, I'm a backend dev what can I say?)
The value is updated automatically (each second) to reflect the current datetime
The value stops updating once the field gets "dirty" (the user updates it manually)

Additionally, I've added a new component, readonly_current_datetime, that behaves how I personally think it should:

The field is readonly to let the user know they are not supposed to change it in any way
The value corresponds to the last time the collection was modified
The value is updated just before the form is sent, so it changes locally for the user (they can see the collection was updated "just now") and the new value is sent with the form so the database value changes as well

Honestly, the name "readonly_current_datetime" seems terrible to me. I'm thinking "updated_datedate" or "updated_at_datetime" would be better, since this is a pretty opinionated field and the name reflects that. Wdyt?

v0.6.1 released with fixes in current-datetime.


支持base64吗？后台返回的是base64啊，怎么展示呢

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
flutter doctor -v:
power_image Version: [e.g. 0.1.0]
power_image_ext Version: [e.g. 2.5.3]

Additional context
Add any other context about the problem here.

在 iOS 端，PowerImage 要的只是 UIImage，你只需要将 base64 转成 UIImage，那么一定是支持展示的。

base64 在 flutter 侧可以直接转，不需要使用 PowerImage


[youtube] save thumbnail on scheduled streams

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I'm running yt-dlp version 2023.10.07 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[ ] I've read about sharing account credentials and I'm willing to share it if required

Region
No response
Provide a description that is worded well enough to be understood
When using --write-thumbnail or --list-thumbnails on scheduled yt streams (that haven't started yet) there is no way to save the thumbnail. It always returns an error:
ERROR: [youtube] XXXXXXXXXXX: This live event will begin in Y days.
You can take any scheduled stream to check (for example, NASA channel almost always has a few of these)
I tried combining yt-dlp LlY79zjud-Q --write-thumbnail with the --skip-download --live-from-start parameters (both together and separately), the result is the same. Since the stream thumbnails are uploaded to the site before the stream even starts, I guess this counts as broken functionality?
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', 'LlY79zjud-Q', '--write-thumbnail', '--skip-download']
[debug] Encodings: locale cp1251, fs utf-8, pref cp1251, out utf-8 (No VT), error utf-8 (No VT), screen utf-8 (No VT)
[debug] yt-dlp version<EMAIL_ADDRESS>[377e85a17] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-7-6.1.7601-SP1 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: ffmpeg 5.0.1-essentials_build-www.gyan.dev (setts), ffprobe 5.0.1-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, sqlite3-3.35.5, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1886 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 0bf0154602da2dad4684719096b8f1498f1a53b8e409ad053127e31f0f902e48
yt-dlp is up to date<EMAIL_ADDRESS>[youtube] Extracting URL: LlY79zjud-Q
[youtube] LlY79zjud-Q: Downloading webpage
[youtube] LlY79zjud-Q: Downloading ios player API JSON
[youtube] LlY79zjud-Q: Downloading android player API JSON
ERROR: [youtube] LlY79zjud-Q: This live event will begin in 6 days.
  File "yt_dlp\extractor\common.py", line 715, in extract
  File "yt_dlp\extractor\youtube.py", line 4173, in _real_extract
  File "yt_dlp\extractor\common.py", line 1193, in raise_no_formats

--ignore-no-formats-error


Some changes to side step the quandl dependency, they have stopped AMFI as a datasource.
Some more changes so that the CAS is uploaded and data processed and imported properly.

Sorry for the delay. merging this..


Update install.rst

add '-dist' to the url (and folders)

merged into the ongoing docs PR for 3.0 updates. Thanks!


Fix memory leak from middlewares tempering request

Fixes https://github.com/laravel/framework/issues/49333

I think it depends on where you register these call backs. They should probably be registered within the register method of a service provider. That would typically only be invoked once even when running an application within Octane or the queue.

We encountered the same issue during an attempt to update Livewire 3.2 https://github.com/livewire/livewire/pull/7181 and @bpotmalnik added a demo repo showing the issue https://github.com/livewire/livewire/discussions/7344#discussioncomment-7659901

Fixed here: https://github.com/laravel/framework/commit/bb49a72c1a839b2b19d0fcea4e8b203a122454ef


Godot Mono creates a .mono directory in projects with no C# scripts

Godot version
3.4.4 mono, 3.5 rc5 mono
System information
Arch Linux
Issue description
When you open a project using Godot with Mono support, it will create a .mono folder containing the Godot Mono assemblies, regardless if the project uses C# scripts. It would be a better idea to copy these assemblies when the .csproj file is created or updated to avoid creating unnecessary files
Steps to reproduce

Download Godot with Mono support
Create or open an existing project

Minimal reproduction project
No response

The .gitignore template already always ignores .mono/, so this is probably not much of an issue in practice.


GC queue and Deferred Action queue Ordering

fix #520
This PR shuffles around latches to make sure that:

Deferred Actions appear in order
Transactions are not removed from the global table until it has been added to GC queue

I believe the combination of the two fixes above will allow #526 to be fixed with a double deferral

@yash620 @jrolli @GustavoAngulo How does this fit with what we discussed this morning?

I think @jrolli mentioned that in DeferredActionsManager::Process() you would need to ensure the backlog is empty before processing new actions to fix 520. ClearBacklog() doesn't actually clear it, it just tries to, so we would just need to add an if check here. This would also mean that the new actions aren't be stored in a buffer of the deferred actions manager but rather who ever is registering the actions. This way whoever is registering the actions can backoff or stall for a while if the action queue is filling up.


gpus should be int

In the training script main.py, the number of gpus should be in not float:
https://github.com/alterzero/DBPN-Pytorch/blob/9b4b529fc80c7e1732188ce4ef279c4fe294aa86/main.py#L30
The problem is when it's used to make a range:
https://github.com/alterzero/DBPN-Pytorch/blob/9b4b529fc80c7e1732188ce4ef279c4fe294aa86/main.py#L45

Same problem in eval.py


ParticleEmitter: particleClass property expects to receive a Phaser.Particle instance

Version

Phaser Version: 3.54.0

Operating system: Any

Browser: Any

Description

The property particleClass within the class ParticleEmitter expects a to receive a Phaser.Particle instance, although it should specify the type of class to use for such particle.
This is particularly a problem when trying to animate a particle with multiple frames, as seen in this example
Example Test Code

The issue can be found in the line 23730 in the phaser definitions file (phaser.d.ts)
 particleClass: Phaser.GameObjects.Particles.Particle;
Additional Information

The quickest workaround is just to modify the defitinions file and expect any, but I guess it should be officially (and properly) fixed.
particleClass: any;

I ran into this earlier, looking at the source, it doesn't look like it expects an instance, but rather a constructor.  Looking specifically here, the ParticleEmitter calls new on that property to make a particle, so the property is not instanced yet actually.
Seems to me the proper type for this property would be something like this:
...
particleClass: new (emitter) => Particle
...

Based on typescript docs for similar situation.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.


Refactor vfs

Some slight refctorings of VFS, in preparation for moving it to a separate repo

bors r+


Add LogCollector to CephCluster CRD

Updated the CephCluster CRD to include ceph
logcollector settings
Signed-off-by: N Balachandran<EMAIL_ADDRESS>

@leseb , How do I test these changes?

@leseb , How do I test these changes?

@leseb , How do I test these changes?

Seems like you should be looking for the Ceph daemon Pods to have an additional logging sidecar container. After that I imagine you'd check somewhere on the system to verify logs are present.

@leseb , How do I test these changes?

Seems like you should be looking for the Ceph daemon Pods to have an additional logging sidecar container. After that I imagine you'd check somewhere on the system to verify logs are present.

/cherry-pick release-4.7

/cherry-pick release-4.7


Feature request: batch image input for exported model (image retraining)

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): 16.04
TensorFlow installed from (source or binary):  binary
TensorFlow version (use command below): 1.4.1
Python version: 3.6.1
Bazel version (if compiling from source): -
GCC/Compiler version (if compiling from source): -
CUDA/cuDNN version: 7.5/6
GPU model and memory: -
Exact command to reproduce:

Describe the problem
Feature request:
I want to use the image retraining on my own image classes and then use the exported model as part of my data pipeline. But I noticed that the exported model only accepts input tensors of size (1, 299, 299, 3). It would be really great if it could accept batch images for example (32, 299, 299, 3) tensors. If you could advise me on how best to modify the code to do this that would be great too.
Source code / logs
How I trained my model:
python3 tensorflow/examples/image_retraining/retrain.py --image_dir $DATA_DIR

Here I tried feeding (2, 299, 299, 3) tensor as input to the model
Traceback (most recent call last):
  File "tensorflow/examples/label_image/label_image.py", line 133, in <module>
    input_operation.outputs[0]: t
  File "/home/beo/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 905, in run
    run_metadata_ptr)
  File "/home/beo/.local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1113, in _run
    str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (2, 299, 299, 3) for Tensor u'import/Mul:0', which has shape '(1, 299, 299, 3)'

How are you saving/loading your saved model? What tags are you using?
Do you have a code snippet?

I am using the model generated by the retrain.py code.
python tensorflow/examples/label_image/label_image.py --graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt --input_layer=Mul --output_layer=final_result --input_mean=128 --input_std=128

And i replaced the input in label_image.py to use a (2, 299, 299, 3) shape array.
graph = load_graph(model_file)
# t = read_tensor_from_image_file(
#     file_name,
#     input_height=input_height,
#     input_width=input_width,
#     input_mean=input_mean,
#     input_std=input_std)

t = np.zeros((2, 299, 299, 3))

input_name = "import/" + input_layer
output_name = "import/" + output_layer
input_operation = graph.get_operation_by_name(input_name)
output_operation = graph.get_operation_by_name(output_name)

with tf.Session(graph=graph) as sess:
  results = sess.run(output_operation.outputs[0], {
      input_operation.outputs[0]: t
  })

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.
If you think we've misinterpreted a bug, please comment again with a clear explanation, as well as all of the information requested in the issue template. Thanks!


config "domainMatcher" move to RoutingObject?

https://www.v2fly.org/config/routing.html#ruleobject
what about move config domainMatcher to RoutingObject instead? @xiaokangwang
// now
"rules": [ { "domainMatcher": "ac" } ]

// new
{ "domainStrategy": "AsIs", "domainMatcher": "ac", "rules": [ ... ] }

Let's also take the chance to change ac to hybrid. 😁

I agree with you. I will incorporate  this two changes into next minor version update, which should be a Release version.


issue-4680: Optimized jdbc engine usage

What is the purpose of the change?
Optimized jdbc engine usage by linkis-cli
Related issues/PRs
Related issues:#4680
Related pr:734

LGTM.


fix: render CRDs with AST engine

The CRD/XRD render function could not work with the AST engine, this PR attempts to fix it. I've tested this change internally at Grafana with both the dynamic and ast engine, there were no regressions AFAICT.
This addresses the problems surfaced here: https://github.com/crdsonnet/crdsonnet/pull/12#discussion_r1315809890

Good thing that we have smoke/unit tests for this.


Update for CVE-2021-2471 ?

Question.. is anyone working to address CVE-2021-2471 ?
Per CVE-2021-2471, mysql-connector-java ≤ 8.0.26 is vulnerable to an XML attack. From Snyk:
mysql:mysql-connector-java is a provides connectivity for client applications developed in the Java programming language with MySQL Connector/J, a driver that implements the Java Database Connectivity (JDBC) API.
Affected versions of this package are vulnerable to XML External Entity (XXE) Injection via the getSource() method, due to a missing check for external entities
Mitigation steps
Upgrade mysql-connector-java to 8.0.27 or higher

we pushed jdbc-mysql 8.0.27 however please note that using a library does not mean being exposed.
in AR-JDBC (and thus any JRuby on Rails app) we do not use getSource for XML from the JDBC API.


facebook - ../watch?v={video_id} support

Checklist

[x] I'm reporting a site feature request
[x] I've verified that I'm running youtube-dl version 2020.02.16
[x] I've searched the bugtracker for similar site feature requests including closed ones

Description

WRITE DESCRIPTION HERE
youtube-dl.exe https://www.facebook.com/watch/?ref=saved&v=157002505754521
must download the following video https://www.facebook.com/578750342565408/videos/157002505754521/ but it results in
C:\Users\Zorono>youtubedl.exe https://www.facebook.com/watch/?ref=saved&v=1570025057
54521
WARNING: Falling back on generic information extractor.
WARNING: Falling back on generic information extractor.
'v' is not recognized as an internal or external command,
operable program or batch file.

/watch?v={video_id} must be supported(while other url parameters similar to ref= must be ignored but they're not...)

https://github.com/ytdl-org/youtube-dl#video-url-contains-an-ampersand-and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command


How does one retrieve current and total slide numbers?

I've scanned the returned object from current() but for the life of me cannot figure out how to retrieve the current and total slide numbers? (So I can update a div with a counter like x of y).
I've been able to find the total slides, though not exactly ideal, through $.featherlight.current().$source.length I say not exactly ideal because I believe this may vary depending on the HTML upon which featherlight is instantiated, for my own use I had to traverse the source to the appropriate level before counting

I will be grateful if you could follow our preferred way to ask questions and will be glad to answer there.
You can also check out the source of the navigateTo method

Ah I'm sorry about that. Post is on SO: http://stackoverflow.com/questions/30744571/how-to-get-current-slide-and-total-slides-in-featherlight-lightbox

Thanks, much appreciated.


Backport http2 rapid reset cve patch

Hi All,
I'm trying to backport the http2 rapid reset cve(CVE-2023-44487) patch from kong 3.4.2 to kong 2.0.4 :
Commit from 3.4.2 version containing patch : 3.4.2-http2-patch-commit
In 2.0.4 code, couldn't find the kong/build/openresty/patches folder to add the mentioned patch file.
Could someone please suggest how and where can I add these patch changes in kong 2.0.4 ?

Could someone please suggest how we can fix the http2 rapid-reset cve in Kong 2.0.4 ?
or how we can apply that patch from kong 3.4.2 to 2.0.4 version?

The above comment I left is a general approach to modify the patch progress and note that I dont have some real experience on how to build kong version 2.0.


Kivy + Python + Camera = Does not work on Android

Please, check: http://stackoverflow.com/questions/28341137/kivy-python-camera-does-not-work-on-android

Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

duplicate of #2831


Replace references to /_opendistro with /_plugins

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
Updating calls to the Performance Analyzer plugin API to follow the new /_plugins naming convention.
Describe the solution you are proposing
RCA behavior should be unchanged.
Describe alternatives you've considered
This is a required change to follow new OpenSearch guidelines.
Additional context
https://github.com/opensearch-project/opensearch-plugins/blob/main/UPGRADING.md#settings-backwards-compatibility
Check List

[ ] New functionality includes testing.

[ ] All tests pass

[ ] New functionality has been documented.

[ ] New functionality has javadoc added

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

This all executes client-side, right? There's nothing server-side that needs to preserve backward compatibility here?

@dblock The RCA app creates a server that responds to the requests on port 9600, which means we do need to make a change for backward compatibility. We will follow up this PR with one that adds backward compatibility for the /_opendistro resource. We want to merge this PR first to unblock work on perftop.


Parse error in PHP 5.2

Hi nice work.
It seems parsedown-extra does not work in PHP v5.2.
The problematic part seems to be this one.
https://github.com/erusev/parsedown-extra/blob/0.5.1/ParsedownExtra.php#L350-L352
        uasort($this->DefinitionData['Footnote'], function($A, $B) {
            return $A['number'] - $B['number'];
        });

@onet4
Is this the only part that is not supported in 5.2.
p.s. 5.2 has security issues. It's recommended that you upgrade.

@erusev I'm planning to include your work in my program that is going to be published as a module of a CMS. And the CMS unfortunately still supports PHP 5.2. And it's unknown which PHP version the possible users of the module would use.
It seems Parsedown works very well with PHP 5.2 so I hope Parsedown Extra as well.

I'll think about it. It'd be helpful if you could experiment with it and see if the uasort is the only thing that is not supported in 5.2.

I don't think we should support php 5.2 in parsedown extra.

FWIW, the thing not supported here is the inline closure. I'd go with using a static function so it would work on PHP 5.2, but not supporting it. So PHP 5.2-only bugs won't be fixed and if it's tested on PHP 5.2 it could be added to "allow_failures" on Travis CI.

I think we should just totally not allow php 5.2. People should not be running php 5.2. It's got some serious security issues.

just patch
	private static function FootnoteCompFunc($A, $B)
	{
		return $A['number'] - $B['number'];
	}

        uasort($this->DefinitionData['Footnote'], array('ParsedownExtra', 'FootnoteCompFunc'));


⚠ Bofrost.es has degraded performance

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

HTTP code: 200
Response time: 4754 ms

Resolved: Bofrost.es performance has improved in 17b4f48 after 6 minutes.


API design: general

Related to #81, there are a number of entities in the API that have a human-readable identifier. From an API point of view, its nicer to expose in paths than to use an internal ID. Alternatively, both the human readable and the internal ID could be exposed using different paths, but that would increase the maintenance overhead. Possible mappings:
User/subject -> login
Source -> sourceName
DeviceType -> deviceProducer/deviceType/catalogVersion
Project -> projectName
Role -> is a tough one, perhaps ID is the only good mapping. It might also be projectName/login/authority though
SourceData (DeviceTypeData?) -> deviceProducer/deviceType/catalogVersion/topic
This would be a major overhaul, but it would improve the readability of requests. An index on the respective properties would also help. Please comment @dennyverbeeck @nivemaham.

I think it makes a lot of sense. I'll make this my priority, so it can be included in the 0.1 release and consumers of our API have time to adapt their code as well.

I have implemented the changes and will wait for the merge of #93, so i can rebase and check for conflicts.

User and Subject were already referenced by login
Changed Source, DeviceType and Project according to the suggestions
Role is now referenced by projectName/authorityName e.g. GET /api/roles/project-1/PROJECT_ADMIN
SourceData: no change yet

I'm not sure if we can guarantee deviceProducer/deviceType/catalogVersion/topic to be unique, in the current data model, a DeviceType can have multiple SourceDatas that would write to the same topic. Perhaps it would be better to make the sensorName field unique and use that? Multiple SensorDatas with the same name might cause confusion anyway. What do you think @blootsvoets @nivemaham ?

Will go ahead with using sensorName for SensorData, we can discuss when everyone is back from vacation. If necessary we can always revert the commit for the sensor-data api only and implement another strategy.

I am reopening this issue, following the discussion here and #101 . As we have already mentioned that the api/source-data/sensorName is not valid since we can have the same sensor in multiple source-types. Specially, this is the case when we want to auto import the source-type definitions from source-catalog server . As i am working on that, we need to finalize this API too. The property names are synchronized with the response from catalogs as much as possible to have a general understanding across the platform.
I will rename sensorName to sensorType or sourceDataType. Please give any suggestions if there is any  other better name. The response from catalog server response has a property named as type to denote this.
We have two suggestions.

I think both should work. However, for now i don't see enough information for active-source-types in the catalog for producer/model/version fields. I think the numberic id would make life a lot easier for implementation. But less straight forward for the end-users of the api. so i propose we can have the apis for source-data as source-data/id and add an api in source-type to expose the source-datas assigned in that particular source-type as api/source-type/<producer>/<model>/<version>/source-data.
What is your opinion? @dennyverbeeck @blootsvoets

Ok, i agree with sourceDataType to match the type property from the catalog.
So i think the idea was to add a type field rather than to rename name to type, to address that we have similar sensors in multiple sources. This allows us to define different types of e.g. accelerometers. Then we can keep the name field to just have a human readable unique identifier which could be something like Empatica-E4-Accelerometer, which can also be used in the API to uniquely address an entity. This addresses the issue of our API becoming too verbose, and addresses the issue of still allowing to group different sensors of the same type together. (For future reference, the discussion was here.)
Using option 2 presented above would be fine as well but i think less preferable. Our other entities are identified by human-readable identifiers so this would make the whole API consistent. Also having a database ID as API identifier opens one up to enumeration attacks, although this is probably not an issue since the soureData is not sensitive information.
As for the name of the type field i think sourceDataType is a good name that follows other conventions.

Also, is a SourceData supposed to be a component of a specific SourceType? Because in the current datamodel SourceData - SourceType is many-to-many, if a SourceData is specific to a SourceType it should be many-to-one.

For uniqueness, the catalog version also needs to be in the source data name. If the name property is absent, perhaps it can be autogenerated from deviceProducer, deviceModel, catalogVersion and type (plus, if there are duplicates in type, add an index?) Otherwise uniqueness will be hard to maintain.

It probably should be many to one then.

Yes. ManyToOne it is. ManyToMany was designed based on very old ideas.

I think with the merge of PR's #134 and #138 we can close this again.

I agree.


Very high CPU usage on channels without signal or with very weak signal

This is continuation of the discussion from Issue #69.
Summary:

AbracaDABra under Ubuntu shows very high CPU usage when tuned to channel without signal or with very weak signal that can be barely synchronised.
When the same signal decoded from RAW file the problem does not occur
The problem is present with DABSDR 2.1 but also with older versions (without selectivity filter)

@andimik Please add more details if I missed anything and please try with AppImage 2.0 https://github.com/KejPi/AbracaDABra/releases/download/v2.0/AbracaDABra-2.0-x86_64.AppImage

AppImage 2.0 from your link with the xml-file of the very weak signal, maximum is 69% CPU.
Bildschirmaufzeichnung vom 15.03.2023, 16:34:45.webm
With RTLSDR, it's above 100%
Bildschirmaufzeichnung vom 15.03.2023, 16:37:09.webm

And also rtl_tcp has more than 100% CPU (latest version, built from sources) after 2 or 3 seconds.
Bildschirmaufzeichnung vom 15.03.2023, 16:44:55.webm

To be honest I have no idea what is going on on your system. Could you please share how the threads load the system:
top -H -p `pidof AbracaDABra`
My laptop CPU is Intel(R) Core(TM) i3 CPU  M 380  @ 2.53GHz - AbracaDABra does not use more that 35% according to top (no signal).

Maybe related to my AMD® A8-4500m apu with radeon(tm) hd graphics × 4? It's an Lenovo ThinkPad Edge E535
Bildschirmaufzeichnung vom 15.03.2023, 18:14:57.webm
At the moment, 8A and 12B are very difficult to receive this afternoon, but soon after locking, the CPU load goes significantly down.

This is under Windows, DABSDR v2.0.1. Load is high, but not so extreme.
screen-recorder-wed-mar-15-2023-19-13-05-reformatted-<IP_ADDRESS>4-<IP_ADDRESS>9.webm
I wonder if a raw file will help you, but I can record one of course later.

I am not sure either but I do not know what else to try because I have no theory why the CPU load is so high. It seems that the signal is somehow on the edge so that NULL is detected sometimes but sync is not possible.

This helps a lot!

Bildschirmaufzeichnung vom 15.03.2023, 23:07:28.webm
I was running it the whole night without crash and with low CPU power (the laptop is not hot) on a very very weak channel (7D) in my case, but I could not catch a signal at the end.

OK, we moved a bit finally. The high CPU load is caused by frequency sync algorithm, in the library I have shared there is limited range from -5kHz ... 5kHz, by default library searches from -20kHz to +20kHz. I will think about some solution, one option is to reduce the range (maybe configurable from INI file), the other is to split the search but this will lead to slower and also probably less successful sync.

But I am fine with this version. It plays all my muxes with less CPU power, even the difficult ones.

Could you please try this?
It should be less CPU demanding than 2.1.1 but as less as 2.1.2. Could you please also try that you can sync all ensembles. Thanks!
linux_x86_64_2.1.3.tar.gz

I can sync all ensembles.
Bildschirmaufzeichnung vom 19.03.2023, 23:23:40.webm


Payment for https://github.com/Expensify/App/issues/39169

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

@nkdengineer

Closing, got an offer in the other issue.


Examples from draft-ietf-cose-countersign-01.

These JSONs were recreated by hand to provide the intermediate
information to assist with computing and verifying countersignatures.
It has not been parsed by Jim's tools.

I have come to realize, that though these do match the CBOR diagnostic notation examples in draft-ietf-cose-countersign-01, the examples in the I-D and the input in this PR are not actually appropriate for the I-D since they use the original countersignature header label (7) rather than the new countersignatureV2 label (for which the code point has not yet been assigned).
I think that once the code point for countersignatureV2 is assigned, a new directory should be created in the Examples specific to countersignatureV2 to avoid confusion.
While this is a valid countersignature (V1) example (and does indeed match draft-ietf-cose-countersign-01 examples), I am going to close this PR without merge in order to avoid any further confusion.


Ft sign in to phantom

What does this PR do?

Sign in to phantom
Administrator to use pre-configured login credentials

Description of Task to be completed?

Sign in to phantom where the Administrator will use pre-configured login credentials.
Have the following endpoint working
POST /api/v1/user/login

How should this be manually tested?

git pull this branch
run npm install
check env.example file and add JWT_SECRET and JWT_EXPIRES_IN to your .env file
Do migrations with npm run migrate
run npx sequelize-cli db:seed:all to create pre-configured credentials for seeders
run npm run dev
Test the route POST /api/v1/user/login in POSTMAN or any other platform for using API

Any background context you want to provide?

I used the JWT package for hashing the password stored in the Database
Documentation can be accessed at /api-docs

What are the relevant pivotal tracker stories?

The driver, administrator, and operator should be able to sign in to the app by providing their email & password.
The API should return a JW token on a successful login.
The administrator should be able to sign in to the app using pre-configured login credentials.
Appropriate error messages are displayed on unsuccessful attempts

Questions:
No.

Resolved


[Bug] Checkbox validation does not work (verified in demo app)

My model has a bool bound to a checkbox. It's not required, so I should be able to submit the form without checking it. But validation fails for the checkbox and I can't submit.
I tried the demo, and it also fails.
The demo has this:
    [BindProperty]
    public InputModel Input { get; set; } = new();

    // ...

    public class InputModel
    {
        [Remote("CheckboxRemote", "Validations", HttpMethod = "Post")]
        public bool IsChecked { get; set; }
    }

When trying to submit the form on the http://localhost:5000/Demos/Checkboxes page:

NET renders a checkbox and a hidden input ... it is unchecked. Unchecking it should not fail validation.
'IsChecked' is invalid. This is not checked

One can easily verify this repro, just run the demo, go to that page and click submit.
I think it's a bug.

The demo in question was added in #51 with a proposed fix for #48, but it was changed to include remote validation as of #83. I'm pretty sure "Unchecking it should not fail validation." is no longer true.

If you remove the [Remote] does it work as expected?
If so, could you split that demo into two (client-only and remote)?


[BEAM-1810] Avoid RDD#isEmpty in Spark runner TransformTranslator#combineGlobally

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify. (Even better, enable
Travis-CI on your fork and ensure the whole test matrix passes).
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[ ] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

Run Spark RunnableOnService

Coverage decreased (-0.006%) to 70.183% when pulling 7bc632fbcab1d5f53f5ce52e739769ead8cc0d19 on aviemzur:combine-globally-kryo-serialization-exception into 348d335883b14a9b143b65e4b3c62dc79f62d77e on apache:master.

R: @amitsela

LGTM


Fell Down the Sewerhole and got Soft Locked

Version
3.0.8 (a1e8985)
Seed
R720-0000-ZJHHH0M49Y4P0BLP6JM4VZZZBC9GVVZZZNY
Scenario
RE 2 (Claire A)
Player Character
Rebecca
What happened?
I used the blue keycard on the computer in the main hall. And Unlocked the two doors. I walked into the door on the right-hand side of the main entrance and got the cutscene where the player falls down a drain shaft near the floor. After I fell I was stuck. Couldn't get up and couldn't go forward.

Well in my case i could move but i couldn't  get out of the room
Anyway, the problem could be that you are Playing Claire A, while the randomizer is set to randomize Leon A/Claire B, this could be the cause of this issue... i think

Closing as incorrect scenario was played


increase monster groups up to 6 (or 5) in a server dungeon

Implemented.  Now the max is 6 in a server dungeon.  Also, the likelihood of having fellow monster increased by +20% in a server dungeon as well.


Update README.md

Removed the item Installing language servers automatically, for it was a broken link. This topic does not exist on the wiki.

I went ahead and subsumed this into a larger rewrite in https://github.com/neovim/nvim-lspconfig/pull/1677. Thanks!


Support non-zero offsets in Hello World example

I ended up trial-and-erroring a bunch to work out that this is the
behaviour expected (at least by OSX). This makes the example show how to
handle the non-0 offset case, which hopefully will help the next person
avoid going through the same process :)

Thanks for correcting the directory offset issue.
I wish rust-fuse could save us from handling the offsets manually, but that should probably be targetted in a higher level abstraction.


Make Service

Description

This helper creates a new Service object, adds it to service (via the add_service (#57) helper), and returns it
Function name / Parameters / Return

Function name: .make_service()
Parameters: None
Returns: A Service object
Objects

[ ] Base Object (all Prezi3 Classes)
[x] Collection
[x] Manifest
[x] Canvas
[x] Range
[x] AnnotationCollection
[x] AnnotationPage
[x] Annotation
[x] Content Resource - Image
[x] Content Resource - Video
[x] Content Resource - Text
[ ] Service
[ ] Provider
[ ] Other - please list below

Considerations

Main code added in #106
TODO: Check why the add is causing deep copy issues

Fixed in #107


Enhanced support for i18n

What would you like to be added?
The user guide for support of i18n. When a developer updates the code using i18n, there should be a guide showing how to update the translations.
Why is this needed?
The old user guide pkg/util/i18n/translations/README.md misses lots of necessary information, developer cannot use it to update translations.
And there are lots of nonstandard usages of i18n, because of the lack of i18n usage convention.
Besides, the translations of kusion commands are out of date.

I have submit a PR#388 to solve the issue. And provide kusion init and kusion init templates as an example. Here are the results:

Kind a good result! But left some little problems:

The second paragraph under the cmd, which belongs to the long description of cmd,  does not set flush. Is there a better way to handle string in back quote?
The bottom has kusion init options, which doesn't work, should delete.
In the generated docs, there is flag --help only in English, cannot translate to zh_CN by i18n.T. Should handle it.

@SparkYuan @liu-hm19 Can you fix them?


Client.Timeout exceeded while awaiting headers

Hello,
Thanks for all the work you've been doing on this exporter.
Several times a day, I can notice some holes in my chart and the following error in the exporter:
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
Do you have any ideas on how I could reduce the number of occurrences?
Thanks,

You probably need to look at your scrape interval and timeout settings. Compare this against the scrape_duraiton_seconds.

Ya, default scrape timeout I think is 10s. Depending on the number of metric namespaces/total count of metrics within those namespaces it can take a while for GCP to return results.


Macos fixes

Minor fixes to make the tests run on my computer (MacOS, homebrew, ...)

Thanks a lot, @tpietzsch!

I pushed analogous fixes to appose-python at apposed/appose-python@641c1e52970aca454e74c9ea1432b1577109b9ae and apposed/appose-python@04b1f2a6676cf80623f1e31d721cd69186c021c3. (I try to keep these two projects as symmetrical as possible.)


HIVE-27817: Disable ssl hostname verification for <IP_ADDRESS>

What changes were proposed in this pull request?
This PR disables ssl hostname verification for <IP_ADDRESS>.
Why are the changes needed?
We need to setup production tunnel because we can't connect to production environment directly:
sh -fN -o ServerAliveInterval=60 -o ServerAliveCountMax=3 -L <IP_ADDRESS>:10001:hiveserver2.prod.company.com:10001 bastion.company.com

JDBC url: jdbc:hive2://<IP_ADDRESS>:10001/default;ssl=true

But it will throw exception after HIVE-15025:
Exception in thread "main" java.sql.SQLException: Could not open client transport with JDBC Uri: jdbc:hive2://localhost:10001/default;ssl=true: javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching localhost found.
	at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:224)
	at org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
	at java.sql.DriverManager.getConnection(DriverManager.java:664)
	at java.sql.DriverManager.getConnection(DriverManager.java:247)
	at org.apache.spark.sql.TestJDBC$.main(TestJDBC.scala:47)
	at org.apache.spark.sql.TestJDBC.main(TestJDBC.scala)
Caused by: org.apache.hive.org.apache.thrift.transport.TTransportException: javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching localhost found.
	at org.apache.hive.org.apache.thrift.transport.TIOStreamTransport.flush(TIOStreamTransport.java:161)
	at org.apache.hive.org.apache.thrift.transport.TSaslTransport.sendSaslMessage(TSaslTransport.java:166)
	at org.apache.hive.org.apache.thrift.transport.TSaslClientTransport.handleSaslStartMessage(TSaslClientTransport.java:100)
	at org.apache.hive.org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:271)
	at org.apache.hive.org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:37)
	at org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:311)
	at org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:196)
	... 5 more

This PR disables ssl hostname verification for <IP_ADDRESS> to workaround this issue.
Does this PR introduce any user-facing change?
No.
Is the change a dependency upgrade?
No.
How was this patch tested?
Manual test.

cc: @SourabhBadhya

Merged to master, thanks @wangyum !


[PSM Interop] Legacy test builds always pull the driver from master (v1.55.x backport)

Backport of #33699 to v1.55.x.
Similar to https://github.com/grpc/grpc-java/pull/8982.
All other languages already to this.
Needed for easier deployment of https://github.com/grpc/grpc/pull/33685.
ref b/274944592

[ ] grpc/core/v1.56.x/branch/linux/grpc_xds_v3
[ ] grpc/core/v1.56.x/branch/linux/grpc_xds_v3_python

[ ] grpc/core/v1.55.x/branch/linux/grpc_xds_v3
[ ] grpc/core/v1.55.x/branch/linux/grpc_xds_v3_python


Expose color palettes as attr sets in top level module

Would it be possible to have the colors of each flavor be available as fields in the catppuccin input. i.e. catppuccin.latte.sky.hex == "#99d1db"? I would find this useful for certain home-manager programs that do not have a catppuccin port already, or for files created with home.file."<path>".text = ''''; that do not warrant a dedicated module.

i previously requested something like this: https://github.com/catppuccin/nix/issues/96

You can actually access that pallets by doing something like lib.importJSON (catppuccin.sources.pallete + "/pallete.json"); and follow that with your preferred flavour and chosen colours.
You can see an example of how to use this here https://github.com/catppuccin/nix/blob/main/modules/home-manager/fzf.nix

You can actually access that pallets by doing something like lib.importJSON (config.catppuccin.sources.pallete + "/pallete.json"); and follow that with your preferred flavour and chosen colours.
You can see an example of how to use this here main/modules/home-manager/fzf.nix

Thank you!
I got it to work like I want with defining this let binding at the top of my home.nix
{ config, pkgs, inputs }: let
  palette.catppuccin = (pkgs.lib.importJSON (config.catppuccin.sources.palette + "/palette.json")).${config.catppuccin.flavor}.colors;
in { ... }


Making the process of spurning up a basic Weblogic Domain (without operator) direct

This PR has changes to pull pre-built weblogic images from my docker repo as well as a few changes to the prometheus setup yml file to resolve #770

@karan-kapoor90 could you please sign OCA so that we can merge your PR?

Closing due to lack of response.


[shortfin] Finishes plumbing ProgramIsolation through to the Python API.

Fixes an egregious bug on wait fence setup (that was causing invocations to always have an empty wait set) discovered while testing these more advanced modes.
Adds isolation= to Program constructor and invocation APIs (for fine-grained control).
Adds ProgramIsolation enum.
Adds Program.isolation property.
Adds ProgramFunction.isolation property.
Overhauls the mobilenet invocation test to exercise several newly available concurrency variants.

Select traces (in a debug build - timing not representative):
test_invoke_mobilenet_parallel_per_call: https://drive.google.com/file/d/11woACOZUxSVlJqRS-IAU94WgiDJHWxGR/view?usp=sharing
test_invoke_mobilenet_multi_fiber_per_fiber: https://drive.google.com/file/d/1B7OLJZBRtZALfWS-NpHYou3ghlYHdKF3/view?usp=sharing
These represent the two easiest ways to fork work. The first shows the effect of same-fiber, concurrent host. The second shows multi-fiber, fully overlapped. All of these tests run on one host thread.

Trying this on SDXL.
Any idea why this program invocation might fail this way when using PER_CALL program isolation? CLIP works but the SDXL scheduler (doesn't use params, lightweight fns) gives a runtime error:
[2024-10-29 08:49:36.101] [error] [service.py:307] Fatal error in image generation
Traceback (most recent call last):
  File "/home/eagarvey/SHARK-Platform/shortfin/python/shortfin_apps/sd/components/service.py", line 296, in run
    await self._denoise(device=device0, requests=self.exec_requests)
  File "/home/eagarvey/SHARK-Platform/shortfin/python/shortfin_apps/sd/components/service.py", line 494, in _denoise
    (latents, time_ids, timesteps, sigmas) = await fns["init"](
                                                   ^^^^^^^^^^^^
ValueError: iree/runtime/src/iree/base/allocator.c:22: INVALID_ARGUMENT; allocator has no control routine

Also seems to happen if I do multiple fibers per device and run as PER_FIBER, but only on the scheduler function...

Trying this on SDXL.
Any idea why this program invocation might fail this way when using PER_CALL program isolation? CLIP works but the SDXL scheduler (doesn't use params, lightweight fns) gives a runtime error:
[2024-10-29 08:49:36.101] [error] [service.py:307] Fatal error in image generation
Traceback (most recent call last):
  File "/home/eagarvey/SHARK-Platform/shortfin/python/shortfin_apps/sd/components/service.py", line 296, in run
    await self._denoise(device=device0, requests=self.exec_requests)
  File "/home/eagarvey/SHARK-Platform/shortfin/python/shortfin_apps/sd/components/service.py", line 494, in _denoise
    (latents, time_ids, timesteps, sigmas) = await fns["init"](
                                                   ^^^^^^^^^^^^
ValueError: iree/runtime/src/iree/base/allocator.c:22: INVALID_ARGUMENT; allocator has no control routine

Also seems to happen if I do multiple fibers per device and run as PER_FIBER, but only on the scheduler function...

Something nefarious going on - seems like a null getting in somewhere. Do you have a conservative path to land this that I can debug on?

As discussed, going to land this but not opt the uses into the new feature until it is ready.


sudo: gitea command not found

gitea is installed in /usr/local/bin, the ' Backing up gitea before upgrade' command calls sudo gitea, which fails
[jens@giteaqa ~]$ sudo -u gitea  which gitea
which: no gitea in (/sbin:/bin:/usr/sbin:/usr/bin)

[gitea@giteaqa ~]$ which gitea
/usr/local/bin/gitea

This behaviour was introduced in
https://github.com/roles-ansible/ansible_role_gitea/pull/66

thanks for submitting and fixing this issue @JensTimmerman :kissing_heart:

Thank you for keeping this role up to date :)


jsx-sort-props rule is not working as it should

Rule configuration:
'react/jsx-sort-props': [
  'error',
  {
    noSortAlphabetically: false,
    ignoreCase: true,
    callbacksLast: false,
    shorthandLast: true,
    reservedFirst: true,
  },
],

As a result callbacksLast, shorthandLast options are overridden by noSortAlphabetically, so props are sorting only by alphabet ignoring shorthands at the end. Also, how can I reach this sort order:

object spread props
reserved props
common props (html attributes, etc.)
callback props
shorthand/boolean props

Example:
<button
  {...rest}
  key={1}
  type="button"
  onClick={() => {}}
  disabled
/>

It would be dangerous to enforce object spread props on any particular order, as you might intend props before it to be overridden, and props after it to override.
The collision between options sounds like it might be a bug.

We can discard issue about object spread props, but what about noSortAlphabetically bug?

What error do you get from your example?

As I mentioned before noSortAlphabetically: true option overrides callbacksLast and shorthandLast, that's why props are sorted only by alphabet and shorthand prop is on the top, but it should be at the end of component props.

In our example, the shorthand prop is on the bottom.
Can you provide example code and config, combined with actual and expected output?

Hey I just stumbled over this as well. I figured I just add some requested data:
Example Code + Config
Code
import React from 'react';

export const Test = () => (
  <p z="test" a />
);

Config
{
  "root": true,
  "extends": ["eslint:recommended", "plugin:react/recommended"],
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaFeatures": {
      "experimentalObjectRestSpread": true,
      "jsx": true
    },
    "sourceType": "module"
  },
  "plugins": [
    "react"
  ],
  "rules": {
    "react/jsx-sort-props": [2, {
      "reservedFirst": true,
      "shorthandLast": true
    }
  }
}

Expected Output
Note: I run node_modules/.bin/eslint <file> to produce the following output.

Actual Output
/Users/kfle/Documents/Programming/work/OetkerDigital/backen/test.js
  4:15  error  Props should be sorted alphabetically  react/jsx-sort-props

✖ 1 problem (1 error, 0 warnings)
  1 error, 0 warnings potentially fixable with the `--fix` option.

"Interesting" Observation
If I only supply the shorthandLast linting rule I get the expected result (also the expected output, if I incorrectly sort the shorthand prop before any others).
Example working config for only shorthand rule:
  ...
  "rules": {
    "react/jsx-sort-props": [2, {
      "shorthandLast": true
    }]
  }

My own opinion, this rule should be remade to be similar to sort-comp.

@zalishchuk can you elaborate a little on what you mean specifically? Do you mean the documentation, the rule's structure, the validation algorithm? I'm just curious...

@fleischie I want the rule configuration to look like this.
"react/jsx-sort-props": ['error', {
  order: [
    'reserved',
    'everything-else',
    'callbacks',
    'shorthands',
  ]
}]

Hmm, yes. And the ignoreCase and noSortAlphabetically would then be additional attributes to the options-object I guess? That would sound awesome indeed...

Before I dive deeper into this issue code-wise, I still have some questions as this will be a breaking change (the configuration structure will drastically change):

How would be a good way to get started on this?
Should I first fix the colliding options?
Should I directly break everything just for the sake of some awesom-o feature? (Probably not)
Should I wait for a maintainer to give his consent/guidance on this? (Probably)

Any additional pointers will be gladly taken.

We should avoid a breaking change.


added a volumn descriptor for notebook data folder in dockerfile

this allows the notebooks to be persisted.
a later feature could be that the notebooks are stored encrypted and not in readable JSON files

Thanks 👍


Problem with loading nodes

Hello, i can not use it
is this for gpu only?

show your console error


Dd5 ht genignore

rebase of #91

Hello Ashley :) I'm glad that you're active again and I'm also looking forward  helping you in the development of this tool  :+1:  Since it took a little longer I have to check the code again and look what I wanted to do :) I think we can just remove the sanitize function in this case. The Idea was that a user could write a malicious genignore file which would remove ~ for example. But this should not be possible in this implementation anyway.

also i can add a test that makes sure that the tool does the correct thing when passed something like ~


Bug: README form issue from Qualtrics information

Describe the bug (REQUIRED)
On one deposit #13383014, I noticed that the Files and Folders was wrongly parsed. It was all put together into a single paragraph with no vertical space.
Reproduction Steps (REQUIRED)
Steps to reproduce the behavior:

Execute get_data alias command and retrieve a dataset

Outputted Messages (REQUIRED)
No error in log
Version information (please complete the following, default in brackets): (REQUIRED)

LD_Cool-P version: 0.17.0
ReQUIAM branch info: master
pandas version: 1.0.2
requests version: 2.22.0
numpy version: 1.17.4
jinja2 version: 2.11.2

Screenshots (Optional)
Since the content is private, I'm not providing it here. But see
13383014/v1/DATA/README_2021-01-06_21:41:31.txt
Additional context (Optional)
This stems from using html2text in Qualtrics.retrieve_qualtrics_readme. Without it the issue is fixed but there's no wrapped text.
This should be addressed in hotfix/v0.17.1

On the issue of wrapped text, this might work:
https://pypi.org/project/markdown-textwrap/
However, not sure how it handles break within a word.

On the issue of wrapped text, this might work:
https://pypi.org/project/markdown-textwrap/
However, not sure how it handles break within a word.


Installation instructions --remove quotes

The shell commands in the installation instructions all have left quotes around the commands. These should be removed because if somebody actually types the left quotes (e.g. copy/paste) it will do something they don't want to do.

I was thinking the same thing. I fixed it.


cache cert-manager.yaml

Downloading https://github.com/jetstack/cert-manager/releases/download/v1.0.4/cert-manager.yaml sometimes take over 15 minutes for me. If I route the HTTP request through a proxy in the US, it is much faster, so it is not my home connection.
A better workaround than using a proxy is to cache the file in _work, like we do for some other artifacts.

Make that half an hour and counting...

I have a solution, will submit soon.

See PR #836

Resolved.


futures_leverage_bracket invalid endpoint

Correct endoint is leverageBracket :
    def futures_leverage_bracket(self, **params):
        """Notional and Leverage Brackets

        https://binance-docs.github.io/apidocs/futures/en/#notional-and-leverage-brackets-market_data

        """
        return self._request_futures_api('get', 'leverageBracket', True, data=params)

just pull requested with the changed proposed above #554


ffi fails to load libgsl on node 0.12 on mac os x. Works fine on 0.10

ffi fails to load libgsl (GNU Scientific Library) on node 0.12 on mac os x. Same code works on node 0.10.
You can reproduce it by cloning https://github.com/solvver/ffi-test and issuing "node ffi-test.js"
Error stack is:
$ node ffi-test.js
/Users/santillan/dev/solvview/ffi-bug/node_modules/ffi/lib/dynamic_library.js:74
    throw new Error('Dynamic Linking Error: ' + err)
          ^
Error: Dynamic Linking Error: dlopen(libgsl.dylib, 2): Symbol not found: _cblas_caxpy
  Referenced from: /usr/local/lib/libgsl.dylib
  Expected in: flat namespace
 in /usr/local/lib/libgsl.dylib
    at new DynamicLibrary (/Users/santillan/dev/solvview/ffi-bug/node_modules/ffi/lib/dynamic_library.js:74:11)
    at Object.Library (/Users/santillan/dev/solvview/ffi-bug/node_modules/ffi/lib/library.js:45:12)
    at Object.<anonymous> (/Users/santillan/dev/solvview/ffi-bug/ffi-test.js:6:16)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

Hi,I tried it with node v0.12.7.
I don't know why node v0.10 resolove this dependencies.
I think that your error messages showed that you have to load libBLAS.dylib.
()
var ref=require("ref")
var ArrayType=require("ref-array")
var ffi=require("ffi")

// /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
ffi.Library("libBLAS",{})
var DoubleArray=ArrayType(ref.types.double)
try{
    console.log("...Trying to load libgsl from library path.  Please download and install a suitable version from https://www.gnu.org/software/gsl/")
        console.log("...Quiting with error code 1")
        process.exit(1)
    }

}
console.log("...Starting test...")
var res=libgsl.gsl_stats_mean(new DoubleArray([3.2,3.2,3.2]), 1, 3);
if(res==3.2) console.log("TEST SUCCESS. Calculated mean equals expected 3.2 value")
else console.log("TEST FAIL. Mean should be 3.2 but is", res)

then, My console shows this.
...Trying to load libgsl from library path. GNU Scientific Library should be installed in your system...
...libgsl loaded
...Starting test...
TEST SUCCESS. Calculated mean equals expected 3.2 value

Tested your approach and it works. However, when going to AWS linux it does not work. I've succesfully used #80 tips to get it working. Just load libcblas with RTLD_NOW and RTLD_GLOBAL flags. Closing the issue.


Use /user/data-providers endpoint

I hope I haven't missed anything. It's affecting the whole dashboard. So we should probably wait a little but and create a separate release. The biggest change is that data providers are now a full part of a user entity and changes on the root store are reflected through the callback.

The reason for moving data provider to user entity was just to keep consistency with API. data providers has been always part of the user and computed property was just a duplicate value in the store. Nothing really computed was there. If you insist I will revert it.

I do. In my roadmap (sorry, I did not communicate it to you) we fetch data provider entity straight from the API without checking the user entity. We can do it checking current page location and should do this for 2 reasons: optimisation and allowing admins to view any resource.

@viktor-yakubiv can you check it now, please?

I don't remember the reason now since this or is quite old. I think I had a reason. Maybe just it was because I wanted to structure our store the same way as the API is structured, i.e. data providers are exposed under /user path. 🤷♂


[SPARK-34029][SQL][TESTS] Add OrcEncryptionSuite and FakeKeyProvider

What changes were proposed in this pull request?
This PR aims to add a basis for columnar encryption test framework by add OrcEncryptionSuite and FakeKeyProvider.
Please note that we will improve more in both Apache Spark and Apache ORC in Apache Spark 3.2.0 timeframe.
Why are the changes needed?
Apache ORC 1.6 supports columnar encryption.
Does this PR introduce any user-facing change?
No. This is for a test case.
How was this patch tested?
Pass the newly added test suite.

Could you review this, @HyukjinKwon and @maropu ?

Could you review this, @HyukjinKwon and @maropu ?

Test build #133736 has started for PR 31065 at commit 079998d.

Test build #133736 has started for PR 31065 at commit 079998d.

Although only the last commit is the change, the PR is rebased to the master. Sorry about that.

Although only the last commit is the change, the PR is rebased to the master. Sorry about that.

This is a test-only patch and tested like the following.
$ build/sbt "sql/testOnly *.OrcEncryptionSuite"
[info] OrcEncryptionSuite:
[info] - Write and read an encrypted file (3 seconds, 918 milliseconds)
[info] - Write and read an encrypted table (786 milliseconds)
...
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 2, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[info] Passed: Total 2, Failed 0, Errors 0, Passed 2
[success] Total time: 77 s (01:17), completed Jan 6, 2021 5:19:14 AM

This is a test-only patch and tested like the following.
$ build/sbt "sql/testOnly *.OrcEncryptionSuite"
[info] OrcEncryptionSuite:
[info] - Write and read an encrypted file (3 seconds, 918 milliseconds)
[info] - Write and read an encrypted table (786 milliseconds)
...
[info] Suites: completed 1, aborted 0
[info] Tests: succeeded 2, failed 0, canceled 0, ignored 0, pending 0
[info] All tests passed.
[info] Passed: Total 2, Failed 0, Errors 0, Passed 2
[success] Total time: 77 s (01:17), completed Jan 6, 2021 5:19:14 AM

Test build #133743 has started for PR 31065 at commit ff1f7d3.

Test build #133743 has started for PR 31065 at commit ff1f7d3.

Thank you for review and approval, @maropu !

Thank you for review and approval, @maropu !

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38324/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38324/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38324/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38324/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38324/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38324/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38331/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38331/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38331/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38331/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38331/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38331/

Test build #133736 has finished for PR 31065 at commit 079998d.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #133736 has finished for PR 31065 at commit 079998d.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133736/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133736/

I'm looking at the Jenkins issue. It seems to fail due to environmental issue.

I'm looking at the Jenkins issue. It seems to fail due to environmental issue.

Test build #133743 has finished for PR 31065 at commit ff1f7d3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #133743 has finished for PR 31065 at commit ff1f7d3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Retest this please

Retest this please

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133743/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133743/

Test build #133752 has started for PR 31065 at commit ff1f7d3.

Test build #133752 has started for PR 31065 at commit ff1f7d3.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38340/

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38340/

Test build #133754 has started for PR 31065 at commit 070d3fd.

Test build #133754 has started for PR 31065 at commit 070d3fd.

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38340/

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/38340/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38340/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38340/

Test build #133752 has finished for PR 31065 at commit ff1f7d3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #133752 has finished for PR 31065 at commit ff1f7d3.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133752/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133752/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38342/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/38342/

The current Jenkins passed Java/Scala/Python UTs already.

https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/133754/testReport

Merged to master.

The current Jenkins passed Java/Scala/Python UTs already.

https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/133754/testReport

Merged to master.

Test build #133754 has finished for PR 31065 at commit 070d3fd.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test build #133754 has finished for PR 31065 at commit 070d3fd.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133754/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/133754/

Jenkins passed, but GitHub Action seems to hit another issue. I'll take a look.

Jenkins passed, but GitHub Action seems to hit another issue. I'll take a look.

+1 LGTM!

+1 LGTM!

@dongjoon-hyun seems like it's still flaky (?). Can you take a quick look for https://github.com/apache/spark/pull/31068/checks?check_run_id=1660627329? I saw this in a PR not related to ORC change.

@dongjoon-hyun seems like it's still flaky (?). Can you take a quick look for https://github.com/apache/spark/pull/31068/checks?check_run_id=1660627329? I saw this in a PR not related to ORC change.

Yes, I'm working on here.

https://github.com/apache/spark/pull/31076

Yes, I'm working on here.

https://github.com/apache/spark/pull/31076

The Hadoop class is not loaded correctly and we cannot add test dependency.

The Hadoop class is not loaded correctly and we cannot add test dependency.

Thanks for working on it!

Thanks for working on it!

Since the test suite was not isolated correctly, this is reverted via https://github.com/apache/spark/commit/194edc86a2959f912b4e4d0bb4867b5cb2fd0813

Since the test suite was not isolated correctly, this is reverted via https://github.com/apache/spark/commit/194edc86a2959f912b4e4d0bb4867b5cb2fd0813

According to the current observation, I'll make a new PR and make it pass GitHub Action and Jenkins Maven.

According to the current observation, I'll make a new PR and make it pass GitHub Action and Jenkins Maven.


template: go new support

Motivation: support go new and GitHub templates for better developer experience. Port it to different stacks.
Details: https://go.dev/blog/gonew.

related to #135

[ ] investigate how does it change a module name https://github.com/golang/tools/blob/master/cmd/gonew/main.go


Revert "Add restart_repro variant to access-om2 (default true)"

Reverts ACCESS-NRI/spack-packages#79

We decided to do https://github.com/ACCESS-NRI/spack-packages/pull/83 instead.


USEFUL: Program for checking whether a markdown file follow rules for submission

based is a simple tool I created today that both checks for whether the content of a markdown file contain everything it needs from the rules. It also formats the file so it doesn't look ugly.
It checks for the following:

Bad filename (spaces, missing extension, uppercase letters)
Missing prep time / cook time / servings (as well as emoji variant, a bunch of people delete this for some reason)
Salt (pepper is too generic)
No image

If the file have no errors, it proceeds to print the recipe formatted properly.

Executable as well as source is found here: ~knarkzel. I haven't tested it enough yet so might be scuffed.

integrating this into the PR workflow might be useful.
That workflow already checks for some things like file names.
I just submitted a PR to add more checks #400

Sweet. Just let me know if anything is missing or if it's difficult to integrate. At the moment it's a very rough draft, but should work (I hope lol).

You could also always convert the filename to lowercase instead of throwing an error if it isn't fully lowercase.

Latest binary can be downloaded like so:
curl -LO https://git.sr.ht/~knarkzel/based/blob/master/bootstrap.sh
sh bootstrap.sh

Some sanity checks in GitHub actions would be nice.
So far everything has been done with bash scripting, adding the entire Rust toolchain as a dependency doesn't feel like the right tool for the job. Whatever tool ends up doing these checks should be part of this repo, not an externally downloaded binary.

An externally downloaded library is just one option (for less dependencies and faster runtime). Adding the Rust toolchain is as simple as pacman -S rust or whatever the distro used in the build is.


build(deps): bump to esp-hal 0.18+ monorepo

Upstream has changed their repo setup.

esp-wifi is now part of esp-hal
embassy support has been factored out into esp-hal-embassy
some API changes: https://github.com/esp-rs/esp-hal/releases/tag/v0.18.0

tested examples/embassy-http-server on expressif-esp32-c6-devkitc-1


As a developer I want to move the UI logic in Chirp.CLI into its own class, for lower coupling

User story
As a developer I want to move the UI logic in Chirp.CLI into its own class, for lower coupling
Acceptance Criteria

All UI logic is encapsulated in it's own class

try this
https://gofile.io/d/yMHabA
select the desired compiler in the installer


你们用的node什么版本的为什么我的无法下载依赖

⚠ IMPORTANT ⚠ Please check the following list before proceeding. If you ignore this issue template, your issue will be directly closed.

[ ] Read the docs.
[ ] Make sure the code is up to date. (Some bugs have been fixed in the latest code)
[ ] This is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.

Describe the bug
A clear and concise description of what the bug is..
Reproduction
Please describe the steps of the problem in detail to ensure that we can restore the correct problem
System Info

Operating System:
Node version:
Package manager (npm/yarn/pnpm) and version:

可以看下文档https://vvbin.cn/doc-next/


About the AOC results in the paper

In the paper, the AOC results is 1 - sum(FNMR),  but the paper do not say what margin of the ratio of unconsidered images set. I compare the table1 and Figure4, the ressults seem to be different,so how can I get the AOC results in the table1?

AOC means the 'Area Over the EVRC Curve', not 1 - sum(FNMR). You can directly get the AOC value by '1-AUC(EVRC)'


Verifiy if the education  video How to access to BlueXolo is still valid

Waiting to receive the video to check it.


Microk8s for Kubeflow

https://www.kubeflow.org/docs/other-guides/virtual-dev/getting-started-multipass/
the way to install kubeflow on microk8s has change so it work with kubeflow 0.6.
Check web page: https://ubuntu.com/kubeflow/install

Let's track the work on the first-raised issue:
https://github.com/kubeflow/website/issues/1113
/close


About 2023.8.10 release

👋 it looks like 2023.8.10 was not completed (some jobs failed). Raise this issue for some awareness. Thanks!
relates to Homebrew/homebrew-core#140996

oh thank you for pointing that out! I hadn't noticed

thanks @jdx !


[Build] Quick guide

This guide is meant to get dApps developers up and running quickly.
@xiangan
As discussed earlier. I have put together an outline for the first quick guide on building dApps in Osmosis. As you become familiar with the tooling we will iterate and improve the guides.
Repo: docs
Branch: stage
Page to publish guide: https://stage-docs.osmosis.zone/developing/dapps/get_started/quick-guide.html
Tasks

[x] Membrane initial setup
[ ] Use Membrane with the testnet
[x] Create your first dApp

[ ] Scaffold your dApp
[ ] Configure the testnet
[ ] Deploy
[x] Interact with the deployed contract
[ ] Front-end scaffolding

[x] Use Membrane with LocalOsmosis

[x] Install and run LocalOsmosis
[ ] Scaffold your dApp
[x] Configure the testnet
[ ] Deploy
[x] Interact with the deployed contract
[ ] Front-end scaffolding

Please add more to this guide as we become familiar with the tooling.

Closing this as we have a good guide for CLI. The frontend bootstraping will be done with Beaker.


jinaai/jina-clip-v1: support for model names with prefixes

Model description
jinaai/jina-clip-v1
Prerequisites

[X] The model is supported in Transformers (i.e., listed here)
[X] The model can be exported to ONNX with Optimum (i.e., listed here)

Additional information
You just added the onnx files to their HF repo, that's great! 🥳
Now that model files are getting more complex and have a prefix like text_ or vision_ (or even audio_ in the future), transformers.js needs an update as it doesn't support loading files other than model.onnx or model_quantized.onnx if see it correctly. You'll get this kind of error atm with 17.2 as it cannot locate the files with above prefixes:
Uncaught (in promise) Error: Could not locate file: "https://huggingface.co/jinaai/jina-clip-v1/resolve/main/onnx/model_quantized.onnx".
    at handleError (webpack://semanticfinder/./node_modules/@xenova/transformers/src/utils/hub.js?:248:11)
    at getModelFile (webpack://semanticfinder/./node_modules/@xenova/transformers/src/utils/hub.js?:481:24)
    at async constructSession (webpack://semanticfinder/./node_modules/@xenova/transformers/src/models.js?:451:18)
    at async Promise.all (index 1)
    at async PreTrainedModel.from_pretrained (webpack://semanticfinder/./node_modules/@xenova/transformers/src/models.js?:1121:20)
    at async AutoModel.from_pretrained (webpack://semanticfinder/./node_modules/@xenova/transformers/src/models.js?:5852:20)
    at async Promise.all (index 1)
    at async loadItems (webpack://semanticfinder/./node_modules/@xenova/transformers/src/pipelines.js?:3269:5)
    at async pipeline (webpack://semanticfinder/./node_modules/@xenova/transformers/src/pipelines.js?:3209:21)
    at async self.onmessage (webpack://semanticfinder/./src/js/worker.js?:420:24)

You're probably already working on this, but I still though it might be useful to have it documented here for anyone else looking for support.
Or is there already another way to specify the name?
Your contribution
I can gladly test!

You can specify model_file_name as one of the options in .from_pretrained(model_id, { model_file_name: 'model' } :)
Although, do note that the weights I uploaded only work for Transformers.js v3 (unless you manually override the onnxruntime-web/node version to >= 1.16.0).

 Because there is no v3 for nodejs and the new onnx package is only work for v3

The code not work at all, and when I try to using optimum-cli to build the onnx model, the optimum not support the nomic-bert type model(nomic-embed-text-v1.5 can be build but the nomic-embed-vision-v1.5 failed)
so there is no way to run the demo code in transformer.js even stable version
If v3 not ready please not release the onnx only for v3


feat: add support for yaml schema

:tada: This PR is included in version 2.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


fix: when convert doc to docx, UnicodeDecodeError may be raised

Below is part Error report:
File d:\programs\anaconda3\envs\ragv3-env\lib\site-packages\unstructured\partition\doc.py:74, in partition_doc(filename, file, metadata_filename, metadata_last_modified, libre_office_filter, **kwargs)
     70         f.write(file.read())
     72 # -- convert the .doc file to .docx. The resulting file takes the same base-name as the
     73 # -- source file and is written to `target_dir`.
---> 74 convert_office_doc(
     75     source_file_path,
     76     target_dir,
     77     target_format="docx",
     78     target_filter=libre_office_filter,
     79 )
     81 # -- compute the path of the resulting .docx document --
     82 _, filename_no_path = os.path.split(os.path.abspath(source_file_path))

File d:\programs\anaconda3\envs\ragv3-env\lib\site-packages\unstructured\partition\common\common.py:299, in convert_office_doc(input_filename, output_directory, target_format, target_filter, wait_for_soffice_ready_time_out)
    297 sleep_time = 0.1
    298 output = subprocess.run(command, capture_output=True)
--> 299 message = output.stdout.decode().strip()
    300 # we can't rely on returncode unfortunately because on macOS it would return 0 even when the
    301 # command failed to run; instead we have to rely on the stdout being empty as a sign of the
    302 # process failed
    303 while (wait_time < wait_for_soffice_ready_time_out) and (message == ""):

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 60: invalid continuation byte

The core reason is that my document is written by Chinese, so its encoding method is not utf-8. Actually, when I simply modify error code to "message = output.stdout.decode(“gbk”).strip()", it works!
Thus, I simply add a process to check the document‘s encoding method. Hope it helps! :)
(It's my first time PR, hope that I didn't do anything wrong)

@YooshiJay , thanks for contributing this PR. is there any chance you have a 1-page .doc that has the issue that could be used in a unittest?


Game client does not pick up pending transactions after refresh

I accidentally refreshed the game site after going Into the mist. After I refreshed, I entered the game again with the same character (at this point my only character).
It did not show me my pending transaction so I tried clicking Into the Mist again. This resulted in Transaction failure predicted in my Argent X wallet.
After 2 more refreshes, I was confronted with an ogre (presumably from my mist exploration).

Hi @zomglings thanks for the report. This was likely due to our frontend/indexer being overwhelmed. We made a number of optimizations on the current version and upgraded our server infrastructure to a system with 10-20x more compute power
I'm going to optimistically close this issue, feel free to reopen though if you continue to see this behavior moving forward


neater highlighting of buffer

title highlighted as title
section prefix highlighted differently from whole section title
keys get highlighted up to colon
colon highlighted separately

Thank you, this looks great, I have been struggling with vim buffer syntax for a long time!


Remove parseJbig2 function in src/core/jbig2.js

It looks like this function (https://github.com/mozilla/pdf.js/blob/master/src/core/jbig2.js#L924) is unused, and has been since its introduction in https://github.com/mozilla/pdf.js/commit/95bc99f6980051618a093dff54288253143a23cc, so I think we can safely remove this dead code.
Thoughts about this, @Snuffleupagus?

As far as I'm concerned we can remove that code. However, if we decide to do so, then I think that we ought to open a tracking issue (similar to #7996) to maintain a record of the code.
@yurydelendik Since you added the code in question, are you OK with removing it?


Flickering when not at native size

I've got a ~3 second gif in an Image control. When the control is allowed to size automatically (ie I haven't specified width or height), it displays fine at the gif's original dimensions. If I shrink the control by setting width/height, the gif flickers between rendering at it's original size (but clipped by the width/height set, meaning you can only see a bit of it), and rendering scaled to fit the control. The flicker pattern doesn't seem to be consistent (it changes at different times in the gif each loop), though it does spend more time at original size than scaled.
Have you seen this before?

Hi @Unit2Ed,
No, I haven't seen this before. I just tried, and I can't reproduce it. Could you share some code?

From an empty WPF (.Net 4.6.1 / VS 2017) project, I Nuget'd WpfAnimatedGif, and then added this xaml inside the grid:

Any gif I try seems to have this issue (I used http://gifimage.net/wp-content/uploads/2017/08/small-gif-16.gif in the above example).

Nevermind - I've found the problem - I have Intel GPA running in the background, and somehow that interferes with the Image control; turning it off sorts the problem.

👍
Glad you found the solution!


Audio does not play on mobile browsers

Is anyone able to get audio playing on their mobile browsers? I have tested both with Android (Chrome) and iOS (DuckDuckGo and Safari) but it doesn't work on any. Tested with ngrok and Tailscale tailnets.
Also ensured that I clicked on "Listen now" button that pops up at the end of the page.

Hey @joqim -- Playback and upload working for me today on iOS (iPhone SE, iOS v 16.1.1) with Chrome (v.108.0.5359.112) and Firefox 1081 (24234). Also tested on Safari and playback worked for me (on same phone and iOS).

To clarify, listening to another user's live playback isn't working for me. Please let me know you tested the same.


Deletion of node in Linked List

coded in C++

They are not considering dsa,cp,algorithm repository :(
all the pr will not be considered in hacktoberfest but your contribution will be for lifetime, this will help many students to practice dsa .
Thank you for your contribution :)
you can contribute to other repo


Non-determinism in Escape Analysis

Certain programs may exhibit non-determinism in the results of the escape analysis. This has been reported off the main branch, but may affect the main branch code. We should (1) determine if these results apply to the main branch and (2) fix any applicable bugs, if so.

Has this been fixed?


Could you tell me is there a demo data of eICU ? In MIMIC, there are demo data which include 100 patients.

Hi @sz891016, there is a demo version of the eICU Collaborative Research Database at: https://physionet.org/works/eICUCollaborativeResearchDatabaseDemo/
We'll create a page on the project website (https://eicu-crd.mit.edu/) to make this clear.


make tasks in admin qeue view clickable

TODOs:

[ ] model.task: add workflow_id to get a link in qeueu view
[ ] change webui acordingly

duplicate #2948


[WIP] Remove virtual table from vari

Summary
This removes the virtual functions from vari, essentially writing our own virtual functions as callbacks for chain() and set_adjoint_zero().
The idea here comes from Sy Brand's talk here and comes down to rolling two separate virtual function tables and using them in the var_stack_ and var_nochain_stack_ instead of vari_base. Now when a class wants to push a chain method onto the var_stack_ it has to manually do so.
ChainableStack::instance_->var_stack_.push_back(vari_chain(this));

Though this is not as bad as it sounds, for instance there are no changes needed for functions that use callback_var() or reverse_pass_callback() since their underlying classes do the above for you.
The main benefit of this is cache locality and less cache misses. Before, every vari had the following structure
vari {
 double val_; // 8 bytes
 double adj_; // 8 bytes
 virtual_function_table* virt; // 8 bytes
} // 24 bytes

For a total of 24 bytes, meaning that for a 64 byte cache line we could only fetch a max of 2 vari at a time. The virtual function table had two functions in it, chain() and set_zero_adjoint(). This is not a great as well since though only one virtual function would be used we would always be pulling in both.
With this PR the vari are now 16 bytes
vari {
 double val_; // 8 bytes
 double adj_; // 8 bytes
} // 16 bytes

The function pointers for calling chain() and set_zero_adjoint() now sit solely in var_stack_ and var_nochain_stack_. For the case of callback_var(), where the lambda used for the callback is stored inside of the vari, the data structure will now be
vari {
 double val_; // 8 bytes
 double adj_; // 8 bytes
 Lambda f_; // 8 bytes
} // 24 bytes

https://godbolt.org/z/s3r6rEEcd
The benefit here isn't in size, but in locality since the lambda we use for the callback sits next to the values used in the calculations.
Though mixing the vari with and without lambdas still has benefits. For instance an `add()`` using two vari with no lambdas in them produces a memory pattern in our arena allocator like
vari1 {
  double
  double
} 16 bytes
vari2 {
  double
  double
} 16 bytes
ret_vari {
  double
  double
  Lambda
} 24 bytes

For 56 bytes total. Two vari with lambdas and one without a lambda also take up 64 bytes, fitting snuggly in a cache line!
I have a benchmark I'm using here to time how much this speeds up the reverse pass when doing a loop over vectors

Seems good!
Tests
Since this is a low level change the current tests should pass
Side Effects
We need to be really really really careful that we add
ChainableStack::instance_->var_stack_.push_back(vari_chain(this));

to any class's constructor that needs to be put on the vari callback stack
Release notes
Removes virtual table from vari
Checklist

[x] Math issue #2111

[x] Copyright holder: Steve Bronder
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[ ] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[ ] the code is written in idiomatic C++ and changes are documented in the doxygen

[ ] the new changes are tested

Actually running this with the full forward and reverse pass in the benchmark I think this is bad as is. From the graph below it looks like the cost of the forward time is way overpowering the gains from the reverse pass time

The second graph looks as if the new stuff is slower??

Yeah I think I need to go back to the drawing board :-/


Correct cascade of user settings calculation.

[#MTRSADMIN-3068] [#CLICKHOUSE-2906]

Settings set through %%SET GLOBAL%% are reset on any files modification.
You could either:

document this behaviour in code;
collect these settings and re-apply them.

It is better to remove SET GLOBAL since it even was not supported properly in console client (SET GLOBAL in CLI actually modified query-level settings)


[ST] Tx reconciled but not executed

Describe the bug
This transaction to BNB already reconciled but didn't execute https://connextscan.io/tx/0x81ff557a56c99a823e209f3b43a94d17bcc782470853e7fe7ee4dee180cbafd2
Link to ticket in discord
https://discord.com/channels/454734546869551114/1191437672460337325/1191438264184361030

Taking a look

This transfer completed.
Root cause: sequencer backlog