Updates on official documentation

Is this a general concept that needs to be documented or a specific API?
It is general concepts and updates to already documented section.
What concept or API needs more documentation?
I am sorry for this is many different parts/sections

[x] How to install the API (maybe link to https://docs.binary.ninja/dev/batch.html#install-the-api ? or mention its necessary to install it separetely): https://docs.binary.ninja/getting-started.html#linux
[x] Its an old pic, not much has changed but imo it looks better now: https://docs.binary.ninja/getting-started.html#ui-basics
[x] Same here, old pic, but it has changed with many new options: https://docs.binary.ninja/guide/index.html#loading-files
[x] Explain what are Auto Tags: https://docs.binary.ninja/dev/annotation.html#auto-tags
[x] Clean the output of TypePrinter.print_all_types (unless that's intended, but I would suggest it nonetheless): https://docs.binary.ninja/dev/annotation.html#headers
[x] Add description of new plugin examples: https://github.com/Vector35/binaryninja-api/tree/dev/python/examples
[x] Write the basic concepts of workflows: https://docs.binary.ninja/dev/workflows.html#basic-concepts
[x] I believe a section similar to "more resources" would be nice in the getting started. You could (at least) include links to your trainings (https://binary.ninja/training/), videos (https://www.youtube.com/watch?v=xKBQatwshs0&list=PLCVV6Y9LmwOgqqT5obf0OmN9fp5495bLr&index=1) and mention Jordan's (irregular but sick) live: https://docs.binary.ninja/getting-started.html
[ ] UI plugin should either have a template or a section dedicated to them as its a more complex usage (i personally struggled a lot with it): https://docs.binary.ninja/dev/plugins.html#ui-plugins
[ ] Talk about SSA in the "Important Concepts" category: https://docs.binary.ninja/dev/concepts.html
[x] The fix seems to have been made, don't think its worth mentioning it anymore? https://docs.binary.ninja/dev/documentation.html#prerequisites
[x] Adding how to rebase the binary with the API would be nice, its not hard but very useful: https://docs.binary.ninja/dev/batch.html

Is this documentation related to a specific API?
No it is not.
Are there any known examples of people using this API/concept?
Aside from myself, there are people who made community plugins and I had colleagues ask me.

It's not actually necessary to install separately -- the linux setup script calls the other one for you automatically.
https://github.com/Vector35/binaryninja-api/blob/dev/scripts/linux-setup.sh#L72
I'm going to make a separate issue for all of the images as every image in the documentation and website will be redone for 4.0 as we're changing the default theme.
print_all_types is intended, but it's easy enough to improve, done.
More descriptions written, thanks!
Workflows unfortunately needs to hold off until we've made some important internal changes that will impact how they're used. Once the updated feature lands (hopefully in 4.0 it should include documentation)
Since Rebasing is a single API call that comes up when searching for that keyword I don't think calling it out specifically is really helpful. Though it could use an example in the API docs which I've just added!
The other resources I added to the "what's next" section of the getting started guide.

The only things not yet resolved are the UI plugin details or the SSA documentation as those will take a bit more time. I've actually already been working on updated documentation for UI plugins, but it would really help me would be if you could describe:

What did you want to do with a UI plugin that didn't come up with an API search?
Which examples were the most helpful?
Are there some APIs you think need more examples than others?

RE: SSA form, we should probably just write up a more formal description of SSA in https://docs.binary.ninja/dev/bnil-overview.html or as a separate page in that section and then link to important concepts while demonstrating how to walk the SSA forms in a particular example

I was planning to do a PR to fix most of those but you beat me to it!

It's not actually necessary to install separately -- the linux setup script calls the other one for you automatically. https://github.com/Vector35/binaryninja-api/blob/dev/scripts/linux-setup.sh#L72

Oh is it not? I remember having to do it manually before, maybe its because I am on an unsupported distro (obligatory I use arch btw)?

I'm going to make a separate issue for all of the images as every image in the documentation and website will be redone for 4.0 as we're changing the default theme.

Yeah I just saw your issue and was going to comment you should track those there.

Workflows unfortunately needs to hold off until we've made some important internal changes that will impact how they're used. Once the updated feature lands (hopefully in 4.0 it should include documentation)

Fair enough, no need to update the doc if it'll be updated again soon. Excited for v4.0 👀

The only things not yet resolved are the UI plugin details or the SSA documentation as those will take a bit more time.
Fair enough, completely understand.
I've actually already been working on updated documentation for UI plugins, but it would really help me would be if you could describe:
* What did you want to do with a UI plugin that didn't come up with an API search?

* Which examples were the most helpful?

* Are there some APIs you think need more examples than others?

It is likely that I just don't know what word to look up, but "Sidebar" in the API search only brings back color related functions. I tried "Widget', which only bring back color related functions too. Looking at the navbar for "UI" or something similar there is no result (on the Python API doc).
I believe I had to go look at the community plugins to figure it out. If not adding documentation for it, at least somehow mention what and where we should look for in the API?
Searching how to update the new widget (I think its like that you call them?) or how to have different data in it depending on the view had me struggle a lot.
The most useful resources were community plugins and Qt6 documentation (and a bit of trial and error).
I can't think of any right now, but I can come back to you later if you want. I haven't had to make an UI in a while.

Ahh, yeah, the main issue there is that all of the UI stuff is only documented in the C++ docs due to some Shiboken quirks. The more I think about it the more a small update to the UI plugin documentation could help. Let me take a stab at it. I'd still welcome any PRs if you see other things though!

Final items are done with https://github.com/Vector35/binaryninja-api/commit/66be2657a30056b99fab83c7211092f288b44e69


Implementing client side for Text2Text

This should be ready to merge. @dvsrepo @frascuchon Could you have a quick look at the Text2TextRecord model if the arguments and types are in line with your ideas?

:+1: done, I also added a logging test for the Text2TextRecords.


Add a logic to get the regions automatically

Rightnow pvsadm tool depends on https://github.com/ppc64le-cloud/powervs-utils/blob/main/region.go#L8 library to get the region's name, this keeps breaking whenever there is a new DC introduced, hence need a different approach to include all the regions in one shot or find some pattern to get this region from the string automatically.
/cc @bkhadars

/assign @bkhadars
/king feature

Fix via https://github.com/ppc64le-cloud/pvsadm/pull/366

/close


[ContactBundle] (#103) Missing class var declaration

By @wachterjohannes from https://github.com/sulu-cmf/SuluContactBundle/issues/103
see https://scrutinizer-ci.com/g/sulu-cmf/SuluContactBundle/inspections/a20dda10-568e-44d6-ba20-b6a955ebe206/issues/files/Controller/AbstractContactController.php?status=new&orderField=path&order=asc#inspectioncomment-104613666

I guess we should do a cleanup some day anyway, but if scrutinizer is the source we could use this instead, and don't have to add separate tickets for it. And the link doesn't work anymore.
Summary: I close this issue :-)


Permalink field not automatically updating

Bug Description
The permalink field is not automatically updating when the story is still in draft mode.
Expected Behaviour
The slug in the story draft should automatically update.
Steps to Reproduce

Enter a title. Notice slug updating.
Change the title. Slug does not update.
Save draft. Slug does not update.

Note: slug updates after you publish.
Screenshots
https://user-images.githubusercontent.com/66372350/108749881-5de1c080-750e-11eb-9b61-f35e0867b38e.mov
Additional Context

Plugin Version: 1.4.0
WordPress Version: 5.6.1
Operating System: macOS
Browser: Chrome

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

This seems to be working as expected now, closing.


Logger Not enough arguments

Please answer these questions before submitting pull request

Why submit this pull request?

[x] Bug fix

[ ] New feature provided

[ ] Improve performance

Related issues

Bug fix

Bug description.
Logger Not enough arguments

How to fix?
add necessary arguments

How do you find this? :O You are using ALS?

How do you find this? :O You are using ALS?

Our local repo has sonar.
What is the full name of ALS? Baidu can not get it. 🤣


Change default eviction strategy to LiveMigrateIfPossible

Summary
PR Checklist

Is this a multi-tenancy feature/bug?

[ ] Yes, the relevant RBAC changes are at:

Do we need to backport changes to the old Rancher UI, such as RKE1?

[ ] Yes, the relevant PR is at:

Are backend engineers aware of UI changes?

[x] Yes, the backend owner is: @connorkuehl

Related issue https://github.com/harvester/harvester/issues/5495

Occurred changes and/or fixed issues

Technical notes summary

Areas or cases that should be tested

Areas which could experience regressions

Screenshot/Video

@torchiaf Do you prefer 2 approvals on dashboard PRs or is this good to go?

@torchiaf Do you prefer 2 approvals on dashboard PRs or is this good to go?

@connorkuehl I added Kiefer, thanks.

@mergify backport release-harvester-v1.2 release-harvester-v1.3


keypunches is 5 five americans ii

Hope I got it right after ~8 months off.

I recently tried to rewrite the history of the repo to remove the large image scan in _workspace. That appears to have had the unintended effect of canceling your pull requests. Would you mind resubmitting? Thanks for your patience.


Depth image problem in python

Required Info

Camera Model
{ R200 / F200 / SR300 / ZR300 / D400 }

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) / Linux (Ubuntu 14/16/17) / MacOS

Kernel Version (Linux Only)
(e.g. 4.14.13)

Platform
PC/Raspberry Pi/ NVIDIA Jetson / etc..

SDK Version
{ legacy / 2.. }

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
code to show the depth image in python dosnt work.
error: no device connected .
but the device is connected and i can read the normal image using the same intell realsense camera.
i appreciate if any body can help

Hi @Sshs1
Please see #2536
Fix will be provided shortly


[HELP] my configuration is broken after updating

Hi all,
Because of the masive refactoring done on this repo some of the previous configurations do not working anymore.
PR with the refactoring and list of settings removed: https://github.com/catppuccin/tmux/pull/57
If you have trouble transitioning from the old config to the new one please reply here and i will do my best to help you.
Thank you.

Thanks for the refactor @89iuv :)
I found a minor issue with config 3 in README and have opened a PR with the fix: https://github.com/catppuccin/tmux/pull/63

I dig the refactor and flexibility provided by it, but it's really odd looking without a patched font and there's not an example in the README that doesn't seem to rely on patched fonts.
I've got most of my config migrated to use the variables but I can't seem to get rid of these question marks in the status area. I've tried setting things like catppuccin_date_time_icon or catppuccin_status_left_separator to "" but nothing seems to work. What am I missing here?

@evanleck did a test and it does not work on my side. I will work on implementing a fix for it next week.

@89iuv I installed this theme a while ago and was trying out new config stuff but it didn't want to load... turns out I had to pull something like 60 commits! Now everything works as intended, thanks for the amazing work!

@evanleck I added the option to remove the icon from a module.
Update the plugin to the latest version and use this as an example:
set -g @catppuccin_status_modules "application session date_time"
set -g @catppuccin_status_left_separator "null"
set -g @catppuccin_status_right_separator " "
set -g @catppuccin_status_right_separator_inverse "no"
set -g @catppuccin_status_fill "all"
set -g @catppuccin_status_connect_separator "yes"

set -g @catppuccin_application_icon "null"

set -g @catppuccin_session_icon "null"

set -g @catppuccin_date_time_text "%Y-%m-%d | %H:%M:%S"
set -g @catppuccin_date_time_icon "null"

@89iuv thank you very much! That's working great now, much appreciated.

is there anyway to get this back? I just couldn't make the window item tail look like that.
powerline

Can you help me understand how to achieve the following now:

window name is now displayed on the left of the status bar,
current path is displayed on the right
I just want to swap the current default behavior of the left and right pieces in terms of window name and current window path

Closing this issue as the big plugin update happened several months ago and I'd prefer if people raised individual issues for any problems they are still coming across.


Add sine-like waveforms from YMF262

I have no intentions of requesting the logarithmic sawtooth to FM since I can't seem to create an equation for it. After experimenting with how sines work, I have finally made the sine-like waveforms below. The equations are:
Absolute Sine: |sin (x)|
Fastsine: (cos(x) · |sin(x)|) + 0.5 sin(2x)
Camelsine: |(cos(x) · |sin(x)|) + 0.5 sin(2x)|
Semisine: (sin(x))/2 + (|sin(x)|)/2
Sharksine: 0.5((sin(x) · |cos(x)|) ÷ cos(x)) + |0.5 sin(x)|

Looks pretty similar to the logarithmic sawtooth.


Apiv2 support

Will this work with apiv2 or are there plans to support it in the future?

I am also wondering this.


Disabling linter rules for pre-Go 1.22 loop var issue

Since Go 1.22 fixed the long-standing for loop variable scope problem, there are a bunch of linter checks which are not relevant any more. This PR changes the following:

Tells the linter to assume go 1.22
Explicitly disables some of the linter rules
I did a quick find-replace to clean up a bunch of places in the code
where it worked around the old loop variable behaviour.

See this article for more details: https://go.dev/blog/loopvar-preview
Summary
Provide a brief overview of the changes and the issue being addressed.
Explain the rationale and any background necessary for understanding the changes.
List dependencies required by this change, if any.
Fixes #(related issue)
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[x] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[x] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 48.261% (-0.001%) from 48.262%
when pulling cf1dc91940b8a352d54861375a933c6cb0bc02b8 on remove-for-loop-hack
into 9b7879df0559737a425e890fb8ca1c67f4b65aee on main.


Fixed #8605 (Currency Code also not showing when its removed from admin panel)

Issue Reference
#8605
Description
Fixed it, via checking if $currency->symbol is empty, then its Setting Symbol for Currency empty
How To Test This?
Go to 'Admin panel'
Click on 'Edit currency' inside the Settings/Currency
Delete the currency symbol and save it.
Go to the Shop
Documentation

[ ] My pull request requires an update on the documentation repository.

@devansh-webkul Update also about it, is it considerable?

@devansh-webkul Can You update on this pull request?

@devansh-webkul Any update on it ?

We will check this internally, as there are some core classes refinement done today.


Show Confirm AlertDialog only when photos available to delete.

Refrain from showing Confirm delete AlertDialog when no photo is available. Show a toast for the same.

Thanks for this pull request! This makes sense, although I wonder if a better design would be to:

Disable the delete and share buttons when no media is present
Prevent users from going to the gallery if no photos are available
Take users back to camera when the last photo is deleted

Something worth thinking about is whether users can delete photos outside of the app. Photos are being saved in the app's files folder, so I don't think other apps can meddle with it but system apps (like the Files app) potentially can.

Closing due to inactivity


Fix example sponsor transaction error

At now, when you try to test function Sponsor Transaction Flow - [Submit Transaction] in NextJS demo,  website will come out with the Application error
Here is the error code from console:
{"message":"Invalid transaction: Type: Validation Code: INVALID_SIGNATURE","error_code":"vm_error","vm_error_code":1}
Error Reason:  When calling method signAsFeePayer, the function needs to pass in the Account type. So it's useless to call signTransaction when you can't have the private key for the sponsor account.
Fixed Way: As noted above, I add const sponsor = Account.generate(); to act as a sponsor.  And use signAsFeePayer to sign transaction.
Hope u enjoy my code :)

