PLEASE HELP ME FTO SETUP

Error on request:
Traceback (most recent call last):
File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\venv\Lib\site-packages\werkzeug\serving.py", line 323, in run_wsgi
execute(self.server.app)
File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\venv\Lib\site-packages\werkzeug\serving.py", line 312, in execute
application_iter = app(environ, start_response)
File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\app.py", line 58, in
dataset_raw = load_dataset(True)
File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\app.py", line 37, in load_dataset
with open(dataset_file_path) as dataset_file:
FileNotFoundError: [Errno 2] No such file or directory: 'tmp/datasets/recipes_raw_nosource_ar.json'

Error on request: Traceback (most recent call last): File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\venv\Lib\site-packages\werkzeug\serving.py", line 323, in run_wsgi execute(self.server.app) File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\venv\Lib\site-packages\werkzeug\serving.py", line 312, in execute application_iter = app(environ, start_response) File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\app.py", line 58, in dataset_raw = load_dataset(True) File "D:\SEM VI PROJECT\Homemade-RecipeBowl-Your-Ingredients-Our-Recipes\ui\api\app.py", line 37, in load_dataset with open(dataset_file_path) as dataset_file: FileNotFoundError: [Errno 2] No such file or directory: 'tmp/datasets/recipes_raw_nosource_ar.json'

i also faced the same issue


Add functions:log command

netlify functions:log create-todo => pulls down the function logs that the UI displays
Use case:
As I'm pinging my live functions, it would be awesome to stream in the logs locally to a terminal window.
Questions:

Should logs tail by default or should user supply -t flag?


Add very basic storage method for x86 contracts and refactor bytecode storage

As a smart contract developer, I want my contracts to be capable of storing data and tracking state.
In this we will implement only the "live" functionality of the DeltaDB design for state storage. This should be very simple and similar to how contracts are currently stored within the x86 database. It does not need to be capable of properly recovering from orphaned blocks etc. As part of this, we should also refactor how contract bytecode is stored so that we can use the same functions for bytecode and other internal state, as well as data exposed to the contract.
All user provided keys must be prefixed with "_" so as to avoid conflicts with internal data. The following reserved keys are defined:

'c' - contract creation data (ie, bytecode)
'u' - AAL UTXO data (not yet used)
'x' - the last execution receipt (not yet used)

The format for the key data is as follows:

[address]_data_[key] - The address is a UniversalAddress (ie, 32 byte address, 1 byte version) in raw binary

If the user provided "key" is larger than 31 bytes, then it should be sha256 hashed, and that hash stored instead. In this way, the key data should never be larger than 33+6+32 bytes, or 71 bytes.
The value in the database is of course just the raw data.
Example key that contract creation data would be stored in for contract of address 0x12345678 with a UniversalAddress number of 1:
[0112345678]_data_c

(note numbers in brackets is raw binary data)
Another example when the same contract stores data in a key by the name of "foobar"
[0112345678]_data__foobar

As part of this story, also expose this functionality to the contracts by adding two syscalls:

int ReadStorage(const char* key, int key_size, char* data, int max_data_size)  - It should return 0 for non-existent keys, and otherwise should return the actual size of the data within the key. If max_data_size is less than the actual size of the data, then the data should be truncated to avoid buffer overflows.
void WriteStorage(const char* key, int key_size, const char* data, int data_size)

Keep in mind that key can be a binary string and should not be assumed to be a null terminated ASCII string.

Added related storage in deltaDB and syscall process.


BVAL-526 Restart example numbering for each chapter

https://hibernate.atlassian.net/browse/BVAL-526

Here's a second attempt on this task :)
I hope that nobody minds that I've moved the project to use maven instead of ant ... It's not finished yet there are some things missing. I just wanted to show where I'm on this task.
As for the main part - Asciidoctor extension I've ended up writing it no Ruby ... :)
I did manage to write it with Java but when it is used in combination with other extensions it gives wired results (caused by the fact that if CustomRoleBlockProcessor processed block it is not an AbstractBlock anymore but I think some sort of anonymous implementation of one of the interfaces that this class implements... And when it was consumed by that Treeprocessor the block was either ignored because it was not an instanceof Section or if such filter was removed - the processor was just crashing ...)
But still I think that the Ruby implementation is much cleaner than the one with Java....
Here's a draft PDF generated using all by this code:
index.pdf
There will be some obvious issues with the PDF like missing the license and that the section numbers in example captions are -1 compared to the sections... But as I've said it's not finished yet, just wanted to get your opinion on it (especially about the maven part :) )

@gunnarmorling I think that now - it's ready for review. As I've explained previously I ended up with writing the extension in Ruby. I also changed how tables are numbered (will be the same as examples).
Also I think that maybe we can actually extract this ruby extension and related part of BeanValidationAsciidoctorExtensionRegistry to a separate jar (somewhere under Hibernate Commons that I've seen a discussion about on dev-list). That way we'll be able to reuse it for HV as well as any other projects that would want such behavior.

Hi @gunnarmorling ,

Is the move to Maven actually needed?

well it's not really needed. Mostly why I've done it is because I thought it'll be nicer to have it in maven and simpler to manage dependencies. Plus I did want to try to migrate a project from ant to maven :) I think that I've migrated everything what I've found in that ant build to maven (for the audit file that you've mentioned I've used xml-maven-plugin (https://github.com/marko-bekhta/beanvalidation-spec/blob/277a6e4b1b3f5f7c9d6b2eaffa3a8c986ee43ffb/documentation/pom.xml#L215).

It'd be kinda nice to have the extension written in Java
answer to this one is in those inline comments :)

The rendered docs seem to have some character encoding issue
Hmm... that's not good. I'll check why is that so. Most likely I've not configured the asciidoctor plugin correctly

Having the extension in a shared repo would be great
if that's the place for it - I can prepare a PR with everything needed.

Hey @marko-bekhta, where are we with this one. Are you still planning to work on this?

@marko-bekhta
I took a look at your work.
Here are a few remarks:

please keep the ant file. It's definitely more appropriate for what we have to do with the spec. Having the list of tasks in the IDE is handy and the Maven lifecycle does not really apply to what we want to do here. You should only have to add a Java file to the existing Maven project for extensions and the lifecycle of it is already managed so it shouldn't be an issue for you.
as Gunnar, I would prefer to stick to Java if possible. That being said, I saw the issues you mentioned and here are (I hope) a couple of answers:

the CustomRoleBlockProcessor is in fact only useful with the DocBook output. It's even counter productive with the HTML output as it generates some weird HTML. Asciidoctor already include the custom roles in the HTML output so no need to fiddle with that. It should solve your issue with it as your processor shouldn't be declared for the DocBook output as we don't need it there. I created https://github.com/beanvalidation/beanvalidation-spec/pull/157 : we'll wait for the next release before merging it but you can base your work on it.
about the reflection issues and such, the idea would be to work around it for now and open issues in the AsciidoctorJ project so it gets fixed in future releases. I'm more than willing to discuss that with you and help open the issues once I can have a look at what you did.

HTH

hi @gunnarmorling, @gsmet!

Are you still planning to work on this?

Yes, it's still on my todo list :)

Here are a few remarks: ...

I'll find that previous version in Java so we can see what can be done about it.
As for the slowness on this - I caught a cold,  and haven't done much for the past few days :)

@marko-bekhta

As for the slowness on this - I caught a cold, and haven't done much for the past few days :)

Sorry to hear that. Hope you feel well soon.

I'll find that previous version in Java so we can see what can be done about it.

OK cool. I think my PR should solve most of your issues with the Java implementation if you had already solved the reflection issue you mentioned. I must admit I have been slow on this too and I don't have an excuse of getting a cold :).
Take care!

Just reading your comment, @marko-bekhta. Get well soon.

I think my PR should...

@gsmet, which PR do you mean?
As the BV 2.0 spec is about to ramp down, it'd be great to have this one resolved. I'm a bit lost though where we stand with it.
In terms of where to put it, it'd be great if HV (and other projects) could benefit from it, too. We can have a separate repo under the hibernate org for this, using the org.hibernate.infra group id - akin to https://github.com/hibernate/hibernate-asciidoctor-theme. @gsmet can you create such repo? If not let me know and I'll do it.

@gunnarmorling see here: https://github.com/beanvalidation/beanvalidation-spec/pull/152#issuecomment-296180215
I think it's a good summary of where we are. Basically, my PR (https://github.com/beanvalidation/beanvalidation-spec/pull/157) should solve some of Marko's problems and I think he already worked around the other ones (but we'll probably have to open a few Asciidoctor issues to have something cleaner in the future).
I created https://github.com/hibernate/hibernate-asciidoctor-extensions . I'll initialize the Maven project and move the existing extensions there later today.

Ok, cool. Thanks!

Hey @marko-bekhta, so the new repo is in place and the extensions have been deployed to the Maven repository server already. I.e. you could start and base your work on top of this, by moving your extension to that other repo and use it in here (similar to how the other two extensions are used). In the next step we can do the same for HV. Thanks a lot to you and @gsmet for laying all this ground-work!

@marko-bekhta I pushed the existing code to https://github.com/hibernate/hibernate-asciidoctor-extensions and the ant file is now using this project.
So basically, you now need to clone the extensions project, mvn clean install them and update the version used in the build.xml file to the snapshot version to use your own version (it will automatically get it from your .m2).
Ping me if you have any issue with it.
HTH

Hi @gsmet , @gunnarmorling !

Closing, superseded by:

https://github.com/hibernate/hibernate-asciidoctor-extensions/pull/2
https://github.com/beanvalidation/beanvalidation-spec/pull/168


Update cached models and benchmarks

What does this PR do?
This modifies the cache population workflow to use the files corresponding to new models.
This also updates the benchmark in the documentation.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

I have made a small modification in the export code to always set fuse_qkv to True. This ruined my cached test models, so I had to reupload them with that change. I have some errors on docker tests that I don't understand. Let's wait for this new CI run ...


[WIP] Companion Jupyter notebook for ML Classification Analytics

I second Michael's comment on explaining why you've chosen to train on only 10% of the data.
Apart from that it looks good


Wrong property name in python sample code 02-set-properties.py

Hello Expert

Problem: when I run the example code of 02-set-properties.py, I got following error message:

Expposure Auto has value: False
Traceback (most recent call last):
File "/home/my_name/workspace/camera/python/02-set-properties.py", line 100, in
Gain Auto has value: False
sys.exit(main())
File "/home/my_name/workspace/camera/python/02-set-properties.py", line 84, in main
print_properties(camera)
File "/home/my_name/workspace/camera/python/02-set-properties.py", line 60, in print_properties
category, group) = camera.get_tcam_property("Exposure")
TypeError: unknown type (null)
(02-set-properties.py:4478): GStreamer-CRITICAL **:
Trying to dispose element tcambin0, but it is in READY instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
I change following two lines, seems it is OK:
Line 60
From:category, group) = camera.get_tcam_property("Exposure")
To: category, group) = camera.get_tcam_property("Exposure Time (us)")
same for Line 91.
I guess the sample code use the wrong name of Property of "Exposure Time (us)"
I am using:

