ENH: Add optimize.root_scalar() as a universal dispatcher for 1d root-finders

Attempt at adding universal dispatcher for the 1d root-solvers, analogous to optimize.root() for the vector functions. Adding testing by name using root_scalar(). Addresses gh-8884.
Added x1=None, rtol=0 as optional arguments to newton().
If fprime is not specified, and x1 is, use that instead of 1.0001*x0.
Allow specifying a rtol for the convergence criterion.
The signature is now:
newton(func, x0, fprime=None, args=(), tol=1.48e-8, maxiter=50,
        fprime2=None, x1=None, rtol=0.0,
        full_output=False, disp=True)

@pv  The full_output and disp which were added to newton() two weeks ago (gh-8803) fit naturally at the end so I placed the two new keywords just before them. For complete backwards compatibility, however, the new ones should be at the end.  Are such changes permitted before the code is incorporated into an actual release? Or is it the case that once a PR has been merged, anything future must be compatible with it.

Are such changes permitted before the code is incorporated into an actual release? Or is it the case that once a PR has been merged, anything future must be compatible with it.

As long as code is not in a released version, it can still be changed. So inserting the new keywords like you did seems right.

There are multiple open (or recently closed) PRs dealing with scalar root-finding.[ O=Open, C=Closed, R=to-be-replaced]

