infinite streaming sample code

I have re-uploaded the infinite streaming sample code and run go mod tidy already.

kokoro:force-run

Please do not create new PR's unless completely changing the approach. This interrupts reviews and discussions in progress.

To facilitate the review process, could you clarify how this sample will be used?
Thank you for running go mod tidy, it appears there should be changes in the existing /go.mod and /go.sum files, please add those files to this branch.

Bill, can you clarify how this sample will be used? It will help make sure we do the right review and style.

This is part of our speech to text public client library, we don't have corresponding infinite streaming code samples for Golang before.

That sample we already have is for streaming recognition and could work only for 5 minutes due to API limitation.
So I write the new infinite streaming sample to conduct recognition continuously.
That would be pretty practical and helpful to our customers and clients.

Do we need both samples? Can we edit the existing one? If not, would you mind doing a new region tag? If they are distinct samples on different pages, they should have different region tags tracked in the sample tracker.

I have already tested both programs on my laptop and they could work very well.  Our customers will refer to these samples and change corresponding parameters to write their customized program.

Also, looks like you need to run gofmt -w -s . in the golang-samples repo.

Sharing variables between goroutines is generally bad practice. Normally, Go uses channels to communicate between goroutines.

All done for review changes.

(1)The logic for how to implement infinite streaming correctly is quite complicated indeed, otherwise other people would finish it earlier without a lot of efforts.
I have spent a lot of time trying to use channels to implement the correct logic but I gave it up finally because channels could communicate between goroutines but they will block the goroutine until the sender and receiver has finished their work. This logic is not what we want here in infinite streaming because we have bidirectional streams and they need to work independently without synchronization. If you think you have a better idea to implement the correct logic and I could tell customers you would write a new version for them.
(2)There is no need to add test because it couldn't be tested in github repo using CI/CD tools.
One of the programs will read the specific audio file from your local environment and you need to change some parameters according to the corresponding audio features such as Sample Rate to run the program successfully. Also you need to pipe the data reading from audio file into the program because the program will only receive the binary audio data from stdin in memory. It could only be tested in your local environment with corresponding parameters to fit your specific audio files.
Another program will read live data from your microphone in your local environment, can you show me how to add the test?
This is not the production code and it is only an example documentation to show how to implement infinite streaming. Customers would refer to part of the example to write their customized version and modify parameters to fit their specific needs. Some of our customers have tested and utilized the program in their local environment already. The only reason to upload it here is to make it easier for our customers to download and refer to.


Check node info for protocol changes and adapt to it

Task description
When protocol values change, like changed minimum pow score, we should start using the value for new blocks right away, so the blocks have the correct pow score to get accepted
Related tip https://github.com/iotaledger/tips/blob/dynamic-pow/tips/TIP-0037/tip-0037.md
Maybe we should also reduce the node syncing interval for that from 60 seconds to a lower value
Requirements
N/A
Acceptance criteria
N/A
Creation checklist

[ ] I have assigned this task to the correct people
[X] I have added the most appropriate labels
[X] I have linked the correct milestone and/or project

Has been done already.


Kubecf docs search doesn't work

Is your feature request related to a problem? Please describe.
The search mechanism on kubecf docs repo is terrible and/or even broken.
Describe the solution you'd like
We need to understand how hugo(?) search works and if we can make it better.
Describe alternatives you've considered
N/A
Additional context
N/A

This is fixed by now


Regression; OpenXR plugin update causes errorspam when no XR device connected

Describe the bug
Errorspam when no XR device is connected.

Regression, most probably caused by OpenXR Plugin 1.5.1 update.

This is confirmed to be a regression in Unity's OpenXR plugin 1.5.x.

Should be fixed by 1.6.0 Unity OpenXR plugin release.


Made Changes in the UI of Compare page

Before:
https://github.com/user-attachments/assets/37f7ec64-4665-45c1-8d44-003880661456
After:
https://github.com/user-attachments/assets/bc0f0910-11d2-4217-b0a2-835ffd68ede1
ISSUE #878   and   #653

@sanjay-kv Sir please add level 3 as this fixes 2 problems of level 2

can u work on to remove the preloader, its looks ugly

can u work on to remove the preloader, its looks ugly

okay sir

can u work on to remove the preloader, its looks ugly

@sanjay-kv sir can we add skeleton loading instead of that?

sample please

sample please

Sir i think the default is better and simple


Custom meal roles

Add job descriptions, timings, requester, and reminder info to meal formula
Add formula clone so folks don't have to copy all that for a new formula

Originally created by Tom Smyth at 2018-12-11 09:13, migrated from redmine-#9188

Priority changed from ? to 2

By Tom Smyth at 2018-12-11 14:30

Description updated (diff)

By Tom Smyth at 2018-12-26 02:46

Version set to 6.3

By Tom Smyth at 2018-12-26 21:13

Subject changed from Meals/work integration to Custom meal roles

Status changed from New to Closed

By Tom Smyth at 2019-02-17 03:29


Add task creation for mesh manifests

In general, we should document how to create tasks, gives examples of all the task to be created for ingesting a dataset. And cleanup task_creation.py


Memory Problem?