@0xRichBot Please revert pnpm-lock.yaml - it shouldn't have any changes or be included in the PR.


Improve docs for first time users

As a first-time user I quickly launched owncast instance with curl -s https://owncast.online/install.sh | bash, but spent some time figuring out how to stream to it with OBS.
Is it rtmp:// or http:// ? 8080 or some other port, or no port at all? Also /live path was not obvious.
It would help if OBS settings were right next to install script in docs.

Just out of curiosity so we can make the documentation better, what led you to not look at the Quickstart guide?  Is it hard to find?

Just out of curiosity so we can make the documentation better, what led you to not look at the Quickstart guide?  Is it hard to find?

I don't really remember the details, but when I'm copy-pasting commands I assume it's already a Quickstart phase :)

I don't really remember the details, but when I'm copy-pasting commands I assume it's already a Quickstart phase :)

Docs specifically have instructions on using OBS, so hopefully things are in a good place.


[Question] All elements of "velocity" and "load" optional

As of now, all elements of the "velocity" object are marked as optional:

Of course, the whole element "velocity" inside the topics "state" and "visu" can be optional, but shouldn't at least vx and vy be mandatory?
The same applies for the internal structure of "load", where all elements are optional:

IMHO at least loadId should be mandatory.

for vehicles do not know the load Id because thre is no sensor for this und the FMS do not send the LoadId inside the handling action what will happen there?
vy is only valid vor omnidirectional vehicles, not diffDrive the most common kinematik type.
is the X and Y the global Koordinate system the Vehicle Center Point ?
if you like to have the global x and y and have an only line Guided agv the  you can not compute the x and y speeds in global. because the agv do not know it position.
The Purpuse of the VDA5050 is  to support the most AGV Types, and the agv with less computional power are the most limiting one.  This limited agv type deside the mondatory parts mostly.

If it is assumed that for the load only values that can be sensed by the vehicle itself are present, I agree that there is at least one scenario for one application where each field cannot be determined.
For the y component of the speed: also true, depending on the definition, kinematic type etc. it might not be possible to determine it.
But at least the x component (be it for a wheel or the center point) has to be present, because if not, vx, vy and omega are not present and thus the whole velocity entry can be dropped. That's what I meant: the entry is optional for good reason, but it does not make sense that all 3 elements are missing at the same time then.

I don't see the problem. The object velocity in the state-topic is optional too, so for each agv-type the mix of available values is individual. The definition, what is relevant for the agv can be found in the factsheet.
I agree, it's very uncommon that an agv has no x-speed but a y-speed.

To bring this discussion back to top. For Load State of the AGV there are a lot of fields which are uncommon but maybe in som cases necessary.
The most common case is not 100% defined. The case would be to know boolean if the AGV is laoded (true/false) or by actual laod capacit eg. (1 of 5)
As I interpret it right this information can only be giffen today by AGV to MC when a list of load positions is send in field loadPosition. If not loaded it stays empty.
One case why it is necessary, to know actual state if AGV is loaded (which AGV can define itself either by sensors or handling device position). is that an AGV in automatic can be loaded without an Active order. Can happen manualy or orders ar manually deleted. -> So without a actual state you can only handle it by organizational user interaction to take responsibility to worker. If he makes a mistake an new order may be send to AGV which is in real still loaded.
Any suggestions?

I strongly agree that each object should have one required field, if only to state that it exists.
For the velocity, if any value exists, it is the forward velocity (vx).
As you mention, for the load, I see a few different common cases we have:

