Moderation file upload: Attached files not visible in moderation history

Workflow attachments now show in the comments section but they should also be showing on the moderation history page

This isn't as easy as it might sound :( The files are associated with the
workflow task and the history has no link to it.
On 31 Aug. 2017 11:58 am, "Nick Charles"<EMAIL_ADDRESS>wrote:

Workflow attachments now show in the comments section but they should also
be showing on the moderation history page
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/equella/Equella/issues/305, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABnbfSGZfaQRMA-SaTzm376fOsCmrp40ks5sdhNLgaJpZM4PIMit
.

In fact we decided, the history is not the right place for it to be as it's not even necessarily current.


Fix typo in "Transactions"

I stripped the issue template because it's no more than a typo.

nice, thanks. 🙂 "Transactions" is a hard word.


fix: use NextResponse.json() in case of middleware errors

Description

currently PR'd as a hotfix to production
attempt to get fewer of these errors https://oak-national-academy.sentry.io/issues/214659/?project=4507089597300816
code copied from NextResponse docs
hard to know if this is the issue, as there are few details in the Sentry event. But this is the only place we call .error() on a response object
also, for this code to have been running, there would have been an error in this code:

    response = await authMiddleware(request, event);
    response = addCspHeaders(response, request);

:tada: This PR is included in version 1.7.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Plot bars on yAxis

Hi, How can i plot bars on yAxis that is linked to the main chart extent?
iv'e built it with d3fc and react but found this project and decided to learn vue :)
Here is an example of what i would like to create. <-- Bars on right side.
Best / F

Hi by using static data & canvas primitives. But I should stop you right away, we have a new library & it is using vanilla js.
I'd rather wait for the stable release. https://github.com/project-nv/night-vision

Hi, this looks really promising. will follow 😊 anything I can do to help in the project ?

You can try to tackle an issue (there are several levels). But most of them require a good knowledge of the lib.


[WIP] Use instances with built in instance stores instead of built in SSDs

This will fix the following, from https://github.com/hotosm/OpenMapKitServer/issues/93

Task
Description
Expected timeline
Owner
Status

Using EC2 instances with instance stores
The t3.medium uses an EBS for storage instead of inbuilt instance-storage. EBS is makes disk reads/writes slower and is $$$ as compared to instances that come with in-built SSDs. I'll set up the OMK on an instance with SSD. Instances with in-built SSDs cost more than instances that depend on EBS, so will factor in our current costs before making this decision.
End Feb
@arunasank

cc/ @hotosm/tech

Tested this with an m3.large which contains the same amount of memory and CPU as the t2.large, and costs about the same. It does not have an EBS sttached disk though, and instead has an instance store.

Merging this with the cloudformation branch since things look good. To clarify - the instance store is mounted on the root directory. So, our root directory is a 32G disk, but this is fine, because all our data is stored externally on an RDS. We save about 5c/h by using this even with on-demand instances.


TypeError: environment can only contain strings

I am getting this error http://stackoverflow.com/questions/34557822/typeerror-environment-can-only-contain-strings
Can you tell me how to resolve this error??

Hello, Thank for report this issue.
Can you tell us:

Your Python version
Django version
Dbbackup version

And also describe how the bug appears ?

Hi,
Django (1.7)
Python (2.7.6)
django-dbbackup (2.3.3)

I think you have a bad location: r'D:/backup'
Can try other way ? There's no benefit of use raw string with /.
What about:

r'D:\backup'
'D:/backup'

Already did  . . .  But issue is related to this https://mail.python.org/pipermail/python-win32/2010-April/010400.html

This doesn't look like a django-dbbackup error, but a subprocess or environment error on your system. I suspect any subprocess call on your system would result in the same error. If you keep reading the thread posted in your python mailing list thread, you can see the guy solved it by forcing his environment variables from unicode to strings.
I'm going to close this issue, but feel free to reopen it if you feel this is a django-dbbackup specific error.


Volume mapping for Theros mFramework + Piti Mods_Config

The scripting has been completely rewritten and now automatically maps files and directories into the container. See the Wiki for more information.


Example of updating the db using file

Not really an issue issue, but as there are no forums, I thought I'd ask for support here.
Already have an app in the wild and need to update the contents of the DB.
Is there an example anywhere of how to update an existing DB using say a file that contains a series of SQL insert/update type statements.
Are there any best practises for this sort of thing on iOS/Android/Windows Phone?
Thanks,
D.

In terms of data:
Ahh, yeah never thought about mass execution of inserts.
In general I try not to mix DBs used to store app data that might get updated and DBs that store user information.
If you don't merge them, then you can update the data in one simply by overwriting the file.
That said, it's probably a good thought to allow "script" execution for changes.
In terms of schema:
The library has automatic migration support. Just don't change types ;-)


Use SetCurrentValue to manipulate sibling RadioButtons

What does the pull request do?
This PR removes two cases where RadioButton forcibly sets a local value for IsChecked. The analyser doesn't report them because the control isn't setting its own values, but those of a sibling RadioButton.
This problem was spotted in #10991 but it is not the cause of the reported issue.
What is the current behavior?
Bindings of sibling RadioButtons can break when a RadioButton is clicked.