gh-8357 [O] Vectorize newton.
gh-8431  [O] Cython optimize.
gh-8761  [R] Add Sidi's root-finding algorithm.
gh-8803  [C] additional optional full_output arg to newton().
gh-8835  [O] Replace Newton's method with Homeier's modification.
gh-8876  [O] Add TOMS748 algorithm as root finder.  Enhanced test suite/framework.
gh-8882  [O] Reduced (safer) use of Halley's algorithm.
gh-8889  [O] Rework optimize top-level doc.
gh-8890  [O] universal dispatcher for 1d root finders, optional rtol, x1 args to newton().
(maybe some others I've missed ....  Is there a way to ask GitHub for all PRs that modify a specific file?)

Some thoughts when considering these PRs:
gh-8835 is not backwards compatible. Perhaps more naturally considered as a separate algorithm.
gh-8876 could naturally follow gh-8890. (actually the additional ~150 test cases and framework would be useful independent of adding TOMS748)
gh-8761's replacement could also naturally follow after gh-8890.
gh-8882 collides with most, but easily accommodates the others.
gh-8889 probably collides with gh-8890, but either could accommodate the other.
gh-8357 collides with gh-8890, but probably either could accommodate the other.
gh-8431 (Cythonizing) probably collides with everything.

IMHO it would be easier to accommodate this PR and other new API changes (such as #8803) into #8357 if it were merged first. I greatly appreciate SciPy reviewers and maintainers time, but it has been in review since mid April.  I hope it can be merged soon. I have tried very hard to respond and adjust to many reviewers comments, and I believe it is a useful addition to SciPy. Perhaps @pvanmulbregt , @pv, or @rgommers might be interested in reviewing it? I understand you are very busy, but if you had any suggestions or concerns that I could address in order to merge it, I would be very grateful. Thank you!

Also I plan to restart work on #8431 as soon as #8357 is merged. I had discussed this with @person142 a bit, and I also posted on the scipy-dev mail list. The idea is to create an API for users who desired tight looping as an alternate to #8357. The Cython optimize API would expose Brent, bisection, and Ridder in addition to Newton, but the user would have to write their own custom Cython code, so IMO they would be considered "outside" of this universal dispatcher for 1d root finders. For an customized Cython optimize example that uses newton and bisect see zeros_examples.pyx.
PS - Sorry if I am spamming this PR. I can delete these comments if they are inappropriate here.

@mikofski no worries, you're not spamming. We're just more short on reviewer manpower than usual - I know it's frustrating.

@mikofski Actually, this is why I collected the open PRs and made few comments, hoping to have this discussion in order to understand possible interactions/implications before any of these are merged...

One question that comes to mind when thinking about the 1-d root-finders is whether there is any underlying philosophy to the collection.
The bracket-free derivative-using methods newton/secant/halley are not necessarily "root-finders" per se, but perhaps better considered as "root-polishers".   [It was striking to see with the test cases in  gh-8876 how many more function calls were needed by newton than say brentq.]
Currently newton is pretty minimal, failing under many circumstances under which it could recover.
It could be made safer, by allowing a bracketing interval to be passed in by the user.   Or  more efficient by allowing the function to return f and its derivatives in a single call.  That starts to make the implementation more robust but also more complicated.
Another viewpoint is that newton shouldn't really be recommended to find roots, but only to polish them, in situations where it will always work, and hence it should always have a bare-metal, user-beware implementation, forever.

IMO the Newton/Halley/secant methods are supposed to be minimalist, and the documentation explicitly states that they are not safe, that the bracketed methods are safer, and that brentq is preferred. This is rendered in the docs, and the preference for brentq is stated again in the tutorial.
I agree the that we might be able to improve Newton slightly. I have suggested backtracking and line searching using previous guesses when convergence is poor as I did for my MATLAB Newton-Raphson solver although maybe it's disallowed since I paraphrased from NR, and I'm still ambivalent.
So I'm general I'm in favor of your last statement, that newton be considered "bare-metal, user-beware implementation, forever."

Needs a rebase. Overall this looks quite good to me. Made lots of little comments, nothing major yet - still need to play with the code a bit.

The tests won't run like this, still needs a rebase.

A test for method=None seems to be missing, trying that turns up an issue:
optimize.root_scalar(lambda x: x**2 - 2)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-3-358881f9acc8> in <module>()
----> 1 optimize.root_scalar(lambda x: x**2 - 2)

~/Code/scipy/scipy/optimize/_root_scalar.py in root_scalar(f, args, method, bracket, fprime, fprime2, x0, x1, xtol, rtol, maxiter, options)
    161         args = (args,)
    162
--> 163     meth = method.lower()
    164     if options is None:
    165         options = {}

AttributeError: 'NoneType' object has no attribute 'lower'

Second issue, when specifying a method but not x0:
In [9]: optimize.root_scalar(lambda x: x**2 - 2, method='newton')
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-9-a285ea476781> in <module>()
----> 1 optimize.root_scalar(lambda x: x**2 - 2, method='newton')

~/Code/scipy/scipy/optimize/_root_scalar.py in root_scalar(f, args, method, bracket, fprime, fprime2, x0, x1, xtol, rtol, maxiter, options)
    218             kwargs['tol'] = kwargs.pop('xtol')
    219         r, sol = methodc(f, x0, args=args, fprime=fprime, fprime2=fprime2,
--> 220                          x1=x1, **kwargs)
    221     else:
    222         raise ValueError('Unknown solver %s' % method)

~/Code/scipy/scipy/optimize/zeros.py in newton(func, x0, fprime, args, tol, maxiter, fprime2, x1, rtol, full_output, disp)
    192     # Multiply by 1.0 to convert to floating point.  We don't use float(x0)
    193     # so it still works if x0 is complex.
--> 194     p0 = 1.0 * x0
    195     funcalls = 0
    196     if fprime is not None:

TypeError: unsupported operand type(s) for *: 'float' and 'NoneType'

Third issue:
In [11]: optimize.root_scalar(lambda x: x**2 - 2, method='brentq', x0=1)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-11-8b5255d59a85> in <module>()
----> 1 optimize.root_scalar(lambda x: x**2 - 2, method='brentq', x0=1)

~/Code/scipy/scipy/optimize/_root_scalar.py in root_scalar(f, args, method, bracket, fprime, fprime2, x0, x1, xtol, rtol, maxiter, options)
    212
    213     if meth in ['bisect', 'ridder', 'brentq', 'brenth']:
--> 214         a, b = bracket[:2]
    215         r, sol = methodc(f, a, b, args=args, **kwargs)
    216     elif meth == 'newton':

TypeError: 'NoneType' object is not subscriptable

Generally seems to need some checks for "expected user errors".

When I do things as intended, all seems fine. Nice interface.

On @rgommers  3 issues:

A None method is supposed to be fine.  In that case it selects which to use based on what data is provided: bracket => brentq, no bracket but f' => newton.  Otherwise raise ValueError.  The meth = method.lower() was incorrectly placed in all code paths.
The line p0 = 1 * x0 has actually been present in optimize.py:newton() for at least 8 years.  I'll add a check in  root_scalar for None.
I'll add a check on bracket being a list, tuple, np.ndarray.

Changes for user errors look good, tried some more and all is well from what I can tell.
Clicked approve on my review from yesterday too early - the doc build and other minor errors still need addressing.

I will try to take at this over the weekend if that's helpful.

Split root_scalar(f, method='newton') into 3 constituent cases. method='newton' (requires 1 derivative), method='halley' (requires two derivatives fprimeand fprime2), method='secant' (no derivatives). This way the user is being explicit as to which approach they want.
[If method is None, then root_scalar will still select the most appropriate method.
If the user calls optimize.newton directly, there is no change in behavior.
This modification is only about getting a clean interface for root_scalar().]
Thoughts?

Split root_scalar(f, method='newton') into 3 constituent cases.

This sounds like a good idea to me. The method names don't have to be 1:1 corresponding with current functions; it should make sense stand-alone and it does here. These are 3 related but separate algorithms, so can be split in the UX here.

cross referencing #5504 an earlier attempt abandoned by @person142


Permission Cache not refreshing on change

Currently in v5, any permission changes I set via API are not reflected in permission cache until the current cached data expires.
group.getCachedData().invalidate();
for (User user :this.luckPermsApi.getUserManager().getLoadedUsers()) {
    user.getCachedData().invalidate();
}

To work around this issue in the past, I would force a cache invalidation on permission set as shown above but this does not work with v5.
Tested using LP 5.0.37

b2593d409ed583c175069ce2bb61d88525f2151b


PENV-369: update coverage action

- What I did
- How I did it
- How to verify it
- Description for the changelog

Codecov Report

Merging #46 into master will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #46      +/-   ##
==========================================
+ Coverage   65.30%   65.34%   +0.03%
==========================================
  Files          35       35
  Lines        1692     1685       -7
==========================================
- Hits         1105     1101       -4
  Misses        495      495
+ Partials       92       89       -3

Impacted Files
Coverage Δ

api/generated.go
52.94% <100.00%> (-0.72%)
:arrow_down:

Continue to review full report at Codecov.

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


[3603] lead school organisation context to be read only

Context
Ensure lead school users are not able to visit any "edit/change" links on trainees.
Changes proposed in this pull request

Change the write? method in TraineePolicy to only allow records which are "awaiting actions" against providers.
Add an argument editable to many view components which were previously using system_admin to determine if the component should be editable (for completed records) and use the TraineePolicy#update? check to determine if editable should be true/false. In all cases, i've chosen to default to editable either as a required attribute, or defaulted to false to limit access where necessary by actively using the policy.
Hide missing data banners from the lead school users, and hide the RecordActions::View component (which shows the defer/withdraw/delete links)
Fix some specs, delete some things, and add a feature spec to ensure that no change links are shown when logged in as a lead school user.

Guidance to review
Visit a trainee under different contexts (admin, provider and lead schools).
As a lead school user, assert that no action links are visible (change, withdraw, defer, delete, etc), no missing data prompts are visible
Important business

~Does this PR introduce any PII fields that need to be overwritten or deleted in db/scripts/sanitise.sql?~
~Does this PR change the database schema? If so, have you updated the config/analytics.yml file and considered whether you need to send 'import_entity' events?~

 [L] Lead school organisation context should be read only

 [L] Lead school organisation context should be read only

Feedback comments fixed in https://github.com/DFE-Digital/register-trainee-teachers/pull/2017


Stuck in optimizer.step()

Training with Multi-GPUs then stuck in progress 19622/139600. So I tried to debug with print() step by step, then I found that one of the optimizer is stuck when it trying to make optimizer.step(), but I still can't figure out how to solve it. Please helps.
And this is the example code:
optimizer = transformers.AdamW(model.parameters(), lr=lr)
# prepare optimizer with accelerator
......

loss = get_loss(ret_logits, labels)
if mode == "train":
    optimizer.zero_grad()
    if accelerate:
        print(f"loss: {loss}")
        accelerator.backward(loss)
    else:
        loss.backward()
    print("bp done")
    optimizer.step()
    print("opt done")
    lr_scheduler.step()
    print("sche done")
    lr_scheduler.step()

And the outputs show
loss: 0.7963258028030396
bp done
...

Hi, has this problem been solved?

Same problem encountered here


Can't handle onTap event when user tap on title of button

Hello,
Can't handle the onTap event when the user tap on the title of a button.
How we can handle it?
I created a Login button with code below:

Hi,
Having ran the code myself, I can confirm that it is handling the onTap event as it should. What is the problem you are getting?

Hi aliyigitbireroglu,
I fixed this issue on my side.
The reason: I'm using flutter_progress_hud for show HUD, I removed it then login button work perfect :).
Thank you aliyigitbireroglu


PyStan changes data inplace

I noticed that the following loop changes data inplace.
# in `data`: convert numpy arrays to normal lists
for key, value in data.items():
    if isinstance(value, np.ndarray):
        data[key] = value.tolist()

Is this what we want? Because I highly doubt that deep copy would fill anyones RAM.

Good point. We should operate on a copy.


Deploying Bitbar in an environment

#164
I have been using bitter for quite some time and its something I would like to deploy as part of our images, so that the IP is present on the menu bar for all users.
I have been able to deploy bitbar, and create a folder for the plugins and the location, but I have not been able by script or otherwise, to activate bitbar and tell it to use the plugin directory I assigned for it.
Is there a way to add these settings by command-line ? or is this something that would need to get added to bitbar ?

@gilbertpalau there is indeed a way to do this:
# Will open BitBar if it is in the /Applications/ directory (or ~/Applications, maybe some other places too)
open -a "BitBar"

# Sets the pluginsDirectory to read from
defaults read com.matryer.bitbar pluginsDirectory "~/.bitbar/plugins"

# Kills BitBar!
killall BitBar

Hopefully that solves your issue :smile:

@keithamus Something I noticed today was that some systems I deployed this to, the scripts lost the "executable" attributes and I would get the Triangle-Warning-of-Death up in the menu bar.  Do you have a ny suggesting for preventing this from happening?

I don’t know why that would happen but they can be re-enbaled by doing chmod +x *.sh inside the plugin directory (assuming they’re all .sh files).
The ‘Managed BitBar’ thing keeps coming up, and I think it deserves closer attention. I.e. a way to package and deliver (easily) a BitBar configuration to users and remove some of the system menu items etc.

On 3 Feb 2016, at 01:40, Gilbert Palau<EMAIL_ADDRESS>wrote:
@keithamus https://github.com/keithamus Something I noticed today was that some systems I deployed this to, the scripts lost the "executable" attributes and I would get the Triangle-Warning-of-Death up in the menu bar. Do you have a ny suggesting for preventing this from happening?
—
Reply to this email directly or view it on GitHub https://github.com/matryer/bitbar/issues/198#issuecomment-178949736.

see https://github.com/matryer/bitbar/issues/180


fix: memory leak in Image

There 2 leak points in the Image class.

The Env::create_reference was wrong in NAPI-RS, related pr: https://github.com/napi-rs/napi-rs/pull/2347, change to the Ref::new can resolve it.
The PromiseRaw::catch callback was leaked, it cause the whole Image objects not be GCed, it was fixed in https://github.com/napi-rs/napi-rs/pull/2348

#934  👈
main

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

Join @Brooooooklyn and the rest of your teammates on  Graphite

Merge activity

Nov 7, 1:27 AM EST: A user started a stack merge that includes this pull request via Graphite.

感谢修复，公司内部通过压测验证修复有效！☆(￣▽￣)/$:*


Update Story-tools build process to transpile from ES6 to ES5.

Add a step to the Story-tools Gulp build process that pipes the code through an ES6-to-ES5 transpiler. Currently the scripts step builds the code for the Composer project: https://github.com/MapStory/story-tools/blob/master/gulpfile.js#L296

https://github.com/MapStory/story-tools/pull/316


Fix miscellaneous style nits that irritate overactive static analysis.

Also increase consistency with how overflow && zero is tested, and
avoid some mixed declarations and code that GCC wasn't detecting.

utACK


How to page when there are multiple tables in the measurement

I just want to get a record. What should I do

Only when all tags are used as query criteria, multiple tables will not be returned. Why do you have to use all tags? How to achieve the query effect similar to MySQL


Optimize multi-tensor cast-transpose kernel

Description
This PR optimizes the performance of the multi-tensor cast-transpose kernel for relatively small matrices (e.g. 1024 x 4096). In particular, it increases the CUDA block size in order to reduce register pressure and maximize SM occupancy. I've also ported the kernel to NVRTC, which will be helpful if we ever want to implement a more sophisticated performance model that can handle both large or small matrices. Benchmarking with BERT weights on an H100, I see a 1.6x speedup and achieve 80% of peak memory bandwidth.
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[x] Code refractor

Changes

Implement multi-tensor cast-transpose as NVRTC kernel
Increase CUDA block size for multi-tensor cast-transpose kernel

Checklist:

[x] I have read and followed the contributing guidelines
[x] The functionality is complete
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

/te-ci

/te-ci


fix: 1 high severity vulnerability

Fixes #326

With this change
$  npm install

up to date, audited 473 packages in 713ms

93 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


Rework Ubuntu Installation Instructions

Be explicit about Ubuntu version numbers
Clone repository first to keep the venv local
Be explicit about Python version numbers
Prefer using apt instead of apt-get
Add --yes flag to apt install subcommand
Use a virtual environment to not pollute the system
Install python packages in one command so that pip can resolve their dependencies properly
Use python executables from virtual environment for running analyse.py script

Thanks. To be honest, I personally don't like to put virtual environments in the readme, because it complicates things and doesn't look as clean as without. I understand the motivation, I just don't like it as brief overview of the packages we use. I agree with putting everything in one line and cloning first though. I'd like to have a discussion about virtual environments in the readme to get to know peoples opinions.

In my opinion, the Pros outweigh the Cons.
Sure, the instructions are more complicated, and less technical people might find it off-putting.
But that's exactly when you should use venvs. It's much more painful to deal with different numpy versions than to follow these simple instructions.

@kahst thanks for picking some of my ideas up for inclusion in the main branch.
Virtual Environments
@kahst could please elaborate on your preference to not virtual environments into readmes? I noticed that there are commands for creating conda environments in the readme. While I agree that these are not technically virtual environments, their commands are more verbose, and they do not solve any additional problems. Are you okay with these? What is your opinion/policy here? Consider:
conda create -n birdnet-analyzer python=3.10 -c conda-forge -y

vs.
python3.8 -m venv venv

Clean Readme
I suppose, the cleanest readme would only list a docker run command. That would however hide a lot of interesting details and make working with the package more difficult than necessary. Instead, each readme needs to strike a balance between conciseness and showing something actually useful to its readers. My aim in writing readmes has been that users can follow them from top to bottom and by that arrive at a workable setup in some interesting sense. I have found that I can arrive at a sensible measure of verbosity by considering if it is easier to name a prerequisite or to show how to fulfill it. In the case of the virtual environment, one could name the prerequisite:

The follwing instructions assume that you run them in a virtual environment created by the venv module of Python 3.8 and that you have activated said environment.

I mean, that is certainly doable and arguable also readable to users that are familiar with venv. However, as @fegue pointed out, many users are not that well versed in setting up virtual environments. I would argue that making users aware of the benefis of virtual environments and expecting them to get familiar with the accompanying tools is out of scope for this readme. Instead, the focus should lay on setting up this project to use it in an application or develop this project further. Therefore, I think that the readme should rather to give a recommendation on using a virtual environment and show how to set up and use one, without any discussion. Yes, there alternatives to using venv like conda, which is already mentioned in other sections of the readme. However, discussing their pros and cons is clearly out of scope for this readme. Moreso, one could even drop the recommendation and just assume that everyone will be using venv. That might seem arrogant, but it makes the readme more concise and is based on the recommendation of the Python project:

[pip and venv] [...} are recommended if higher-level tools do not suit your needs.

https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#creating-a-virtual-environment

The conda part is on me because apple needs some dependencies from their channel
conda install -c apple tensorflow-deps

If you're using conda, you should consider recommending the C++ implementation mamba instead.
Dependent on the environment, conda can take ages to solve. I changed to mamba a half year ago and does not regret it.

To be honest, I personally don't like to put virtual environments in the readme, because it complicates things and doesn't look as clean as without.

Sounds to me that it's time to start a wiki. Let me know, I can put this together :octocat:


CNCF TAG-Runtime Discussion/Presentation?

Search before asking

[X] I had searched in the issues and found no similar feature requirement.

Description
Hello kuberay team,
I'm one of the co-chairs of the CNCF TAG-Runtime, I'm reaching out and think it would be great for you to present/discuss the project at one of our meetings. An overview of the project would be great.
Let me know if this something you'd be interested in doing. If yes, please feel free to add it to our agenda or reach out to me (raravena80 at gmail.com)
Thanks!
Use case
N/A
Related issues
N/A
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

Hi Ricardo,
Great to see you hear :)  Sure there are many of us that are very comfortable presenting KubeRay.
One thing to note here, is while Ray itself is the Framework for running distributed applications, KubeRay is the Operator responsible for setting up the cluster of pods capable of hosting the distributed computation.
In the context of TAG Runtime, are you more interested in Ray or KubeRay, or maybe both?
@DmitriGekhtman and others, any thoughts....

cc @Jeffwan @dynamicwebpaige @zhe-thoughts

@raravena80
I think it would make sense to aim for the July 7th slot. I'd be glad to present and/or co-present with others.
Let us know details (such as presentation timing etc.)

Hi @akanso and all, covering both sounds like a good thing 😄  @DmitriGekhtman July 7th sounds good, the meeting/presentation is at 8am PT and the details are in the meeting notes.

We have plenty time for July 7th slot. Let's sync up in ray slack and post the plan later here.


Renamed enIsEnabled to enIsDisabled (closes #814)

Renamed enIsEnabled to enIsDisabled and changed comment; did not change the logic.
Checklist

[ ] Test your changes as thoroughly as possible before you commit them. Preferably, automate your test by unit/integration tests.
[x] If this PR comes from a fork, please Allow edits from maintainers
[x] Set a speaking title. Format: {task_name} (closes #{issue_number}). For example: Use logger (closes # 41)
[x] Link your Pull Request to an issue - Pull Requests that are not linked to an issue with you as an assignee will be closed, except for minor fixes for typos or grammar mistakes in documentation or code comments.
[ ] Create Work In Progress [WIP] pull requests only if you need clarification or an explicit review before you can continue your work item.
[x] Make sure that your PR is not introducing unnecessary reformatting (e.g., introduced by on-save hooks in your IDE)
[x] Make sure that your PR does not contain changes in text files, therefore the PR must not contain changes in values/strings/* and / or assets/* (see issue #332 for further information)
[x] Make sure that your PR does not contain compiled sources (already set by the default .gitignore) and / or binary files

Description
Code was not easily readable with inverted logic enIsEnabled = !(...).asyncIsEnabled()

This closes https://github.com/corona-warn-app/cwa-app-android/issues/814


Implement timestamps for api calls

Change-Id: Ibeec7aa43a6180158f7759000706221c8601dd37

Closing this as it appears to have been replaced by #250


Erron when running on Debian ARM64

Hi,
I'm trying to run the code from a Debian ARM64 on AWS.
After installing using pip install whispercpp, I executed the following code:
from whispercpp import Whisper

print(f'STT Starting')
w = Whisper.from_pretrained("tiny")
w.transcribe_from_file("/etc/stt/audio.wav")

And it fails with this trace:
STT Starting
Traceback (most recent call last):
  File "/etc/stt/stt.py", line 4, in <module>
    w = Whisper.from_pretrained("tiny")
  File "/usr/local/lib/python3.9/dist-packages/whispercpp/__init__.py", line 105, in from_pretrained
    context = api.Context.from_file(
  File "/usr/local/lib/python3.9/dist-packages/whispercpp/utils.py", line 144, in __getattr__
    self._module = self._load()
  File "/usr/local/lib/python3.9/dist-packages/whispercpp/utils.py", line 122, in _load
    module = importlib.import_module(self.__name__)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 565, in module_from_spec
  File "<frozen importlib._bootstrap_external>", line 1108, in create_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
ImportError: /usr/local/lib/python3.9/dist-packages/whispercpp/api_cpp2py_export.so: invalid ELF header

Am I missing something?

oh this arm wheels is broken. what version of the package you are using?

can you try to do pip install git+https://github.com/aarnphm/whispercpp.git for now?

Hey I'm having the same issue on ARM64 (specifically Jetson Nano)


Add Recursive Depth check

We had our call stack blowing up regularly.
Add a new Dip Error and reporting to help identify recursive errors.
It can print out a report like the following:
Recursive Depth exceeded: Cycle Found: [DipTests.RecusiveTests.(unknown context at $106ad07f8).ServiceA, DipTests.RecusiveTests.(unknown context at $106ad0758).ServiceB, DipTests.RecusiveTests.(unknown context at $106ad06b8).ServiceC]

The Max is defaulted to 100. Can be configured statically.

All minor stuff .. great change John, this will help a lot!


Error with Special Characters

We are getting the following error due to special characters in the field name. We'd rather not modify the field names. Are there any workarounds?
"
Exception message:VS402800: The name 'Name-with-dashes' is invalid. Names cannot be empty, exceed 128 characters, be a number, or contain the following characters: '.,;~:/*|?"&%$!+=()[]{}<>-์.
There was another issue with this posted. Was this resolved? What is the solution for this issue?

Additionally, special characters i.e. dash -, question mark ?, <> greater than/less than signs, ampersands &, are present in the list values for list type fields, if the field names are updated and special characters are removed, will the list values with special characters also show the exception and stop the import?
for example:
<LISTITEM value="<None>" />

and
<LISTITEM value="1 - High" />
<LISTITEM value="2 - Medium" />
<LISTITEM value="3 - Low" />

We've been able to resolve the issue somehow by resetting the field as specified here https://github.com/microsoft/process-migrator/issues/24


Implement Custom Properties

Closes #49

Ok something wrong with codespell. I added nam to ignore list and it still won't ignore it lol


Update UCSB Web Accessibility Guidelines

We need to update the Web Accessibility Guidelines PDF:
http://webguide.ucsb.edu/web-accessibility/
Specifically, I think we need to do two things:

Convert the guidelines from a PDF to format that's easier to edit
Update the content

I'm not sure if the guidelines are so big that they (1) deserve their own repository or (2) if they could be integrated as a section within the existing guide.
We would need to work with the accessibility/policy heads on campus to make sure we go about it in the right way.

Wow, Good catch Logan!!  We completely missed that during the 2013 rewrite :-(
I am also a bit confused about the source and purpose of that document.  It looks like
something the WSG may have created itself in 2006.  The content seems to be almost
a condensed version of the site itself (prior to the 2013 rewrite).  If so, it doesn’t make sense
to try to recreate it in something other than PDF.  But that brings up the issue of purpose.
If it’s meant to be a condensed, “printable” version of the guide then we might want to handle that
differently.  It also should maybe not be buried on a page, but be a menu item.
Aaron Martin  (CNT)
Earth Research Institute
6809 Ellison Hall
UCSB MS-3060
805-893-8415
<EMAIL_ADDRESS><EMAIL_ADDRESS>
On Oct 19, 2015, at 7:51 AM, Logan Franken<EMAIL_ADDRESS>wrote:
We need to update the Web Accessibility Guidelines PDF:
http://webguide.ucsb.edu/web-accessibility/ http://webguide.ucsb.edu/web-accessibility/
Specifically, I think we need to do two things:
Convert the guidelines from a PDF to format that's easier to edit
Update the content
I'm not sure if the guidelines are so big that they (1) deserve their own repository or (2) if they could be integrated as a section within the existing guide.
We would need to work with the accessibility/policy heads on campus to make sure we go about it in the right way.
—
Reply to this email directly or view it on GitHub https://github.com/ucsb-wsg/ucsb-wsg.github.io/issues/74.

Oh, I totally see the overlap you're seeing, @fablio-work!
I think this was supposed to be a PDF specific to supporting assistive technology users (rather than a condensed copy of the guide). I think the overlap is just a result of the fact that accessibility guidelines naturally align with web best practices.
Since, as you point out @fablio-work, there is a ton of overlap, we might be able to throw out a lot of this content?

If the purpose is separate and distinct, then thats a reasonable question.
In addition maybe we should be asking questions like:

Is there a better source for the info than our site? (possibly not with all the work being done right now)
Does that distinct purpose warrant repeating sections of the guide?
If so, can we somehow capture those sections automatically/programmatically?
can we do so into a PDF?
does it need to be a PDF?
Is there some reason we want/need to provide a cleanly printable version of that subset of content?

I feel like this is one of those lost “corners” of the guide that needs re-evaluating.
Aaron Martin  (CNT)
Earth Research Institute
6809 Ellison Hall
UCSB MS-3060
805-893-8415
<EMAIL_ADDRESS><EMAIL_ADDRESS>
On Oct 19, 2015, at 9:19 AM, Logan Franken<EMAIL_ADDRESS>wrote:
Oh, I totally see the overlap you're seeing, @fablio-work https://github.com/fablio-work!
I think this was supposed to be a PDF specific to supporting assistive technology users (rather than a condensed copy of the guide). I think the overlap is just a result of the fact that accessibility guidelines naturally align with web best practices.
Since, as you point out @fablio-work https://github.com/fablio-work, there is a ton of overlap, we might be able to throw out a lot of this content?
—
Reply to this email directly or view it on GitHub https://github.com/ucsb-wsg/ucsb-wsg.github.io/issues/74#issuecomment-149265208.

@tenken @cfwebmaster How would you all feel about creating a new repository (e.g. web-accessibility) to start fleshing out this content?
I could find a way to convert the PDF to text that we can all edit within that repo.
Alternatively, we could just use the existing wiki here too, but it might be a large enough project to necessitate its own repo.

Ya I like that idea. I will try to make it before the meeting for the ucsb-web organization.

Created, please see https://github.com/ucsb-wsg/web-accessibility

Awesome! Thanks @tenken!

This is now its own project (https://github.com/ucsb-wsg/web-accessibility), so I'm closing this issue.


Fix(form-validations): Use GridItem instead of GridSpan in demo #DS-1279

Description

Additional context

Issue reference

coverage: 78.723%. remained the same
when pulling c7f5d505f868fef008e78e5418a75a713878d608 on fix/remove-gridspan
into a4675b8c07c31f2ea8c1478c43be8d85e0b40b2c on integration/release-v2.


Why the test accuracy can be higher than train accuracy?

Hello,
When I used ModelNet 40 and other dataset to train Point Transformer(Hengshuang), I found after the 3rd epoch, the test accuracy would be higher than train accuracy.  It makes no sense a model could perform better when processing unseen data, right? Do you also meet this phenomenon?

This is possible, given that strong data augmentation is used, e.g., random scale, shift, drop (https://github.com/qq456cvb/Point-Transformers/blob/master/train_cls.py#L109).

No recent activities. Closed


problem with uploding codes. (IDFGH-5072)

we are facing this problem with Esp32 wrover B after we are molding it to PCB we are not able to upload the codes and we are also using CP2102.
as our last enquiry they said to use the DTR and RTS signals should be used to generate an EN and IO0 reset sequence and we are doing that and we are prasing the switch of reset and IO0 while uploading the code but it still says failed to connect to moduel.
and as you shared last schematic of CP2102 IC to upload the coding at the place of it we are using the CP2102 module which already the IC in it.
if you connect to somone then we could solve this problem asap please.

I'm linking here https://github.com/espressif/esp-idf/issues/6822 as previous issue opened regarding this.
So if you have buttons connected to EN & GPIO0 then you can manually put the chip into download mode (Hold GPIO0, reset by EN, release GPIO0) . 1. Connect a terminal program to the serial port (baud 115200, 8 data bits, 1 stop bit, without parity, without flow control). 2. Put the chip into download mode manually by the buttons. 3. Post here the result what can be observed on the serial port.
We will advise you further after completing these steps.

we are trying it but that's where we are stucked even after pressing the button it isn't downloading and showing the same on screen

there is one more pin at no.4 where there is RTS GPIOo and we placed switch at both, still not working.

please check if there is any problem with the wrover chart or tools?

we are trying it but that's where we are stucked even after pressing the button it isn't downloading and showing the same on screen

That is why I suggest to check if the chip can be put into download mode. We are not trying to download anything, only see if the first step of downloading is possible. Please do the following with a simple terminal, e.g. putty, not Arduino:

So if you have buttons connected to EN & GPIO0 then you can manually put the chip into download mode (Hold GPIO0, reset by EN, release GPIO0) . 1. Connect a terminal program to the serial port (baud 115200, 8 data bits, 1 stop bit, without parity, without flow control). 2. Put the chip into download mode manually by the buttons. 3. Post here the result what can be observed on the serial port.

I've linked earlier a page where you can upload your schematics for checking: https://github.com/espressif/esp-idf/issues/6822#issuecomment-813308945

our last enquiry they said to use the DTR and RTS signals should be used to generate an EN and IO0 reset sequence and we are doing that

I don't see that in your schematics. The DTR and RTS signals of CP2102 are not connected to ESP32.

we can only see 5 pins in CP2102 module
1 - 3.3wlt
2- rx
3- tx
4 - gnd
5- vcc
how to connect DTR and RTS signal to ESP32?

Hi @raoshubam96 ,
The related schematic has been shared by@dobairoland with the indication of implementation auto-boot and reset circuitry.
This circuit includes two transistors used for bootloader mode entrance sequence with the help of CP2102 and esptool by USB interface.
Please observe the shared schematic careful enough and there you will find your solution.
https://dl.espressif.com/dl/schematics/esp32_devkitc_v4-sch-20180607a.pdf

listen, we have made power supply according to your schematic only and also the reset circuit according to your schematic. we have placed a switch with ground connect with GPIO0 which is 25th number pin of ESP 32, now where should we give RTS or DTS connection? where we are using CP2102 module not CP2102 IC.

So it's not possible to implement the auto-boot and reset circuitry with a CP2102 module if your module doesn't have these pins as outputs. If it does, then you should use a breadboard and related components to create your own circuit.

we have bought it from you and you are saying that there should be a pins for output but there is not, so what should we do ?
should we buy new?

I am not a worker of Espressif, I am just a user like you.
And you did not understand what you read. You said that you are using CP2102 module; there is no point anyone else can do sth, it's your choice and under your responsibility. I am just trying to provide you a solution as a community member. But, you insist on your faults and not trying to understand what's happening.

i am sorry i didnt mean to come over you but its just that because of this our product has stucked and we can't move.
the only thing i am saying is you saying to connect connect DTS and RTS but we unable to see output pins for these, do you have any picture of CP2102 showing DTS RTS pins?

Offical Espressif external programmer is ESP-PROG.  If you are trying to use CP2102 module as a power supply, it is too weak.

I did just say; "if" you have DTR and RTS pins on your module, then you can use. Otherwise, it's not possible. I do not know which CP2102 module you are using, whether it is a custom designed or anything else.
Some modules have only RTS pins just like below;

Some have only RTS just like below.

So, it's so simple; if you have you can use, if not you cannot.


Training 2 actions

Hello! Thank you for sharing your work!
There was an error when running s5_test.py via webcam after training its own dataset with two actions.
File "C:\Realtime-Action-Recognition-master\utils\lib_classifier.py", line 185, in smooth_scores
    score_sums += score
ValueError: operands could not be broadcast together with shapes (9,) (2,) (9,)

I think it's related to the matrix,
could you help me that?

Hi! I have the same problem.
how did you solve it?

maybe you need to set window_size

I also faced this issue because I use the original model which is trained for 9 classes, but my new dataset has 6 classes. When run training script at step 4, my model was not saved because the qt error occured before saving model. You should check classes in config.yaml file or trained model file.

Thanks for the answer!!!


Reporting Module: Create Fuels lookup table

Describe the task
Part of the reporting process involves operators selecting the fuels that they used. We need a lookup table to hold the list of potential fuels along with their unit, fuel classification, and emission type (confirm with BA). The BCGHG Fields for BCIERS contains the most up to date list. Still to be confirmed with business area.
Acceptance Criteria

[ ] List of fuels and relevant fields confirmed with BA
[ ] Lookup table exists with latest approved values
[ ] Table has name and units columns

Note: If we do not have a confirmed set of fuels from BA when this work is started, let's create the table & add ~3 demo fuels. We can replace those fuels with the actual list when we receive it.
Additional context
This table could potentially get updated over time so needs to be editable.

@mikevespi will refine this ticket

Making a name and units column. The new rows that have been added (highlighted) are missing units.

@BallardRobinett Jairo has made a new spreadsheet with the units split out and refined list of fuels. Can you use this one for now? Fuels

@BallardRobinett Jairo has made a new spreadsheet with the units split out and refined list of fuels. Can you use this one for now? Fuels

@patriciarussellCAS Yes this is good. To confirm, I'm going to include all the highlighted yellow and red elements too? And some of them will just have a blank for the unit type column?

@BallardRobinett Jairo has made a new spreadsheet with the units split out and refined list of fuels. Can you use this one for now? Fuels

@patriciarussellCAS Yes this is good. To confirm, I'm going to include all the highlighted yellow and red elements too? And some of them will just have a blank for the unit type column?

Sorry - just saw this. Yes! include the highlighted elements and blank for unit type.


simulation time

I want to know that this is a whole simulation. What is the mechanism of time control
It's like when I ./bent_pipe ../configuration/planet-050-ns-002/, it's always running.
must waiting for the real trigger time?

If I want to deploy a 200 satellite constellation according to the orbital parameters, what are the suggestions for such a simulation? Can we conduct inter satellite communication?

If I want to deploy a 200 satellite constellation according to the orbital parameters, what are the suggestions for such a simulation? Can we conduct inter satellite communication?

I see that the .tle of all scenes in the sample is the same. The main problem is to want to how to specific the orbit parameters of all satellites.

The bent_pipe example simulates a constellation of satellites generated from a single “seed” satellite TLE and a constellation configuration file (the generate-constellation-configuration example provides more details for generating a constellation configuration file, particularly generate-constellation-configuration/scripts/generate_constellation_files.py). It simulates data collection and data transmission to ground stations.
Other examples simulate other systems, e.g. generate-voltage-trace simulates satellite energy collection, energy storage, and energy consumption by various peripherals as they transition between power modes.
Simulation time is controlled by the date-time.dat file (simulation start time), num-steps.dat file (number of simulation time steps to perform), and time-step.dat file (time between each simulation time step). In some cases, you can increase the time step to increase simulation speed at the expense of accuracy.
For the bent_pipe example, simulation could take awhile especially on slower computers (the program is CPU-bound and not memory-bound). Larger numbers of satellites and larger numbers of ground stations will increase execution time.
The bent_pipe example is designed to simulate future constellations generated from a single “seed” satellite TLE, but it easily could be modified to simulate many different deployed satellites using many different satellite TLE files.
A starting point would be to change this line:
https://github.com/CMUAbstract/cote/blob/8bd3c46a8406fb11703b23fa33de544cc2483814/examples/bent-pipe/source/bent-pipe.cpp#L47
into a vector, like this line:
https://github.com/CMUAbstract/cote/blob/8bd3c46a8406fb11703b23fa33de544cc2483814/examples/bent-pipe/source/bent-pipe.cpp#L50
File parsing (satelliteFile = it->path();) would need to be updated (e.g. satelliteFiles.push_back(it->path());) as well as the // Set up satellites block similar to the // Set up ground stations block.
If you make these changes, please do submit a pull request as a new directory under cote/examples!
Crosslinks are supported; for example, see:
https://github.com/CMUAbstract/cote/blob/8bd3c46a8406fb11703b23fa33de544cc2483814/software/channel/source/Channel.cpp#L136
However, crosslinking has not been tested in any of the examples.

The bent_pipe example simulates a constellation of satellites generated from a single “seed” satellite TLE and a constellation configuration file (the generate-constellation-configuration example provides more details for generating a constellation configuration file, particularly generate-constellation-configuration/scripts/generate_constellation_files.py). It simulates data collection and data transmission to ground stations.
Other examples simulate other systems, e.g. generate-voltage-trace simulates satellite energy collection, energy storage, and energy consumption by various peripherals as they transition between power modes.
Simulation time is controlled by the date-time.dat file (simulation start time), num-steps.dat file (number of simulation time steps to perform), and time-step.dat file (time between each simulation time step). In some cases, you can increase the time step to increase simulation speed at the expense of accuracy.
For the bent_pipe example, simulation could take awhile especially on slower computers (the program is CPU-bound and not memory-bound). Larger numbers of satellites and larger numbers of ground stations will increase execution time.
The bent_pipe example is designed to simulate future constellations generated from a single “seed” satellite TLE, but it easily could be modified to simulate many different deployed satellites using many different satellite TLE files.
A starting point would be to change this line:
https://github.com/CMUAbstract/cote/blob/8bd3c46a8406fb11703b23fa33de544cc2483814/examples/bent-pipe/source/bent-pipe.cpp#L47
into a vector, like this line:
https://github.com/CMUAbstract/cote/blob/8bd3c46a8406fb11703b23fa33de544cc2483814/examples/bent-pipe/source/bent-pipe.cpp#L50
File parsing (satelliteFile = it->path();) would need to be updated (e.g. satelliteFiles.push_back(it->path());) as well as the // Set up satellites block similar to the // Set up ground stations block.
If you make these changes, please do submit a pull request as a new directory under cote/examples!
Crosslinks are supported; for example, see:
https://github.com/CMUAbstract/cote/blob/8bd3c46a8406fb11703b23fa33de544cc2483814/software/channel/source/Channel.cpp#L136
However, crosslinking has not been tested in any of the examples.

Thank you for your answer. Next, I'll try to build a new scene and share.
I still need to confirm that crosslink refers to inter satellite links?

Yes, crosslink refers to communication between two satellites (https://github.com/CMUAbstract/cote/blob/master/references/wertz1999space.pdf PDF page 277 Fig. 13-1). You will need to provide rx-*.dat and tx-*.dat for each satellite, since each crosslink channel requires a Transmitter and a Receiver (bent-pipe example only uses tx-*.dat for each satellite).


RE2022-176: Make heatmap field names more readable & consistent

Updated the load data manually with sed and tested the service.
@Tianhao-Gu - do you think you could test the parser script when you have a chance?

I'm going to wait to merge until @Tianhao-Gu gives the go ahead since he's the expert on the parser script


Fix preparing userAgents from headers

User agent string gets undefined in front and space after, when user agent getting from headers on create crawler detector instance.  For example 'user-agent': 'b0t' goes to undefinedb0t

Also it fixes an issue at this line https://github.com/JefferyHus/es6-crawler-detect/blob/451daf91effdcf13d13ba787ef40569c8dce010c/src/lib/crawler.js#L103 when in request there are no user agent headers e.g. curl -A "" https://...

Can you please share your code so I can base that on some test samples?

Hi @JefferyHus
I added additional  test
    it('should identify the crawler from request headers with exact pattern', async () => {
      crawler = new Crawler({
        headers: { 'user-agent': 'b0t', accept: '*/*' },
      });

      assert.strictEqual(crawler.isCrawler(), true);
    });