Pick & Place: I have walls of identical boxes, that load on the same place on a robot, with no load sensors, but I know the loadId / qr-code / item-no that is on the box.
Vertical Loading: Material is loaded on the robot, I don't know what it is, it fits within a standard volume (pallet, compartment, etc), but I do have load sensors to know how the weight (important for speed / acceleration modulation).
Forklift Pallets of Different Sizes: we have some regular sized pallets, some 2x sized pallets, and sometimes those 2x size pallets loaded up, with a high vertical volume, or some very long objects on top (ex sticks of the pallet by 1/2 length off each end). In this case, the boundingBox and loadDimensions would also be critical for node / path / volumetric reservation.
Horizontal Loading, Underneath: different from carrying a load, the load is already on a cart-like structure, but the robot drives it from underneath. The weight is unknown (though could be gathered from kinematics), the loadId is unknown, the dimensions and bounding box are standard to the cart, and therefore usually standard to the robot in the given installation. There's no value that's particularly useful or providable for this load. But you would know if you're loaded.
Horizontal Loading, Tugger: in this case, when we have a tugger train at our facility, the tail of carts is of variable length. There is no collective id, the weight could be kinematically computed as inertia (but not useful). Yet again in this case, the boundingBox and loadDimensions would be relevant.

As for what I most frequently encounter, leverage, and implement, I commonly use 1, 2, and 4, because for safety and technology reasons the forklifts (3) and tuggers (5) are operated by humans.
Regardless, there's no common member to each of these cases, but I would want to know if there is a load or not, period. Currently, in case 4, it's just transmitting the load object, as an empty object.
Therefore, I agree with Philip's proposal, that there should at least be an explicit loaded (boolean) (required) that is true when there is a load, and that a false value or an empty load object is the absense of a load.
(Biased such that non-loading robots (ex. cleaning robots), do not need to ever include the load, and load carrying robots always have the load object, just specifying whether loaded, or not, and with what known info.)


Estimator and Sampler caching

Summary
This PR refactors and introduces caching for the local implementations of Sampler and Estimator based on Statevector.
Details and comments
Caching avoids unnecessary and redundant deepcopies of  the target QuantumCircuits which were previously triggered both for binding the parameters (even if circuit was not parametrized), and on Statevector construction.
These updates show improvements in the runtime of certain problems, like computing the CH3 molecule, of more than 20x the original speed.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

42 of 45 (93.33%)  changed or added relevant lines in 1 file are covered.
3 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.001%) to 83.999%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/primitives/estimator.py
42
45
93.33%

Files with Coverage Reduction
New Missed Lines
%

qiskit/pulse/library/waveform.py
3
89.36%

Totals

Change from base Build<PHONE_NUMBER>:
-0.001%

Covered Lines:
55904

Relevant Lines:
66553

💛  - Coveralls

Thank you for the proposal of the performance improvement. Could you add a link to a script to reproduce the performance test?
I think there are two ideas in this PR: one is to avoid parameter_binding if no parameter and the other is the lru_cache of the parameter binding. I think we need to evaluate the contributions independently.
I agree to include the first idea, but I'm wondering the contribution of lru_cache because VQE assigns different values in general.
At least we have to set the capacity of lru_cache, otherwise it may cause memory overflow with VQE with a lot of iterations.
https://docs.python.org/3.9/library/functools.html#functools.lru_cache

If maxsize is set to None, the LRU feature is disabled and the cache can grow without bound.

The size of Statevector scales exponentially, so we cannot make 100 qubits Statevector like random_circuit(num_qubits=100, depth=30).

The size of Statevector scales exponentially, so we cannot make 100 qubits Statevector like random_circuit(num_qubits=100, depth=30).

Fair point, it was just to estimate a memory allocation reference. random_circuit(num_qubits=25, depth=120) should give something roughly equivalent. In any case, this would only mean increasing the cache maxsize.

How about len(self._circuits) instead of fixed number 256.
Or, again, it may be nice to cache only if there are no parameters

By caching, we can't free up resources beyond the pointer, so we end up caching huge data, is this correct?

I think this might be correct, yes. At least I cannot think of a way of actually freeing up resources with the current implementation. This is, of course, until we delete the estimator object. Whether the amount of data is huge or not depends on the maxsize.

How about len(self._circuits) instead of fixed number 256?

I need to establish maxsize at the class level, not instance/object. Therefore I cannot access self.

Or, again, it may be nice to cache only if there are no parameters

Same issue here, I have to decide whether the function is going to be cached at the class level, and I do not know whether there are going to be parameters or not until I instantiate an object.
On top of that, I do see benefits of caching with parameters. Some users may be requesting always the same finite set of parameters for certain application, in which case it would be very useful. You may ask then, why not bind them beforehand the answer is simply convenience... user will tend to do what is simplest for them. So if they can go without binding manually, they will take that. Also, in this scenario, the memory usage is going to be the same with or without caching.
The issue with overflowing the memory in cases where we are not repeating parameters is addressed by decreasing maxsize. I am sure we can come up with a sensible bound.

@ikkoham there are ways of clearing the cache. I would have to work out a solution for it though, I am not sure if that is something that we need to include in this PR.
https://docs.python.org/3/library/functools.html#functools.lru_cache

The decorator also provides a cache_clear() function for clearing or invalidating the cache.

Thank you for your explanation.
Why do you want to cache at the class level? I feel like instance level is fine. (Is there any specific use case?)
I suppose it makes sense to cache Statevector when there are no parameters, but I don't see the point of caching it when there are parameters. I can't think of a use case where the same parameter is queried repeatedly. Parameters should be updated.

Why do you want to cache at the class level? I feel like instance level is fine.

The cache is stored at an instance level, but its size declared at the class level (unless we start implementing closures which will just cutter the code)

I can't think of a use case where the same parameter is queried repeatedly. Parameters should be updated.

Say we have one parametrized circuit qc, small set of n parameter values, and a plethora of observables m >> n. In this case, to get the expval for all n*m >> n combinations we will need n statevectors. With caching, we can do this by performing only ~ n deepcopies, whereas without it we would need to perform ~ n*m deepcopies. This is a rather likely scenario to occur, and a massive performance improvement even if just for testing (i.e. orders of magnitude).

I investigated the bottleneck of Estimator with Caleb's script. I notice that we can avoid some parameter bindings invoked within Statevector and made a PR #8403. It achieves similar speed-up to caching. It might be useful to combine both #8367 and #8403.

I have reconsidered this issue.
Sampler could be more efficient if it cached probability distributions (state.probabilities(qargs=qargs)), and Estimator cached expectation values (np.real_if_close(state.expectation_value(observable))) and variances (sq_exp_val - expectation_value**2 only if shots is not None). Especially for Estimator, I think it would be a big improvement in terms of memory size.


Update pypi package

The sciunit2 Pypi package has not been updated since Mar 30, 2022.
Now, users who want to use the latest updates must build sciunit from source.
Only the maintainers can build and upload the new package to Pypi. The current maintainers are lichray, razaahmad and tanumalik.

Yes the user must build from source, but Pip makes this pretty easy if you have cmake and git:
pip install https://github.com/depaul-dice/sciunit

Thank you for the information. I think we need to add git+ :
pip install git+https://github.com/depaul-dice/sciunit
Anyway, Thanks to @sranasir who already created the updated Pypi package. We can close this issue.


Direct writes to local disk images

I was looking around the settings in google chrome and I saw there was a File Editing option in the site settings
chrome://settings/content/siteDetails?site=http%3A%2F%2Fcopy.sh
Could we use this to read/write directly to the disk file so we don't have to press get hard disk image every time we want to save?
It would be a big change but I think it would speed up the emulator a lot and it would use a lot less memory.

Someone correct me if I'm wrong, but I don't think it's possible. File looks like it's read-only, while FileSystem only gives you access to a virtual filesystem.

Yes, @copy @ethanaobrien . It is possible, using the Filesystem Access API. In fact, it should be implemented, as the current implementation (storing the disk in memory) defeats the purpose of swap.

Could it be implemented? All you'd need is to change the disk image from being stored in memory to being written to disk.

What's the timeline for this?

@hello-smile6 I was expecting your contribution ...

@copy I got a chance to play around with this for a bit. Heres a small demo on how to use the api.
<button id="cf">Choose file</button>
<script>
    // See https://blog.merzlabs.com/posts/native-file-system/ for some info
    cf.addEventListener('click', async function() {
        const files = await showOpenFilePicker()
        let file = await files[0].getFile();
        console.log(files[0], file);
        console.log("Old file contents:", await file.text());
        const writable = await files[0].createWritable();
        await writable.write("this is a test");
        await writable.close();
        file = await files[0].getFile();
        console.log("New file contents:", await file.text());
    });
</script>

hope this can help!

NodeJS way - a simple file buffer that automaticly writes back to the image (may unsafe):
/**
 * Asynchronous buffer with writeback support
 *
 * @constructor
 * @param {string} filename Name of the file to download
 * @param {boolean} writeback Allow writeback
 * @param {number|undefined} size
 */
function AsyncNodeJSBuffer(filename, writeback, size) {
  this.fs = require("fs");
  this.filename = filename;
  this.writeback = writeback;
  this.byteLength = size || this.fs.statSync(filename).size;

  this.fd = 0;

  this.onload = undefined;
  this.onprogress = undefined;
}

AsyncNodeJSBuffer.prototype.load = function() {
  this.fs.open(this.filename, this.writeback ? "r+" : "r", (error, fd) => {
    if (error) {
      throw new Error("Cannot load: " + this.filename + ". " + error);
    } else {
      this.fd = fd;
      this.onload && this.onload(Object.create(null));
    }
  });
}

AsyncNodeJSBuffer.prototype.destroy = function() {
  this.fs.close(this.fd, error => {
    if (error) {
      throw new Error("Cannot close: " + this.filename + ". " + error);
    }
  });
}

/**
 * @param {number} offset
 * @param {number} len
 * @param {function(!Uint8Array)} fn
 */