Hi, I clone your code and run train it on WMT English-German task, but it failed with "RuntimeError: cuda runtime error (2) : out of memory at /opt/conda/conda-bld/pytorch_1502009910772/work/torch/lib/THC/generic/THCStorage.cu:66".
I run it on a Tesla K40 which has the same memory capacity of 12GB as your Titan X, and with the default settings.
So I don`t know why this happens, do you have any idea? Thanks

I'm getting the same error on a GTX 1080 with 8GB per card.
RuntimeError: cuda runtime error (2) : out of memory at /pytorch/torch/lib/THC/generic/THCStorage.cu:66

Error happens after training the first epoch when validation:
~/attention-is-all-you-need-pytorch$ python3 train.py -data data/multi30k.atok.low.pt -save_model trained -save_mode best -proj_share_weight
Namespace(batch_size=64, cuda=True, d_inner_hid=1024, d_k=64, d_model=512, d_v=64, d_word_vec=512, data='data/multi30k.atok.low.pt', dropout=0.1, embs_share_weight=False, epoch=10, log=None, max_token_seq_len=52, n_head=8, n_layers=6, n_warmup_steps=4000, no_cuda=False, proj_share_weight=True, save_mode='best', save_model='trained', src_vocab_size=2909, tgt_vocab_size=3149)
[ Epoch 0 ]
  - (Training)   ppl:  102.10204, accuracy: 30.757 %, elapse: 2.077 min
  - (Validation) :   0%|                                                                         | 0/16 [00:00<?, ?it/s]THCudaCheck FAIL file=/pytorch/torch/lib/THC/generic/THCStorage.cu line=66 error=2 : out of memory
Traceback (most recent call last):

Hi @renqianluo and @alvations,
Thanks for the report!
I also notice that the GPU memory usage is sometimes unacceptable huge.
I think part of the problem may be caused by history from the unnecessary enc-dec layer interaction pointed out in #27.
I will try to remove the incorrect layer interaction and observe the memory usage.
Thanks!

Hi @renqianluo and @alvations ,
This issue is to dealing with the memory problem just like #24 .
Let us discuss under one issue.
Thanks!

Hi @alvations ,
Thanks for pointing out the failing under the evaluation!
I modified the Variable preparing part in DataLoader.py to avoid recording history under evaluation.
I believe it will slightly mitigate the memory usage of evaluation.
Hi @renqianluo ,
As mentioned in #27, I implemented the model incorrectly by using all encode layer outputs and I think it may be part of the cause of the memory problem.
With the modification 07e2cda7d6e3ed9225ae1063b90a077432c24995, the recording of history is heavily reduced and there is no need to keep the layer outputs as local variable.
Under the default parameter settings, I run the model with ~8000MiB GPU memory usage.
Please retry with the newest commit.
Thanks!
Yu-Hsiang

@jadore801120 Thanks for your response, I will try the new code

I am still getting out of memory error on latest commit in tesla P100, error occurs while validation starts after training in Epoch 1. @jadore801120  can you help me why is this error occuring even after optimization? Im pasting traceback below.

(Training)   ppl:  355.55811, accuracy: 21.974 %, elapse: 4.618 min
(Validation) :   0%|                                                                                | 0/32 [00:00<?, ?it/s]/root/home/intern4/data/transformer/DataLoader.py:119: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.
torch.LongTensor(inst_data), volatile=self.test)
/root/home/intern4/data/transformer/DataLoader.py:121: UserWarning: volatile was removed and now has no effect. Use with torch.no_grad(): instead.
torch.LongTensor(inst_position), volatile=self.test)
train.py:103: UserWarning: invalid index of a 0-dim tensor. This will be an error in PyTorch 0.5. Use tensor.item() to convert a 0-dim tensor to a Python number
total_loss += loss.data[0]
THCudaCheck FAIL file=/pytorch/aten/src/THC/generic/THCStorage.cu line=58 error=2 : out of memory
Traceback (most recent call last):
File "train.py", line 274, in
main()
File "train.py", line 271, in main
train(transformer, training_data, validation_data, crit, optimizer, opt)
File "train.py", line 136, in train
valid_loss, valid_accu = eval_epoch(model, validation_data, crit)
File "train.py", line 96, in eval_epoch
pred = model(src, tgt)
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/root/home/intern4/data/transformer/transformer/Models.py", line 193, in forward
dec_output, *_ = self.decoder(tgt_seq, tgt_pos, src_seq, enc_output)
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/root/home/intern4/data/transformer/transformer/Models.py", line 131, in forward
dec_enc_attn_mask=dec_enc_attn_pad_mask)
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(*input, **kwargs)
File "/root/home/intern4/data/transformer/transformer/Layers.py", line 33, in forward
dec_input, dec_input, dec_input, attn_mask=slf_attn_mask)
File "/usr/local/lib/python3.5/dist-packages/torch/nn/modules/module.py", line 491, in call
result = self.forward(input, **kwargs)
File "/root/home/intern4/data/transformer/transformer/SubLayers.py", line 49, in forward
q_s = q.repeat(n_head, 1, 1).view(n_head, -1, d_model) # n_head x (mb_sizelen_q) x d_model
RuntimeError: cuda runtime error (2) : out of memory at /pytorch/aten/src/THC/generic/THCStorage.cu:58

@akshay1123 I'm not sure if you have solved your problem.
One hint for you, use torch.cuda.empty_cache() after every batch training. This may help, but I'm not sure.
You can monitor the memory allocated and cached periodically by torch:
torch.cuda.memory_allocated()
torch.cuda.memory_cached()

@akshay1123 I'm not sure if you have solved your problem.
One hint for you, use torch.cuda.empty_cache() after every batch training. This may help, but I'm not sure.
You can monitor the memory allocated and cached periodically by torch:
torch.cuda.memory_allocated()
torch.cuda.memory_cached()

use torch.cuda.empty_cache() still throw out of memory error, this didn't solve the problem. I can only use batch_size = 64 in 4 k40m GPUs, this train so slow, how can I use bigger batch_size? any suggestions? Thx!!!

use torch.cuda.empty_cache() still throw out of memory error, this didn't solve the problem. I can only use batch_size = 64 in 4 k40m GPUs, this train so slow, how can I use bigger batch_size? any suggestions? Thx!!!

Have you solved this problem? That's so weird that only when my model is very small, there's no out of memory. But OOM happened again when the first epoch was trained 70%.

@buptwhr I'm not sure since I haven't tried this project. Maybe you can use another project in the following link, which I have tried on my GPU, and there is no memory error. Hope this can help you.
https://github.com/DaoD/annotated-transformer

Dear all,
Please take a look on the newest code.
I try to reduce as many the contiguous operations as possible with broadcasting.
Hope it helps. Thanks.


Patient interface missing observation, state and t

Patient interface is defined as :
"""Base class for patient"""

class Patient(object):
    def step(self, action):
        """
        Run one time step of the patient dynamiBodySimiFace_setPatisetPatient
        Input
            action: a namedtuple
        ------
        Outputs
            t: current time
            state: updated state
            observation: the observable states
        """
        raise NotImplementedError

    @staticmethod
    def model(t, state, action, params):
        """
        ordinary differential equations
        """
        raise NotImplementedError

    def reset(self):
        """
        Reset to the initial state
        Return observation
        """
        raise NotImplementedError

However, the code uses patient.observation, patient.state and patient.t.
Should those properties be part of the interface or not?

Something like this:
from abc import ABC, abstractmethod

class Patient(ABC):
    """
    Actual proper base class for patient,
    that includes the parts missing from simglucose definition
    """
    @abstractmethod
    def step(self, action):
        """
        Run one time step of the patient dynamiBodySimiFace_setPatisetPatient
        Input
            action: a namedtuple
        ------
        Outputs
            t: current time
            state: updated state
            observation: the observable states
        """
        ...

    @abstractmethod
    def reset(self):
        """
        Reset to the initial state
        Return observation
        """
        ...

    @property
    @abstractmethod
    def t(self):
        ...

    @property
    @abstractmethod
    def state(self):
        ...

    @property
    @abstractmethod
    def observation(self):
        ...

The patient interface is a premature design choice. There is only one class T1DPatient is inheriting the interface. Any design on the base interface is redundant.
I think we should delete the Patient interface, and if we have plan to add say T2DPatient etc. in the future, we will add the base back with a design that meets the actual needs.
What do you think?


Namespace refactoring

### Spec
- [ ] https://github.com/Azure/cadl-ranch/issues/758
- [ ] https://github.com/Azure/typespec-azure/issues/1722

### Implementation
- [ ] https://github.com/Azure/typespec-azure/issues/1723
- [ ] https://github.com/Azure/autorest.java/issues/2968
- [ ] https://github.com/Azure/autorest.typescript/issues/2877
- [ ] https://github.com/Azure/autorest.csharp/issues/5124
- [ ] https://github.com/Azure/autorest.go/issues/1452
- [ ] https://github.com/Azure/autorest.cpp/issues/404
- [ ] https://github.com/Azure/typespec-rust/issues/130
- [ ] https://github.com/Azure/autorest.python/issues/2795

Dup of https://github.com/microsoft/typespec/issues/4537


Create route table and IGW-public subnet associations

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


Size and color are not defined

ERROR  TypeError: Cannot read property 'Size' of undefined
This error is located at:
in GoogleSignInButton (created by LogIn)
in RCTView (created by View)
in View (created by LogIn)
in LogIn (created by UserProvider)
in UserProvider (created by MainApp)
in MainApp (created by App)
in AuthOperationProvider (created by AppProvider)
in AppProvider (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in eduApp(RootComponent), js engine: hermes
ERROR  TypeError: Cannot read property 'Color' of undefined
This error is located at:
in GoogleSignInButton (created by LogIn)
in RCTView (created by View)
in View (created by LogIn)
in LogIn (created by UserProvider)
in UserProvider (created by MainApp)
in MainApp (created by App)
in AuthOperationProvider (created by AppProvider)
in AppProvider (created by App)
in App
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
in eduApp(RootComponent), js engine: hermes

Hello @mujehoxe, have you a fix for this error?


Adding another kind of OOM errors for more cpecific bucketing of failures.

Where is this error consumed? Is this only used by full?

@dilijev - yes, only in Full


Remove FilePrinter protocol

Do we use the FilePrinter protocol somewhere. Should we remove it for now?

          1 Warning

:warning:
Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

  Generated by :no_entry_sign: Danger


fix(Select): Correct label positioning

Related issue
Fixes #2868
Overview
This fixes a problem where the Select label was intermittently not vertically centred.
Link to preview
Storybook
Work carried out

[x] Fix problem with styles being overridden using existing specificity trick
[x] Tweak positioning of label

Screenshot
Before

After

Developer notes
This was happening particularly in Storybook, and was due to react-select's styles sometimes overriding our styles (probably a race condition as it uses emotion for styles).

Looks right now, thanks!


[SMALLFIX] Cleanup files in conf/

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/8359/
Test PASSed.

LGTM

LGTM

Tested with deploy module

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Tachyon-Pull-Request-Builder/8372/
Test PASSed.

LGTM


Loading ogg files is slow on windows

I'm running into long load times with ogg on windows. Everything seems fine with osx.
Any idea why this might be happening or how to improve it?
Thank you for the fine library!
-Zach

Hi @yglukhov - I did some testing on this.
The issue appears to be here on Windows : https://github.com/yglukhov/sound/blob/master/sound/private/sound_al.nim#L73-L82
I'm not sure why but this code can take up to 15s to execute for a 4.2mb ogg file.
If I increase the buffer size to something like 5 MB, it executes in <2s
I'm not sure what the implications of increasing the buffer size so dramatically would be, but I'm sure you'll agree that 15s seems like an issue.
Any ideas on this one?
Thanks!
-Zach

Hey, thanks for investigating. Can I ask you to go a bit further and find whether it is stb_vorbis_get_samples_short_interleaved call that lags, or the reallocs. Also what time do you get on osx?

I've just updated stb_vorbis, please see if it makes any difference.

@yglukhov I just tried with the updates - no difference.
The calls to stb_vorbis_get_samples_short_interleaved  are returning in about 0.002s to 0.003s so I don't think that's the issue.
I believe it's the number of times this logic has to be looped over due to the buffer size. I don't get why the OS makes a difference here but on osx, the same ogg is read in : 1.624s
The calls to stb_vorbis_get_samples_short_interleaved on osx take the same amount of time, there are just way fewer iterations.

@zacharycarter, please note that clang on macos behaves a lot better than mingw32 in terms of optimization. If you're compiling without -d:release flag that could really matter. Also from my own recent experiments vcc-compiled code performs two times better than mingw32. Another trick that could work is wrapping newSoundWithVorbis function into push/pop pragmas that disable stacktrace and checks.

Hi @yglukhov I've tried with and without the -d:release flag and it doesn't seem to make a difference.
I'll try doing what you suggested with newSoundWithVorbis.
Would increasing the buffer size on windows be a reasonable workaround? Is there any reason the read is done in such small chunks to begin with? Just curious.
Thanks for the insight!

Hrm I tried with the push / pop pragmas but no dice. Not sure what else can be tried besides a larger buffer at this point.

Is there any reason the read is done in such small chunks to begin with?

No particular reason, thats just a copy-paste from somewhere. Go ahead and increase the size.


Isues time out at www

Sorry about that i Will contant hosting Cloudflare
#1  di post tell a data
I Will contant hosting

What i found

Error 522
Ray ID: 6ae93a73dec847fe •
2021-11-15 14:39:50 UTC
Connection timed out
You
Browser Working
Singapore
Cloudflare Working
www.neon-official-org.pages.dev
Host Error
What happened?
The initial connection between Cloudflare's network and the origin web server timed out. As a result, the web page can not be displayed.
What can I do?
If you're a visitor of this website:
Please try again in a few minutes.
If you're the owner of this website:
Contact your hosting provider letting them know your web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn't finish. The most likely cause is that something on your server is hogging resources. Additional troubleshooting information here.

Fixing is a time long

[✓] Hosting not stable
[×] Hosting not support www
[✓] #2  we Will udpate soon

DNS not found we can fix it


"Already in Library" checkmark overlaps movie title

Set max-width or padding on title element

Apparently it's not completely fixed:

Issue reappeared after adjusting .film container width

Prematurely closed - not fixed on mobile

Prematurely closed - not fixed on mobile


Allow for special fallback rom slot

I've moved OTA capabilities and a lot of other one time or rare case functionality (like AP with mini webserver for first time configuration of SSID/PW) into one dedicated ROM instead of duplicating that functionality in all ROMs wasting space. To properly select the last good ROM, the bootloader needs to be aware of this setup and pick the next ROM to check accordingly. I've added a new flag similar to the ERASE_SDKCONFIG flag to facilitate this - could be done via defines as well as I don't expect this behavior to change after design time. If another ROM wants to switch to this functionality, it can set the temp ROM in RTC-mem and force a soft-reboot e.g. forcing a watchdog timeout in an endless loop.

Actually an even better approach would be to define the ROM number for the fallback ROM dynamically similar to the GPIO ROM number. The two unused bytes in the config struct would be a good place to do so. This would allow for OTA updates of the fallback itself as well leveraging another unused slotand then switching the fallback ROM number if successfully updated...
I'd propose to close this without merging - I'll share an improved PR later (refactoring my entire codebase, hence it might take a couple of days).


BigtableBufferdMutator rpc calls are done asynchronously

The adapter from hbase to bigtable proto can take a microsecond or so,
depending on the size.  The initiation of the RPC can also take some
time.  This PR does those two things in worker threads rather than
running in the main thread.  This increases throughput and better
utilizes machine resources.

The comments were addressed.  PTAL.

Please address some nits.
LGTM


Username rename

Description of the Feature

Provide the capability to rename the username value.

Duplicate of https://github.com/wso2/product-is/issues/7407


Refactor the code to separate out the store layer

This PR is the first major in the many set of refactoring PRs required for moving DiceDB to multithreading.
This PR refactors the existing code by doing the following:

Carve out the store code into a separate package under /internal.
Move regex to an independent package under /internal
Move codeerrors from /core to /internal

Note: There is lot of movement of code and takes a lot of effort to rebase and verify changes in this PR so there are couple of requests from my side:

Please DO NOT merge any further PRs till this PR is merged.
Please review the code changes thoroughly.

cc @JyotinderSingh @lucifercr07 @AshwinKul28 @pratikpandey21

Going through it, just a general comment, can we make internal/diceerrors folder rename it to internal/errors. It doesn't make sense of having dice as a prefix to any of these internal folders. You can make the change directly by replacing it now.
@soumya-codes

can we make internal/diceerrors folder
Can I do that in the subsequent PR? There are a lot of areas of improvement here..


pop-ups get squeezed when resized on idea / jetbrains IDEs

Hyprland Version
Hyprland, built from branch HEAD at commit d74607e414dcd16911089a6d4b6aeb661c880923  (props: bump ver to 0.33.1). Tag: v0.33.1
Bug or Regression?
Bug
Description

How to reproduce
1: Start typing on any jetbrains IDE to let the autocomplete list appears
2: Continue typing to reduce the size of the list
3: list.zip
Crash reports, logs, images, videos
(note: not using the nvidia gpu)
[LOG] Instance Signature: d74607e414dcd16911089a6d4b6aeb661c880923_1702422253
[LOG] Hyprland PID: 2105820
[LOG] ===== SYSTEM INFO: =====
[LOG] System name: Linux
[LOG] Node name: desktop.home
[LOG] Release: 6.6.2-arch1-1
[LOG] Version: #1 SMP PREEMPT_DYNAMIC Mon, 20 Nov 2023 23:18:21 +0000

[LOG] GPU information:
0b:00.0 VGA compatible controller [0300]: NVIDIA Corporation AD102 [GeForce RTX 4090] [10de:2684] (rev a1) (prog-if 00 [VGA controller])
0e:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c7) (prog-if 00 [VGA controller])

[WARN] Warning: you're using an NVIDIA GPU. Make sure you follow the instructions on the wiki if anything is amiss.

[LOG] os-release:
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

[LOG] ========================

[INFO] If you are crashing, or encounter any bugs, please consult https://wiki.hyprland.org/Crashes-and-Bugs/

[LOG]
Current splash: "There are reasons to not use rust." - Boga

[LOG] Creating the HookSystem!
[LOG] Creating the KeybindManager!
[LOG] [hookSystem] New hook event registered: configReloaded
[LOG] Creating the AnimationManager!
[LOG] Created a bezier curve, baked 255 points, mem usage: 4.08kB, time to bake: 21.14µs. Estimated average calc time: 0.04µs.
[LOG] Creating the ConfigManager!
[LOG] NOTE: further logs to stdout / logfile are disabled by default. Use debug:disable_logs and debug:enable_stdout_logs to override this.

As a workaround, try running the Jetbrain IDEs in a nested Sway or Gamescope session at this time.

Mh, duplicate of #4093 didn't found it with my first search.
Going to rollback to 0.30 instead, nested sway sounds painful


Change event of UInput with type="file" returns string instead of FileList

Environment

Operating System: Windows_NT
Node Version:     v20.11.0
Nuxt Version:     3.11.1
CLI Version:      3.11.0
Nitro Version:    2.9.4
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools, modules, supabase, runtimeConfig, router
Runtime Modules<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>Build Modules:    -

Version
v2.15.0
Reproduction
https://stackblitz.com/edit/nuxt-ui-xdwrzs?file=app.vue
Description
As of v2.15.0 file inputs no longer provide access to the native DOM event (#1560) which breaks the usage of UInput with type="file". For file inputs to work, the change event would have to emit event.target.files.
Additional context
No response
Logs
No response

@benjamincanac But how can I access file blob now when using type=file with UInput? That change broke my file input

I just got bit by this bug after updating to v2.15.0. Downgrading to v2.14.2 fixes it.

@bkuri This has been fixed in #1570 where you'll receive files directly.


Add API for gRPC mockcing with Docker Compose

Proposal
It would be nice to have API and a Docker compose sample that simplifies mocking of gRPC with https://github.com/wiremock/grpc-wiremock as a standalone container
References
No response

@oleg-nenashev  I started working on the same.


New Encryption additions should not install service if disabled

Looking at the changes added recently, it appears the variable TDX_ENC_ENABLE controls if encryption should be enabled.
However, it seems that the encryption service is still being installed to the image regardless.
The only thing this controls is the kernel config includes.
Should the IMAGE_INSTALL:append also be conditional?

@MMG-DG thanks for reporting.
The way the "user interface" for encryption is being designed is that the user will have to just inherit a class and set a few extra variables to have encryption support enabled. Example:
INHERIT += "tdx-encrypted"
TDX_ENC_KEY_BACKEND = "caam"
TDX_ENC_STORAGE_LOCATION = "/dev/mmcblk0p2"

The TDX_ENC_ENABLE variable is just for internal use. If one wants to disable encryption support, it should not inherit the class. Enabling the class and changing some internal variables might cause unexpected results, as this one you are reporting.
Also, be aware that the encryption feature is still in development, and the user interface might change. In a few weeks, we should have the basic support for CAAM merged, including the documentation.
Anyway, I really appreciate your testing reports. Feel free to keep reporting any issues here. Thanks!

How can we then remove this later.
My example is that I have a minimal image which includes the encryption.
I also have a development image, which inherits the minimal image and adds extra tools.
This development image I don't want encryption being applied.
Is this possible?

I think there are many solutions to this, but the simplest solution is to not inherit the class when building the development image.
Another solution is to have two local.conf templates, one for production images and another for development images, and only the local.conf template for production images would inherit the class.
You could also have an override that would be set when building production images. Then you can have something like this in a configuration file, considering you added prod to OVERRIDES when building production images:
INHERIT:append:prod = " tdx-encrypted"

Does any of that solves your problem?
Obs.: I am reopening this issue until we are able to provide you a good solution for your use case.
Adding @rborn-tx and @jsrc27 to the discussion, in case they want to comment on this.

Ooooh.....
Thanks, I think I understand now.
I have made the change for the OVERRIDES as I think our use-case this would be cleaner.
Will run the builds we have and report back with results.

Sorry it has been a while, I forgot to reply here.
My new build seems to work great now that I have the split configs.


links encoded with /

In many JS texts treatments, links html are encoded like :
https://html5-chat.com/
Any idea on how handle these cases ?

Linkify's HTML interface http://soapbox.github.io/linkifyjs/docs/linkify-html.html should theoretically handle this, but HTML character encoding support is temporarily disabled in the built-in HTML parser. This may be fixed in a future release.

I stepped over this issue, but I think in my case I would expect a different result, because my URL is followed by a HTML character reference, that is not part of the URL and gets broken:
const linkifyHtml = require('linkifyjs/html'); // v2.1.6

const html = ""http://xml.evernote.com/pub/enml2.dtd"";
const out = linkifyHtml(html, {nl2br: true, className: "", target: ""})
console.info(out);
// Generates:
// "http://xml.evernote.com/pub/enml2.dtd"
//
// but in this case I would expect that the following HTML character reference is not destroyed:
// "http://xml.evernote.com/pub/enml2.dtd"

Actually, I've no idea how these two cases can be automatically distinguished. Maybe add an option?
-> Should I open a new issue for this or would you regard this as related?

Fixed in the latest Linkify v4


https://github.com/flutter/flutter/issues/new?template=ACTIVATION.md"

Steps to Reproduce

...
...
...

Logs

Hello @gucheng808913 !
Thank you for posting.
However, without any additional information, such as the description of the problem, code to reproduce the issue and flutter doctor -v command output, your case cannot be investigated. Due to that, closing this issue.
But feel free to open a new issue and fill the information requested in the template.
Thank you.


False readings from forge coverage --ir-minimum

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (f5b9c02 2023-10-28T00:18:17.151338412Z)
What command(s) is the bug in?
forge coverage --ir-minimum
Operating System
Linux
Describe the bug
I have I seem to have found a bug with forge coverage --ir-minimum. When running forge coverage alone, I get a "stack too deep" error; when running forge coverage --ir-minimum, it works, but it tells me I don't have coverage on an area of my tests that I clearly have coverage for (specifically, 3 lines of assembly code for loading data into memory). I know I have coverage for these 3 lines because if you remove some of the contract files and one of the test files, the normal forge coverage command works and tells me I have 100% coverage (but again tells me I don't have 100% coverage if I run forge coverage --ir-minimum). Any ideas on what to do here to get coverage to show 100%? Thanks! @mattsse @Evalir @spockP

Hey guys--any idea here? @mattsse @Evalir @gakonst

Hey guys--any idea here? @mattsse @Evalir @gakonst

Hi @davidlucid  Sorry for the delay.
I ran into the same issue in a later project. But I don't have time to dig deeper into it.
Superficially,   inline assembly blocks are missing in the SourceMap.
But I am not sure:

Is this a bug in ethers-rs ?
Or, is this a bug in solidity compiler (missing assembly blocks when using YUL with minimum optimization)?  <== last time, I thought it was more likely to be this one

https://github.com/foundry-rs/foundry/blob/5c137e8ac9165a070e36ff0eeb0382c2a2cf6637/crates/evm/coverage/src/anchors.rs#L11-L47


False positives + query ideas for variables with leading underscores.

js/unused-local-variable has some false positives for variables that are intentionally unused, e.g. for array destructuring, etc...
An example can be seen in https://github.com/Shopify/quilt/pull/434
It's a convention that local variables with leading underscores are designed to be unread, e.g:
const [a, _, c, d, e, f] = something
// or
const [a, _b, _c, d, e, f] = something

Moreover, tslint recently temporarily deprecated their no-unused-variable rule in favour of the new compiler flags which take leading underscores into account.
I suggest we:

ignore variables that start with an underscore in js/unused-local-variable
create a new query that finds variables that suggests they should be unused, but are actually used.

It's a convention (...)

I'm sure you're right, but could we have a reference for that convention? I'd also like to point out that in the examples you give you should be able to just omit the _* variables altogether:
const [a, , c, d, e, f] = something

I'm sure you're right, but could we have a reference for that convention?

Here are a few of places:

Typescript compiler's behaviour for compiler flags --noUnusedParameters and --noUnusedLocals

Parameters declaration with names starting with _ are exempt from the unused parameter checking. e.g.:
function returnNull(_a) { // OK
    return null;
}

(If we decide it's not a widely-enough used convention for JS, we could potentially enable it for TS only)

ESLint documentation on no-unused-vars. Uses prefix underscores as an example for the argsIgnorePattern option:

The argsIgnorePattern option specifies exceptions not to check for usage: arguments whose names match a regexp pattern. For example, variables whose names begin with an underscore.

Ruby's community coding conventions:

Prefix with _ unused block parameters and local variables. It's also acceptable to use just _ (although it's a bit less descriptive). This convention is recognized by the Ruby interpreter and tools like RuboCop and will suppress their unused variable warnings.

I'd also like to point out that in the examples you give you should be able to just omit the _* variables altogether

Ah yes!

OK, thanks, that looks fairly widely accepted.

If we decide it's not a widely-enough used convention for JS, we could potentially enable it for TS only

We could, but to be honest I doubt we'll lose any interesting results by enabling it for JS as well.


search plugin fields being omitted in beforeSync

Link to reproduction
No response
Describe the Bug
Hi all, I noticed a weird behavior with the search plugin. I was trying to make multiple fields searchable efficiently by combining them into a single field in the created search collection. However, custom fields are removed and fields inside of doc are not searchable.
I'd be happy to help write a fix (or maybe a feature to build a similar, more optimized use case into the plugin). I just want to make sure this is a proper bug and not an implementation issue first.
To Reproduce
Here's a simplified version the search parameters I was using which hopefully illustrates my goal of combining multiple fields from different collections into a single searchable string field in the search collection:
        search({
            collections: ["article", "glossary"],
            defaultPriorities: {
                article: 10,
                glossary: 30,
            },
            beforeSync: ({ originalDoc, searchDoc }) => {
                const collectionSlug = searchDoc.doc.relationTo;
                const columnsToIndexForCollections = {
                    collectionA: ["title", "subtitle", "content"],
                    glossary: ["title", "tooltip"],
                };
                if (!columnsToIndexForCollections[collectionSlug]) {
                    console.warn(
                        `Collection '${collectionSlug}' not recognized in columns to index.`
                    );
                    return searchDoc;
                }
                let search_string = originalDoc.title;
                const body = {};
                columnsToIndexForCollections[collectionSlug].forEach(
                    (column) => {
                        body[column] = originalDoc[column];
                        search_string += ` ${originalDoc[column]}`;
                    }
                );

                const newSearchDoc = {
                    ...searchDoc,
                    search_string,
                    doc: {
                        ...searchDoc.doc,
                        body,
                    },
                };
            },

With this, I noticed two issues:

The additional field search_string disappears from the search documents and cannot be queried.
Documents inside of doc cannot be queried. I think this is related to this: https://github.com/payloadcms/payload/issues/2150#issuecomment-1440213166

Workarounds include:

setting title:search_string
moving the search_string inside of body and querying on that

Payload Version
2.0.0
Adapters and Plugins
(related) plugin-search v1.1.1, (probably unrelated) bundler-webpack, db-mongodb, plugin-cloud, richtext-slate

Before I dive deeper into this, @stoddabr  can you double check the following for me please?

That in your searchOverrides you add this new field you created search_string
That you return newSearchDoc from your beforeSync function

Closing this for now but happy to re-open if there's a reproduction repo offered!

Hi @paulpopus , what's the best way to setup a quick reproduction repo? Is there a template floating around? I've skimmed all over the contribution and main docs but I don't see one. I'd love to help drill down into this issue
(I think I've found the problem in code but want to get some guidance before I waste time on a contribution that may not be well received)

@stoddabr If you create a blank payload repo with npx create-payload-app, make sure the packages are all on the latest versions and add the configuration that breaks it, then we can check that more easily
Basically distil it down to the simplest setup that still causes the bug


Frame Rate

@kamalnadjieb
Thanks for your wonderful repo.
I have a question regarding the frame rate.
Is it possible to set the frame rate for the HTTP streaming?

Hi @somdats , thank you for the compliment.
I need to review the overall design to decide whether to limit frame rate is the responsibility of the library or it is the user's responsibility before enqueue it to the streamer. The point is I want to make this library's implementation and scope as minimum as possible. Thank you.
Regards,
Kamal


Dev patch

Column relationships defined at dataset level

Use pattern ?(<dataset_uuid>.)<table_name>.<column_name>?(.<nested_column_name>+) to allow for cross dataset relationships

Generic connection options

Similar to Spark style connections where a map of string -> string is defined
Valid connection options defined by connection type
Allows for other data source definitions to be defined such as JMS, non-JDBC databases, HTTP

Standardise primaryKey, partitionKey and clusterKey
Add in primaryKeyPosition, partitionKeyPosition, clusterKeyPosition and isUnique for column definition

See my messages on Slack. Great ideas, but you introduced breaking changes at the same time.


apulse: 0.1.10 -> 0.1.11, add pressureaudio

Motivation for this change
Living without PulseAudio.
Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

I tested mpv and cmus, both work fine with this and with plain ALSA disabled. firefox gets "permission denied" errors, probably because of sandboxing. More debugging needed there.
Sharing in case anyone else wants to play with this.

Firefox 58 is mentioned on the apulse homepage, there is an about:config option to loosen the sandbox and allow ioctl.

Ah, thanks!

Either use : for empty phases and reduce verbosity here, or fix the typo: ‘‘Coping’’ → ‘‘Copying’’

Oops, that and the correct .pc files were lost in the git stash. Fixed. Thanks.

Any reason for cp -a instead of ln -s?

 It's gonna be rehardlinked by nix-store store optimization
anyway. (Header files too, btw.)

Maybe remove this paragraph (and the last one)? As it is, libpulseaudio packages in Nix does not build any executables, and I am not sure there are any risks in failed attempts to connect by PA client library.

Fixed.


HUD is not showing

NewESX
The script is starting but I the HUD is not showing annything.

Can you share the F8 error?

Same problem, no error in f8 & console, only the minimaps shows when u are in a car...

This HUD is only for QBCore !!!


Banner does not show on real iOS devices

I always get

Error: Request Error: No ad to show.

Is anyone having the same problem?
Tests:
Android emulator: ok
Android real device: ok
iOS emulator: ok
iPhone 8: banner won't show
iPhone 5c: banner won't show
(edited) iPhone 8 Plus: ok
Using react-native 0.47.1 and the latest commit of this library
import { AdMobBanner } from 'react-native-admob';

export default class MyAdMobBanner extends Component {
  render() {
    return (
      <View style={{ alignItems: 'center' }}>
        <AdMobBanner
          adSize={'smartBannerPortrait'}
          adUnitID={myID}
          onAdFailedToLoad={er => console.log(er)}
        />
      </View>
    );
  }
}

I think the alignItems on the parent view causes the banner to collapse, and then admob doesn’t return an ad. Can you try without?

@koenpunt
thanks for the reply
I removed the parent view, but it didn't make any difference
While I was doing other things, I noticed that the banner appears very rarely, in about 5% of the cases I open the app.

any progress ?

I had stopped working on this project, but today I recompiled it on an iPhone 8 Plus and the banner is working normally.
Also, I created new banners for other projects and they are all working fine.
I don't know what the problem was, maybe it has something to do with AdMob server.
Sorry for not being more helpful.

@rica do you test it on real device??

@AbdelhalimAhmed
Sorry, I thought the problem was gone but it's not.
I'm still not showing on the iPhone 5c.
Only news I have is that is works on the iPhone 8 Plus.

I think Apple gods won’t accept it :D

@AbdelhalimAhmed
Actually they rejected my app because of "too many ads" (1 banner in each screen). They even showed me a screenshot of the banner.

Experiencing the same issue on an iPhone 6 simulator, iOS version 11.2.

Same issue.

Did you check if the setting 'Limit Ad Tracking' in iOS was turned on ?

Same issue.
Sometimes ads will not show on iOS real device.

same issue iPhone 6plus. pls help?


Combination of Edit cell and Select row

Hello,
I found 2 implementations that feel not right when combining the edit cell and the select row feature.
Here is the way I combine them:
const selectRowProps = {clickToSelect: true, clickToSelectAndEditCell: true, mode: "radio", className: "row-selected", hideSelectColumn: true};
const cellEditProps = {mode: "dbclick"};
<BootstrapTable ref="table" data={this.dataSet} cellEdit={cellEditProps} selectRow={selectRowProps}>
So what I expect is:

after one click: row is selected.
after double-click: cell is in edit mode and row is (still) selected.

And here are the 2 actual behaviors:

If I want to edit 2 cells of the same row, then first time I double-click it selects the row (which is OK) and second time it deselects it. I would expect that if the row is already selected (because I already selected it or because I already edited another cell in the same row), then it does not unselect it, but rather leave it selected. However when editing a cell in another row, then this new row should be selected.
This change is very simple and is to be implemented in handleEditCell(rowIndex, columnIndex) of TableBody.js.
Instead of:
this.handleSelectRow(rowIndex+1, !selected);
Write:
if (!selected) {
        this.handleSelectRow(rowIndex+1, true);
}
I can make a PR if you want.

Selection of the row works only after double-clicking. This is due to this code in BootstrapTable.js that is called after component updated and that is run if cellEdit is defined on the table:
if (this.props.cellEdit.mode !== Const.CELL_EDIT_NONE)
        this.props.selectRow.clickToSelect = false;
Since clickToSelect is overriden with value false then in function rowClick(e) of TableRow.js the function this.props.onSelectRow(e.currentTarget.rowIndex, !this.props.isSelected) is not called.
However selection occurs when double-clicking because in TableColumn.js the function handleCellEdit(e) is called which bubbles up to handleEditCell(rowIndex, columnIndex) of the TableBody.js which calls the function this.handleSelectRow(rowIndex+1, true); because property clickToSelectAndEditCell is true.
So all this cycle does not take into account that my selection was after one click and not after double-clicking.
I didn't try to think of a solution for this wrong behavior. If after my explanation you already know how to fix this then I will be glad, elsewhere I can try to think on a solution and make a PR. What do you say?

Thanks

@dana, thanks this problem report, I need some time to check this out. btw, I follow your example, but I found when I click row, the row selection can't be triggered, seems like a bug

Hi,
This is point 2 of my issue

Selection of the row works only after double-clicking

If you follow my explanation you'll understand why this happens.
Let me know about point 1 if you want this tiny PR.
Thanks
BTW I am @dana2208 not dana :)

@dana2208, sorry, I found your explanation, so tired, a busy year. Anyway, I'll check this problem at first and discuss with you, thanks :)

@dana2208, I thinks I've solve this issues, but if you give selectRow and enable clickToSelectAndEditCell, there will be a tiny delay to prevent a selection changed when user dblick to edit cell on same row but different cell. it will be released on new version in recent

Released on v1.5.2 :)


Idle timer - Repeat notifications

Sometimes I miss my idle notifier and dont realise im done with my current task.
Could you add an option to have idle timers repeat after X seconds if set to more than 0?
Maybe add a maximum number of repetitions, if 0 then no repeats

Is this the notifier you are referring to?
https://i.imgur.com/x0qIygI.png
For me the notifier stays orange until I interact with the window.
What behaviour are you suggesting?


Unable to set default value to the AutoCompleteInput

  let cats = [
    { id: 'CAT_1', label: 'Kitty 1' },
    { id: 'CAT_2', label: 'Kitty 2'},
  ];

  return
  <AutoComplete openOnFocus suggestWhenEmpty rollNavigation>
    <AutoCompleteInput variant="ghost" bgColor="transparent" />

    <AutoCompleteList fontStyle="normal">
      {cats.map((cat) => (
        <AutoCompleteItem
          key={cat.id}
          value={cat.label}
          textTransform="capitalize"
        >
          {cat.label}
        </AutoCompleteItem>
      ))}
    </AutoCompleteList>
  </AutoComplete>
}

Package version "@choc-ui/chakra-autocomplete": "^4.3.3",
I want the default value in the input box to be set to "Kitty 2" whenever the page loads.
With the above code, the input box is empty on page load which seems like the expected behaviour.

I tried setting defaultValue to the <AutoCompleteInput> component but it doesn't do anything.
I tried setting value to the  component. It worked but whenever I focus on the input box first time and click outside the <AutoCompleteList>, the value disappears.

What is the right way to go about it?

use The defaultValues prop and pass an array.
<AutoComplete defaultValues={["Kitty 1"]}

I'll try this and get back. Thanks for the quick reply.

Okay, now I'm getting an interesting behaviour. Basically reverse of the 2nd point I mentioned.
Now the value seems to get set but the input box shows up empty on page load. When I click on the input box, then the value suddenly shows up. When I click outside now, it continues to stay in the input box.

Got it, looks like it also wants me to set  <AutoCompleteInput value="Kitty 1"> in order to make it show up on page load.
Is this the right behaviour?

Yeah...that would work, but I should handle it internally. I'll work on this, in a moment

Fixed in v4.4.1


Fix WebFinger service

Adapt WebFinger service to recent ActivityPub services changes.
Breaking changes
A baseUrl setting is now required, except if the domainName setting is set.
The usersContainer setting is now longer used.

Can confirm that this works for me :+1:

Can confirm that this works for me :+1:


Internal Script Error! - opcode #31 instancing a subclass from a preloaded script

Operating system or device - Godot version:
Arch Linux - b623acb718c50b86219027e0f6f7bebd11d96909
Steps to reproduce:
I created a sample project which triggers the error. The classes are intended to not make any sense.
Link to minimal example project
opcode13.tar.gz
Note
I think this may be related to https://github.com/godotengine/godot/issues/5726

Note that moving the const Cow = preload("Cow.gd") into the subclass makes it work:
# Moved below
#const Cow = preload("Cow.gd")
class Class1:
	func _init():
		pass

class Class2 extends Class1:
	const Cow = preload("Cow.gd") # Here
	func getMoo():
		return Cow.new()

I think I found the core of the issue:

The GDScript compiler returns a reference to a super class's constant at gd_compiler.cpp:199 (through :230 and the while loop)
The super GDScript gets unreferenced (since it was referenced through const Class2 = preload("A.gd").Class2, and A.gd is useless from now on)
It clears the _owner pointer in subclasses at gd_script.cpp:966
Finally, GDFunction fails to find the said constant at gd_function:50
...And proceeds to blame the compiler :smile:

@reduz I guess _owner should be make into a Ref<> or something of that sort?

Ok, seems like the only plausible version of what I want to do would be if I duplicate the constants among subclasses, since if I add a Ref to the owner, it becomes a cyclical reference (since it is also referred to by the constants of the owner script).
So, I guess that's out of my reach...

Updated title for new opcode number and some more details on the actual symptom. See duplicate #21591 for a recent reproducer.

Ah, not sure how I missed this... Sorry for the duplicate.
Still fairly new to GDScript and Godot but I'll throw in this in case it is useful:
var B = load('...').B results in the same error. (From the example in ticket #21591)

I forgot about @bojidar-bg's comment explaining the cause, and proceeded to reach the same conclusion xD
I don't really know how to solve it without creating a reference cycle. We'll need a help from @reduz to solve this.

Still reproducible in GDScript 2.0 (6f4384f20) with extremely specific circumstances...

Reproduction Description

World.tscn - Empty Scene
TestWorld.tscn - Inherits World.tscn, attached TestWorld.gd
TestWorld.gd:
extends Node

func _ready():
	Player.new().init_resources()

Player.gd:
class_name Player

var resources := []
func init_resources(a := 0.0, b := 0.0) -> void:
	resources.append(Metal.new(b))

GameResource.gd:
extends Node
class_name GameResource

func _init(amount := 0.0):
	pass

Metal.gd:
extends GameResource
class_name Metal

wtf.zip
To demonstrate the almost absurd sensitivity of this bug, try removing the a parameter from init_resources. Even though it is never referenced, redefined, or used in any way, it causes the bug to no longer occur.


feature? JS Callbacks

First: thanks for this nice package 👏
Is there a "planned way" to listen to Events in Javascript?
For example: I'd like to fire some lazyloading events after a User accepted the inline cookie-notice for an iFrame Integration.
In the Klaro Config i've found a callback:
callback: function(consent, service) {
    console.log(
        'User consent for service ' + service.name + ': consent=' + consent
    );
},

Overriding Sandstorm.CookiePunch:Config could work 🤔
But everything will be quoted "
prototype(Sandstorm.CookiePunch:Config) {
    consent {
        callback = "function(consent, service) {console.log('User consent for service ' + service.name + ': consent=' + consent);}'"

Hey, I have thought about that too ;) but have not decided on adding this functionality as Klaro.js already provides an API for this using a watcher -> https://heyklaro.com/docs/api/js_api.
However you feature request feels like a more convenient way of reacting to a consent. I would probably look for a callback method on the window and just call it if it exists or maybe throw an event. This way an integrator does not need to write JS as a string ;)
For me it would be interesting to know what you think about the Klaro API.
Cheers

Thanks for your reply @fheinze
Looks like i missed the fact that a Klaro.js watcher already exist 🙈
I think think im fine with the Klaro JS API watcher 🤷


output to file overwrites previous file

I have a build directory with multiple .html files in it. I am trying to audit each one and output the results of the audit to a file located in wcag2-reports/. After each run there are not any errors and the dest. directory only has one file in it. That file is always the last one audited from the src. directory. My grunt-accessibility config is below.
module.exports = {
  options : {
    accessibilityLevel: 'WCAG2A',
    force: true,
    outputFormat: 'json',
    verbose: false
  },
  test : {
    files: [{
      expand  : true,
      cwd     : 'build/',
      src     : ['*.html'],
      dest    : 'wcag2-reports/',
      ext     : '-report'
    }]
  }
};

Yep, will be having a look at the report gen stuff this weekend, seems I buggered something up in the latest release

ref #24

yeah, im planning on digging into it this weekend as well.

Sweet, sounds like a plan. Will be good to get input!

Hey Mate, Can you give this another shot. See what happens


Added patch file for first tutorial: Tutorial debug server errors

Closing this as we are not using patch file instead letting the folks checkout to a commit


[material-ui][TextField] Handling long placeholder text

Hello MUI Community,
I'm looking for advice on how to manage placeholder truncation in MUI Input components like TextField. When using long placeholder texts, they often get truncated if the text exceeds the width of the input field. This issue is especially problematic on smaller screens or with resizable fields.
for large Text Field

for small Text Field

Are there MUI-specific techniques or settings that help display the full placeholder or clearly indicate it's been truncated (such as adding an ellipsis)?
or
Has anyone implemented dynamic adjustments of placeholder text in MUI based on the input field size or screen resolution?
Any MUI-focused solutions or examples would be greatly appreciated.
Search keywords:

Hey @aayush-makwana ,
If I understood correctly, you need a way to handle large input text using material-ui library.
Here, in the snippet below I have added three types of input:

This is a static width text and add ellipsis to very long placeholder text.
This is a dynamic width text, where width is dependent on the provided placeholder.
This is also a dynamic width text, where width is dependent on the input provided by user. It changes input size when the user adds/removes a character.

Filename: App.js
import React from 'react';
import TextFieldComponent from './TextFieldComponent';
import { Box } from '@mui/material';

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <Box
          sx={{
            display: 'flex',
            flexDirection: 'column',
            alignItems: 'center',
            justifyContent: 'center',
            minHeight: '100vh',
            gap: 2, // Optional: adds space between the elements
            padding: 2
          }}
        >
          <TextFieldComponent label={'This is a static width text input with ellipsis to support long placeholder'} />
          <TextFieldComponent dynamicWidth={'placeholder'} label= {'This is a dynamic width text input. Width changes as you increase/decrease the placeholder text'} />
          <TextFieldComponent dynamicWidth={'input'} label= {'This is a dynamic width text input. Width changes as you type in the input'} />
        </Box>

      </header>
    </div>
  );
}

export default App;

Filename: TextFieldComponent.js
import React, { useEffect, useRef, useState } from 'react';
import ReactDOM from 'react-dom';
import {TextField,FormLabel, Typography } from '@mui/material';
import Box from '@mui/material/Box';

// Component to render a text field with dynamic width and label value
const TextFieldComponent = ({ dynamicWidth, label }) => {
  const [value, setValue] = React.useState('');
  const [inputWidth, setInputWidth] = useState(100);
  const spanRef = useRef(null);

  // Effect hook to update the input width based on the dynamic width if it equates to 'placeholder' only
  useEffect(() => {
    if (dynamicWidth && spanRef.current) {
      if(dynamicWidth === 'placeholder') {
        setInputWidth(spanRef.current.offsetWidth + 40);
      }
    }
  }, [dynamicWidth]);

  // Function to handle changes in the text field's value. It updates the value. Also based on dynamic width value it updates the input width conditionally.
  const handleChange = (event) => {
    setValue(event.target.value);
    if(dynamicWidth === 'input') {
      setInputWidth(40 + getTextWidth(value));
    }
  };

  // Function to calculate the width of a given text string by creating a temporary span element, calculating its width and then removing it from DOM.
  const getTextWidth = (text) => {
    // Create a hidden Typography component to measure the width
    const hiddenTypography = (
      <Typography
        variant="body1"
        style={{
          position: 'absolute',
          visibility: 'hidden'
        }}
      >
        {text}
      </Typography>
    );

    // Create a div element to render the hidden Typography component
    const div = document.createElement('div');
    document.body.appendChild(div);

    // Render the hidden Typography component to the div
    ReactDOM.render(hiddenTypography, div);

    // Get the width of the rendered Typography component
    const width = div.firstChild.offsetWidth;

    // Remove the div from the DOM
    document.body.removeChild(div);

    return width;
  }

  return (
    <Box sx={{ marginY: 2 ,display: 'flex',
    flexDirection: 'column',
    alignItems: 'center',
    justifyContent: 'center',}}>
      {dynamicWidth && (
        <span
          ref={spanRef}
          style={{
            visibility: "hidden",
            position: "absolute",
            whiteSpace: "nowrap",
            fontFamily: "Roboto, Arial, sans-serif",
          }}
        >
          {label}
        </span>
      )}
      <FormLabel>{label}</FormLabel>
      <TextField
        label={label}
        variant="outlined"
        value={value}
        onChange={handleChange}
        sx={{ width: dynamicWidth ? inputWidth : 'auto' }}
      />
    </Box>
  );
};

export default TextFieldComponent;

Hope this helps!

Please provide a minimal reproduction. It helps us troubleshoot. A live example would be perfect. This StackBlitz sandbox template may be a good starting point.


Dynamic variable offer

Current situation
SELLER just can place a fixed amount of Rune to sell, this is look like we wrapped a amount Fungible token in an Non-Fungible token. and the trade look like an Non-Fungible token trading
Idea
SELLER place OFFER_UTXO contain these information
OFFER_UTXO  = TERM_TAG AMOUNT_RUNE AMOUNT_SATS MINIMUM_SATS_RECEIVED
psbt of seller look like:
OFFER_UTXO           | BTC_RETURN_TO_BUYER (=BTC_IN_OFFER_UTXO + MINIMUM_SATS_RECEIVED)
                      | OP_RETURN

psbt of buyer look like:
OFFER_UTXO          | BTC_RETURN_TO_SELLER (=BTC_IN_OFFER_UTXO + MINIMUM_SATS_RECEIVED)
BTC_OF_BUYER      | OP_RETURN [id, 0, 2]
                      | RUNE_OUTPUT
                      | ADDITIONAL_BTC_TO_SELLER

depends on sats that buyers set to ADDITIONAL_BTC_TO_SELLER, amount of rune send to buyer will be calculated
@casey

This looks the same as #58. Can you explain the difference?

In #58 amount of Rune sell & amount of Sats want to receive is fixed. I want to design a scenario that example:
Seller want to sell 1000Rune to get 1000 sats
then
buyer deposit 100 sats and get 100Rune

Actually, that's how the current design works. See this comment for the steps: https://github.com/casey/runestone/issues/58#issuecomment-1767777904
In essence, the seller specifies an exchange rate in sats/rune, and the buyer receives sats according to that exchange rate and how many sats he allocates to the seller.


Type inference failure

TypeScript Version:  2.7.0-dev.20171213
Code
function foo(str: string | null) {
    if (typeof str !== "string") {
        return;
    }

    // (1)
    str += "...";
}

Expected behavior: Tooltip when hovering over str at (1) should show type string.
Actual behavior: Tooltip shows type string | null.

Appears to be a quickInfo-only error, as str; before or after that line will correctly have type string.


LogMetadata doc improvements

How are these values created?
Are these for logger implementors or log user?
Add an example

Hello!  I'd like to try to do this.  I'll submit a pull request for review later today.

Great, thank you!

Okay, first draft is at #177

Fixed in #177.


Warning message if genetic evidence is zero points

If there are zero genetic points in the classification matrix, then if a curator goes to save it as provisional then a warning message should pop up that asks them if they want to proceed even though there is not genetic evidence scores.... once clicked to say yes, they can continue.

@ErinRiggs @courtneythaxton @marinadistefano

Patch added in https://github.com/ClinGen/gci-vci-aws/commit/53669ad86dd33d9a42ad07a3c04903eefb50c65b. I used the window.confirm browser method.

This is live in the production website.


[FLINK-8456] Add Scala API for Connected Streams with Broadcast State.

R @aljoscha

@aljoscha Updated the PR. Please have a look!

I think this looks good now.


for the life of me can't figure out syntax highlighting

I'm a new user to Github Pages, but a long-time Jekyll user.
I've got a code snippet that I'm trying to put in a blog post:
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ '/feed.xml' |  prepend: site.url }}">

But on my Github pages site, the liquid syntax is being converted within those 3 ticks:
<link rel="alternate" type="application/atom+xml" title="Erik Yuzwa" href="https://erikyuzwa.github.io/feed.xml">

I've tried:

using {% highlight %} and {% endhighlight %}
looking at posts mentioning any configuration needed of Kramdown for Github Pages specifically
looking at Github Pages syntax documentation

Everything I can find implies that the code snippet I've posted in this issue should work no problem in a post in my Jekyll blog, yet it can't.

I have been able to do this with the raw tag.
{% raw %}
<link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ '/feed.xml' |  prepend: site.url }}">
{% endraw %}

I put the three ticks around the code and the tags render in the code snippet. I also add html after the first three ticks.
See example of one of my posts here. Look at line 133 for a simple example.

@jimhall you are a genius - this incantation worked like a charm for me! 🙇 ❤


Consider replacing satori/go.uuid

This library does not seem to be maintained anymore per https://github.com/satori/go.uuid/issues/83 (and mentioned in a few other issues).
It seems that some other folks have switched over to https://github.com/gofrs/uuid
Alternatively HashiCorp maintains this library https://github.com/hashicorp/go-uuid but I have not checked interface compatibility.
Would there be an interest in a PR which replaces the dependency? Is there any preference?

Would there be an interest in a PR which replaces the dependency? Is there any preference?

Yes! Thank you. And no preference. If you'd be willing to put the time in, the preference is all yours :)
I'm quite sure this library is only being used here: https://github.com/gophercloud/utils/blob/a5c25e7a53a63b89622852e35d7200c85f7cbe56/acceptance/gnocchi/metric/v1/resources.go
It's only use is to generate a UUID, so I think most alternatives should easily work.


STM32F103. The peripherals that are missing in the microcontroller are specified

Peripherals that are not in the microcontroller and therefore should not be specified:

Ethernet_MMC, Ethernet_MAC, Ethernet_PTP, Ethernet_DMA,
OTG_FS_DEVICE, OTG_FS_GLOBAL, OTG_FS_HOST, OTG_FS_PWRCLK.

Ethernet (ETH): media access control (MAC) with
DMA controller
Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
High-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 256 and 512 Kbytes.
XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 768 Kbytes and 1 Mbyte.
Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
This section applies only to STM32F107xx connectivity line devices.
USB on-the-go full-speed (OTG_FS)
Low-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 16 and 32 Kbytes.
Medium-density devices are STM32F101xx, STM32F102xx and STM32F103xx
microcontrollers where the Flash memory density ranges between 64 and 128 Kbytes.
High-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 256 and 512 Kbytes.
XL-density devices are STM32F101xx and STM32F103xx microcontrollers where the
Flash memory density ranges between 768 Kbytes and 1 Mbyte.
Connectivity line devices are STM32F105xx and STM32F107xx microcontrollers.
This section applies only to STM32F105xx and STM32F107xx connectivity line devices.

Brief excerpt:
Ethernet (ETH): media access control (MAC) with DMA controller
applies only to STM32F107xx connectivity line devices.
USB on-the-go full-speed (OTG_FS)
applies only to STM32F105xx and STM32F107xx connectivity line devices.
And there is no mention of STM32f103 here.


Open a new Window and load specific route

Multiple Window with the specific route
When the renderer process emits an event, the main process creates a new window and loads a specific route in the window. Emitting and listening to the event are fairly simple as documentation but how to load route from the main process?

The Initial window loads url as
const winURL = process.env.NODE_ENV === 'development' ?
    `http://localhost:9080` :
    `file://${__dirname}/index.html`