In my code we use Crawler like this:
const detector = new Crawler(request);
if (detector.isCrawler()) {
  console.log('bot');
} else {
  console.log('user');
}

And currently when I check server response with curl:
For curl -I -A http://localhost:3000 I get an error because in this case userAgent is undefined.
 TypeError: Cannot read properties of undefined (reading 'replace')
    at Crawler.isCrawler (/node_modules/es6-crawler-detect/src/lib/crawler.js:103:19)

For curl -I -A b0t http://localhost:3000 I get user in console, but we have ^b0t$ rule.
For curl -I http://localhost:3000 I get bot in console, because an curl rule is matched.

Hi @JefferyHus I added additional test, and for current version of Crawler is failed.
    it('should identify the crawler from request headers with exact pattern', async () => {
      crawler = new Crawler({
        headers: { 'user-agent': 'b0t', accept: '*/*' },
      });

      assert.strictEqual(crawler.isCrawler(), true);
    });

In my code we use Crawler like this:
const detector = new Crawler(request);
if (detector.isCrawler()) {
  console.log('bot');
} else {
  console.log('user');
}

And currently when I check server response with curl: For curl -I -A http://localhost:3000 I get an error because in this case userAgent is undefined.
 TypeError: Cannot read properties of undefined (reading 'replace')
    at Crawler.isCrawler (/node_modules/es6-crawler-detect/src/lib/crawler.js:103:19)

