[CARBONDATA-3743] Added pre-priming check in the Spark job description page

Why is this PR needed?
Added pre-priming check in the Spark job description page
What changes were proposed in this PR?
Does this PR introduce any user interface change?

No
Yes. (please explain the change and update document)

Is any new testcase added?

No
Yes

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2456/

Build Success with Spark 2.4.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.4/748/

@vikramahuja1001 Please update the PR description, Changes Added

@vikramahuja1001 Please fix comments

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/932/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2642/

retest this please

Build Failed  with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/937/

Build Failed  with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2647/

@vikramahuja1001 Please fix the build

@kunal642 , the build is completing. There seems to be some issue with jenkins.

retest this please

Build Success with Spark 2.4.5, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbon_PR_Builder_2.4.5/967/

Build Success with Spark 2.3.4, Please check CI http://<IP_ADDRESS>:12545/job/ApacheCarbonPRBuilder2.3/2680/

LGTM


Throttling

Awesome library, pretty much exactly what I was looking for! There is one feature I'd still like to have, though.
I'd like to have the ability to create throttled dispatchers, that is, dispatchers which run no more than X jobs per time (e.g. 5 per minute), regardless of which rate new jobs are created at.
This could be helpful when sending out large amounts of e-mails, for example. Say, I want to send an e-mail to each of 1,000 users every Friday night, but don't want to send them all at once, but over a period of 30 minutes, to relieve the mail server a bit.

Sorry for the delay, thanks for the feedback! That is an interesting concept, I'll see if I can get that added soon. I'll report back soon. Thanks!


Update Unix build instructions to inclide openSSL build from scratch

Added compile your openSSL from Aciddudes forum Guide

Aditional information for docs, doesn't effect code..


feat: uploading to prefix.dev

@0xbe7a I refactored the code a little bit and added progress bars to each of the methods. Do you think you can test this for quetz & artifactory?
This also allows to put more than a single package for uploading, e.g.
rattler-build upload prefix --channel my-test *.conda

Looks good, i will test the Quetz and Artifactory upload later today

OK, let me know how it goes and then I'll merge :)

Works as advertised, ready to merge! 🤠


Change in PDF Extraction Results

Hi, today I noticed a sudden change in the way text is extracted from PDFs. It seems like a lot of the binary content is being included. This is causing our tests to fail:

We've been able to resolve this quickly on our end by downgrading the package version; but just wanted to give you guys a heads-up.
EDIT: On further investigation, it looks like a change in the python API caused the issue:
Traceback (most recent call last):
  File "/home/bls/Downloads/code/bbot/bbot/modules/extractous.py", line 135, in extract_text
    buffer = reader.read(4096)
             ^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'read'

Thanks for @TheTechromancer reporting this. In version 0.2.0, we changed the API to return a tuple of reader and metadata. add this to your extract call: reader, metada = extractor.extract_ ...
Please look at the updated Docs


Add cookie protection

[ ] Decide if we still need cookie signing with MAC: https://github.com/yiisoft/security/blob/master/src/Mac.php
[ ] If yes, add it to https://github.com/yiisoft/yii-web/blob/master/src/Cookie.php.
[ ] Decide on how to retrieve value w/o signature from request.

Would you accept PR for PSR-15 cookie encryption middleware? I have a baked solution for our project already on yii3.

Encryption isn't the same as MAC-signing. What's the use case for encrypting a cookie?

Yep, it's true. But they are two things that are sometimes used exclusively for the same purpose, or even as a best practice used both together. Encryption is used when you have somewhat sensitive data you need to store in cookies (by saying somewhat I mean the data that is still ok to store in cookies as really sensitive data must not be stored in cookies). Also encryption of cookies can be sometimes be used as an alternative of signing, as the data will be malformed if somebody tampers it on client side. But ideally they are used together first the data is encrypted and then the data is signed. Cookie encryption middleware can also have a key exclusion map, to define the keys to be excluded during encryption, so that they are available unencrypted on client side while still having other more sensitive values encrypted.
As they are very similar in purpose and functionally, I will be happy to implement both cookie signing and encryption PSR-15 middlewares and try to document their usage (right order).

OK.


Howdy!

What about a super-simple, how-to!
Your code looks great, would love to try it.  Cheers.

Of course! Give me one or two days and I'll have one posted on here :)


Render and Commit

Page: https://id.react.dev/learn/render-and-commit
Assignee: @vhermawan

PR ready to review #354


displaying bug in TrackScheme

Hi,
there exists a Mastodon project (opening will fail fidning image data, please open with DUMMY instead) in which the TrackScheme will not render a complete tree, will leave blank regions instead -- it happens at various scales, see below. The project above will open windows, in particular a TS window with a view set to demonstrate this effect.
The first view:

Resizing the window doesn't necessarily help:

Fails unf. even on a different scale:

(when zoom-in vertcially a bit, it get's better-- also a proof that the data is/should be there)

ok to close?


Adding Aegis to Simulate Zone - LB Monitor

Hello, Cloudflare employee here. Can we add another feature enabled by Simulate Zone (within LB Monitors): Dedicated Egress IP ?

@wolruf are you ok with the proposed changes I made to this PR?

thanks, yes, it's excellent!


Implement Adjacency Matrix aggregation

This is not yet documented and will probably be included in upcoming versions of ES.

Completed in #725


Extra window remains when using addTextFieldWithConfigurationHandler

I tried to use this in my project but ran into an issue when the text field is used.  If I type in the text field, and then get the text from the text field in the submit handler, the alert dismisses but the window remains and my app behaves as non-functional (I can't tap anything because the window is on top).

I haven't really used text fields with a UIAlertController before, so I'll have to write some code to reproduce your issue.
Do you have a strong reference to your UIAlertController? If so, the internal UIWindow will not be dismissed. I'm counting on the alert being the only strong reference to the window, so when the alert is released the window is released with it.

Here's the code I'm using:
`            DBAlertController *passwordAlert = [DBAlertController alertControllerWithTitle:@"Enter Password" message:@"Please enter your password",nil) preferredStyle:UIAlertControllerStyleAlert];
        [passwordAlert addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) {
            textField.secureTextEntry = YES;
            textField.placeholder = @"password";
        }];

        UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {

        }];
        [passwordAlert addAction:cancelAction];

        UIAlertAction *submitAction = [UIAlertAction actionWithTitle:@"Submit" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {

            NSString *password = passwordAlert.textFields.firstObject.text;
            //do something with the password
        }];
        [passwordAlert addAction:submitAction];

        //we don't know where this came from, present it on top.
        [passwordAlert showWithAnimated:YES completion:^{}];`

It references the alert text field inside the completion handler to get the text of the field.  Does this count as a strong reference?

I am having the same issue with iOS 9.

If you reference the alert within a UIAlertAction handler you will get a strong reference cycle.
Here's the solution: http://stackoverflow.com/a/25713688/2088780

OK thanks, I'll try this out.


Change padding-left to margin-left for boolean labels

Fixes #1122

Looks good! This will definitely need a CHANGELOG entry, as it can be a breaking change for many ppl.

Do you want me to create one? If so, under which version number? (Latest entry stands at 3.1.2)

@Morred I'll do it, no problem. cheers!


chore: bdd-spring-1574291930 to 0.0.1

chore: Promote bdd-spring-1574291930 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


78 menyxml should be the same when generated on linux and on windows

Slashes and datetime-format should be ok now
What to do with ordering ... see issue ...

The mac trailing space:
The trailing space is in the languageless alias file.
The reason it pops up for macos is that that file is applied last on mac, but first on windows
foreach (var item in System.IO.Directory.GetFiles(path))
windows:
Logged: Readind alias from :Alias
Logged: Readind alias from :Alias_en
Logged: Readind alias from :Alias_sv
macos:
Logged: Readind alias from :Alias_en
Logged: Readind alias from :Alias_sv
Logged: Readind alias from :Alias

Declare macos  Os non grata   :-)
Prune the file list , and log error when there are 2 files for one language
Remove the extra alias file and ignore the issue

One of the two alias files should perhaps be removed or commented that this is not best practice.
@likp @runejo Any opinions?

I lack experience but it may look like it's a common practice to have duplicate files https://github.com/statisticssweden/PxWeb/tree/master/PXWeb/Resources/PX/Databases/Example/alias
Anyway, can't we just sort the files ref https://learn.microsoft.com/en-us/dotnet/api/system.io.directory.getfiles?view=net-6.0

I think this is done now.  @likp @runejo
The spider sorts alias.txt first so that the default is applied before the language specific.
File-size is ignored in the test. They have small variations between the OSes, but that is ok I think.


pull request for e2e test at 01/06/2017 14:15:08

:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Update doxygen for provisioning and hub

Update the doxygen for consistency (spacing).
Use @note over @remark to make important info pop a bit more.
Added a pseudo-code code snippet for sas keys.

Use @note over @remark to make important info pop a bit more.

So, that yellow bar? Makes sense.

Use @note over @remark to make important info pop a bit more.

So, that yellow bar? Makes sense.

Yup just draws the eyes a little more.


MQTT over WS - Client cannot subscribe successfully

BUG REPORT
Hi all and thank you for this great project. We are facing the following issue during our upgrade procedure from Mainflux v0.12.1 to Magistrala v0.14.0.

What were you trying to achieve?
We are trying to use MQTT over websocket.

What are the expected results?
We use a JS client to connect and subscribe to an MQTT topic over websocket. The expected result is that the client correctly connects and subscribes to the topic and receives messages over the websocket.

What are the received results?
From the client's perspective, the connection is successful but the subscription to the topic fails. The logs in the mqtt-adapter service are the following:

{"time":"2024-03-29T14:52:35.820944112Z","level":"ERROR","msg":"failed to publish connect event : context canceled"}
{"time":"2024-03-29T14:52:35.821087883Z","level":"INFO","msg":"connected with client\_id \<client-id>"}
{"time":"2024-03-29T14:52:35.825325252Z","level":"ERROR","msg":"disconnected client\_id \<client-id> and username \<username>"}
{"time":"2024-03-29T14:52:35.825458365Z","level":"WARN","msg":"Broken connection for client","error":"failed to proxy from MQTT broker to client with id \<client-id> with error: unexpected gRPC status: Canceled (status code:Canceled) : context canceled"}

The first two logs are printed during the connect procedure, while the last two logs are printed during the subscribe procedure. From the client perspective, it seems that the connection is successful, but subscribing to the topic fails.

What are the steps to reproduce the issue?

Deploy Magistrala v0.14.0 that uses mProxy v0.4.2
Create the required entities (domain, user, thing and channel) with the appropriate permissions
Use a client to connect and subscribe to a topic using MQTT over WS (we are using MQTT.js but also tried Eclipse Paho with the same results)
Subscription fails and the above logs are shown in the mqtt-adapter service.

In what environment did you encounter the issue?
Magistrala v0.14.0, mProxy v0.4.2.

Additional information you deem important:
After investigating the issue, it seems that the connection is dropped on the mqtt-adapter service (mProxy v0.4.2). We identified that the issue is in the pkg/mqtt/websocket/websocket.go file, in the handle() function:

func (p Proxy) handle() http.Handler {
	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
		cconn, err := upgrader.Upgrade(w, r, nil)
		if err != nil {
			p.logger.Error("Error upgrading connection", slog.Any("error", err))
			http.Error(w, err.Error(), http.StatusInternalServerError)
			return
		}

		go p.pass(r.Context(), cconn)
	})
}

