error handling for screen not attached

Need to look at error handling for display.begin()

I added a conditional handler for display.begin(), but the routine doesn't return anything. I've checked a few Arduino EPD libraries, and none seem to check if the screen is responding properly. I've logged an issue against the library and asked in the forums how to handle this.

EPD is write only so @ladyada closed my issue as un-fixable.


Make rearrange_ranks resilient to race conditions

In less strict isolation levels, the first or last row according to the ranking
may disappear after a rank conflict is identified, but before rearranging
occurs. Allow for approximate ordering in this case.
Serializable isolation level should still guarantee strict ordering.
undefined method `rank' for nil:NilClass
[GEM_ROOT]/gems/ranked-model-0.4.0/lib/ranked-model/ranker.rb:177 :in rearrange_ranks
[GEM_ROOT]/gems/ranked-model-0.4.0/lib/ranked-model/ranker.rb:166 :in assure_unique_position
[GEM_ROOT]/gems/ranked-model-0.4.0/lib/ranked-model/ranker.rb:61 :in handle_ranking
[GEM_ROOT]/gems/ranked-model-0.4.0/lib/ranked-model.rb:31 :in block in handle_ranking
[GEM_ROOT]/gems/ranked-model-0.4.0/lib/ranked-model.rb:30 :in each
[GEM_ROOT]/gems/ranked-model-0.4.0/lib/ranked-model.rb:30 :in handle_ranking

probably related to https://github.com/mixonic/ranked-model/issues/124

Could this be rebased to see if the current version has the fault?

This is the problem I reported in #182, but this only fixes the symptom. #179 is the better fix for this particular problem. I think this can be closed.

Thanks for finding all these old tickets @fschwahn :) I was never keen on this nil checking so I'm glad there's a better fix :D


Organization accounts for non-profit organizations

What's the problem this feature will solve?
In the newly announced organization accounts, non-profits are mentioned in the announcement.  In signing up to create such an account, only "company" and "community" are available.
There are non-profit organizations - which are not community run organization - but a community serving organization.  Is this the intention?
Describe the solution you'd like
A distinction between community run vs community serving.   Or clarity that one can sign up in this fashion. i.e. this might be a documentation issue - or clarification on website.
Additional context
wwpdb.org

This is extremely important, many research organizations are not companies but non-profit organizations. I just came here because I faced the same problem when adding my organization which is not a company and not a community but has been a non-profit research institute for several decades.


Remove unneccessary guava dependency

Separated classes AlgorithmFactory and RSAKeyProviderFactory to enable testing.

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1
- Added 1

Complexity increasing per file
==============================
- src/test/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactoryTest.java  1
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactory.java  5
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/RSAKeyProviderFactory.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/RSAKeyProviderFactory.java  1
- src/test/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactoryTest.java  1
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactory.java  5

See the complete overview on Codacy

Coverage increased (+0.5%) to 87.532% when pulling 438aadff22188d94f3fdbb63c48a26c1ae233feb on wuan:cleanup_dependencies into 01b557f3b0479ac7ea98fd24250e1441b3eabd0a on Mercateo:master.

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- src/test/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactoryTest.java  1
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/RSAKeyProviderFactory.java  1
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactory.java  5

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactory.java  5
- src/test/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactoryTest.java  1
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/RSAKeyProviderFactory.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactory.java  5
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/RSAKeyProviderFactory.java  1
- src/test/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactoryTest.java  1

See the complete overview on Codacy

 Here is an overview of what got changed by this pull request:

Issues
======
+ Solved 1

Complexity increasing per file
==============================
- src/test/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactoryTest.java  1
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/AlgorithmFactory.java  5
- src/main/java/com/mercateo/spring/security/jwt/token/verifier/RSAKeyProviderFactory.java  1

See the complete overview on Codacy


Error in Connect-ExchangeOnline -AppId <%App_id%> -CertificateFilePath "C:\users\navin\Documents\TestCert.pfx" -Organization "contoso.onmicrosoft.com" command

When try to run the Connect-ExchangeOnline -AppId <%App_id%> -CertificateFilePath "C:\users\navin\Documents\TestCert.pfx" -Organization "contoso.onmicrosoft.com" command getting following error.
New-ExoPSSession : Failed to load the Certificate, this can be because of any of the following reasons.
1. Certificate file referred by CertificateFilePath is not a valid Certificate file.
2. Missing or invalid CertificatePassword provided to load the certificate.
InnerException : The specified network password is not correct.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.5\netFramework\ExchangeOnlineManagement.psm1:475 char:30

... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : NotSpecified: (:) [New-ExoPSSession], Exception
FullyQualifiedErrorId : System.Exception,Microsoft.Exchange.Management.ExoPowershellSnapin.NewExoPSSession

But when try to use Connect-ExchangeOnline -CertificateFilePath "C:\Users\johndoe\Desktop\automation-cert.pfx" -CertificatePassword (ConvertTo-SecureString -String "" -AsPlainText -Force) -AppID "36ee4c6c-0812-40a2-b820-b22ebd02bce3" -Organization "contosoelectronics.onmicrosoft.com"
It's worked fine. Basically when using -CertificatePassword  parameter, it works fine but without -CertificatePassword  parameter this command throwing an error
Connect-ExchangeOnline -AppId <%App_id%> -Certificate <%X509Certificate2 object%> -Organization "contoso.onmicrosoft.com"
[Enter feedback here]

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

ID: 13d88f18-3cc8-5f18-8d61-ff7f5fa4e314
Version Independent ID: 60f9a029-69f3-e65c-6816-fbd414790ce3
Content: Connect-ExchangeOnline (ExchangePowerShell)
Content Source: exchange/exchange-ps/exchange/Connect-ExchangeOnline.md
Service: exchange-powershell
GitHub Login: @chrisda
Microsoft Alias: chrisda

@akt2006, when you use CertificateFilePath, you also need to use CertificatePassword.
See App-only authentication for unattended scripts in the EXO V2 module.

@akt2006 Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.

@akt2006 Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Undebuggable message / Uncaught TypeError: undefined is not a function

I have this Undebuggable message with no detail
Uncaught TypeError: undefined is not a function

It comes from a function (get) that does not exist on $cookies (mixing v1.3.14 & 1.4.0)
Why don't i have an explicit message (object, line or module...) ?

@fipartners I think that we don't have any info from browsers... A plunk / jsfiddle / jsbin would allow us to confirm. But yeh, based on the info provided, I'm not positive that we can do anything about it in Angular itself...

In this jsfiddle, http://jsfiddle.net/scpwhweL/6/, i have the detail
 TypeError: undefined is not a function
    at new <anonymous> ((index):34)

When running in local, I don't have the second line. Maybe a question of parameter ?

@fipartners Could you please share a fiddle that actually shows the error? The one you've linked works OK and doesn't log anything in the console...

http://jsfiddle.net/scpwhweL/11/
I have changed $cookieStore.get('lastValue')in $cookieStore.getD('lastValue')

So, this is pure JS error reporting which has nothing to do with AngularJS. This is browser-dependent. In FFox, for example, you will get:

"Error: $cookieStore.getD is not a function
@http://fiddle.jshell.net/scpwhweL/11/show/:34:22
e@https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js:36:313
Fe/this.$get</</<@https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js:75:449
A/<@https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js:58:476
s@https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.3.14/angular.min.js:7:406
...

while Chrome is less explicit (this should improve soon...):

TypeError: undefined is not a function
at new  ((index):34)
at Object.e [as invoke] (angular.js:4185)
at w.instance (angular.js:8454)
...

Closing, as I really don't see what we could do on the Angular side - those errors are reported by the JS engine....


Sync PX4 simulation time with Gazebo, enabling faster than realtime testing and pause

Currently using the gazebo SITL setup, if gazebo is paused, when it is restarted the quadcopter becomes unstable. For simulation purposes and integration with multiple simulation systems in an HLA, pause is an essential feature, but is currently unsupported.

Generalized summary and labeled

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)


Fixes parameter name

I actually like -queries better... can we change the code?

Despite also liking -queries better, I prefer to change parameter names only when necessary as it breaks other people's scripts, including mine. We were using -queries in the past, and for some reason, we changed it qid_queries.

okay, reasonable decision. go ahead and merge yourself?


"subject" doesn't being sent to whatsapp from android

Sharing "link" with "subject" works with other apps like email and messages but subject isn't being sent to whatsapp from android

@daxosorg
Provide flutter doctor -v and a complete minimal reproducible code sample that shows this issue.

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


error[E0716]: temporary value dropped while borrowed

What type of bug is this?
Other
What subsystems are affected?
Other
What happened?
error[E0716]: temporary value dropped while borrowed
   --> /usr/ports/databases/greptimedb/work/RustPython-02a1d1d7db57afbb78049599c2585cc7cd59e6d3/vm/src/exceptions.rs:948:14
    |
927 |     fn serialize<S: serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
    |                                        ----- has type `&SerializeException<'1>`
...
948 |             &self.exc.cause().as_ref().map(|e| Self::new(self.vm, e)),
    |              ^^^^^^^^^^^^^^^^                  --------------------- argument requires that borrow lasts for `'1`
    |              |
    |              creates a temporary which is freed while still in use
949 |         )?;
    |           - temporary value is freed at the end of this statement

error[E0716]: temporary value dropped while borrowed
   --> /usr/ports/databases/greptimedb/work/RustPython-02a1d1d7db57afbb78049599c2585cc7cd59e6d3/vm/src/exceptions.rs:952:14
    |
927 |     fn serialize<S: serde::Serializer>(&self, s: S) -> Result<S::Ok, S::Error> {
    |                                        ----- has type `&SerializeException<'1>`
...
952 |             &self.exc.context().as_ref().map(|e| Self::new(self.vm, e)),
    |              ^^^^^^^^^^^^^^^^^^                  --------------------- argument requires that borrow lasts for `'1`
    |              |
    |              creates a temporary which is freed while still in use
953 |         )?;
    |           - temporary value is freed at the end of this statement

What operating system did you use?
FreeBSD 13.1
Relevant log output and stack trace
No response
How can we reproduce the bug?
Version: 0.1.0-alpha.3
rust-1.66.0
FreeBSD 13.1

Hi, we are using the nightly-2022-12-20 toolchain for development specified by rust-toolchain, but haven't tested with rust-1.66. Looks like your rustup doesn't override the default toolchain.
Can you change your default toolchain to nightly-2022-12-20 and try it again? Thank you. I think #876 is the same problem.


GWSS new functions