For curl -I -A b0t http://localhost:3000 I get user in console, but we have ^b0t$ rule. For curl -I http://localhost:3000 I get bot in console, because an curl rule is matched.

Thanks, I will check this our and from the code I would just see a for.... instead of map, one reason is so that the event loop awaits the loop to resolve then continue the next tick

Ok, I will try to use for... instead of map

Fixed map and added test for empty user agent header


change np.bool to bool

While running through standard set of ProcessedMatrixFiles to test the flattener, encountered the following error:

Traceback (most recent call last):
File "/mnt/lattice-tools/scripts/flattener.py", line 1173, in
main(args.file)
File "/mnt/lattice-tools/scripts/flattener.py", line 1143, in main
warnings = fm.copy_over_uns(glob, reserved_uns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/lattice-tools/scripts/flattener_mods/uns_functions.py", line 121, in copy_over_uns
if check_not_empty(v):
^^^^^^^^^^^^^^^^^^
File "/mnt/lattice-tools/scripts/flattener_mods/uns_functions.py", line 86, in check_not_empty
and not (isinstance(value, (np.bool_, np.bool)))
^^^^^^^
File "/mnt/anaconda3/envs/lattice/lib/python3.11/site-packages/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
np.bool was a deprecated alias for the builtin bool. To avoid this error in existing code, use bool by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.bool_ here.
The aliases was originally deprecated in NumPy 1.20; for more detail

Replacing np.bool with bool. We use numpy==1.26.4 for most python envs
Tested LATDF742BQI on prod and demo

Thanks, @brian-mott. Looks good to me!

Thanks Jenny, I'll open a new PR for this off of main so the few general flattener errors can be merged in there before the final dev branch merge


Un-referred images added to / under storage dir are loaded and eat gfx mem

with current tundra2 head on windows:

open some scene from x:\some\dir\my.txml
add images to e.g. x:\some\dir\images\

Tundra prints:
File /some/dir/images/frame000138.jpg found from watch list so it must be modified. Asset ref:
ame000138.jpg
These images are not referred to by anything in the scene or anywhere.
Leads to a crash when tex mem runs out if a lot of images are added.
We work around this now by putting the txml in a different subdir where don't add anything else. A bug anyhow.

When autodiscovery==true for an asset storage, new assets should be added as (Unloaded) into the assets window, i.e. only the knowledge of that asset existing should have been added, but the asset should not be loaded.
Note that when an asset is loaded in memory, and the corresponding file is deleted from disk, the asset itself will not be immediately deleted from memory, to allow the scene to still display with it. If the asset goes to/or was in unloaded state, it will be removed from the asset api, since no copy of the asset data exists anywhere anymore.
Does this happen on D3D or OGL? Unless Ogre does something odd with D3D, it should not be possible to run out of VRAM, since D3D evicts unused textures from the GPU to make room for those that are actually in use (when using the D3D9 Managed pool). I am uncertain if OGL supports a similar feature.

As a workaround, set autodiscovery false for the asset storage in question.

This was with D3D, and our initial observation of the crash was actually wrong: the crash was in the new camera image save func, and not related to this.
Otherwise the original report is correct - we observed the usage in profiler, where the amount of textures and texture mem usage increased.


enhance: ENV configurable publicPath

For prod builds, setting publicPath is important - even in local mode.

Note: This is the same ENV we used in coinbase consumer.


Add convenience methods

For #115

This change is

Reviewed 3 of 3 files at r1.
Review status: all files reviewed at latest revision, 1 unresolved discussion.

subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredManager.java, line 603 at r1 (raw file):

	 * A convenience method create a {@link Promise} that immediately resolves to a value.
	 *
	 * @since 2.0

we should add @since 2.0 to all new variations of when(), also race and settle. New interfaces such as CallbackExceptionHandler, CancellationHandler` and their setters should be marked too

Comments from Reviewable

Coverage increased (+0.08%) to 54.812% when pulling 1ad6c1fdc7065a67758f2a43b78d9e1cbe525d0b on saturnism:88-convenience into 395e988dd18af90d711659aa4a39b9efcf8ec8fe on jdeferred:2.x.

Review status: all files reviewed at latest revision, 1 unresolved discussion.

subprojects/jdeferred-core/src/main/java/org/jdeferred/DeferredManager.java, line 603 at r1 (raw file):
Previously, aalmiray (Andres Almiray) wrote…
we should add @since 2.0 to all new variations of when(), also race and settle. New interfaces such as CallbackExceptionHandler, CancellationHandler` and their setters should be marked too

Agreed! I noticed we didn't have that :(  Added #137

Comments from Reviewable


Incorrect Link

It appears that the hyperlink in the following text is incorrectly pointing to the source page, not the destination page:
"Note: This setting does not prevent access to joined groups in some Microsoft 365 services like Microsoft Teams. See Microsoft Teams Guest access to learn more."

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

ID: 510faed7-b79d-b8ec-f32f-e64d8773a30c
Version Independent ID: 522e7e2e-ea93-5249-5e6f-5c984f1b6277
Content: Default user permissions - Azure Active Directory
Content Source: articles/active-directory/fundamentals/users-default-permissions.md
Service: active-directory
Sub-service: fundamentals
GitHub Login: @ajburnle
Microsoft Alias: ajburnle

@SteveMinar
Thanks for your feedback! I have assigned this issue to the author who will investigate and update as appropriate.

Hey @SteveMinar thanks for your feedback and thank you for your patience. I have updated the link in the following pull request: https://github.com/MicrosoftDocs/azure-docs-pr/pull/139399.  The change should be published and live tomorrow.
Thanks again, and I'm closing this GitHub issue. If you have any other questions, please let us know. #please-close


Mseger statsig switchback for real

🚀 Deployed on https://65146b5564d3a622c1d2a669--cozy-fox-0defec.netlify.app


Manifest merger failed with minSdkVersion 21, targetSdkVersion 28

A pity, looked like a nice menu
Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
	is also present at [androidx.core:core:1.1.0-alpha03] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:12:5-40:19 to override.

Hello, @bmalex88. This lib's most recent version was migrated to androidX. If you want to use it, you may migrate your project to androidX also. Another option is to use previous version of this lib. And third option is to do what this log suggests. You may look here.

@golovin47 releases page is empty what is previous version?

Hello, @uzaysan. 0.3.1 doesn't use androidx.


Active Choices parameters support

The following parameters have been implemented in JJB:

Active Choices Parameter
Active Choices Reactive Reference Parameter

Test cases also have been written.
Signed-off-by: Eren ATAS<EMAIL_ADDRESS>

@erenatas please submit it to upstream for review.


implement expression context in Wasm

Signed-off-by: Kuat Yessenov<EMAIL_ADDRESS>Implement CEL context in Wasm context.
Harden the getters to handle empty stream info.
Drop request_protocol since it's in upstream now.
Fixes getProperty returning Ok for missing properties.
/assign @jplevyak
Description:
Risk Level:
Testing:
Docs Changes:
Release Notes:
[Optional Fixes #Issue]
[Optional Deprecated:]

@bianpengyuan Can you try to update to this and let me know if this fixes https://github.com/istio/proxy/pull/2548 ASAN failure? Note there might be a gap with request.protocol since it may not have been picked up from upstream yet.

Sure, will post back.

Peter's problem seems to be caused by a different issue (uninitialized struct).
Can we merge this? I don't want bad SHAs before this one and after refactor to make it to istio/proxy. It's painful to debug.

@PiotrSikora merge this one, too?


MINOR: Remove unused exceptions

These exceptions appear to be no longer used.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

These exceptions are part of public interface [1] and we need a KIP to remove those. A KIP is required because we may have user clients handling these exceptions.
[1] https://kafka.apache.org/36/javadoc/allclasses-index.html

Thanks for the explanation! I'll work on KIP again later.


Executable for meltano-map-transformer should be meltano-map-transform

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/3334
Originally created by @edgarrmondragon on 2022-03-11 20:07:51

What is the current bug behavior?
Meltano is trying to call the wrong executable, meltano-map-transformer.
What is the expected correct behavior?
Meltano should call meltano-map-transform, even though that's not the plugin name.
See in the repo: https://github.com/MeltanoLabs/meltano-map-transform/blob/134642804db3da800ed0cdc5fe9fee63584542ad/pyproject.toml#L61
Steps to reproduce

try running the meltano-map-transform with any tap and target

Relevant logs and/or screenshots
meltano --log-level debug run tap-mongodb filter-stream target-postgres

Run invocation could not be completed as block failed: Cannot start plugin meltano-map-transformer: Executable 'meltano-map-transformer' could not be found. Mapper 'meltano-map-transformer' may not havebeen installed yet using `meltano install mapper meltano-map-transformer`, or the executable name may be incorrect.

Possible fixes
Change the executable in discovery.yml.
Further regression test
Ensure we automatically catch similar issues in the future

[ ] Write additional adequate test cases and submit test results
[ ] Test results should be reviewed by a person from the team

View 2 previous comments from the original issue on GitLab


Security check for json files

Hello,
This is rather a question, not an issue.
I am currently working on detecting sensitive data in properties files kept in source control repositories (passwords, api credentials - secrets in general). I was thinking about writing a plugin that will check all property files like xml/json/yaml/.properties for any entry that possibly contains sensitive data.
Do you think rule like that could be added here ?
I am attaching related sonar forum question: Sonar forum

Hi,
You mean add the gitleaks patterns in a new rule? There are tens of patterns: what would be the approach to enable or disable the patterns depending on needs? Should all the patterns be checked every time or should we be able to select the patterns we want to check?

Hello,
I was thinking about providing all patterns as a config entry with default set of patterns provided OOTB by the rule.
I actually meant adding rule that will go through all properties and check whether their names matches patterns implying that property might contain secret but implementing another rule for checking attributes values with gitleaks approach also might be worth doing.

Hello,
This does not seem to be easily feasible: so far I have not found a way to create a generic rule with predefined expressions: whether I create a rule per expression (which is a bit tedious), or I had the expressions as examples on the documentation on a first, simple and very straightforward approach. Any thought on that?


[BUG] Securityadmin error:  Not a valid protocol version: This is not an HTTP port.

What is the bug?
Running /usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh on port 9300 throws error Caused by: org.apache.http.ParseException: Not a valid protocol version: This is not an HTTP port
Full Error log:
**************************************************************************
** This tool will be deprecated in the next major release of OpenSearch **
** https://github.com/opensearch-project/security/issues/1755           **
**************************************************************************
Security Admin v7
Will connect to my-first-cluster.default.svc.cluster.local:9300 ... done
ERR: An unexpected RuntimeException occured: error while performing request
Trace:
java.lang.RuntimeException: error while performing request
	at org.opensearch.client.RestClient.extractAndWrapCause(RestClient.java:932)
	at org.opensearch.client.RestClient.performRequest(RestClient.java:307)
	at org.opensearch.client.RestClient.performRequest(RestClient.java:295)
	at org.opensearch.security.tools.SecurityAdmin.execute(SecurityAdmin.java:464)
	at org.opensearch.security.tools.SecurityAdmin.main(SecurityAdmin.java:161)
Caused by: org.apache.http.ProtocolException: Not a valid protocol version: This is not an HTTP port
	at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:209)
	at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:245)
	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
	at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
	at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:121)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)
	at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: org.apache.http.ParseException: Not a valid protocol version: This is not an HTTP port
	at org.apache.http.message.BasicLineParser.parseProtocolVersion(BasicLineParser.java:148)
	at org.apache.http.message.BasicLineParser.parseStatusLine(BasicLineParser.java:366)
	at org.apache.http.impl.nio.codecs.DefaultHttpResponseParser.createMessage(DefaultHttpResponseParser.java:112)
	at org.apache.http.impl.nio.codecs.DefaultHttpResponseParser.createMessage(DefaultHttpResponseParser.java:50)
	at org.apache.http.impl.nio.codecs.AbstractMessageParser.parseHeadLine(AbstractMessageParser.java:156)
	at org.apache.http.impl.nio.codecs.AbstractMessageParser.parse(AbstractMessageParser.java:207)
	... 11 more