It seems that the context is created and passed in the goroutine, but handle() returns and the context is cancelled. Therefore, the connect event is not sent to the ES and subsequent requests (e.g., subscription) fail. We tried changing the context creation by using a cancellable one, like
ctx, cancel := context.WithCancel(context.Background())
go func() {
	defer cancel() // Cancel the context when the goroutine finishes
	p.pass(ctx, cconn)
}()

This approach seems to work fine, as the client connects and subscribes to the topic successfully.
Following a discussion with @dborovcanin in Gitter, it was suggested that we test
go p.pass(context.WithoutCancel(r.Context()), cconn)

This also works fine, so the question is which is the best approach and how we can make sure that the context is properly cleaned up when the websocket is closed.
Thank you in advance for your time.

@nyagamunene Any updates on this?

Indeed, upon conducting additional testing, it has been observed that integrating the suggested solution effectively resolves the issue on Magistrala.

@dborovcanin, @nyagamunene thank you both for the feedback and the fix.

@kostasbalampekos welcome, Anytime


[Video]: Video shows first frame on Pause.

Description

Open this link.
Pause/Play video or check the attached video.

Component(s) impacted
https://user-images.githubusercontent.com/35252877/194358432-6d7c2e5e-c5d6-4573-8bb5-a7a59b4fac0d.mp4
Browser
Firefox
Carbon for IBM.com version

Severity
Severity 1 = The design is broken in a critical way that blocks users from completing tasks or damages the brand. Affects major functionality, no workaround.
Application/website

Package
@carbon/ibmdotcom-web-components
CodeSandbox example

Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Hi! I just received the notification. This issue hasn't been resolved.

@adsingh14 This doesn't seem to be using any components from this package.


#if directive page should mention csproj's

The  tag for csproj files isn't documented anywhere. It should be documented and linked in this page.
One of the most useful usages of  along with #if directive is when a code file is referenced in multiple projects and a small part of the code needs to be different for each project (for example, due to one of these project not having access to a certain API).
#if CONSTANT_DEFINED_IN_PROJECT1
    // Use API available to project1
#else
    // Use API available to project2
#endif

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

ID: a331b150-4033-7629-75ad-9f9ea74f3ce5
Version Independent ID: 8e0adfd9-c41b-d059-a418-155021a95d7b
Content: #if preprocessor directive - C# Reference
Content Source: docs/csharp/language-reference/preprocessor-directives/preprocessor-if.md
Product: dotnet-csharp
Technology: csharp-language-reference
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks for writing this @Youssef1313
Are you saying this page should provide information about how to set variables in the csproj file? If so, I agree.


Bugreport: Icon

First, I would like to say that I love VS Code. There is no comparable editor with so much valuable plugins.
But still I have to report a bug in the icon.
Unfortunately, you simply forgot a vertical line.

Thanks in advance!

@NF997 this is as designed to distinguish VSCode from VS.

I do understand and appreciate, that you care about colorblind people, but for me it's just simply a pain looking at this two icons side by side having not the exact same shape.


UI don't hide history_show and don't display clone from rails_admin_clone

Describe the bug
When i upgrade and app from ruby 2.5 to 3.1 rails_admin with rails_admin_clone not show options on UI
Reproduction steps
My config/rails_admin.yml has
config.actions do
# root actions
dashboard                     # mandatory
# collection actions
index                         # mandatory
new
bulk_delete
clone                         # Add the clone action
custom action 1
custom action 2
custom action 3
custom action 4
export
import
# member actions
show
edit
delete
end
But my User Interface not showing me the clone or customer actions
Expected behavior
The UI should hide history_index, history_show and shows me the custom actions and clone
Additional context

rails version: 7.0.1
rails_admin version: ˜> 3.0
rails_admin npm package version: 3.1.1

the problems is that even if rails_admin_clone is not installed .. the history_index, and history_show is always present on my UI and my customer actions set are not display. and with my previous version all works as was expected. but now with the upgrade not


Take stock of XML extraction

Split from #126 : Inspect how we extract from the XMLs and what

What I noticed here:

during data extraction we get a lot of warnings
most of them are probably false positives
some may be indications of a regression introduces when switching from beautifulsoup to lxml (my guess would be different null/error behavior)
in many places we add "dummie" data (like "N/A", "unknown", 0,  etc.) when we don't find anything. It would be much better to just not return anything there, so the fields in the DB remain empty. This would mean that in the DBModels some fields would need to be marked Optional
some times we have really flaky or overly aggressive error handling
more generally, metadata.py, metadatahandler.py and tamer.py need to be cleaned up to remain maintainable

Obviously not all of this should be addressed in this issue, but it relates to this one so I decided to add it here so we don't lose track.

So about that dummy data: should it be returning None in those instances? Or just simply not have a return statement at all?

Should be None (and in the model this needs to be marked as optional). Then the ORM will simply not insert anything in the DB for those instances. I would guess that's how it's supposed to be done, not sure though. (If you find a better way, go ahead!)

OK!
Currently trying to tidy up the whole mess that is tamer/metadata; should we move all the xml extraction stuff into the tamer? Or should we move all the ms extraction util stuff from tamer to metadata? I would say the first one makes more sense, since those functions should not be needed /accessed from any where else.

Either sounds like an improvement, so whatever you prefer. Or you could go "all in", and try to apply the dependency inversion thing that I hinted on in the docs, to future prove the architecture.On 3 Feb 2023 16:22, Sven Kraus @.***> wrote:
OK!
Currently trying to tidy up the whole mess that is tamer/metadata; should we move all the xml extraction stuff into the tamer? Or should we move all the ms extraction util stuff from tamer to metadata? I would say the first one makes more sense, since those functions should not be needed /accessed from any where else.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>


tests: fix unstatble test test_prevote_reboot_minority_followers

Signed-off-by: linning<EMAIL_ADDRESS>
What have you changed?
test test_prevote_reboot_minority_followers failed, because a peer unexpected send a MsgRequestVoteResponse response to an unexpected pre-condidate which happen because the handle interval of  leader's Readiness are much more longer the election_timeout(maybe because not enough CPU resource), thus many msgs from leader are send and handle by follower after many election_tick. This pr fix it by increase the raft_election_timeout_ticks.
What is the type of the changes?
Pick one of the following and delete the others:

Bugfix (a change which fixes an issue)

How is the PR tested?
No
Does this PR affect documentation (docs) or should it be mentioned in the release notes?
No
Does this PR affect tidb-ansible?
No
Refer to a related PR or issue link (optional)
close #5615

/run-all-tests

/release

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

/run-all-tests

Can the case be tweaked so that no additional wait time is required?

Can the case be tweaked so that no additional wait time is required?

PTAL @BusyJay


Append URL without Loading Any Content

Hello,
This is my situation:

Form contents are submitted using normal ajax.
If successfully saved, it will return DocumentID

How can I append the DocumentID to the URL without reloading the whole page?
New document: /form.php
Edit document: /form.php?docid=14
After saving the document, I would like to append similar to Edit document URL format.
How can achieve this with pjax?
Would be great if someone can point me how to do this.
Thank you.

You either need to submit the form with pjax instead of ajax or consider using the browsers history api