AsyncNodeJSBuffer.prototype.get = function(offset, len, fn) {
  const buffer = new Uint8Array(len);
  this.fs.read(this.fd, buffer, 0, len, offset, (error, bytesRead, buffer) => {
    if (error) {
      throw new Error("Cannot read: " + this.filename + ". " + error);
    } else {
      fn(buffer);
    }
  });
}

/**
 * @param {number} start
 * @param {!Uint8Array} data
 * @param {function()} fn
 */
AsyncNodeJSBuffer.prototype.set = function(start, data, fn) {
  if (!this.writeback)
    return;
  console.assert(start + data.byteLength <= this.byteLength);
  this.fs.write(this.fd, data, 0, data.byteLength, start, (error, bytesWritten, data) => {
    if (error) {
      throw new Error("Cannot write: " + this.filename + ". " + error);
    } else {
      fn();
    }
  });
};

AsyncNodeJSBuffer.prototype.get_buffer = function(fn) {
  fn();
};

AsyncNodeJSBuffer.prototype.get_state = function() {
  // All changes should be written to the disk
  return [];
};

AsyncNodeJSBuffer.prototype.set_state = function(state) {
  return;
};

NodeJS way - a simple file buffer that automaticly writes back to the image (may unsafe):

We are running this in the browser, so we can't use this

I'm gonna give this issue a go, any suggestions before I start working on it? I was thinking I'd make a class that serves as a drop-in replacement for a standard File object, so the buffer could be initialized to the new class (or a normal File still) and work the same way everywhere it's used. Then, whenever it's written to (ie in ide.js), the write would actually go to disk instead of in-memory if the new class was used. It seems like the class would only need to support get, set, and byteLength which should be doable with the FileSystemFileHandle api. For reading, the API gives a standard File object so that could be kept the same, and for writing you can get a seekable write stream to the file. Does this sound like a good plan?

@nklayman one thing. I experimented with this before and discovered that when you create a writable stream, if you use seek it will not keep the contents of the previous file (anything before that offset is set to null byte) I'd experiment and see if you can get this to work before anything else because I never managed to. Let me know if you manage to get it work, because I'd like to know. Thanks!

@nklayman I could never get a seakable writable stream to work properly. I recommend experimenting with it before trying this. When writing data to a file at a specific byte, it would erase the rest of the file. Let me know if you manged to get around this, I'd like to know how. Thanks!

@nklayman That sounds like a good approach, although there seems to be some confusion around which class to implement: File is a browser API that can be read using FileReader, which will be difficult to shim. You'll probably want to implement a class similar to AsyncFileBuffer, which is a v86-specific class that implements the get, set methods you mentioned. I'd suggest not implementing read caching, and also skip get_state/set_state.

@ethanaobrien I also found that in-place writes don't work, but they do when using SyncAccessHandle. This has the downside of only working within the Origin Private File System, but that should be okay (I was able to allocate an 8gb file there with no issue). The only downside is you would have to manually save the file to a user-accessible location on disk, but this should still heavily reduce memory usage by storing the disk file on the host disk instead of in memory.
@copy AsyncFileBuffer seems like the better class to implement, I'll do that.

Here's a working read-only implementation: https://github.com/nklayman/v86/tree/origin-private-file-system. I copy the file into the origin private file system, then can read from (and hopefully write to) it. The file operations have to be in a web worker due to API limitations. My current test setup (linux.iso) doesn't create an AsyncFileBuffer for the disk image so it gets no writes. Any suggestions on how to configure the app so that it issues writes to that?


remove xerces-xsd dependency

I can't see anything in the code that needs this

I think it was necessary with a much older version of POI. Always good to pare down dependencies though!


MultiArrow Can Be Picked Up

dev build 6.1
1.14.4 paper
the arrow shot by a bow with MultiArrow enchantment could be all picked up. Please fix that, thanks!

Confirmed, feel like it should just be removed due to the new vanilla enchant.

No, the vanilla enchantment is MultiShot, not available for bows but crossbows. So this enchantment is still useful.

tested, fixed in v7


BorderBottom (and Top, Left, Right) not working in TextInput but Border is

I have a TextInput and I'm trying to add bottom border to it by adding style borderBottomWidth: 1, borderBottomColor: 'black' and they do nothing. However BorderWidth: 1, BorderColor: 'black' work just fine.

the same happens with borderRadius and borderBottomRightRadius. I can add borderRadius just fine but borderBottomRightRadius does nothing (and gives no warnings). This happens with a real iphone 6s+ and with iphone 4s simulator.

I have the same Issue. A quick workaround for me was, to wrap my TextInput in a view and pass the borderBottomX style attributes to the view component

+1

+1

I'm also having this issue with a <Text> component.

+1

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/borderbottom-and-top-left-right-not-working-in-textinput-but-border-is-
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top
Also, if this issue is a bug, please consider sending a pull request with a fix.


Navigate

fix bug : can not navigate in dashboard

PR should be made from a branch created from a fresh master, please.

i'm not sure what this PR is trying to do. please open another PR with more details once finished.


Fixed typos in PR template

Updated with a few more fixes.

@jnm2 your changes have been merged, thanks for your contribution :+1:


Wow, looks very promising!

First of all Wow @Niitch thank you, this looks very promising, maybe you're solving my biggest issue with cucumber-js!
I haven't tried it hands on, but checked out the readme and the examples, also some of the code, and I have a few questions (maybe they are also worth clarifying in the readme).
How does the Gherkin steps convert to playwright tests/steps?
Is one Scenario/Example turned into one pw test?
Are the test level fixtures shared between the GivenWhenThen steps?
Are the GivenWhenThen steps translated to playwright test.steps for reporting?
Sharing test-level fixtures would be super important to share state between the GivenWhenThen step implementations.

Hi @cassus, thank you for your feedback.

How does the Gherkin steps convert to playwright tests/steps?
Is one Scenario/Example turned into one pw test?

Each step converts to a playwright test.step and a Scenario/Example converts to a test.
The wrapper also handles these Gherkin keywords:

Background converts to test.beforeEach
Feature and Rule convert to test.decribe
Scenario outline converts to a test for each example in it

If needed, all of this could become fully customizable in the future.

Are the GivenWhenThen steps translated to playwright test.steps for reporting?

The wrapper calls directly the playwright test API, so each part converted from the feature file (as presented above) should appear as it used to in the reporting.
The titles for steps, tests and test groups are the text of the corresponding objects in the feature file.
The usual reporters should work fine but i recommend exending them or implementing yours for better support.

Are the test level fixtures shared between the GivenWhenThen steps?
Sharing test-level fixtures would be super important to share state between the GivenWhenThen step implementations.

As each Scenario/Example translates to a test, the steps in a Scenario/Example share there fixture instances at runtime.
Step functions defined with the given-when-then wrapper methods are not tied to a particular fixture instance.
In fact, needed fixtures for a test are loaded based on its steps indivual requirements when it is created.
This way step functions can be reused mutiple times for different tests during the same execution.
A hidden feature is to reuse or prebuild step function libraries. In the example below, wrappers A and B share the same step function library (both handles spec 1, 2 and 3) but will be able to pass different fixtures to them.
import { Library } from 'gherkin-wrapper/common/library'

const library = new Library()

library.given('spec 1', ({}) => {...})

const wrapperA = new GherkinWrapper.forPlaywright(test.extends({...fixturesA}), library)

wrapperA.when('spec 2', ({}) => {...})
wrapperA.then('spec 3', ({}) => {...})

const wrapperB =  new GherkinWrapper.forPlaywright(test.extends({...fixturesB}), wrapperA.library)

After collecting more feedback, I'll build an extended version of the documentation section you found in the README.


fix: parser fails with older scoped packages.

Given a path mapping as
"paths": {
	"@ckeditor/ckeditor5-utils": [
		"ckeditor__ckeditor5-utils/v10"
	]
}

definitions-parser failed to understand that /v10 is not part of the
package name, and that the key of the mapping must be a scoped name.
This PR would unblock https://github.com/DefinitelyTyped/DefinitelyTyped/pull/51335

@fedemp fedemp/DefinitelyTyped-tools/pull/1

@peterblazejewicz Thank you. I've merged your PR.
@andrewbranch Tests have been contributed.

Sorry, I should have been more specific. I have no doubt that removeVersionFromPackageName does what it says, but I was hoping to get a test for the actual logic change of the parser in here: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/test/definition-parser.test.ts

Sorry, I should have been more specific. I have no doubt that removeVersionFromPackageName does what it says, but I was hoping to get a test for the actual logic change of the parser in here: https://github.com/microsoft/DefinitelyTyped-tools/blob/master/packages/definitions-parser/test/definition-parser.test.ts

I've added a test, which allowed me to notice that there were still some issues. The problem is that checking that the typings are defined is the best I could come up with; there isn't any useful information from getTypingInfo.
https://github.com/microsoft/DefinitelyTyped-tools/pull/208/files#diff-1835dd7ec74428c084a5b69def3188bd2b7ec7d199efd2e0e83c10b9435254a7R68

I think that’s fine—it validates that the crash is gone, which is what we care about. I’m going to let the on-call DT person take a look and decide whether it’s an ok time to merge and publish. Thanks so much for taking the time to fix this!

Only thing missing is that I'm not sure if the publisher has to be modified too. :(

I suspect it doesn’t.