From 2.0 release notes I see Transport client is deprecated, however the documentation still says for -p
-p | OpenSearch port. Default is 9300—not the HTTP port.
How can one reproduce the bug?
Executing /usr/share/opensearch/plugins/opensearch-security/tools/securityadmin.sh on port 9300
What is the expected behavior?
For 1.3.3, this error wont show up and securityadmin.sh executes without any error, connects to cluster and creates a security index, works as expected.
What is your host/environment?

OS: 2.0.1

Do you have any additional context?
Following the issue
https://github.com/opensearch-project/security/issues/1578, I see the TransportClient is deprecated, so ideally the expected port is rest http port, could be even 9200 for OpenSearch 2.0.1, but however the documentation still says to use Default 9300 port.
This issue is raised to help OpenSearch Kubernetes Operator compatible with 2.0.0 series of OpenSearch.
https://github.com/Opster/opensearch-k8s-operator/issues/176

Hi
I don't know if it's related but when I change the port to 9200 I get an error
"javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?"

@prudhvigodithi I know that cross-cluster replication and search still using port 9300.

Hi @Naarcha-AWS
Is this issue related to https://forum.opensearch.org/t/securityadmin-sh-errors-when-connecting-opensearch-through-http/9806 ?
Here it is mentioned that "It is needed to enable SSL on HTTP to get securityadmin.sh working."
If this issue is related to this thread and I see that it is marked as bug and milestone is added as 2022-Q3, then can you please share plan on fixing this and what is the way moving forward?
Thanks.