is there any workaround to load specific route in newly created dialog window?

check this Window Creat


fix: Add flag to bypass confirmation on edit cluster

JIRA: https://issues.redhat.com/browse/OCM-1361
This PR adds functionality to the edit cluster command to accept a "-y" flag to bypass confirmation on certain changes. Editing proxy values remains unchanged as the confirmation question was never asked on these commands

/lgtm


"Zoom to World" button broken

Almost certainly as a result of our switching to EPSG:3338.  Make this fixed for each projection.

Closing, same as #3 and #4


Budgie Desktop 10.9

Description of changes

https://buddiesofbudgie.org/blog/budgie-10-9-released
https://github.com/BuddiesOfBudgie/budgie-desktop/releases/tag/v10.9
budgie-session was copied and adapted from gnome-session.
This PR closes #284466.
@bobby285271
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Result of nixpkgs-review run on x86_64-linux 1

1 package blacklisted:

nixos-install-tools

11 packages built:

budgie.budgie-control-center
budgie.budgie-control-center.debug
budgie.budgie-desktop
budgie.budgie-desktop-with-plugins
budgie.budgie-gsettings-overrides
budgie.budgie-session
budgie.budgie-session.debug
budgiePlugins.budgie-analogue-clock-applet
budgiePlugins.budgie-user-indicator-redux
xfce.libxfce4windowing
xfce.libxfce4windowing.dev