Latest master branch of TheImagingSource/tiscamera
Ubuntu 16.04 LTS
Python3.6
CAMARA: DFK 33UX264

PS： Line 41， there is a typo, "Expposure" should be "Exposure"
Best Regards
MA Yuchu@zhmt

Hello
You are right. The different Exposure names are created by supporting GigE Camera as well as USB cameras. Therefore, you have the "Exposure Time (us)". However, what is worse, is the different interfaces. The Gige cameras use "enum" like "on" and "off", while the USB cameras use 0 and 1 for turning automatics on and off. I hope, this will be unified in future.
Stefan


Bug on multiple job arguments

Hi,
I'd like to pass multiple arguments to Rundeck. The field comment of Job arguments indicates Argument string to pass to the job, of the form: 'key:value&key:value'.
If I pass more than one argument and use this syntax, I get this error :
Could not update alert notification
Updating alert notification 'XXXXXXXXXXXXXXX' failed with status: Job arguments should not contain /,?,&

& seems to be a problem.
My Graylog version is :  3.0.2
Could you help me please ?

I just tested with Graylog 3.3.7+924e45c and have the same problem


Full NumPy style indexing

NumPy only really has one kind of indexing (which I previously misunderstood), though I'm pretty sure they have some kind of optimization going on for simple indexes. This is how it works:
First, the index (single object) is interpreted as a tuple:

If the index is a tuple, it is used as a list of index elements (also the case for returns of nonzero)
Otherwise, it is used as a single index element (even if it is a list, only tuples count as multiple indexers)

Then, the indexers can be
def process_index_element(array, index_element, from_dimension):
    pass

forward_dimension = 0

indexer_iter = index_elements.iter
for indexer in indexer_iter:
    if index_elements[forward_dimension] == ellipsis:
        backwards_dimension = array.ndim
        for indexer in indexer_iter:
            if index_elements[forward_dimension] == ellipsis:
                 raise
            array = process_index_element(array, index_element, backwards_dimension)

        return array

    array = process_index_element(array, index_element, forward_dimension)

return array

Elements act as such:

: leaves the dimension untouched
None inserts a new size 1 dimension
ranges change the size of the current dimension

(deep) lists of ranges produce as many new dimensions as the array is deep (i.e. inserted shape is index_list.shape)

single integers consume a dimension (indexing into it at from_dimension)

(deep) lists of integers consume a dimension, but produce as many new dimensions as the array is deep. (i.e. inserted shape is index_list.shape)

single booleans add a dimension, size 1 if true and size 0 if false

(deep) lists of booleans add a dimension, but consume as many new dimensions as the array is deep. Each dimension in the index element must be the same shape as the dimension at from_dimension + dimension

As seen above, an ellipsis reverses the traversal process (and if dimensions are consumed, the current position automatically moves leftwards to match).
All in all, since indexes are rarely more than 2 or 3, this iterative process of single-index is probably (!) fast enough for most use-cases. An optimization could be applied by first checking if one of the xtensor accelerated indexers can be created from the array:

empty: no-slice (i.e. use original array)
non-array only: produce and use xstrided_slice_vector
single boolean array: use as xt::masked_view
only depth 1 integer arrays: use as xt::index_view