First draft of a notebook for the post.
Notes:

The narrative can probably be refined a bit.
The multi-contig plot isn't coloured yet because that has not been released yet, I think.
I am not quite sure how I am supposed to be importing malariagen_data. I ran this notebook on Colab but that doesn't seem to be how others were created.

Thanks @jonbrenas. The way I develop jupyter notebooks for conversion into jekyll blog posts is described in full here. This is all run from my local computer, although can also be run from a vertex AI workbench VM with a bit of tweaking if it's taking too long to run the examples you want to run. Happy to talk through if useful.

Thank @alimanfoo. pixi doesn't seem to be able to add malariagen_data, though. Am I doing something wrong or am I supposed to go around pixi ?

Thank @alimanfoo. pixi doesn't seem to be able to add malariagen_data, though. Am I doing something wrong or am I supposed to go around pixi ?

By default pixi tries to install packages via conda. To install packages from PyPI add the --pypi option, e.g.:
pixi install --pypi malariagen_data

It is definitely not rendering properly. @alimanfoo, I might need a hand when you are less busy.

It is definitely not rendering properly. @alimanfoo, I might need a hand when you are less busy.

Hi @jonbrenas, take a look at the section in my blog post about bokeh interactive plots -- in particular jquery needs to be included in the output, which can be done via a cell with the %%html magic. Did you try this already?

I am still having some trouble:

The HTML contains outputs that look like this:

followed by the actual plot.
In general, it doesn't look great.
If I hide the two cells that are used to activate Bokeh (using --TagRemovePreprocessor.remove_cell_tags remove_cell) the Bokeh plots refuse to be rendered.

The HTML contains outputs that look like this:

 followed by the actual plot.

Yep, it's best to disable progress output when running notebooks that you then want to render to html. There is now an environment variable that you can use to turn off progress without having to modify the code. E.g., try:
export MGEN_SHOW_PROGRESS=0

In general, it doesn't look great.

Can you be more specific?

If I hide the two cells that are used to activate Bokeh (using --TagRemovePreprocessor.remove_cell_tags remove_cell) the Bokeh plots refuse to be rendered.

Yep, you need to remove the input only. If you remove the output as well then you defeat the purpose of adding the cell in the first place :)

Sorry @alimanfoo, my last message was more meant as notes to myself than as a request for help. But your help certainly saved me a lot of time trying to find solutions on my own, so thank you!

The fact that it doesn't look great as to do with the fact that there is no .css (yet) to make the code cells pop-up and handle the internal links. I assume style.scss is used by Jekyll automatically when the website is generated but I have not been able to find the correct local path to display anything but the code 404 page.

The multi-contig plot isn't coloured yet because that has not been released yet, I think.

Just to mention that this should be available now since v14.0.0 was released a few days ago.

Thank you for the comments @alimanfoo. I was trying to write something that could go as an appendix to the training notebook but I now understand better what the post is supposed to look like.


Start up MongoDB instance in CI process

User Story:
As a developer, I want MongoDB to be running on the CI server so that we can run our suite of DB tests
Acceptance Criteria:

MongoDB up and running during build
DB tests are executed as part of CI process

depends on #37 setup mongodb connection


chore(pingcap/community): disable auto merge by bot

Why
the community pull requests need more votes and days.

/approve


this class is not key value coding-compliant for the key ibCalendarDataSource.'

Hi i get this error  : this class is not key value coding-compliant for the key ibCalendarDataSource.'
i follow your set up video step by step
and here is my code :
`
import UIKit
import  JTAppleCalendar
class ViewController : UIViewController {
let formatter = DateFormatter()
override func viewDidLoad() {
    super.viewDidLoad()
}
override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
}

}
extension ViewController : JTAppleCalendarViewDelegate,JTAppleCalendarViewDataSource
{
func calendar(_ calendar: JTAppleCalendarView, willDisplay cell: JTAppleCell, forItemAt date: Date, cellState: CellState, indexPath: IndexPath) {
}

func configureCalendar(_ calendar: JTAppleCalendarView) -> ConfigurationParameters {
    formatter.dateFormat="yyyy MM dd"
    formatter.timeZone=Calendar.current.timeZone
    formatter.locale=Calendar.current.locale
    let startDate=formatter.date(from: "2017 01 02")
    let endDate=formatter.date(from: "2017 10 02")
    let parameters=ConfigurationParameters(startDate: startDate!, endDate: endDate!)
    return parameters
}

func calendar(_ calendar: JTAppleCalendarView, cellForItemAt date: Date, cellState: CellState, indexPath: IndexPath) -> JTAppleCell {
    let myCustomCell = calendar.dequeueReusableCell(withReuseIdentifier: "CustomCell", for: indexPath) as! CustomCell
    self.calendar(calendar, willDisplay: myCustomCell, forItemAt: date, cellState: cellState, indexPath: indexPath)
    return myCustomCell
}

}
`
here screen from story board :
https://ufile.io/n8hmu
would you please help me solve this problem?
your library is great so wanna use just JT...
tnx a lot

forgot :  use last version

exact error stack
2018-07-30 11:14:05.486031+0430 Moghim24[15721:303288] Unknown class _TtC8Moghim2419JTAppleCalendarView in Interface Builder file.
2018-07-30 11:14:05.495353+0430 Moghim24[15721:303288] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICollectionView 0x7f87e301c200> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ibCalendarDataSource.'

this is an XCode generated error alerting you that you have an error on your storyboard/nib.
basically you have some place on your xib where you have the value ibCalendarDataSource. For an object that does not require it. This means there is one point in the video you made a mistake.

@blueco1 @patchthecode Setting the module to JTAppleCalendar while setting the class for collectionView fixed it.

tnx for your attention
after all i remove all file and start again
in my View named (PersianDatePickerVC) i just add this lines :
import UIKit import JTAppleCalendar class PersianDatePickerVC: UIViewController  {     @IBOutlet var calandarView: JTAppleCalendarView! }
calandarView is linked to view you create in the sample
im adding no more code but after run i get this error
dyld: Library not loaded: @rpath/JTAppleCalendar.framework/JTAppleCalendar
Referenced from: /Users/farshad/Library/Developer/CoreSimulator/Devices/923032CF-CB3E-41C3-A8F9-B6F5DE708BEA/data/Containers/Bundle/Application/31B36151-1707-428B-9DAB-C2FA43E6809D/Moghim24.app/Moghim24
Reason: image not found
i absolutely hang
take 3 days but no solution!
can u help me?
i install it with  Carthage and 7.1.5 version


A user should be able to open QRcode reader in offline mode

fix #1472

look good, I'm able to click on Import QR code with alert pop-up.


Add SSL certificate wrongly giving invalid private key

Rancher versions:
rancher/server or rancher/rancher: 2.0.0
Same private key in project-> resources-> certificates-> add new works on version 2.0.0-beta3.
But on stable release version 2.0.0 it says invalid private RSA key.
I am running rancher with this:
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher --acme-domain my_domain
whereas on this version same private key works
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/server:preview

Duplicate of https://github.com/rancher/rancher/issues/13156, can be added via the API as workaround.


Update polymer.json fragments

Need to include new admin views.

https://www.polymer-project.org/2.0/docs/tools/polymer-json#fragments
This property supports dynamic dependencies. It is an array of any HTML filenames that are not statically linked from the app shell (that is, imports loaded on demand by importHref).
Since admin views are not loaded by importHref, they do not need to be included in the fragments array.


Fiss site data tidy and backup files

NOTE: there is an amalgamated fiss site form that is now in the mergin project (file name is form_fiss_site_20231027.gpkg). Make sure to sync first. Let me know if it doesn't show up for you. I backed up the original fiss site files, but made all the changes in Q to the amalgamated version.

yup.  that was it.  lookin great now - row_empty_remove allows those top excel sheet rows to be discarded (because they are just a few columns wide) for the real column header names
fpr::fpr_import_hab_con(row_empty_remove = T)

Thanks. Ya sorry I ran fpr::fpr_import_hab_con in the console right before I pushed so the backup files would all be there too and forgot to add the row_empty_remove = T call


bug(csr): error page layout not correctly applied

//layouts\error.vue
{
layout: 'empty'
}

route to a 404 page.the error page layout is right

but  a page component has code error.

when route to this page.
the error page layout is  layouts\default.vue  not layouts\error.vue

at<EMAIL_ADDRESS>not this problem.