Looking in to this.  The security script invokes https://github.com/opensearch-project/security/blob/main/src/main/java/org/opensearch/security/tools/SecurityAdmin.java which seems to indicate that the default port is 9200.
@pratikshavyas this issue is filed against the documentation.  Can you please help me understand what you mean when you ask "can you please share plan on fixing this and what is the way moving forward?"

Hi @JeffH-AWS
I wanted to check about "plugins.security.ssl.http.enabled" setting in opensearch. This value can be set to false to disable TLS on Rest layer. However, If I set it to false, securityadmin.sh scripts fails with "javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?" error.
So, I wanted to know if there is any plan on fixing this.

There're 2 changes are needed for this.

The documentation for security admin tool should be updated to 9200
In security plugin, the transport port should be changed to http port

@cliu123 I think the documentation is correct. This regards the OpenSearch service and not securityadmin.sh.
Port 9300 is still in use. The -p option defines the transport port number. If not selected it will be selected from the 9300 - 9400 pool.
Only authentication and authorization were dropped in the transport layer.

@cliu123 I think the documentation is correct. This regards the OpenSearch service and not securityadmin.sh. Port 9300 is still in use. The -p option defines the transport port number. If not selected it will be selected from the 9300 - 9400 pool. Only authentication and authorization were dropped in the transport layer.

But security admin tool doesn't use 9300 anymore.
The security admin tool has multiple issues, and we plan to deprecate it at some time. Please use security REST API as much as you can.