The main problem will be updates: While non-array slices produce views, any array slices produce copies. For the first version, we can simply disallow non-accelerated list accesses (since they're rare), but we'll have to figure out that problem at some point.

Also, we have a problem because unlike NumPy, we cannot use tuples to identify nonzero returns. If we want these to work as naturally as in NumPy, we may have to do some black magic somewhere :(


Two values

Is it possible that slider have two values changing ?
One is under and changing while you slide, to have another one above and changing months (January, February ,,) or some other stuff ( days, years, kg ...) while you slide?
thx

From description it seems possible.
Take a look at readme > Usage, onSlide parameter. You can place any code there and manipulate DOM in any way you want (change textContent, position, etc..).


Triple clicking on board quickly causes an error

Uncaught TypeError: Cannot read property 'position' of null

Sairaan nopee.


Make VideoFFPy work with RTSP streams.

Maintainer merge checklist

[x] Title is descriptive/clear for inclusion in release notes.
[x] Applied a Component: xxx label.
[ ] Applied the api-deprecation or api-break label.
[ ] Applied the release-highlight label to be highlighted in release notes.
[ ] Added to the milestone version it was merged into.
[ ] Unittests are included in PR.
[ ] Properly documented, including versionadded, versionchanged as needed.

Recently i'm working on displaying RTSP streams in kivy. The ffpyplayer implementation actually supports streams, but causes some problems in the VideoFFPy implementation.
This PR is a proof of concept. I'd really like to solve video streaming in kivy core, any feedback whether i'm on the right track is appreciated @tito @matham @misl6 @tshirtman

Any chance this goes into 2.2.0?


login and signup page UI improvement

Add design in ui for login and signup page

Check this PR for more info.


Github for Windows --> Github Desktop

Also some other very, very minor tweaks :mag:.

Thanks for fixing these up :+1:


Add endpoint to retrieve aggregated environment metrics from the server (#5387)

Pull request opened by the merge tool on behalf of #5387

Merged in 0d2e4d153842167d834a87b951e79db7d3de1e33


[FEATURE] [TOC] Auto wrap exceesively long heading

Target
Wide-screen TOC (The one displayed at top-right)
Current behavior
If the heading is too long, the TOC will overflow the x-axis; creating a horizontal scrollbar; making the heading unreadable unless you use the scrollbar.
Screenshot

Describe the feature you want
It would be better if the TOC automatically wrap the exceesive characters into a new line. That way, we don't have to use horizontal scrollbar to read the TOC.

I wonder why that is: Its actually working in the original LoveIt theme ...

@f-s I made changes to the design, which unfortunately affected the js script for calculating this mechanism. Until the hands reached the point of correction.

Is there a way to do this without JS, like using this CSS only:
https://css-tricks.com/a-complete-guide-to-calc-in-css/
I suggest this because, the page repaints - during page load - to do the TOC size adjustment, which not very good design 😞

I will study how free time will appear, or even better if you can do PR on this topic :)
I don't really understand what "not very good design" means, quite a tepical solution for this problem

@f-s @farhan443

you can check if the problem is observed in the dev branch, apparently not

Since I don't have a problem, I close this issue. If the problem is still relevant, please let me know.


POST JSON input

What steps will reproduce the problem?

Add component config as in quick-start.md

    'request' => [
        'parsers' => [
            'application/json' => 'yii\web\JsonParser',
        ]
    ]

Create REST UserController as in quick-start.md

sending a POST request with the user data in JSON format:

curl -X POST
https://api-dev.powerkernel.com/v1/user
-H 'accept: application/json'
-H 'cache-control: no-cache'
-H 'content-type: application/json'
-H 'postman-token: 69f05323-5c9e-88bc-140c-8eac38d62fb8'
-d '{"name": "My Name", "email"<EMAIL_ADDRESS>
What's expected?
HTTP/1.1 201 Created
....
What do you get instead?
{
"name": "Unsupported Media Type",
"message": "",
"code": 0,
"status": 415,
"type": "yii\web\UnsupportedMediaTypeHttpException"
}
Additional info

Q
A

Yii version
2.1-dev

Yii REST version
@dev

PHP version
7.1

Operating system
Ubuntu 16 LTS

Works currently with https://github.com/yiisoft/request-body-parser


No way to send version Release Notes to Google Play using plugin

Hi! I try to send the release notes to apps using python plugin, but the api return that error:
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/androidpublisher/v3/applications/delivery.amo.meats/edits/11543273993561952096/tracks/production?alt=json returned "Unknown field name: releaseNotes">

In documentation, that field existis (https://developers.google.com/android-publisher/tracks#specifying_release_notes) but doesn't work.
Environment details

OS: MacOS 10.14.4 (18E226)
Python version: 3.7.2
pip version: 19.0.2
google-api-python-client version: 1.7.8

Steps to reproduce
My track edit code:
release_file = open('releasenotes.txt')
release_notes = release_file.read()
release_file.close()

track_response = service.edits().tracks().update(
    editId=edit_id,
    track=TRACK,
    packageName=package_name,
    body={
        "releases": [{
            "name": "2.2.2", # Manually inserted. In real word one variable insert that info
            "versionCodes": ["202021"], # Manually inserted. In real word one variable insert that info
             "status": "completed",
             "releaseNotes": [
                  {"language": "pt-BR", "text": release_notes}
             ]
        }]
    }).execute()

Any idea why is my problem?
Thanks

I have some problem

I found my mistake.
To send release notes, i need change service = build('androidpublisher', 'v2', http=http) to service = build('androidpublisher', 'v3', http=http) and the send command to it:
edit_request = service.edits().insert(body={}, packageName=package_name)
    result = edit_request.execute()
    edit_id = result['id']

    apk_response = service.edits().apks().upload(
        editId=edit_id,
        packageName=package_name,
        media_body=apk_file).execute()

    version_code = str(apk_response['versionCode'])
    print ('Version code %s has been uploaded' % version_code)
    track_response = service.edits().tracks().update(
        editId=edit_id,
        track=TRACK,
        packageName=package_name,
        body={u'releases': [{
            u'name': u'2.2.2',
            u'versionCodes': [version_code],
            u'releaseNotes': [
                {u'language': u'pt-BR', u'text': release_notes},
            ],
            u'status': u'completed',
        }]}).execute()

    print ('Track %s is set for version code(s) %s' % (
        track_response['track'], version_code))

    commit_request = service.edits().commit(
        editId=edit_id, packageName=package_name).execute()

    print ('Edit "%s" has been committed' % (commit_request['id']))

Now working as expected!
Thanks!


DBZ-5119 Add heartbeat.action.query support for Oracle

https://issues.redhat.com/browse/DBZ-5119

[x] Provide commit explicitly with Oracle implementation of heartbeat.action.query (backport-able to 1.9)
[ ] Pull implementation up to core in a separate commit (applicable only to main)

@roldanbob could you take a swing at the documentation changes.  These changes will get backported to 1.9 so I want to make sure they're solid for the downstream GA release asap.

Applied your edits again @roldanbob, if you can give it one last pass, I'd appreciate it.  Once we have the documentation changes solid I'll squash what we have to make it easier to backport what needs to go to 1.9 vs stay on main.

Excellent I'll make these final changes and squash what I have so I can add the core roll-up changes.

@Naros Applied, thanks!


Location metadata not saved when taking picture from camera

There is no Location Exif data when you take a picture with the camera

Please update to 4.1.0:
pickerController.containsGPSInMetadata = true


Do not alter status_codes docstring if it is None

Following https://github.com/requests/requests/pull/4394/files, with PYTHONOPTIMIZE=2, the current code breaks with TypeError due to None as the docstring. This broke dask tests https://github.com/dask/dask/pull/3594 .

Codecov Report

Merging #4683 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4683   +/-   ##
=======================================
  Coverage   66.79%   66.79%
=======================================
  Files          15       15
  Lines        1563     1563
=======================================
  Hits         1044     1044
  Misses        519      519

Impacted Files
Coverage Δ

requests/status_codes.py
0% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Continue work DPC++ to SYCL changes in DPC++FPGA directories

final batch of changes in this section.
Changing just DPC++ to SYCL where appropriate and updating branding to match legal requirements. No other restructuring except where absolutely essentials.
Existing Sample Changes
Description
Finished updating all README.md files in \DPC++FPGA\Tutorials\GettingStarted\ and \DPC++FPGA\Tutorials\Tools\ directories. Fixed links and multiple formatting issues in many files (some major).
Updated the following README.md files:

\oneAPI-samples\DirectProgramming\DPC++FPGA\Tutorials\GettingStarted\fast_recompile\README.md
\oneAPI-samples\DirectProgramming\DPC++FPGA\Tutorials\GettingStarted\fpga_compile\README.md
\oneAPI-samples\DirectProgramming\DPC++FPGA\Tutorials\Tools\dynamic_profiler\README.md
\oneAPI-samples\DirectProgramming\DPC++FPGA\Tutorials\Tools\system_profiling\README.md

Fixes Issue#
External Dependencies
N/A
Type of change

[x] Documentation

How Has This Been Tested?

[x] VSCode

@ishaghosh27 - please review
Adding @jimmytwei  for notifications.


Fix and adjustment HTML doc generation

This PR refactors the HTML doc generation which includes:

Formatting issue with Markdown. See screenshots.
Add Changelog to module info page.
Badges and more badges. See screenshot.

Thanks! It looks nicer and your screenshots made it really easy to see.


make coveralls badge work

re #29, the one on my branch started working when I put the target on a new line, how the travis one was.

Confirmed for working.


Capture bitmap from area of screen

It may be useful to be able to generate new bitmaps from an area of screen.  This may aid in some graphical effects.
The underlying vdp-gl does not support this directly, however it can be achieved by fetching individual pixels using getPixel

This was functionality added to the Acorn GXR ROM:

7.7 Defining sprites from the screen
As well as using the editor to design a sprite it is also possible to ‘pick up’ any rectangular area of the screen and make this into a sprite. To do this you should mark the rectangle by moving to its bottom left-hand corner and then its top right-hand corner. Then use the command
*SGET n
or alternatively
VDU 23,27,1,n,0,0,0,0,0,0
Either of these will define sprite n to contain whatever is currently in the
rectangle. Then this sprite may be used in exactly the same way as any other.

We're already using VDU 23,27,1 in the Agon VDP for another purpose, but perhaps the same sort of approach could be taken?

lol - yeah VDU 23,27 is being used for sprites, but command 1 is to upload an RGBA bitmap.
it feels like a misstep to follow the Acorn VDU system, and even to make use of the same initial VDU sequence for sprites but to then make the implementation incompatible.
to be honest, I'd kinda half forgotten about the existence of the GXR.  back in the day I only had a passing awareness of it, and I suspect the number of times I encountered it in the wild I could count on one hand.  :grin:  having said that, I did program for the Archimedes a load and the graphics system in that included most, if not all, of the GXR functionality - altho I tended to use higher-level BASIC ops, and mostly wrote desktop apps...  if I ever did want to use sprite functionality on RISC OS, I'd use the OS_SpriteOp SYS call...
that incompatibility really bugs me :grin:

Hmm, if compatibility with the MOS and RISC OS in terms of VDU commands is desirable, perhaps we could extend the "legacy modes" VDU option to provide backwards compatibility, not just with modes (as currently implemented), but also sprites (and anything else that is currently implemented, but improving would be a breaking change).
This would effectively make the VDU 23,0,193 setting an "Agon VDP 1.03 compatible" mode?
Not sure how much effort that is and whether it would be worth it.

I'm not sure how desirable compatibility is either :grin:
my perspective on this is skewed tho.  I'm coming at this as a former Acorn Electron, BBC Micro, and Archimedes programmer, so every incompatibility I see as undesirable.  every incompatibility is a potential source of confusion.
taking more of a newbie perspective I'm not sure I'd be quite so bothered that this new computer doesn't work the same as a 30-40 year old machine.  the fact that code out there written for the old machines doesn't quite work can maybe be addressed with notes about porting such old code.
it's still potential friction tho.  examples of code that was originally written for the old Acorn machines will almost all need adjustment before they'll work.
a more completely friction-free experience would be to be able to skip that adjustment step.  that would mean changing the mode definitions for (at least) modes 0-6 to match up with the modes on the Beeb, and implementing various graphics things that aren't there just yet, and adjusting the default sound system setup slightly.
this is essentially what the Archimedes did.  virtually all the old beeb stuff is there, and BASIC code tended to just work (the only exception that comes to mind is a lack of ENVELOPE support).
I think where I'm going with this is that we could change the Console8 VDP to, by default, be more Acorn compatible.  We could use VDU 23,0,193,1 to switch to "Quark 1.03 compatibility mode", and use VDU 23,0,193,2 to be "Quark 1.04+ compatibility mode"
a related note to this is storable configuration.  the BBC Master and Archie supported *configure to set configuration values in battery-backed CMOS RAM.  I believe that both the ESP32 and the ez80 have some flash storage that could be used for this purpose.  being able to configure your Agon to start up in a particular compatibility mode could be useful.

A couple of thoughts following your last comment:
The VDU compatibility with Acorn would obviously cover the BBC MOS machines and Archimedes, but also presumably the current RISC OS 5 implementation running on the Pi. In that context, compatibility wouldn't be exclusively for 30-40 year old machines, but would also be compatibility with a current, actively developed OS.
Again, not sure if this is actually something people would care about, but it's an angle I'd not previously considered: That the Agon platform isn't a million miles away from the RISC OS platform (especially if the BASIC V additions get merged in at some point).
Regarding modes 0-6, it was something I looked at for the reasons you specify. Unfortunately, the 256 line modes (i.e., all of them basically) don't work on modern monitors. One option would have been to scan double to 512 lines, but this wasn't in the VGA specification, so would have added potentially compatibility issues. There had been multiple reports of problems running the legacy mode 2 - 320x200 at 75Hz - (the main issue here being the refresh rate), so I tried to select modes that were very "safe" in fitting into the VGA specification.
Adding support for *configure (and presumably *status to view what's set) would be a nice addition!

Whilst I had noted here before that the current bitmap API makes use of the same VDU command sequence to upload a bitmap as Acorn had used to grab an area of screen, it is not actually true that this is incompatible.
Acorn's documentation says to use VDU 23, 27, 1, n, 0, 0, 0, 0, 0, 0.  The API we have implemented doesn't read/use that many bytes, does not include n as a parameter, and instead is in the form VDU 23, 27, 1, width; height; data...
We can support Acorn's version by simply looking for a height of zero
We can even support Acorn's version of specifying the sprite/bitmap number as part of the command, as that is sent in the lower 8-bits of where the width value would be.  Potentially we can even also support full buffer IDs - although that could be slightly confusing given how we have made the existing "select" command operate.

Hi,
Grabing the screen (to send it to a bitmap) can be usefull to make GUI menus, grabing areas behind a menu before, and drawing on top of it after. I don't know how to do something like this for now.

implemented in #103


MathExpression|pysssss 70: Return type mismatch between linked nodes: a, INT != INT,FLOAT,IMAGE,LATENT

Description
I encountered a type mismatch error while using the custom script MathExpression|pysssss in ComfyUI. The error arises when linking nodes, indicating a return type mismatch.

Steps to Reproduce

I created a MathExpression node.
Attempt to connect any node that outputs an INT type to any of the inputs (a, b, c) of the MathExpression node.
Upon execution, the following error is thrown:
Return type mismatch between linked nodes: a, INT != INT,FLOAT,IMAGE,LATENT

Expected Behavior
I expect to be able to connect an INT type node to the MathExpression node without encountering a type mismatch error, as INT is a valid input type according to the node's documentation.
Actual Behavior
A type mismatch error occurs, preventing the workflow from executing properly.
Environment

ComfyUI version: [f1c23016]
Operating System: [win10]
Python version: [3.10.11]

Additional Context

[Optional] Attach screenshots or log files if applicable.
[Optional] If possible, provide a minimal reproducible example that demonstrates the issue.

Please provide any possible solutions or suggestions. Thank you.

Can you please check you're on the latest commit for this repo, as this should be fixed:
https://github.com/pythongosssss/ComfyUI-Custom-Scripts/commit/a19d0cc4adc4f746862a3f0051dca4931d0e40da

the same problem

Updating the latest version still has this issue, when using Empty Latent Image

the sample problem!


[Feature Request] Fake duplex sorting feature

When using a non duplex ADF Scanner, it is only possible to scan duplex documents by manually scan every page into one document and turn every page after every scan.
The desired function would be to scan all front pages and then all back pages in the same document. Then this document should automatically be sorted that the pages are sorted correctly.
Example:
5 pages (10 sides, duplex)

Step scan 5 front pages
Step scan 5 back pages
Now Sorting is 1,3,5,7,9,10,8,6,4,2
Step Fake duplex sorting to Sort pages 1,2,3,4,5,6,7,8,9,10

Just finished making this, there will be dropdown option for custom modes in next release with pre-selected organisation

Hi,
Thanks for the quick integration. One question is it now implemented as in the screenshot? Because when you scan with a non duplex scanner you have first all the fronts and then all the backs, but the backs are in reversed order since the papers have been turned around.
so the sorting should not be:
1,n/2+1,2,…
Because then the sorting from my initial post would be: 1,10,3,8,…
It should rather be like in my second post:
1,n,2,n-1,…
I hope it is clear what I meant.
And thanks again for the great work!

Just made correction i see what you meant now, thanks for re-explaining

This should be live with alpha tag now will release later in week


Adding ApplicationUser as Navigation Property to entities

Discussed in https://github.com/fullstackhero/dotnet-webapi-boilerplate/discussions/127

Originally posted by pashaie November  2, 2021
Hi,
In Onion Architecture we are supposed to put entities in Domain layer. But ApplicationUser is on Infrastructure layer and that prevents us from adding ApplicationUser as Navigation Property to entities.  Is there any best practice for doing it?

Hi,
ApplicationUser inherits from IdentityUser, which again has a dependency on Microsoft.AspNetCore.Identity package. If we were to add the ApplicationUser to Domain / Core Projects, this would add an additional dependency to the Core Layer which is not desirable. Here, ApplicationUser cannot be treated as an entity.
Instead, we have an adapted class / dto named as UserDetailsDto.
ApplicationUser is more of a secured model and should not be used as Navigation Property.

Hi,
ApplicationUser inherits from IdentityUser, which again has a dependency on Microsoft.AspNetCore.Identity package. If we were to add the ApplicationUser to Domain / Core Projects, this would add an additional dependency to the Core Layer which is not desirable. Here, ApplicationUser cannot be treated as an entity.
Instead, we have an adapted class / dto named as UserDetailsDto.
ApplicationUser is more of a secured model and should not be used as Navigation Property.

Hi Mukesh, so there is no way to add a navigation property to entities, to get user data in a single database call? The UserDetails model can be a new Domain entity? How can we connect this entity to data saved in the AspNetUser table?

ApplicationUser

Hi @iammukeshm This is very long back thread and still valid for new learners who are dependent on your boilerplate.  This and a similar thread with instructions are of no help for newbies.
An example would be really helpful to follow same structure. Thanks.


[LineGraph] Be able to remove dashed line style from legends

If you render too many data for graph, you're unable to see legends properly and you are forced to set withInnerLines={false}.

AbstractChart should have new attributes for these characteristics:
be able to render only X / Y graph lines
be able to change strokeDasharray

I checked the code, I will be able to support my ticket with PR in short period of time @Hermanya

I'm looking forward to your PR


help me

please delete http://ourjs.com/detail/5552a251329934463f00000b  comment
#1 姬兄机 57分钟前
thanks， my comment is bad。

DONE.
Date: Thu, 21 May 2015 19:55:41 -0700
From<EMAIL_ADDRESS>To<EMAIL_ADDRESS>Subject: [ourjs] help me (#2)
please delete http://ourjs.com/detail/5552a251329934463f00000b  comment
#1 姬兄机 57分钟前
thanks， my comment is bad。
―
Reply to this email directly or view it on GitHub.


fix: correct text alignment

Summary

This PR fixes/implements the following bugs/features

[X] #2107

Explain the motivation for making this change. What existing problem does the pull request solve?
Text in div elements was not properly aligned.

Test plan (required)
This has been tested by several users in #2107 and suggested directly by @niaodan2b and @metawebmarketing.
I'm merely offering a PR to integrate the fix.
Code formatting
Please make sure that code adheres to the project code formatting. Running npm run format will automatically format your code correctly.
Closing issues

Fixes #2107

Hey I don't believe this is the correct change. I think calculating the y position should be done with text.bounds.top + text.bounds.height - baseline
y = top of the text + the height of the text - the baseline for the font

Thanks, I made the change and did a manual test on a text box.

Oh I noticed you created #2938 , should I close this PR @haztheo ?

I actually checked again and the previous setting worked better on mobile. Otherwise text would be at the top of my div.

all text is still displacement in the new version of 1.4.1

Yes all texts are shifted vertically compared to original dom element in version 1.4.1

1.4.1新版本中所有文字依然是位移

+1

not working on links

Should be closed for #2938


[docs] Add reference to automatic buildifier fix

Also, stop telling people to ask questions on StackOverflow. I don't think anyone of us has the cycles to monitor it.

@laurentlb @lberki Can you review?

@laurentlb Thanks! Can you also merge this? I don't have write access to this repo

I also don't have write access.


"BUZIAȘ" is lised in the drop-down menu

Description:
"Bălăceana" is listed in the drop-down menu alongside its corresponding county according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "BUZIAȘ.

Expected results
The location is listed in the drop-down menu as "Oraș  BUZIAȘ , TIMIȘ.


Chunks

Enabling chunking of input dna fasta when "sequence_data_chunck"  is enabled (>= 50_000)

What is the rational for this: is it to handle smaller DNA sequences in the database, for better performance?
Should this be applied to any new genome loaded?

@MatBarba it's to allow us to load 1GB long contings into mysql using our current API.
This approach was used previously to speed things a bit on the web. But there's no need to so at the moment. They've fixed something on our side. So it's just to deal with our inability to load long contigs then to speed up anything

Another note (not blocking): the script file is in the folder /scripts, but it's part of a pipeline, so not a script per se (=that should be run separately).
We'll need to better organize the files for e.g. when we move to nextflow.


[Feature] Enable response type selection for oauth2 implicit mode

This PR adds support for OpenID Connect by allowing the configuration of the OAuth 2 (implicit grant) response type. In the advanced options a new dropdown was added requesting the user to select whether he wants to receive the id_token, the access_token or both. By default the access_token is chosen (oauth 2 default). However, the user can also select to receive only the id_token or both the id_token and the access_token to be OpenID Connect compliant.
This PR closes an already closed issue (#501). The issue was previously closed due to inactivity but the solution is not yet available. This PR should reopen the issue for further discussions and, hopefully, help improving insomnia with this new feature.

Hi @gschier, thanks for the feedback! I made the changes as requested.


assets.json file structure

the steps in the readme and the demo app always referenced are two different stories entirely. i find the demo app to be something else (an overkill) a demo should at least show how to run a CRA generated app using react-app including just the app.browser.js, app.node.js and the config-overides.js . the app.node.js file example in the readme, makes reference to an asset.json file , no detail is provided about that file. the demo should at least show that

the below from a closed issue , has better info than the read me
Just to clarify, what's the difference between react-app and react-app-tools packages:

react-app - CLI tool and templates for scaffolding a new React project (install globally)
react-app-tools - a bunch of build/run configurations (Webpack, PostCSS, Browsersync, HMR etc.)
The react-app-tools is going to be updated more often. If there is a minor version difference such as react-app-tools v0.2.0 vs v0.2.1, it means that there are no any breaking changes or major improvements. All the major version changes are going to be documented, so you could get an idea by looking at the changelog what's actually changed, what benefits you get and whether you need to change any of your React components to comply with the changes.

It's sort of like JSX code that you can use for the most part as it is for the last 2 years, but the underlying React engine that runs your app has undergone lots of great improvements. You just pull the new React version and automatically gain all the benefits it brings to the table without refactoring your JSX code much. Same with react-app-tools, over time it will bring more cool stuff into your project, which hopefully won't force you to refactor any of the source code of your React app.

Pro tip: you can use npm-check-updates npm module for checking if all the dependencies in your project are up to date:

$ npm install -g npm-check-updates@latest
$ ncu           # shows which dependencies are outdated
$ ncu -a        # updates all the dependencies in package.json to the latest versions
$ npm install   # installs outdated/missing npm packages based on package.json

The ./assets.json is an auto-generated file (by Webpack), which looks something like this:
{
  main: [
    "./static/js/main.123.js",
    "./static/js/home.456.js"
  ],
  news: [
    "./static/js/news.789.js"
  ]
}

It's supposed to be used to reference JavaScript bundles on the page. Take a look at this online demo: https://firebase.reactstarter.com - right-click > view source. You will see the list of JavaScript chunks, now open https://firebase.reactstarter.com/news -> right-click > view source > you will see a different set of chunks. This way you can optimize the initial page load time.


We need a standard subset of tests for minimal testing when ScholarSphere is released

What are the minimal test we should do before we call a release a success?
My minimal testing currently includes
Create Work
Create Collection
Add work to collection
Delete Work
Delete Collection
What else should we be doing?

@awead @mtribone Your thoughts?

That's pretty good for me. You could add downloading the file, checking it's index view, and file set show view.


use []byte and not string for base64 json key.

Related to https://github.com/cloudevents/sdk-go/issues/195
Leverage the native base64 encoding that the golang json lib uses.

LGTM


Kafka V1 Support

@bblommers I am having some issue with some of the endpoints. On line 147 of moto/kafka/responses.py, it is correctly printing (and returning) the response but the response isn't correct in the tests. I think it's a URL issues but not sure.

Hi @jamarcelin! It looks like some of the response-keys simply need to be lowercased. For example:
diff --git a/moto/kafka/models.py b/moto/kafka/models.py
index 5cd36741d..e2973d5f8 100644
--- a/moto/kafka/models.py
+++ b/moto/kafka/models.py
@@ -231,11 +231,11 @@ class KafkaBackend(BaseBackend):
     ):
         cluster_info_list = [
             {
-                "ClusterArn": cluster.arn,
-                "ClusterName": cluster.cluster_name,
-                "ClusterType": cluster.cluster_type,
-                "State": cluster.state,
-                "CreationTime": cluster.creation_time,
+                "clusterArn": cluster.arn,
+                "clusterName": cluster.cluster_name,
+                "clusterType": cluster.cluster_type,
+                "state": cluster.state,
+                "creationTime": cluster.creation_time,
             }
             for cluster in self.clusters.values()
         ]

That change ensures that the list_clusters_v2()-method call succeeds in the test_create_cluster_v2(). I imagine that the other failures/tests have similar problems/solutions, but I haven't tested that.
This is the first thing I tried, and it happened to work - just because I have run into this problem in the past. The botocore spec is always good place to confirm things like this though, as you can see that they lowercase all locationName's:
https://github.com/boto/botocore/blob/cacd0e9fdba71d1f976069a072576ad74b888bea/botocore/data/kafka/2018-11-14/service-2.json#L2429

@bblommers Gotcha, thanks for the help! I fixed the tests and made some changes. The linter is having an issue with broker_node_group_info from FakeKafkaCluster. Any idea how to resolve this?

Hi @jamarcelin! You can run ruff format moto/kafka to fix that. I've pushed a fix for now + some typing fixes - I'll leave the test failures to you :slightly_smiling_face:

@bblommers Test should be fixed now, just waiting on check to complete. Thanks again!

@bblommers Hey, sorry to keep pinging, it seems the tests are failing in server mode? Is this caused by an issue with the urls?

@jamarcelin I pushed a commit to fix the urls.  They have ARNs in them, which contain forward slashes.

@bblommers Awesome! Thanks for the help! This looks good to merge to me. Also, is there a specific cadence for releases? Or is there anyway to trigger a release?

Also, is there a specific cadence for releases? Or is there anyway to trigger a release?

I try to do them every two weeks - the next one should come this weekend. :slightly_smiling_face:


Update ammonite-compiler, ammonite-repl, ... to 3.0.0-M2-1-3763a1d4

About this PR
📦 Updates

com.lihaoyi:ammonite-compiler
com.lihaoyi:ammonite-repl
com.lihaoyi:ammonite-repl-api

from 3.0.0-M0-58-9ccdff7c to 3.0.0-M2-1-3763a1d4
Usage
✅ Please merge!
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

⚙ Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.lihaoyi" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.lihaoyi" }
}]

labels: library-update, early-semver-pre-release, semver-spec-pre-release, commit-count:1

Superseded by #1358.


Configuration settings are incorrectly read for out of (single folder) workspace files (workspace.getConfiguration)

VSCode Version: Code 1.19.3 (7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba, 2018-01-25T10:36:34.867Z)
OS Version: Windows_NT x64 10.0.16299

Steps to Reproduce:

Open single folder workspace, which has a .vscode folder with workspace settings different than user settings.
Open another document which resides in a folder outside of the workspace.

When reading configuration using workspace.getConfiguration passing document's uri as a second parameter:

For a file(s) from inside of workspace workspace settings are returned.
For a file from outside of workspace also workspace settings are returned.

Contrary to the above described, when repeating the same in a MULTI ROOT workspace (of which each of the folders contains workspace  settings in .vscode\settings.json) for each of the files from one of the workspace folders respectable settings are returned and USER settings are returned for a file from outside of (any of) the workspace folders.
I suppose in the first situation USER settings should be returned for the document from outside of the workspace folder.

@bartosz-antosik I see your point. We return workspace settings for a file outside workspace. In first (single folder workspace) case, folder settings are workspace settings (because folder is workspace) and in multi folder case, there are separate workspace settings.
I think this is consistent currently and if we read user settings for such files.. it has to be same for other workspaces too. Doing this, I afraid, might break the existing users.
Would like to know your reasoning behind falling back to user settings for such files?

@sandy081 Thanks for the answer.
The main practical trouble is what happens when the configuration is updated.
I have a simple GUI in my Spell Right extension to update settings (a language selector in the status bar). The scope parameter of the update using .update method of the WorkspaceConfiguration namespace is decided on the document's uri. For a document from INSIDE of the workspace uri returns a workspace folder which is then used as an indicator that ConfigurationTarget.WorkspaceFolder should be targeted for the update. Doing the same fo a document from OUTSIDE of the workspace yields no workspace folder which says that ConfigurationTarget.Global should be used so User configuration is updated.
So when I change the language for such a document from OUTSIDE of single folder workspace USER configuration is updated and WORKSPACE configuration is read. In multi root workspace correctly (according to my logic) both User configuration is updated and read for such a document.
USE CASE: It is just very inconvenient when you want to edit some file from aside, not necessarily belonging to any workspace, e.g. laying on the desktop: You get different settings when you right click on it and open it WHILE there is already VSCode opened working on some workspace, and when there is no VSCode open and it starts just to edit this file.
This lack of symmetry (between single/multi root workspaces) seemed so obvious to me... :-)
I would long ago do a workaround for such a case but it requires something not very wise which is reading the configuration on my own, because getConfiguration method of the workspace namespace acts on it's own and does not let you decide which scope to read.

@bartosz-antosik Can you please provide the update calls you make for each case

Single folder workspace and belongs to workspace
Single folder workspace and does not belongs to workspace
Multi folder workspace and belongs to workspace
Multi folder workspace and does not belongs to workspace

@sandy081 With pleasure, but, could you please just tell me why, because updating configuration works fine, reading is the problem?

.update("language", ConfigurationTarget.WorkspaceFolder)
.update("language", ConfigurationTarget.Global)
.update("language", ConfigurationTarget.WorkspaceFolder)
.update("language", ConfigurationTarget.Global)

@bartosz-antosik I see.. you are explicitly writing into the specific targets in each case. So you update User configuration if file is outside workspace and Workspace folder configuration if file is inside workspace.
Read is consistent and is always read from Workspace for a file that is outside. In single folder case Workspace Configuration == Workspace Folder Configuration and in a Multi folder case Workspace Configuration has its own file. See documentation.
You can confirm it when you update the configuration to Workspace target in different workspaces. For eg., open two multi folder workspaces say A and B. Open a file that does not belong to A and B and update the configuration into Workspace (with different values)
.update("language", ConfigurationTarget.Workspace)
You will observe that value for each will be always read from its respective workspace configurations.
If I am not wrong, your request is to read configuration for outside workspace files from always User settings? If so, I am not sure if we can support that because this might break existing users who wish to have configuration read from workspace.
But we have a feature request to read configuration from the parent .vscode folder of the file that is outside given workspace.

After bit of thinking on this I agree that your choice (to read a workspace root configuration for out of workspace file) is better. Probably much more intuitive for users. I will follow this paradigm with my extension.
Thanks for the discussion.


Consentcookie option to persit on top domain

Description

Currently the ConsentCookie cookie is always persisted the the Domain value set with the current domain visited by the user. To support multisite consents we need to have the option to save the cookie on a higher domain level.
Expected Behavior

Actual Behavior

Because you can have  'unlimited' subdomain levels, we will only support the current domain and the top domain.
e.g.
for domain: www.test.example.org the cookie can be optionally persisted on domain level www.test.example.org or example.org
The default persistence level is: top domain unless configured else


[driver_entry] Generalize the ioctl codes into the types header so ea…

…ch OS can handle it appropriately.
Signed-off-by: Brendan Kerrigan<EMAIL_ADDRESS>

Closing, there's a more appropriate way of handling this.


Regression: numeral(1e-7).format() result is 'NaN' in 2.0.6, was '0' in 2.0.4

Try this in node.js:
const numeral = require('numeral');
numeral(1e-7).format();

In 2.0.4, the result was '0' (which seems to be correct). In 2.0.6, the result is 'NaN'.

Just ran into this as well.

+1: numeral(0.000000001).format() === "NaN"

I've submitted a PR but its failing due to connection issues w/ Saucelabs. Would appreciate any extra eyes on it.

Hi there!
any news on that?
i've encountered the same problem


Add soft default assigned monitor

Added the possibility to add a default assigned monitor to a workspace, as suggested in https://github.com/nikitabobko/AeroSpace/issues/752#issue-2687386754.
Default assigned monitor works similarly to force assigned monitor, though the move-workspace-to-monitor command will work in this case. The move-workspace-to-monitor reset command can be used to reset to the default monitor (defaults to main). Force assigned monitor will always have priority over default assigned monitor.

Close due to inactivity


News Aplication #28

Really nice work @StartCodeingWithSayam, well done! Just one change, the parent folder should be named "Android Development" instead of "Android", in which you will keep your news folder and other stuff. Then, your PR will be good to go.

Bro mereko folder name cange karana hai bs
On Wed, Dec 22, 2021, 7:28 PM Lovish Prabhakar @.***>
wrote:

Really nice work @StartCodeingWithSayam
https://github.com/StartCodeingWithSayam, well done! Just one change,
the parent folder should be named "Android Development" instead of
"Android", in which you will keep your news folder and other stuff. Then,
your PR will be good to go.
—
Reply to this email directly, view it on GitHub
https://github.com/cyberbuddy-io/open-source-contribution-for-beginners/pull/38#issuecomment-999596703,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWFBLU3LV6E2TFVJC4ZF63LUSHKRHANCNFSM5KSMUJTA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
<cyberbuddy-io/open-source-contribution-for-beginners/pull/38/c999596703@
github.com>

bro change kar liya hai


Always regenerate the file in case changes have been made.

My "oh, we only need to generate the module once per run" optimization was pretty stupid, since the terraform files stick around from a previous run, so changes made to a module will never get written until you clobber the data directory.

@wvanbergen @dalehamel @xthexder

lol :ship:

haha :shipit:


Allow Mongo.ObjectIDs in addition to random String IDs in Server-side method call

In the Sortable Meteor support here: https://github.com/RubaXa/Sortable/blob/master/meteor/methods-server.js#L24
Sortable is assuming in this check that Mongo _ids are Strings. However, while Mongo _ids may be strings, they can also be objects of type Mongo.ObjectID Meteor explicitly supports both types: http://docs.meteor.com/#/full/mongo_collection
So to properly handle both cases the id check line in the server-side method call should be:
 check(ids, [ Match.OneOf(String, Mongo.ObjectID) ]);

That is what this PR implements.

Dear all! Meteor is moved to the separate repository. If this issue is still actual, please create it there once again.
For your info: this project needs a maintainer.


Example for Required Parameters doesn't work

Creating a new repo with the two files in the example and then building the pipeline, the build does not fail.  The step that is supposed to fail when the parameter is not provided finishes successfully, and then the following msbuild step runs which does fail (because there is no code in the repository).
Required Parameters: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops#required-parameters
I have not found a way to fail a step using the magic vso variable syntax.  Is there some step missing from the example?  Even a pipeline with a single bash (or script, doesn't seem to matter) task that echos the vso message does not fail.

bash: |
if [ -z "$SOLUTION" ]; then
echo ##vso[task.complete result=Failed;]Missing template parameter "solution"
fi
env:
SOLUTION: ${{ parameters.solution }}
displayName: Check for required parameters

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

ID: 6724abea-bbdc-bf66-ed5e-3214fa6c3e66
Version Independent ID: 4f8dab21-3f0e-da32-cc0e-1d85c13c0065
Content: Job and step templates - Azure Pipelines
Content Source: docs/pipelines/process/templates.md
Product: devops
GitHub Login: @vtbassmatt
Microsoft Alias: alewis

I think this is covered by this issue https://github.com/MicrosoftDocs/vsts-docs/issues/3310 and this PR https://github.com/MicrosoftDocs/vsts-docs/pull/3311

@gregpakes yup, with quotes the step now fails.  However, and perhaps this is a separate issue, the failure message doesn't appear anywhere.  does it for you?
in the example of echo "##vso[task.complete result=Failed;]Missing template parameter" I would expect that somewhere in the build details I'd see the message "Missing template parameter" but I don't.  Instead, I just see that the step failed, and if I drill into the step's log, I see the output of the script, but do not see that message.  In a non-yaml build, the message would appear in the build UI.

Yeh - I have the same issue.  I have to run the pipeline with diagnostics on to see the error and even then I have to go and hunt for it in the logs.
Worth keeping this issue open for that I think.

Thanks everyone. You're right, there's a surprising behavior that ##vso[task.complete] doesn't offer up its error message anywhere in the UI. You actually need two steps: one to surface the message and the other to fail the step. I will update the docs; in the meantime, it's:
steps:
- powershell: |
    echo "##vso[task.logissue type=error;]This error message will be shown in the UI"
    echo "##vso[task.complete result=Failed;]"

Fixed, and will get published later today.

I seem to be having the opposite issue with this now, wherein the Required Parameter check always fails. Here is my code:
- bash: |
          # debug logs for sanity
          echo "destroy command "$DESTROY_COMMAND""
          echo "destroy param ${{ parameters.destroy_command }}"

          if [ -z "$DESTROY_COMMAND" ]; then
            echo "##vso[task.logissue type=error;]Missing template parameter \"DESTROY_COMMAND\""
            echo "##vso[task.complete result=Failed;]"
          fi
        env:
          DESTROY_COMMAND: ${{ parameters.destroy_command }}
        displayName: Check for Destroy Command

This fails my pipeline every time, even though I've defined destroy_command. I'm a bit fearful I'm just messing up the bash, but when I run a local script doing the same conditional block, I get the expected behavior. Has anyone else run into this?

@davidtom hmm, for short scripts which don't contain a ##, we do echo the script out. But yours is both long enough and contains ## so we shouldn't be preemptively echoing it.
You're not turning on set -x somewhere, are you?

Hi @vtbassmatt, I am so sorry for the delayed response on this.
I have not turned on set -x anywhere in the azure-pipelines.yaml file. If there is another place that it could be set I can check for it, but as far as I'm aware it shouldn't be on.


[core-auth] Fix 'browser' path configuration in core-auth

This corrects the browser configuration in core-auth's package.json file to ensure that it points to the correct browser output file.  Presumably this would only affect consumers who are trying to directly reference this library in a Rollup build.
It actually looks like sdk/template/template may have this configured incorrectly, that's where I copied it from.  @bterlson: do you know if this file remapping in browser is needed for consumers of our libraries?

I agree that template is configured incorrectly, but I'm surprised the template browser-based tests didn't fail because of this.  I've created an issue for myself to investigate this, add tests, and fix any broken packages:
https://github.com/Azure/azure-sdk-for-js/issues/4461

Thanks Mike!  I confirmed with @bterlson offline that we should have these paths set correctly even if it seems Rollup doesn't resolve them in our current builds.  He suggests that we could add a linting check for it too, possibly as a result of @arpanlaha's work.
For now I'll go ahead and merge this and then I can help you with the testing story for #4461.


The env list obtained through velaux is out of sync with the env list obtained through vela cli

Describe the bug
The environment list obtained through velaux is out of sync with the environment list obtained through vela cli. I created an env through vela cli, but I can't see it in velaux's environment list. Instead, I created the env via velaux, which is visible via the vela cli，but when I delete it via vela cli, it is still in velaux's env list

To Reproduce

Expected behavior
The env list obtained through velaux should be in sync with the env list obtained through vela cli
Screenshots

KubeVela Version
1.5.4
Cluster information
Kubernetes 1.21.5
Additional context

I checked the source code, and the env list obtained by velaux actually queries the configmap under the kubevela namespace, while the environment list obtained by vela cli actually queries the namespace with the env label. Is this a bug or is it designed that way?

@nuclearwu Thanks for pointing that, I think we need to fix it, both velaux and vela CLI should align with the K8s namespace and label mechanism without using extra Configmap.  \cc @barnettZQG

@nuclearwu Thanks for pointing that, I think we need to fix it, both velaux and vela CLI should align with the K8s namespace and label mechanism without using extra Configmap. \cc @barnettZQG

If this is a problem, I'm happy to fix it

/assign

I also have a problem that velaux has the concept of delivery target (actually created configmap), and velaux's env is bound to delivery target, but vela cli does not, so if both velaux and vela cli are are align with the k8s namespace and label mechanism, what about the delivery target? Delivery target related commands not found in vela cli.

what about the delivery target? Delivery target related commands not found in vela cli.

Yes, we don't have delivery target in CLI, it's a special concept of velaux

VelaCLI initializes the env's NAME and NAMESPACE when the env is created, while VelaUX initializes the Name, Project, Namespace, Description and Targets when the env is created. So in the process of synchronizing the env of velaux and velacli, are all these information(such as Project, Description and Targets) bound in the annotation of NAMESPACE?

what about the delivery target? Delivery target related commands not found in vela cli.

Yes, we don't have delivery target in CLI, it's a special concept of velaux. You can mark the bound information inside the annotation of namespace.

VelaCLI initializes the env's NAME and NAMESPACE when the env is created, while VelaUX initializes the Name, Project, Namespace, Description and Targets when the env is created. So in the process of synchronizing the env of velaux and velacli, are all these information(such as Project, Description and Targets) bound in the annotation of NAMESPACE?

VelaCLI initializes the env's NAME and NAMESPACE when the env is created, while VelaUX initializes the Name, Project, Namespace, Description and Targets when the env is created. So in the process of synchronizing the env of velaux and velacli, are all these information(such as Project, Description and Targets) bound in the annotation of NAMESPACE?

I think that could be fine. WDYT? \cc @barnettZQG

@nuclearwu We could get all env namespaces in listing the environments API, and create a target base on the same namespace default.

VelaCLI initializes the env's NAME and NAMESPACE when the env is created, while VelaUX initializes the Name, Project, Namespace, Description and Targets when the env is created. So in the process of synchronizing the env of velaux and velacli, are all these information(such as Project, Description and Targets) bound in the annotation of NAMESPACE?

I think that could be fine. WDYT? \cc @barnettZQG

I agree with you, but at present, the code of ENVService involves methods such as GetEnv, ListEnvs, ListEnvCount, DeleteEnv, CreateEnv, UpdateEnv, etc. that need to be rewritten, more like a feature needs to be submitted.  @wonderflow @barnettZQG


some more issues

The readme states:
# convert the model to ggml format
python3 convert.py --dir-model ./models --out-dir ./ggml_weights/

but the script also requires you to specify --vocab-path VOCAB_PATH, in which the vocab.txt can be found.
Said vocab.txt got deleted, I found this pr and downloaded it from there.
Conversion seems to go well, but while it downloaded the encodec model too, it does not seems to convert that.
Also, why is the resulting ggml_weights.bin only 4gig, when the source model is 12gig and presumably 32bit floats. (I ran it without --use-f16)
There also seem to be no instructions on how to convert the encodec model for encodec.cpp (but there is a convert.py which I then used).
I ran bark main and it seems to work except for encodec:
encodec_load_model_weights: loading model from '../models_ggml/ggml-model.bin'
encodec_load_model_weights: in_channels = 1
encodec_load_model_weights: hidden_dim  = 128
encodec_load_model_weights: n_filters   = 32
encodec_load_model_weights: kernel_size = 7
encodec_load_model_weights: res_kernel  = 3
encodec_load_model_weights: n_bins      = 1024
encodec_load_model_weights: bandwidth   = 24
encodec_load_model_weights: sample_rate = 24000
encodec_load_model_weights: ftype       = 0
encodec_load_model_weights: qntvr       = 0
encodec_load_model_weights: ggml tensor size    = 320 bytes
encodec_load_model_weights: backend buffer size =  82.64 MB
encodec_load_model_weights: using CPU backend
encodec_load_model_weights: model size =    72.64 MB
encodec_load_model: n_q = 32
encodec_eval: compute buffer size: 92.87 MB

GGML_ASSERT: /home/green/workspace/bark.cpp/encodec.cpp/ggml/src/ggml.c:14354: false

:sweat_smile:

trace of the assert:
#0  0x00007ffff79c3ddc in __pthread_kill_implementation () from /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libc.so.6
#1  0x00007ffff79749c6 in raise () from /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libc.so.6
#2  0x00007ffff795d8fa in abort () from /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libc.so.6
#3  0x00007ffff7ebb3e3 in ggml_compute_forward_conv_1d_stage_0 () from /home/green/workspace/bark.cpp/build/encodec.cpp/ggml/src/libggml.so
#4  0x00007ffff7ed7224 in ggml_graph_compute_thread () from /home/green/workspace/bark.cpp/build/encodec.cpp/ggml/src/libggml.so
#5  0x00007ffff79c20e4 in start_thread () from /nix/store/1zy01hjzwvvia6h9dq5xar88v77fgh9x-glibc-2.38-44/lib/libc.so.6

also I noticed that threads are constantly recreated, not sure if its ggml or the usage of it, but thats going to be slow on windows.

I used the f16 version of the encodec model and it works :tada:

Using the f16 version of bark works as well :partying_face:

Cool! Thanks for testing this :)
I'll try to investigate the issue with the F32 weights.


python3 type eror for getAPinfo()

i try to follow your tutorial as per bellow picture

but i got some error like this picture

there is any solution ?

in this case it was clear ,i was using python 2 it's work

@pandazc31 looks like you need to go to the init.py file and add a line to line 68 to convert the output to utf-8 - the exact code is here: https://github.com/jvillagomez/rssi_module/issues/11

ok maybe that didn't fix it for me either... looks like some digging needed.
Python 3.8.5 (default, May 27 2021, 13:30:53)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import rssi
interface = 'wlan0'
rssi_scanner = rssi.RSSI_Scan(interface)
ap_info = rssi_scanner.getAPinfo(sudo=True)
Traceback (most recent call last):
File "", line 1, in
File "/home/vlad/.local/lib/python3.8/site-packages/rssi/init.py", line 305, in getAPinfo
all_access_points = self.formatCells(raw_scan_output)
File "/home/vlad/.local/lib/python3.8/site-packages/rssi/init.py", line 203, in formatCells
raw_cells = raw_cell_string.split('Cell') # Divide raw string into raw cells.
TypeError: a bytes-like object is required, not 'str'

Just checking now, the Github version of RSSI vs the pip3 version is dramatically different, going to try and see what happens if I use the Github version.

$ pip show rssi  #to find location library

go to library

add  raw_output= raw_output.decode("utf-8")

It work !!


Allow curly brackets inside expressions w/o escaping

Currently, if you want to use curly brackets in expressions, you have to escape them like:
{ JSON.stringify(\{ x: 5 \}) }
It would be nice however if parser would just ignore inner brackets w/o the need for escaping:
{ JSON.stringify({ x: 5 }) }
Would add a bit more complexity to the parser, but it's certainly doable.
Thanks @coolzilj.

This would however mean you need a full javascript parser, to take care of comments and strings and so on :-/

Not necessarily. This can be done with recursive regular expressions (which sadly isn't too easy with JavaScript).
In fact, I already had a working solution to this, but the algorithm grew way too large and complex for my liking. I think I can give it another shot though.

Escaping is no longer necessary for brackets inside expressions.


Ref page update - adds sections to reference page by category

Hi!
This is a proposition to address the creation of categories for ml5 functionality on the ml5 reference page.  Ref, this discussion here: https://github.com/ml5js/ml5-website-2/pull/11#issuecomment-490924493
In this proposition, I created 4 categories:

Image
Text
Sound
Helpers

The relevant features are then grouped into these respective sections based on tags and displayed as such.
A note on code: please excuse sloppiness - I will clean up the inline styles if/when we decide to move forward with the proposals :) Thanks for understanding!
Proposed changes:

This is so great! I love having the categories and the thumbnail images.
If we were to tweak it a bit I miss the appearance of the reference fitting all into one page. . i wonder if a slight reduction of size of the thumbnails to fit each section onto one line would still read? This is low priority...


Watchify not calling rebundle after templates change

I'm not sure if this is an issue for everyone but if I change a template I get templates.js being recreated but browserify rebundle doesn't run. Anyone else have this?

This should be working, and I cannot replicate the issue. Could you give us any more detail on the issue/your project setup?

I'm not really sure what the issue was but it's fixed now. Thanks.


Hardcoded URL in View File localhost:8888

This script is nice, its tidy simple and fast
Need to remove hardcoded URL to relative URL in these view files otherwise the bug entry or edit files break on form entry.
Original:
resources\views\bugs\edit.blade.php
action="http://localhost:8888/edit_bug" accept-charset="UTF-8">
resources\views\bugs\bugs.blade.php
action="http://localhost:8888/report_bug" accept-charset="UTF-8">
Change to:
resources\views\bugs\edit.blade.php
action="/edit_bug" accept-charset="UTF-8">
resources\views\bugs\bugs.blade.php
action="/report_bug" accept-charset="UTF-8">

Will make the edit, thank you fishmad.


'attempt to call field ui_attach (nil value)' on initial setup

Describe the bug
Upon launching neovim, greated with an error about ui_attach. Commands like :Noice or :NoiceLog are not registered afterwards.
Which version of Neovim are you using?
NVIM v0.8.0-dev-984-g568737d5b-dirty
Build type: Release
LuaJIT 2.1.0-beta3
To Reproduce
Steps to reproduce the behavior:

Use default conf with use({}) syntax
:PackerInstall and relaunch nvim
Error

Noice Log
Cannot use NoiceLog as the command is not registered

It means you're not running on Neovim 0.8.0 stable or 0.9.0 nightly. vim.ui_attach is a new API method.

what is the exact error you get? Can you post a screenshot?

You're right, just updated it via homebrew. Thanks =)


missing 0x8024043D

We see many instances of error code 0x8024043D Can you please add this code to the list and possible fix for that?

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

ID: f76d96ac-5343-20e2-9d99-9c1cea7ccc2e
Version Independent ID: a95c9b39-4a66-d726-4404-de5af60ac982
Content: Windows Update error code list by component - Windows Deployment
Content Source: windows/deployment/update/windows-update-error-reference.md
Product: w10
Technology: windows
GitHub Login: @jaimeo
Microsoft Alias: greglin

(Ref. merged PR #6636 )

@GitHubSachin - Thank you for submitting feedback.
From our understanding, the issue has been resolved based on this merged commit https://github.com/MicrosoftDocs/windows-itpro-docs/commit/bfb3dd398d69a8282d512eaec04fe102a6da5f00.
Thank you for your contribution to make the docs better! Much appreciated!


Copy-SqlLogin - Corrects issue with unused variable

Fixes #271 by replacing $language with $sourceserver.Language to ensure the default language matches the source when creating a login in the destination server.

branched this from my current upstream branch, not from dev like intended. Sorry about that!
Closing.


xbanish: 1.5 -> 1.6

Motivation for this change
Updating xbanish to 1.6.
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[X] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Assured whether relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

@choochootrain

Built and tested locally :+1:


Use asChild prop instead of as prop

The as prop is hard to type. We can use https://github.com/kripod/react-polymorphic-types but still don't get forwardedAs or typed events.
i.e.
<Button as="a" onClick={event => console.log(event.target.href)} />

would still throw an error.
Using an asChild approach instead (as done in radix), would mean
<Thing as={SomethingElse} value={1} />

becomes
<Thing value={1} asChild>
  <SomethingElse value={1} />
</Thing>

Related
https://github.com/radix-ui/primitives/pull/835
https://twitter.com/jjenzz/status/1423766700885954562?s=20
https://www.radix-ui.com/docs/primitives/utilities/polymorphic
(thanks @jjenzz 🎉 )

Note, as we currently get the as prop from styled-components, asChild would need to be a custom layer that sits between our API and styled components.
Implementation of asChild on radix primitives seems to be here:
https://github.com/radix-ui/primitives/blob/fbfa1e8072df7b12bcdfdf30ecc2fbead2022303/packages/react/primitive/src/Primitive.tsx#L26-L37

also mergeProps and Slot/SlotClone here:
https://github.com/radix-ui/primitives/blob/main/packages/react/slot/src/Slot.tsx


[Bug]: tiktok_project 404

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
Hello @apu52 @anuragverma108 @heysagnik
file not found.
Please assign issue under gssoc and difficulty level.
Expected behavior
try to get the file. Try tweaking JS code.
Add ScreenShots

On which device are you experiencing this bug?
No response
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I'm a SSOC'24 contributor
[X] I have starred the repository

@sakshiglaze You want to contribute under GSSOC or SSOC ?

@sakshiglaze You want to contribute under GSSOC or SSOC ?

Gssoc

Hello @anuragverma108 @apu52
Please assign this under gssoc and the difficulty level too.


Have Roads Drive Cars Instead Of Cars Driving On Roads

Now the concept sounds weird, but it makes sense the more you think about it. Currently, we have each vehicle individually calculating its route and constantly updating its position. There's not a lot of opportunity for performance improvement in terms of caching, as things constantly need to be updated.
Basically, the way aubergine put it, "...instead of iterating vehicles and doing all those calcs (and leader car stuff, etc) to make the car drive along the road, why not make the road drive the car?" More so, he said, "The road could then cache the routes along it on a segment-by-segment (lane-by-lane?) basis, so when a car enters the segment the vehicle motion is already pre-determined - then it's just a case of tweening along that motion path taking in to account vehicle speed. The same could apply to on-road parking, and also vehicles moving out of way of EVs, bits of that could be cached. There would be no need for leader cars any more."
I strongly agree with this and could provide a lot of opportunity for performance improvements. I also think that if we're able to determine the cars position using the road, we could quickly (and easily) implement things like EVE and other features, and we'd FINALLY have a way to be able to fetch a car's position via the road and/or segment, instead of looping through all the cars in the game. This idea was originally brought up by @aubergine10 in #64, but I thought it deserved its own issue.
Cc. @VictorPhilipp @krzychu124

There's other things too - like road condition affecting driving speed. Each road segment knows it's condition and is responsible for the speed that cars follow the cached paths along it (tweening speed).
Same sort of thing with noise pollution; a function of vehicle noise, road noise cancellation (eg. tree lined road), and vehicle speed.
The way things currently work multiple vehicles are going to be querying the same bit of road (or rail, or whatever) per tick. By doing things the other way round, road drives car, we can avoid that extra workload.
It would also make things like car accidents easier, because now the road would orchestrate the accident  scene and actors.
The big mindf*ck is how things work between segments and also junctions. The outbound lanes of segments would have to hand over vehicles to the inbound lanes of next segment. What if that segment isn't ready to accept them, what if it has or hasn't already done its calculations? What are the performance implications of that on congested roads?

BTW, I'm essentially approaching this like Theory of Constraints.
The way the game works now, there are multiple "Herbies" (constraints / bottlenecks) as we "push" cars down roads. By switching to a "pull" methodology, with roads responsible for pulling cars along them, we can create a single "known" constraint, some aspect of the road, and then organise everything around that.

Some thoughts below.
What about road upgrade?
When road segment is upgraded old segment is destroyed an the new is spawned between existing nodes.
Now more complicated...
How about segment creation?
Segment could be created using:

existing node,
splitting existing segment(not in half obviously :wink:)

When created using existing node, info about segment is added to node and info is propagated to other connected segments.
When using second technique, it's more complicated.
Existing segment is splitted on two new segments and new node is spawned at intersection point.
And already mentioned, segment removal.
Segment is deleted and nodes if no other segments connected to them.

When it comes to processing, if a segment has not already cached its lane paths it would do so on demand and cache them for subsequent use. The main thing is it would then be able to have one instance of the path (per lane?) and apply it to all vehicles on that path, rather than having to instantiate / recalculate the path on a vehicle by vehicle basis.
It's not so much the creation and deletion of segments that worries me, we kinda have to deal with some of that stuff already, it's more the handover from one segment to another. So what happens if a segment tries to send a vehicle to the next segment, but that segment is blocked. Simplistically, the vehicle has to stop, but it would need to decelerate first (so at the very least each segment will need to query the next one or junction in applicable direction). But what if that next segment hasn't done it's processing yet... This same issue must exist for vehicles and vehicle grid, I guess, so the game must already be dealing with a situation like this - I just don't know how it does it yet.

Segment is deleted and nodes if no other segments connected to them.

A segment can exist in isolation, so long as it has a node at either end.

I think this idea could improve performance drastically if you even extend the concept so far that the field of view is observed. You don't have to calculate the precise positions for streets that are far outside the reach of your view.  All you need to know is that there is a road and this road has a set of cars on it. For these outside segments, every few calculations, you can choose an arbitrary group of segments that pass some cars to the next segment. You fulfill some probabilistic constraints and limit the calculation demand to fulfill the constraints, nothing beyond that. Cities Skylines generally has a performance problem, even without mods. This idea has the potential to solve that. From pure logic, there is no sense that if you zoom in and only see a few cars driving, the performance is worst while the GPU keeps idling. The only explanation is that outside the view, useless calculations take away capacity.
Following this approach, inside the view, you then have more capacity to focus on the details. The challenge here relies on the intersections/intersegments. @aubergine10 I think you are over-complicating things concerning the blockades. It is sufficient for a segment to watch only for the next segment.
Segments usually are longer than a cars capability to reach more than one segment given its speed. That would be a special case if a segment is so short that in one calculation cycle, the car would theoretically be beyond it. But there it comes handy that the segments can set their own speed. Short segments are usually more complex to drive in reality, so the user would anticipate that cars drive slower on such segments. In real life, you don't speed up to 100kmh/60mph for 500m distance either.
But back to the point. So we can assume that all roads are long enough. That also applies to blockade propagation. What happens in real life if a blockade propagates. The cars only foresee a limited range. They don't see beyond the next segment. If a blockade propagates, crashes are not unlikely, but at the very least, the cars abruptly decelerate. So the worst case is that the blockade expands one segment after the other, calculation by calculation, every time asking the next segment for its current driving speed + repletion ratio and accordingly adjust the own cars' driving speeds. The faster the next segment's cars decelerate, the faster the own cars will have to decelerate. The absolute corner case could be an accident where the front cars within a segment can't stop fast enough. That is also very realistic because, within a segment, you usually can see farther than at an intersection, so that at intersections it is more likely to have an accident in general. All in all, there is no such scenario necessary where propagation needs to reach more than one segment per calculation as you apprehend it.

Yup - outside of the camera view we do not need precise locations of vehicles. But it would have to still be sufficiently accurate enough to gather the following traffic metrics:

Noise pollution
Traffic density
Traffic flow

Currently the game processes all that stuff with same accuracy everywhere, as far as I can tell. If we could reduce the accuracy of stuff outside camera view, but retaining sufficient simulation detail, it would potentially save some CPU cycles.
As part of another task (#415) we are discussing the need for a "network grid" to quickly find network segments and nodes in a given area, and then a cache of what's within the camera view. That's primarily for perspective of TM:PE info overlays and tools, but could later be used to determine simulation accuracy levels.
Regarding the "blockade" stuff, segments cannot be processed in terms of their route direction. Each segment, usually with two directions of traffic, has to be treated somewhat in isolation. for example, if traffic lights stop traffic on segment at the junction, that segment might be processed before or after the preceding segment on that road and so on. Remember that users can be altering roads all over the place in no defined order. Determining "next segment" would be problematic; in fact it might have already bee processed and thus we'd end up altering vehicle positions two or more times per frame. We could potentially mitigate that issue to some extent by processing named routes rather than segments, essentially treating each named route as a road (even though that is not always the case as many players don't bother to maintain their named routes properly).
I'd also be interested to hear what you think of #114 :)

Yup - outside of the camera view we do not need precise locations of vehicles. But it would have to still be sufficiently accurate enough to gather the following traffic metrics:

Noise pollution
Traffic density
Traffic flow

Indeed, but these can easily be generalized. Traffic density (or 'repletion ratio' how I called it), traffic flow or driving speed, and noise pollution can all be calculated without precise positions.

for example, if traffic lights stop traffic on segment at the junction, that segment might be processed before or after the preceding segment on that road and so on.

I don't know the model, so I only can assume, but the important requirements should be met, namely that (1) all segments are processed exactly one time per loop iteration, and (2) we have the references to the connecting segments.
Every lane/segment has incoming / pending cars, and cars that will leave the current segment in this iteration. So there are two cases to consider when there is a car pending for reassignment to the next segment.

The next segment has not been processed yet during this iteration, so the pending car's position will be calculated seamlessly, no visible glitch.
The next segment has already been processed in this iteration. If we assign a car to it, until the next processing iteration (i.e., one frame), we have a challenge. If we do nothing with this car, there will be a visible glitch for one frame. One frame will barely be noticeable if the framerate is high enough but this could be optimized.

Most importantly, we can't know for sure if case 1 or 2 applies or if a car has already been calculated per se. Any ideas to reinitiate the calculation of affected segments don't seem to be viable for obvious reasons. I could image an additional set of pending incoming cars in every segment. Outgoing cars are always calculated by the leaving segment, then added to the corresponding lanes, and the pending incoming cars of the referenced entering segment. No matter if the entering segment is processed after the leaving segment in the same iteration, or if it processed in the next iteration, it first calculates the existing set of assigned cars (skipping the cars from the pending cars set) and after that, it empties the pending cars set. If queues are used in the lanes, it would be sufficient to store the number of new enqueued pending cars to skip in the next iteration and set it to 0 afterward. After all, every car is only processed once and without visual glitches.
The corner case here is that we calculate an outgoing car position but at the same position another car would already exist in the next segment. For that to happen, the car in the next segment would have to be stopped abruptly, so that the previously estimated driving speed and the distance between the two cars don't compensate.
A simple circumvention would be to check the driving speed and traffic density before reassigning the car to the respective segment. Another solution would be to use the order in every segment or lane to determine last cars from every lane. Every outgoing car is then first checked against the last cars of the next segment, and then calculated so that no blockade happens with the last cars, then added to the pending cars.
Your idea of the metamorphic pathfinder looks interesting as well. I will think about it and also about how the probabilistic metrics could look like in a model.

Indeed, but these can easily be generalized. Traffic density (or 'repletion ratio' how I called it), traffic flow or driving speed, and noise pollution can all be calculated without precise positions.

For certain TM:PE features we'd still need to know some of those details at the lane level. As part of increasing lane usage, TM:PE monitors which lanes are busy and adds a slight penalty to them, encouraging vehicles to move to less crowded lanes.

For certain TM:PE features we'd still need to know some of those details at the lane level. As part of increasing lane usage, TM:PE monitors which lanes are busy and adds a slight penalty to them, encouraging vehicles to move to less crowded lanes.

In that case, I would change the concept so that we are not talking of roads driving the cars but lanes driving the cars. By "lanes" I only mean the lanes inside each segment, not the complete lane. I'm not sure how exactly the penality system affects the logic but I assume it basically is a probability to change the lane if the considered lane's probability is lower.
So I'm wondering if it is appropriate in such a model to let each car decide on its own to choose the lane or, once the lanes drive the cars, to let the lanes choose the "top" n percent of its cars. "top" would be a function that determines a selection of cars considering various of their criteria, such as maximum speed and recklessness. n percent would be chosen in consideration of the difference between the current and considered lanes' density, average speed, and maybe also the current "speed change". The stronger the current lane is decelerating the more likely it is to change the lane the more likely that considered lane is accelerating. The "speed change" would also be necessary to calculate the other metrics.

I will call the "probabilistic" segment state where positions are not calculated, shadow mode, and when they are calculated, I would call it focus mode.

In shadow mode, the lane could then add the car to the end of the other lane, whereas in focus mode, additionally to the density, average speed, and speed change, it would select a subset that has the largest gaps in the considered lane next to them. Lane change seems to be a rather complex task so it would be sufficient to calculate and update the TOPs scarcely, maybe store them in a sorted list and once a car is reassigned to the next segment's lane, reconsider the choice to add it to the next TOPs again or not.
Is there anything else that the penalty variables affect that I have not considered?
I have also thought about the other metrics and their shadow/focus calculations and it's not as simple as I thought. Doing it the wrong way could mean that you see a traffic jam in focus mode, then look around and focusing back, the jam disappeared. Alternatively, you could solely let the shadow metrics dictate how the cars have to behave in focus mode but that would look very artificial. Both modes have to be as equivalent as possible. That might be a lot of trial and error but I'm sure that it can be generalized.
Another idea I'm considering for the metrics calculations which I don't know if TM:PE has integrated yet, is how the distance between cars and the safety distance affect the acceleration/throttling behavior and hence the speed of the car and average speed of the lane. I've tried to check the code but it's a lot and I have no clue where to start.

My apologies but with my recent increase in real life activities and my lack of participation in TM:PE in recent months, I think this issue would be better suited to someone else. If it's still around when I come back I'd look forward to fixing it, but for now I'm going to unassign myself. Sorry!