@ofborg test budgie


Contagion not properly configured

While the diseases that come from Contagion are properly done, the spell itself is unfortunately not.
With the new OverTime command, might there be a way to properly configure it? Perhaps the spell could place 3 stacks on a target, with successful saves removing a stack, or something similar?
Regardless, I think each of the diseases that come from Contagion should have its own entry under "Other" (perhaps all grouped up under a "Disease" CE).

Thanks for bringing these up. The over time stuff is cool, but I lose track of what I need to update to use it.
I'll try messing with it and see. As for moving them, is there another situation where these diseases would come into play? I thought they were only from the spell Contagion.

As for moving them, is there another situation where these diseases would come into play?
I imagine that they're normal diseases that anyone can catch. Just that the contagion spell causes them to happen immediately. Perhaps make a "diseased" heading that applies the disease condition (which some people would be immune to, automatically cancelling the effect) along with the rider for the kind of disease? That way you could include other diseases found in the DMG, ToA, etc.

Hm, not promising anything there. I'll research it though and see


[5.5][Async Refactoring] Handle multiple trailing closures

Cherry-pick https://github.com/apple/swift/pull/38674

[Async Refactoring] Handle multiple trailing closures
Update the trailing closure handling logic to
handle multiple trailing closures, and adjust the
refactoring output to surround the call in
parentheses rather than adding '.self'. This allows
the parser to deal with the multiple trailing
closures and also silences a warning that would
previously occur.
rdar://81230908