@cliu123 I think the documentation is missing a statement that would explain exactly what was deprecated in terms of the transport layer.

securityadmin.sh uses port 9200 instead of port 9300
deprecation of the authentication and authorization in the transport layer doesn't deprecate transport layer communication and OpenSearch still requires ports 9300 - 9400.

SecurityAdmin for OpenSearch 1.x the default port is still 9300 (which is the transport port), for 2.x the port is http port 9200 or the http port with environmental variable cluster setting http.port
May be we have to consider updating the documentation in accordingly.

securityadmin.sh uses port 9200 instead of port 9300

Correct!

deprecation of the authentication and authorization in the transport layer doesn't deprecate transport layer communication and OpenSearch still requires ports 9300 - 9400.

I don't think the authN and authZ in transport layer have been deprecated. Only TransportClient has been removed and has replaced with HighLevelRestClient.

@cliu123 TransportClient authentication and authorization according to https://github.com/opensearch-project/security/pull/1701

@pratikshavyas Version 1.x is still using TransportClient and port 9200. This change was introduced in version 2.0.0
https://github.com/opensearch-project/opensearch-build/blob/main/release-notes/opensearch-release-notes-2.0.0.md

It sounds like we had a few different topics conflated here.

Expected behavior when running securityadmin.sh while plugins.security.ssl.http.enabled is set to false..
Accuracy of the documentation regarding the port being used.

Regarding item 1, it sounds like this has been cleared up. Does anything further need answered here?
If we're all good on that front, what needs adjusted in the docs and for what specific version(s)?

Putting this on the backlog until someone is able to chime in about my previous question.


code related to imitation learning

Hello,

I hope this message finds you well. I've been exploring your repository and it seems that I couldn't locate the code related to imitation learning. Could you please guide me on how to utilize the data for imitation learning?

Thank you in advance for your assistance.

Since this repo utilizes nearly the same file structure and environment codebase as DexArt, maybe you can take a look at the reinforcement learning/distillation guide here: https://github.com/Kami-code/dexart-release

Thank you so much for your prompt response and for pointing me in the right direction.
However, I apologize, but I seem to have encountered a difficulty. Despite following the reinforcement learning/distillation guide from the DexArt repository, I have not been able to locate the code specifically related to the DAPG algorithm within your repository.

Could you possibly provide further clarification or direct me to where I might find the DAPG-related code? Your additional support would be greatly appreciated as I continue to explore the potential of imitation learning with your data.

Thank you once again for your time and help.

Thank you so much for your prompt response and for pointing me in the right direction. However, I apologize, but I seem to have encountered a difficulty. Despite following the reinforcement learning/distillation guide from the DexArt repository, I have not been able to locate the code specifically related to the DAPG algorithm within your repository.  Could you possibly provide further clarification or direct me to where I might find the DAPG-related code? Your additional support would be greatly appreciated as I continue to explore the potential of imitation learning with your data.  Thank you once again for your time and help.

I also seem  to be facing a challenge. After carefully following the reinforcement learning/distillation guide, I have not been able to locate the specific code for the DAPG algorithm within the repository.
Could you please assist me by pointing out where I might find the DAPG code? Any additional pointers or clarification would be immensely helpful as I am eager to proceed with my experiments.

If it’s not too much trouble, I would also appreciate any tips on how to navigate the repository or any other resources that might aid in my search.

Thank you once again for your time and assistance. I am looking forward to your response.

In this work, we are using the vanilla DAPG, which is exactly the same as the one proposed in the original DAPG paper. I do not modify anything on the DAPG side and also the imitation learning algorithm is not the contribution of this work.
You may find our DAPG implementation with TRPO: https://github.com/yzqin/dexmv-learn/blob/master/mjrl/mjrl/algos/dapg.py
As well as the one implemented by the original author with NPG: https://github.com/aravindr93/mjrl/blob/master/mjrl/algos/dapg.py

In this work, we are using the vanilla DAPG, which is exactly the same as the one proposed in the original DAPG paper. I do not modify anything on the DAPG side and also the imitation learning algorithm is not the contribution of this work.
You may find our DAPG implementation with TRPO: https://github.com/yzqin/dexmv-learn/blob/master/mjrl/mjrl/algos/dapg.py As well as the one implemented by the original author with NPG: https://github.com/aravindr93/mjrl/blob/master/mjrl/algos/dapg.py

Thank you for your detailed response and for providing the relevant links.Your transparency and willingness to share resources are invaluable to the research community. I will definitely explore the provided implementations to further understand the work. Once again, thank you for your assistance!


View links on default browser

Since the preferences is coming later, I guess maybe you can allow users to view links via your app or default browsers. Or maybe CMD + click to view on default browsers while normal click remains the same as what you did.

+1

https://github.com/Aluxian/Facebook-Messenger-Desktop/commit/54b2b01a5626666228fdae7ef92b893849260cf7


feat(protocol): notify the verifier when a proof lost a contestation

Inspired by Vitalik's multi-prover video, verifiers can now receive notifications from TaikoL1 when their proofs are contested and proven to be wrong. Verifiers can implement custom logic to handle these notifications, such as disabling themselves.

Well, logically looks good to me but on the other hand this can be done off-chain. Each and every client who seeks for feedback can listen / index TransitionProved events and if one comes after (they submitted a valid proof), with same parentHash but different blockHash and signalRoot gives the same result.

The goal is to make it possible to disable verifiers automatically. You can also argument that this can also be done manually after a decision is made off chain.

Closing this PR as the feature introduce is not used immediately. We can come back for it later.


How do collect logs from Windows nodes/pods

Hi, I've set up log collection from Pods that run on Linux nodes and it's working great.
Is there a way to set Alloy up to also collect logs from Pods that run on Windows nodes? I suppose the different would be on the path where logs are stored on Windows nodes, but not sure where & how I would configure it in this chart - is this possible?

I need to do some research into seeing if we can put an Alloy pod on a Windows node and scrape the logs there.
in the meantime, switching to the API-based gathering method should work. Take the logs and alloy-logs sections from this example: https://github.com/grafana/k8s-monitoring-helm/tree/main/examples/eks-fargate

@petewall thank you for the reply. API mode is working well, and we are able to see both Linux and Windows logs now.
Are there any considerations or risks using this mode? Higher load on kubelet? Is it production safe?

I have spent the day wrestling with trying to design my own config for fetching Windows pod logs off a hostPath mount, because I also have apprehensions about doing production-scale log collection through the K8s API, and have determined that the limiting factor is the base image being used by the official Alloy Windows image build.
Grafana only offers an Alloy image built off windows/nanoserver:1809, and this image is stripped of many APIs and particularly filesystem ACL functionality that seems to break hostPath mounting with (at least) Windows Server 2019. servercore:ltsc2019 mounts C:\var\log without an issue, nanoserver yields "File Not Found" when trying to list directory contents inside the mount.
There is an open issue since May 2023 in the grafana/alloy project to offer a wider range of base images for Windows use-cases.


Bump addon-framework

Signed-off-by: zhujian<EMAIL_ADDRESS>Issue reference: https://github.com/stolostron/backlog/issues/24764

/assign @zhiweiyin318

/aprove
/lgtm


Error with "client.addon_files" after upgrading to 1.2.0

Hello. After update, I get an error:
final.append(base.CurseDependency(depen['id'], depen['addonId'], depen['fileId'], depen['type']))
KeyError: 'id'

Error due to this line:
for f in client.addon_files(selectedMod.id):

Hmm, i'm not seeing that error on my end. Could you send me an addon ID that causes this line to fail?
I worry that the dependency format may differ depending on the addon. We may have to make cursepy a bit smarter in getting dependency info, at least for the ForgeSVC. I would be able to figure out this strange formatting with an example.
Thanks!

ExtraBotany - https://www.curseforge.com/minecraft/mc-mods/extrabotany (299086)
By the way, not only this modification has this error. All addons that have dependencies have it

Alright, I believe I have fixed this issue. Apologies for the delayed response, these past few weeks have been crazy for me.
The issue was when retrieving all addon files from ForgeSVC, only basic dependency info is provided. This would lead to a key error, as cursepy is trying to access info that does not exist. Now, when all files are retrieved, we simply fill in None for the missing info. It is unfortunate that we are unable to get full dependency info, but this is a limitation of Curseforge. You can still make a request for a specific addon file and get full dependency support.
This change is live, and the version you want is 1.3.0. Let me know if I missed anything, or if you have any other recommendations. Thanks for pointing this out!

Yes, there is no problem now. Thanks


Show mediastream on the streaming page as option

Let the streamer see/hear their feed as it goes out to the the receivers.
I'm thinking that the streamer view once a stream has begun would have a button to watch the mediastream live as it's going out. They could control the volume, etc. just like the real streamer view. Fullscreen probably wouldn't appear as an option though.
Important: I'm not suggesting we have the streamer preview the actual stream via internet, just the mediastream object as it is sent out.

Added in 0153e66


Rejected PoS trasactions participate in staking