You can test this PR using the following package version. 11.0.999-cibuild0033330-beta. (feed url: https://pkgs.dev.azure.com/AvaloniaUI/AvaloniaUI/_packaging/avalonia-all/nuget/v3/index.json) [PRBUILDID]


Creates arrows inside inline code block

Hi,
Great job on the plugin, I really like what it does.
I only found 1 issue, the arrow is disabled when you are working inside a codeblock delimited by ```.
I then tried it inside an inline code block delimited by ` and it changes the characters => with the arrow.
This will be conflictual with the dataviewJS inline queries.
Would be great to deactivate the changes when you are inline.
Thanks !

This issue has been resolved with v1.1.2.


All JSbin images broken

Looks like JSbin won't load images.
Screenshot:

To recreate:
Open any of the JSbins with SVG images and open console
Sample error message:
Error: [$sce:insecurl] http://errors.angularjs.org/1.4.9/$sce/insecurl?p0=https%3A%2F%2Frawgit.com%2Fangular%2Fmaterial-start%2Fes5-tutorial%2Fapp%2Fassets%2Fsvg%2Favatars.svg
    at Error (native)
    at https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js:6:416
    at getTrusted (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js:141:36)
    at Object.c.(anonymous function) [as getTrustedResourceUrl] (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js:142:289)
    at e (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js:144:237)
    at https://rawgit.com/angular/bower-material/master/angular-material.min.js:15:13645
    at new C (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js:123:1)
    at C (https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.9/angular.min.js:122:484)
    at d (https://rawgit.com/angular/bower-material/master/angular-material.min.js:15:13452)
    at h (https://rawgit.com/angular/bower-material/master/angular-material.min.js:15:13687)

Thanks @lexi89! We're aware of the issue and should have a fix coming soon.
In the meantime, you can add the following to your JSBins just after the angular.module() declaration to get the images loading properly:
     // NOTE: The following config is required because we're loading this within JSBin
     .config(function($sceDelegateProvider) {
        $sceDelegateProvider.resourceUrlWhitelist([
          // Allow same origin resource loads.
          'self',
          // Allow loading from our assets domain.  Notice the difference between * and **.
          'https://rawgit.com/angular/material-start/es5-tutorial/app/assets/svg/**'
       ])
     })

Fixed. Many thanks to @ThomasBurleson for updating all of the JSBins with the appropriate code!

I still get this error for angular material version 1.1.4 - is it really fixed?


Add script for mapping point-level data

Wrote a script that plots point-level data on a Leaflet map using Folium.  Not sure how useful this is but hopefully it at least serves as a starting point for visualizing point-level data on a slippy map.
Usage is pretty similar to the script for mapping model predictions, it takes two named arguments on the command line:
-n = name of layer
-f = dataset filename

This is great, thank you!


Input ID for label

When testing with screen.getByLabelText it would be great to have id prop on <input>, but now there is no simple way to add it.

hi @Tymek, you can use inputProps to pass id into the input. Hope it is helpful for you.

Yes, thank you very much. I updated to latest version that has inputProps and it worked :)


Uploading 30 sec video promotion file

New Issue Checklist

[x] Updated fastlane to the latest version
[x] I have read the Contribution Guidelines

Issue Description
Complete output when running fastlane, including the stack trace and command used

You can use: --capture_output as the last commandline argument to get that collected for you

[INSERT OUTPUT HERE]
Environment
Please run fastlane env and copy the output below. This will help us help you :+1:
If you used --capture_output option please remove this block - as it is already included there.
[INSERT OUTPUT HERE]

The App store enables to upload a short video clip together with the screenshots.
The problem is that uploading can be done only via Safari...
Is there any option to upload this promotion clip with fastlane?
Thank you.

While this functionality has been offered by fastlane in the past (via the spaceship upload_trailer method), it is currently not working properly with the latest version if iTC.
We are working on a fix at the moment - you can track the progress of this fix here: https://github.com/fastlane/fastlane/issues/9660
Thanks for writing in, and I'm sorry I don't have better news for you!  🚀

Thank you for this information.
I will keep tracking on #9660 hopefully will be resolved soon...

Hey @prolog3001 if you don't mind, I am going to close this issue as a dupe of #9660 and we are going to try to get a fix out shortly! 🐙


v3.1.1 - now processes each route immediately as it is read

What does this PR do?
Fixes #3029
compare will now immediately dispatch a goroutine to handle each route as it is read from the input file (or STDIN, as the case may be) which greatly improves the efficiency of piping the output of genConfigRoutes.py to compare
Which TC components are affected by this PR?

[ ] Documentation
[ ] Grove
[ ] Traffic Analytics
[ ] Traffic Monitor
[ ] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[ ] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[x] Other: The compare Tool

What is the best way to verify this PR?
Build and test compare to be sure it works right, possibly piping in a slowly-populated list of routes to check the behaviour of comparing-as-you-go. See the documentation for details.
Check all that apply

[ ] This PR includes tests
[ ] This PR includes documentation updates
[ ] This PR includes an update to CHANGELOG.md
[ ] This PR includes all required license headers
[ ] This PR includes a database migration (ensure that migration sequence is correct)
[ ] This PR fixes a serious security flaw. Read more: www.apache.org/security

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2859/
Test PASSed.


Dataset request?

This job is particularly impressive, and I am very interested. However, due to some restrictions, I cannot download the City-scale and SpaceNet dataset, Could you share the links to these two datasets? I would greatly appreciate it.

Thank you for your interest, I have updated the README to contain download links.


vtworker: Revert --destination_pack_count to 10.

In commit 2e43353cb1688970198ba3f167042eec9684caa5 we increased the value from 10 to 1000 because we thought it refers to rows (how many to aggregate in one transaction during the resharding copy). However, this is not the case. Instead, it's the number of StreamExecute responses whose size defaults to 32 kB. Aggregating 1000 * 32 kB results into too large transactions and might actually OOM MySQL. Therefore, we revert to the previous value 10.
@alainjobart

This change is

LGTM


Could we use MPI Cartesian Communicators?

tdsops_t contains information about where in the parallel decomposition it is. This is very similar to the MPI_CartComm and it may be beneficial to make use of this.

We may want to use nccl in CUDA backend and rccl for AMD and I guess they don't have a CartComm like support, I cound't find anything online. Also, with the iterative solver I think we'll be able to run cases that doesn't really a good fit for CartComm. For example a backward facing step, where there is no mesh and no ranks in that gap part. A custom communicator is still an option here and I think at least nccl supports it, but not sure if its any better than current approach.

side benefit of #113, cartesian comm from 2decomp will be used for the OMP backend when using FFTs


feat: add relay count to IndexBlock

This calculates all the relay rewards claimed on a block while indexing.

Closing in favor of a different approach


JS minification in 3.0 is very very low.

Example with js files:
Old minify (2.2.1): 2s
New minify (3.0): > 12s !
Same config, same files.
jquery.min.js (2.2.0)
bootstrap.min.js (3.3.6)
jQuery validation v1.14.0
jQuery UI - v1.11.4
and minors JS files

Concat:
Old minify (2.2.1): 149 ms   ---> $min_serveOptions['minApp']['noMinPattern'] = '@\.(?:js|css)$@i'; ($min_concatOnly  doesn't exists in 2.2)
New minify (3.0): > 189 ms   ---> $min_concatOnly = true in 3.0
New minify (3.0): > 12s !      ---> $min_serveOptions['minApp']['noMinPattern'] = '@\.(?:js|css)$@i';
In 3.0, I think that Minify, combines and compress everytime, no ?

i tested with group with two js files, minifier was invoked only once.
please share your full config and groupsConfig definitions!

I updated today and load time is now almost 2 minutes for 18 js files in group

Clear the minify_ files from your cache folder and reload the page. Are cache files being rewritten?

After clearing the tmp dir and empty the browser cache the css file is being generated right away and the js file takes 1 minute.

I pulled in jQuery, UI, Validate, and Bootstrap and did hard reloads (no browser cache) of ?f=quick-test.js,jquery.min.js,jquery.validate.min.js,jquery-ui.min.js
Once cached on the server, there's no difference, but indeed the initial building of the cache went from 150ms to almost 4s. I'll look into this a bit further.

Fix in #511, then we could tag 3.0.0.

I'm still having issues with this. Rebuild takes about 30 seconds. Version 2 takes about 3

Have you tried the master branch, which includes #511? File layout is a tiny bit different, but should be easy.

Hi and thanks
Don’t know if I’m supposed to reply to this email so sorry if not.
I tried the master branch and used the provided readme for installing (using composer). I still takes 10x compared to version 2 to process the files. Perhaps I’m doing something wrong :o)
/ sjosen

On 29. aug. 2016, at 04.35, Steve Clay<EMAIL_ADDRESS>wrote:
Have you tried the master branch, which includes #511 https://github.com/mrclay/minify/pull/511? File layout is a tiny bit different, but should be easy.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/mrclay/minify/issues/499#issuecomment-243019657, or mute the thread https://github.com/notifications/unsubscribe-auth/AEaMGNAAwvYg_K4cuWvGjQ2q7c5ENhJmks5qkkWJgaJpZM4HE5bZ.

@sjosen Please send the exact list of filenames you're combining. And after the first request the others are fast?


Logging structured error

What
I want to log the error with some contextual data (like a model for which validation has failed) in a structured way. However, I do not want to log it when the error occurs, but in one place where I handle the errors.
Quoting: https://dave.cheney.net/2016/04/27/dont-just-check-errors-handle-them-gracefully:

you should only handle errors once

Question
How can/should I implement it?
How I do it now
Currently, I pass the stuff that I want to log and warp it the error. Then I have a custom formatter which unwraps the error and add the stuff into log entry fields. See: https://godoc.org/github.com/logrusutil/v1/errfield#example-package--Basic

You could potentially add a hook that accumulates errors, when fired, in a data structure accessible within your codebase. The accumulated errors, along with fields if any, can be logged structurally whenever required.
For more information on hooks
https://github.com/sirupsen/logrus/blob/master/hooks.go#L3
https://github.com/sirupsen/logrus/blob/master/hook_test.go

Thank you a lot @pradykaushik
So far I have created a custom Formatter to do this: https://github.com/go-logrusutil/logrusutil/blob/master/errfield/formatter.go
Any reasons to use the Hook instead? The benefit is there is no need to specify the parent/base formatter. However, it requires implementing Levels() instead.

Thank you a lot @pradykaushik
So far I have created a custom Formatter to do this: https://github.com/go-logrusutil/logrusutil/blob/master/errfield/formatter.go
Any reasons to use the Hook instead? The benefit is there is no need to specify the parent/base formatter. However, it requires implementing Levels() instead.

You had mentioned that you did not want to log the error when it occurs. I figured that you want to analyze the errors separately (possible in a go routine that is run as a cron job). This is why I suggested using Hooks so that you can get access to the errors and store them for later use.

I just want to do my bit...
I think the easier way is to simply write a function that extracts the fields for logrus:
import (
   "github.com/sirupsen/logrus"
   "github.com/logrusutil/v1/errfield"
)

func GetErrorFields(err error) logrus.Fields {
	var e *errfield.Error
	if errors.As(err, &e) {
                 //e.Fields are map[string]interface{} the same as logrus.Fields
		return e.Fields.(logrus.Fields)
	}
        return logrus.Fields{}
}

func main () {
   logrus.WithFields(GetFields(err)).WithError(err).Error("crash")
}


[Tracking] DLSpeech: Proactive message is not supported

If you would want to prioritize this feature work, please vote and optionally, provide a user story.

Feature Request
Proactive message is not supported when using Direct Line Speech.
[Enhancement]

We have achieved this by keeping a reference of the ConnectorClient from the turnState and putting it back into the state in the continue conversation callback. Without the original connector client, there is an error from node-fetch as the service URL in the activity is not an HTTP URI.
@corinagum please suggest if there could be any pitfalls in this approach.

Hi @birla, I am no longer a member of the Web Chat team. Please get in contact with @compulim

We have achieved this by keeping a reference of the ConnectorClient from the turnState and putting it back into the state in the continue conversation callback. Without the original connector client, there is an error from node-fetch as the service URL in the activity is not an HTTP URI.
@corinagum please suggest if there could be any pitfalls in this approach.

@compulim Please have a look. I can share some sample code, if required.


Fixing documentation

Just started poking at fixing documentation, other people on my team will want to use the docs from here to learn to use this as I am building it into our CI/CD pipeline, will do more work on documentation as I get time or have people at work as questions.

Oh haha I forgot you made me an owner, I'll make a branch and fix docs there.  Closing this PR for now.


Add BalanceToAssetBalance Conversion Type

This PR adds the BalanceToAssetBalance type to pallet_assets to allow converting native balances to asset specific ones.
This is a "low resolution" conversion based on the existential deposit (of the native currency) and the min_balance (of the asset).
needed (AFAICT) for https://github.com/paritytech/statemint/pull/51
Questions:

Should I add a trait (so that it can be injected as an associated type)?

superseded by #9076


🐛 Fix indentation issue

Codecov Report

Merging #15 into 1.0.2 will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             1.0.2       #15   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            1         1
  Lines           14        14
=========================================
  Hits            14        14

Impacted Files
Coverage Δ

src/vue-markdown-it.js
100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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


Private Earth Login Problem

Hi ,
I use the google earth enterprise to create a private earth .
And I setup the account/passwd by htdigest .
And the Problem is about I login to the database with EC ( google earth EC )
It will need to access repeatedly when I login .
is it some issue about apache 2.0 or something else ?
thanks

This has been open for a while without an update. I'm going to close this - feel free to reopen it if there are still issues.


Command with space at end of it

Lexer issue when adding space a the end
When entering command like "ls -la" it outputs (nature: 6, lexeme: ls) (nature: 6, lexeme: -la) but when adding space at the end of command "ls -la " it outputs (nature: 6, lexeme: ls) (nature: 6, lexeme: (null)) which results in a segfault when calling the parsing list function cause lexeme will contain NULL in this case

Okay, I'll check it for now

The Bug was Fixed.
he Bug: when lexing a line ending with whitespaces, the lexer goes to the character after which
is the end of the line and lex it as a _word lexeme pointing to NULL
The Fix: when reading the character that comes after whitespaces, the program make sure that it's NOT the null character '\0' before proceeding to its tokenization


blueprint-show with --cfn doesn't do anything

I've been trying to get Blueprint to create a CloudFormation template but it's either not working or I'm missing a step. Here's what I try on a fresh EC2 instance using Amazon Linux:
$ sudo blueprint create test
# [blueprint] using cached blueprintignore(5) rules
# [blueprint] searching for PEAR/PECL packages
# [blueprint] searching for Yum packages
# [blueprint] searching for Python packages
# [blueprint] searching for configuration files
# [blueprint] searching for Ruby gems
# [blueprint] searching for npm packages
# [blueprint] searching for APT packages
# [blueprint] searching for software built from source
# [blueprint] searching for service dependencies
$ sudo blueprint show test --cfn

But nothing is displayed and no file is created. It's possible I'm missing some dependency but I don't know what that dependency is.
(Also, sorry if this is the wrong place to post this.)

This is a perfectly appropriate place to post this!
I'm unable to reproduce the issue - are you on a strange platform?  The --cfn option doesn't require any extra dependencies but it's possible the template it uses wasn't installed.  Does $PYTHONPATH/blueprint/frontend/cfn.json exist, where $PYTHONPATH is something like /usr/lib/python2.7/dist-packages?

Sorry for the slow reply! My configuration is nothing special, just Amazon Linux with Git 1.7 and Blueprint 3.4 installed. I installed Blueprint using PIP.
I checked and $PYTHONPATH isn't set. Should it be? When I look in /usr/lib/python2.6/site-packages/blueprint/frontend I see a cfn.py but no cfn.json. I also searched the whole disk for cfn.json but nothing was found. :-(
Did I miss a step or install the wrong version?
Thanks for your help!

Looks like PyPI/PIP doesn't install it correctly. I just installed with the source from Git (the v3.4.0 tag) and it works fine!

Looks like I need to specify data_files in the setup.py like Django does: https://code.djangoproject.com/browser/django/trunk/setup.py#L81.

@foofy This has been fixed and Blueprint 3.4.1 released to address it.  Thanks!


Font awesome is not aligned properly with md-icon

Bug :
Looks like the font awesome is not working well with md-icon
What is the expected behavior?
icon should be aligned with the text
Plunker template:  Plunekr

md-icon does not work with any icon font out there, that's obvious, so it's expected behaviour and it's up to you to align it

We should look at this to make sure we're not doing anything weird

@fxck It should with font awesome if its claiming to work with custom fonts

I tried with https://cdn.materialdesignicons.com/1.9.32/ aswell & its not aligning with md-icon (they claim this to be compatible with material design)

You can't optimize it for ALL custom fonts, there's no standard to icons fonts AFAIK.

Agreed, but would you mind specifying what its compatible with other than stock material icons?

With material design icons (mdi, not stock material icons), the icon gets displayed but not of the right size & not at the center of the button.

.mat-icon class has its height and width set to 24px

This (I assume) is done because materical icons have a default font-size of 24px. This default is set by the .material-icons class via the icon font.

Font awesome defaults its icons to 14px font-size

I think either .mat-icon should also set the default font-size to be the same as its height and width OR there should be a brief not in the icon docs about users needing to properly size and position their icons based on their needs

I tried with mdi aswell. The icon has correct size, but not aligning properly within the md-icon area (I set the icon size to 48px).
They use 24px as default font size. Even there I have the above issue.
So, its better to include an example with custom font that's compatible with material design but not stock icon.

@thekalinga Just to be sure, when you set the icon size to 48px and it was still poorly aligned, did you make the font-size, height, and width all the same?
If so, would you mind showing a plunker with mdi?

I am unable to create plnkr as the template on the project seems to be broken
I am getting the following error while loading the template. Must be something to do with the recent refactoring w.r.t cdk
Error: (SystemJS) XHR error (404 Not Found) loading<EMAIL_ADDRESS>

Please check here
https://plnkr.co/edit/VJN3SD68kmQHQvLUZICW?p=preview


[Bug]: input in staff and project pages should have the same design as button.

Description
input and staff and project pages should have the same design as button.
border-radius...

this input is inside a div who give it a default outline appearance.

for better design input and button should use the same design pattern (color, border, hover)
Code of Conduct

[X] I agree to follow this project's Code of Conduct

Awesome! I think there is a similar issue to this in #679. Do you think you can sync up on that issue? Cos the issues seem to be very similar. Unless yours is different.

Yesss it's the same. But it getted post a couple minutes after I added this issue.


re-add various matrix elements in zeropi

from qutip import* were nominally removed. Did I miss instances?

i guess you meant to post in https://github.com/scqubits/scqubits/issues/44 ;)
ok, great will close that one then (didn't realize already done)


SPA iframe support for loginRedirect flow

Please follow the issue template below. Failure to do so will result in a delay in answering your question.
Library

[ ]<EMAIL_ADDRESS>or<EMAIL_ADDRESS>[x]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>[ ]<EMAIL_ADDRESS>
Description
When performing loginRedirect flow from an iframe that is used in an Angular SPA I get this error:
Unhandled rejection BrowserAuthError: redirect_in_iframe: Code flow is not supported inside an iframe. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs. (window.parent !== window) => true    at BrowserAuthError.AuthError [as constructor] (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:201:28)    at new BrowserAuthError (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:4932:32)    at Function.BrowserAuthError.createRedirectInIframeError (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:5017:20)    at RedirectHandler.initiateAuthRequest (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:6400:44)    at PublicClientApplication.<anonymous> (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:7027:48)    at step (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:80:27)    at Object.next (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:61:57)    at fulfilled (https://alcdn.msftauth.net/browser/2.1.0/js/msal-browser.js:51:62)    at r (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:31:10952)    at i._settlePromiseFromHandler (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:30:15746)    at i._settlePromise (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:30:16549)    at i._settlePromiseCtx (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:30:17057)    at c (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:29:1583)    at a (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:29:1469)    at r._drainQueues (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:29:2484)    at drainQueues (https://cdn.jsdelivr.net/npm/bluebird@3.7.2/js/browser/bluebird.min.js:29:1211)
I am executing the loginRedirect call using pure javascript from the child iframe, while in the parent window I am handling a postMessage from the child iframe when the login redirect-uri is called in the iframe, and then I acquire a token silently from the SPA parent window. This used to work in MSAL v1.3.x, but not in Safari due to ITP issue. This is why I switched to MSAL v2.0.
I assume the loginRedirect call is now intentionally blocked when done from an iframe with MSAL v2.0, due to this Safari ITP like issue (with "prevent cross-site tracking" enabled flag).
Can you please confirm?
The only documentation I could find about this is: https://docs.microsoft.com/en-us/azure/active-directory/develop/reference-third-party-cookies-spas
I would suggest to be more explicit in MSAL v2.x documentation about iframe support.
It is not clear if the text from link above applies just for MSAL v1.x or MSAL v2.x or both.
Thank you.

Redirect actions are blocked in iframes because the login UX can't be rendered in an iframe. We are working on improving support for iframed applications in msal 2.x.
Can you provide details about how you accomplished this in<EMAIL_ADDRESS>

Closing this as we're assuming the original problem has been solved due to inactivity, please open a new issue if you have further questions. Thanks!


Unable to install PayPal.Forms 2.15.7 using v3 package source

Please read the following information before posting the issue.
To repro:

Create a new C# console project in Visual Studio 2015.
Right click the project and select Manage NuGet Packages.
Search for PayPal.Forms.
PayPal.Forms 2.15.7 is listed. Try to install it by clicking the Install button:

Attempting to gather dependency information for package 'PayPal.Forms.2.15.7' with respect to project 'ConsoleApplication7', targeting '.NETFramework,Version=v4.5'
Package 'PayPal.Forms 2.15.7' is not found in the following primary source(s): 'https://api.nuget.org/v3/index.json'. Please verify all your online package sources are available (OR) package id, version are specified correctly.

The PayPal.Forms NuGet package is very large - 178MB. The download link seems to be OK. Also the NuGet v2 package source seems to be OK - at least it tries to download it and does not report an error.

Thanks for the report @mrward. We had a bug last year where in rare cases packages available on the V2 feed would not be available on the V3 feed. This has since been resolved. I have reflowed the package through the pipeline. I was able to install it via Visual Studio. Please re-open if you are still facing the problem.


Some examples and some errors

Some minimal examples that I ran before. I get errors when:

[x] forecasting single series (not sure if this meaningful or possible, but at least we should fail gracefully)
[x] Forecasting, just a small conversion to timeseries issue.
[x] Why are the levels of the predicted values, e.g., for mdeaths, so different from the original values?

library(BDFM)
packageVersion("BDFM")
#> [1] '0.0.1'
library(tsbox)

fdeaths0 <- fdeaths
fdeaths0[length(fdeaths0)] <- NA
dta <- ts_c(fdeaths0, mdeaths)

# forecasting single series
dfm(fdeaths, forecast = 2)
#> Error in DSmooth(B, q, H, R, Y[, -(1:m)]): Not a matrix.

# multiple series (this works)
ts_plot(ts_c(dta, predict(dfm(dta))))

# but this doesn't
dfm(dta, forecast = 2)
#> Error in attr(x, "tsp") <- value: invalid time series parameters specified

fdeaths0[c(1:10, length(fdeaths0))] <- NA

dta.mixed <- ts_c(ts_pc(austres), mdeaths)

# why do these values don't ad up
fct <- predict(dfm(dta.mixed))
ts_plot(ts_c(dta.mixed, fct))

Created on 2018-10-22 by the reprex package (v0.2.1)

OK, all these little issues should be fixed.
For the first, forecasting a single series: the C++ code requires that variable types are declared. Y should be a matrix, but for a single series the default in R is to convert Y to a vector. We now keep Y as a matrix using
Y[,-(1:m), drop = FALSE]
For the second, the ts stuff should now be OK (class(Y)[1] was mts which was not in tsobjs. I changed this to any(class(Y)%in%tsobjs) and added mts to tsobjs.)
For the third, the default is dfm(Y, intercept = TRUE), but the bit of code that adds intercept terms back in to predicted values got lost in the formatting somewhere. Anyhow, it's back now.
ps --- I'd not used ts_plot() before... very slick. Much nicer that ts.plot()!


Support Linux

This depends on Swift becoming available for Linux.

That day has come, which is awesome.

Closing out this issue as Conche is deprecated for the Swift Package Manager (SPM). Instead you can use SPM (https://github.com/Conche/Conche/commit/78708a9556b00d602de4c3e518a7f201b55a519b).


Failed to compute results.  Command 'elastix' died with <Signals.SIGABRT: 6>.

Have this issue on macbook air 15inch M2 (Macos 14.0). Please Help!
Details:
`Traceback (most recent call last):
File “/Applications/Slicer.app/Contents/bin/Python/slicer/util.py”, line 3146, in tryWithErrorDisplay
yield
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 241, in onApplyButton
self.logic.registerVolumesUsingParameterNode(self._parameterNode)
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 518, in registerVolumesUsingParameterNode
self.registerVolumes(
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 564, in registerVolumes
self.logProcessOutput(elastixProcess)
File “/Applications/Slicer.app/Contents/Extensions-32158/SlicerElastix/lib/Slicer-5.5/qt-scripted-modules/Elastix.py”, line 499, in logProcessOutput
raise subprocess.CalledProcessError(return_code, “elastix”)
subprocess.CalledProcessError: Command ‘elastix’ died with <Signals.SIGABRT: 6>.

@jcfr could you have a look? Maybe there are still some packaging errors on mac? We saw a similar problem yesterday on a SlicerMorph workshop participant's xomouter: ModelToModelDistance was failing with this error on an M2 (Slicer-5.4 with latest extension).

Maybe there are still some packaging errors on mac?

Indeed, I didn't have a chance to fix this issue:

https://github.com/lassoan/SlicerElastix/issues/43

Does that mean Elastix won't work on new MacBook anymore?

won't work on new MacBook anymore?

Once the issue referenced above is fixed, it will be available again.

Please try again with the latest Slicer Stable Release (currenty 5.6.1) and latest Slicer Preview Release and let us know if you still experience any problem.

Thanks for your response. I still get the error on both the latest Slicer Stable Release and Preview Release.

Thanks for testing. I guess @jcfr will get back to us here soon (probably after the holidays).

It seems that the issue is that OpenMP is not found: https://discourse.slicer.org/t/command-elastix-died-with-signals-sigabrt-6/32970/9?u=lassoan
@jcfr so you think we an bundle OpenMP or we should disable OpenMP on macOS?

@jcfr Could you have a look at this? We need to use Elastix in the SlicerHeart project but most of the research assistants use macOS, so they cannot. It fails with the same <Signals.SIGABRT: 6> error on both the latest Slicer Stable Release and latest Slicer Preview Release.

@DevLaurence Do you know of anyone from our group encountering this issue when using propagation with my modified module?

DevLaurence Do you know anyone from our group encountering this issue when using propagation with my modified module?

@che85 I encountered this issue when meeting with @lassoan this morning.

I just ran I in a Slicer 7.2.0 preview release and indeed getting the same error. In the meantime, as a workaround, one could use the elastix binary of the Slicer 5.2.2 stable release which works fine.

When using the elastix binary of 5.4.0 release getting the same error:
Command 'elastix' died with <Signals.SIGABRT: 6>.
Traceback (most recent call last):
  File "/Applications/Slicer-5.7.0_preview.app/Contents/Extensions-32651/SequenceRegistration/lib/Slicer-5.7/qt-scripted-modules/SequenceRegistration.py", line 439, in onApplyButton
    self.logic.registerVolumeSequence(self.inputSelector.currentNode(),
  File "/Applications/Slicer-5.7.0_preview.app/Contents/Extensions-32651/SequenceRegistration/lib/Slicer-5.7/qt-scripted-modules/SequenceRegistration.py", line 561, in registerVolumeSequence
    self.elastixLogic.registerVolumes(
  File "/Applications/Slicer-5.7.0_preview.app/Contents/Extensions-32651/SlicerElastix/lib/Slicer-5.7/qt-scripted-modules/Elastix.py", line 564, in registerVolumes
    self.logProcessOutput(elastixProcess)
  File "/Applications/Slicer-5.7.0_preview.app/Contents/Extensions-32651/SlicerElastix/lib/Slicer-5.7/qt-scripted-modules/Elastix.py", line 499, in logProcessOutput
    raise subprocess.CalledProcessError(return_code, "elastix")
subprocess.CalledProcessError: Command 'elastix' died with <Signals.SIGABRT: 6>.

Same error with Slicer 5.3.0 on M2 Max. So I am assuming that it must have been a change between 5.2.0 and 5.3.0
@jcfr Hope that helps to narrow it down
Traceback (most recent call last):
  File "/Applications/Slicer-5.3.0_stable.app/Contents/Extensions-31913/SequenceRegistration/lib/Slicer-5.3/qt-scripted-modules/SequenceRegistration.py", line 439, in onApplyButton
    self.logic.registerVolumeSequence(self.inputSelector.currentNode(),
  File "/Applications/Slicer-5.3.0_stable.app/Contents/Extensions-31913/SequenceRegistration/lib/Slicer-5.3/qt-scripted-modules/SequenceRegistration.py", line 561, in registerVolumeSequence
    self.elastixLogic.registerVolumes(
  File "/Applications/Slicer-5.3.0_stable.app/Contents/Extensions-31913/SlicerElastix/lib/Slicer-5.3/qt-scripted-modules/Elastix.py", line 564, in registerVolumes
    self.logProcessOutput(elastixProcess)
  File "/Applications/Slicer-5.3.0_stable.app/Contents/Extensions-31913/SlicerElastix/lib/Slicer-5.3/qt-scripted-modules/Elastix.py", line 499, in logProcessOutput
    raise subprocess.CalledProcessError(return_code, "elastix")
subprocess.CalledProcessError: Command 'elastix' died with <Signals.SIGABRT: 6>.

I just built Slicer and SlicerElastix locally on my M2 and everything seems to be working just fine.

I will have a look this afternoon, could you provide me with the steps (and data)  leading to the issue ?

Download SampleData MRBrainTumor1 and MRBrainTumor2
Open General Registration (Elastix)
Set Fixed and Moving volume
Create output transform
Run

@che85 got this error when trying to execute Elastix on the console:
(base) herzc@K4YF7L70NQ Slicer-5.4 % ./elastix
dyld[26616]: Library not loaded: @rpath/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib
  Referenced from: <B727E4F5-7E1A-3E0A-92BE-2389498D5492> /Applications/Slicer-5.4.0_stable.app/Contents/Extensions-31938/SlicerElastix/lib/Slicer-5.4/elastix
  Reason: tried: '/Users/svc-dashboard/D/Support/clang+llvm-14.0.6-x86_64-apple-darwin/lib/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/Support/clang+llvm-14.0.6-x86_64-apple-darwin/lib/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/usr/local/lib:/Users/svc-dashboard/D/S/A/ITK-build/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib:/Users/svc-dashboard/D/S/A/ITK-build/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/Users/svc-dashboard/D/Support/clang+llvm-14.0.6-x86_64-apple-darwin/lib/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/svc-dashboard/D/Support/clang+llvm-14.0.6-x86_64-apple-darwin/lib/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/usr/local/lib:/Users/svc-dashboard/D/S/A/ITK-build/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/lib:/Users/svc-dashboard/D/S/A/ITK-build/Extensions-31938/SlicerElastix/lib/Slicer-5.4/libomp.dylib' (no such file), '/usr/local/lib/libomp.dylib' (no such file), '/usr/lib/libomp.dylib' (no such file, not in dyld cache)
zsh: abort      ./elastix

It seems that OpenMP (libomp.dylib) is used during building the extension but it is not included in the package. As a quick workaround, I've disabled OpenMP in Elastix (we'll see tomorrow if it fixes the issue).
It would be nicer if it could be enabled. @jcfr how libomp.dylib could be added to the package? Could adding it to the package cause any problems for other components (Slicer modules, extensions, Python packages, ...) that use also OpenMP, but perhaps a different version?

@jcfr @lassoan The changes you made to SlicerElastix fixed the issue. I just tested with the update SlicerElastix version on macOS and it works.

We can now close the corresponding issue were we suggested disabling openmp:

https://github.com/lassoan/SlicerElastix/issues/43

Thank you @che85 for testing!


AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

MacOS M1 Version 14.5
Python 3.11.6
How meet the error？
pip install -r requirements.txt
What the error:
Requirement already satisfied: beautifulsoup4 in /Users/*/miniconda3/envs/bio/lib/python3.12/site-packages (from -r requirements.txt (line 2)) (4.12.2)
Requirement already satisfied: colorama in /Users/*/miniconda3/envs/bio/lib/python3.12/site-packages (from -r requirements.txt (line 3)) (0.4.6)
Collecting duckduckgo_search (from -r requirements.txt (line 4))
  Using cached duckduckgo_search-6.1.0-py3-none-any.whl.metadata (18 kB)
Collecting yahoo-search-py (from -r requirements.txt (line 5))
  Using cached yahoo-search-py-0.3.tar.gz (11 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [33 lines of output]
      Traceback (most recent call last):
        File "/Users/*/miniconda3/envs/bio/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/Users/*/miniconda3/envs/bio/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/*/miniconda3/envs/bio/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 112, in get_requires_for_build_wheel
          backend = _build_backend()
                    ^^^^^^^^^^^^^^^^
        File "/Users/*/miniconda3/envs/bio/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
          obj = import_module(mod_path)
                ^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/*/miniconda3/envs/bio/lib/python3.12/importlib/__init__.py", line 90, in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1304, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "<frozen importlib._bootstrap>", line 1381, in _gcd_import
        File "<frozen importlib._bootstrap>", line 1354, in _find_and_load
        File "<frozen importlib._bootstrap>", line 1325, in _find_and_load_unlocked
        File "<frozen importlib._bootstrap>", line 929, in _load_unlocked
        File "<frozen importlib._bootstrap_external>", line 994, in exec_module
        File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-build-env-ttr7s6ko/overlay/lib/python3.12/site-packages/setuptools/__init__.py", line 16, in <module>
          import setuptools.version
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-build-env-ttr7s6ko/overlay/lib/python3.12/site-packages/setuptools/version.py", line 1, in <module>
          import pkg_resources
        File "/private/var/folders/vn/c8v46nts0ql7qr5yqg81xtfm0000gn/T/pip-build-env-ttr7s6ko/overlay/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2191, in <module>
          register_finder(pkgutil.ImpImporter, find_on_path)
                          ^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Also having the same issue on WSL Ubuntu 24.04, Python 3.12.
The only way I can run this project is via docker.

Since it's yahoo search API, commenting it out from requirements.txt should unblock installation of other requirements. By default GPT-Researcher does use Tavily as search backend.

Found a way forward. Basically, because the docker container uses python 3.11.4 and can run this project just fine, I switched to that version by using Conda.

Install Conda By following a guide of your choice, like: https://medium.com/@mustafa_kamal/a-step-by-step-guide-to-installing-conda-in-ubuntu-and-creating-an-environment-d4e49a73fc46
In the guide, you create an environment. Use this command instead: conda create --name gpt-researcher python=3.11.4
Activate the environment: conda activate gpt-researcher
Then install the requirements using pip, and it should work this time: pip install -r requirements.txt

Hey everyone removed yahoo search since it's causing issues.This was nice to have as another fallback for search engines: https://github.com/assafelovic/gpt-researcher/commit/2347cf2ac0b598e52efcb7d41bf42f36f661b34a

Pull latest if you still can't get it running and should be resolved.

Thanks for your help


alright test pull idk if its going to work but it crushes when you hi…

…t a mob

May I ask what this is supposed to be?

i dont know mixins so much


internal/core/eval: add testcase for https://github.com/cue-lang/cue/issues/2566 issue

Based on PR:

https://github.com/cue-lang/cue/pull/2587

Thanks for these PRs! You might want to use Gerrit instead of GitHub for your contributions, because that's the source of truth for git and where we do the vast majority of our code reviews, and on top of that you can "chain" your CLs (commits) via a branch. That ends up being a lot nicer to review and merge than with GitHub PRs, where you have to either keep one PR with many commits, or awkwardly "stack" your PRs on top of one another by accumulating commits.
For example, see this stack of CLs by Roger which we reviewed and merged recently: https://review.gerrithub.io/c/cue-lang/cue/+/1170886
https://github.com/cue-lang/cue/blob/master/CONTRIBUTING.md should have more info.


Add raycast-typeid-generator-extension extension

Description

Screencast

Checklist

[ ] I read the extension guidelines
[ ] I read the documentation about publishing
[ ] I ran npm run build and tested this distribution build in Raycast
[ ] I checked that files in the assets folder are used by the extension itself
[ ] I checked that assets used by the README are placed outside of the metadata folder

Thanks for your contribution 🔥
This is already possible with this extension: https://www.raycast.com/jmaeso/uuid-generator - if you miss the prefix featture, then you can make a PR to that one 🙂

@pernielsentikaer thank you very much. 🙏
I did so over here: https://github.com/raycast/extensions/pull/14401 🥳
Closing this. ✅


How pelias api communicates with PIP API on kubernetes?

Hey team!
I am getting 500 error when i looked closely into pelias api pod logs -
{"level":"info","message":"::ffff:<IP_ADDRESS> - - [20/Sep/2019:05:59:00 +0000] "GET /v1/reverse?point.lat=51.5081124&point.lon=-0.0759493 HTTP/1.1" 500 486","label":"api","timestamp":"2019-09-20T05:59:00.091Z"}

Here's what I did :innocent:

Pelias API are running fine on kubernetes cluster...
tried to hit http://pelias-api-load-balancer-url:3100/v1/reverse?point.lat=51.5081124&point.lon=-0.0759493
here is snippet of values.yaml
pip:
enabled: true
replicas: 1
host: "http://pelias-pip-service:3102/"
dockerTag: "latest"
..
I did a curl on pelias api pod - but he gives nothing
curl http://<IP_ADDRESS>:3102
while curl on pelias api itself works fine
Here's what I got :scream_cat:

but received below error
{"controller":"search","queryType":"reverse","result_count":0,"params":{"size":10,"private":false,"point.lat":51.5081124,"point.lon":-0.0759493,"boundary.circle.lat":51.5081124,"boundary.circle.lon":-0.0759493,"lang":{"name":"English","iso6391":"en","iso6393":"eng","defaulted":false},"querySize":20},"retries":0,"text_length":0,"level":"info","message":"elasticsearch","label":"api","timestamp":"2019-09-20T05:58:51.671Z"}
{"level":"error","message":"elasticsearch error Error: No Living connections","label":"api","timestamp":"2019-09-20T05:58:51.671Z"}
{"level":"info","message":"::ffff:<IP_ADDRESS> - - [20/Sep/2019:05:58:51 +0000] "GET /v1/reverse?point.lat=51.5081124&point.lon=-0.0759493 HTTP/1.1" 500 486","label":"api","timestamp":"2019-09-20T05:58:51.672Z"}
Elasticsearch WARNING: 2019-09-20T05:59:00Z

Here's what I was expecting :sparkles:

Here's what I think could be improved :trophy:

Hi @pravink,
There's nothing special about the communication between the API and the PIP service, it's plain old HTTP. It looks like your issue here is Elasticsearch related:
{"level":"error","message":"elasticsearch error Error: No Living connections","label":"api","timestamp":"2019-09-20T05:58:51.671Z"}

Note that calls to the reverse endpoint will generally result in a query to Elasticsearch first, and then the PIP service.


test: dont use internal private transceivers API

dont use pc.transceivers in tests which is a private API

Codecov Report

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

@@           Coverage Diff           @@
##           master       #7   +/-   ##
=======================================
  Coverage   90.73%   90.73%
=======================================
  Files           1        1
  Lines         734      734
=======================================
  Hits          666      666
  Misses         68       68

Continue to review full report at Codecov.

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


Rework predefined level handling

If a region is governed by and sovereign by the same region - do not create both levels. Do not duplicate in general.
Add other improvements.

An example is the following path: World
Asia > Indonesia > Indonesia > Jawa > Indonesia > Banten

Let the Level after the subcontinent be either country or governed or sovereign.

Yep. There are only 592 regions where the three mentioned columns have different values.
You can find it with the following query:
SELECT UID, NAME_0, NAME_1, NAME_2, NAME_3, NAME_4, NAME_5,
       country, sovereign, governedby
FROM gadm_410
WHERE ((country IS NOT NULL AND country != '' AND sovereign IS NOT NULL AND sovereign != '' AND country != sovereign)
    OR (country IS NOT NULL AND country != '' AND governedby IS NOT NULL AND governedby != '' AND country != governedby)
    OR (sovereign IS NOT NULL AND sovereign != '' AND governedby IS NOT NULL AND governedby != '' AND sovereign != governedby));

Sometimes NAME_0 != country, and in this case, it should be included. But if it is - ignore it.

Related to #42


[docs]: Contributor section doesn't display contributors on readme

💥 Proposal
There's a bug in readme, where contributors section doesn't display contributors, actually.
I'd like to work.

@Soumya-Kushwaha - you can go ahead! We are assigning you 21 days for this project, after which it will be assigned to someone else if not completed. All the best!

Thank you @khusheekapoor


Feature request: Functionality of Logger static class through dependency injection

Use case
It is currently difficult to test functions that depend on the static Logger, as we cannot provide an alternate or mock implementation.
Additionally, if we want to use the functionality that it offers for existing applications, we would have to replace all existing references to an implementation for ILogger with the static Logger instance.
Solution/User Experience
Instead of having to use the new Logger static class to perform logging, we would prefer to be able to inject it as an implementation of ILogger and set it up through dependency injection.
This would be the idiomatic approach to supply a logger implementation in C#/.NET
Alternative solutions
No response
Acknowledgment

[X] This feature request meets Lambda Powertools Tenets
[ ] Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript

Hi @NinovanderMark,
Thanks for the raising this feature request. The Logger is currently implemented according to the logger implementation in C#/.NET
You can creates an instance of Microsoft.Extensions.Logging.ILogger using following methods and inject it to your constructor for example:
ILogger logger = Logger.Create();
ILogger logger  = Logger.Create(string categoryName);
I hope it answers your question, please let me know if the feature you are asking is different.

Close the issue as it's been answered.


REMOVE_OLD_MODS does not delete /data/plugins on paper servers

If REMOVE_OLD_MODS is set to 'true', the content of the folder /data/mods is deleted for all servers but spigot servers. This is done in start-finalSetupModpack lines 10 to 17. Are there any objections to include paper servers in the condition of the relevant if clause?
The relevant passage should be
Remove old mods/plugins
if [ "$REMOVE_OLD_MODS" = "TRUE" ]; then
if [ "$TYPE" = "SPIGOT" ] || [ "$TYPE" = $PAPER ]; then
rm -rf /data/plugins/*
else
rm -rf /data/mods/*
fi
fi
p.s.: Great work! Thank you!

Sorry for the delay. Yes, that modification makes sense to me. You're very welcome to PR that or I can make the change.

This is fixed by the new addition of #688 which closed #662

I can confirm that cleaning /data/plugins now works for me with paper servers.
But there seems to be another (unrelated) problem. If the directory /data/plugins is not present, the attempted to clean it fails and the server does not start up:

[init] Removing old mods in /data/plugins...
find: /data/plugins: No such file or directory

Created PR #697

@aspro-at image with your final fix is now published. Can you verify and close the issue?

It work's!
Thank you!


Screenshot message not being displayed on Capybara::Webkit::ClickFailed

I am trying to debug a ClickFailed issue and I read that the latest versions of capybara-webkit will automatically take a screenshot and output a message indicating where the screenshot is located. I am running capybara-webkit version 1.4.1 and capybara 2.4.4, and it doesn't seem to be outputting the message with the screenshot location.
Here's the output of one of my failing tests:
davidco: ats ✹✭ (sort-pump-components) ✗ rspec ./spec/features/admin/manage_product_images_spec.rb:5
Run options: include {:locations=>{"./spec/features/admin/manage_product_images_spec.rb"=>[5]}}

Manage product images
  Set an image as the featured image (FAILED - 1)

Failures:

  1) Manage product images Set an image as the featured image
     Failure/Error: click_on "Make Featured Image"
     Capybara::Webkit::ClickFailed:
       Failed to find position for element /html/body/div[1]/div[2]/div/div/div[2]/div[@id='product-images-section']/div[@id='product-images']/div[2]/a[2]
     # ./spec/features/admin/manage_product_images_spec.rb:21:in `block (3 levels) in <top (required)>'
     # ./spec/features/admin/manage_product_images_spec.rb:19:in `block (2 levels) in <top (required)>'
     # -e:1:in `'

Finished in 10.11 seconds (files took 0.2712 seconds to load)
1 example, 1 failure

Failed examples:

rspec ./spec/features/admin/manage_product_images_spec.rb:5 # Manage product images Set an image as the featured image

Top 1 slowest examples (6.66 seconds, 65.9% of total time):
  Manage product images Set an image as the featured image
    6.66 seconds ./spec/features/admin/manage_product_images_spec.rb:5

Randomized with seed 49745

Coverage report generated for RSpec to /home/david/projects/ats/coverage. 204 / 293 LOC (69.62%) covered.
davidco: ats ✹✭ (sort-pump-components) ✗

Is there some configuration that needs to be set to get the screenshots to be taken automatically? Is there something I'm doing wrong? Thanks for the help.
If it matters, I'm running Ubuntu 14.04 64-bit and ruby 2.1.5.

I see this error when running this line:
first('[data-toggle="fullscreen"]').click

I tried different versions of the selector (e.g. by class) and it doesn't help. I also checked with a co-worker what Qt-webkit version he is running, since for him the test passes. He has 4.8.6, while I have 5.4.1.

There are two ways a click can fail: for elements with a known position, and those without. Elements with known positions may be unclickable due to overlapping elements. In this case, the position was unable to be calculated. When we can't find the element, we do not save a screenshot. You may want to try saving the screenshot yourself via page.save_screenshot to see if the element is displayed as expected.

My problem isn't the missing screenshot, but the error itself. I get it while my co-workers do not.
I'm sorry if I hijacked this issue. ;) Should I open a new one?

Trying it, I am indeed missing the element. When I try to only look it up without clicking it (first('[data-toggle="fullscreen"]')) I find it, though.

I downgraded Qt-webkit (i.e. I use the package the Wiki tells me to). Works.

Could you try to extract a failing test case (CSS, HTML, spec) which shows the failure? That will make it a lot easier to debug.
I've not upgraded to Qt 5.4 yet, but 5.2 has been working fine for me.

When tryng to reproduce the error I found out that it only happens when the link has no textual content in the actual HTML tag. The link our spec tests has no text but a span tag with a bootstrap glyphicon:

I was able to reproduce the error with this code:
click.rb
require 'capybara-webkit'
Capybara.default_driver = :webkit
pwd = File.expand_path(File.join(__FILE__, '..'))
browser = Capybara.current_session

browser.visit("file://#{pwd}/page.html")
browser.find('#link').click
browser.find('#empty_link').click # <- fails with Capybara::Webkit::ClickFailed

page.html
Click me!

Hey @tsujigiri. It is expected that an empty link would not be clickable. This is because clicks are implemented as native mouse events, which requires a clickable target and movement of a virtual mouse cursor. However, the Bootstrap (and Font Awesome) icons should work just fine. On my system, I'm able to click Boostrap and Font Awesome icons just fine. I'm running Debian Linux and Qt 5.3.2.
As a workaround, you may try to trigger the click via JavaScript. While not elegant, it should work. However, triggering a click via JavaScript may not fire other expected events, which can be a problem for JavaScript apps. Instead of calling #click, try #trigger('click').
It's also possible that I'm able to click the icons because I have additional fonts installed. The Bootstrap font faces are overridden to prevent crashes on OS X. It may be possible to disable this override and click the icons on your system. Let me know if you'd like to explore that option.

I solved this for me (and now) by downgrading Qt-webkit. It seems like it is the glyphicon spans that stopped working in Qt 5.4's webkit, then. As mentioned, I didn't see the icons in the screenshot I did with Qt 5.4's webkit, either.

Interesting. I just installed Qt 5.4 on my system and could not reproduce. It is expected that the glyphicons would not show up in the screenshot, as the font face is overridden in capybara-webkit. However, there should still be a clickable area.
I tried this with the latest version of Bootstrap, so perhaps there's a difference in the CSS between the latest version and what you depend on. Aside from that, I'm at a loss as to what may be causing the issue.

I hate to be the +1, but same issue with glyphicon calendar.
Started "Version()"
Finished "Version()" with response "Success(Qt: 5.4.0
WebKit: 538.1
QtWebKit: 5.4.0)"
Wrote response true "Qt: 5.4.0
WebKit: 538.1
QtWebKit: 5.4.0"
Capybara: 2.4.1
capybara-webkit: 1.3.0
Qt: 5.4.0
WebKit: 538.1
QtWebKit: 5.4.0

I had same exact environment between my Ubuntu desktop and Ubuntu server. Only difference was I was running the test on my CI with xvfb-run and the error I was receiving was:
Failed to click element /html/body/div[2]/main/div[1]/div/div[@id='create-ticket-widget']/div[2]/div[@id='ticket-form-container']/div[@id='call_issue_ticket-container']/form[@id='call_issue_ticket-form']/fieldset[@id='call-issue-ticket']/div[@id='sample-numbers-table']/div/table/tbody/tr[2]/td[3]/div/span/i because of overlapping element /html/body/div[2]/main/div[1]/div/div[@id='create-ticket-widget']/div[2]/div[@id='ticket-form-container']/div[@id='call_issue_ticket-container']/form[@id='call_issue_ticket-form']/fieldset[@id='call-issue-ticket']/div[@id='sample-numbers-table']/div/table/tbody/tr[2]/td[3]/div/span at position 1270, 524;

However using @mhoran's tip with #trigger('click') worked fine. Very strange that it works fine on my desktop, but I'm only seeing issues on my Ubuntu Server CI.

@mhoran Is there anything I can do to move this forward or is this a Qt issue?

I've been unable to reproduce this issue with either glyphicon-calendar or glyphicon-fullscreen and Qt 5.4.2 on Linux (Debian Jessie with Qt installed via the official installer.)
My example app is at https://github.com/mhoran/capybara-webkit-demo/. See spec/features/fonticon_spec.rb. I'd be interested to know if others see a failure on their platform running the same spec, or if there's some other difference between my repro attempt and the actual test failure.

Well @mhoran, I actually ran your exact scenario on my Ubuntu Server CI and it failed:
nritholtz@catqa01:~/capybara-webkit-demo$ xvfb-run bundle exec rspec spec/features/fonticon_spec.rb
Rack::File headers parameter replaces cache_control after Rack 1.5.
F

Failures:

  1) visiting a fonticon page should be able to click the fonticon
     Failure/Error: page.find('a').click
     Capybara::Webkit::ClickFailed:
       Failed to find position for element /html/body/div/a
     # ./spec/features/fonticon_spec.rb:10:in `block (2 levels) in <top (require                                                                                d)>'

Finished in 3.46 seconds
1 example, 1 failure

Failed examples:

rspec ./spec/features/fonticon_spec.rb:4 # visiting a fonticon page should be ab

Now, when I change it to use trigger('click'), it works just fine:
nritholtz@catqa01:~/capybara-webkit-demo$ xvfb-run bundle exec rspec spec/features/fonticon_spec.rb
Rack::File headers parameter replaces cache_control after Rack 1.5.
.

Finished in 0.32939 seconds
1 example, 0 failures

+1

I can confirm it's also working on Ubuntu with trigger('click')
Source: qtwebkit-opensource-src Version: 5.1.1-1ubuntu8

Closing due to age, and lack of a way to replicate.  We can reopen if this is still an issue and a way to replicate is provided


Create EventManager.js

Add core EventManager class.
Define some standard game events.
Add basic error handling.

I have had too much silly sauce and did this in error.


Test UK localozation with transifex

100% reviewed for the source file 'content/en/releases/notes.md'
on the 'uk' language.<!--
Hello!
Remember to ADD A DESCRIPTION and delete this note before submitting
your pull request. The description should explain what will change,
and why.
PLEASE title the FIRST commit appropriately, so that if you squash all
your commits into one, the combined commit message makes sense.
For overall help on editing and submitting pull requests, visit:
https://kubernetes.io/docs/contribute/suggesting-improvements/
Use the default base branch, “main”, if you're documenting existing
features in the English localization.
If you're working on a different localization (not English), see
https://kubernetes.io/docs/contribute/new-content/overview/#choose-which-git-branch-to-use
for advice.
If you're documenting a feature that will be part of a future release, see
https://kubernetes.io/docs/contribute/new-content/new-features/ for advice.
-->

Hi @MaxymVlasov, please follow these guides to sign easycla,
You can find about EasyCLA here - https://docs.linuxfoundation.org/lfx/easycla
and the steps to sign EasyCLA are here - https://docs.linuxfoundation.org/v2/easycla/contributors/individual-contributor
You can start your signing EasyCLA from here - https://api.easycla.lfx.linuxfoundation.org/v2/repository-provider/github/sign/18706487/51478266/38056/#/?version=2

/easycla

@sftim That's a test PR made just for test Transifex integration ad didn't contain any valid translation (at least, it was not reviewed at all and was made to have an EasyCLA comment which I can refer to newcomers and in the Transifex support chat.)
Feel free to ignore it, it will be closed when we find the best, working solution for us.
And, as we are already here, be prepared that we will go to you in Slack in a week or so to discuss the localization process and integrations :)

/easycla


No Concise Docs With Contract Examples

It is not clear what a basic implementation of a deployed contract looks like in the docs. The current docs require using Hardhat to setup. This goes against the standard in complementary documentation for subscriptions and VRF, things that will be frequently used with this service.
While Hardhat has its advantages in testing, having different styles of documentation makes it harder for developers to understand the macro picture of the underlying workings. It would be very nice to see a folder with compiled examples at the very least!

Thank you for the feedback!
As this product is still in beta, we do not yet have the full suite of tooling that is available for other products.  Stay tuned for updates as we continue to expand our documentation and tooling support.

Cheers. It's more of anti-tooling I would love to see!
I believe strongly that Web3 should not use frameworks for mission critical things, at least not as a default. It is extremely important to understand at lower level each piece of the functionality because dapps must be built bulletproof from day 1. It's the opposite of the MVP and iterate approach of most development. You need to start with the finished roadmap with all externalities documenting from the beginning, and then test in order. While it is still iteration, you're starting from the goal and working back to the foundation.
When you abstract complex operations, you can mask potential issues.


ERROR: NTP is unsynchronised, Please confirm your ntp status before continue

The swarm cluster is maintaining sth. against clock synchronization. You have to run
yum install -y ntp&service ntpd restart for centos, or apt-get install -y ntp&service ntpd start
More detail


CatchAllEventListenerInterface

Currently it's cumbersome to create a listener/projector that is invoked for all event types:
<?php
final class SomeLogProjector implements ProjectorInterface
{
    public function whenSomeEventType1(SomeEventType1 $event, RawEvent $rawEvent): void
    {
        $this->addToEventLog($rawEvent)
    }

    public function whenSomeEventType2(SomeEventType2 $event, RawEvent $rawEvent): void
    {
        $this->addToEventLog($rawEvent)
    }

    // ...
}

With the BeforeInvokeInterface things can be centralized, but the corresponding when*() methods still have to be implemented in order for the listener to be invoked:
<?php
final class SomeLogProjector implements ProjectorInterface, BeforeInvokeInterface
{

    public function beforeInvoke(EventEnvelope $eventEnvelope): void
    {
        $this->addToEventLog($eventEnvelope->getRawEvent())
    }

    public function whenSomeEventType1(SomeEventType1 $_): void
    {
        // this method is required
    }

    public function whenSomeEventType2(SomeEventType2 $_): void
    {
        // this method is required
    }

    // ...
}

To make these cases easier we should provide an additional (marker) interface that informs the framework that this listener should be invoked for all events:
<?php
final class SomeLogProjector implements ProjectorInterface, CatchAllEventListener, BeforeInvokeInterface
{

    public function beforeInvoke(EventEnvelope $eventEnvelope): void
    {
        $this->addToEventLog($eventEnvelope->getRawEvent())
    }

    public function whenSomeEventType2(SomeEventType2 $event): void
    {
        // this method CAN still be implemented and will be invoked for the corresponding event type
    }

    // ...
}

See discussion on Slack: https://neos-project.slack.com/archives/C27B6UF4N/p1581434809005000


extract rounds extracted forks up to their physical size

Here's the System file on the Mac OS 9.0.4 CD, as described by analyze:
- 794:1 📄 “System”, ID #2220 (0x8ac), type 'zsys' creator 'MACS', script code default
    Parent ID: #2211 (0x8a3)
	DF: lsize 6284692 (mod blocksize = 5524), psize 6289920 bytes, extent sum 585 blocks (6289920 bytes)
	DF blocks:  [✅…✅]
	RF: lsize 7985095 (mod blocksize = 7111), psize 7988736 bytes, extent sum 743 blocks (7988736 bytes)

If you extract it, you get a file whose forks have sizes:
% ls -dl System
-rw-r--r--@ 1 user staff  6289920 Apr 12  2000 System
% ls -dl System/..namedfork/rsrc
-rw-r--r--  1 user staff  7988736 Apr 12  2000 System/..namedfork/rsrc

Those are the physical sizes, not the logical lengths.

Fixed by e14dc334d6ef2f87da2fb47274a683b40a164373.


Dialogue keeps crashing every time it load

Bug report
hi So everytime I go on my fnf week it crashed i even looked at the tutorials but that didn't work.
edit: so your data going have to be in assets\data\your-song
Did you edit anything? If so, mention or summarize your changes.
no playstate is the same case 'your-song': startdialogue(dialogueJson);

Below this code around line 754 in PlayState.hx:
		var dialogueJson:DialogueFile = null;
		var file:String = Paths.json(songName + '/dialogue'); //Checks for json/Psych Engine dialogue
		if (OpenFlAssets.exists(file)) {
			dialogueJson = DialogueBoxPsych.parseDialogue(file);
		}

Add this code:
		#if MODS_ALLOWED
		var file:String = Paths.modsJson(songName + '/dialogue'); //Checks for json/Psych Engine dialogue in mod folder
		if(dialogueJson == null && FileSystem.exists(file)) { // Only check if dialogue has not already been found
			dialogueJson = DialogueBoxPsych.parseDialogue(file);
		}
		#end

To make the dialogue file able to be in the mods/data/your-song folder. It needs to be called dialogue.json still.
I have made a PR for this to be included in base engine. #583

i have the same issue i cant find that line on playstate

Below this code around line 754 in PlayState.hx:
		var dialogueJson:DialogueFile = null;
		var file:String = Paths.json(songName + '/dialogue'); //Checks for json/Psych Engine dialogue
		if (OpenFlAssets.exists(file)) {
			dialogueJson = DialogueBoxPsych.parseDialogue(file);
		}

Add this code:
		#if MODS_ALLOWED
		var file:String = Paths.modsJson(songName + '/dialogue'); //Checks for json/Psych Engine dialogue in mod folder
		if(dialogueJson == null && FileSystem.exists(file)) { // Only check if dialogue has not already been found
			dialogueJson = DialogueBoxPsych.parseDialogue(file);
		}
		#end

To make the dialogue file able to be in the mods/data/your-song folder. It needs to be called dialogue.json still.
I have made a PR for this to be included in base engine. #583

i have the same issue i cant find that line, if someone could give me the playstate-hx already modified

bro just download psych engine with the latest commits


MC surnames modified

Space between Mc and Surname deleted to improve the searches in the database.
Example: "MC CLAIN" -> "MCCLAIN"

Changes Unknown when pulling b3bd910adb3bcef838228cf4294abf52662f0b40 on adrianblanco:patch-1 into ** on california-civic-data-coalition:master**.

The idea is appreciated but for this correction system to work the names in this file must exactly match how they appear in the raw CAL-ACCESS data, right or wrong.
If you wanted to take on the task of correcting candidate names, a little coding would be required. First we'd need to make a function that accepted raw CAL-ACCESS data and compared it to a corrections file. Then we'd need to create that corrections file as a sibling to the party file that was the focus of the code rush. Third we'd need to integrate the new correction function to the proxy models that process and transform the raw data.


Feature request : Lost my ".rclone.conf" file ! ;( Add automatic backup of it when running Rclone ?

Hello,
Rclone version : 1.35
OS used: Linux on ARM32 (running on a cheap baremetal scaleway VPS https://www.scaleway.com/pricing/)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone --checksum copy ACD:'/P2/A/REPORTS/' ACD:'/P/A/REPORTS/'
note: I made an error, and copied the folder REPORTS (from '/P2/A/REPORTS/') inside another place 'P' where it was already existing with the same content. Too bad for me as it appears to me that it deleted my "root/.rclone.conf" file to 0 byte. ;(
Is there a way to get it back without creating the rclone config again from scratch (it took me several hours last time I did it. Hopefully I took some notes to make it faster next time : see below (*)?
If not, could rclone automatically create in the future version a backup of this file alone ? It would be great if rclone itself saves a backup (or several) of it before running.
Many thanks in advance ;)
(*) In case this helps others:
Use "Midnight Commander" for managing files. Installing this files manager : sudo apt-get install mc  (then just run the "mc" (without quotes) command to launch it.
Then, use the w3m linux browser (http://www.howtogeek.com/103574/how-to-browse-from-the-linux-terminal-with-w3m/  and https://forum.rclone.org/t/unable-to-auth-new-amazon-drive/162) in order to fill the Amazon drive form and be able to save the captcha image. Then hopefully for me I was able to previously configure Google Drive (see create your own client id : http://rclone.org/drive/) ! So I was able to copy the captcha images to my Google Drive where I was able to decipher it ! Ouch ! It was long but it worked ! ;)
edit: I was able to create a new rclone config from scratch faster today (about 30 minutes) as I had no need to get a captcha! ;)

Bad luck!
I'm not clear on exactly what happened though

note: I made an error, and copied the folder REPORTS (from '/P2/A/REPORTS/') inside another place 'P' where it was already existing with the same content. Too bad for me as it appears to me that it deleted my "root/.rclone.conf" file to 0 byte. ;(

Was "root/.rclone.conf" in that directory tree anywhere?
Is it possible your disk got full at one point?  Then when rclone attempted to update the config file with a new token it wrote it out a 0 bytes?
BTW http://rclone.org/remote_setup/ has a procedure for doing remote setups which you might find easier!

This looks like a one off item and solved by system backups.


Update copterhack2022.md

Hi! Little change, we are a team from Poland ;)

Thanks, fixed in the Russian version also.


API is broken

check console
Unexpected token < in JSON at position 0

Hi @devTomek , it should be working again now.
Apologies for the inconvenience and thanks for your report.

Thanks for fast response! You are awesome :)


style: Responsive containers

HOME-SMALL

HOME-MEDIUM

(Scales all the way up to "XL")
Closes #132.
ACCOUNTS

(Same thing, only screenshot included here.)
Closes #133.

@stanleyjones is this ready for review?

@fmorency Yes. Sorry, I forgot to request a review. I'll add you now.

Oh weird, I can't modify reviewers or assignee. That must be why I didn't.


don't overwrite pip

we have an async release channel and a real release now, so we should be able to usefully update cog without rebuilding images

implemented in https://github.com/datakami/cognix/commit/e4a4b2446e3cf29aff6b2c2b3efd9e799575cde5 + https://github.com/datakami/cognix/commit/c40a2f2bb7a3681e3769f4c597505c72b8a4097a


Missing documentation for process.env.CI

The npm run build command is affected by the environment variable CI, but it is not well documented.
This is what the existing documentation says about it:

When creating a build of your application with npm run build linter warnings are not checked by default. Like npm test, you can force the build to perform a linter warning check by setting the environment variable CI. If any warnings are encountered then the build fails.

By looking at the source code or playing with the command, there are several side effects:

Some errors are silenced:
https://github.com/facebook/create-react-app/blob/7b196fa4d6f4a98b93a460440adfef206e214652/test/fixtures/__shared__/util/setup.js#L105
There is no color in the output anymore
Another side effect here

I believe it would be a good choice to have no undocumented side effect.

Use cases where it is a problem:

I want to master my CI pipeline: I can't just set an environment variable without knowing exactly what it does.
I want to treat warnings as errors locally and the only option seems to be to set the CI option (this is a problem in intslef): I would also like to know what it does and keep the colors in the output.
The usage of npm build don't talk about the envinroment variables, neither does npm help build, it is then confusing to see the behavior change between computers.

$ npm build -h
npm build [<folder>]

Thank you for reading this.
Best,
Simon

There is a good reason why linting rules separate warning and errors. Warnings are intended to alert the developer to take a look at something. The developer then makes a judgement call on whether there is a real issue. I don't want tooling to make that decision for me. If there is an option that can be set to treat warning as errors that could be very useful and many people might use it. However, it should be an option that is not combined with other behavioural modifications in the build.


[Service Bus] fix async auth test

found that test_auth_async/test_client_azure_sas_credential_async was failing in the uamqp pipeline, but was getting skipped in the eventhub livetest pipeline for some reason.

/azp run python - servicebus - tests


List and Install all packages through a dotfile

Similar to a gemfile, but for all packages. It would simplify transferring to a new machine.

Could one also use this for syncing installed Plugins between different machines?


First steps with pyonpencl and CuPy

Installation
Here what I did (based on this: https://documen.tician.de/pyopencl/ and https://docs.cupy.dev/en/latest/install.html):
Install Miniconda and co
cd ~
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
source miniconda3/bin/activate
pip install numpy scipy matplotlib pandas ipython

Install cupy
Needs consistent between Cuda toolkit and cupy version
conda install mamba -n base -c conda-forge
pip install cupy-cuda101
mamba install cudatoolkit=10.1.243

Install pyopencl
conda config --add channels conda-forge
conda install pyopencl

Check that thre is a OpenCL installation in the system:
ls /etc/OpenCL/vendors

Make the OpenCL installation visible to pyopencl:
conda install ocl-icd-system

Example
Some examples here: https://github.com/inducer/pyopencl/blob/master/examples
Here a basic example with some comments
import pyopencl as cl
import pyopencl.array as cl_array
import numpy
import numpy.linalg as la

a = numpy.random.rand(50000).astype(numpy.float32)
b = numpy.random.rand(50000).astype(numpy.float32)

ctx = cl.create_some_context()
queue = cl.CommandQueue(ctx)

a_dev = cl_array.to_device(queue, a)
b_dev = cl_array.to_device(queue, b)
dest_dev = cl_array.empty_like(a_dev)

# Here he makes the sum of the two arrays
# with an explicit kernel
prg = cl.Program(ctx, """
    __kernel void sum(__global const float *a,
    __global const float *b, __global float *c)
    {
      int gid = get_global_id(0);
      c[gid] = a[gid] + b[gid];
    }
    """).build()

knl = prg.sum  # Use this Kernel object for repeated calls
knl(queue, a.shape, None, a_dev.data, b_dev.data, dest_dev.data)
# The second argument gives the size od the computing grid (number of threads)
# See here: https://documen.tician.de/pyopencl/runtime_program.html#pyopencl.Kernel.__call__

# Here he compares the result with the operation done with the numpy syntax
print(la.norm((dest_dev - (a_dev+b_dev)).get()))

FFT
We want to use this one: https://github.com/geggo/gpyfft
We seem to need Cython, so we install it:
pip install cython

One could build it allowing these instructions but it looks hard (https://github.com/clMathLibraries/clFFT/wiki/Build)
We to get it via conda-force instead:
 conda install -c conda-forge clfft

I find library and headers here:
ls ~/miniconda3/pkgs/clfft-2.12.2-h83d4a3d_1/
# gives: include  info  lib

I install with pip providing extra flags as follows:
git clone https://github.com/geggo/gpyfft
pip install --global-option=build_ext --global-option="-I/home/giadarol/miniconda3/pkgs/clfft-2.12.2-h83d4a3d_1/include" --global-option="-L/home/giadarol/miniconda3/pkgs/clfft-2.12.2-h83d4a3d_1/lib" gpyfft/

This example runs without errors:
import numpy as np
import pyopencl as cl
import pyopencl.array as cla
from gpyfft.fft import FFT

context = cl.create_some_context()
queue = cl.CommandQueue(context)

data_host = np.zeros((4, 1024, 1024), dtype = np.complex64)
#data_host[:] = some_useful_data
data_gpu = cla.to_device(queue, data_host)

transform = FFT(context, queue, data_gpu, axes = (2, 1))

event, = transform.enqueue()
event.wait()

result_host = data_gpu.get()

To understand how to use more advanced features, I need to go the issues :-(. See here:
https://github.com/geggo/gpyfft/issues/22
First experience:
For now they are at: https://github.com/giadarol/PyPIC/tree/reorganize/examples/001_pyopencl_exploration
For performance remember this (found here):
# if no axes are given, transform all axes, select axes order for good performance depending on memory layout
if in_array.flags.c_contiguous:
     axes = np.arange(in_array.ndim)[::-1]
elif in_array.flags.f_contiguous:
     axes = np.arange(in_array.ndim)
 else:
     axes = np.arange(in_array.ndim)[::-1]


Bug fix for sin, cos and tan

sin(100) returns -7208436636117832000000000000000000 without this fix.
Stumbled upon this bug when doing for-loops with trigonometric functions. Have a nice day!

@MrYakobo Really really sorry for my late response 🙇
Thank you for your help!

It's 100% cool. Hope you had a nice day that day 👌


⚠ Bofrost.de has degraded performance

In fe243fb, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1035 ms

Resolved: Bofrost.de performance has improved in dceed3c.


2GB swapfile on Linux slaves

to address https://github.com/servo/saltfs/issues/711
from example at
https://serverfault.com/questions/628531/how-to-enable-swap-with-salt-stack

This change is

I would like to incorporate some of the suggestions from that same post about using fallocate instead of dd and maybe handling resizing properly.


Custom header

Hi,
Thanks for a great tool! It works great for me, apart of one fairly big issue. When I generate the PDF I point the tool to the URL of another application, but I also need to pass the authorization token together with the request. Currently I don't know how to do it. I have looked into WkHtmlToPdf documentation and found the --custom-header option in the tool, but I'm not sure how to implement it into your code. Any chance you could help me with that?
Thanks

I haven't tried that scenario, but you can pass additional options using the CustomWkHtmlPageArgs property of your PdfConversionSettings. There are the following places to stick additional configuration
CustomWkHtmlArgs
CustomWkHtmlCoverArgs
CustomWkHtmlPageArgs
CustomWkHtmlTocArgs
CustomWkHtmlFooterArgs
CustomWkHtmlHeaderArgs

Something like the following should be what you're after. I'll try and make a test to see if that works, just need to find a site I know that requires some sort of auth or api token.
In the PDF you'll see the header in the output.
var settings = new PdfConversionSettings
{
    Title = "I can have headers?",
    OutputPath = @"C:\temp\custom-header.pdf",
    ContentUrl = "https://www.whatismybrowser.com/detect/what-http-headers-is-my-browser-sending",
    CustomWkHtmlPageArgs = "--custom-header authorization \"bearer ABC123xyz789\""
};

PdfConvert.Convert(settings);

I think this fixed your old issue? Closing. If it hasn't let me, I promise it won't be two years for a response. :)


Use title attribute if data-hint attribute doesn't exist

@adam-lynch Seems like to good idea. We just need some way to switch this feature on/off. Thinking loud...SASS variable (custom build) or may be just a line commented in the CSS to turn it on?

I don't see why you'd ever want it turned off.
If you're using it as you are now, then it'll take the data-hint value. If you decide to not give a data-hint (I assume it does nothing right now), it'll now look for a title and use it. If a title also doesn't exist, it'll do what it does now when data-hint is missing; nothing (same assumption again).
So, disabling it would only make sense for people using this currently without data-hint which isn't a use case / doesn't make any sense. Right?

+1

+1

Was looking into this issue. Some thoughts:

Right now, the element which should have tooltips are targeted using [data-hint] selector. If you provide a fallback to title attribute and the element doesn't have a [data-hint] attribute, the target selector wouldn't work anymore.

Having a title attribute itself triggers a default tooltip which will conflict with Hint tooltips.

Wouldn't a title attribute be better for accessibility too?

In support of accessibility, Hint.css now works with aria-label attribute too. As for supporting the title attribute, conflict with the native tooltip is an issue which cannot be prevented.
Closing this issue.


Restore sysctl init container

This yet another alternative approach to https://github.com/giantswarm/nginx-ingress-controller-app/pull/55

Closed in favor of https://github.com/giantswarm/nginx-ingress-controller-app/pull/61


Cargo: Build doesn't

Version of VSCode: 1.13.0-insider
Version of the extension: 0.3.14
OS: macOS
Description:
In RLS mode Cargo: Build just opens a terminal. The same goes for test, check, etc.
Ctrl-Shift-B builds successfully in Legacy mode, once I re-establish the keybinding.
There is no log output for any of these operations.
If I type cargo build myself in the terminal, the build succeeds.
Naturally, no problems are detected by VSCode from a terminal command, making this slightly less useful than having a terminal open and using Vim.
Could you make RLS mode's build behave like Legacy mode's?
At present RLS mode (a) can't do cross-file symbol navigation, (b) can't build or run tests, (c) can't display build or lint errors in a way that VSCode can understand, which makes the whole extension limited to slightly flawed autocomplete.
Do let me know if there's any more logging I can provide. Thanks!
Output of the "Rust logging" channel:
DEBUG: Configuration: Rustup: create: sysroot=/Users/rnewman/.rustup/toolchains/nightly-x86_64-apple-darwin
DEBUG: Configuration: Rustup: updateComponents: this.components=["cargo-x86_64-apple-darwin (default)","rls-x86_64-apple-darwin (installed)","rust-analysis-x86_64-apple-darwin (installed)","rust-docs-x86_64-apple-darwin (default)","rust-src (installed)","rust-std-aarch64-apple-ios","rust-std-aarch64-linux-android","rust-std-aarch64-unknown-fuchsia","rust-std-aarch64-unknown-linux-gnu","rust-std-arm-linux-androideabi","rust-std-arm-unknown-linux-gnueabi","rust-std-arm-unknown-linux-gnueabihf","rust-std-arm-unknown-linux-musleabi","rust-std-arm-unknown-linux-musleabihf","rust-std-armv7-apple-ios","rust-std-armv7-linux-androideabi","rust-std-armv7-unknown-linux-gnueabihf","rust-std-armv7-unknown-linux-musleabihf","rust-std-armv7s-apple-ios","rust-std-asmjs-unknown-emscripten","rust-std-i386-apple-ios","rust-std-i586-pc-windows-msvc","rust-std-i586-unknown-linux-gnu","rust-std-i686-apple-darwin","rust-std-i686-linux-android","rust-std-i686-pc-windows-gnu","rust-std-i686-pc-windows-msvc","rust-std-i686-unknown-freebsd","rust-std-i686-unknown-linux-gnu","rust-std-i686-unknown-linux-musl","rust-std-mips-unknown-linux-gnu","rust-std-mips-unknown-linux-musl","rust-std-mips64-unknown-linux-gnuabi64","rust-std-mips64el-unknown-linux-gnuabi64","rust-std-mipsel-unknown-linux-gnu","rust-std-mipsel-unknown-linux-musl","rust-std-powerpc-unknown-linux-gnu","rust-std-powerpc64-unknown-linux-gnu","rust-std-powerpc64le-unknown-linux-gnu","rust-std-s390x-unknown-linux-gnu","rust-std-sparc64-unknown-linux-gnu","rust-std-wasm32-unknown-emscripten","rust-std-x86_64-apple-darwin (default)","rust-std-x86_64-apple-ios","rust-std-x86_64-linux-android","rust-std-x86_64-pc-windows-gnu","rust-std-x86_64-pc-windows-msvc","rust-std-x86_64-rumprun-netbsd","rust-std-x86_64-unknown-freebsd","rust-std-x86_64-unknown-fuchsia","rust-std-x86_64-unknown-linux-gnu","rust-std-x86_64-unknown-linux-musl","rust-std-x86_64-unknown-netbsd","rustc-x86_64-apple-darwin (default)",""]
DEBUG: Configuration: Rustup: updatePathToRlsExecutable: rlsInstalled=true
DEBUG: Configuration: Rustup: updatePathToRlsExecutable: rlsPath=/Users/rnewman/.cargo/bin/rls
DEBUG: runInRlsMode: rlsPath=/Users/rnewman/.cargo/bin/rls
DEBUG: runInRlsMode: env={"RUST_SRC_PATH":"/Users/rnewman/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src"}
DEBUG: runInRlsMode: args=[]
DEBUG: runInRlsMode: revealOutputChannelOn=3
DEBUG: Language Client Manager: start

I'm seeing the same problem with rustup and RLS: When I run "Cargo: Build", all the output goes into the Terminal tab, and the Problems tab is empty.
In the status bar, it says "RLS: Starting". If I click on it, I get a message bar saying "[Error] Connection got disposed." I'm not sure if this indicates that there is a problem, or how to fix it.

@rnewman,
You have already opened another issue which is the same: #261.
I'm closing the issue.

Not the same: this set of symptoms were of no build running at all, not hidden log output.

Caveat: I haven't checked if the same problem still happens with master or the latest release.


Fix read from uninitialized memory bug in GrpcBufferWriter.

This commit fixes an issue in which the following sequence of operations
leads to use of uninitialized memory:

Caller invokes GrpcBufferWriter::Next(), and then makes use of 8191
bytes in the returned buffer (which is 8192 bytes in size).

Caller then returns the unused single byte via
GrpcBufferWriter::BackUp(). This method invokes
g_core_codegen_interface->grpc_slice_split_tail(), which causes
backup_slice_ to be a grpc_slice with one byte.

At the next invocation of GrpcBufferWriter::Next(), a reference to
the single byte grpc_slice is returned to the caller.

The problem here is that the returned reference is to the inlined buffer
in the grpc_slice, which is resident in slice_, not the location of the
buffer inside slice_buffer_ after
g_core_codegen_interface->grpc_slice_buffer_add() in
GrpcBufferWriter::Next(). As a result, any data the caller writes to the
returned void* data is lost.
The solution is to avoid inlined backup slices.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Thanks for your pull request. The automated tests will run as soon as one of the admins verifies this change is ok for us to run on our infrastructure.

Jenkins: test this please

Can we get another run of Jenkins?

Jenkins test this please
On Wed, Jan 25, 2017, 2:03 PM htuch<EMAIL_ADDRESS>wrote:

Can we get another run of Jenkins?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/grpc/grpc/pull/9421#issuecomment-275246985, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJpudZyvw2-dNkBacwAe4kaDnLD8Vvvpks5rV8aggaJpZM4LpwFd
.

I rebased to collect the fix for https://github.com/grpc/grpc/issues/9437. After running the Jenkins tests locally, I'm mostly seeing flakes. Can we run Jenkins again? Thanks.

Jenkins test this please

I think the remaining failures are all independent of this PR.

Can this be merged yet?