@swift-ci please test


nanopb follow-up fixes

cc @Miceuz

Fix the test (was failing for me, and one test was accidentally disabled).
Fixing the test required reworking the way we were mocking command_handler.
Remove some unused files.

Thanks for the review, Albertas!


Renovate controller should watch build pipelines configMap instead of

build pipeline selector
STONEBLD-2291
Checklist:

PR has reference to the issue(s) it resolves
Write / update unit tests
Write / update integration (envtest) tests
Ensure there is an issue for e2e tests if needed
Ensure make test passes
Ensure test coverage hasn't decreased
Test code changes manually
Update readme and documentation
Write PR description that highlights overall changes and add usage examples if applicable

/test build-service-e2e

/retest

/retest

/retest

/retest

/retest

/retest


R1.3

update

Can one of the admins verify this patch?

commitment

Looks like this PR is unintentional. Closing.


Random crash on app launch

I am unable to reproduce this crash, but I'm getting crash reports from 1-2% of my users (Samsung Galazy 9, 10 and 20) with Android 10
Here's the stack trace of the crash (a native crash on your plugin):
Fatal Exception: java.lang.IllegalStateException
uri must not be null

com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.a (ReceiveSharingIntentPlugin.java:36)
com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.a (ReceiveSharingIntentPlugin.java:120)
com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.onNewIntent (ReceiveSharingIntentPlugin.java:17)
io.flutter.app.FlutterPluginRegistry.onNewIntent (FlutterPluginRegistry.java:18)
io.flutter.app.FlutterActivityDelegate.onNewIntent (FlutterActivityDelegate.java:18)
io.flutter.app.FlutterActivity.onNewIntent (FlutterActivity.java:2)
...