(Merging instead of waiting for a better regexp, but IMO it's worth improving...)


Fix CreateConVar arg

Fixes #2475

also found out why it marks the entire file as a difference, i merged the edited file rather than edit it directly lmao

the diff is still massive, could you open another one?
I'd also recommend using github desktop and editing it in vscode instead of the online editor (so you can catch syntax errors)

sure


error getting ClusterInformation: connection is unauthorized: Unauthorized

When I setup calico 3.14.0 in Kubernetes（version 1.18.2）,the staus of pod 'calico-kube-controllers' returns error:
networkPlugin cni failed to set up pod "calico-kube-controllers-5d9b9bfc74-nxrlq_kube-system" network: error getting ClusterInformation: connection is unauthorized: Unauthorized, failed to clean up sandbox container "94c018f22b521170b263f954b2eafbc154b317ad16e86d009fd9e3460e1abea1" network for pod "calico-kube-controllers-5d9b9bfc74-nxrlq": networkPlugin cni failed to teardown pod "calico-kube-controllers-5d9b9bfc74-nxrlq_kube-system" network: error getting ClusterInformation: connection is unauthorized: Unauthorized]
CNI Plugin version: 3.14.0
OS version: CentOS 7.6.1810
When I rollback calico version to 3.13.3, the pod 'calico-kube-controllers'  runs successfully.

Could you provide a link to the Calico docs you used to install Calico v3.14.0? Looking at one of the guides it looks like the proper RBAC is configured through ClusterRole and ClusterRoleBinding for accessing ClusterInformation.
Were there any modifications you did to the manifests?
Can you run the following command successfully?
kubectl get ClusterRole calico-node
kubectl get ClusterRoleBinding calico-node

If either of those fail with v3.14.0 installed then that suggests that there was a problem with the install.

The link to the Calico docs I used to install Calico v3.14.0 is:
kubectl apply -f https://docs.projectcalico.org/v3.14.0/manifests/calico-typha.yaml
kubectl apply -f https://docs.projectcalico.org/v3.14.0/manifests/calicoctl.yaml

@shenchenguo looks like that manifest has the necessary permissions. Could you try the commands that @tmjd suggested to see if those resources exist in the cluster as expected?


Aspire dies silently having failed to launch browser when running dotnet watch run on .NET 9 RC1

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
I have transitioned the project I have to .NET 9 RC1 and running aspire as usual with dotnet watch run resulted in it hanging and not giving the token for the dashboard in the console. As the dashboard itself ran successfully and could be reached on https://localhost:17259, this spiraled into a long ghost hunt.
Afterwards, I ran dotnet watch run --verbose (should have started with that.... 🫠 ), I got to the culprit:
An exception occurred when attempting to launch a browser
Full logs:
warn: Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[9]
      The ASP.NET Core developer certificate is only trusted by some clients. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert
info: Aspire.Hosting.DistributedApplication[0]
      Aspire version: 8.2.0+75fdcff28495bdd643f6323133a7d411df71ab70
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
      Application host directory is: /home/devops/data/projects/company/project/src/projects/Company.AppHost
info: Aspire.Hosting.DistributedApplication[0]
      Now listening on: https://localhost:17259
dotnet watch ⌚ Launching browser: https://localhost:17259/
dotnet watch ⌚ An exception occurred when attempting to launch a browser: System.ComponentModel.Win32Exception (2): An error occurred trying to start process 'https://localhost:17259/' with working directory '/home/devops/data/projects/company/project/src/projects/Company.AppHost'. No such file or directory
   at System.Diagnostics.Process.ForkAndExecProcess(ProcessStartInfo startInfo, String resolvedFilename, String[] argv, String[] envp, String cwd, Boolean setCredentials, UInt32 userId, UInt32 groupId, UInt32[] groups, Int32& stdinFd, Int32& stdoutFd, Int32& stderrFd, Boolean usesTerminal, Boolean throwOnNoExec)
   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
   at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   at Microsoft.DotNet.Watcher.Tools.BrowserConnector.LaunchBrowser(LaunchSettingsProfile launchProfile, String launchUrl)

This seems like a pretty important error to print to the developer as I am running in WSL and it simply fails opening the browser.
Also, what's worse, dotnet run simply worked and no error happened even with --verbose.
Not sure if this has something to do with .NET 9 RC1 or I just stumbled upon some other bug after updating everything.
Expected Behavior
An error would be printed to the console, when Aspire fails to run open the browser. I would have set "launchBrowser": false and called it a night 😄
Steps To Reproduce
If this is not reproducible with just running the project with <TargetFramework>net9.0</TargetFramework> and .NET 9 RC1, I will investigate further.
I used:
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.2.0" />