This question is available on Nuxt.js community (#c2205)

This seems to be resolved now. Closing. Reopen if still happens.

@husayt  it sitll happens at nuxt 1.4.0

Get the same error.
If refreshing the URL with 404, the correct layout is applied.
If visiting the URL via a broken link within the same state, then the layout remains from the previous page (e.g. with nav and all).

I think we need a function that don't use any layout.

If refreshing the URL with 404, the correct layout is applied.
If visiting the URL via a broken link within the same state, then the layout remains from the previous page (e.g. with nav and all).

I'm using nuxt-edge 2.4.0 and this still happens.

#5654

@Atinux  @pi0
any news on this ?

any news on this ?

Encountered this issue in Nuxt 2.8.1
Any update?

Same on 2.9.2
The page 200.html is not generate properly

Same on 2.9.2

@clarkdo I've reassigned you here and closed #5654 as duplicate.

Still having the problem.. any update guys?

Still have this problem. SPA mode.  When calling $nuxt.error, the error.vue page is rendered inside the default.vue layout, ignoring the empty layout specified in the error.vue page itself.
pages/test.vue
export default {
	name: 'test',
	async fetch() {
		try {
			//get some bad URL
		} catch(e) {
			this.$nuxt.error('This will render the error as a route within default.vue, ignoring the error page layout')
		}
	}
}

layouts/error.vue
export default {
		layout: 'empty', //ignored
		props: {
			error: {
				type: Object,
				default: null
			}
		}
	}

layouts/empty.vue
<template>
	<nuxt/>
</template>

Still have this problem. SPA mode. When calling $nuxt.error, the error.vue page is rendered inside the default.vue layout, ignoring the empty layout specified in the error.vue page itself.
pages/test.vue
export default {
	name: 'test',
	async fetch() {
		try {
			//get some bad URL
		} catch(e) {
			this.$nuxt.error('This will render the error as a route within default.vue, ignoring the error page layout')
		}
	}
}

layouts/error.vue
export default {
		layout: 'empty', //ignored
		props: {
			error: {
				type: Object,
				default: null
			}
		}
	}

layouts/empty.vue
<template>
	<nuxt/>
</template>

having exactly the same problem. if error is thrown the default layout applies and layout: 'empty' is ignored

+1

Still the same. Nuxt 2.13.0. Mode universal.

Sorry for the late reply, the original fix is 2 years ago, so it might be some other root cause, can you open a new issue with mininal codebase ? We’ll look into it.

Sorry, seems like i was wrong. Clean nuxt 2.13.0 project reprodution works fine, in contradistinction to my project. If i find the reason that will be not my code, i will create new issue.


Prevent NO_TRANSPILE being set as input language

The #setLanguage(LanguageMode) method has a check that NO_TRANSPILE is not set as input language, but it checked the instance variable instead of checking the method parameter.

Nice catch, thanks!


Evaluate WM payload timing for StepChain workflows

Impact of the new feature
WMAgent
Is your feature request related to a problem? Please describe.
We have seen reports of CMS job inefficiencies, where it is said that WMAgent jobs can result in 2% of the overall inefficiency.
We should study production payload to have a better understanding of where time is actually spent and identify potential improvements.
Describe the solution you'd like
Study StepChain jobs - only Production/Processing jobs - and map steps executed by WMAgent, time spent in each and potentially identify areas of improvements.
The following setup needs to be evaluated:

StepChain without input and pileup data
StepChain with input data (single pileup)
StepChain with input and pileup data

Describe alternatives you've considered
Ideally we should use the latest WMAgent release (>= 2.2.4.x)
Additional context
None

I have added a stepchain section in this wiki:
https://github.com/dmwm/WMCore/wiki/WM-payload-timings-on-different-workflow-types#stepchain-1
Marking issue as done.


UI of Live Code Editor

Related Issue
Wanted to change the UI of Live Code Editor project
Closes: #1101
Describe the changes you've made

Made the CSS and JS file completely separate. Earlier they were included in the HTML file.
Added bootstrap.
Changed the UI completely.

Describe if there is any unusual behaviour of your code(Write NA if there isn't)
NA
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] New and existing unit tests pass locally with my changes.

Screenshots
Before

After

Hey @Vishal-raj-1 @urvashi-code1255 @991rajat @harshgupta20 @ridsuteri
Please review the PR.
Thanks.

Thank You for this awesome contribution. :star_struck:
Keep Contributing.

Hey @991rajat, Thanks for the encouragement. 😄


change the information set of sections in the level.

Hello.
I want to change the information set of sections in the level.
For example, I want to divide the cake into the following sections:
Parts 1: 13 to 18.5
Parts 2: 18.5 to 24.9
parts 3: 25 to 29.9
parts 4: 30 to 34.9
how will i do
And I want to turn off the index display and explain the index of the chart. Please teach me.
Thank you very much.

Do you want 13 as min value and  34.9 as max value ? Right now what it does is based on the number of sections it divides the colors to speedometer.

Do you want 13 as min value and 34.9 as max value ? Right now what it does is based on the number of sections it divides the colors to speedometer.

I want to turn off the index display and explain the index of the chart. can you help me?

Do you want 13 as min value and 34.9 as max value ? Right now what it does is based on the number of sections it divides the colors to speedometer.

If I split the parts unequally, how can I do this?
Example:
Blue: 1 to 15
Red: 16 to 60
Purple: 61 to 90.
and I want to turn off the index display and explain the index of the chart???? please teach me.
Please help me to day. Thank you very much!!!

Do you want 13 as min value and 34.9 as max value ? Right now what it does is based on the number of sections it divides the colors to speedometer.

How can I use the value as a decimal? example 18.6 or 20.9

The code is dependant on circle radi which is generated by splitting the labels equally across 180deg. Therefore you can't split it unequally for now.
The Label Name can be disabled by removing name from labels array
  {           name: '',           labelColor: '#ff2900',           activeBarColor: '#ff2900',         },
Index cannot be removed for now.
I'll add the enhancement to the TODOS and will complete them whenever I am available.
Since the speedometer works based on number of labels, it will automatically take care if the split results in decimal values.
Thanks


Rename the request URLs for membership and groupings counts to be different

Ticket Link
Groupings-1817
List of squashed commits
Test Checklist

[x] Exhibits Clear Code Structure:
[x] Project Unit Tests Passed:
[x] Project Jasmine Tests Passed:
[x] Executes Expected Functionality:
[x] Tested For Incorrect/Unexpected Inputs:

I think the previous style we had is closer to 'best practice' advice that I read about.

I agree with Frank, the older style is RESTful. Making a change just for the Google Chrome developer tools network tab to be more readable does not seem to be worth it.


fix(Fieldset): Resolve CheckboxE and RadioE invalid state styling

Related issue
Closes #2777
Closes #2778
Overview
Fix CheckboxE and RadioE invalid state styling issues.
Reason
When in an invalid state the components were incorrect.
Work carried out

[x] Enable displayName for Styled Components BABEL_ENV test
[x] Fix styling issues
[x] Update Storybook story to cover invalid Fieldset state via Chromatic snapshot
[x] Refactor story format to leverage Template.bind

Screenshot

Developer notes
https://styled-components.com/docs/tooling#better-debugging

I'm still seeing a couple of glitches on the Storybook link unfortunately :cry:
In Firefox:

There's a white line going through the red border in the corner
The horizontal grey line is overlapping the red border

(These are visible in Chrome too but the first one is less obvious there for me.)
(Also, looks like there are some problems in IE, but that probably warrants a separate issue...)

@jpveooys
Added a fixup for those styling issues - resolve it as best I can in Chrome and Firefox.
What were the issues with IE11 - I can't seem to get Storybook to work anymore in IE11 using BrowserStack - it just hangs with a loader SVG.
I need to setup VirtualBox and a fresh IE11 VM on my new laptop - i'll check it in that later today.

@m7kvqbe1 Looks much better :+1:
This is IE11 before:

And after:

😭


♻ refactor(HTML): remove X-UA-Compatible

It hasn't been necessary for a number of years now and the JavaScript files target modern browsers anyway.

Thanks! Didn't know this.


Minor fixes to API reference autogeneration for Read the Docs

This treats warnings as errors in the RTD build and fixes a config issue that was causing silent warnings on the RTD build.

@JSchripsema-IDM I also just noticed that both SynthPops and Covasim have any empty "Module contents" section at the bottom...not sure off the top of my head how to get rid of that

The latest changes remove the "Module contents" and rename the modules topic with an "API reference" title. The version number, with the move to RTD, is handled by tags on the RTD backend instead of a setting in conf.py.


Implement application configuration base on build environment

Hi,
I will be very happy to implement this improvement so users can use environment based application (in browser) configuration
import config from 'app-config';

Possible points for implementation need to modify https://github.com/davezuko/react-redux-starter-kit/blob/master/config/index.js and change this

Create a folder with application configuration in config directory,
Add  config.set('app_config', 'config/application');,
Add app_config      : project.bind(null, config.get('app_config')) to paths

Change this
config.set('utils_aliases', [
  'actions',
  'components',
  'constants',
  'containers',
  'layouts',
  'reducers',
  'routes',
  'services',
  'styles',
  'utils',
  'views'
].reduce((acc, dir) => ((acc[dir] = paths.src(dir)) && acc), {}));

to
config.set('utils_aliases',
  [
    'actions',
    'components',
    'constants',
    'containers',
    'layouts',
    'reducers',
    'routes',
    'services',
    'styles',
    'utils',
    'views',
    'config'
  ].reduce(
    (acc, x) => {
      if (x === 'config') {
        return ((acc[x] = paths.app_config(env)) && acc);
      }

      return ((acc[x] = paths.src(x)) && acc);
    },  {}
  )
);

Or to
let module_alases = [
    'actions',
    'components',
    'constants',
    'containers',
    'layouts',
    'reducers',
    'routes',
    'services',
    'styles',
    'utils',
    'views'
].reduce((acc, dir) => ((acc[dir] = paths.src(dir)) && acc), {}));

module_alases['app-config'] = paths.app_config(dir);

config.set('utils_aliases', module_alases);

What do you think please advise.

Interesting idea @imanhodjaev, but what about just adding a config alias and then allowing people to just do:
import config from 'config'
Where the file is ~/src/config.js or ~/src/config/index.js. I understand where you're coming from with the fact that the app config lives inside of ~/config, but that config is specifically for the project and build system, and as a result I think it would be confusing to have application code sitting outside of ~/src.

@davezuko sure we can keep application configuration inside src directory.
I am agree with you that keeping configuration outside of src will confuse people.
The main idea of this proposal was to be able to separate configuration while developing and  deploying production ready configuration relying on NODE_ENV=development | production | etc.
src
   config
         development.js
         production.js

@imanhodjaev I totally see where you're coming from and agree that this would be useful, but I just don't think it's something that needs to be handled by the starter kit. As you've shown it's not too complicated to add this functionality, and somebody needing this sort of configuration can probably figure it out fairly quickly. That said, I wouldn't be opposed to adding more documentation to the README to demonstrate how to incorporate functionality such as this.

@davezuko so once we know it can be implemented easily can I make a pull request with a small guide in the README?

@imanhodjaev if you want to take a shot at documenting it in the README go for it. I can't say for sure that I'll merge it in, but definitely willing to consider it.

Closing this for now, if you end up submitting a PR I'd be happy to review it. Thanks!


[WIP] Improve cupy.random.randint

Closes https://github.com/cupy/cupy/issues/4120

The attached are measured results on GV100.
measured results (unit: sec)

size
iters
high
np.randint
cp.randint (master)
cp.randint (this PR)

100000
10000
1000000
4.010
6.833
4.577

100000
10000
1048576
3.415
2.453
1.054

1000000
1000
1000000
3.654
1.641
0.501

1000000
1000
1048576
3.080
0.608
0.127

10000000
100
1000000
4.166
2.420
0.169

10000000
100
1048576
3.594
0.809
0.073

script
import numpy
import cupy
import cupyx

def get_time(perf):
    cpu_time = perf.cpu_times.sum()
    gpu_time = perf.gpu_times.sum()
    return max(cpu_time, gpu_time)

def run(size, iters, high):
    times = []
    perf = cupyx.time.repeat(numpy.random.randint, (0, high, size),
                             n_repeat=iters, n_warmup=1)
    times.append(get_time(perf))
    perf = cupyx.time.repeat(cupy.random.randint, (0, high, size),
                             n_repeat=iters, n_warmup=1)
    times.append(get_time(perf))
    return times

total_size =<PHONE_NUMBER>