I am seeing something similar, but a slightly different stack trace. @nosmirck did you manage to resolve this?
Fatal Exception: java.lang.IllegalStateException
uri must not be null

com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.b (ReceiveSharingIntentPlugin.java:175)
com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.a (ReceiveSharingIntentPlugin.java:118)
com.kasem.receive_sharing_intent.ReceiveSharingIntentPlugin.a (ReceiveSharingIntentPlugin.java:6)
io.flutter.embedding.engine.FlutterEnginePluginRegistry$FlutterEngineActivityPluginBinding.a (FlutterEnginePluginRegistry.java:18)
io.flutter.embedding.engine.FlutterEnginePluginRegistry.a (FlutterEnginePluginRegistry.java:15)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.a (FlutterActivityAndFragmentDelegate.java:20)
io.flutter.embedding.android.FlutterActivity.onNewIntent (FlutterActivity.java:5)

Affected devices

Samsung Galaxy S21+ 5G
Samsung Galaxy Note10+ 5G
Samsung Galaxy Note20 5G
Samsung Galaxy A5(2017)
POCO X3 NFC
Samsung Galaxy S10+
Huawei P10


fix(select): filterable prop not work while menu's show is controlled

closes #1723

fixed in 3e56f61996e3beaceeb391d473d5f14fd18f1ae4

