[tool_crash] HttpException

Flutter crash report.
Please report a bug at https://github.com/flutter/flutter/issues.
command
flutter run -d edge --web-renderer html
exception
HttpException: HttpException: Connection closed before full header was received, uri = http://localhost:13198/json

flutter doctor
[✓] Flutter (Channel beta, 2.8.0-3.2.pre, on Microsoft Windows [Version 10.0.19042.1348], locale en-US)
    • Flutter version 2.8.0-3.2.pre at C:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 2901cd7208 (8 days ago), 2021-11-18 11:15:09 -0800
    • Engine revision bcc2b7f12c
    • Dart version 2.15.0 (build 2.15.0-268.18.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\MASSAWE\AppData\Local\Android\sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[✓] Android Studio (version 4.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] VS Code (version 1.62.3)
    • VS Code at C:\Users\MASSAWE\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.26.0

[✓] Connected device (2 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.45
    • Edge (web)   • edge   • web-javascript • Microsoft Edge 96.0.1054.34

• No issues found!

Hi @Massawe14
I see there's an open issue addressing the case you described https://github.com/flutter/flutter/issues/79748 and https://github.com/flutter/flutter/issues/73743, also see this https://github.com/flutter/flutter/issues/72522#issuecomment-770439068 comment.
Please follow up on that issue, I'm closing the current one as a duplicate.
If you disagree, please write in the comments and I will reopen it.
Thank you

Thank you


[QUERY] Load AnalyzedResults with a given a Form Recognizer operation location

Library name and version
Azure.AI.FormRecognizer 4.0.0-beta.3
Query/Question
Hello team!
Is there a way to send a document processing request (which returns a location URI) and then load the populate an AnalyzedResults object using that URI at a later point or event from a different process?
Here's my concrete problem:

Trigger a document processing request
Send an event/message via a message broker system (e.g. Event Hub or Service Bus). The results URI is passed in the event
On the receiving side of the event (which runs on a totally different app), load an AnalyzedResults object with the URI passed via the event (assuming that the document processing operation was completed).  Using the AnalyzedResults class is easier than working with the raw JSON

I'm looking for a way to implement step 3
Thanks
Environment
.NET 6

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Event Hubs:0.3689477,Cognitive - Form Recognizer:0.35576463,Service Bus:0.07807718'

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Hello @gsandorx. From my understanding, you're trying to start a long-running operation using the service's REST API but you want to consume the result using the .NET SDK.
If that's the case: yes, that's possible. The location URI has the following format:
https://{resource-name}.cognitiveservices.azure.com/formrecognizer/documentModels/{model-id}/analyzeResults/{result-id}?api-version={api-version}

In the SDK, we store the {model-id}/analyzeResults/{result-id} substring as the operation ID. You can extract it and instantiate a new AnalyzeDocumentOperation instance like this:
var operationId = "{model-id}/analyzeResults/{result-id}";
var client = new DocumentAnalysisClient(<resource_uri>, <credential>);
var operation = new AnalyzeDocumentOperation(operationId, client);

// Use it as any other long-running operation
await operation.WaitForCompleteAsync();

AnalyzeResult result = operation.Value;

Please let me know if you have any other questions.

Thanks @kinelski .. this is useful indeed.
Now, just to clarify: I'm looking to start the operation AND consume the results from the .NET SDK. It would just be from two separate processes/tasks. Is that still possible?

@gsandorx Yes, this is actually easier. You won't need to parse the ID. For example, in process 1 you can get the ID directly from the AnalyzeDocumentOperation instance:
var client = new DocumentAnalysisClient(<resource_uri>, <credential>);
var operation = client.StartAnalyzeDocument(...);
string operationId = operation.Id;

// Send 'operationId' to another process/task

In process 2, you can do the same I suggested above:
var operationId = /*Get ID from another process*/;
var client = new DocumentAnalysisClient(<resource_uri>, <credential>);
var operation = new AnalyzeDocumentOperation(operationId, client);

// Use it as any other long-running operation
await operation.WaitForCompleteAsync();

AnalyzeResult result = operation.Value;

Does this solve your problem?

Yes, it does. Thanks so much!
(it may be worth adding these code snippets as examples in the official doc. I'm sure more ppl will have the same question)


chore(*): refactor, improve, upgrade

Main themes:

Improve file/directory layout.
Switch from bower to npm.
Upgrade all dependencies.

Incorporates #361 and #390.
Partially addresses #334.

Not sure why Travis isn't triggered. I verified this on my fork: https://travis-ci.org/gkalpak/angular-seed/builds/446783519

why rename the folder components to core?

@petebacondarwin See #334.

Addressed comments.
Added a couple of fixup commits and also switched to Chrome headless on CI.
Ran Travis on my fork.

@petebacondarwin, @mgol: PTAL

Looks like Travis is not enabled for this repo - it must have been disabled some time in the last year: https://travis-ci.org/angular/angular-seed (says "This is not an active repository" for me)

And we don't have rights to turn it back on...


Help for the (optional) bidirectional mapping generation

Hello,
I'm newbie on deep learning and working with obsolete hardware that today unsupported by main framework. But because I'm really want to use your project, and have no money today to upgrade my hardware, I have hack the caffe version to allow me to build it with CUDA 6.5 and sm_13 (yes sm_13). For that i've just hack the math_functions.xxx files to use cublas v1 (not the current v2).
My second problem is the memory. Because my hardware is limited in memory, I've to load the two classifiers models on host/cpu not on gpu (out of memory error) and just add some memory copy to allow me to use the current GPU code of the two projects (norm / blend / patchmatch and others ...). There's no problem for now.
The similarity_combo exe build fine, work fine on the example provided, and product correct combo files with the provided bidirectionnal mapping files (flow files in demo directory).
My problem comes with the deep_image_similarity exe. And especially on the deconv (gradient descent) part. Because my change, I use the Cuda-L-BFGS in cpu mode and I've just modifiy the custom cost_function to generate diff on cpu, no gpu. But there's a problem because each iteration provide same values. All seem correct for me, but I suspect that the cost function do not update correctly at :
m_classifier->net_->BackwardFromTo(m_id1, m_id2 + 1); in Deconv.cpp
Let me see you the log in debug mode : http://s000.tinyupload.com/index.php?file_id=87185167689484967287
Any idea maybe ? Thank you very much for your time.

@dorpxam Hello, do you mean the gradient did not update in the deconv function with your CPU-based L-BFGS?
In the previous GPU-based implementation (decov.cpp), diff (float* diff = m_classifier->net_->blob_by_name(m_layer1)->mutable_gpu_diff();) is gpu_ptr to the gradient object, whose data will be updated by the following substraction (caffe_gpu_sub(m_num1, src, m_dy, **diff**);).
In your code, before calling m_classifier->net_->BackwardFromTo(m_id1, m_id2 + 1), have you updated the gradient values diff on gpu?

With my change, the cost function become :
void my_cost_function::cpu_f_gradf(const floatdouble *h_x, floatdouble *h_f, floatdouble *h_gradf)
{
	m_classifier->net_->ForwardFromTo(m_id2 + 1, m_id1);

	const float* src = m_classifier->net_->blob_by_name(m_layer1)->cpu_data();
	float* diff = m_classifier->net_->blob_by_name(m_layer1)->mutable_cpu_diff();
	caffe_sub(m_num1, src, m_dy, diff);

	float* diff2;
	diff2 = (float*)malloc(m_num1 * sizeof(float));
	caffe_mul(m_num1, diff, diff, diff2);

	float total;
	total = caffe_cpu_asum(m_num1, diff2);

	m_classifier->net_->BackwardFromTo(m_id1, m_id2 + 1);

	const float* diff3 = m_classifier->net_->blob_by_name(m_layer2)->cpu_diff();
	memcpy(h_gradf, diff3, m_num2*sizeof(float));
	memcpy(h_f, &total, sizeof(float));

	free(diff2);
}

And launched in the deconv method by :
my_cost_function func (classifier, m_layer1, d_y, num1, m_layer2, num2, id1, id2);

lbfgs solver (func);

lbfgs::status s = solver.cpu_lbfgs(d_x);

std::cout << solver.statusToString(s) << std::endl;

diff is correctly modified, but (as you can see in the log) the Forward/Backward seem broken somewhere and does not propagate the change. I don't think it's a model loading problem because except the hack on the math function files (for cublas v1), caffe is the version cloned on your hub with all the (nutget) dependencies.
Thank you for your help.

@dorpxam Thanks for sharing your code.
I think the major problem in your code should be caused by unsynchronized CPU and GPU memory. There are 4 states in Caffe for CPU and GPU memory management, UNINITIALIZED, HEAD_AT_CPU, HEAD_AT_GPU, SYNCED. In your situation, the state should be SYNCED to ensure data consistency between CPU and GPU. But this state will be violated by mutable_cpu_diff(). As a result, only CPU data is updated, asynchronous to GPU memory. You may check the state before and after. Maybe
async_gpu_push can be used to copy data from CPU to GPU before calling BackwardFromTo(m_id1, m_id2 + 1). More details can be found in caffe source code (https://github.com/BVLC/caffe/blob/master/src/caffe/syncedmem.cpp).
BTW, the input data type should be float instead of floatdouble.
Hope this could be helpful.

@hmmlillian Thanks for your answer.
I understand. As I have said before, I init caffe in CPU mode. So the trained data was loaded in cpu_ptr memory blobs. The classifiers was modified to load the differents vectors of memory in cpu mem (data_A / data_AP / data_B / data_BP) mutable or copy. For my limited GPU memory hardware, I only move the cpu memory to allow use the differents block/thread cuda methods in the deep_image_analogy methods. The DeepAnalogy.cu file (in pseudo code) :
classifier_A -> load all layers on cpu from trained datas to vector of / A / AP /
classifier B -> load all layers on cpu from trained datas to vector of / B / BP /

No change on ANN/ANND -> host on cpu / device on gpu

for each layers // from 32 to 512
{
    memcpy current_layer (A/AP/B/BP) to GPU

    No change in the GPU process for :
    init/upsample -> norm -> blend -> norm -> patchmatch

    Process avg_vote on GPU too and move target result to CPU

    copy back A/AP/B/BP to CPU

    launch deconv on CPU two times for data_AP[next_layer] and data_B[next_layer]

    free cuda mem for current_layer of A/AP/B/BP
}

So the only time where the memory go to GPU, this is temporary. Only to process the differents layers and use the code in "GeneralizedPatchMatch.cu" without any change.
Note that the floatdouble is not typedefined as double but as float ofcourse ;)
I will investigate the question of async memory and the states as you've said.
In any case, thank's a lot for your help.


Python 3 only: command line completion is broken when there are several matches

When targetcli-fb is built with Python 3, the command line completion does not display possible matches.
For instance, the following test case does not work:

invoke targetcli (must be built for Python 3)
hit the following key: "c"
the following matches should be displayed: "cd" and "clearconfig"
nothing is displayed

It turns out that there are two issues in ConfigShell._display_completions():

The first issue is that some integer divisions are computed with the "/" operator whereas the "//" operator should be used.
The second issue is more subtle: at line 271, a variable called len is used but it is never assigned. As a consequence, what is accessed is the builtin len() function. It is incorrect and causes a type error with Python 3 but not with Python 2.7:

With Python 2.7:
Python 2.7.10 (default, May 26 2015, 13:10:44)
>>> len > 0 and len <<PHONE_NUMBER>
False

With Python 3:
Python 3.4.3+ (default, May  7 2015, 23:10:14)
>>> len > 0 and len <<PHONE_NUMBER>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: builtin_function_or_method() > int()

I will provide patches for both issue. Moreover, I think the _display_completions() method is too complex and I would like to simplify it by removing the completions_in_columns option if you agree.

It appears completions_in_columns defaults to true. I'm fine with removing the option, but should we maybe keep the feature?
I'm guessing the code could be made more Pythonic using list chunking:
http://stackoverflow.com/questions/312443/how-do-you-split-a-list-into-evenly-sized-chunks-in-python
?
@tramjoe, thoughts?

This bug was fixed some time last june:

commit 2278675f79399a07dbe17415faae1af53d6f6974
Merge: 33975c4 9587885
Author: Andy Grover<EMAIL_ADDRESS>Date:   Mon Jun 8 09:24:03 2015 -0700
Merge pull request #18 from cvubrugier/fix-completion

Fix the command line completion with Python 3 (issue #17)


Update production to model v8.2.0 + deployment maintenance

(just need 1 approving review from anyone who has free time for additional tests)
Development:

Catch up on data model releases
Fix out-of-date rsconnect

Also address GH Actions deprecation notices -- update versions, removed redundant install in workflow

Testing in staging https://sagebio.shinyapps.io/NF_data_curator-staging/:

Generated template for Developing ELISA+IHC... > IHC Data > ImagingAssayTemplate
Generated and submitted additional metadata for Differentiation of NF1 heterozygous and NF1 homozygous iPS cells > RNAseq data > RNASeqTemplate

I generated a manifest for the batch1_WES folder from the Biobank project. Then simply donwloaded the generated manifest and tried to validate it without editing anything but got the following error:
Oops, looks like you have 1 errors !!!
Please check that you have selected the correct template in the Select your Dataset tab and ensure your metadata contains only one template, e.g. Whole Exome Sequencing Assay.
The submitted metadata contains << ‘’ >> in the Component column, but requested validation for << Whole Exome Sequencing Assay >>.

Is this error related to the data model updates?

I ma guessing this is because there are files in addition to fastq files in the folder, and the data model is expecting only one fileformat in the folder being annotated. Is it possible to generate an error message that encourages the user to find a folder with only one file type and then start annotating?
Also, I imagine this will cause trouble for older projects which have multiple file formats in the same folder.

Is it possible to generate an error message that encourages the user to find a folder with only one file type and then start annotating?
This is an issue for the DCA.

Also, I imagine this will surface this error for many of the older NF projects which have multiple file formats in the same folder.
Yeah, we would have to tidy up the files for them.


bump cryptography above 41.0.3

resolves #19
adds additional tests (load_dotenv() is now tested)

@nsnguyen i can't merge this PR as i dont have write access to the repo - would you mind merging it?

it's merged now @mnbf9rca . Thanks 👍


[SR-5688] [Sema] Handle key path component base type on MemberAccessOnOptionalBaseFailure

The fix was being recorded but it was failing to handle the key path component type.
This just handles the KeyPathComponent locator.

Resolves SR-5688.

@hamishknight @xedin There are still some tests failing I have to look, so I'll ping you when this is ready for a review :)

Right, this is ready :) @hamishknight  @xedin

@hamishknight Thank you for the review
Sorry for taking too long to answer, but I've addressed all things.
So this is ready for review again :)
cc @xedin

Humm, @xedin @hamishknight there is still one test case failing I have to check

Right, now tests are happy so this is ready for review :)

Please make sure to do a squash-and-merge when merging to ensure the git history is kept clean (congrats on commit access btw!).

Sure, Thank you for the review @hamishknight :) I've learned some nice new things here \o/