print('size | iters | high | np.randint | cp.randint')
print('-----|-------|------|------------|-----------')
for size in (100000, 1000000, 10000000):
    iters = total_size // size
    for high in (1000 * 1000, 1024 * 1024):
        times = run(size, iters, high)
        print('{} | {} | {} | {:.3f} | {:.3f}'.
              format(size, iters, high, times[0], times[1]))

$ python -c "import cupy; cupy.show_config()"
OS                           : Linux-4.15.0-74-generic-x86_64-with-debian-buster-sid
CuPy Version                 : 8.0.0rc1
NumPy Version                : 1.18.1
SciPy Version                : 1.4.1
CUDA Root                    : /usr/local/cuda-11.1.0
CUDA Build Version           : 11010
CUDA Driver Version          : 11010
CUDA Runtime Version         : 11010
cuBLAS Version               : 11201
cuFFT Version                : 10300
cuRAND Version               : 10202
cuSOLVER Version             : (11, 0, 0)
cuSPARSE Version             : 11200
NVRTC Version                : (11, 1)
Thrust Version               : 100910
CUB Build Version            : 100910
cuDNN Build Version          : None
cuDNN Version                : None
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : 10201
Device 0 Name                : Quadro GV100
Device 0 Compute Capability  : 70
Device 1 Name                : Quadro GV100
Device 1 Compute Capability  : 70

The current implementation of randint is not very GPU-friendly and slow, becase

it uses reduction operations such as sum() and all(), and
it drops samples on a mask basis, which results in a large number of samples being dropped.

This PR improves the performance of randint by

reducing the reduction operations as much as possible,
implementing operations in elementwise kernel that cannot be performed efficiently by standard cupy ops, and
significantly reducing the number of samples dropped by dropping samples on a modulo basis.

Jenkins, test this please

Jenkins CI test (for commit 691ba1e3ab37ff01cbbc6161610a4c2f75af597f, target branch master) failed with status FAILURE.

Jenkins, test this please

Jenkins CI test (for commit fe704ec678824c3ef14d9d331c66959a9b330294, target branch master) failed with status FAILURE.

Increase number of samples created in randint related tests

Yes.  The randint tests rely on fix_random too heavily.
But, I suppose you were lucky.  chi_square_test(observed, expected, alpha=0.05, df=None) fails with probability about 0.05 unless the sample size is too small.  The previous value (sampling 100 into (5 + 1) bins) does not seem too small in this sense.

Jenkins, test this please

Jenkins CI test (for commit fe704ec678824c3ef14d9d331c66959a9b330294, target branch master) succeeded!


Is there a Getting Started guide?

Hi! My friend and I tried using this theme for a website, because it looks wonderful, and has a lot of features! :D
However, we're both kind of new to Hugo, and we were wondering if there was some kind of introductory guide on how to use this theme?
We saw the demo website, and all of its Material 3 features and showcases.
But it didn't really explain the basics to us very well, and the config options the theme has.
We tried using the code from the demo repo as example, but there are just so many files in there.
All of them Do Things, but we can't really figure out what does what.
And how to achieve the things we want to achieve.
Like, for example, where does that Share widget come from, with the social media links?
It's not defined anywhere in our content/code/markdown/config, so it must be coming from the theme.
But how do we specify when and where it shows up? And how do we override the links?
And when we finally managed to add an image to a post, it was cropped to a square, instead of being its own proper size.
We did manage to configure a custom site icon, though!

Hello!
This is on my "things to do" list. The theme is more just my website's theme and yeah I apologize for how many files there are with no user guide haha. I am working on a user guide, but in the meantime to answer your question, the share widget is currently in the page-links partial here, and is called by the baseof.html template, which is the skeleton for every page, so that's where I'd start customizing that.
I would love to help you achieve what you want to achieve, so please don't hesitate to ask more questions!


how to change item in the dnd-draggable

hi guys, I have a problem when using drag-and-drop-lists, I have droppable code like this:

                                    {{item.name}}

and draggable like this:

                            {{testItem.name}}

my question is when the dnd-dragend function(seeDetails) is called after the drag, I changed the testItem in the function, but the testItem dragged to the dropped did not show the testItem modified, it just the testItem that not changed.
how can it happen that after the seeDetails function invoked and the testItem dragged to the droppable zone is the  newest testItem, not the original one? thanks a lot.

The dnd-moved and dnd-dragend callbacks are invoked after the element was already inserted into the target list, so any changes there won't have an effect. If you want to change the item, you have to use either dnd-dragstart or dnd-drop


Failing workflow for pushing issues to CC open Source

Description

Push issues to CC Open Source workflow is failing since last 8 days (maybe more).
Reproduction

Go here
Screenshots

Additional context

Somewhat related to #81
Error seems to be authentication failure in both cases.
Resolution

[ ] I would be interested in resolving this bug.

There's some sort of issue with the token, I need to debug it since it's my token.

I regenerated the token, which fixed this.


feat(firestore-bigquery-export): added JSON data type to the default bigquery schema

The BigQuery extension currently uses a stringified JSON object to store data when synching from Firestore. This PR prepares for when a JSON type becomes available.
A new JSON datatype is currently in preview and can be tracked here https://cloud.google.com/bigquery/docs/reference/standard-sql/json-data

[x] Update the default schema to use a JSON datatype
[ ] Ensure new tables are generated with the new datatype

fixes: https://github.com/firebase/extensions/issues/1775

@dackers86 when is it planned to merge this PR? Sounds like a helpful addition 😍

Thanks IchordeDionysos. Now that the JSON updated is out of it's original preview status we can resume development on this. The next steps will be to address the issues you have pointed out in terms of the views and path_params.

I was able to make this work by using SELECT …, ARRAY_AGG(data)[offset(0)] as data, instead of attempting to GROUP BY data since grouping by native JSON type is still unsupported.
However, this removes most of the advantages of the JSON type! When querying the resulting View, the entire data column is loaded (and billed) instead of a subset. For instance SELECT data.age FROM latest will read the same number of bytes as SELECT data FROM latest.
This is as opposed to SELECT data.age FROM changelog" which only bills for the age` column (since native JSON types are spread out into native subcolumns at ingestion time).
I don't know enough about BigQuery to suggest an alternative strategy, but I really hope there is a way to have our cake and eat it too here.

Moving this back to under consideration for planning.  This PR was an initial start but we need to consider and plan how this fits into the overall BQ schema and development.

We manually changed the datatype of the changelog-table to JSON and had indeed to deal with the same group by issue.
We fixed it in this way:
WITH RankedData AS (
  SELECT
    document_name,
    document_id,
    timestamp,
    event_id,
    operation,
    data,
    path_params,
    ROW_NUMBER() OVER(PARTITION BY document_name ORDER BY timestamp DESC) AS row_num
  FROM `collection`
)
SELECT
  document_name,
  document_id,
  timestamp,
  event_id,
  operation,
  data,
  path_params
FROM RankedData
WHERE row_num = 1

Don't know enough about the inner workings /performance impact of BQ but for us it works fine!

Any updates on this? It would be very useful.


Success rate about grasping objects in bridge

Hi, thanks for providing detailed evaluation scripts.
I have a small question, when we evaluate models on bridge environment, how can we calculate the success rate of grasping objects like spoon and carrot? (which as shown in Figure 7)
I think maybe we need to change the maniskill_evaluator? I'm not sure
Thank you for your help!
Best,

This is already reported in the names of the saved evaluation videos, if you run scripts/*; the results are also extracted via https://github.com/simpler-env/SimplerEnv/blob/main/tools/calc_metrics_evaluation_videos.py#L930


chore: bdd-spring-1576099524 to 0.0.1

chore: Promote bdd-spring-1576099524 to version 0.0.1

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

Needs approval from an approver in each of these files:

OWNERS

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


Users details for users without any changesets

5 million'th user 🎉 on OpenStreetMap a couple of months ago:
OpenStreetMap user's API

http://api.openstreetmap.org/api/0.6/user/5000000

<osm version="0.6" generator="OpenStreetMap server">
    <user id="5000000" display_name="Jose2c72nxh8" account_created="2016-12-21T10:49:23Z">
        <description/>
        <contributor-terms agreed="true"/>
        <roles></roles>
        <changesets count="0"/>
        <traces count="0"/>
        <blocks>
            <received count="0" active="0"/>
        </blocks>
    </user>
</osm>

Osm Comments Users API

https://osm-comments-api.mapbox.com/api/v1/users/id/5000000

{
    "message": "Not found: User not found"
}

In hindsight, this makes sense. The osm-comments stack reads off the changesets feed from OpenStreetMap and user's who don't have any changesets never come through.

NOTE: Posting here to keep a note of this. No next actions.

Interestingly, the user comes up on HDYC.

http://hdyc.neis-one.org/?Jose2c72nxh8

Hm, right now, yes, we only process changeset files and so a user is only created the first time they create a changeset, not when they sign-up.
Am not sure where OSM exposes a feed of new users - @bkowshik if you have some ideas of how we'd get this data or populate the db, happy to consider.

@bkowshik if you have some ideas of how we'd get this data or populate the db

Nothing at the moment @batpad


Please add support for multiple corner radius too. I'm ready to help but I am a beginner.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Maybe I will support XF 4.7 clip but not multiple corner radius


Nested object are not rendered

I do have object in c# following structure
 {
Property1
Property2
Contact{
    FirstName
    LastName
}
}

Then

  var vars = new ScriptObject();
            vars.Import(model, renamer: member => member.Name);
            var context = new TemplateContext();
            context.PushGlobal(vars);
            var result = template.Render(context);

So in template I want to print {{Contact.FirstName}} but it return empty string.
Is it supported?

It would be great to give a clear example in the run-time docs showing iterating a .NET string array (or a List of custom objects) and showing their output.


popup won't stay if PopupMode="MouseOver" and StaysOpen="True"

this simple markup illustrate the issue
 <materialDesign:PopupBox HorizontalAlignment="Center"
                                 PlacementMode="TopAndAlignCentres"
                                 PopupMode="MouseOver"
                                 StaysOpen="True">
            <materialDesign:PopupBox.PopupContent>
                <ListBox >
                    <ListBoxItem>A</ListBoxItem>
                    <ListBoxItem>B</ListBoxItem>
                </ListBox>
            </materialDesign:PopupBox.PopupContent>

            <materialDesign:PopupBox.ToggleContent>
                <materialDesign:Badged Badge="2"
                                       x:Name="MainMenuButton"
                                       VerticalAlignment="Stretch"
                                       HorizontalAlignment="Center">
                    <Button
                            Height="50"
                            VerticalAlignment="Stretch" />
                </materialDesign:Badged>
            </materialDesign:PopupBox.ToggleContent>
        </materialDesign:PopupBox>

as soon i leave the trigger button the popup hide so i cannot select an option from the listbox .
and here a gif showing how it looks :

any idea on how to fix this , or idea on where to investigate please ?
this is something very critical to my app :p

@issam1975 I suspect your issue is right here. Basically is the MouseOver popup mode when the mouse leaves it closes the popup. You will notice that if you carefully move your mouse over the badge and then onto the popup you can get it to stay open (only because your mouse never actually leaves the popup).
I suspect the fix will be to actually take the StaysOpen flag into account in that method (but would need to test further to be sure).

hi @Keboo :
thanks for the suggestion but unfortunally it didn't work .
to be honest i have just modified it like this
  protected override void OnMouseLeave(MouseEventArgs e)
        {
            /*
            if (PopupMode == PopupBoxPopupMode.MouseOverEager
                || PopupMode == PopupBoxPopupMode.MouseOver)

                Close();
            */
            base.OnMouseEnter(e);
        }