Exceptions (if any)
No response
.NET Version info
dotnet --info
.NET SDK:
Version:           9.0.100-rc.1.24452.12
Commit:            81a714c6d3
Workload version:  9.0.100-manifests.67cd1eb6
MSBuild version:   17.12.0-preview-24422-09+d17ec720d
Runtime Environment:
OS Name:     debian
OS Version:  12
OS Platform: Linux
RID:         linux-x64
Base Path:   /home/devops/.dotnet/sdk/9.0.100-rc.1.24452.12/
.NET workloads installed:
Configured to use loose manifests when installing new manifests.
[aspire]
Installation Source: SDK 9.0.100-rc.1
Manifest Version:    8.2.0/8.0.100
Manifest Path:       /home/devops/.dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.0/WorkloadManifest.json
Install Type:        FileBased
Host:
Version:      9.0.0-rc.1.24431.7
Architecture: x64
Commit:       static
.NET SDKs installed:
8.0.303 [/home/devops/.dotnet/sdk]
8.0.400 [/home/devops/.dotnet/sdk]
8.0.401 [/home/devops/.dotnet/sdk]
9.0.100-rc.1.24452.12 [/home/devops/.dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.7 [/home/devops/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.8 [/home/devops/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0-rc.1.24452.1 [/home/devops/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.7 [/home/devops/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.8 [/home/devops/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0-rc.1.24431.7 [/home/devops/.dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT       [/home/devops/.dotnet]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Anything else?
Aspire.Hosting.AppHost: 8.2.0

dotnet watch is being re-designed to work with aspire. That work is happening in 9.0.200 SDK which is not shipping with .NET 9. This has been fixed in that branch.
You can see the work items for watch and aspire here https://github.com/dotnet/sdk/issues?q=is%3Aissue label%3AAspire


django-autocomplete-light incompatible with django-material

I would to configure dal to work in a form using autocomplete light. After almost a day of debugging I came to the conclusion by using stripping everything bare to realize that django material for whatever reason obscures and disables dal.
when a form is rendered normally as
{{form }}
the autocomplete light renders properly.
But when form is rendered the django-material way
{% form form=form %}{% endform %}
dal doesn't render its widget form as expected.

Great question ! DM overrides Django's form rendering mechanisms to achieve material design (yes, Django's current Forms OOP design prevents implementing material, where widget must be aware of the label to render itself and this kind of things.
You should probably try this one for use with DM: http://materializecss.com/forms.html
If you make it please share your code ;)

I've made this work before. Create a template file templates/material/fields/dal_select2_modelselect2.html. The naming convention is important.
Contents (which is a slightly modified version of material's select template):
    {% load l10n material_form material_form_internal %}
    {% part bound_field.field %}

                    {% part field prefix %}{% endpart %}{% part field label %}
                            {{ bound_field.label }}
                    {% endpart %}
                    {% part field control %}

                                    {{ bound_field }}

                    {% endpart %}
                    {% part field help_text %}{% if field.help_text %}

{{ bound_field.help_text|safe }}

                    {% endif %}{% endpart %}{% part field errors %}
                            {% if bound_field.errors %}
                                    {% include  'material/field_errors.html' %}
                            {% endif %}{% endpart %}{{ hidden_initial }}

{% endpart %}

Should this be contributed to dal perhaps or is it better here as an example ?

I think crudfla+ should implement it if you stick to django-material and maybe then link it from the docs?
The approach taken for rendering forms is interesting in general. Both the template tags and the Layout class. It was trivial to implement for instance a Tab class that could group several elements and render as material tabs.

Absolutely the form rendering for django-material is really great, I think it should be merged in django really, otherwise we'll have to implement an override for every new widget

No, we don't. The chosen widget template tries most specific to least. It's just that selects are handled in JS.

Good night,
I found your solution fantastic, implemented here but there were still some issues with jquery.
I would like to know if you have a small project with foreingkey and that can make it available to everyone here.


ARIA elements

https://github.com/Khan/tota11y

Closing this out due to lack of activity. Please feel free to open a new issue if this is still needed.


[insserver] GLIBC 2.15 issues in recent update

Hi Daniel,
Insurgency now requires the following fix in order to launch on CentOS 6 and probably other distros in the same basket:
export LD_LIBRARY_PATH=/home/insserver/serverfiles/bin <-- substitute own path to bin folder here
Followed by:
http://danielgibbs.co.uk/2014/08/garrys-mod-linux-server-glibc_2-15/

I have this issue with my docker container running ubuntu:latest.

Same here on Ubuntu 12.04.5 LTS, can't launch the server.

You should be able to launch the server if you export the path shown in the original comment. It depends on where you have your server installed, but just export that bin directory and you should be good to go.

I can confirm this on Ubuntu 14.10 x64
Error probably the suspect:
./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory

Ah yes, posting the error as well as the solution would have helped, my bad :P

After looking at this a hotfix should resolve the issue. There is already a GLIBC fix in place. I don't believe any action will be required on my part. However can someone please confirm this for me.

Hi all
I tried to install an insurgency server the first time today (on Ubuntu 14.04.2). Install went fine, but starting does not work.
I get the ominous error message:
./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory
So far I have found indications that this is related to the GLIBC issue, however, I am a little confused.
According to ldd --version the Ubuntu 14.04.2 install runs EGLIBC 2.19.
So version 2.15 is exact requirement or is it the minimum requirement? Because if it is the latter, then Ubuntu 14.04.2 should work out of the box, shouldn't it?

export LD_LIBRARY_PATH=/home/insserver/serverfiles/bin
I am writing a fix for this to be inbuilt soon

I have written a fix in to the server.
https://github.com/dgibbs64/linuxgsm/commit/a48894fc67ade2a4490b5ed6f6c11647db455e1b


BUG: Navigation Errors

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The navigation links in the navbar reloads whole page, which is not suitable for react (single page ) applications.
In the given screenshot, we can see the page is reloading when i click any navbar links.

I want to use react-router-dom, which stops the page reload.
Please assign me this issue @hereisSwapnil.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'24 contributor
[X] I want to work on this issue

@hereisSwapnil Please assign me this task


Enumerations are traslated to C++ signed integer enumerations [21215]

…tion

Description

Related implementation PR:

eProsima/Fast-DDS#4969

Contributor Checklist

[x] Commit messages follow the project guidelines.
[x] Code snippets related to the added documentation have been provided.
[x] Documentation tests pass locally.
N/A Applicable backports have been included in the description.

Reviewer Checklist

[x] The PR has a milestone assigned.
[x] The title and description correctly express the PR's purpose.
[x] Check contributor checklist is correct.
[ ] CI passes without warnings or errors.

@richiprosima please test_3 this

@richiprosima please test_3 this


Add new solidity coverage

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f169b94). Click here to learn what that means.
The diff coverage is 100%.

@@            Coverage Diff            @@
##             master     #305   +/-   ##
=========================================
  Coverage          ?   96.84%
=========================================
  Files             ?       79
  Lines             ?     3105
  Branches          ?       20
=========================================
  Hits              ?     3007
  Misses            ?       95
  Partials          ?        3

Impacted Files
Coverage Δ

packages/etherlime/cli-commands/commands.js
97.91% <ø> (ø)

.../cli-commands/etherlime-test/etherlime-coverage.js
97.87% <ø> (ø)

...r/jsonrpc-deployer/jsonrpc-private-key-deployer.ts
100% <100%> (ø)

...ckages/etherlime/cli-commands/flattener/flatten.js
100% <100%> (ø)

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 f169b94...b2cc247. Read the comment docs.


Infinite loop: kminion doesn't expect empty consumer offset

We use the following settings for __consumer_offsets:
    cleanup.policy:    compact,delete
    compression.type:  producer
    retention.ms:<PHONE_NUMBER>
    segment.ms:        3600000

As you see it's possible that __consumer_offsets had records before and doesn't have them right now. I means that Low Water Mark = High Water Mark != 0

offset_consumer.go checkIfConsumerLagIsCaughtUp internally does the following:
highMarksRes, err := offsetReq.RequestWith(ctx, s.kafkaSvc.Client)
...
consumedOffsets := s.storage.getConsumedOffsets()
...
			highWaterMark := partition.Offset - 1
			consumedOffset := consumedOffsets[partition.Partition]
			partitionLag := highWaterMark - consumedOffset
			if partitionLag < 0 {
				partitionLag = 0
			}

			if partitionLag > 0 {
				partitionsLagging++
				totalLag += partitionLag
				s.logger.Debug("consumer_offsets topic lag has not been caught up yet",
					zap.Int32("partition_id", partition.Partition),
					zap.Int64("high_water_mark", highWaterMark),
					zap.Int64("consumed_offset", consumedOffset),
					zap.Int64("partition_lag", partitionLag))
				isReady = false
				continue
			}

partitionLag in this case is always greater than 0 isReady is always false.
It looks like there should be a check for default value for consumerOffset (0) somewhere before final condition.

In case the __consumer_offsets topic is incomplete (due to configured retention settings) you should not use this mode as well, because it would yield wrong results. It has no chance of knowing the current group offset unless it would use the Kafka API again. This would unblock the start, but it would emit wrong metrics, or am I misunderstanding something?


Data Conversion also Possible in Conda environment

Hi!
Thanks a lot for sharing the code for the calibration
In the instructions it says that

First, installation of packages for the conversion code that must be completed outside of any virtual environment for compatibility reasons.

However, I just ran the conversion from a rosbag successfully in a conda environment.
The conda-environment file looks like this:
name: event_calibration
channels:
  - defaults
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2022.07.19=h06a4308_0
  - certifi=2022.9.14=py38h06a4308_0
  - ld_impl_linux-64=2.38=h1181459_1
  - libffi=3.3=he6710b0_2
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.3=h5eee18b_3
  - openssl=1.1.1q=h7f8727e_0
  - pip=22.1.2=py38h06a4308_0
  - python=3.8.13=h12debd9_0
  - readline=8.1.2=h7f8727e_1
  - setuptools=63.4.1=py38h06a4308_0
  - sqlite=3.39.3=h5082296_0
  - tk=8.6.12=h1ccaba5_0
  - wheel=0.37.1=pyhd3eb1b0_0
  - xz=5.2.6=h5eee18b_0
  - zlib=1.2.12=h5eee18b_3
  - pip:
    - catkin-pkg==0.5.2
    - distro==1.7.0
    - docutils==0.19
    - gnupg==2.3.1
    - h5py==3.1.0
    - numpy==1.23.3
    - psutil==5.9.2
    - pycryptodomex==3.15.0
    - pyparsing==3.0.9
    - python-dateutil==2.8.2
    - pyyaml==6.0
    - rospkg==1.4.0
    - six==1.16.0
    - tqdm==4.64.1

Best,
Julian

PS: I wanted to add the label "enhancement", but somehow I was not able to do it.

HI @nubertj
Thanks for letting us know. I think the main reason we wrote it this way in the readme is the metavision installation. Metavision installation (at least in the 2.2 version) is global and we could not get it to run in a virtual env. You are right, that for rosbags it might not be needed. Leaving this issue open, for now.

By the way, it is possible to build metavision API for venv python.
See: https://github.com/prophesee-ai/openeb/issues/36#issuecomment-1034697920
I haven't tested conda, but I suppose this works.


Adding highlighting to XML examples

This PR add highlighting to xml examples in response:

Moreover, some css properties used by prism were not defined from the theme to the css variable. I have fixed that too.

So, just some small things to change. If anything I think the biggest thing missing here is the answer to the question, why does the api-request execute response use this to display:
does that work for XML, or does that need to be changed too? If it does work, then we should be able to do the same thing here and not explicitly pass markup to the Prism, but rather the responseType. And if it doesn't work then we'll need some sort of prismResolver.js to handle our fixes to prism to handle types that it doesn't support out of the box.

Afaik it already "worked" before this PR. There is a mapping between content types and prism languages hardcoded here : https://github.com/Rhosys/openapi-explorer/blob/962e21f59eda5b535d34ba6eba2ed5bef5f01e9f/src/components/api-request.js#L564
It "worked" in the DOM, but it wasn't visible to the end user because of the css variables and styles missing. (that's why I added "language-markup" explicitly during my test, but it was already included by default in prism.js - I should remove it),
I agree it's kind of duplicated ^^
Imo, there should be some kind of "content-viewer" component which is responsable to render examples/responses + content-type, to fixes some inconsistencies. For example:

Why is the "json-viewer" not used on response ? Moreover, the style of prism and json-viewer don't match
Why is there no "copy button" on examples ?
And there are conflict between the prismcss and other style, like the ".header" class - It should probably be scoped into its own component

I have hesitated to make such change, but it was just to big for this kind of PR ^^

So, just some small things to change. If anything I think the biggest thing missing here is the answer to the question, why does the api-request execute response use this to display:
does that work for XML, or does that need to be changed too? If it does work, then we should be able to do the same thing here and not explicitly pass markup to the Prism, but rather the responseType. And if it doesn't work then we'll need some sort of prismResolver.js to handle our fixes to prism to handle types that it doesn't support out of the box.

Afaik it already "worked" before this PR. There is a mapping between content types and prism languages hardcoded here :
https://github.com/Rhosys/openapi-explorer/blob/962e21f59eda5b535d34ba6eba2ed5bef5f01e9f/src/components/api-request.js#L564
It "worked" in the DOM, but it wasn't visible to the end user because of the css variables and styles missing. (that's why I added "language-markup" explicitly during my test, but it was already included by default in prism.js - I should remove it),
I agree it's kind of duplicated ^^ Imo, there should be some kind of "content-viewer" component which is responsable to render examples/responses + content-type, to fixes some inconsistencies. For example:

Why is the "json-viewer" not used on response ? Moreover, the style of prism and json-viewer don't match
Why is there no "copy button" on examples ?
And there are conflict between the prismcss and other style, like the ".header" class - It should probably be scoped into its own component

I have hesitated to make such change, but it was just to big for this kind of PR ^^

I wouldn't worry about answering any of those questions yet, it's more of a question of why and not "we should fix it", for starters, we use the responseType in the API request - response object, I hope we can also use the responseType here to cause it to render the right thing. I think a good starting point would be to refactor the api request response to a new template and have it generate the result for the example, that feels like an easy/small change. If it isn't it would be good to know why.

It "worked" in the DOM, but it wasn't visible to the end user because of the css variables and styles missing. (that's why I added "language-markup" explicitly during my test, but it was already included by default in prism.js - I should remove it),

In that case, if this is already mostly can be aligned then a refactored component would be even easier, and I'd be all for pulling that in. This is still small, and avoiding a digression here would help align future changes as well. It's okay if you aren't up for it, but at the very least I would hope these two rendering use almost the exact same code.

I have reworked this PR : Now all the logic behind highlighting is in only one place, included the "copy to clipboard" button

I only took a quick look at this, but from what I've seen it looks reasonable. As soon as I get a moment, I'll do a full review.

Mostly just a couple of small things. So we are just about ready to get this in. The only thing left on my mind is if the syntaxt-highlighter really should be merged with the json-tree. I can't figure out a reason we would use one without the other, it's right now a "wrapper for a wrapper", but I'll let you decide if you want to merge these, I don't have a strong opinion either way.

I don't know the best practices of lit-element, but to me component should be small and testable. I don't think it's better to merge them.

I don't know the best practices of lit-element, but to me component should be small and testable. I don't think it's better to merge them.

It's fine to have separate files that doesn't change anything, but when we have lit elements wrap each other, that creates new shadow DOM that doesn't pass through the css, so we have to reinject all our css classes which is annoying. Also things like parameters to the syntax-highlighter if it had a lot (like the api-request) then passing them all in, just to then pass them to the json-tree would also not be the best. For now, it's fine, and we'll just have to keep an eye on it, however I don't expect it to unnecessarily grow, so it shouldn't be a problem.


LS: Refactor plugins handling in database

Stack:

#6775
#6774
#6773 ⬅
#6772

⚠ Part of a stack created by spr. Do not merge manually using the UI - doing so may have unexpected results.

This change is

Closing in favor of https://github.com/software-mansion/cairols/pull/7


hisat2-build parameter issue

So I just tried to update to the latest bcbio development build and during update hisat2-build was called for hg19 to make a exon/splice-aware index (I have enabled HISAT2 indexes, so that is expected).
However, the build commend line is called with --exons and --splicesites while in the latest HISAT2 conda version that I have (2.1.0 in channel Bioconda), these parameters are called --exon and --ss. So the automatic command failed but when I ran it manually with the correct parameter names the update worked just fine.
Please check and align the commend line call and the binary version.

Sven-Eric -- thanks much for the report and for the detailed investigation into what was going on. This was a huge help for fixing. I've pushed these changes to cloudbiolinux so it should work automatically going forward. Thank you again.


All capability to import external files

Users should be able to write their own custom code in external files and either have a method to import it directly into their own template or place it into a repository for third party use.

See my last commit (Desperately needs refactoring)

I made some changes to directory structure and syntax for the imports tag and also some code modifications to the imports because it didn't seem to work when I tried, I got an ImportError. See the imports_dev branch https://github.com/JA-VON/QGenPY/tree/imports_dev

Resolved in 1ee57f4, @ANich can open back the issue if necessary


[Manifest] Use licenses from source file comments if license is not otherwise found

Fixes https://github.com/github/licensed/issues/59
This PR updates the manifest dependency enumerator to parse unique license content from source file comments when license content is not otherwise found.
The manifest source uses a specialized Dependency class that has a backup implementation for finding license content if license_key is "none".  When needed, it will pull all unique comments containing copyright text into a separate LICENSE file which is then used by licensee to determine the license.
Questions

How should we handle when there is both a LICENSE type file, and license content in source file comments?  Currently this is not looking at source files if a license is found, even when it's "other".
Licensed::Source::Manifest::Dependency is only checking the license key when determining whether to pull license content from source files.  Do we need to also consider legal notices?
License content is being found based on whether a comment contains the word copyright.  Is that appropriate, or is there better content to match on that is more indicative of the comment containing licensing content?

/cc @mlinksva @benbalter any 💭 on the listed questions ☝ ?  Are there any considerations that I missed?

@jonabc nice. Wondering if it makes more sense to implement this upstream within Licensee as an additional source? That way it should "just work" in most contexts? Also curious how you'd handle conflicting license information (e.g., LICENSE says A, but files say B, and C)? Same with distinguishing vendored libraries?

Also curious how you'd handle conflicting license information (e.g., LICENSE says A, but files say B, and C)?

@benbalter 😆 Great question!

How should we handle when there is both a LICENSE type file, and license content in source file comments?
Currently this is not looking at source files if a license is found, even when it's "other".

I'd be happy to make this part of licensee.  I implemented it in licensed because it seemed like doing this was explicitly not a goal of licensee

@jonabc so I understand -- are 1&2 the same question -- what to do with source notices in the presence of a LICENSE file or package metadata? Suspect it would be an improvement to go ahead and fix #59 with this PR; more robust handling source notices in all cases is another issue; it might make sense for some or all of the code to be in licensee.
For trivial 3, probably also if it contains (c)|©|licen[s|c]e.

Licensee::Matchers::Copyright::REGEX may be useful since we already have the dependency.

are 1&2 the same question -- what to do with source notices in the presence of a LICENSE file or package metadata?

@mlinksva same general topic but I'm not sure it's the same question.
(1) is checking if it's 👍 to forego source file comment checking when licensee reports that license content was found
(2) is checking if it's 👍 to ignore non-license legal notices when pulling license(s) from source file comments

@jonabc ah I thought both were (1). Anyway, (1) it would be good to look for conflicting information in source comments, but I think it would be OK for now to only look in source comments when a license can't otherwise be detected, which would address #59. (2) I don't think we need to look for comments that look like potential legal notices but don't look like license or copyright notices.
Regarding the regex for C-style comments -- I imagine it would be possible to have regexes for different comment delimiters and use depending on language of source file in question? But starting off by only supporting C-style would still solve a problem.

@mlinksva

(2) I don't think we need to look for comments that look like potential legal notices but don't look like license or copyright notices.

I think I explained this badly.  I was describing a scenario where changing Dependency#path to a temp directory discarded legal notices found from the original location.
I took another look at it, and the scenario has been fixed and tested.

Regarding the regex for C-style comments -- ... But starting off by only supporting C-style would still solve a problem.

👍 I think I agree with that.  Supporting /* */ comments should cover a large number of popular languages that don't already have explicit package manager support and we can work towards broader support in the future.
Long term, I'm not sure it makes sense to implement detailed comment parsing logic directly in licensed for this one specific purpose.  We can cross that bridge when we need to.

As a note, I've updated the manifest source to use whatever length of indentation is set for the first line of the comment that contains word characters as the expected indentation for the rest of the comment.  This lets licensed get away with not fully stripping the leading whitespace and preserving some of the formatting of the license text.
It's not the smartest solution out there, but it should be good enough for the time being.

Moving ahead and merging this, will continue to iterate on comment matching as needed in the future


Can overlayfs work with the local folder on external storage?

The script works wonderfully when I have all the local directories on my main drive. If I try to run the script using my external drive for the local folder(s), I get a mount error. Is this a limitation to overlayfs?
Error:
mount: wrong fs type, bad option, bad superblock on overlay,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
[2017_03_07 10:04:42]: Failed to mount overlayfs of /media/plex/wdmedia/PlexACD and /home/plex/.acd-crypt/. please retry
rm: missing operand
Try 'rm --help' for more information.

Your work dir needs to be on the same file system as the upper dir
On 7 Mar 2017, at 18:13, Andrew Tran<EMAIL_ADDRESS>wrote:
The script works wonderfully when I have all the local directories on my main drive. If I try to run the script using my external drive, I get a mount error. Is this a limitation to overlayfs?
Error:
`mount: wrong fs type, bad option, bad superblock on overlay,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
[2017_03_07 10:04:42]: Failed to mount overlayfs of /media/plex/wdmedia/PlexACD and /home/plex/.acd-crypt/. please retry
rm: missing operand
Try 'rm --help' for more information.
`
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Mesh: Fix bounding infos when calling convertToUnIndexedMesh

See https://forum.babylonjs.com/t/object-display-truncated-by-camera/50632/8
I preferred to save and restore the existing submeshes / mesh bounding info rather than recalculate them with a call to mesh.refreshBoundingInfo(true), because the bounding info may come from a glTF file, in which case the extents may be different from the extents calculated by refreshBoundingInfo. In addition, the user may have defined a custom bounding info.

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/15122/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15122/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15122/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/15122/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/15122/merge
https://gui.babylonjs.com/?snapshot=refs/pull/15122/merge
https://nme.babylonjs.com/?snapshot=refs/pull/15122/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/15122/merge#BCU1XR#0

Visualization tests for WebGPU (Experimental)
Important - these might fail sporadically. This is an optional test.
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/15122/merge/testResults/webgpuplaywright/index.html


[Question]: Getting the TokenCounter from a StorageContext

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
I've got the tokenizer working with a ServiceContext. However, when I went through the API, I couldn't see a way to access this tokenizer if loading from a StorageContext.
import openai
import streamlit as st
from streamlit_pills import pills
import streamlit_scrollable_textbox as stx
from llama_index import SimpleDirectoryReader, VectorStoreIndex, LLMPredictor
from datetime import datetime
import tiktoken
from llama_index.callbacks import CallbackManager, TokenCountingHandler
from llama_index import StorageContext, load_index_from_storage

@st.cache_resource
def load_index():
    #token_counter = TokenCountingHandler(
    #    tokenizer=tiktoken.encoding_for_model("gpt-3.5-turbo").encode
    #)

    #callback_manager = CallbackManager([token_counter])

    sc = StorageContext.from_defaults(persist_dir='kinection_demo')
    index = load_index_from_storage(sc, 'vector_index')
    return sc, index

How do I grab the token counter when using a StorageContext? Does it have a reference to the ServiceContext?

@dosu-bot
Hi, I see. In what way would I be passing the Tokenizer to the other calls? I create a chat engine out of my index (using as_chat_engine). How would I get the counters for my tokens?

@dosu_bot
Do you have an example of the Tokenizer used in the scenario you are describing? Let's say I wanted to do load from StorageContext and start querying, then count my tokens used.

It does not seem the solution can be found using this bot.

when you load an index from storage, you can pass the service context
index = load_index_from_storage(sc, index_id='vector_index', service_context=service_context)


Add option for different languages

Can you please add a option to seek in different languages?
Right now, i export my movies and series vom plex to trakt, to get a list what i have and whats missing
and i import my watchlist from imdb to trakt to get what i want
then i import everything from trakt
But right now it allways looks for the english title, becourse trakt only understand english...
Is it may possible to add something that it import
Import missed movies/seriene from trakt and ask after this the optional title from imdb
imdb send the name of everything in the language you want...
The Problem is right now, flexget seeks in my feeds for the english title and cant find what i want becourse i tell flexget i want audiolanguage german and reject everyting else
at this point, flexget dont find anything....
I have something like
http://www.imdb.com/title/tt0111161/?ref_=wl_li_tt
english is: The Shawshank Redemption
german is: Die Verurteilten
france is:  Les évadés
finland is:  Rita Hayworth - avain pakoon
etc...
and in the feeds its allways in original language
Like here:
german: http://www.hd-area.org/?s=search&q=die+verurteilten
english: http://www.hd-area.org/?s=search&q=The+Shawshank+Redemption
and flexget just get me
2016-01-15 08:43 VERBOSE  est_movies    Movies_Watchlist_Search Querying release estimation for The Graduate 1967
2016-01-15 08:43 VERBOSE  discover      Movies_Watchlist_Search Searching for The Shawshank Redemption 1994 with plugin search_rss (1 of 37)
2016-01-15 08:43 WARNING  rss           Movies_Watchlist_Search Skipped 1 RSS-entries without required information (title, link or enclosures)
2016-01-15 08:43 VERBOSE  discover      Movies_Watchlist_Search No search results for The Shawshank Redemption 1994
2016-01-15 08:43 VERBOSE  discover      Movies_Watchlist_Search Searching for One Flew Over the Cuckoo's Nest 1975 with plugin search_rss (2 of 37)
2016-01-15 08:44 WARNING  rss           Movies_Watchlist_Search Skipped 1 RSS-entries without required information (title, link or enclosures)
2016-01-15 08:44 VERBOSE  discover      Movies_Watchlist_Search No search results for One Flew Over the Cuckoo's Nest 1975
2016-01-15 08:44 VERBOSE  discover      Movies_Watchlist_Search Searching for The Matrix 1999 with plugin search_rss (3 of 37)
2016-01-15 08:44 WARNING  rss           Movies_Watchlist_Search Skipped 1 RSS-entries without required information (title, link or enclosures)
2016-01-15 08:44 VERBOSE  discover      Movies_Watchlist_Search No search results for The Matrix 1999
2016-01-15 08:44 VERBOSE  discover      Movies_Watchlist_Search Searching for Star Wars: The Force Awakens 2015 with plugin search_rss (4 of 37)
2016-01-15 08:44 WARNING  rss           Movies_Watchlist_Search Skipped 1 RSS-entries without required information (title, link or enclosures)
2016-01-15 08:44 VERBOSE  discover      Movies_Watchlist_Search No search results for Star Wars: The Force Awakens 2015
2016-01-15 08:44 VERBOSE  discover      Movies_Watchlist_Search Searching for Once Upon a Time in the West 1968 with plugin search_rss (5 of 37)

+1

It can be done if I thought hard enough about it.
http://docs.trakt.apiary.io/#reference/movies/aliases/get-all-movie-translations

would be really awesome. i'm dreaming of this feature for years^^

API works perfect, pls include it!!!
https://trakt.tv/movies/the-intern-2015
gets me on
http://docs.trakt.apiary.io/#reference/movies/translations/get-all-movie-translations?console=1
[
{
"title": "Man lernt nie aus",
"overview": "",
"tagline": "",
"language": "de"
},
"title": "Le nouveau stagiaire",
"overview": "Ben Whittaker, un veuf de 70 ans s'aperçoit que la retraite ne correspond pas vraiment à l'idée qu'il s'en faisait. Dès que l'occasion se présente de reprendre du service, il accepte un poste de stagiaire sur un site Internet de mode, créé et dirigé par Jules Ostin.",
"tagline": "Il n'y a pas d'âge pour refaire un stage.",
"language": "fr"
{
"title": "El becario",
"overview": "La joven dueña de un exitoso negocio online dedicado a la moda no se toma demasiado bien el hecho de que la compañía contrate como becario a un hombre de 70 años, pero eso irá cambiando progresivamente, ya que poco a poco el hombre comienza a convertirse en alguien indispensable.",
"tagline": "La experiencia nunca pasa de moda.",
"language": "es"
}

@liiight any chance to get this in the near future?
It will help extreme for nonenglish users

i'm not entirely sure what you wanna lookup in a different language. IMDB, trakt or everything?

Right now:
Import German Movies and Series in german... becource Flexget right now import titles in english and seek in rss feeds for english titles...
But in all my RSS Feeds the titles are in german...
2016-01-15 08:43 VERBOSE discover Movies_Watchlist_Search Searching for One Flew Over the Cuckoo's Nest 1975 with plugin search_rss (2 of 37)
2016-01-15 08:44 WARNING rss Movies_Watchlist_Search Skipped 1 RSS-entries without required information (title, link or enclosures)
2016-01-15 08:44 VERBOSE discover Movies_Watchlist_Search No search results for One Flew Over the Cuckoo's Nest 1975
the German titles is "Einer Flog über´s Kukuksnest" ... so with a german import  of titles it would find it in my feeds...
The same for ALL Series...
Flexget import and seek for "mickey mouse clubhouse"
http://trakt.tv/shows/mickey-mouse-clubhouse
My Feeds just have "Micky Maus Wunderhaus"
But when flexget import german titles, it should work... so we need a option for import title language

@liiight
we need this api
http://docs.trakt.apiary.io/#reference/movies/translations/get-all-movie-translations?console=1
you are allready import the title with flexgte, but allways in english, with this api you could add a option for language... ore just
Language = DE then import title prefered german/DE language, else Trakt-Original-title

@liiight, we mean the discover-function with localized titles. Right now, flexget is kinda "losing" the localized titles and is searching with discover for original titles instead of localized titles

Any news on this?

Sit tight, it's not going to happen soon

Dont you think its a good thing?
There are a lot of people who dont have english as native language, and want movies and series in their language... and it cant be much hard to add this option, i think :D
If i could code i would do it, but i cant :/
Is there a way to donate just for this option? :)

@liiight maybe? :)

Isn't this is what you want: https://github.com/Flexget/Flexget/pull/444 ?

I hope this message gets recognized.
@antivirtel It is not the same. It will filter the language but it's not worth a penny when the title does not match, just because it is in english instead of german.
I also was searching for a good way to automize my movie downloads using flexget but this looks nearly impossible in foreign languages. While tv shows have identical names in english and german, movies do not. So it is quite easy to automize tv shows in german, while it is not for movies, because most movie names are different.
Example: I use trakt.tv (very good UI) to manage my lists of what to watch. But the trakt_list plugin only returns the english movie title, even though, as shown in this topic, it is possible to return it in other languages using another API method.
So in my opinion there are two ways to easily fix this:

Add a parameter for trakt_list to select a language (neat but does not include other sources for watchlists)
Add another plugin that can handle this by using any service

I think the first one is easier to integrate, but the second would be the best solution, since it is not only for trakt.tv...
I think this is still a big thing for flexget to have, because right now, automization for movies in foreign languages is a dealbreaker.

@liiight maybe now, since imdb is dead?

I'll look into trakt languages. I added it to thetvdb_lookup and it was very easy, if it's similar it shouldn't be an issue

I dig my head into this couple of days ago. But I'm still very new to python and my skills are very limited so I implemented my first idea of my last post. But I think it is not the solution you are looking for right?
However, it's working so I want to share it. So I added a language parameter to trakt_list and whenever getting a list from trakt with movies in it the movie names will be translated into the selected language if it was successful.
Changes can be seen here.
https://github.com/Flexget/Flexget/compare/develop...segelkma:develop
Possible task to store into movie list:
update_movie_list:
  trakt_list:
    account: accountname
    list: Movielist
    type: movies
    language: de
  accept_all: yes
  list_add:
    - movie_list: trakt_movies

Looks pretty good. Only thing missing is some db caching

Indeed. I noticed that calling the API for translations takes very long. Getting translations for 50 Movies took around 80 seconds.
But the caching can't be done by me, I would need many hours just to understand how it's done and I can't spend the time right now...

something new here?

Please reopen in feathub

feature request done. but  still, @cvium can  you maybe take another look at @segelkma's pull-request?  seems it was already kind a done, right?  would be a really great feature. thx

i dont know if you guys even know this.. but without localized titles, search makes almost no sense for any language other than english. at least 40 percent is just not working. would be damn happy if you could add this

@liiight , @sixteeN11 successfully tested this pull-request from @segelkma for days now. What is the problem exactly ? thanks

^

thank you so much cvium. Works like a charm now. I'm getting like 300% more results with discover now. thank you!


When something goes wrong, it may panic on Stop

Need to introduce recover, to spare the caller from surprises.

Fixed in https://github.com/rusq/tracer/commit/8720ebceb9334bc415caf5d70df45d870bfb6a29