@swift-ci please smoke test

@xedin The windows build didn't trigger or it just didn't show on the github UI like that one in the other PR?

Looks like it just didn't report the status - https://ci-external.swift.org/view/Pull Request/job/swift-PR-windows/4504/

@swift-ci please smoke test Windows platform

Squashed and merged, Thank you @hamishknight @xedin :)


Freeze after exception

While sending a files with test_network_sender.py i get the following exception. Complete output:
/home/storjnode/storjnode/bin# python test_network_sender.py [my address] [your address] test_network_sender.py
INFO storjnode.network.service 97: Starting network service!
INFO storjnode.network.service 125: Connecting to irc.quakenet.org:6667 as wTRUSteecubg.
INFO storjnode.network.service 128: Connection established!
INFO storjnode.network.service 148: Joined own channel #18X6bmEjAKfAhqega9xmBgJfy4rrJ3zxth
INFO storjnode.network.service 103: Network service started!
INFO storjnode.network.service 475: Queued 1287bytes to send 16ZcxFDdkVJR1P8GMNmWFyhS4EKrRMsWNG
INFO storjnode.network.service 313: Requesting connection to node 16ZcxFDdkVJR1P8GMNmWFyhS4EKrRMsWNG
INFO storjnode.network.service 334: Sending syn to node channel #16ZcxFDdkVJR1P8GMNmWFyhS4EKrRMsWNG
INFO storjnode.network.service 420: Received synack from 16ZcxFDdkVJR1P8GMNmWFyhS4EKrRMsWNG
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/local/lib/python2.7/dist-packages/storjnode-0.0.2-py2.7.egg/storjnode/network/service.py", line 240, in _reactor_loop
self._reactor.process_once(timeout=0.2)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 259, in process_once
self.process_data(i)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 216, in process_data
c.process_data()
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 582, in process_data
self._process_line(line)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 614, in _process_line
handler(arguments, command, source, tags)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 638, in _handle_message
self._handle_event(event)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 673, in _handle_event
self.reactor._handle_event(self, event)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 398, in _handle_event
result = handler.callback(connection, event)
File "/usr/local/lib/python2.7/dist-packages/storjnode-0.0.2-py2.7.egg/storjnode/network/service.py", line 416, in _on_ctcp
self._on_synack(parsed, peer_address, peer_port)
File "/usr/local/lib/python2.7/dist-packages/storjnode-0.0.2-py2.7.egg/storjnode/network/service.py", line 434, in _on_synack
dcc.connect(peer_address, peer_port)
File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 1041, in connect
raise DCCConnectionError("Couldn't connect to socket: %s" % x)
DCCConnectionError: Couldn't connect to socket: [Errno 111] Connection refused
I would ignore the exception for now. The problem is that my terminal is freezed after that. I can't restart sending (in the same terminal)
I gues it is duplicate to https://github.com/Storj/storjnode/issues/2. For retest and documentation i open a second bug so we can't forget it.

Fixed in https://github.com/Storj/storjnode/commit/78a1124fa895513e1072b966197059c5ea1dc92e


[Bangkok - Tailândia] Leading eCommerce business - iOS Engineer)

[Bangkok - Tailândia] Leading eCommerce business - iOS Engineer
Empresa
Working with one of the world's leading travel company on an app with millions of active users. They focus on code quality, innovation and maximising the user experience. They have a hugely multicultural team with around 64 different nationalities represented in Bangkok and will help you with the relocation process through flights, visas and accommodation
Build the world's best iOS app and have fun whilst doing it...
Descrição da vaga
Working in a hugely talented, highly experienced Mobile team you will play a major part in writing major new features on an app used by millions of people worldwide. Although the app is large scale the company are constantly innovating to ensure they stay ahead of the technological curve. You should have:

An enormous passion for iOS
Experience with Objective-C and ideally Swift
Great knowledge of iOS Architecture (Viper)
Experience writing Unit Tests
Value clean code and software craftsmanship
A desire to create the best possible iOS app
Comfortable working in an English speaking team
A passion for Open Source is encouraged

## Posição

Tipo de contratação
Permanent
Office - Bangkok

Contato
If you would like to apply or have any questions please email<EMAIL_ADDRESS>

@tjshannon Já fecharam a vaga? Pode fechar a issue?


Adapt license to Khronos "standard" Apache 2.0

@moneimne Are you still online here?  Would you be willing to re-release your old code under the Apache 2.0 license here instead of MIT?

@emackey changing the license is also OK but please make sure to check with all contributors; I'm pretty sure this repo has had contributions from other developers as well.

@emackey Yeah, for sure! Whatever works for everyone.


FutureWarnings from geopandas 0.6.0

Due to geopandas/geopandas#1085 and geopandas/geopandas#1062, there are several of these FutureWarnings in the tests:
tests/mixin_tests.py::TestPlot::test_init_extent_axes
tests/mixin_tests.py::TestPlot::test_init_extent_geoaxes
tests/viz_tests.py::test_clip_params_overlay[kwargs0]
tests/viz_tests.py::test_clip_params_overlay[kwargs1]
tests/viz_tests.py::test_param_extent_unproj
tests/viz_tests.py::test_param_extent_proj
  /builddir/build/BUILDROOT/python-geoplot-0.4.0-1.fc31.x86_64/usr/lib/python3.7/site-packages/geoplot/geoplot.py:625: FutureWarning:     You are passing non-geometry data to the GeoSeries constructor. Currently,
      it falls back to returning a pandas Series. But in the future, we will start
      to raise a TypeError instead.
    extent = gpd.GeoSeries(self.extent) if self.extent is not None else None

tests/mixin_tests.py::TestHue::test_hue_init_hue
  /builddir/build/BUILD/geoplot-0.4.0/tests/mixin_tests.py:205: FutureWarning:     You are passing non-geometry data to the GeoSeries constructor. Currently,
      it falls back to returning a pandas Series. But in the future, we will start
      to raise a TypeError instead.
    hue = gpd.GeoSeries(np.random.random(100))

tests/mixin_tests.py::TestHue::test_hue_init_hue
tests/mixin_tests.py::TestScale::test_scale_init_scale_dtypes
tests/viz_tests.py::test_hue_params[kwargs9]
tests/viz_tests.py::test_hue_params[kwargs10]
  /builddir/build/BUILDROOT/python-geoplot-0.4.0-1.fc31.x86_64/usr/lib/python3.7/site-packages/geoplot/geoplot.py:1797: FutureWarning:     You are passing non-geometry data to the GeoSeries constructor. Currently,
      it falls back to returning a pandas Series. But in the future, we will start
      to raise a TypeError instead.
    return gpd.GeoSeries(var, index=df.index)