but it produce another wrong behaviour
the popup no longer close even if i click outside the control .
the only way is to select an item from the listbox wich is inside the popupbox .
also i have tried to reset the vertical offset property at runtime so there is no margin between the trigger button and the popup , but with no effect .please see attached files

any other idea is more than  welcome .


Role per environment for CI/CD

User Story
As a github workflow
I need to access only the relevant aws account
So that I can create terraform infrastructure in only that account
Value
See the repo structure here - https://app.diagrams.net/#G1w8dZs5vZOoy0dvCnRr5P6GHc3VQRdwLq
We want to be able to run the users Terraform into their environments from a github workflow in the modernisation-platform-environments repo. We could do this with the existing modernisation platform access role, but this role has full access and we will want to restrict the level of access they have. (Eg we do not want them to be able to set up ground stations).
We will need to do this as part of the new account set up (but maybe this should be in a separate role / policy workflow)
We will also need to make sure the user can't change this to assume a different role.
Questions / Assumptions
Definition of done

[ ] new role created
[ ] readme has been updated
[ ] user docs have been updated
[ ] another team member has reviewed
[ ] tests are green

Reference
How to write good user stories

Superseeded by #744


I cannot export protobuf of Caffe2 model with types and shapes.

I add "--save-proto-tyes-shapes" into the dlrm_s_criteo_kaggle.sh to save the trained model.
But I cannot save the trained Caffe2 model successfully.
Here is the Traceback information:
Finished training it 294912/306968 of epoch 0, 17.40 ms/it, loss 0.446618, accuracy 79.198 %
Finished training it 295936/306968 of epoch 0, 17.02 ms/it, loss 0.446991, accuracy 79.222 %
Finished training it 296960/306968 of epoch 0, 16.92 ms/it, loss 0.447681, accuracy 79.198 %
Finished training it 297984/306968 of epoch 0, 17.49 ms/it, loss 0.450688, accuracy 78.951 %
Finished training it 299008/306968 of epoch 0, 17.00 ms/it, loss 0.449784, accuracy 79.047 %
Finished training it 300032/306968 of epoch 0, 16.93 ms/it, loss 0.446797, accuracy 79.252 %
Finished training it 301056/306968 of epoch 0, 16.95 ms/it, loss 0.446337, accuracy 79.275 %
Finished training it 302080/306968 of epoch 0, 26.41 ms/it, loss 0.446247, accuracy 79.202 %
Finished training it 303104/306968 of epoch 0, 22.36 ms/it, loss 0.447592, accuracy 79.124 %
Finished training it 304128/306968 of epoch 0, 16.83 ms/it, loss 0.448061, accuracy 79.115 %
Finished training it 305152/306968 of epoch 0, 16.79 ms/it, loss 0.445043, accuracy 79.235 %
Finished training it 306176/306968 of epoch 0, 16.81 ms/it, loss 0.446699, accuracy 79.343 %
Finished training it 306968/306968 of epoch 0, 17.41 ms/it, loss 0.448240, accuracy 79.227 %
Traceback (most recent call last):
File "dlrm_s_caffe2.py", line 1331, in
t = arg.tensors.add()
AttributeError: tensors
done
I want to have a *.pb file to draw the DLRM structure via Netron. The saving function you provided (line 1347 -line 1354) exports two files (init_net and predict_net), but both of them cannot be plotted by Netron (I have changed two files type into *.pb, still does not work)

I believe that there are two separate questions above: (i) about exporting protobuf and (ii) regarding Netron tool.
(i) I can not reproduce your errors in exporting the protobuf. However, there was indeed a minor bug in the code, which I have fixed with the following commit. After this change, I can export protofbuf with types and shapes, as well as weights.
(ii) We do not currently support Netron tool, therefore I do not know what are the requirements and whether the exported model will work with it.

Thanks for your response.
It is bizarre that I did not make any modifications to your code, but the problem happened. The processes of training and testing work well, it just cannot export protobuf.
As to Netron, you are right, and there are some issues for it to support Caffe2.
The Pytorch version of DLRM can run successfully, so I am now trying to use the Pytorch version.

Are you able to export the protobuf with types and shapes now (or do you still see the same problem)?

No......still the same problem.
According to your commit, it seems that you are trying to fix functions about saving ONNX model. But the comments in your code said (line 1295 - line 1298):
'''
WARNING: Why Caffe2 to ONNX net transformation currently does not work?
ONNX does not support SparseLengthsSum operator directly. A workaround
could be for the Caffe2 ONNX frontend to indirectly map this operator to
Gather and ReducedSum ONNX operators, following the PyTorch approach.
'''
And, indeed, saving ONNX model did not work in Caffe2 version of your model as the comments said. So, I did not use '--save-onnx' to run the code at all.
What I used to export protobuf with types and shapes was using '--save-proto-types-shapes' (line 1308 - line 1342).

Let me clarify that exporting ONNX and protobuf are two different things.
The former will not work as explained in the comments you have cited above. The latter should work with the latest version of the code. Are you using the latest PyTorch/Caffe2 nightly version of the frameworks? what about Python version?

Hi @mnaumovfb, thanks for your reminds.
I have solved this problem by updating the PyTorch/Caffe2 versions.
I recommend that you should specify the versions of dependencies in the 'requirements.txt' so that other users can avoid these kinds of problems.
What's more, this is an extraordinary project, thanks for your efforts.


Iron::https is undocumented

Looking at http://ironframework.io/doc/iron/struct.Iron.html, there's no mention of Iron::https, but if you look at the Src (http://ironframework.io/doc/src/iron/src/iron.rs.html#95-184) https is indeed there.
I have no experience with how this documentation is generated, but my first guess is that it might have something to do with the #[cfg(feature = "ssl")] tag.

Docs are built using this script.
It should build the docs using cargo docs --features ssl here: https://github.com/iron-bot/build-doc/blob/master/build-doc.sh#L8

Is it possible to have 2 docs generated ? One for iron with ssl features, and another for iron without ssl features ? Or maybe we can only generate with ssl features and tag them appropriately in the docs (saying that these methods / structs / ... are only available with --features ssl ?)
Another quick question - but maybe here is not the right place - why not make ssl a default feature that you can disable if needed ?

#483 covers this and is in progress. Closing this in favor of that.
@Cobrand:

Another quick question - but maybe here is not the right place - why not make ssl a default feature that you can disable if needed ?

You're welcome to create a new issue for this.


Community tags lost on update

Code that causes item updates ignores community tags, which are then lost if the item is updated. The main example is item_post().
I haven't look in detail and am not sure if we can properly distinguish body tags from community tags, which would be required to fix this.

Ok, looking at the database now I see that we make no distinction between body tags and pure tags.
There is a term type field though, which currently has the same type for body tags and pure tags.
Would changing this be welcome? I think it is expected that pure terms will be preserved when a post is edited. We could later add a box to the post editor to edit the pure terms of a post, but even that would benefit from distinguishing body and pure terms.

That makes sense. We can't preserve the community tags because we re-generate the tags when editing the post and they aren't referenced in the body. The same probably applies to "file_as" (TERM_FILE) activities. Changing them to another type is probably the best way of knowing that they aren't referenced in the body so they can be saved separately.

@solstag This issue is closed because Redmatrix evolved into Hubzilla. When this is still an issue in the most recent version of Hubzilla, please recreate this issue over there. We're sorry for any inconvenience this will maybe give you.


Escape special HTML characters when visualizing instead of showing warning

When visualizing JSON there a warning message about escaped characters:
Note: Escaped characters may not display properly when visualized, but will be properly formatted in the exported data.

A better approach would be to just escape the special HTML characters before passing them to the  textarea, i.e.
& => &
> => >
< => <

References:
https://stackoverflow.com/a/4037287/1705056
https://stackoverflow.com/a/2502462/1705056
Will you consider a PR for this?
Thanks for this great tool, it says me lots and lots of time!

Closing this for now. If anyone would like to discuss it more or comes up with some more ideas, feel free to post and we can reopen the issue.

Hey @Synthoid . Sorry for not responding earlier. I'll make sure to be responsive now.
I didn't quite understand your comment.
a. When exporting the text you gave, both the preview and opening the actual exported file give the same results.

b. When visualizing/exporting the following sheet:

You get:

If you escape the JSON as I suggested to:
{
  "Sheet2": [
    {
      "&lt;&nbsp;&gt;": "</textarea>"
    }
  ]
}

and set the text in the textarea to it, you get the correct result:

I don't see any downside to that.

Ah, I see what you're getting at! That absolutely makes sense. I thought you meant convert all JSON escaped characters to HTML escaped chars. This does complicate things though. Currently, the visualized text is the same text as the exported data. This change would require exporting data then converting that data to HTML escaped chars for the display area, correct?

The warning under the text area is still needed for JSON escaped characters, but your fixes should prevent weird HTML issues now. Thanks!

Thanks a lot @Synthoid !
(Also for the link you mentioned to testing g suit scripts. If I'll make another PR I'll make sure to read it first)


no sharding atoms found for glob pattern hits*.parquet

❯ bacalhau version
Client Version: v0.3.16
Server Version: v0.3.16
❯ bacalhau create bacalhau/shared_duckdb.yaml --download
Error executing job: failed to submit job: publicapi: after posting request: error generating execution plan: no sharding atoms found for glob pattern hits*.parquet

Heya @enricorotundo, any tips/ideas on how to work around this one?