这个问题实际上非常复杂= =


Complete support for R/CRAN License conventions

This continues work begun with #129. In particular it allows fallback to
the readme and project matchers if the license_file does not contain a
valid license.
We also special case the most common naming conventions with CRAN
packages, as the license matching expects exact name matching, so
without this most of the ly used license terms in R packages would not be
found. The top 6 most common strings on CRAN (with counts) are
3484 GPL (>= 2)
1973 GPL-2
1159 GPL-3
534 MIT + file LICENSE
522 GPL
459 GPL (>= 3)
With these changes many more R package licenses should be properly
detected by Licensee.

The build failures all seem to be rubocop lints. Many are coming from files untouched by the PR, I am not sure what has changed there. There are a couple of cyclomatic complexity warnings from this PR though. If you have any thoughts on a clean way to reduce the cyclomatic complexity while preserving the behavior I am happy to adjust the code accordingly.

Ok I tried to address your review comments, thank you for the review and patience!

Thanks @jimhester! Pushed up two commits to make Rubocop (style check) happy and this looks great!


Avoid importing numpy.distutils

The follow import statement seems to by default import numpy.distutils which has been deprecated:
https://github.com/data-apis/array-api-compat/blob/546fa3d65dde1cc20c68b2d22241f7977a8c08fa/array_api_compat/numpy/__init__.py#L1
     import scipy._lib.array_api_compat.array_api_compat.numpy as array_api_compat_numpy
../../../micromamba/envs/test/lib/python3.11/site-packages/scipy/_lib/array_api_compat/array_api_compat/numpy/__init__.py:1: in <module>
    from numpy import *
../../../micromamba/envs/test/lib/python3.11/site-packages/numpy/__init__.py:331: in __getattr__
    import numpy.distutils as distutils
../../../micromamba/envs/test/lib/python3.11/site-packages/numpy/distutils/__init__.py:31: in <module>
    warnings.warn("\n\n"
E   DeprecationWarning:
E
E     `numpy.distutils` is deprecated since NumPy 1.23.0, as a result
E     of the deprecation of `distutils` itself. It will be removed for
E     Python >= 3.12. For older Python versions it will remain present.
E     It is recommended to use `setuptools < 60.0` for those Python versions.
E     For more details, see:
E       https://numpy.org/devdocs/reference/distutils_status_migration.html

I am guessing it is not needed for array-api-compat and would be great to avoid

This is a numpy issue rather than an array-api-compat one (and it's hard to avoid from numpy import * in this package). I see that it's too annoying - I'll go fix it in numpy.

Should be fixed by https://github.com/numpy/numpy/pull/24427, closing this issue.

Thanks for the quick fix!


build; cancel build needed

[ ] keymap (Ctrl-c on mac, ctrl-break on linux/windows by default).
[ ] menu item
[ ] consecutive builds
[ ] logs from another instance

On Mac, Command-B does the Haxe build but in the menu system it says that's the "Find Buffer" command.


bash: /data/users/miniconda3/envs/her2/bin/log-recent: No such file or directory

I uninstall the package and then i got the message every time I type anything. Do you know how to solve this?

Can you reset the PROMPT_COMMAND you set to make recent2 work? (in your .bashrc or .bash_profile_


Adds Vertical Alpha Bar Option & Flipped Alpha Bar Option

Originally requested on StackOverflow - http://stackoverflow.com/questions/34278398/how-to-rotate-180-deg/34280254#34280254
Adds options "flipAlpha" and "alphaVertical".

Demo of changes: http://jsfiddle.net/4z7d6ze5/2/

Pretty cool!  I'm interested in the vertical alpha feature more than the 'flipped' alpha so it'd be great if you could remove the 'flipped' functionality from the PR.  I'm going to leave a couple of line notes also

Applied requested changes
http://jsfiddle.net/4z7d6ze5/3/


Scanner docs say "path" instead of "path_function"

This issue was originally created at: 2014-07-06 20:36:46.
This issue was reported by: kostmo.
kostmo said at 2014-07-06 20:36:46

In this section of the documentation:
http://www.scons.org/doc/production/HTML/scons-user.html#idp2629424
kscan = Scanner(function = kfile_scan,
skeys = ['.k'],
path=FindPathDirs('KPATH'))
This throws an error:
TypeError: init() got an unexpected keyword argument 'path':
The kwarg in the example should be "path_function" instead.

dirkbaechle said at 2014-07-12 02:17:33

added keyword

wblevins001 said at 2016-02-19 09:35:45

Reassigned.

wblevins001 said at 2016-02-19 09:35:58

Accepted.

I think this is fixed... the link no longer refers to a specific place in the user guide, but the three instances of FindPathDirs and KPATH together look ok:
$ git grep "FindPathDirs.*KPATH"
doc/user/scanners.xml:                path_function = FindPathDirs('KPATH'))
doc/user/scanners.xml:            path_function = FindPathDirs('KPATH'))
test/Scanner/FindPathDirs.py:                path_function = FindPathDirs('KPATH'))

O.k. Closing.


Question regarding OP_MUL and if I did all this right =)

I just want to make sure I did this right.
Using the hardware/offline wallet method I did the following:
For CDS - ensured electron was on CDS network then followed all steps using CDS split method for the 1000 satoshi tx from offline / hardware wallet -> electron contract address -> output back to offline/ hardware wallet address -> created new tx on offline / hardware that spent entire wallets balance including the tiny contract address to a different address in wallet.
Everything confirmed, have over 100 confirmations on the above.
After the above, I then did the same thing with electron pointed at the non CDS network then used the split MUL tool on that network ... everything confirmed.
So, I should have non replayable coins on each chain now correct?

Hi @GenTarkin sorry about the delay, I hope you got it all figured out!

Yeah, I think that should have been quite effective. I did something very similar to that on Fork day.


(project): update project to 1.4.0.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (feature-1.4.0@8aa536a). Click here to learn what that means.

:exclamation: Current head b147977 differs from pull request most recent head b549965. Consider uploading reports for the commit b549965 to get more accurate results

Additional details and impacted files
@@               Coverage Diff               @@
##             feature-1.4.0    #189   +/-   ##
===============================================
  Coverage                 ?   5.32%
  Complexity               ?      34
===============================================
  Files                    ?      22
  Lines                    ?    2217
  Branches                 ?     290
===============================================
  Hits                     ?     118
  Misses                   ?    2076
  Partials                 ?      23

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Run Specifications in Random Order

To assist developers in writing isolated tests that don't depend on one another, Specifications should run in randomised order.

Published in v0.6.0


⚠ Bofrost.at has degraded performance

In 6e86b70, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1402 ms

Resolved: Bofrost.at performance has improved in 16d383b after 6 minutes.


Does all EntitySetName in lower case? Wrong EntitySetName may returned.

I don't know if it is the right place or not to report this issue.
When I using

/api/data/v9.1/EntityDefinitions?$select=MetadataId,LogicalName,EntitySetName

to retrieve all EntitySetName and then using the EntitySetName to retrieve records. I found there are two entities which EntitySetName returned are wrong!
they are : knowledgearticlescategories  which EntitySetName returned is 'KnowledgeArticleCategories' and   ribbonmetadatatoprocess which returned is 'RibbonMetadataSetToProcess'
if I check from $metadata, I can see they are defined like this:

<EntitySet Name="ribbonmetadatasettoprocess" EntityType="Microsoft.Dynamics.CRM.ribbonmetadatatoprocess"/>
<EntitySet Name="knowledgearticlecategories" EntityType="Microsoft.Dynamics.CRM.knowledgearticlescategories"/>