tests/mixin_tests.py::TestScale::test_scale_init_scale_dtypes
  /builddir/build/BUILD/geoplot-0.4.0/tests/mixin_tests.py:376: FutureWarning:     You are passing non-geometry data to the GeoSeries constructor. Currently,
      it falls back to returning a pandas Series. But in the future, we will start
      to raise a TypeError instead.
    scale = gpd.GeoSeries(np.random.random(100))

tests/mixin_tests.py::TestScale::test_scale_init_scale_dtypes
  /builddir/build/BUILD/geoplot-0.4.0/tests/mixin_tests.py:383: FutureWarning:     You are passing non-geometry data to the GeoSeries constructor. Currently,
      it falls back to returning a pandas Series. But in the future, we will start
      to raise a TypeError instead.
    scale = gpd.GeoSeries(np.random.random(100))

tests/viz_tests.py::test_clip_params_geometric[kwargs0]
tests/viz_tests.py::test_clip_params_geometric[kwargs2]
  /usr/lib/python3.7/site-packages/geopandas/geoseries.py:290: UserWarning: GeoSeries.isna() previously returned True for both missing (None) and empty geometries. Now, it only returns True for missing values. Since the calling GeoSeries contains empty geometries, the result has changed compared to previous versions of GeoPandas.
  Given a GeoSeries 's', you can use 's.is_empty | s.isna()' to get back the old behaviour.

  To further ignore this warning, you can do:
  import warnings; warnings.filterwarnings('ignore', 'GeoSeries.isna', UserWarning)
    return self.isna()

This is like #187, which was fixed in #188, but only in one place.

Fixed in #219.


Domoticz and Miglora MQTT daemon

Has anyone succeeded in connecting Domoticz trough MQTT with this project?

edit title

I'm not fluent in the Domoticz specifics but is it still limited in the way that it expects everything via domoticz/in and domoticz/out?
The daemon supports multiple publishing formats: https://github.com/ThomDietrich/miflora-mqtt-daemon#features Please check which is supported. If none is you are invited to submit a PR to support Domoticz compatible publication (or switch to openHAB :smiling_imp: kidding :wink: )


竟然没uni-app？这统计报告也太。。。

uni-app的用户量远超你家报告里列的其他开源项目。pinggap和用户量和star都和uni-app没法比

@wanganxp Thanks for the issue. We collect Chinese open source projects by some medias and news. The list is definitely not intact right now. Do you mean this project(https://github.com/dcloudio/uni-app)? We will add it into the Chinese projects list, do you know which company does this project belongs to?


Adding a-tag with text starting with http not rendering correct

When I add a custom HTML for links like this:
http://example.com/
The render is renderer detects first the text http://example.com/ and converts it to link, after that it converts the rest. The problem is that at the end I end up with nested a tags:

Expected behavior: When text starting with http... is wrapped with link, the text should not be converted as link, only the parent link tag should be rendered as link.

@a-tonchev can you share an example of what the markdown looks like?

@a-tonchev can you share an example of what the markdown looks like?

@probablyup you can just copy the a tag what I shared
http://example.com/
and paste it somewhere here:
https://probablyup.com/markdown-to-jsx/
You can see then the source code of the view:

@probablyup you can just copy the a tag what I shared
http://example.com/
and paste it somewhere here:
https://probablyup.com/markdown-to-jsx/
You can see then the source code of the view:

@Prabhakar-Poudel well, this is a workaround, and that is what I am also using now.
But since this is an unexpected behavior I would still let it as a bug.


LMS/Ralph integration

Test event-routing-backends integration to Ralph

Check that performance of inserts does not severely affect LMS

These tests have been done, and performance on a small scale LMS with the current events seemed negligible.


Friendly name setting

Friendly names aren't escaped (i.e. ' ' -> _) so result in erroneous sensors.

Would it be worth creating both a friendly name and friendly id in config? That let's us e.g. change how it is escaped over time, without breaking people.
(It also lets me have a prefix to all the sensor ids, to keep things neat, without having a friendly name appear at the end of every sensor name)

You need the friendly name in the sensor description if you have two inverters otherwise the graphs just show the same sensor names twice and you can't tell which is which (it was me that asked for that to be added).

Right, but I've only got 1 inverter. The aim, which I think other people are doing as well, is to put a prefix onto all of the entity ids (which we don't have my default, to be compatible with StealthChestnut's intigration) - this makes it easier to e.g. use globs to slurp everything into influxdb, rather than having to list every sensor individually.
That isn't what this ossie is about, of course. But I saw the opportunity to kill two birds with one stone here.

We also need to make sure that two friendly names don't escape to the same friendly id. That's probably also easier to sort out if we generate both at config time, rather than having to sort it out on the fly each time.

It's a good point.  Without wanting to over-complicate the config, I wonder if we need a separate "entity_id prefix" from "Friendly name prefix or suffix"?
With StealthChestnut's integration I'd actually prefixed my Friendly name with the inverter name and the suffix was @nathanmarlor 's alternative implementation (but since the entity id's were prefixed, it mattered not).  I'd mainly used prefix as some of the entity_id's are generated from the escaped name in StealthChestnut's one in some cases - e.g.

name: "Inner-PV Energy Daily"

and I didn't want a mix of prefix and suffix in the entity_id's.

It's something I'm struggling with too...
Got StealthChestnut's integration up and running in my PROD environment, but I kind of modified it a lot. I've renamed all name's (added FoxESS as prefix) and unique_id's (added foxess_ as prefix) entries in configuration.yaml, modbusLAN.yaml and all the extra entities which are listed in sensors.yaml and templates.yaml.
Main reason: The FoxESS installation is not the only monitoring tool in my fuse box and I wanted them as recognizable as possible on all fronts.
And in the near future there will also be data send from a P1-port to HA.
I now got a WaveShare RS485 PoE to ETH (b) installed and configured in my TST environment and I'm wondering how I'm going the handle the naming thing 🤔🤨

That should be the simple case of just setting foxess as your friendly name? Then it'll get added as a prefix to all your entity ids, and as a sufix to all entity names.