In case when there was block generated by wallet under PoS, but which has already been rejected by network (so the transaction is not in any block in blockchain), and wallet knows that it was not accepted (it's shown in transaction list as conflicting), this transaction appear in staking like if it was normal one. Wallet has to clean staking list from these transactions.

This was fixed in a long ago release, closing it out!


What is the input of the model when training with Adobe5K dataset?

Hi, I would like to know what the input (low-light images) of the model is when training with the Adobe 5K dataset. Or how do you get the input images?
Looking forward to your early reply! THANKS!

Hi, the input of the model when training with Adobe 5K dataset is low-light images of 5K. The input images are obtained by exporting the raw images of 5K with the sRGB mode.
Please read this issue for more details
We also provide the exported RGB low-/normal-light image pairs in the Baidu Disk (code:cyh2) and Google Drive for your convenience to download. Please feel free to check and use them.


netflix hystrix turbine eureka setup

Hi,
i am trying to set up hystrix, then aggregate the data via turbine. then for instance discovery we have Eureka. the Hystrix and Eureka is working as expected but in turbine i keep getting this on my curl to the stream,
: ping
data: {"timestamp":1452185571450,"name":"meta","reportingHostsLast10Seconds":0,"type":"meta"}
i have tried various answers i could possibly find on the net,
i even added the clusterNameExpression in my app.yml,
this is how it looks now.
turbine:
aggregator:
clusterNameExpression: new String("default")
clusterConfig: MYSERVICE
appConfig: PERSONALPDAPI-MYAPP
instanceUrlSuffix: /manage/hystrix.stream
InstanceMonitor:
eventStream:
eventStream:
enabled: false
InstanceDiscovery:
impl: io.spring.platform.netflix.turbine.EurekaInstanceDiscovery
can anyone please help me to find the issue here?

SOLVED,  the issue was
turbine:
aggregator:
clusterConfig: MYSERVICE
u also do not need this

It looks like documentation is not up to date and things are not clear desribed:
1.) http://cloud.spring.io/spring-cloud-netflix/spring-cloud-netflix.html is still talking about aggregator but it marked as not available in my ide.
2.) If i set the metatadata map key of the clients i want to be clustered together to e.g. value "mycluster", do i still need to list the applications also via property "appConfig" on turbine side to be included into the view?
3.) What is the difference between appConfig and app-config-list?

The issue shall be renamed to "improve turbine setup documentation"

Closing this due to inactivity. Please re-open if there's more to discuss.


[Feature] Enhancing contributors section.

Description

The contributor's section in About page has a single image within which every contributor is listed.
I would like to change to it, to separate every contributor and add appropriate styling and hover effects to each contributor in contributors list.

Assign this issue to me under SWOC.
Screenshots

Checklist

[X] I have checked the existing issues
[X] I have read the [Contributing Guidelines]
[X] I am willing to work on this issue (optional)
[X] I am a SWOC'24 contributor

I'd like to know if you'd be able to keep it dynamic such as new contributors also gets added there. Since that's also important.

Sure, I'll do it! @ShwetKhatri2001

Assigning you this.


[FLINK-22702][tests] Add test data supplier which provide null timestamp field to kafka connector tests

This PR cherry-picks the PR from #16974 to the release-1.13 branch.

@flinkbot run azure


gnu grep extensions aren't portable

fix suggested by @dallbee https://github.com/D-Programming-Language/dub/issues/749

Thanks! I had actually tried this locally, but didn't have the time to prepare a PR. Will pull once it's green.


Skip old metrics

Gaps? Yes. Massive? Not obvious because this timestamp has second resolution. However, I looked at the metrics code and you are right: Metrics are cached for 30 seconds along the way which means we'll have something like 29/30 probability of this happening. However, we already falsify the actual measurement times:
    /**
     * If the metrics packet is less than one minute newer or older than the given startTime,
     * set its timestamp to the given startTime. This is done to ensure that metrics retrieved
     * from different sources for this invocation get the same timestamp, and a timestamp as close
     * as possible to the invocation from the external metrics retrieving client. The assumption
     * is that the client requests metrics periodically every minute.
     * <p>
     * However, if the timestamp of the packet is too far off in time, we don't adjust it because
     * we would otherwise be masking a real problem with retrieving the metrics.
     */
    static MetricsPacket.Builder adjustTimestamp(MetricsPacket.Builder builder, Instant startTime) {
        Duration age = Duration.between(startTime, builder.getTimestamp());
        if (age.abs().minusMinutes(1).isNegative())
            builder.timestamp(startTime.getEpochSecond());
        return builder;
    }

So the node repo can just do the same without loss of precision.

@freva please have another look


youtube.com

Hi. Is there a way to get youtube-dl to download age restricted videos that require you to sign in on youtube's website like this one "https://www.youtube.com/watch?v=xcRUPMf6scs"? Is there some kind of code to add to youtube-dl's video download parameters to make it download those videos without signing in? Thanks.

--cookies should work. How do I pass cookies to youtube-dl?

Now that it looks like this is going to be something that has to be done for every single instance of an age-restricted video on YouTube, is there a way to automatically pass the cookies without typing the arguments every time other than making an alias?

This is an issue with the "get_video_info" method which will fail if the "wrong" parameters are used in the URL. This one is currently working:
https://www.youtube.com/get_video_info?html5=1&c=TVHTML5&cver=7.20190319&video_id=xcRUPMf6scs&el=previewpage
This is an ongoing issue which has been discussed in many different threads already. Google is in the process of deprecating the "get_video_info" API. It is currently the only known method for bypassing the age-gating so we may be out of luck when it finally becomes unusable. It is also possible that Google is going to leave this hang for longer than expected. I wouldn't be surprised if we are left in suspense for a year or so.
I am the proprietor of a tool called Alleycat Player. Although I have a Github project page, it is out of date. The official repository is here:
https://archive.org/details/alleycat-player
The Youtube extractor is currently working with a very high success rate so you might want to try it out. Note that there is zero similarity between this tool and youtube-dl.

That video requires authentication, with either OAuth Authorization header or Cookie headers.


searching by full token symbol

Fixes #536 .
Changes proposed in this PR:

search assets by full token name

Searching by token symbol works well. I think we should be more specific when replacing - with AND , although making sense for token symbol, in other scenarios can result different behaviour than the search we have right now. For example when searching for 1 - 1 worked like 1  or  -  or  1 now searching for 1 and 1. Also searching for a text starting with - doesn't seems to find anything

Searching by token symbol works well. I think we should be more specific when replacing - with AND , although making sense for token symbol, in other scenarios can result different behaviour than the search we have right now. For example when searching for 1 - 1 worked like 1 or - or 1 now searching for 1 and 1. Also searching for a text starting with - doesn't seems to find anything

good points, didn't check for those cases. on it

nice and tricky, not sure we can do more than hacks but I see 2 different ways of getting to a solution:

continue in our search to somehow detect symbol search, and react to it, either doing dedicated symbol search with it, or hack around it as done in this PR. Super tricky cause we deal with free text form and need to be careful not to destroy other searches
tweak the elastic search query so that symbol search returns a match or with multiple matches at least the actual match is in first place. There are many options to try for query_string queries alone, like fields, default_field, fuzziness, etc. Obviously also requires careful testing to not destroy other seethes, but we might even end up with more precise searches for everything with this route

I think the solution lies in the second proposed way. With current modifications we can successfully search  for datatoken name, symbol, address and asset name, in all ways. The only problem with this solution is case sensitivity which I'm currently working on.

It seems that the case sensitivity only affects the datatoken symbol. So if it doesn't affect other fields making the text uppercase before using it in the quay I think will solve the problem.

Go for the shortest working path. The search will need major improvements at some point because now is kinda broken, so no need to tackle more things in this pr.

The current implementation seems to somehow break the current search, so for eg when searching for compute on this branch preview we got 199 result and on the live market there are 373 results, both on Rinkeby network. Also the filtering seems to be broken see the print screens for the same search for compute and filter only datasets on this branch even though there are lots of datasets containing compute keyword.

Didn't see this before, I'll check in a moment. Thanks!

Right, only the text should be uppercase not the entire searchTerm

This  implementation of search targets 5 fields (which are significant for user, in my opinion) : data token name, data token symbol, asset name, asset author and asset description. Thus, the results will slightly differ from what we got on live right now, since on live the search implementation considers every filed in the DDO. For example, for compute keyword, this implementation won't give a match for "type": "compute" or provider description "description": "Compute service with 16gb ram for each node."  for an asset , as it does on live right now.
On the other hand, by simply eliminating the fields option in the query, we got the same results as the ones on live with the inconvenient mentioned above.
Of course, on both solutions searching by token  symbol works, with or without filters and sorting applied. :)
What do you guys think?

I did some quick tests and it looks a lot better. We should do some more testing tough to be sure.

It's working fine. We can look deeper in how the search should ideally work in #619

Yes. I think we should consider it as a base and add on it what @jamiehewitt15 mentioned in #619 .


Enhance an ABAP Core Data Services (CDS) View in SAP NetWeaver 7.5

Tutorial URL: https://developers.sap.com/tutorials/abap-dev-enhance-cds-view.html
In Step 3 point 2 to make it clearer:
After the field CustomerID, ensure there is a comma, then add the function concat_with_space using auto-complete ( Ctrl+Space ); then add the alias as Addressee.

Done!
Thanks

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


[MRG] Fix logic checks in make_forward_solution

Fix the error in make_forward_solution where user could erroneously ask for a solution with meg or eeg channels and the computation would bomb if those channels types weren't present.

@Eric89GXL, #2368

should I add a warning or something if the user asks for eeg channels, but they don't exist?

Other than checking directly for eeg of meg channels, I'm not sure if I should be checking for the more obscure things (like ref_meg or excluding/including bads).

No, don't add a warning. I think those parameters are mostly there for backward compatibility. Also think about cases where you just always want to compute the complete forward solution for your datasets -- with a warning, now you'd need to either do with warnings.catch_warnings(record=True) or add a conditional on your calling end to avoid the warning. You can update the docstring to say "include EEG computations if EEG channels are present" if you really want, but I don't think that's even necessary because what it says right now is correct.

Take a look at what would have been done before (or really even what your code does now). In other words, if ref_meg channels get set up in _prep_meg_channels, then include them in your check, if not, then don't.

Sounds good. No warnings, and the checks match what's internal to _prep_meg_channels and _prep_eeg_channels

Since we like to do TDD, it might be nice to add a little test. You can just add one to the forward creation tests, pick say the first two channels only and create a forward solution with otherwise default args. On current master that should fail, on this PR it should pass.

LGTM

The modified test passes but will fail for master as we expect.

Great, thanks @wronk


Adds compatibility for Python 3

This should fix #7
I ran the tests with Python 2.6, Python 2.7 and Python 3.4 and they all ran fine
Updating involved:

Running python-modernize for all trivial changes (adds a 'six' dependency)
Using explicit integer division for calculating borders in logging
Using importlib for importing modules by name (adds 'importlib' requirement for Python 2.6)

Thanks @fleshgolem for the pull request. I added py34 to the tox.ini script and everything seems to be working just fine. I really appreciate the help!