so the EntitySetName should in lower case but returned with Camel Naming Rule. is it bug something?
Do all EntitySetName should be lower case??? if yes I can convert all to lower case to avoid this issue.
Thanks,
Flex

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

ID: d8ee6e60-f70c-b0f7-5382-8e3297aad5ff
Version Independent ID: 963ff1af-bbf0-4297-19cd-65ae265fd187
Content: Retrieve metadata by name or MetadataId (Common Data Service) - Power Apps
Content Source: powerapps-docs/developer/common-data-service/webapi/retrieve-metadata-name-metadataid.md
Service: powerapps
GitHub Login: @JimDaly
Microsoft Alias: jdaly

@Flex-Xuan Thanks for the feedback. That is the way the EntitySetName naming was implemented for those two instances.

@phecke In my opinion, your answer is simply insulting. @Flex-Xuan asked you specific questions and described the situation in details. The answer you gave could have been given by anyone who read the question. This is bullying.

@im-rausch
This forum is for feedback about documentation. It isn't the place to report bugs, and we don't guarantee to provide answers to questions.
The case of the entity set name is important and the two instances that @Flex-Xuan mentioned are not correct.  All entity set names should be lower case.
As @Flex-Xuan found, changing the values to lower case for these two tables solves the problem.
For example, sending this:
GET /api/data/v9.2/KnowledgeArticleCategories
returns:
404
{"error":{"code":"0x80060888","message":"Resource not found for the segment 'KnowledgeArticleCategories'."}}
But lower case knowledgearticlecategories returns a 200.
I would say that this is a bug. The EntityMetadata.EntitySetName values in the definition of these tables are incorrectly set. But the Web API manages to correct this when listing the EntitySet resources. That service document is the source of truth. You should depend on the OData service documents rather than the EntityMetadata properties.
I think that after reading @Flex-Xuan's question, @phecke was simply acknowledging that these two tables were set incorrectly. I hope I've added enough background to satisfy anyone who might find this thread in the future.


Errors: Perhaps it would be worth adding help text for when users repeatedly encounter the prompt to rekey?

When I was first getting set up using this library, I got stuck in a loop of being prompted to rekey. It turns out, I skipped the warning in step 4 of the README, mea culpa. But it would have been quicker to realize my error if there was help text in the "you need to rekey" message which indicated that if this error shows up repeatedly, you likely need to configure the extra-sandbox-paths per the README.
Hopefully this user experience note is helpful! I figure that I only get one chance to be a first-time user of a piece of software, so I'm trying to document the gotchas I encounter to smooth the way for others in the future. :)

Thanks for the info!
I'll have to think about how to make this specific error better to understand. Maybe the loop can be detected somehow and then an appropriate message can be shown..

This particular situation should not occur anymore with local storage mode, no configuration of extra-sandbox-paths needed :)


yarn bundle is adding a root folder which breaks compatibility with lambda

Describe the bug
a root folder called bundle is added to the zip.
Expected behavior
the repo is added directly with no root folder.
Additional context
It looks like this appeared at some point in the codebase.

Has this been released yet? Still seeing this! 😲

Ah sorry not yet, I was testing some other changes. I'll get a new release cut very soon.

@jpwilliams v3.6.0 is out with this fix.


Your demo.js file is missing from the repository

Looking for examples, yet the file has since been removed.

https://github.com/gocanto/google-autocomplete/blob/master/src/js/index.js

Thanks, there is a mistake in your README.md which points to an old demo.js
Great plugin. 👍

Fixed on https://github.com/gocanto/google-autocomplete/pull/18
thanks buddy.


[T4A5][W13-B3] Ngin Yun Chuan

Ready for review

Well done! Good use of enums, and good try at adding the functionality into the program.


chore(main): release 6.1.0

:robot: I have created a release beep boop
6.1.0 (2024-05-01)
Features

Add connection factory with name resolver mbed tls (#536) (af200d2)
Add FlashHeterogenous (#549) (a0deadb)
Add Segger RTT tracing output option (#572) (16529d7)
Changed compile definitions to be compatible with the gnu assembler (#554) (5a5e5dc)
Disabled documentation warning when compiling with AppleClang (#618) (5fd230a)
Services/network/HttpClientBasic is now able to process more than 1 request (#576) (0df2625)

Bug Fixes

Avoid overflow when scheduling TimerSingleShot (#612) (ea4683c)
Ble advertisement parser erroneous data handling (#600) (f6d6b5e)
BufferingStreamReader OOB access and Echo segments calculated correctly (#569) (b1c1d12)
ConnectionMbedTls no longer calls DataReceived() with 0 bytes (#585) (cd74d66)
Duplicate header guard HAL_UART_HOST_HPP (#558) (a8b1e63)
Heap memory leak on SerializerFactory::OnHeap (#561) (0ed606b)
Networking on linux (#594) (972ff81)
Repeated proto message incorrect maxMessageSize calculation (#617) (2d28a51)
Services/network/ConnectionMbedTls: Hostname() may not be invoked after ConnectionEstablished() (#609) (fcc469a)
Services/network/WebSocketClientConnectionObserver: Don't close websocket connection after 1 minute (#578) (d2e0c05)
Timer jumped shall trigger next trigger time update (9bbfb53)
Timer jumped will trigger next trigger time update (#590) (9bbfb53)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/philips-software/amp-embedded-infra-lib/releases/tag/v6.1.0 :sunflower:


Mod Compat: Can't craft wooden pressure plate if Tinker's Construct is loaded

TConstruct adds a recipe to turn two slabs into an item rack, which interferes with the replaced pressure plate recipe.
Need to always check if one of the new 2x2 recipes conflicts with an existing recipe, and take appropriate action.

Won't fix.  Pack authors should use crafttweaker or simply disable one of the recipes.


fn: switch to simpler synchronous hot launcher

Revert to older launch strategy where each request makes
an individual decision on container launch as opposed to
hot launcher nanny go-routine per slot queue.
The evictor is also improved with this PR, which simplifies
this decision logic and allows us to be more aggressive
in launch decisions.
The new strategy is as follows:

Each request checks slot queue first to acquire
a free slot.

Main loop of checkLaunch() monitors two main sets of events
at a time, for example:
A) free slots + new container launch
B) free slots + resource wait
C) if resource wait times out based on HotPoll interval + wait for evictions
and it switches between these sets depending on
the state of the main loop. Resource tracker no longer
returns CapacityFull and it no longer has non-blocking mode.

In case of evictions, the request that caused the evictions waits
for the evictions to complete. During this wait, if another slot becomes
available, the request is allowed to grab it.

NOTE: for cold, non-blocking mode is no longer supported.

I'll take another look at this for a bit. I apologize for this super complex PR. Logically, we could potentially split evictor changes from this. Maybe as a subsequent PR on top of this. But I prefer not merging that to the old launcher. I'll spend another day on this and see how things go.


[RFC] - Geo Bound Aggregation on Geo Shape Field

The purpose of this RFC (request for comments) is to gather community feedback on a proposal to allow OpenSearch users to facilitate Geo Bounds Aggregations over the GeoShape data type. This RFC is in continuation with #84.
Geo Bounds Aggregation
A metric aggregation that computes the bounding box containing all geo values for a field.
Aggregation Schema
{
  "aggs/aggregations": {
    "<user-provided-aggregation-name>": {
      "geo_bounds": {
        "field": "<field-name-on-which-aggregation-will-be-performed>",
        "wrap_longitude": <true/false> // default value is true
      }
    }
  }
}

Input Parmeters:

wrap_longitude: It will be an optional parameter which specifies whether the bounding box should be allowed to overlap the international date line. The default value is true. If wrap_longitude is set to true (the default), the bounding box can overlap the international date line and return a bounds where the top_left longitude is larger than the top_right longitude.

Example
Index Creation
PUT /myexample
{
  "mappings": {
    "properties": {
      "geometry": {
        "type": "geo_shape"
      }
    }
  }
}

Index Data
POST /myexample/_bulk?refresh
{"index":{"_id":1}}
{"name": "Science Museum", "geometry": "POINT(4.912350 52.374081)" }
{"index":{"_id":2}}
{"name": "MyHouse", "geometry": { "type": "Polygon", "coordinates": [ [ [ 4.965305328369141, 52.39347642069457 ], [ 4.966979026794433, 52.391721758934835 ], [ 4.969425201416015, 52.39238958618537 ], [ 4.967944622039794, 52.39420969150824 ], [ 4.965305328369141, 52.39347642069457 ] ] ] } }

Run Aggregation
POST /myexample/_search?size=0
{
  "aggregations": {
    "viewport": {
      "geo_bounds": {
        "field": "geometry",
        "wrap_longitude": true
      }
    }
  }
}

Output of Aggregation
{
....
  "aggregations": {
    "viewport": {
      "bounds": {
        "top_left": {
          "lat": 52.39420966710895,
          "lon": 4.912349972873926
        },
        "bottom_right": {
          "lat": 52.374080987647176,
          "lon": 4.969425117596984
        }
      }
    }
  }
}

Launch Dates
We are working to identify the exact version of OpenSearch in which this aggregation will be launched. Will add the details soon.
References

GeoBound on Geo Points: https://opensearch.org/docs/latest/opensearch/metric-agg/#geo_bound
RFC for Aggregations: #84

Closing this RFC as the code is merged to 2.9 branch


Allow excluding files from the static folder on .nuxtignore

What problem does this feature solve?
There are several cases where we need to include some test assets in the static folder so we can do development or run a mock version of an app. However those files are not needed for production, but they are bundled with everything within the static folder.
If we have a local folder inside of static where we put all of our test assets it would be great to have a way to tell webpack or the nuxt framework to ignore that local folder when we execute npm run build.
What does the proposed changes look like?
In .nuxtignore I should be able to include something like
static/local
In order to exclude the local folder from the final build.

This feature request is available on Nuxt community (#c9785)

I like this feature request, cc @clarkdo

I need this too! I have a situation where I can generate different builds from the code base using nuxt config and every time I have to delete the unnecessary static files for that specific build

We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. I'm closing this issue as it's marked as a Nuxt 2 related enhancement and it's not a critical issue.
That doesn't mean it might not be relevant for Nuxt 3. If it is, please feel free to open a new issue (or just comment, and I can reopen it). 🙏
Thank you for your understanding and for your contribution to Nuxt! 🎉


Fix command to enable testsigning

The original command might have specified {default} which someone
might have incorrectly assumed to be a placeholder for a GUID.

Thanks @rahul-ramadas this fix should be on the live site within the hour.