Let see for example:
$.ajax({
		type     : "POST",
		url      : "form_submit.php",
		data     : dataString,
		dataType : "json",
		success  : function(response) {
			docid = response.docid;

If i am using pjax to submit this form, will it not change the url from /form.php to /form_submit.php ?
The DocumentID that I am intended to use is being returned by form_submit.php

You can make pjax to change the url to whatever you like using  a X-PJAX-URL response header.
See https://github.com/defunkt/jquery-pjax/blob/master/jquery.pjax.js#L695

superb! i will try to amend the code first. just to confirm, can i set my header like this?
header('X-PJAX-URL:' . '?docid=' . $docid);

Yep

i am using this method for my sub-content area, but if i leave it empty, it doest work. I need to give value in the header
header('X-PJAX-URL:');
header('X-PJAX-URL:dashboard');
this the command i am using to invoke:
$.pjax({url: 'dashboard_recent_addition', container: '#recent_addition'});
because it is a sub-content, i do not want to update the URL.
And i would like to show a loading div, so, how can I bind $(document).on('pjax:start' into a $.pjax

Specific implementations of pjax in your own applications are left as an exercise to the reader. I hope that by now, you have accomplished what you needed with pjax!


Scale ratio between zoom levels must be 2

I'm trying to access open WMTS that uses different CRS. This is map servers address: http://gis.arso.gov.si/arcgis/rest/services/Lidar_hillshade/MapServer
Custom CRS is not a problem. I registered new CRS with:
gmaps.ags.Util.registerSR(102060,'PROJCS["MGI / Slovene National Grid",GEOGCS["MGI",DATUM["D_MGI",SPHEROID["Bessel_1841",6377397.155,299.1528128]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",15],PARAMETER["scale_factor",0.9999],PARAMETER["false_easting",500000],PARAMETER["false_northing",-5000000],UNIT["Meter",1]]');
The issue is, that apparently it uses different zoom levels that are not supported by GMaps? Is there a workaround for this issue?
Error I'm getting:

Uncaught Error: This type of map cache is not supported in V3.
Scale ratio between zoom levels must be 2
at new Projection (arcgislink.js:3077)
at TileLayer.init_ (arcgislink.js:3196)
at MapService. (arcgislink.js:3183)
at MapService. (js?sensor=false:117)
at trigger (js?sensor=false:115)
at triggerEvent_ (arcgislink.js:206)
at MapService.setLoaded_ (arcgislink.js:1946)
at arcgislink.js:1929
at Object.jsonpcallback (arcgislink.js:792)
at legend?callback=ags_jsonp.ags_jsonp_2_249908&f=json:1

Can you create a static html page that reproduces this and I'll take a look?

Hi,
live example is here: http://dibatista.com/gmaps/examples/mercator2.html
Thanks.

I was hoping there would be a quick win I could come up for you @MaticDiba but I think you'll need to use another mapping library or republish that map layer yourself with the right LOD resolution ratios.


Remove docker related build tasks

Context
Conda-store was once able to build docker images. This feature has not been working for some time, and is not currently being used. It would be nice to remove this feature to reduce cruft in the code base. If it becomes clear that it would be helpful to have this feature again, it should be re-implemented with a more modern approach.
Value and/or benefit
The goal of this is to remove cruft and simplify the conda-store app.

@peytondmurray do you have opinions about if this should go thru a proper deprecation cycle, or if it's ok to yank out? It looks like this is not really in a working state, so I'd opt to yank it.


Refresh button

I wonder how and where to check the payload information?
I want to add a function to use the 🔄 button.

I did not implement the refresh option, but if you want the the information about the request go to inspect->network and then your actions are recorded, if you click on the button in discord you will see the data you need.


Update README.md

The boilerplate README.md doesn't explain much about the project, and has a bunch of developer environment boilerplate.  Let's split that out into a CONTRIBUTING.md file, and make the README.md more inviting to new users.

Finished!


dragSelectState is selecting incorrect items if data source isn't static list

Hello 👋🏽, DragSelectState behaves very weird when item list isn't static.
For an example, I'm fetching data from on-device database(Room) using the following:
val deletedPhotos by localPhotoViewModel.repository.allCameraTrashedPhotos.collectAsState(emptyList())
val dragSelectState = rememberDragSelectState<PhotoEntity>(compareSelector = { it.uid!! })

Now drag-select works fine when data loads for the first time. But when some more rows are added/deleted from database, then sometimes drag-select selects incorrect item, or sometimes can't select/de-select items.
I'm not sure whether I'm doing something wrong, or whether there is an issue in library. Here is how I'm rendering images:
            items(photos.size) { index ->
                val isSelected by remember {
                    derivedStateOf { dragSelectState.isSelected(photos[index]) }
                }

                PhotoItemContent(
                    item = photos[index],
                    inSelectionMode = dragSelectState.inSelectionMode,
                    isSelected = isSelected,
                    modifier = Modifier
                        // Add semantics for accessibility
                        .semantics {
                            if (!dragSelectState.inSelectionMode) {
                                onLongClick("Select") {
                                    dragSelectState.addSelected(photos[index])
                                    true
                                }
                            }
                        }
                        // If we are in selection mode allow the item to be toggleable
                        .then(
                            if (dragSelectState.inSelectionMode) {
                                Modifier.toggleable(
                                    value = isSelected,
                                    interactionSource = remember { MutableInteractionSource() },
                                    indication = null, // do not show a ripple
                                    onValueChange = { toggled ->
                                        if (toggled) dragSelectState.addSelected(photos[index])
                                        else dragSelectState.removeSelected(photos[index])
                                    }
                                )
                            } else {
                                Modifier.clickable {
                                    onClickPhotoItem(navController, photos[index])
                                }
                            },
                        )
                )
            }

Please let me know if you can help here or need more info.
I have also attached a recording of the user experience here:
https://github.com/jordond/drag-select-compose/assets/58887170/853307cb-3f47-4e19-81b5-da5df10c0062

It's a bug for sure, I'll look into it 👍. Thanks for reporting.

Hi @jordond, Do you have any estimation on when it will be fixed? Just trying to understand the timeline so that I can prioritise things at my end.

I have no timeline or estimate on my end. I can only work on this in my spare time, but I am open to contributions if you wanted to take a crack at it.

I'll attempt to fix it. However I'm still a hobby Android programmer, and learning it since last ~6 months. So can't be sure about it. I'll raise a PR if I'm able to fix it.

I created #188 to fix this issue.


Keep object instances inside data

If I add an instance of an object to the data property, it will not work because of JSON.parse. Adding deep jQuery extend method checks for those instances, creating a deep copy of the objects or arrays but keeping the object instances untouched.
var cobj = {
    copyme: true,
    deepcopyme: {
         copyme: true
    }
};
var obj = $.extend(true, {}, cobj);
// obj == cobj returns false
// obj.deepcopyme == cobj.deepcopyme returns false

function instanceme() {
}
var instance = new instanceme();
var cobj = {
    copyme: instance
};
var obj = $.extend(true, {}, cobj);
// obj == cobj returns false
// obj.copyme == instance returns true, as expected

Using JSON.parse and JSON.stringify not only breaks the instance, but throws an error if the instance has a cyclic reference.

There were a lot of complaints about jstree keeping a reference and not a copy of the objects, so I decided to always use a copy. This is why I will not merge this now (it would mean breaking backwards compatibility), but keep in mind - in version 4 which will be out next year keeping a reference will be the default behavior.

Yes, deep $.extend makes a copy of the objects too. Only keeps reference of "uncopiable" objects (instances), but will not keep a reference to the object that holds the instance (Just in case an instance is passed).
When an instance is created, noone wants it being destroyed because of removing the prototype, because will stop working as expected. That's why default jQuery deep extend method don't destroys instances, because noone wants them destroyed. A destroyed instance is broken.
Notice how I'm talking about instances, not plain objects.
In the first part of the code above you can see how objects are perfectly copied when doing extend, not having the same reference, but in the second part you can see that instances (new objects) are kept instead of destroyed.
And here you can see how instances are destroyed by JSON.parse()
function a() {
    this.b = {
        "asd": true
    };
}
a.prototype.f = function() {
    return this.b;
}

var b = new a();

console.log(b.f());

var c = JSON.parse(JSON.stringify(b));

console.log(c.f()); // Error

I'm prety sure that noone that does a new Object wants a broken copy of that object but keep the instance, because that's exactly the opposite reason of why someone is doing a new Object.

Sorry, it has been a hectic few weeks - you are absolutely right.
However - just a couple of questions before merging this and your other PR - what are your thoughts on using ....slice() when copying an array, and on using JSON.parse(JSON.stringify(...)) when copying a plain object? The reason I used those was performance - they were quite a lot faster than jQuery extend - has that changed? Do you have any observations?

I've found a jsperf that does the extend vs JSON test vs custom method, and extend/JSON are almost the same: https://jsperf.com/deep-copy-vs-jquery-extend/7
I've also read posts telling that extend was slow as hell. Maybe that has changed.
The custom function is double faster. If performance at this point is critical, maybe we can do our own custom extend method with the same conditions as jQuery extend. Btw, extend and JSON are pretty fast: Thousands of operations per second, and I don't think that anyone is going to create thousands of nodes per second xD And if someone does, having the browser hang for 1 second I think is pretty acceptable, as creating thousands of nodes at the same time when having a tree with dynamic load is not normal...
Slice is fast as hell but because don't do deep cloning, just the first level. Maybe someone is passing an array of objects (like me) that each object needs cloning too. I don't need to clone the objects passed, but maybe someone in the future needs so. That's why I deep extended the array with jQuery.

I see - I will then merge this as is, and if someone complains - I will fix as needed.
Thank you for the input.


-adobe-helvetica fonts issue

Hi there,
I Wanted to get a glance at your work and after a large amount of time to install all the dependencies needed on my Ubuntu 16.04 to make it work (with the right R install) I'm still unable to see something !
When I look at the result server, every graphic is replace by
impossible de charger la police X11 -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 9
Which means it failed to load the font X11 "-adobe-helvetica-%s-%s---%d-------* " . I went on Google to find the Helvetica font but I was not able to find it. Is there a way to change the font being used ?
Best regards,
Raphaël

Hi Raphaël,
thank you for the interest!
As for your issue, this does not seem to be related to the package itself.
What package were you able to install, and which not? In other words, can you call
library("pcaExplorer")
in R?
It would anyway sound like an Ubuntu thing. A quick search with the error message as keyword got me to these:

https://askubuntu.com/questions/449578/x11-font-adobe-helvetica-s-s-d-face-2-at-size-11-could-no

Since I did not use any custom font/else with the plotting, it sounds new to me.
Would you please check if the reply I linked could solve it?
Federico

Like you said it's not "directly" related to your package. What I wanted to say is that I had to install R 3.4 and several system libraries manually on my Ubuntu to be able to satisfy all R dependencies to install pcaExplorer (XML, pandoc, X11, ...). It sounds to me that most of the people wont go that far to install your software. It could be really helpful to have more help on this part in the documentation, even some advertisement/tips would be great. I agree it's not the package fault but the package itself is unusable without the system part.
That makes me wonder on which system you are working.
For the error part, I installed a lot of fonts/xfonts packages (even the ones pointed out in the forum post) to see whether it would do something but it did not. It seems helvetica is a font that may not exist on Ubuntu... It would be interesting to see which dependency of yours is using this font and if you can do something to it. Given the error message, something is enforcing the font to use and it should not.
Raphaël

Here is the stack traces in case it may be of interest for you :
Warning: Error in grid.Call: impossible de charger la police X11 -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 9
Stack trace (innermost first):
    122: grid.Call
    121: widthDetails.text
    120: widthDetails
    119: <Anonymous>
    118: grid.Call
    117: convertUnit
    116: convertWidth
    115: FUN
    114: vapply
    113: width_cm
    112: guide_gengrob.legend
    111: FUN
    110: lapply
    109: guides_gengrob
    108: build_guides
    107: ggplot2::ggplot_gtable
    106: print.ggplot
    105: print
     94: <reactive:plotObj>
     83: plotObj
     82: origRenderFunc
     81: output$samples_pca
      4: <Anonymous>
      3: do.call
      2: print.shiny.appobj
      1: <Promise>
Warning: Error in grid.Call: impossible de charger la police X11 -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 9
Stack trace (innermost first):
    136: grid.Call
    135: widthDetails.text
    134: widthDetails
    133: <Anonymous>
    132: grid.Call.graphics
    131: push.vp.viewport
    130: push.vp
    129: push.vp.vpTree
    128: FUN
    127: lapply
    126: pushViewport
    125: pushgrobvp.viewport
    124: pushgrobvp
    123: pushvpgp
    122: preDraw.gTree
    121: <Anonymous>
    120: grid.Call.graphics
    119: push.vp.viewport
    118: FUN
    117: lapply
    116: pushViewport
    115: pushgrobvp.viewport
    114: pushgrobvp
    113: pushvpgp
    112: preDraw.gTree
    111: preDraw
    110: drawGTree
    109: recordGraphics
    108: grid.draw.gTree
    107: grid::grid.draw
    106: print.ggplot
    105: print
     94: <reactive:plotObj>
     83: plotObj
     82: origRenderFunc
     81: output$samples_scree
      4: <Anonymous>
      3: do.call
      2: print.shiny.appobj
      1: <Promise>
Warning: Error in grid.Call: impossible de charger la police X11 -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 9
Stack trace (innermost first):
    136: grid.Call
    135: widthDetails.text
    134: widthDetails
    133: <Anonymous>
    132: grid.Call.graphics
    131: push.vp.viewport
    130: push.vp
    129: push.vp.vpTree
    128: FUN
    127: lapply
    126: pushViewport
    125: pushgrobvp.viewport
    124: pushgrobvp
    123: pushvpgp
    122: preDraw.gTree
    121: <Anonymous>
    120: grid.Call.graphics
    119: push.vp.viewport
    118: FUN
    117: lapply
    116: pushViewport
    115: pushgrobvp.viewport
    114: pushgrobvp
    113: pushvpgp
    112: preDraw.gTree
    111: preDraw
    110: drawGTree
    109: recordGraphics
    108: grid.draw.gTree
    107: grid::grid.draw
    106: print.ggplot
    105: print
     94: <reactive:plotObj>
     83: plotObj
     82: origRenderFunc
     81: output$reads_barplot
      4: <Anonymous>
      3: do.call
      2: print.shiny.appobj
      1: <Promise>
Warning: Error in grid.Call: impossible de charger la police X11 -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 9
Stack trace (innermost first):
    85: <Anonymous>
    84: stop
    83: plotObj
    82: origRenderFunc
    81: output$reads_barplot
     4: <Anonymous>
     3: do.call
     2: print.shiny.appobj
     1: <Promise>
Warning: Error in grid.Call: impossible de charger la police X11 -adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*, de face 1 et de taille 9
Stack trace (innermost first):
    85: <Anonymous>
    84: stop
    83: plotObj
    82: origRenderFunc
    81: output$reads_barplot
     4: <Anonymous>
     3: do.call
     2: print.shiny.appobj
     1: <Promise>

Like you said it's not "directly" related to your package. What I wanted to say is that I had to install R 3.4 and several system libraries manually on my Ubuntu to be able to satisfy all R dependencies to install pcaExplorer (XML, pandoc, X11, ...). It sounds to me that most of the people wont go that far to install your software.

Well I hope it is not the case. I am happy that many already do use it, and the many dependencies you had to install are mostly due to a fresh installation of R. Many of the packages are indeed already in common use when using Bioconductor.
For an alternative way of installing, have you thought of bioconda? You can find the package also there: https://anaconda.org/bioconda/bioconductor-pcaexplorer

It could be really helpful to have more help on this part in the documentation, even some advertisement/tips would be great

As I said, the error raised is new to me, so I could not put this in the documentation, especially if I was not able to reproduce it. The tips and tricks for installing some packages on Ubuntu are often the top results just by googling the related error message

That makes me wonder on which system you are working.

Devel machines: iMac + macbook pro, plus some testing on a local windows machine, and on top of it, continuous integration via TravisCI (see the badge in the Readme.md)

For the error part, I installed a lot of fonts/xfonts packages (even the ones pointed out in the forum post) to see whether it would do something but it did not. It seems helvetica is a font that may not exist on Ubuntu... It would be interesting to see which dependency of yours is using this font and if you can do something to it. Given the error message, something is enforcing the font to use and it should not.

Checking the stack traces, it looks like it is related to Grid/ggplot2. Maybe worth seeing if that introduced relevant changes? Or also, as additional test, can you do simple plots via ggplot2?

Thanks for guiding me to focus my searches on ggplot. With the ggplot keyword, I came across this : https://bioinformaticsngs.wordpress.com/2016/04/18/r-x11-font-adobe-helvetica-s-s-d-face-1-at-size-12-could-not-be-loaded/
So if you add
# default X11() setting
setHook(packageEvent("grDevices", "onLoad"),
	function(...) grDevices::X11.options(width = 8, height = 8, xpos = 0, pointsize = 10, type = "cairo"))

to your ~/.Rprofile and it works just fine
I never had this problem before, since I'm using cairo .
For the rest, I hope you are not taking offense of what I'm saying, I'm not criticizing but giving ideas. Working in the diagnostic field of Human genetics, I'm a bit severe about installation procedures... I'm not saying you should complete the diagnostic standards (hell, no) but it took me a bunch of time to install pcaExplorer properly and I would have liked to be warned on this subject (the time it may take). An advertiser like "pcaExplorer is using a lot of R dependencies, If you're going to do a fresh R install It might take some of your time to install the needed system libraries to make it working" sounds good to me. This way the user is warned and by the way you also say that you are not responsible for the problems occurring with this part.
Raphaël

Very good you found a solution! Probably it is new to me since I normally rely on X11.

For the rest, I hope you are not taking offense of what I'm saying, I'm not criticizing but giving ideas.

No offense taken 😃

An advertiser like "pcaExplorer is using a lot of R dependencies, If you're going to do a fresh R install It might take some of your time to install the needed system libraries to make it working" sounds good to me.

Sounds like a nice sentence to put in the README.md. By the way, I am sure someone also used the "server edition" of pcaExplorer (https://github.com/federicomarini/pcaExplorer_serveredition). If you intend to have it on a small server for your group, it can avoid repeating the installation procedure.
Closing up the issue and marking your reply as the one containing the solution 😉


Build test for create, and execution

You did it @openanthem-admin!
Thank you for signing the Anthem Opensource Software CLA.


Log the output of upgrade prechecks

When the build fails on prechecks code, it would be nice to see
the reason.

why not just cache it once ...

Could be a way, right, but I think @abel-navarro refused it originally for some reason...


The expectation given in the "Expect" request header () could not be fulfilled

This is my block of code and I am constantly getting the errorDomain=NSCocoaErrorDomain Code=3840 "Invalid value around character 0.
let parameter = ["mobileNumber":number]
let header = ["accessToken" : newToken,"Content-Type":"Application/JSON"]
let url1 = NSURL(string: baseUrl + registerMobileUrl)
Alamofire
.request(.POST, url1!, parameters: parameter, encoding: ParameterEncoding.JSON, headers : header)
.responseString { response  in
print("All header fields are (response.response?.allHeaderFields)")
print("the response main of register mobile is (response)")

Most likely parameter encoding is failing when trying to encode the JSON in the HTTP body of the URL request.
I would suggest taking this question to Stack Overflow. We use the GitHub project for reporting bugs and feature requests.
Best of luck! 🍻

From our Contribution Guidelines
Asking Questions
We don't use GitHub as a support forum. For any usage questions that are not specific to the project itself, please ask on Stack Overflow instead. By doing so, you'll be more likely to quickly solve your problem, and you'll allow anyone else with the same question to find the answer. This also allows maintainers to focus on improving the project for others.


[WIP] [scripts] Add operator-courier verify test

Add operator-courier to install-deps
Add verify script for operator-courier verification test

Builds off of changes in #71
/cc @estroz

@estroz Applied your suggested changes

Closing in favor of #183


[identity] Support Federated Identity for Service connections - new credential

Packages impacted by this PR
Issues associated with this PR
Fixes #27093
Gist
Describe the problem that is addressed by this PR

A new Credential is created to support the WI federation for service connections in Azure Devops.
For complete details on the design please review Gist
Alternate designs that we had discussed and rejected due to complexity and bad UX- https://github.com/Azure/azure-sdk-for-js/pull/29349 and https://github.com/Azure/azure-sdk-for-js/pull/28628
We are not supporting this in DAC at the moment because of introduction of complicated design issues in DAC. Also we don't see this niche scenario that should be added to DAC.
We can always make additional changes in the future to DAC with minimal design changes once Devops service provides better environment variable support for this scenario. But if we introduce the support now, we'll have to expose the parameter through DAC Options bag and it can be disruptive to remove in the future.

Work TBD:

[ ] Update TS guide
[ ] Update error messages
[ ] Test it out for all scenarios

Checklists

[x] Added impacted package name to the issue description
[ ] Added a changelog (if necessary)

Reminder to add the new credential type to https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/README.md#credential-classes

done

Does this/will this work with DefaultAzureCredential?


webview not deleting cookies

When I visit www.overstock.com, log in and then sign out, the status is still log in if I re-enter the app. I checked the cookies and found out the cookies could not be deleted on signing out.

@victor-zhang-000
Fixed an issue where the cookie information was not updated when it was deleted.
Would you check with the develop branch?
If it works normally, we will release that version.

@victor-zhang-000
1.0.1 release and available in CocoaPods 🎉


OM10 lens galaxies all have 1" effective radius

As hacked by @jbkalmbach and pointed out in #57. This needs fixing in the OM10 package, issued here. I am duplicating it so that I don't let this slip through the cracks.

Sonnenfeld and I worked on this during the Hack Day, and made some good progress I thought. We'll see if we can get a better OM10 in time for Run 2.

Update: we are planning to use CatSim galaxies in place of OM10 lens galaxies, matching by redshift and velocity dispersion #310

Closed by Merging of #334 to close #310


Issue was coming from the definition of SpatialPad (self.ldm_resizer)…

… and Crop (self.autoencoder_resizer). The spatial_size passed included a [-1] to cover the channel dimension. The code, as it was written, made the assumption that this channel dimension was a spatial dimension and that the batch dimension was the channel one, leading to errors related to the affine transform of the MetaTensor being wrong. self.ldm_resizer should operate on an unbatched version of the tensor, hence we changed the call to the resizers by one that uses decollate and then stacks the elements of the batch together again.

@ericspod I have changed this to not wrongly assume that the batch is the channel, as was done before - this is what I understood from the MONAI Core discussion (https://github.com/Project-MONAI/MONAI/issues/7323). This makes more sense and seems to work fine.


PHP grpc client leaking memory

When running the example route_guide_client.php a bit of memory are leaking.
It becomes really problematic when a client is running in a worker (or any long running process).
You can see how obvious is the memory leak with that script
<?php
require dirname(__FILE__).'/../vendor/autoload.php';

@include_once dirname(__FILE__).'/route_guide.pb.php';
@include_once dirname(__FILE__).'/route_guide_grpc_pb.php';

$client = new Routeguide\RouteGuideClient('localhost:50051', [
    'credentials' => Grpc\ChannelCredentials::createInsecure(),
]);
$point = new Routeguide\Point();
$point->setLatitude(409146138);
$point->setLongitude(-746188906);
for($i=0;;$i++) {
    $client->GetFeature($point)->wait();
    usleep(30000);
    if($i%1000) {
        echo "~" . (memory_get_usage() * 10e-6). "Mb\n";
    }
}

> grpc/examples/php/route_guide$ php leak.php
~13.90104Mb
~13.90888Mb
~13.9164Mb
~13.92392Mb
...
~20.78888Mb
~20.7964Mb
~20.80392Mb

The environment:
> grpc/examples/php/route_guide$ php -v
PHP 7.0.15-1~dotdeb+8.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-1~dotdeb+8.1, Copyright (c) 1999-2017, by Zend Technologies

> grpc/examples/php/route_guide$ pecl list
INSTALLED PACKAGES, CHANNEL PECL.PHP.NET:
=========================================
PACKAGE VERSION STATE
grpc    1.1.0   stable

It may be related to that issue #8074

Which protobuf implementation / version are you using?

I work with @dysosmus and we are using proto3

Which version? Is it 3.1.0? or 3.2.0?

Oh oh. I think I only tried with 3.0.2 which is pretty old. Will try with 3.2.0 tomorrow.

So google/protobuf only starts supporting PHP proto3 since 3.1.0. With 3.2.0 being the latest

I  check and we are using 3.1.0 I'm going to try if 3.2.0 change something.

Hi,
We are using grpc 1.1.0 and protoc 3.1.0 under a lumen project and we've serious leaking memory problems (about 8Mb per http request).  This makes impossible to use it under production enviroment.
Any solution to this error?
Best Regards.
Antonio.

We've found an intermediate solution using a wrapper written with phpcpp and grpc (c++ version). Now we've zero memory leaks in php.

This is a real production blocker for us and this issue has been open for a while know, is there a fix coming soon?
Setup info:

extension - grpc 1.2.0 stable
package - "grpc/grpc": "^v1.3.0"
protoc - 3.3.0
PHP - 5.5.38
Apache - 2.4.25

Sorry for the delay. I am working on PR #11003 which will hopefully address this.
Before the fix, output of the script at the top of this issue:
~19.44656Mb
~19.44784Mb
~19.4488Mb
~19.44976Mb
~19.45072Mb
~19.45168Mb
~19.45264Mb
~19.4536Mb
~19.45456Mb
~19.45552Mb
~19.45648Mb
~19.45744Mb
~19.4584Mb
~19.45936Mb

After the fix
~19.44464Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb
~19.44496Mb

Closing this. This should be fixed in the 1.3.2 version released today.


Improve blog article summaries presentation with translator metadata in front matter

This is a Feature Request
What would you like to be added
In #45865, the "author" metadata was added to the front matter. Currently, some l10n teams are also setting "translator" metadata. This is one of the initiatives to promote the localization of blog posts.
FYI: https://kubernetes.slack.com/archives/C0191RDKHU1/p1712145776110259?thread_ts=1712073000.812269&cid=C0191RDKHU1
I would like to add "translator" metadata to the blog's front matter, just like the author metadata.
Why is this needed
To promote the localization of blog articles. This would be a significant motivation for those involved in localization.
Comments

/area web-development
/area blog
/area localization

/assign

This is a great idea. It will be very motivating for localization contributors. 👍

Thank you for your interest in this issue, mengjiao-liu !
I've opened a pull request to resolve it - #47270. please have a look :)

Would be nice to add this feature.
/priority backlog
/triage accepted


[hyprland/workspaces] Make focusworkspaceoncurrentmonitor update focused workspace

[!NOTE]
As a disclaimer, I don't know C++, so the code I implemented might not have good practices.

This pull request is solving an issue that I had in my multimonitor setup, in which I have the bar duplicated in my 2 monitors.
The Issue happens when i use focusworkspaceoncurrentmonitor from hyprland (or move-to-monitor option), It doesn't update the focused monitor.
For testing, I used a configured bar in ags that works the way I spected, along side with my waybar.
Demo before.
In the video, you can see that when I switch workspaces (bringing it from another monitor), the bar configured with ags gets updated, while the bar configured with waybar don't.
Demo after.
After the changes, both bars get updated

I had the same problem but without using all-outputs. My solution was a bit simpler.
Could you try if this works ?
patch.txt

sure

Closing in favor of https://github.com/Alexays/Waybar/pull/3143


Add management commands for deploy and redeploy via heroku platform api.

Removed hard coded registers initialisation. This meant a bit of change around
404's on unknown register names.
Added util for properly logging swallowed exceptions.
Removed redundant gunicorn config.

@psd the load data management command will be in the next pull request.


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

Hello, after i try to run the  run_experiments.py from /neuralnilm/scripts , it shows "AttributeError: 'NoneType' object has no attribute 'dropna'". Does anyone know how to solve it?
The version of Theano installed is (0.8.0) and Lasagne (0.1).
(my_project) ubuntu@ubuntu:~/Desktop/Goh_new/neuralnilm/scripts$ python run_experiments.py
Using gpu device 0: GeForce GTX 1080 Ti (CNMeM is disabled, CuDNN 6021)
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/theano/sandbox/cuda/init.py:600: UserWarning: Your CuDNN version is more recent then Theano. If you see problems, try updating Theano or downgrading CuDNN to version 4.
warnings.warn(warn)
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/theano/tensor/signal/downsample.py:6: UserWarning: downsample module has been moved to the theano.tensor.signal.pool module.
"downsample module has been moved to the theano.tensor.signal.pool module.")
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/h5py/init.py:36: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._conv import register_converters as _register_converters
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/h5py/init.py:45: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import h5a, h5d, h5ds, h5f, h5fd, h5g, h5r, h5s, h5t, h5p, h5z
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/h5py/_hl/group.py:22: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .. import h5g, h5i, h5o, h5r, h5t, h5l, h5p
WARNING (theano.sandbox.cuda): Ignoring call to use(1), GPU number 0 is already in use.
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/sklearn/utils/init.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .murmurhash import murmurhash3_32
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/sklearn/utils/extmath.py:24: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._logistic_sigmoid import _log_logistic_sigmoid
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/sklearn/utils/extmath.py:26: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .sparsefuncs_fast import csr_row_norms
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/sklearn/metrics/cluster/supervised.py:23: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .expected_mutual_info_fast import expected_mutual_information
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/sklearn/metrics/pairwise.py:30: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .pairwise_fast import _chi2_kernel_fast, _sparse_manhattan
Loading NILMTK activations...
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/tables/init.py:90: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .utilsextension import (
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/tables/file.py:35: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import hdf5extension
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/tables/link.py:33: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import linkextension
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/tables/table.py:28: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import tableextension
/home/ubuntu/Desktop/Goh_new/my_project/local/lib/python2.7/site-packages/tables/index.py:33: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import indexesextension
Loading kettle for UK-DALE_building_1...
Loaded 2856 kettle activations from UK-DALE_building_1.
Loading microwave for UK-DALE_building_1...
Loaded 3181 microwave activations from UK-DALE_building_1.
Loading washing machine for UK-DALE_building_1...
Loaded 547 washing machine activations from UK-DALE_building_1.
Loading dish washer for UK-DALE_building_1...
Loaded 206 dish washer activations from UK-DALE_building_1.
Loading fridge for UK-DALE_building_1...
Loaded 16595 fridge activations from UK-DALE_building_1.
Loading kettle for UK-DALE_building_2...
Loaded 534 kettle activations from UK-DALE_building_2.
Loading microwave for UK-DALE_building_2...
Loaded 412 microwave activations from UK-DALE_building_2.
Loading washing machine for UK-DALE_building_2...
Loaded 53 washing machine activations from UK-DALE_building_2.
Loading dish washer for UK-DALE_building_2...
Loaded 98 dish washer activations from UK-DALE_building_2.
Loading fridge for UK-DALE_building_2...
Loaded 2 fridge activations from UK-DALE_building_2.
Loading kettle for UK-DALE_building_3...
Loaded 40 kettle activations from UK-DALE_building_3.
Loading microwave for UK-DALE_building_3...
UK-DALE_building_3 has no microwave. Full exception: {'instance': 1, 'type': 'microwave'}
Loading washing machine for UK-DALE_building_3...
UK-DALE_building_3 has no washing machine. Full exception: {'instance': 1, 'type': 'washing machine'}
Loading dish washer for UK-DALE_building_3...
UK-DALE_building_3 has no dish washer. Full exception: {'instance': 1, 'type': 'dish washer'}
Loading fridge for UK-DALE_building_3...
UK-DALE_building_3 has no fridge. Full exception: {'instance': 1, 'type': 'fridge'}
Loading kettle for UK-DALE_building_4...
Loaded 689 kettle activations from UK-DALE_building_4.
Loading microwave for UK-DALE_building_4...
Loaded 154 microwave activations from UK-DALE_building_4.
Loading washing machine for UK-DALE_building_4...
Loaded 154 washing machine activations from UK-DALE_building_4.
Loading dish washer for UK-DALE_building_4...
UK-DALE_building_4 has no dish washer. Full exception: {'instance': 1, 'type': 'dish washer'}
Loading fridge for UK-DALE_building_4...
Loaded 4680 fridge activations from UK-DALE_building_4.
Loading kettle for UK-DALE_building_5...
Loaded 173 kettle activations from UK-DALE_building_5.
Loading microwave for UK-DALE_building_5...
Loaded 0 microwave activations from UK-DALE_building_5.
Loading washing machine for UK-DALE_building_5...
Loaded 6 washing machine activations from UK-DALE_building_5.
Loading dish washer for UK-DALE_building_5...
Loaded 23 dish washer activations from UK-DALE_building_5.
Loading fridge for UK-DALE_building_5...
Loaded 1632 fridge activations from UK-DALE_building_5.
Loading kettle for UK-DALE_building_2...
Loaded 563 kettle activations from UK-DALE_building_2.
Loading microwave for UK-DALE_building_2...
Loaded 422 microwave activations from UK-DALE_building_2.
Loading washing machine for UK-DALE_building_2...
Loaded 57 washing machine activations from UK-DALE_building_2.
Loading dish washer for UK-DALE_building_2...
Loaded 105 dish washer activations from UK-DALE_building_2.
Loading fridge for UK-DALE_building_2...
Loaded 2 fridge activations from UK-DALE_building_2.
Loading kettle for UK-DALE_building_5...
Loaded 192 kettle activations from UK-DALE_building_5.
Loading microwave for UK-DALE_building_5...
Loaded 1 microwave activations from UK-DALE_building_5.
Loading washing machine for UK-DALE_building_5...
Loaded 6 washing machine activations from UK-DALE_building_5.
Loading dish washer for UK-DALE_building_5...
Loaded 46 dish washer activations from UK-DALE_building_5.
Loading fridge for UK-DALE_building_5...
Loaded 3232 fridge activations from UK-DALE_building_5.
Loading kettle for UK-DALE_building_1...
Loaded 0 kettle activations from UK-DALE_building_1.
Loading microwave for UK-DALE_building_1...
Loaded 0 microwave activations from UK-DALE_building_1.
Loading washing machine for UK-DALE_building_1...
Loaded 0 washing machine activations from UK-DALE_building_1.
Loading dish washer for UK-DALE_building_1...
Loaded 0 dish washer activations from UK-DALE_building_1.
Loading fridge for UK-DALE_building_1...
Loaded 0 fridge activations from UK-DALE_building_1.
Loading kettle for UK-DALE_building_2...
Loaded 29 kettle activations from UK-DALE_building_2.
Loading microwave for UK-DALE_building_2...
Loaded 10 microwave activations from UK-DALE_building_2.
Loading washing machine for UK-DALE_building_2...
Loaded 4 washing machine activations from UK-DALE_building_2.
Loading dish washer for UK-DALE_building_2...
Loaded 7 dish washer activations from UK-DALE_building_2.
Loading fridge for UK-DALE_building_2...
Loaded 0 fridge activations from UK-DALE_building_2.
Loading kettle for UK-DALE_building_3...
Loaded 20 kettle activations from UK-DALE_building_3.
Loading microwave for UK-DALE_building_3...
UK-DALE_building_3 has no microwave. Full exception: {'instance': 1, 'type': 'microwave'}
Loading washing machine for UK-DALE_building_3...
UK-DALE_building_3 has no washing machine. Full exception: {'instance': 1, 'type': 'washing machine'}
Loading dish washer for UK-DALE_building_3...
UK-DALE_building_3 has no dish washer. Full exception: {'instance': 1, 'type': 'dish washer'}
Loading fridge for UK-DALE_building_3...
UK-DALE_building_3 has no fridge. Full exception: {'instance': 1, 'type': 'fridge'}
Loading kettle for UK-DALE_building_4...
Loaded 44 kettle activations from UK-DALE_building_4.
Loading microwave for UK-DALE_building_4...
Loaded 4 microwave activations from UK-DALE_building_4.
Loading washing machine for UK-DALE_building_4...
Loaded 4 washing machine activations from UK-DALE_building_4.
Loading dish washer for UK-DALE_building_4...
UK-DALE_building_4 has no dish washer. Full exception: {'instance': 1, 'type': 'dish washer'}
Loading fridge for UK-DALE_building_4...
Loaded 145 fridge activations from UK-DALE_building_4.
Loading kettle for UK-DALE_building_5...
Loaded 19 kettle activations from UK-DALE_building_5.
Loading microwave for UK-DALE_building_5...
Loaded 1 microwave activations from UK-DALE_building_5.
Loading washing machine for UK-DALE_building_5...
Loaded 1 washing machine activations from UK-DALE_building_5.
Loading dish washer for UK-DALE_building_5...
Loaded 23 dish washer activations from UK-DALE_building_5.
Loading fridge for UK-DALE_building_5...
Loaded 1600 fridge activations from UK-DALE_building_5.
Done loading NILMTK activations.
Starting training for net ae, appliance washing machine.
------------- INITIALISING SyntheticAggregateSource --------------
------------- INITIALISING RealAggregateSource --------------
Loading NILMTK mains...
Loading mains for UK-DALE_building_1...
Loaded mains data from building UK-DALE_building_1 for fold train from 2013-04-12 00:00:00+01:00 to 2015-01-05 06:27:12+00:00.
Loading mains for UK-DALE_building_5...
Loaded mains data from building UK-DALE_building_5 for fold train from 2014-06-29 17:23:42+01:00 to 2014-08-31 23:59:54+01:00.
Loading mains for UK-DALE_building_1...
Traceback (most recent call last):
File "run_experiments.py", line 60, in
main()
File "run_experiments.py", line 22, in main
_run_job(next_job)
File "run_experiments.py", line 48, in _run_job
eval("{next_job}.run('{next_job}')".format(next_job=next_job))
File "", line 1, in
File "/home/ubuntu/Desktop/Goh_new/neuralnilm/experiment_definitions/e578.py", line 63, in run
pipeline = get_pipeline(target_appliance, activations)
File "/home/ubuntu/Desktop/Goh_new/neuralnilm/experiment_definitions/e578.py", line 185, in get_pipeline
sample_period=SAMPLE_PERIOD
File "build/bdist.linux-x86_64/egg/neuralnilm/data/realaggregatesource.py", line 65, in init
File "build/bdist.linux-x86_64/egg/neuralnilm/data/realaggregatesource.py", line 93, in _load_mains_into_memory
AttributeError: 'NoneType' object has no attribute 'dropna'
Closing remaining open files:/home/ubuntu/Desktop/Goh/Data/ukdale.h5...done

Hello, gohingsiang.Hope the message as follows can help you fix the problem that you mentioned yesterday.
some latex package that i installed in my Ubuntu16.04.
And this works for my to run the BuildSys_results_plot.ipynb nicely. Hope this can help you.

Thanks for you reply, I did found this post and the error is solved! Thanks for all the information!

Hi Jacoobr, may I have your email in case there something confusing, we can discuss individually.

Hi gohingsiang, you can contact me with this email<EMAIL_ADDRESS>I's my pleasure to discuss problem with you.

Do u guys use ukdale.h5 for your project  ?
u can try redd.h5 and https://github.com/hyl0327/neuralnilmtp is designed for redd actually.

Yes, changfangyi, we are using the ukdale.h5 for this project. But for me, I think for this particular moment I'm gonna put more attention on UK-DALE for this project. Anyway thanks for the information shared. I really appreciated it!

Hi, @changfangyi ,may i know your reproduced project is based on which github? Is it the neuralnilm or the neuralnilm_prototype?

My project is based on neuralnilm.
Here is the code:
https://github.com/changfangyi/III_NILM_DeepLearning

Hi, @changfangyi , Can you  provide me with REDD dataset for the future work with NILM project? I can't download the REDD dataset from the site that you mentioned for some reasons. Thank you very much.

ok,
you can download the data from my one drive
https://1drv.ms/f/s!AkX-2oVmhJj3gbc3dM3EFlIgblmbVw


Windows 10: Typechecking in editor gives "Can't find import" but works with language-idris plugin for Atom

I have an Idris source file which imports another file in the same directory as follows:
one.idr:
module One

foo : Nat
foo = Z

two.idr:
module Two

import one

If I try to typecheck two.idr from within Atom, using the language-idris plugin, then it works fine. But when I try the same thing in VSCode, I get the following error:
Errors (1)
(no file):0:0
Can't find import one

This is using Idris 1.0, VSCode 1.10.2, plugin version 0.6.6.

Thanks for reporting, this will be fixed in the next release.


Mention versions in README

This PR adds an entry to the Misc formats section of the README.

Coverage remained the same at 87.592% when pulling 0bcb811e0b5f970d61ee8b93e3d46269c900ee2d on fosskers:colin/add-versions into 47fdc2dd94bd113f4a95dd0c29188616ab83e182 on Geal:master.

Hi there, any thoughts on this? Should be a free merge.


overdue tasks API

Feature

Call the overdue tasks API and show the overdue tasks

Give the super user the option to create extension request for a task

Overdue tasks API https://github.com/Real-Dev-Squad/website-backend/pull/908/files

Extension Requests API https://github.com/Real-Dev-Squad/website-api-contracts/tree/main/extension-requests

Hey @ivinayakg would like to take this up


Load Browser Modules into Tab

Create a method by which browser modules can be dynamically created and loaded into dock tabs in the application shell.

Completed with issue #75.


lxc launch/init with image name from config

Before I go ahead and implement it, I wanna make sure there's not objections.
I have one yaml-file per instance which I use to specify a full container config. It contains configs, devices, profiles, the cloud-init config and sometimes even volatile.eth0.hwaddr. The only thing that's missing is the image name.
There's already a copy of the image properties in image.*. But that seems to be missing remote and alias. There's also volatile.base_image. While this might in theory work if LXD queries  all remotes and looks for an image with that hash it's both inefficient and not flexible enough since you might also want to specify a remote and image name to pull from.
So I guess what we'd have to do is introduce a new config like volatile.image_spec which you could set to e.g. images:ubuntu/kinetic.
Side-note: You might want to enable GitHub discussion for such non-issues.

I think @stgraber will have thoughts on this.
@M1cha for discussions we use https://discuss.linuxcontainers.org/ so would be better to post there first in the future.

So currently we've got lxc launch and lxc init parse stdin as InstancePut.
We could change that to instead parse stdin as InstancePost when no arguments are passed.
So this would allow lxc launch < definition.yaml where definition.yaml would include the instance name as well as its source.
Note however that the source will need to be an InstanceSource meaning it will need to include the address of the source server, alias name, certificate, ... It can't be a remote as there's no such concept in LXD itself, it's just a convenience provided by the CLI.

So this would allow lxc launch < definition.yaml where definition.yaml would include the instance name as well as its source.

It'd be great if we could still override the instance name so you can create multiple instances using the same generic config.

Note however that the source will need to be an InstanceSource meaning it will need to include the address of the source server, alias name, certificate, ... It can't be a remote as there's no such concept in LXD itself, it's just a convenience provided by the CLI.

That'd kinda sad. Couldn't we have the CLI parse part of the yaml config so it can resolve that?

No, I don't want to introduce custom YAML wrappers or structs just for this. It would also confuse users into thinking this can be sent over the REST API when it can't.
Since you want to still override the name and so not provide the entire thing, I'm not sure what's wrong with the current way.
lxc launch images:foo name < config.yaml seems to be giving you the best of all worlds, you get to easily script a different name, you have the CLI parse the remote and image for you, expending that into an InstanceSource for you and you still get to control the config, devices and profiles.


Teams in add team Popup are not filtered by teams with participation

PR includes

[ ] Bug Fix

Related issues
Resolve #300

https://github.com/taskany-inc/crew/assets/81121562/402d8c3a-ccd6-4e6d-bb4f-e57750fbe3c1


Code | Numeric Pattern 158

Hi, I'd like to work on this issue. Can you please assign it to me? Thank you


How to change font-size?

Thank you for a great theme. I have one question: how to change font-size in this theme?

You can customize by yourself.
Install node.js and run yarn dev to watch the .scss files' change. The entry file is https://github.com/g1eny0ung/hugo-theme-dream/blob/master/src/sass/site.scss
When you‘re done, run yarn prod to compress the styles.

Aha, thank you so much! I can customize it!

Aha, thank you so much! I can customize it!

Haha, glad to help you.

Aha, thank you so much! I can customize it!

Haha, glad to help you.

hey bro. I love your work. I'm having trouble changing the font of the posts too. I'm not sure what I should do after "yarn dev", it just says  Starting 'watch'...
Starting 'sassWatch'...
Starting 'jsWatch'...
can you help me a bit?

After running yarn dev, modifying the file under src will trigger an automatic build (put the modified file under static).
BTW: this method has been replaced by two configuration params: customCSS and customJS. You can refer to https://g1eny0ung.site/hugo-theme-dream/#/params-configurations?id=advanced for its usage.

After running yarn dev, modifying the file under src will trigger an automatic build (put the modified file under static).
BTW: this method has been replaced by two configuration params: customCSS and customJS. You can refer to https://g1eny0ung.site/hugo-theme-dream/#/params-configurations?id=advanced for its usage.

oh thank you so much, I thought that fonts cant be adjusted through custom CSS. My bad. Thanks again!


[BEAM-11415] Enabling new ValidatesRunner framework on Jenkins. [DO NOT MERGE]

Gotta test this out on Jenkins first before committing.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.


Check if event is cancelable before calling preventDefault - PR from mac9416 with latest master

Might help if you commented on the sections you edited. Looks like most of the changes in this pr are due to auto-formatting.

options.preventScrollOnTouch  was added but also the types need to be update too.
https://github.com/ganlanyuan/tiny-slider/blob/master/src/tiny-slider.d.ts#L118


How to recover from error?

Let's say we have this main function:
function main_ (responses) {
  responses.HTTP.mergeAll().subscribe(console.log.bind(console));

  let url$ = Rx.Observable.interval(2000).map(() => 'http://invalid.url');

  return {
    HTTP: url$
  };
}

I noticed that HTTP driver no longer sending the request if you encounter error. What's the best way to recover from error?

Hi, use RxJS error handling operators for these cases. For instance catch(). You can place it after the mergeAll() for instance.

I tried catch after mergeAll. It still makes the HTTP driver stop sending request.
However, I solved it by using flatMap + catch instead of mergeAll. Like so:
responses.HTTP.flatMap(x$ => x$.catch( ... )).subscribe( ... );

Thanks.

We need to add tests for this and docs.

I have been working on updating the http-search-github example to display errors and also allow for it to recovery after any error has occured.
I have been testing this by toggling wifi on and off before doing searches. I can get results, search again with wifi off showing an error and then turn wifi back on and get search results back as expected.
Below is the relevant code with comments. Happy to discuss and create a PR if I am on the right track.
Thanks for the great library!
import Cycle from '@cycle/core';
import {Observable} from 'rx';
import {div, p, label, input, hr, ul, li, a, makeDOMDriver} from '@cycle/dom';
import {makeHTTPDriver} from '@cycle/http';

function main(sources) {
  const GITHUB_SEARCH_API = 'https://api.github.com/search/repositories?q=';

  // Requests for Github repositories happen when the input field changes,
  // debounced by 500ms, ignoring empty input field.
  const searchRequest$ = sources.DOM.select('.field').events('input')
      .debounce(500)
      .map(ev => ev.target.value)
      .filter(query => query.length > 0)
      .map(q => GITHUB_SEARCH_API + encodeURI(q));

  // Requests unrelated to the Github search. This is to demonstrate
  // how filtering for the correct HTTP responses is necessary.
  const otherRequest$ = Observable.interval(1000).take(2).map(() => 'http://www.google.com');

  // Convert the stream of HTTP responses to virtual DOM elements
  const searchResultTree = sources.HTTP
      .filter(res$ => res$.request.url.indexOf(GITHUB_SEARCH_API) === 0)
      //We catch any http error objects and pass them through
      //This allows for retries after an error occurs
      .flatMap(x => x.catch(err => Observable.just({err})))
      .map(isRes((res) => res.body.items))
      .startWith([])
      .map(isRes((results) => //Display results
          div([
            ul({className: 'search-results'}, results.map(result =>
                li({className: 'search-result'}, [
                  a({href: result.html_url}, result.name)
                ])
            ))
          ])))
      .map(isErr(({err}) => div([ //Display error
        label({className: 'error'}, 'Error : ' + err.message)
      ])));

  const request$ = searchRequest$.merge(otherRequest$);

  return {
    DOM: searchResultTree.map(searchTree =>
        div([
          label({className: 'label'}, 'Search:'),
          input({className: 'field', attributes: {type: 'text'}}),
          hr(),
          searchTree
        ])),
    HTTP: request$
  };
}

Cycle.run(main, {
  DOM: makeDOMDriver('#main-container'),
  HTTP: makeHTTPDriver()
});

// helper functions
// source - https://github.com/killercup/cycle-webpack-starter/blob/master/app/helpers/map-errors.js
function isError(data) {
  return !!(data && data.err);
}

function identity(x) {
  return x;
}

function isRes(mapper) {
  return (data) => isError(data) ? identity(data) : mapper(data);
}

function isErr(mapper) {
  return (data) => isError(data) ? mapper(data) : identity(data);
}

Is there currently a way how to do .concatAll(), flatmapLatest() or switch() with error handling above?

To give more context, I want to have one function which takes the response$$ and perform some default error handling like when 401 (Unauthorized) then redirect to /login. But when there is none error return the response$$ stream which is taken by another function which performs the actual business logic. This has to as well avoid sending http request multiple times. Probably by using .share() somewhere in the chain? Still a bit lost in RxJs error handling:(

I think this one could work for all cases .mergeAll(), concatAll(), switch(), flatMapLatest():
res$$
  .map(x => x.catch(Observable.just('N/A')))
  .mergeAll() // or the other operators to handle stream of streams
  . //do something more

If I understand it properly there is a bit of difference, not in this case but in general. E.g. if the originating stream would be generated by Observable.Interval, the version with flatMap(...) would shut it down and continue with new one. But this one with .map could continue the original stream. I will have to try once I will get to my comp.

@vladap its probably best if you ask this on StackOverflow but I think in your latest example you are on the right track. Also try the Gitter chat room people are fairly helpful there.

Yeah, you are right I should. I thought it is good for docs purposed to answer it here because I believe this is the main point where new devs will struggle. On the other hand it is probably quite general according to RxJs.

This issue was moved to cyclejs/cycle-core#233


Combine and inline all stylesheets

Three separate requests after script loading is slow.

Done https://github.com/mapzen/scarab/pull/15


Register

@JuliaRegistrator register

Registration pull request created: JuliaRegistries/General/86158
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:
git tag -a v0.1.2 -m "<description of version>" 0a2a478393a64434027a3049964bd3471c0faacc
git push origin v0.1.2

Also, note the warning: This looks like a new registration that registers version 0.1.2.
Ideally, you should register an initial release with 0.0.1, 0.1.0 or 1.0.0 version numbers
This can be safely ignored. However, if you want to fix this you can do so. Call register() again after making the fix. This will update the Pull request.


Upgrade to Jobs API 2.1

Add support for Databricks Jobs API 2.1

thank you so much for the MR!
The one backwards compatibility decision I am on the fence about is if we should still support the Legacy JobAPI with 2.0client. That would require keeping the old jobFactory class and renaming the new one you just created to something else.
We could mark the old classes as deprecated with the plan of removing them in a future release.
The alternative is that we just do a major version increase and go ahead and deprecate the old classes now. I need to do a bit more digging to see what sort of impact this option would have.

Closing and moving to PR from another branch cc: @samshuster


Different Hologram displays between "normal use" and "MixedRealityCapture"

Overview
This issue may not cause by MRTK, it is more like an OS issue which in HoloLens.
Different Hologram displays between "normal use" and "MixedRealityCapture"
Expected Behavior
The same Hologram display in normal use, Mixed Reality Capture and Miracast.
Actual Behavior
When I use the the Mixed Reality Capture through Windows Device Portal, the Hologram looks like nearer than I do not use this function. This situation also appears when I use the Miracast function.
Steps to reproduce
Just open an app, see the Hologram display, then enable the Mixed Reality Capture or Miracast, check the Hologram display again. This situation is especially serious in the UGUI Canvas which uses the "Camera Render Mode". To be precise, I think this problem may only affects the UGUI Canvas which uses the "Camera Render Mode".
Unity Editor Version
Unity 2017.4.19f1 LTS
Mixed Reality Toolkit Release Version
2<IP_ADDRESS>

In the Windows Mixed Reality Developer Forum, there are some solutions.
https://forums.hololens.com/discussion/12237/different-hologram-displays-between-normal-use-and-mixedrealitycapture


Error when running with Psych 4.0

When running license_finder in a project that has some dependency decisions, with Psych 4.0 installed, the following error happens:
[...]/lib/ruby/gems/3.0.0/gems/psych-4.0.1/lib/psych/class_loader.rb:99:in `find':
  Tried to load unspecified class: Time

I created a pull request that fixes this.

Will the related PR be merged and this fixed any time soon or should I fork and load from our GitHub?

I am also running into this issue after upgrading my Rails project to Ruby 3.1.0 and verified that this PR fixes the issue.

I am also having this issue.

@xtreme-jason-smith @xtreme-shane-lattanzio @kmayer Is Tanzu née Pivotal née XtremeLabs via PivotalLabs still maintaining this?  Do you need maintainers?  I'm sure there are some people who would like to help keep this project alive.
The work here appears to be done, someone just needs to commit and release it.  This issue is blocking anyone who wants to update to ruby 3.1.
I apologize if you three are not the people to answer this.  I picked two of you as recent contributors, and @kenmayer as the past maintainer.  If not any of you, who is the right person to talk with?

Hi @amilligan , we have a PR in the pipeline that is going to fix this issue.

Hey @amilligan ! Yes we are still maintaining this but we have had other priorities creep up over the last 6 months. Apologies for the delays. We will be working on official 3.x support for ruby soon. This week I'll be looking at the PRs and issues I've missed over the last little while and will try to get a new version out with as much as I can thanks to community contributions


feat: add simplest user:pass authentication

🥅 Goal

the user has to log in to access the app

🟢 Scope (DO)

add users table to the database with username and password columns
implement login API endpoint that accepts username:password, authenticates the user, and sets a session cookie
implement a login page
unauthenticated user shouldn't be able to access the app
authenticated user should be able to access the app
after authentication, the user automatically being redirected to the app

❌ Not in scope (DON'T do)

user registration
bot persistence
session persistence (keep them in the application memory for simplicity; it's ok if they won't survive app restart)

To implement the feature, use

Prisma with SQLite
Nuxt server middleware
bcrypt for password hashing
lru-cache to store session tokens

Done in #4.


Be able to "resolve" Pure Data Objects using some internal map when they were changed

Resolve PD Object == parse command in the Object Node and change the number of its inlets/outlets to the new required number, disconnect previous inlets/outlets or fail if command wasn't parsed.

Done as for 807ec0d


Investigate colon handling

For instance, the current code (yaml scanner) will fail if ":" exist in value.
description: pytest: simple powerful testing with Python

The yaml library will throw ScannerError() if the input doesn't have : or have : in the value.


Allow different options per strategy

Currently, the option object is defined once for all strategies. I would like to be able to apply different options per strategy.
To illustrate my request with a use case:
I have a text area with two strategies: mentions and emoji's. For the emoji's, I want to show max 25 instead of 10 search results and display the emoji's as a 5x3 grid instead of a normal list. This would be pretty easy if I could maxCount and className options for just the emoji strategy.

Hi @marcvangend, thanks for the issue.
Because options have a responsibility to represent a dropdown's behavior, I feel something strange if parameters, which represent a strategy's behavior, have className. So, I added "id" parameter instead. Now if "id" parameter is given, textcomplete sets the value to dropdown element's "data-strategy" attribute.

Thus you can change style by:
.textcomplete-dropdown[data-strategy='emoji'] {
   //
}

When it comes to maxCount, you can implement it super easily:
textcomplete([
  {
    id: 'emoji'
    search: function (term, callback) {
      var values = // your code
      callback(values.slice(0, 25));
    },
  },
  {
    id: 'mention',
    search: function (term, callback) {
      var values = // your code
      callback(values.slice(0, 10));
    }
  }
], {
  maxCount: Infinity
})


Add french translation

I added the french translation - .po file only. Choose whatever license you want.

Thanks!


Change LF stat "empirical accuracy" to "precision"

I was using Metal's LF analysis function, which gives you the "empirical accuracy" of your LFs. It was pretty confusing, I wasn't sure if it was computing its accuracy or its precision. After some experimentation I realized it's computing rule precisions. So, I thought maybe it would be better to call it "precision" to avoid confusions.

@astarostap thanks for pointing this out!  We need to make sure our naming is clear here.  As you pointed out, in all but the simplest label model configurations, 'accuracy' is a misnomer.  More precisely, the weights are the estimated conditional probabilities.  I think this is clear in the label model now but not necessarily all helper functions throughout the repo... we'll do a cleaning pass here!


vote for editors

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11 for PR #11:

bunny:

https://bunny-hxyhob.bunnyenv.com/

result:

https://result-hxyhob.bunnyenv.com/

vote:

https://vote-hxyhob.bunnyenv.com/

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11-reopened (re) for PR #11:

bunny:

https://bunny-b7qie5.bunnyenv.com/

result:

https://result-b7qie5.bunnyenv.com/

vote:

https://vote-b7qie5.bunnyenv.com/

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11-reopened (re) (1) for PR #11:

bunny:

https://bunny-i3vm62.bunnyenv.com/

result:

https://result-i3vm62.bunnyenv.com/

vote:

https://vote-i3vm62.bunnyenv.com/

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11-reopened (re) (2) for PR #11:

bunny:

https://bunny-mxf5dn.bunnyenv.com/

result:

https://result-mxf5dn.bunnyenv.com/

vote:

https://vote-mxf5dn.bunnyenv.com/

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11-reopened (re) (3) for PR #11:

bunny:

https://bunny-tynj6m.bunnyenv.com/

result:

https://result-tynj6m.bunnyenv.com/

vote:

https://vote-tynj6m.bunnyenv.com/

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11-reopened (re) (4) for PR #11:

bunny:

https://bunny-erlbm2.bunnyenv.com/

result:

https://result-erlbm2.bunnyenv.com/

vote:

https://vote-erlbm2.bunnyenv.com/

Bunnyshell created the Environment pre-production-2 / feature/vote-editor:master / PR-11-reopened (re) (5) for PR #11:

bunny:

https://bunny-l2q6xv.bunnyenv.com/

result:

https://result-l2q6xv.bunnyenv.com/

vote:

https://vote-l2q6xv.bunnyenv.com/


Need to ensure societies associated with correct language families

Mbau Fijians (DPlace xID xd867; GlottoCode bauu1243), Lamotrek (DPlace xID xd831; GlottoCode lamo1243), and Makin (DPlace xID xd829; GlottoCode bana1287) are not associated with the language family Austronesian according to their society pages in the DPlace interface, so they (erroneously) don’t show up in a search for Austronesian languages. (Are there potentially other societies in this situation?

Yep, I know what the issue is and am working on fixing it ASAP

Fixed in #164


Add links to BLS Wallet project

Did you move this? Showing error 404: https://github.com/web3well/bls-wallet/contracts

fixed the link :) thanks for the contribution!


Add SciPy license to document

I add SciPy license to the document.
SciPy license was already added to LICENSE file (#196), but it was not reflected in the document.

LGTM!


build-digitalocean-centos69-x64-2: No space left on device

jdk-linux-x64-openj9
https://ci.adoptopenjdk.net/view/Failing Builds/job/build-scripts/job/jobs/job/jdk/job/jdk-linux-x64-openj9/3/consoleFull
04:33:10  fatal: cannot create directory at 'test/jdk/java/util/concurrent/CountDownLatch': No space left on device

@sxa A good 6Gb is taken up by the jdk11-linux-riscv-openj9-build folder in the /home/jenkins/workspace directory. As we have it added to the pipelines now, presumably we can delete the standalone Jenkins Job (and by virtue, the folder taking up this space) ?

Yes

Cool - 6.2GB free on the machine now. I'm unable to delete the project but I've disabled it now.


ZenMode only allows 1 tab per pane showing in latest insiders

VSCode Version: 1.28.0-insider
OS Version: Debian 9.3

Steps to Reproduce:

Open 2 files in separate panes while in zen mode.
Make sure both files are ctrl k + enter (non-italisized)
In one pane, try to open another file (ctrl + enter or however you please)
Note that the previous file vanishes
Exit zen mode and see that it's still there as a tab.

Does this issue occur when all extensions are disabled?: Yes

Occurs for both     "zenMode.hideTabs": false and  "zenMode.hideTabs": true

This was behaving like this since day 1. I do not really see a difference in behavior here?
Zen mode does not change anything with regards to files being opened, it just changes how they are presented.
When you say previous file vanishes in step 4, it does not vanish it is still there just not shown if you are hiding tabs, if you are showing tabs I still see it.
Pictures / videos would help if you think there is still an issue here. Also make sure you can repro without extensions

I'll upload pictures later, when I'm on the machine experiencing this bug.
If I am "showing" tabs, I don't see it. That's the bug. It doesn't behave this way in previous version for me.

Ok. Post pictures once you have them. Make sure to exit / reenter zen mode since the settings only get applied once you enter zen mode.
And make sure to not have any other funky settings / extensions

This issue resolved itself
/shrug


404 during grid items loading

GET https://awake-template.netlify.com/api/posts/page-3.json 404
On the home page, loading related posts, etc. I thought it was perhaps a modification I made, but on the demo site it's the same issue.

it's because of the way I've done the lazy load. It keeps asking for pages until it asks for a page that doesn't exist and then it stops asking (because there are only 2 pages). So when it gets to the end it will always show an ajax request error


ntopng: Add patch needed to build with newer libpcap

Motivation for this change
Fix ntopng build https://hydra.nixos.org/build/100449995
#68361
Fixes build errors for the third-party mongoose module:
In file included from
/nix/store/r5s3w32ahjzdlzsfrhybc3l2qcpi6yb2-libpcap-1.9.0/include/pcap.h:43,
                 from /build/ntopng-2.0/include/ntop_includes.h:93,
                                  from src/HTTPserver.cpp:22:
/nix/store/r5s3w32ahjzdlzsfrhybc3l2qcpi6yb2-libpcap-1.9.0/include/pcap/pcap.h:958: note: this is the location of the previous definition
   #define INVALID_SOCKET -1

src/../third-party/mongoose/mongoose.c:270:13: error: multiple types in one declaration
 typedef int SOCKET;
             ^~~~~~

Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

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

Notify maintainers
cc @

You need to remove the broken = true; # broken since commit "libpcap: 1.8.1 -> 1.9.0" as well

Thanks, done.
Maybe it would be a good idea to update to version 3.8 someday...

up for it ? It may make the patch irrelevant so it might be best

up for it ?

I gave it a shot, but it's not straight-forward.

It may make the patch irrelevant so it might be best

It indeed makes all patches irrelevant, but the build changed more significantly, so postponed for now.

ok thank you.