Yes it does the trick, thanks. (Wasn't really sure if that naming thing did what you said it would)
I just need to check if I don't get those silly _2 sensors, but probably that won't be avoidable

As a short term fix for the next release, we could just add validation to only allow [a-z_]

Ah, looks like homeassistant.core had a valid_entity_id function

Right, I've put a limit on friendly names being snake_case in #139. That at least stops people unwittingly using values which won't work.
I've reworked this bit of the config flow in #139. I haven't added any more settings here, but it's worth waiting until #139 is in before trying to change anything else.


FE: no way to see mainnet funds

Perhaps we can add a link to an eth asset explorer like Etherescan or OpenSea.

It exists now:

It exists now:


3D U-Net TensorFlow workspace for BraTS 2020

This adds a workspace for OpenFL to train a TensorFlow 3D U-Net model on BraTS 2020.

I show how to use a TensorFlow dataloader rather than loading everything into memory. It should make for a nice example to showcase how to use custom data loaders

I fixed a bug in the KerasRunner on the validation function. It was using x_validate rather than the get_valid_data() function. This change makes it possible to use an arbitrary dataloader.

I think there's a bug with db_rounds to keep. When I set it to 1 round to keep, the federation crashes on round 2 because it doesn't have the graph variables. It looks like this should be at least >=2 rounds to keep. I'd suggest doing a max(db_rounds, 2) so that the user doesn't inadvertently put in something like 0 (or -999).

The model trains, but no guarantees on a good Dice score. It's just a template.

Hope you all are well. спасибо друзья!

@tonyreina glad to see you here! Thanks for the contribution.
Could I kindly ask to fix flake8 issues?

@alexey-gruzdev I think I corrected the flake8 issues.

Jenkins, please retry a build

ok to test

@tonyreina it seems that we still have few of them with fresh CI build.

I think flake passes now.

Great work! Thanks!

Jenkins please retry a build

@tonyreina thanks for the contribution! I've tested this, so it worked well.


Script still working?

./premiumize-cli-downloader.sh 73bbb9a1ac227778cf2c5baac35eb1742d1f972d.dlc
Saving files to /opt/premiumize.me-cli-downloader/download
Getting CSRF token...
Got CSRF token:
Starting processing /opt/premiumize.me-cli-downloader/73bbb9a1ac227778cf2c5baac35eb1742d1f972d.dlc
Decrypting DLC (/opt/premiumize.me-cli-downloader/73bbb9a1ac227778cf2c5baac35eb1742d1f972d.dlc)...
jq: error: Cannot iterate over null
Finished processing /opt/premiumize.me-cli-downloader/73bbb9a1ac227778cf2c5baac35eb1742d1f972d.dlc, removing file!
Unable to retrieve premium links!
Finished, just cleaning up...

my script is just a little shell script not like the one you are talking about. i guess you use https://github.com/steilerDev/premiumize.me-cli-downloader and not mine.

Oh sorry 😜 Indeed, I opened the issue in the wrong project. However, I know discovered your script, which works like a charm. Thanks for sharing!


Add CMake artifact and Linux executables to .gitignore.

Just a small contribution.  CMake leaves a few artifacts in its wake.  Also, executables on the Linux build have no extension and thus need to be specified explicitly.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Looks good, thanks.


Use framework import (< instead of ") for React

Fixes a these build errors:
	CompileC /Users/mrousavy/Projects/Steakwallet/app/ios/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/react-native-sodium.build/Objects-normal/x86_64/RCTSodium.o /Users/mrousavy/Projects/Steakwallet/app/node_modules/react-native-sodium/ios/RCTSodium/RCTSodium.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-sodium' from project 'Pods')
(2 failures)

❌  /Users/mrousavy/Projects/Steakwallet/app/ios/Pods/Headers/Public/React-Core/React/RCTBridgeModule.h:431:1: duplicate interface definition for class 'RCTBundleManager'

@interface RCTBundleManager : NSObject
           ^

❌  /Users/mrousavy/Projects/Steakwallet/app/ios/Pods/Headers/Public/React-Core/React/RCTBridgeModule.h:437:18: property has a previous declaration

@property NSURL *bundleURL;
           ^

❌  /Users/mrousavy/Projects/Steakwallet/app/ios/Pods/Headers/Public/React-Core/React/RCTBridgeModule.h:445:1: duplicate interface definition for class 'RCTViewRegistry'

@interface RCTViewRegistry : NSObject
                 ^

❌  /Users/mrousavy/Projects/Steakwallet/app/ios/Pods/Headers/Public/React-Core/React/RCTBridgeModule.h:462:1: duplicate interface definition for class 'RCTCallableJSModules'

@interface RCTCallableJSModules : NSObject

Thanks for your PR


#455 Override builder methods from parent class

@joelittlejohn Could you please review it.

This looks good @blizznets. Two things to do:

Could you remove the javadoc reformatting? It doesn't fit with the format of the other javadoc block in this project.
Before we can include this feature, we must have an integration test that covers it to ensure that the feature is not lost in a future version. Take a look at the existing integration tests, there are some helper classes that make them quite easy to write.

(Sorry, didn't mean to close that)

@joelittlejohn sounds reasonable, done.
P.S. Sorry for formatting. I'd missed it somehow.

Thanks @blizznets! Please squash this into 1 commit and I will merge.

@joelittlejohn done


zbar_ros: 0.5.1-1 in 'iron/distribution.yaml' [bloom]

Increasing version of package(s) in repository zbar_ros to 0.5.1-1:

upstream repository: https://github.com/ros-drivers/zbar_ros.git
release repository: https://github.com/ros2-gbp/zbar_ros-release.git
distro file: iron/distribution.yaml
bloom version: 0.12.0
previous version for package: 0.4.0-3

zbar_ros
* Add iron CI (#28 <https://github.com/ros-drivers/zbar_ros/issues/28>)
* Remove usage of deprecated cv_bridge header file (#19 <https://github.com/ros-drivers/zbar_ros/issues/19>)
* Switch to CI from ros-tooling (#27 <https://github.com/ros-drivers/zbar_ros/issues/27>)
* Improve README (#17 <https://github.com/ros-drivers/zbar_ros/issues/17>)
* Update authors and maintainers of package (#13 <https://github.com/ros-drivers/zbar_ros/issues/13>)
* Contributors: Kenji Brameld

CI failing due to devel branch being renamed from ros2 to rolling.
Should be fixed with changes in  #40967 .

I've merged in #40967, so this will have to be rebased now.


Handle overflow

When the step label is too long, it overflows

Check if it does that with command's labels too

Should be fixed in next update, thanks for the report!


?? SpellList as card

https://react-native-training.github.io/react-native-elements/docs/card.html

ListItem

design in whatsapp notes


[Feature request] Efficient stochastic path without unused layers

DINO v2 finds that high values of stochastic depth is very helpful for larger models in terms of performance and they also gave an efficient implementation that only operates on the un-masked samples of a batch here, which is very simple:
def drop_add_residual_stochastic_depth(
    x: Tensor,
    residual_func: Callable[[Tensor], Tensor],
    sample_drop_ratio: float = 0.0,
) -> Tensor:
    # 1) extract subset using permutation
    b, n, d = x.shape
    sample_subset_size = max(int(b * (1 - sample_drop_ratio)), 1)
    brange = (torch.randperm(b, device=x.device))[:sample_subset_size]
    x_subset = x[brange]

    # 2) apply residual_func to get residual
    residual = residual_func(x_subset)

    x_flat = x.flatten(1)
    residual = residual.flatten(1)

    residual_scale_factor = b / sample_subset_size

    # 3) add the residual
    x_plus_residual = torch.index_add(x_flat, 0, brange, residual.to(dtype=x.dtype), alpha=residual_scale_factor)
    return x_plus_residual.view_as(x)

In practice, with up to stochastic_depth=0.4, the memory usage almost halves.
In this repo, there is a stochastic depth provided, where the layers are dropped altogether. This also achieves similar effect as the DINO v2 implementation in that masked out samples of a batch don't waste compute. However, this drops entire layers and thus we are forced to use find_unused_parameters=True when training with DDP, which would cause further overheads... besides, dropping entire layer across all batches feels kinda weird and might introduce biases.
I can contribute something and integrate this into the attention and MLP layers. What do you think? Is there any other reasons that you keep the entire layer drop (apart from the potential overhead when drop is low)?

@Aceticia hello again Xujin/Chris
stochastic depth is popular in some circles for sure
what do you think about just forcing the parameters to be used by sending in a single dummy token, multiplying the output by 0 and summing it to the stream? that should fix the ddp issue?

Hello again! I go by Chris :D
Sounds like a good solution, I can't really think of any side effects.

@Aceticia did you see anything interesting when splitting dimensions for alibi across heads?

@Aceticia did you see anything interesting when splitting dimensions for alibi across heads?

I tried it out, didn't have time for a complete run but sadly I don't see much differences from just using alibi in time. We made the compromise to use consistent time ordering across samples and use rotary pos emb in time, and a learned positional embedding across space and it's the best we have yet.
Can't spend forever on this - sorry to have wasted some of your time on this. Good knowledge though.

@Aceticia no problem! just your sharing this makes it worth it
thanks!


Refactor Heading Elements for Screen Readers

Description/Context
Headings are announced by screen readers; in the code, they are often used for font size. This makes the pages less usable by individuals with screen readers, since the headings are announced unnecessarily.
Plan/Design
Only use heading elements for "true" headings, and use different classes for manipulating font size.

Can you give an example?
What's the scope of this, or is that part of the issue?


Update camera.py

Fix thumbs and live streaming.

This is not listed under HACS anymore.  Is this project not supported by HA anymore?

This is not listed under HACS anymore. Is this project not supported by HA anymore?

The repo doesn't look like it's had any commits in 3 years, so I'm guessing that it's basically considered abandoned, since it doesn't work with the current home assistant.

Thanks
http://bitstop.ca
On Thu, Jan 4, 2024 at 2:40 PM Adam Ness @.***> wrote:

This is not listed under HACS anymore. Is this project not supported by HA
anymore?
The repo doesn't look like it's had any commits in 3 years, so I'm
guessing that it's basically considered abandoned, since it doesn't work
with the current home assistant.
—
Reply to this email directly, view it on GitHub
https://github.com/marthoc/kuna/pull/48#issuecomment-1877547448, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACWJ3ELNVMH5KXKWFIRHMBLYM3WCXAVCNFSM6AAAAAAWANHM2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXGU2DONBUHA
.
You are receiving this because you commented.Message ID:
@.***>

This still works for me.  Everything is up to date.

This is not listed under HACS anymore. Is this project not supported by HA anymore?

It will not be listed under HACS, you need to add it as a custom repo using the three dots on the top right hand corner of the HACS screen. BTW it is working for me and see no error logs.

Thanks for the info.
http://bitstop.ca
On Thu, Jan 4, 2024 at 6:35 PM PM @.***> wrote:

This is not listed under HACS anymore. Is this project not supported by HA
anymore?
It will not be listed under HACS, you need to add it as a custom repo
using the three dots on the top right hand corner of the HACS screen. BTW
it is working for me and see no error logs.
—
Reply to this email directly, view it on GitHub
https://github.com/marthoc/kuna/pull/48#issuecomment-1877823043, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ACWJ3EPNW3CBBAYXZSOUVJ3YM4RSZAVCNFSM6AAAAAAWANHM2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZXHAZDGMBUGM
.
You are receiving this because you commented.Message ID:
@.***>


Add Ollama Model for Yorkie intelligence

What would you like to be added:

Model selection by changing model name in env file
Download Ollama model automatically when running codepair

Why is this needed:
Since Codepair is currently using OpenAI ChatGPT which costs money, so we need to add option to use ollama's model which can use freely and run locally
Additional Information:

It seems like a good way for new users to get started without any setup. It would also be helpful to clearly list the required computer specifications.


Selecting a different folder don't change the preference

Hi,
after having selected a specific folder the path is not changed in the preferences object.

Me too. Field of 'type': 'directory' doesn't work at all, because it cannot be changed ... (OS: Windows, version: 2.0.0)

@tolbard I finally solved it! For others, the error is:
Uncaught TypeError: l.showOpenDialog(...).then is not a function
    at onClick (app.bundle.js:14)
    at Object.<anonymous> (app.bundle.js:22)
    at Object.invokeGuardedCallback (app.bundle.js:22)
    at Object.invokeGuardedCallbackAndCatchFirstError (app.bundle.js:22)
    at P (app.bundle.js:22)
    at R (app.bundle.js:22)
    at F (app.bundle.js:22)
    at T (app.bundle.js:22)
    at D (app.bundle.js:22)
    at B (app.bundle.js:22)

and it means that you (in project where you used electron-preferences library) have dependency on electron older than 6.0.0.  Before version 6, dialog.showOpenDialog() returns a String[] rather than a Promise. If i upgraded my project to 6 major version of Electron framework, directory component works just fine.
So fix for this issue is just add mention to README.md that electron-preferences require electron framework version 6 or newer..

Closing this issue.
Currently the lowest supported version by electron itself is 10.x.y.


How I can Play and Pause  video from c# code.

How I can Play and Pause  video from c# code. Please help me I have added a button on play screen for some custom things. I want to pause video while doing custom things and play back video after custom code runs. please help me

You can respond to different player events by hooking into the PlayerStateChanged event and listening for specific actions. When a specific action occurs you can perform operations on the player.
https://github.com/adamfisher/Xamarin.Forms.VideoPlayer/blob/master/GettingStarted.md#playback-events


[Proposal of testing approach] Write tests for issue API

Context: https://github.com/gogits/gogs/issues/2293
I wrote few tests (just 4), because I want to know if you guys agree with the general approach. More could be easily added for other APIs (or existing tests improved).
Approach

We are now testing against a SQLite database (It could be PostgreSQL, or MySQL. I choose SQLite for portability)
Fixtures are loaded in the test database before each router test
In the future, we might need to write scripts that generate Git repositories in the gogs-repositories folder, in order to test code that traverse Git repos.

Tip: tests compiles a lot faster without -cover and -race flags. You probably won't want to use that for development. I took many minutes to discover why it was so slow.

@Unknwon Any feedback here?

I think it's not a good time to spend time on integrating testing yet.

@Unknwon OK. I hope Gogs get a strong test suite in the future, even that a different approach would be choose.

@andreynering I think Gogs should have as much as unit tests as possible, combine with integrating tests. But thoughts change fast, so I don't want people keep putting time on testing.


Update style-and-voice.md

Tried to make this less-Azure focused by using some EM product names as examples and deleting a couple of Azure service specific line items.

@lindavr - thanks for these as well!


localizePath and ids

Hi, when using localizePath with and id in it (#contact for instance), it adds an / at the end. Here is a workaround I've made but not ideal:
return href.startsWith('#') ? href : localizePath(href)

Thank you for the issue, this is a duplicate of #77, so closing this one.

return href.startsWith('#') ? href : localizePath(href)

Hi, I have the same problem here with /#contact which generates http://<IP_ADDRESS>:3000/fr/#contact/, could you explain the answer to this problem? return href.startsWith('#') ? href : localizePath(href)? Thank you!

Hey sure! From what I can see, the only case where adding a / at the end of the localized path is annoying is when you want to go to an id. So let's say #contact. Then you're code should look like:
Link

Then you want it to be localized, maybe because it's dynamic so it will become:
Link

And so it will generate your-path-with-locale/#contact/. The ending slash prevents the id scroll from working.
So using my code does exactly that:
return href.startsWith('#') ? href : localizePath(href)

However, if you url is path/#contact it won't work so you can update it like so:
return href.includes('#') ? href : localizePath(href)

Let me know if that wasn't clear enough 👍

Thank for your quick and precise answer! Where i put this code "return href.startsWith('#') ? href : localizePath(href)"? In my layout.astro where is located my header?

{link1}

{link2}

{link3}

{link4}

{link5}

To be transparent i'm still learning js/ts ahah! Thank you 💯

I would refactor is a little bit like so:
---
import { localizePath } from 'astro-i18next'
const links = [
    {
        href: '#solutions',
        name: 'Solutions',
    },
    {
        href: '#enfoque',
        name: 'Enfoque',
    },
    {
        href: '#nosotros',
        name: 'Nosotros',
    },
    {
        href: '/blog',
        name: 'Blog',
    },
    {
        href: '#contactanos',
        name: 'Contactanos',
        active: true,
    },
].map(({ href, name, active }) => ({
    name,
    active,
    href: href.startsWith('#') ? href : localizePath(href),
}))
---

    {
        links.map(({ href, name, active }) => (

                    {name}

        ))
    }

That's great, work for me! Thank you for your time!

If I am in another page this workaround does not work


lisa.wlgen.rta: Fix recursive calibration

FIX
Avoid accidentally re-entering the calibration function while running
it.

LGTM. Running github_dourai01/_home_pr90018 lets this issue disappear when executing an initial
calib = RTA.get_cpu_calibrations(target, res_dir=path)


entity: GET method

added logic for the two cases

collaborator true

return document

collaborator false

request document with a entityRelationship via p2p

@vedhavyas  I addressed you changes request. I will merge


Per Provider Packaging

As described in #941 , this PR show how the ideia could be implemented.

I would be honored if this PR were reviewed.
Work did:

Added separated projects for SqlServer, MySql, PostgreSql and SQLite;
Moved all members from SqlAdapters folder for target provider project;
Reviewed all dependencies by EfCore provider;
Created IDbServer interface to be implemented by each EfCore provider, supplying instances for Adapter, Dialect, and some other features;
Added SqlAdaptersMapping.DbServer static property for setting up the desired provider to be used;
Refactored code that depends to call members from providers on core project.

About the tests:
I didn't figured yet how to get the tests working. I'm getting some connection errors. Should the databases exists on real instances on my computer?
Thanks.

Will take a look 👍

I forgot to mention on the first topic: There's a breaking chance in this PR: It' important to set the DbServer at some app's point, like Startup, etc:
// For SqlServer:
EFCore.BulkExtensions.SqlAdapters.SqlAdaptersMapping.DbServer = new EFCore.BulkExtensions.SqlAdapters.SQLServer.SqlDbServer();

// For MySql:
EFCore.BulkExtensions.SqlAdapters.SqlAdaptersMapping.DbServer = new EFCore.BulkExtensions.SqlAdapters.MySql.MySqlDbServer();

// For PostgreSql:
EFCore.BulkExtensions.SqlAdapters.SqlAdaptersMapping.DbServer = new EFCore.BulkExtensions.SqlAdapters.PostgreSql.PostgreSqlDbServer();

// For SQLite:
EFCore.BulkExtensions.SqlAdapters.SqlAdaptersMapping.DbServer = new EFCore.BulkExtensions.SqlAdapters.SQLite.SqlLiteDbServer();

I forgot to mention on the first topic: There's a breaking change in this PR: It' important to set the DbServer at some app's point, like Startup, etc:
@HClausing can't this be done using Dependency Injection instead?
You could register the type (probably interface) of EFCore.BulkExtensions.SqlAdapters.SqlAdaptersMapping.DbServer as a singleton, and then inject it, right?
To make it nice for the user you could add Extension methods for registering the right server.

I forgot to mention on the first topic: There's a breaking change in this PR: It' important to set the DbServer at some app's point, like Startup, etc:

@HClausing can't this be done using Dependency Injection instead? You could register the type (probably interface) of EFCore.BulkExtensions.SqlAdapters.SqlAdaptersMapping.DbServer as a singleton, and then inject it, right? To make it nice for the user you could add Extension methods for registering the right server.

I really like this ideia, thanks.
But, thinking on desktop apps, like WPF, Winforms, etc, I think we can keep the current way for compatibility, and create the DI extension for web apps. What do you think ?

Those also support dependency injection setup via the IServiceCollection don't they?
The extensions could look like something this:
    public static class ServiceCollectionExtensions
    {
        public static IServiceCollection AddBulkExtensionsMySqlAdapter(this IServiceCollection services)
        {
            if (services == null)
            {
                throw new ArgumentNullException(nameof(services));
            }

            services.TryAddSingleton<EFCore.BulkExtensions.SqlAdapters.IDbServer, EFCore.BulkExtensions.SqlAdapters.MySql.MySqlDbServer>();
            return services;
        }
    }

Those also support dependency injection setup via the IServiceCollection don't they?
The extensions could look like something this:
    public static class ServiceCollectionExtensions
    {
        public static IServiceCollection AddBulkExtensionsMySqlAdapter(this IServiceCollection services)
        {
            if (services == null)
            {
                throw new ArgumentNullException(nameof(services));
            }

            services.TryAddSingleton<EFCore.BulkExtensions.SqlAdapters.IDbServer, EFCore.BulkExtensions.SqlAdapters.MySql.MySqlDbServer>();
            return services;
        }
    }

If it is a common use case to not use DI, it makes sense to keep the current approach for those use cases.

Yes it's supported also, but I guess it's not commonly used on desktop scenario.  I can't say it with certain, but I've seen many desktop applications (in most of cases legacy apps) that didn't use DI.
About the DI sample, I liked and will push a new commit with this.
Thanks a lot!

Only now did I catch time to look more into this.
Project split is fine.
However I would like to keep the main Project/Nuget common for and to additionally have specific ones for just single provider.
I figured this can be achieved by renamed current Project from EFCore.BulkExtensions to EFCore.BulkExtensionsBase for example, and then adding one more project with original name EFCore.BulkExtensions that would include all projects for specific ones.
Another thing is to keep it without break changes, so the DbServer maybe could be created dynamically after reading providerType from context.

Only now did I catch time to look more into this. Project split is fine. However I would like to keep the main Project/Nuget common for and to additionally have specific ones for just single provider. I figured this can be achieved by renamed current Project from EFCore.BulkExtensions to EFCore.BulkExtensionsBase for example, and then adding one more project with original name EFCore.BulkExtensions that would include all projects for specific ones. Another thing is to keep it without break changes, so the DbServer maybe could be created dynamically after reading providerType from context.

Thanks for the review.
So, If a understand correctly, will be a single project named EFCore.BulkExtensions, how it is today: Untouched and without any dependencies. And another project called EFCore.BulkExtensions (why not EFCore.BulkExtensionsCore ? ) for basic implementations (and working to remove that breaking change) do be referencied to anothers projects, per provider.

Core sufix was second option besides Base, so maybe we could go with CORE.
The following would be new structure, projects:
[1]. EFCore.BulkExtensionsBase (renamed from EFCore.BulkExtensions in your fork suggestion)
[2]. EFCore.BulkExtensions.SQLServer (references [1], includes SQLServer provider)
[3]. EFCore.BulkExtensions.PostgreSQL (references [1], includes PostgreSql provider)
[4]. EFCore.BulkExtensions.MySQL (references [1], includes MySql provider)
[5]. EFCore.BulkExtensions.SQLite (references [1], includes Sqlite)
[6]. EFCore.BulkExtensions (references [2],[3],[4],[5]) - main nuget with all providers keeps full compatibility

Core sufix was second option besides Base, so maybe we could go with CORE. The following would be new structure, projects: [1]. EFCore.BulkExtensionsCore (renamed from EFCore.BulkExtensions in your fork suggestion) - shared project [2]. EFCore.BulkExtensions.SQLServer (references [1], includes SQLServer provider) - new Nuget [3]. EFCore.BulkExtensions.PostgreSQL (references [1], includes PostgreSql provider) - new Nuget [4]. EFCore.BulkExtensions.MySQL (references [1], includes MySql provider) - new Nuget [5]. EFCore.BulkExtensions.SQLite (references [1], includes Sqlite provider) - new Nuget [6]. EFCore.BulkExtensions (new project that references [2],[3],[4],[5]) - main nuget keeps all providers with full compatibility

Sorry, I didn't find free to work on it yet, before merge.
I'll finish this feature as soon as I can.

@HClausing Thx for contrib.
PR was merge, restructure made, previous comment updated according to new structure.
Nuget 6.6.0 published

@HClausing Thx for contrib. PR was merge, restructure made, previous comment updated according to new structure. Nuget 6.6.0 published

Thank you! I'm glad to help.

@borisdj it seems that something went wrong (or is delayed) in publishing the new packages.
I'm getting the following error:
[NU1101] Unable to find package EFCore.BulkExtensionsCore. No packages exist with this id in source(s): nuget.org

If I look on Nuget, I also don't see that package: https://www.nuget.org/profiles/borisdj

Delay, now it should available.
I know for the Lite, more info in issue https://github.com/borisdj/EFCore.BulkExtensions/issues/828

Solved for Lite as well.


Add missing evaluator tests

This is another set of missing cases I encountered while updating my IL emitting branch with the last couple of episodes ;)
This covers the explicit conversions, and also one of the builtin functions. The input/print functions cannot be covered at the moment (not without adding something like DI to the evaluator). However, I realized I could test the rnd() function, since that's deterministic with the input of 0, since that always returns 0.

Closing this down, since it's polluting my list of PRs. Will reopen again, when @terrajobst will continue with this course.


Table updates: Support radio menu items in a slot for additional sorting [GAUD-6122]

Jira ticket
This allows consumers to put d2l-menu-item-radio items in the items slot in order to have cases with more than asc and desc (e.g., first name/last name combinations).
Note that this does not work with sticky headers.
I'll be adding documentation with further examples in a followup story.

Will open a fresh PR for this.


refactor

Codecov Report
Attention: Patch coverage is 97.72727% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 97.06%. Comparing base (8329c49) to head (f2f710e).

Files
Patch %
Lines

pkg/events/events.go
97.61%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
- Coverage   98.75%   97.06%   -1.69%
==========================================
  Files           8        9       +1
  Lines         240      341     +101
==========================================
+ Hits          237      331      +94
- Misses          2        7       +5
- Partials        1        3       +2

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


invalid boolnull

Did a query where I just got the following error:
Uncaught Error: invalid boolnull
    at decode_boolnull (bundle-ui.js:43553)
    at decode_type (bundle-ui.js:43630)
    at decode_object (bundle-ui.js:43536)
    at decode_type (bundle-ui.js:43629)
    at Object.decode (bundle-ui.js:43642)
    at bundle-ui.js:102787
    at bundle-ui.js:148005
    at getData (bundle-ui.js:25400)
    at bundle-ui.js:25411
    at getBlock (bundle-ui.js:25380)

It came up as part of an ssb-db2 query I ran.  Not sure how to track it down, but it happened in response to this query:
SSB.db.query(SSB.db.operators.type("channel"), SSB.db.operators.toCallback((err, msgs) => { console.log("Error: ", err); console.log("Messages: ", msgs) }))

Sorry for the delayed response - been a little busy. Because of that busyness, I haven't been active enough with ssb-browser-demo to really know if this is fixed yet.

I'll close this because I think it was because of the concurrency and so not really a bug in this library.


Password input UI element (mod NumpadCharInput?)

As we get new apps, we need to input passwords sometimes - it should be easy to subclass NumpadCharInput to allow for that. Especially since there's a timeout period for each letter while it's checking for "press key one more time to move onto next letter" thing, we can easily do what typical password inputs on dumbphones do - only show the last letter and only while it's still in the "limbo" state, otherwise show them as asterisks.

Done - NumpadPasswordInput now available and wired into UniversalInput + Matrix app uses it!


Add unit tests for the remainder of org.jkiss.utils.CommonUtils

Hi,
Further to my initial PR at https://github.com/dbeaver/dbeaver/pull/5648 (adding unit test coverage for the functions that return a String, in org.jkiss.utils.CommonUtils). I have written tests that cover the remainder of this class  with the help of Diffblue Cover.
Once again, these tests should help you detect any regressions caused by future code changes.

Superb!


Provide Ubuntu 21.04 based image

In the known issues of Docker 3.4.0 they report

On Apple Silicon in native arm64 containers, older versions of libssl in debian:buster, ubuntu:20.04 and centos:8 will segfault when connected to some TLS servers, for example curl https://dl.yarnpkg.com. The bug is fixed in newer versions of libssl in debian:bullseye, ubuntu:21.04 and fedora:35.

I would like to suggest that in addition to the LTS version of each respective distribution (Ubuntu and CentOS, I believe) that an "edge" variant be provided for the newest regular release, such as Ubuntu 21.04. With that said, I am still a huge proponent of the mainline/latest images being based on LTS, so I would not want to see a change to that philosophy.
Originally posted by @itzg in https://github.com/adoptium/containers/issues/1#issuecomment-927162309

We'll be swapping to 22.04 as a base shortly.


fix(cpu): fix number cpus macos

Signed-off-by: joaorufi<EMAIL_ADDRESS>Closes #5364
Proposed Changes

Look at /sys/fs/cgroup/cpu.max file if /sys/fs/cgroup/cpu/cpu.cfs_quota_us file does not exists

I submit this contribution under the Apache-2.0 license.

@joaorufi, please, take a look at the two extra SAST vulnerabilities


Lint on unawaited futures

There's a pair of lint rules in the Dart analyzer that detect when we have a Future and neglect to await it:
https://dart.dev/tools/linter-rules/unawaited_futures
https://dart.dev/tools/linter-rules/discarded_futures
(Despite the name, unawaited_futures doesn't cover one major class of unawaited futures: those where the enclosing function isn't even async. Those are covered by discarded_futures.)
It'd be good to enable those. The bugs they catch can be pretty subtle otherwise.

Related to discarded_futures: https://github.com/dart-lang/linter/issues/3739

We resolved a large swath of this issue with #934, enabling the unawaited_futures linter rule. That covers the case where the unawaited future appears in an async function body.
The remaining task that's open here is to cover the cases where the unawaited future's enclosing function body isn't already marked with async. As discussed above, there is a linter rule discarded_futures that attempts something in that direction, but it has a lot of false positives which make it not something we can happily adopt.
So in order to make progress on the remaining part of this issue, what's needed is a new lint rule (or changes to discarded_futures) upstream. I posted a comment on that upstream issue a little while ago, at the time of the discussion above:
https://github.com/dart-lang/linter/issues/3739#issuecomment-2390079683
With that, I think there's nothing further for us to do on this but wait and hope somebody takes that on. (In principle we could dig into the Dart linter codebase and attempt to contribute a rule ourselves. Maybe at some point in the future we'll do that. But I think this particular desired rule isn't important enough to us to justify that level of investment, and certainly not to do so in the near future.)
So, moving this to our furthest-off milestone, "post-launch".


Update documentation on custom operation support

Add the mandatory restart of of Cumulocity mapper as the last step
Proposed changes

Types of changes

[ ] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Improvement (general improvements like code refactoring that doesn't explicitly fix a bug or add any new functionality)
[x] Documentation Update (if none of the other choices apply)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Paste Link to the issue

Checklist

[x] I have read the CONTRIBUTING doc
[x] I have signed the CLA (in all commits with git commit -s)
[ ] I ran cargo fmt as mentioned in CODING_GUIDELINES
[ ] I used cargo clippy as mentioned in CODING_GUIDELINES
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if appropriate)

Further comments

Closing as the bug itself was fixed with #1970


Page does not contain information as listed from another page.

[Enter feedback here]
This page is referenced by page:
https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/use-dmarc-to-validate-email?view=o365-worldwide
to learn how to "Create DNS records for Microsoft 365 when you manage your DNS records."  However this page does not provide information on how to create the DMARC record and even points back to referenced page.

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

ID: 1f2e4e45-6ad7-eb79-aecb-0d7a89b06a03
Version Independent ID: 1059223e-5759-b130-41ac-5ea98cb5367e
Content: Add DNS records to connect your domain - Microsoft 365 admin
Content Source: microsoft-365/admin/get-help-with-domains/create-dns-records-at-any-dns-hosting-provider.md
Service: o365-administration
GitHub Login: @pebaum
Microsoft Alias: pebaum

@staylor130 Thank you for your feedback. You are right, The link does not help in adding a DMARC record on your DNS host, I'll proceed with removing the statement, however, there are instructions to create a DMARC record (https://docs.microsoft.com/en-us/microsoft-365/security/office-365-security/use-dmarc-to-validate-email?view=o365-worldwide#best-practices-for-implementing-dmarc-in-microsoft-365)
once you have formed your record, you need to update the record at your domain registrar. (Instructions cannot be added as it depends on the domain registrar)
I have created to PR to remove the link from the document. This can be tracked via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/4936
Hope this helps!
Thanks
Sri

@msbemba Thank you very much for the contribution and updating the documentation with PR. @staylor130 Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


This fix issue #118

Fixing bug on job without repetition and interval specified that causes panic if its time has passed when kala was off. Issue #118
Added control on GetWaitDuration() function and test

Coverage increased (+0.06%) to 79.083% when pulling 42d288a6ce3d030cbfa20b42158f195ffdb320df on flypay:fix-issue-118 into 489d70e1c122c212fac48c7946a16abfe93fab17 on ajvb:master.

@MarcoVigna17 mind merging master into this branch?

Rebased it.

Coverage increased (+0.06%) to 79.121% when pulling 10f5cfbcbe2fc6ca170274f818b008a78f0408b9 on flypay:fix-issue-118 into 232509570a23888d0acab012bb0f7f6087ef5ccd on ajvb:master.

Looks great to me.


Added context to the json formatter

This PR adds additional context to the json formatter which allows us to log environment variables which can be used to filter right logs.

Do we actually set the context anywhere in this PR?

Do we actually set the context_kwargs anywhere in this PR?

It will set in the driver.


DOC: Update grafana address in config.md

Grafana picture URI and URL were wrong. updated them to reflect reality on Github

The link is actually correct when compiled with mkdocs. Thank your for your PR though!


[release-0.34] Update to fedora 31 as base image.

What this PR does / why we need it:
Manual backport of #4233 that merged the conflict around virt-what version in WORKSPACE.
Updating the base image to one that isn't EOL avoids using dangerously outdated packages. see #4222
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #4222 in release.
Special notes for your reviewer:
Release note:
Update base image used for pods to Fedora 31.

/lgtm
/approve
/retest
@maya-r thanks a lot.

/retest


Roadmap for mitmweb

First off, mitmproxy is such a wonderful tool; as a programmer turned pen-tester, I find it to be a lot more intuitive than using GUI-driven tools like Burp, and Zap.
The documentation states that mitmweb is still in beta, but I am unable to find any roadmap for it, or for mitmproxy in general. I'd like to contribute, and I see there are many issues to work on, but there doesn't appear to be any priorities set for any of them.
For now, I guess I'll take a look at the area/web tag.
Thanks,

Hi @oxr463,
The best way forward would be to join us on the developer Slack and chat there. We have a bunch of things planned for upcoming releases, but things are working a bit slower at the moment till July at least as we are all busy with other things. :)
Best,
Max


add rest example tests

@pkriens  I'm trying to play around with enroute rest application and I wanted to make sure I was understanding the input/outputs of the rest endpoints.  So I wrote up some tests and added them here.  Two of these tests are failing.  I'll mark them in the comments and see if you can help out.

Squashed the commits and force pushed.


:heavy_dollar_sign: Added detail popup window

:heavy_dollar_sign: Added detail popup window
:heavy_check_mark: Added Modal window for each work item
:heavy_check_mark: Dynamically rendered work section items

Hi @mahabubx7,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.

Invalid Code Review Request
You have submitted a project, that has some templated texts on your README. Kindly remove them.

Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready 🙏
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.

Invalid Code Review Request does not count into the code reviews limit.

Hi @mahabubx7 ,
While you made a great effort in this project, unfortunately, I cannot proceed to review your code.
Invalid Code Review Request
You have submitted a project that does not use GitHub flow. GitHub flow.
Your Code Review Request will be marked as invalid in your Dashboard, so please submit a new one once you are ready pray
Cheers and Happy coding!clapclapclap
Feel free to leave any questions or comments in the PR thread if something is not 100% clear. Please, remember to tag me in your question so I can receive the notification.
Please, do not open a new Pull Request for re-reviews. You should use the same Pull Request submitted for the first review, either valid or invalid unless it is requested otherwise.
Invalid Code Review Request does not count into the code reviews limit.

Can you point me to my git-flow missing?

@wayungi Okay, I have changed my default branch to main.
Please, re-check this :pray:


=<IP_ADDRESS> fastapi integration problem

Describe the bug
Traceback (most recent call last):
File "/usr/local/bin/uvicorn", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 410, in main
run(
File "/usr/local/lib/python3.11/site-packages/uvicorn/main.py", line 578, in run
server.run()
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 61, in run
return asyncio.run(self.serve(sockets=sockets))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "uvloop/loop.pyx", line 1517, in uvloop.loop.Loop.run_until_complete
File "/usr/local/lib/python3.11/site-packages/uvicorn/server.py", line 68, in serve
config.load()
File "/usr/local/lib/python3.11/site-packages/uvicorn/config.py", line 473, in load
self.loaded_app = import_from_string(self.app)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 24, in import_from_string
raise exc from None
File "/usr/local/lib/python3.11/site-packages/uvicorn/importer.py", line 21, in import_from_string
module = importlib.import_module(module_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/app/main.py", line 7, in
from propan import RabbitBroker
File "/usr/local/lib/python3.11/site-packages/propan/init.py", line 3, in
from propan.cli.app import *  # noqa: F403
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/propan/cli/init.py", line 1, in
from propan.cli.main import cli
File "/usr/local/lib/python3.11/site-packages/propan/cli/main.py", line 10, in
from propan.cli.docs import docs_app
File "/usr/local/lib/python3.11/site-packages/propan/cli/docs/init.py", line 1, in
from propan.cli.docs.app import docs_app
File "/usr/local/lib/python3.11/site-packages/propan/cli/docs/app.py", line 12, in
from propan.cli.docs.serve import serve_docs
ModuleNotFoundError: No module named 'propan.cli.docs.serve'
To Reproduce
Almost the fastapi integration doc.
from propan import PropanApp
...

And steps to reproduce the behavior:

...

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Add propan -v command output to show your current project and system environment
Additional context
Add any other context about the problem here.

Ah, seems you were slightly faster than me :-D


Document support for sqlite

Now that @zemelLeong has added support for both mysql and sqlite, we should make sure to update docs and design diagram to reflect that.

Seems that this https://github.com/roapi/docs.git needs to be updated. I'll do that in this weekend.

closed? looks like it is done at 2022-05-30 https://github.com/roapi/docs/blob/main/src/config/databases.md

I will close it first.
Feel free to re-open if need


Wiki out of date, segment file needs to mention it's a tab delimiter now

I would make the change but no Wiki access.

thanx just changed!


import unstructured.partition.auto crashes Python

Describe the bug
Calling import unstructured.partition.auto crashes Python.
To Reproduce
import unstructured.partition.auto

or
from unstructured.partition.auto import partition

Expected behavior
Python would not crash.
Environment Info
C:\Users\ethan\collect_env.py:5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
OS version:  Windows-10-10.0.19045-SP0
Python version:  3.12.4
unstructured version:  0.14.10
unstructured-inference is not installed
pytesseract is not installed
Torch version:  2.3.1
Detectron2 is not installed
PaddleOCR is not installed
Libmagic version: file-5.45
magic file from /usr/share/misc/magic

Additional context
Tested with 0.14.10 and 0.14.9. Originally noticed in UnstructuredFileLoader._get_elements(). In this context it usually seems to hang instead of crashing, but run alone it consistently crashes.

Actually, this appears to be a downstream issue with python-magic on Windows. Running pip install python-magic-bin fixed this. Sorry for any inconvenience.


 ### Summary

Fixes #
Lorem ipsum dolor sit amet, consectetur adipiscing.
List of changes proposed in this PR (pull-request)

Lorem ipsum dolor sit amet, consectetur adipiscing.
Lorem ipsum dolor sit amet, consectetur adipiscing.

What should a reviewer concentrate their feedback on?

[ ] Lorem ipsum dolor sit amet, consectetur adipiscing.
[ ] Everything looks ok?

Opened in error


Add id and name props to all form components

See discussion in #222 and this discussion.

I will check if every form components can handle id and name.

I'm quite confident that they should since they all use the same underlying functions like generic_input/4, select/4 and datetime_builder/5.

In the meantime, I suggest to put the "opts" back into date, time and datetime component mentioned above and make a separate merge request to implement the id and name in all the form components.

Yeah, I believe we should keep opts even if we add id and name. This way we keep the component more flexible regarding future changes in the underlying functions. So, yes. I think you can keep opts and then later add id and name to all components.
Originally posted by @msaraiva in https://github.com/msaraiva/surface/pull/222#r535454291

@msaraiva  After few investigations, the name props will not be an issue. However, the id props makes the component stateful.
The doc says:

A stateful component is a component that receives an :id on live_component/3

I am not sure we could easily add an id props to all form component and keep them stateless.

You're right. We'll need to change the way the property id of a Surface.Component is passed to the live_component. I'll take a look at it and let you know what I can do before we move on.

I am not sure we could easily add an id props to all form component and keep them stateless.

@Malian after #227 is merged, we can! 😉

@Malian #227 has been merged. Please let me know if you run into any issue.


Feature Request: Allow extern paths (& custom serializers) to play nicely with other code generators

Is your feature request related to a problem? Please describe.
Consider the case of a project like mine that has some protobuf files, call one message AwesomeMessage. In Rust there is prost_build generating a crate, call it "awesome_proto_crate". I may also have some Rust code that uses the prost_build-generated types, call it "awesome_rust_code". In Dart there is protoc_builder generating some Dart files for the same .proto files, call it "package:awesome_proto". What happens is that when FRB translates "awesome_rust_code", it will end up making a Dart file like "package:awesome/src/rust/api/api.dart", which will have an AwesomeMessage type, and the FRB-generated AwesomeMessage will not be compatible with the package:awesome_proto version of AwesomeMessage.
Describe the solution you'd like
To solve this, something like
#[frb(external, ExistingType(package='awesome_proto'))]`
impl AwesomeMessage {}

would be able to declare to FRB that instances of awesome_proto_crate::AwesomeMessage should become imports & references to package:awesome_proto's copy of AwesomeMessage. Now there would only be one AwesomeMessage in the Dart project, but there's a question: How does FRB serialize/deserialize AwesomeMessage? To answer this, FRB must maintain a per-type list of (rust serializer, dart deserializer) pairs to send data to Dart and (rust deserializer, dart serializer) pairs to send data to Rust.
Describe alternatives you've considered
Another alternative is to build a bunch of boilerplate to effective implement .into() on the Dart side to translate the FRB-copy of some data into the other Dart version. This could be built into FRB as well, for example,
#[frb(external, ExistingType(package='awesome_proto', converter='frb_awesome_message_into_other_awesome_message')] and then FRB could keep its serialization and just help the programmer by tacking on an extra conversion step after deserialization.
Additional context
Obviously protobuf serialization isn't always as good as the native serialization from a performance perspective but in many cases it will be adequate when the project must use certain existing Dart classes. (Also, if one side has serialized data cached already, it could be fast...) Note also that this idea is driven by protobufs but it could apply to anything where there is an existing Dart type that is hard to modify for some reason.

Looks reasonable! A quick brainstorm of API, maybe we can do something like:
#[frb(some_marker_name_to_be_determined(dart = AwesomeMessage, package = awesome_proto))]
fn encode_awesome_message(obj: AwesomeMessage) -> Vec<u8> {
  obj.serialize_protobuf_into_bytes()
}

and we auto extract the Rust type (AwesomeMessage), the intermediate type (Vec<u8>, and corresponding Uint8List), and the Dart type (from annotation)
(just a draft, feel free to propose anything else!)

That looks nice and clean to me. One wrinkle is the encode fn probably needs to support a Result.
e.g. in this code:
        let mut buf = vec![];
        let r = prost::Message::encode(&l2, &mut buf);

r is a Result<(), prost::EncodeError>.
Another type I looked at just returns a straight Vec<u8>, so that would work there as well.

Oh yes, totally reasonable, we can do something like
#[frb(some_marker_name_to_be_determined(dart = AwesomeMessage, package = awesome_proto, decode = "AwesomeMessage.from_bytes(raw)"))]
fn encode_awesome_message(obj: AwesomeMessage) -> anyhow::Result<Vec<u8>> {
  obj.serialize_protobuf_into_bytes()
}

(for simplicity maybe support anyhow Result first)

Makes total sense considering anyhow is used so widely within FRB already.

(... and widely used within whole Rust ecosystem I guess ;) )

Got a chance to look at the docs and start implementing it. Impressive change.
Can you share if/how this works when the custom serialized type is a member of a translated or opaque type?
e.g.
#[frb(mirror(Thing))]
pub struct _Thing {
    pub inner: Option<Vec<HasCustomSerDer>>,
}

Whether the custom-serialized type is pub use or use, and whether the containing type is translated or opaque, I am seeing compile errors on build web around the trait IntoIntoDart<_> due to transform_result_dco, the trait bound wasm_bindgen::JsValue: frb_generated::CstDecode<_>. I think this might mean that those other serializers/deserializers don't know they should switch to the custom serializer/deserializer when they encounter this type, but I'm not sure.

Apparently I still don't understand full_dep, I think you told me to use it for a different bug, but without it, I can compile and use this feature which is super helpful. Thanks!

 Roughly speaking full_dep controls default codec to use etc. You can also manually specify codec function by function as well but that will be tedious.


Replace model iterator in fit problem with something less tricky

Although my (ab)use of the model iterator in FitProblem is kind of cute we should probably disable it.
The bugs that arise from holding an individual model after the iterator are too subtle: the model will still evaluate, it will just be using the free variable values from the final dataset for all models.
Some ugly named function can return the models and hopefully clue in the reader that something funky is going on. For example:
for model in problem.cycle_free_variables(): ...

Any name that makes it obvious that model is only valid during the iteration will do.

So - we would replace the FitProblems.models (property, iterator) with this function?  Would it output a list, or would it still be a generator? Would this solve the problem of unexpected behavior from holding individual models?

This doesn't solve the problem of holding on to the individual models, it just warns the developer that there is something funky with the list of models.
We could eliminate the problem by setting the free parameters equal to the free variables and cloning each model in turn. We will need to limit the cloning to the parameter level, copying the reference in the slot rather than cloning it. We can do this by adding a __deepcopy__ method to parameter. We probably want to do this anyway since cloning a parameter should copy rather than clone any references.
The cloning operation only needs to be done at the start of the fit (i.e., in model_reset). It removes one level of substitution during model evaluation so it's actually a slight performance benefit. However it doesn't eliminate the problem: If someone tries to cycle through the models after changing the structure but before model_reset is called then they will still get garbage.
I'll stick with my original recommendation: remove the model property and add the cycle_free_variables method so that errors are a little less likely, and lots of code comments so that spelunkers don't try iterating over _models.


Great job! Could you provide some examples? Thanks!

Hello,
thanks for your interest, you can look at unittests for some examples, else just wait us to be ready for a release


[Updated] OpenEBS Installation Document.

Signed-off-by: Utkarsh Gupta<EMAIL_ADDRESS>Appropriate changes has been made in the document.
Closes https://github.com/openebs/openebs/issues/1445.
CC: @kmova; @NisantaSahoo.

@kmova Sir,
Any ETA on this?

@utkarsh2102 Can you close this PR and raise the PR against staging branch?

Instructions are updated with 0.6 release


Bug report: spo apppage add errors out

Description
"spo apppage add" errors out with the message: Cannot find resource for the request CreateFullPageApp.
My suspicion is that CreateFullPageApp is not provisioned on all tenants.
Running the request with the same webpart data but using the CreateAppPage API works as expected.
Steps to reproduce
m365 spo apppage add --title "TestAppPage" --webUrl "https://kloyberdev.sharepoint.com/sites/ClosingProcessTracking" --webPartData $webpartdata --debug
where $webpart is a json text with correct webpart data.
Expected result
Should create the app page.
Actual result
Errors out.
Environment
Latest version of CLI.

Thank you for reporting the issue @ksdaniel we are sorry for the trouble. Lets see if we can solve this for you.
Could you provide the error message that you receive after running the command?
Also, if you run the command with the --debug flag, could you provide the output, omitting the bearer tokens shown in the response.

Error message is: Cannot find resource for the request CreateFullPageApp.
Command runs in Windows Terminal / Powershell.
Full debug output below.
Executing command spo apppage add with options {"options":{"_":["spo","apppage","add"],"title":"TestAppPage","t":"TestAppPage","webUrl":"https://kloyberdev.sharepoint.com/sites/ClosingProcessTracking","u":"https://kloyberdev.sharepoint.com/sites/ClosingProcessTracking","webPartData":"{"id": "e84a4f44-30d2-4962-b203-f8bf42114860", "instanceId": "15353e8b-cb55-4794-b871-4cd74abf78b4", "title": "Milestone Tracking", "description": "A tool used for tracking project milestones", "serverProcessedContent": { "htmlStrings": {}, "searchablePlainTexts": {}, "imageSources": {}, "links": {} }, "dataVersion": "1.0", "properties": {"description": "Milestone Tracking"}}","d":"{"id": "e84a4f44-30d2-4962-b203-f8bf42114860", "instanceId": "15353e8b-cb55-4794-b871-4cd74abf78b4", "title": "Milestone Tracking", "description": "A tool used for tracking project milestones", "serverProcessedContent": { "htmlStrings": {}, "searchablePlainTexts": {}, "imageSources": {}, "links": {} }, "dataVersion": "1.0", "properties": {"description": "Milestone Tracking"}}","debug":true}}
Existing access token still valid. Returning...
Request:
{
"url": "https://kloyberdev.sharepoint.com/sites/ClosingProcessTracking/_api/sitepages/Pages/CreateFullPageApp",
"method": "post",
"data": {
"title": "TestAppPage",
"addToQuickLaunch": false,
"webPartDataAsJson": "{"id": "e84a4f44-30d2-4962-b203-f8bf42114860", "instanceId": "15353e8b-cb55-4794-b871-4cd74abf78b4", "title": "Milestone Tracking", "description": "A tool used for tracking project milestones", "serverProcessedContent": { "htmlStrings": {}, "searchablePlainTexts": {}, "imageSources": {}, "links": {} }, "dataVersion": "1.0", "properties": {"description": "Milestone Tracking"}}"
},
"headers": {
"common": {
"Accept": "application/json, text/plain, /"
},
"delete": {},
"get": {},
"head": {},
"post": {
"Content-Type": "application/x-www-form-urlencoded"
},
"put": {
"Content-Type": "application/x-www-form-urlencoded"
},
"patch": {
"Content-Type": "application/x-www-form-urlencoded"
},
"user-agent": "NONISV|SharePointPnP|CLIMicrosoft365/3.3.0",
"accept-encoding": "gzip, deflate",
"content-type": "application/json;odata=nometadata",
"accept": "application/json;odata=nometadata",
"authorization":
},
"responseType": "json",
"decompress": true
}
Request error
{
"status": 404,
"statusText": "Not Found",
"headers": {
"cache-control": "private, max-age=0",
"transfer-encoding": "chunked",
"content-type": "application/json;odata=nometadata;streaming=true;charset=utf-8",
"expires": "Wed, 25 Nov 2020 22:50:17 GMT",
"last-modified": "Thu, 10 Dec 2020 22:50:17 GMT",
"server": "Microsoft-IIS/10.0",
"x-sharepointhealthscore": "3",
"x-sp-serverstate": "ReadOnly=0",
"dataserviceversion": "3.0",
"spclientservicerequestduration": "36",
"x-aspnet-version": "4.0.30319",
"sprequestguid": "5e10969f-60b7-2000-9093-a6147aed9fdd",
"request-id": "5e10969f-60b7-2000-9093-a6147aed9fdd",
"ms-cv": "n5YQXrdgACCQk6YUeu2f3Q.0",
"strict-transport-security": "max-age=31536000",
"x-frame-options": "SAMEORIGIN",
"content-security-policy": "frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.stream.azure-test.net *.microsoftstream.com;",
"x-powered-by": "ASP.NET",
"microsoftsharepointteamservices": "<IP_ADDRESS>25",
"x-content-type-options": "nosniff",
"x-ms-invokeapp": "1; RequireReadOnly",
"p3p": "CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"",
"date": "Thu, 10 Dec 2020 22:50:17 GMT",
"connection": "close"
},
"data": {
"odata.error": {
"code": "-1, Microsoft.SharePoint.Client.ResourceNotFoundException",
"message": {
"lang": "en-US",
"value": "Cannot find resource for the request CreateFullPageApp."
}
}
}
}

Hey @ksdaniel, I can reproduce the error. Let me see if I can find out more about it.

It's seems like there was a change in the underlying API that we use for this. Let's see if we can fix it quickly. Sorry for the trouble.

The workaround, for those who need to create app pages, is to use the CreateAppPage API (I call it directly from Insomnia for my current needs) - so its not really a blocking issue.
But in terms of CLI - the functionality is missing for now.
Thanks for the quick response... awesome team.

We have a PR with a fix to the issue which we will get merged and release in a preview release in the coming days. I'll post an update here when it's available for testing. Thanks again for reporting the bug 👍

We have just released a preview version with the fix to this issue. You can install it by running npm i -g @pnp/cli-microsoft365@next. Once again, thank you for reporting the issue 👏


lbrycrd connection refused

I'm attempting to install lbrycrd, chainquery and lighthouse locally.
Got lbrycrd running with rpcuser=lbry and rpcpassword=lbry (as it seems to be the defaults used by chainquery, unlike what the readme says)
However, starting chainquery, I get this error:
Initializing LBRYcrd Client: Post "http://localhost:9245": dial tcp [::1]:9245: connect: connection refused
The rpc url it's using is: rpc://lbry:lbry@localhost:9245
Any ideas what I'm doing wrong?

What version of lbrycrd are you using? It must be <= 17.4.5

Thanks Mark, I was using the latest of all components...


Remove escaped names of well known symbols from string completions

When reporting completions for string literals we were incorrectly including the internal escaped names of ES symbols, such as __@iterator or __@species.
Fixes #19349

@DanielRosenwasser, any other comments?


Add a project name to timer

First of all, I love the simplicity of this app, really useful. However, it would be even better if you could type a project name each time you start the timer, this way you would know which project you worked on that day. Its kind of hard to remember what you worked on and when throughout the day, especially if you are working on 5-6 different jobs a day.

Will not implement tagging.


Might wanna add an integration of GitHub into the server so you can see the issues listed on the repository.

I know you can do this. Idk how, or if you want to, but I know you can.

So like, a place for 'Known Bugs' or something?  If you try running the !help command, there's a bit of info about Issues; see if that's what you're looking for. Or do you just mean pull the list of issues as opposed to having to navigate to GitHub? @Komorebiao

I mean pull the list of issues as opposed  to coming to discord. I know there's tons of bots that  can post a feed of stuff. Again that's if that's a feature you would be interested in. If you wanted to do that you might be even able to get a live feed that posts into a specific chat and lists off the things reported under the issues tab once you've assigned them a label...
sounds like more work tho soooo ¯_(ツ)_/¯ if u wanna


build: ensure build uses typescript 3.9

We recently updated TS 3.9 in the package.json with https://github.com/angular/components/pull/19286, but the build did
not pick up the new version. This is because peer dependency ranges
did not accept TS 3.9, so yarn hoisted sufficient TS versions.

Is this also blocked on https://github.com/angular/angular/pull/36989?

@jelbourn Not necessarily as we:

Ignored the @angular/compiler-cli MAX_TS version.
We overwrote the peer dependency range from @angular/compiler-cli on TypeScript through Yarn resolutions
Are not affected by the ngcc issues that surfaced with TS 3.9 because we use tsickle for decorator downleveling (which ngcc properly handles)

I guess it's up to preference whether we want to merge this or not. We can certainly wait until framework lands their PR so that we don't need (1) an (2), but we can also land this and remove (1) and (2) in a follow-up.


ganeti: init at 3.0.0rc1

Motivation for this change
I'm working on packaging Ganeti, a virtual machine cluster management tool that originated at Google and is now maintained by an open-source community.
I got it to build, and I'm now sorting through the tests, before I'll move on to a module.
I'll share this now so the progress I made is public and others can pitch in if they'd like.
Things done

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

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] 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)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

I lacked the energy to create the runtime environment back then, and I think now I'm rather looking at incus.


Current Dev branch does not build for IL2CPP

Unity 2017.2.0f1
IL2CPP scripting back end.
VS 2017 15.3.5

Test

Strange, this worked a few builds ago, and none of the errors are from new things. Perhaps an IL2CPP bug?

Did we ever test to make sure the IL2CPP built for the master branch merge?

@StephenHodgson I don't believe I tested it post-merge, but many of these errors are on scripts that were unchanged from the merge, like HapticsExtensions and ControllerVisualizer, which I know have built with IL2CPP in the past.

I'll check again

Master branch has the same issue.  I think it has something to do with the .NET 4.0+ compatibility.

Yep, changing the API Compatibility Level to .NET 4.6 allows the project to build. It looks like this was previously set in the dev branch, but was overwritten by my merge from master. I'll put out a PR to change it back.

@keveleigh, could you open the PR on master branch, since if affects both?


Even with administrator privileges no inject

I try to run r3nzskin TFT but I don’t have it inject. At first I thought I had an old version but even downloading the latter I have nothing worked. Next I tried to give the administrator rights and still failed! I ask you to help me pls

I try to run r3nzskin TFT but I don’t have it inject. At first I thought I had an old version but even downloading the latter I have nothing worked. Next I tried to give the administrator rights and still failed! I ask you to help me pls

This version is outdated.
Use this fork instead: https://github.com/rumi-chan/Sakura