I believe the job yaml structure was outdated and we did not output a clear error message, the following one works 😃 :
APIVersion: V1beta1
Spec:
    Engine: Docker
    Docker:
        Image: davidgasquez/duckdb:latest
        WorkingDirectory: /inputs
        Entrypoint:
            - duckdb
            - -s
            - "select count(*) from '*.parquet'"
    Timeout: 3600
    Sharding:
      BatchSize: 3
      GlobPattern: /*
      BasePath: /inputs
    Inputs:
        - StorageSource: URLDownload
          URL: https://datasets.clickhouse.com/hits_compatible/athena_partitioned/hits_1.parquet
          Path: /inputs
        - StorageSource: URLDownload
          URL: https://datasets.clickhouse.com/hits_compatible/athena_partitioned/hits_2.parquet
          Path: /inputs
        - StorageSource: URLDownload
          URL: https://datasets.clickhouse.com/hits_compatible/athena_partitioned/hits_3.parquet
          Path: /inputs
    Outputs:
        - Name: outputs
          Path: /outputs
    Deal:
        Concurrency: 1

For reference, I've just updated the above by looking at the current struct (we're on v0.3.17 now): https://github.com/filecoin-project/bacalhau/blob/1d59bf46660ee6c1f993ad8cb0eea9a382e8e5b3/pkg/model/job.go
❯ bacalhau create shared_duckdb.yaml --download
Job successfully submitted. Job ID: 1486d897-6927-48bd-bfc6-51a26df04978
Checking job status... (Enter Ctrl+C to exit at any time, your job will continue running):

	    Communicating with the network  ................ done ✅  0.0s
	       Creating job for submission  ................ done ✅  0.0s
	       Finding node(s) for the job  ................ done ✅  0.0s
	                   Running the job  ................ done ✅  15.6s
	   Job finished, verifying results  ................ done ✅  15.6s
	                   Running the job  ................ done ✅  15.6s

To download the results, execute:
  bacalhau get 1486d897-6927-48bd-bfc6-51a26df04978

To get more details about the run, execute:
  bacalhau describe 1486d897-6927-48bd-bfc6-51a26df04978
Fetching results of job '1486d897-6927-48bd-bfc6-51a26df04978'...
Results for job '1486d897-6927-48bd-bfc6-51a26df04978' have been written to...
/Users/enricorotundo/winderresearch/ProtocolLabs/cod-playground/bacalhau/job-1486d897

Awesome! Thanks for sharing the fix. Pushed a fix now. :smile:


default cloudformation config results in low cloudfront caching rate

It seems the default setup that is generated by the cloudformation template for this project includes a default value for the Cloudfront distribution that has this setting: "Cache Based on Selected Request Headers" set to use the "Accept" header. I believe this is set on line 433 in deployment/serverless-image-handler.template:
"ForwardedValues": {
"Headers" : ["Accept"],
"QueryString": "false",
"Cookies": { "Forward": "none" }
},
Wouldn't this result in a much lower Cloudfront cache hit rate and thus more Lambda invocations? Since each browser can use a different Accept value in their request headers each browser version could potentially generate a different version of the same cached image.
Removing this from our Cloudfront distribution made our Cloudfront cache hit rate jump up to 75-80% from under 50% previously, and significantly lowered the number of Lambda invocation and our overall cost.
Unless this Accept header is needed I think it should be removed from the template as it needlessly increases the cost of using this solution.

Thanks for reporting the issue. We are investigating Cloudfront hit-rate improvement by removing 'Accept' header. Please continue to monitor the repo for updates.

Version 3.0 resolves this issue.


AWS S3 4.3.0 (Do not merge until release)

Goes with: mulesoft/docs-release-notes#486

I have changed this user manual so its content is equal to this PR https://github.com/mulesoft/docs-mule-runtime/pull/357 (for runtime version 3.9).


Updating Crystal on OpenSUSE using Zypper

After adding the Crystal repo to Zypper on OpenSUSE Tumbleweed (using the instructions reproduced below from here), retrieving repository metadata gives the following error:
Permission to access 'https://dist.crystal-lang.org/rpm/media.1/media' denied.

This error prevents me from using Zypper to update my Crystal version, which is obviously desirable.
I was previously able to set up Crystal repository access using Zypper by doing almost exactly the instructions below and received no errors then (as I recall, I didn't have quite the same flags on the archive configuration command), but for the past few weeks I've received the above error; during this time, I tried re-adding the repository using exactly the linked instructions, but it didn't improve my situation at all. I seem to recall as well that navigating to the Crystal dist site in-browser would previously allow access, but it now gives me a similar "access denied" error.
Just in case the link above dies for some reason, here are the instructions:

On OpenSUSE
In OpenSUSE, you can use the official Crystal repository.
Setup repository
First you have to add the signing key:
rpm --import https://dist.crystal-lang.org/rpm/RPM-GPG-KEY

Next you have to configure the repository in Zypper. You can do this with the following command:

sudo zypper ar -e -f -t rpm-md https://dist.crystal-lang.org/rpm/ Crystal```

Install
Once the repository is configured you're ready to install Crystal:
sudo zypper install crystal

Upgrade
When a new Crystal version is released you can upgrade your system using:
sudo zypper update crystal

@kinxer there is no rpm/media.1/media and never has been.
zypper is able to install but not to update the package (tested on opensuse/openSUSE-42.3-x86_64 vagrant box)
Although there is a description of must exist files for yast. I've found that others complain that is a zypper issue:

https://superuser.com/questions/1336101/cannot-update-opensuse-repos
https://sourceforge.net/p/xcat/bugs/911/

I kind of agree it's a zypper limitation given that a fresh installation is able to be done.
Workaround:

remove crystal
remove crystal repo
add crystal repo
install crystal

$ sudo zypper remove crystal
$ zypper lr -d
Repository priorities are without effect. All enabled repositories share the same priority.

# | Alias                 | Name
--+-----------------------+---------- ...
1 | Crystal               | Crystal
...
$ sudo zypper rr 1
$ sudo zypper ar -e -f -t rpm-md https://dist.crystal-lang.org/rpm/ Crystal
$ sudo zypper install crystal

In case someone else has this issue and stumbles across this issue:
In trying to figure out how to bypass this myself (or what bug to submit for Zypper), I found this discussion, which leads me to believe that there's some weirdness happening with Zypper and interpreting 403 responses. I also found here that it's possible to bypass this issue with zypper refresh --force, which is nice.
Another interesting obstacle with using Zypper to update Crystal is that since 0.24.1 every Crystal release has had a different vendor. Zypper responds to this by not automatically updating Crystal to the newest version because the vendors differ. This page provides the options that you have to overcome that behavior.

since 0.24.1 every Crystal release has had a different vendor

Since that version we are building the packages using fpm. Maybe some option is missing to fix that. cc: @RX14 any clue?

I don't know anything about zypper or RPM or that side of linux distros, sorry.

In https://github.com/jordansissel/fpm/wiki , when searching vendor:  --vendor VENDOR               (optional) vendor name for this package
In https://github.com/crystal-lang/distribution-scripts/blob/master/linux/Makefile:

add a --vendor "Unknown<EMAIL_ADDRESS>or a true one
use a shared FPM_FLAGS variable to reuse it for each fpm command invocation
a --license LICENSE             (optional) license name for this package can also be added.

I can send a PR to https://github.com/crystal-lang/distribution-scripts this week-end, and test if this vendor flag solve the issue.

I've confirmed with this most recent update (0.28.0) that with the addition of vendor and license distribution flags and the use of zypper refresh --force, zypper will automatically retrieve the latest version of Crystal.


Bot Doesnt load

When i log in i got all this messages;
20:40:12 Setting start location.
20:40:12 Coordinates found in passed in location, not geocoding.
20:40:12 Location found: xx.xxxxx, -100.3167 (xx.xxxxx, -100.3167, 0.0)
20:40:12 Now at (xx.xxxxx, -100.3167, 0)
20:40:12 Login procedure started.
20:40:15 Login successful.
20:40:19 Starting bot...
20:40:19 Received level up reward: []
20:40:19 Next egg incubates in 0.89 km
20:40:20
Walking from (xx.xxxxx0905947004, -100.32088196828131, 0) to (xx.xxxxx60905947004, -100.32088196828131, 0) (0.0 m)
But the box on the right side just say Bot Satus: Loading...
and it never loads, this means i cant get any items from poke-stops or any pokemon. Doesnt count km for the eggs too.
That means i didnt get any exp
Just put my info (Google account, coordinates, walk speed (6)) and log in, it loads the map and shows me the trail of my "avatar" and show messages like walking to, to. walking to, to. walking to, to and just the same message with different coordinates
MacOsX Sierra
fatal: Not a git repository (or any of the parent directories): .git
The are no any other apps oppened

I got the same error on another Mac (Running OS X Yosemite)
And is just the same thing, doesnt load the bot and i didnt get anything. But it does delete my pokeballs, potions, revives, etc (cause the limit of; ex, 30)

Same error, last days was working and now stuck on login on macOS 10.12.4


Fixes "too many arguments" error when base directory contains spaces.

When running the bootstrapper under Linux in a directory that contains spaces, bootstrapping will fail. The error message given is below:
build.sh: line 35: [: too many arguments
build.sh: line 40: [: too many arguments
build.sh: line 50: [: too many arguments

The resolution is to quote all variables that can contain spaces (e.g. $TOOLS_DIR).

Merged :+1:
Thank you for this fix! :smile:


improve package.json

Improve package.json to have a proper main and typings attribute.
Setting the main attribute in package.json to core.js enables client code to write import {Logger} from "angular2-logger"; instead of import {Logger} from "angular2-logger/core";. Angular2 folks do the same.
Setting the typings attribute in package.json to core.d.ts let's the TypeScript compiler use core.d.ts when compiling import {Logger} from "angular2-logger";. That's what's needed to avoid compiling whole angular2-logger sources. Angular2 folks do the same. They set the typings attribute in package.json.

@k7sleeper what do you mean by Angular folks do the same?
https://angular.io/docs/ts/latest/quickstart.html
I see them importing from the core module just like I am: import { Component } from '@angular/core';

@k7sleeper I tried these changes but #39 is still occurring, did this fixed it for you?

No, these changes alone did not fix #39. You also have to delete *.ts file in app\core. So, the final solution must be that angular2-logger creates only one .d.ts or angular2-logger distribution does not contain the .ts files.

Well, if you carefully look at import { Component } from '@angular/core';you'll see that @angular/coreis a package whereas angular2-logger/core is a file!
import { Component } from '@angular/core'; is resolved by the main attribute in @angular/core/package.json.

Has this PR a chance to be merged?

@k7sleeper I thought you said this didnt fix the defect ?

@langley-agm Yes, you're right. The defect is solved for me by the following steps which I put into a Grunt task of my build script:

insert attribute "typings": "core.d.ts" into package.json
change attribute mainto "core.js" in package.json
remove all *.ts files from app folder

So, if you'd merge this PR I can remove the first 2 patches from my Grunt tasks and generally, package.json would increase in quality.
For the last issue I could send another PR but I have no idea how to omit the *.ts files from the published package.

I'm confused, does this solve the defect or not? What defect do you want to solve with this PR ?

I'm sorry. I think of #39.
This PR would solve the first 2 issues of the above mentioned list.

Like I mentioned before, I already ran the code in this PR and it does not solve #39 .

Ah, yes your're right. Sorry.
All the time I'm working with import {Logger} from "angular2-logger"which I prefer, but that's not what you've documented. So, my way isn't the right.
Anyway, I think merging this PR increases quality of package.json, isn't it?

This PR changes both the package.json and the Guide.
The Guide works just as Angular 2 does: import { Component } from '@angular/core'; not import { Component } from '@angular'; so I'd prefer to leave it as it is right now.

Oh yes, you're right. I oversaw the changes in the guide.
I think it's time now to close this PR.


docs: remove simple-tui-rs

This has not been recently and doesn't lead to good code

ping @pmsanford

The context on this is that a user in discord mentioned they were using this repo as a base because it seemed like the right idea. It may have been way back when tui-rs was just a young project, but it's got a few things would be better not to use in a newer project.

Termion
Spans instead of Line
etc.

Thanks for the ping; I'd be happy to update it, but I can't make any commitments on a timeline at the moment. I'd suggest going ahead with merging this PR and when/if I get it updated I'll open one to re-add it. I'll also add a note to my repo saying it's not up to date and link to this PR.

Sounds good, thank you!


Give PV move preference over MVVLVA ones.

Superseded by https://github.com/lynx-chess/Lynx/pull/298


[BUG] Process all children of intent-filter instead of just the first one to identify default activity

flutter run looks for default activity to run the application, for that, we were checking the first action and first category in the intent filter, but it is possible that the ones we are looking is not the first one.
This commit fixes that behaviour by iterating over all the actions and
categories  of intent-filter.
Signed-off-by: Sahil Soni<EMAIL_ADDRESS>Related Issues
https://github.com/flutter/flutter/issues/29335
https://github.com/flutter/flutter/issues/28223
Tests
I have tested the change by using these intent filters:
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.LAUNCHER"/>

Without my changes, the error message pops up:
Error running com.example.test. Default activity not found
Unable to read manifest info from /mnt/data/android/apps/test/build/app/outputs/apk/app.apk.
No application found for TargetPlatform.android_arm64.
Is your project missing an android/app/src/main/AndroidManifest.xml?
Consider running "flutter create ." to create one.

And with my changes, it works perfectly.
Breaking Change
No, this is not a breaking change.

Hi @SscSPs, it looks with this change there are several failing tests. Could you take a look and adjust your changes?

Done :+1:


Sentry Bugfix:  Function Clause Error in CMS.Page.Basic.from_api

Summary of changes
Asana Ticket: Elixir.FunctionClauseError: no function clause matching in CMS.Partial.MenuLinks.from_api/1
If a CMS page has the attribute field_sidebar_menu, the value should either be populated or an empty array.  But there was a continual issue with the page http://mbta.com/sustainability/community-programs/, in which the field_sidebar_menu value was getting parsed as [nil] (an array with just the value nil.)
In the solution, I was able to adjust the function match for this situation.  Still, I don't know how to determine why that value was getting parsed as [nil] instead of nil or [], since the above link redirects to http://mbta.com/sustainability/, a different page.

@amaisano I'm curious if you have any thoughts about this bug!

Let me check the source data. I think that menu field is totally deprecated at this point anyway.

FYI you can access the original page that caused the error by using this link: https://www.mbta.com/sustainability/community-programs-OLD?preview=&vid=19288&nid=3186

The JSON response to elixir for that was https://live-mbta.pantheonsite.io/cms/revisions/3186?vid=19288&_format=json, which indeed shows a null inside an array. This is an error state in the CMS for the field value. The problematic page has been archived, and the current revision of it is returning a [] value.
There is a good chance that the menu object this field was referencing was deleted some time ago. When this happens, the CMS puts a NULL value in but keeps the field placeholder. This is what I think happened.

The JSON response to elixir at the time the page was live indeed showed a null inside an array. This is an error state in the CMS for the field value. The problematic page has been archived, and the current revision of it is returning a [] value.
There is a good chance that the menu object this field was referencing was deleted some time ago. When this happens, the CMS puts a NULL value in but keeps the field placeholder. This is what I think happened.

This is a risk for any entity reference field I think, so we may want to create an abstracted CMS field struct to handle this more generally...

If that field is deprecated, it would be good to remove it entirely.
And create a CMS-related ticket to create that field @amaisano suggested?
Hannah's fix looks good to me. For now, anyway 🙂


Add Conversion from Affine to PublicKey

PR adds core::convert From trait for PublicKey to convert an Affine to PublicKey

@sorpaas I have implemented TryFrom, not really sure if my "if" condition is correct. Let me know

Please also revert those formatting change. I'm not sure it's correct since the code should have been rustfmt-ed.

@sorpaas @dvdplm I have fixed the formatting issue =)


Count pairs with given sum in python

🚀 Feature
Given an array of integers, and a number ‘sum’, find the number of pairs of integers in the array whose sum is equal to ‘sum’.
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
To contributing to gssoc'21
Pitch
Input  :  arr[] = {1, 5, 7, -1},
sum = 6
Output :  2
Pairs with sum 6 are (1, 5) and (7, -1)

/assign


[ENH] add tests for classifier compatibility with scikit model selection

we should automatically test that all classifiers (and subsequently, clusterers) are completely compatible with scikit learn model selection and evaluation tools, and document recommended parameter/hyper parameter candidates for tuning. It would also be interesting to find out if tuning actually improves and o the core classifiers, I suspect it does not.
https://scikit-learn.org/stable/model_selection.html

Related: #2116, I don´t think they currently are compatible?

We have some tests (not all classifiers, but the interface) for classification. I don't think there is anything for clustering?


Unable to use spyder 3 icon set with Spyder 5 (installed with the Windows installer)

Issue Report Checklist

[ X] Searched the issues page for similar reports
[ X] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[ ] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[X ] Tried basic troubleshooting (if a bug/error)

[ X] Restarted Spyder
[ X] Uninstall and reinstall
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[ X] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
I installed Spyder 5.0.1 using the standalone installer and the program worked.  I changed the icon appearance to spyder3 and restarted the program.  The spyder loading window with shows on my desktop and quits after loading toolbars message
How can you reset spyder defaults in the standalone installer?
What steps reproduce the problem?

Install Spyder 5.0.1 using standalone installer
Change icons to spyder 3
Restart spyder

What is the expected output? What do you see instead?
Sypder loads correctly
Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

Spyder version: 5.0.1 (standalone installer)
Python version:
Qt version:
PyQt version:
Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE

Hey @danhamill, thanks for reporting. For now the only way to reset Spyder to its defaults is by removing this directory
C:\Users\<your user>\.spyder-py3

But we'll try to improve that in a future release.

@dalthviz, could you reproduce this problem?

hmm.  I tried deleting the folder in my user directory, but the program still wont launch.  When I attempt to start it, the loading window closes after it displays "loading toolbars".

C:\Program Files\Spyder\Python>python ..\Spyder.launch.pyw
No QCoreApplication instance found. Application patches not applied. You have to call load_stylesheet function after instantiation of QApplication to take effect.
Traceback (most recent call last):
  File "..\pkgs\spyder\app\mainwindow.py", line 2161, in create_window
    main.setup()
  File "..\pkgs\spyder\app\mainwindow.py", line 903, in setup
    plugin_instance = plugin_class(self, configuration=CONF)
  File "..\pkgs\spyder\plugins\preferences\plugin.py", line 58, in __init__
    super().__init__(parent, configuration)
  File "..\pkgs\spyder\api\plugins.py", line 833, in __init__
    container.setup()
  File "..\pkgs\spyder\plugins\preferences\widgets\container.py", line 107, in setup
    icon=self.create_icon('configure'),
  File "..\pkgs\spyder\api\widgets\mixins.py", line 573, in create_icon
    return ima.icon(name)
  File "..\pkgs\spyder\utils\icon_manager.py", line 375, in icon
    directory=self._resource['directory'])
  File "..\pkgs\qtawesome\__init__.py", line 201, in load_font
    return _instance().load_font(prefix, ttf_filename, charmap_filename, directory)
  File "..\pkgs\qtawesome\__init__.py", line 76, in _instance
    ('mdi', 'materialdesignicons-webfont.ttf',
  File "..\pkgs\qtawesome\iconic_font.py", line 214, in __init__
    self.load_font(*fargs)
  File "..\pkgs\qtawesome\iconic_font.py", line 270, in load_font
    os.path.join(directory, ttf_filename)))
qtawesome.iconic_font.FontError: Font at 'C:\Program Files\Spyder\pkgs\qtawesome\fonts\fontawesome4.7-webfont.ttf' appears to be empty. If you are on Windows 10, please read https://support.microsoft.com/en-us/kb/3053676 to know how to prevent Windows from blocking the fonts that come with QtAwesome.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "..\Spyder.launch.pyw", line 35, in <module>
    main()
  File "..\pkgs\spyder\app\start.py", line 213, in main
    mainwindow.main(options, args)
  File "..\pkgs\spyder\app\mainwindow.py", line 2311, in main
    mainwindow = create_window(app, splash, options, args)
  File "..\pkgs\spyder\app\mainwindow.py", line 2163, in create_window
    if main.console is not None:
  File "..\pkgs\spyder\app\mainwindow.py", line 1180, in __getattr__
    return self.get_plugin(self._INTERNAL_PLUGINS_MAPPING[attr])
  File "..\pkgs\spyder\app\mainwindow.py", line 170, in get_plugin
    'Plugin "{}" not found!'.format(plugin_name))
spyder.api.exceptions.SpyderAPIError: Plugin "internal_console" not found!

Hi @danhamill so your issue is that using the spyder 3 icon set Spyder doesn't launch, right? As a workaround for now, I think you can change your config manually by changing the spyder.ini file inside the preferences directory (which is the one described above in a path like C:\Users\<your user>\.spyder-py3). There you can find a property call icon_theme and change the value to be spyder 2.
Also, thanks for the traceback! I think the font is not being able to load in your system, is there any security policy configured preventing third-party fonts in your setup?

@ccordoba12 @danhamill I was unable to reproduce this :/
Also @ccordoba12 when I change from Spyder 3 to Spyder 2 I still see some icons from the Spyder 3 theme, is that correct?:

Also when I change from Spyder 3 to Spyder 2 I still see some icons from the Spyder 3 theme, is that correct?:

Yes, custom icons are now loaded from Spyder 3 set of icons because in a lot of cases there wasn't any icon for those.

This is solved now in Spyder 5.4.0 with a recent enough Windows 10 version.


Where can I get the mobile.ckpt imgnet pretrain  file?

hello,I want to train the mobilenet version   faster rcnn ,but I can not find the mobile.ckpt?https://github.com/tensorflow/models/blob/master/research/slim/nets/mobilenet_v1.md this file isn't mobile.ckpt. how to solve it ? thanks!

It's the first model:
http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz
You have to extract and rename it to mobile.ckpt

how to extract  ?
thx!

tar -xzvf mobilenet_v1 mobilenet_v1_1.0_224.tgz
or using any extraction software on other operating systems.
Then rename the .ckpt file inside the zipped folder to mobile.ckpt.

for example, files as follow:
mobilenet_v1_1.0_224.ckpt.data-00000-of-00001
mobilenet_v1_1.0_224.ckpt.index
mobilenet_v1_1.0_224.ckpt.meta
how  to  rename  them?
thx !

It should be:
mobile.ckpt.data-00000-of-00001
mobile.ckpt.index
mobile.ckpt.meta

oh,   then    the train command like this :   ./experiments/scripts/train_faster_rcnn.sh 0 pascal_voc  mobile ,
is right?

@azadef
yes， you are right，it worked after i renamed the  files  as  you  said。
thank you  very  much！

It's the first model:
http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz
You have to extract and rename it to mobile.ckpt

你好请问你用mobilenetv1的时候跑起来了吗？

It should be:
mobile.ckpt.data-00000-of-00001
mobile.ckpt.index
mobile.ckpt.meta

Thank you so much!!!!! I am able to run now. ^^


add linalg.lstsq

Adds cupy.linalg.lstsq
This solves a least squares problem using SVD similar to numpy.linalg.lstsq.
This only returns the least-squares solution, while numpy.linalg.lstsq returns the residuals, rank, and singular values in addition to the least-squares solution.
If it's necessary to have 100% return syntax match to numpy.linalg.lstsq, I can modify this pr to include residuals, rank, and singular values.
Closes https://github.com/cupy/cupy/issues/1273

Edit 04-28-2019 22:54 EDT.
I have a benchmark comparing the performance of this cupy.linalg.lstsq vs numpy.linalg.lstsq, where CuPy was about six times faster on an AMD FX-8350 with NVIDIA Titan Xp for 6,000,000 data points. I'd be curious if this was true on different hardware configurations. The code to run the benchmark is here, and was run in the following order:
python3 sine_benchmark_fixed_six_break_points.py
python3 sine_benchmark_fixed_six_break_points_TFnoGPU.py
python3 sine_benchmark_fixed_twenty_break_points.py
python3 sine_benchmark_fixed_twenty_break_points_TFnoGPU.py
python3 plot_results.py

Could you fix for the interface compatibility?

Is it possible to add other return values with no or very few overheads?

@asi1024

Could you fix for the interface compatibility?

Is this the return other values?

Is it possible to add other return values with no or very few overheads?

I added the other return values, and now cupy.linalg.lstsq is 100% compatible with numpy.linalg.lstsq. This does add overhead, but now matches numpy's syntax.
The new overhead comes from calculating the sum of square of the residuals (L-2 norm):
    if rank != n or m <= n:
        resids = cupy.array([], dtype=a.dtype)
    elif b.ndim > 1:
        # note that this should be the same (and faster?) than the next couple of lines
        # e = b - core.dot(a, x)
        # resids = cupy.diagonal(core.dot(e.T, e))
        k = b.shape[1]
        resids = cupy.zeros(k, dtype=a.dtype)
        for i in range(k):
            e = b[:, i] - core.dot(a, x[:, i])
            resids[i] = core.dot(e.T, e)
    else:
        e = b - core.dot(a, x)
        resids = core.dot(e.T, e).reshape(-1)

Why @condition.retry(10) at L157 is needed? One of the result value is often distant from the expected value?

Sometimes test fail, in particular cupy.testing.assert_allclose(x_cpu, x_gpu, atol=1e-3) which maybe fails every 2/100 runs. The obvious case is when a is singular. However the following case is not as simple
import numpy as np
a = np.array([[2., 5., 1., 2.],
              [2., 2., 3., 8.],
              [4., 8., 1., 8.],
              [1., 3., 5., 1.]], dtype=np.float32)
b = np.array((9., 6., 0., 3.), dtype=np.float32)

where lstsq is solved in the following manner
x, resid, rank, s = np.linalg.lstsq(a, b)

produces (x_cpu == numpy.linalg.lstsq solution, x_gpu == cupy.linalg.lstsq solution)
AssertionError:
Not equal to tolerance rtol=1e-07, atol=0.001

Mismatch: 50%
Max absolute difference: 0.0032959
Max relative difference: 1.6645674e-05
 x_cpu: array([198.      , -64.71429 ,   6.857143, -35.142857], dtype=float32)
 x_gpu: array([198.0033  , -64.71534 ,   6.857244, -35.14343 ], dtype=float32)

Should I make the tests deterministic to avoid such failures? this could be done by supplying a random seed for each configuration of a and b. or is it okay to retry when a test fails?

Yes, It seems preferred to make the tests deterministic.
This implementation has a condition with rank != n or m <= n, so the tests should have both regular and singular cases.
Additionally, when the given matrix is singular, the first element of the return value certainly does not have to be equal (or close) to the NumPy's one, but the other elements have to be.

@asi1024 Thanks for your recommendations.

Yes, It seems preferred to make the tests deterministic.

I remove the retry condition, and use fixed random seeds to generate the arrays now.

This implementation has a condition with rank != n or m <= n, so the tests should have both regular and singular cases.
Additionally, when the given matrix is singular, the first element of the return value certainly does not have to be equal (or close) to the NumPy's one, but the other elements have to be.

The tests have been reworked to generate a singular matrix. If a singular matrix was generated, the tests no longer check if the first return element is close to NumPy solution. All other return elements are still checked.

Jenkins, test this please.

Jenkins CI test (for commit cc5012cf173626087b0befe9d55d3b2e101928ed, target branch master) succeeded!

LGTM. Thank you for the PR!


Constraint on up cmd causes localstack file creation on other pulumi cmds

Description:
Pulumilocal restricts the stack option to the up command, which creates issues if you're trying to debug different stacks using different commands. pulumilocal should respect the stack if it is set regardless of the command.
Steps to reproduce:

Create a localstack stack named Pulumi.local.yaml.
Run pulumilocal preview -s local
Observe pulumilocal create a new Pulumi.localstack.yaml, and use the newly created stack instead of the specified stack.

Expected Behavior:

The specified stack should be used by pulumilocal and not create a new "localstack" stack.

Notes:

Inspecting the code, I can see on line L375 the conditional is restricted to checking the up command, making every other command that specifies a stack useless. Also, it only checks for -s even though --stack is also a valid option.
For background, running a simple preview command (which I expect most people do) using pulumilocal creates a new local stack file, which becomes problematic when trying to debug stack issues for a specific setup without actually deploying. It requires we delete the real localstack file, to rename another file to "Pulumi.localstack.yaml" just to get it working.
Finally, we use pulumilocal because it is a safeguard; we do not want people making a mistake in our development environment (even though we have other securities in place), and this package makes it easy to ensure anyone working locally always deploys locally.

Action:

I can open a PR to fix this if you can confirm this wasn't done for some specific reason I cannot see.

Hi @chrisfentiman , thanks for reporting, and apologies for the long delay.
Great analysis! Indeed, agreed that the specified stack should be used by pulumilocal directly, if possible. 👍

I can open a PR to fix this if you can confirm this wasn't done for some specific reason I cannot see.

This would be awesome, and much appreciated. We don't currently have a proper test setup, but ideally it would be great if we could also cover it with an integration test. Happy to help out with that piece though, if you could give it a go with a draft PR for the functionality itself.. Thanks for your help! 🙌

Hi @chrisfentiman!
The above mentioned issue seems to be already resolved on the current version (v1.2.0).
Closing this issue.


Website layout on smaller screens

On smaller screens, the footer overflows:

And if there's some longer text in <code>, the page won't display correctly on smaller screens (because of white-space: nowrap in <code>).
For example https://flutter.io/android-release/

Merged in the fix :)
Thanks!


De-syncing binary_sensor.ping

Description:
binary_sensor.ping makes a blocking subprocess call to check ping of every configured device at home-assistant boot. This can take considerable time even for just a handful of sensors.
This change makes the ping commands asyncronous - bringing a considerable decrease in load time.
For me, with 8 ping sensors, I notice up to two minutes decrease in load times.
Related issue (if applicable): N/A
Pull request in home-assistant.io with documentation (if applicable): N/A
Example entry for configuration.yaml (if applicable):
binary_sensor:
  - platform: ping
    name: Router
    host: <IP_ADDRESS>

Checklist:

[X] The code change is tested and works locally.
[X] Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[X] New dependencies have been added to the REQUIREMENTS variable (example).
[X] New dependencies are only imported inside functions that use them (example).
[X] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[X] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

I reverted this change noted in https://github.com/home-assistant/home-assistant/issues/17562 while running 0.80.2 and it has been clean.  Previously I observed many crashes (handful per hour) with this PR applied.

I have heard of similar things, and agree with this course of action.


Fix cost calculation for GPT-4

Responding to this issue. GPT-4 is unique in that it bills differently for prompt tokens vs the generated tokens.
This PR adds logic to distinguish between prompt tokens and completion tokens when calculating a chat's cost.

Bumping this given the new chat models announced recently have this same dual-rate pricing scheme.

Again -- awesome stuff @dev-msp and sorry for going away for a while -- quite some changes in my personal life, but I'm committed to keeping on track of issues/PRs from now on!