async/await in agnularjs

i use async/await in agnularjs ,when i remove some data from angular's list ,the html page can't update  ,only when $scope.$apply() . for example:
const remove=async ()=>{ const obj=await ajaxrequest(); if(obj.data.success){ $scope.row.splice(data, 1);//html page can't update $scope.$apply();// if i add this code,html page can update } };
angularjs version:v1.6.6
browser:google chrome 66.0.3359.181

This is expected. Only the built-in $q promise library is integrated with the $digest cycle (i.e. runs a $digest when promises are resolved). If you use another promise library or native promises (including async/await, then you have to manually trigger the $digest.

I was hoping someone would have bright ideas for a zone.js style intervention to allow this feature automagically in angularjs.  Now that all the evergreen browsers support native async/await it's kind of painful to use angularjs.
Extensions like https://github.com/ben-hunter-hansen/angular-async-await technically work but are very cumbersome to use.

One idea might be to modify class instances during injection (with an opt-in?) wrapping all members which are instanceof AsyncFunction (Object.getPrototypeOf(async function() {}).constructor  => AsyncFunction)

I was hoping someone would have bright ideas

Same... this is the only new language feature I'm unable to use at the moment. I've tried a bunch of different things so far...

http://jsfiddle.net/langdonx/n4qysvrz/1/ Baseline implementation...
http://jsfiddle.net/langdonx/n4qysvrz/2/ My first discovery was that I couldn't even mark a controller as async.  It just doesn't do anything.  Not sure why exactly...
http://jsfiddle.net/langdonx/n4qysvrz/3/ It doesn't really matter though, because you can wrap the code in an IIFE, but really, everything you'd be writing would exist inside a method ($onInit or otherwise) which is just fine being marked as async.
http://jsfiddle.net/langdonx/n4qysvrz/7/ And then the moment of truth, but as you know, it doesn't digest.
http://jsfiddle.net/langdonx/n4qysvrz/8/ I was hoping it would magically work with window.Promise = $q, but it didn't.
http://jsfiddle.net/langdonx/n4qysvrz/9/ Of course using new Promise in lieu of $q in TestService and calling it without await still works fine.

At this point, I thinking maybe I can do something with Babel, which I'm already using but currently fails to even compile async/await.

For our team I've implemented a base class you can inherit from which wraps all asynchronous functions so that they actually return a $q instead of a Promise.
I used the mixing pattern to allow inheriting from another base class as well.
http://justinfagnani.com/2015/12/21/real-mixins-with-javascript-classes/

I just needed to await ui-router transitions in my tests and as ui-router uses $q promises I was looking for a workaround. In case anyone is looking for the solution, this worked for me:
function goToState(...params: Parameters<ng.ui.StateService['go']>) {
  // `inject` is my helper function to inject services anywhere in the code.
  // You can use something like `angular.element(document.body).injector().get('ServiceName')`
  const $state = inject('$state')
  const $rootScope = inject('$rootScope') as ng.IRootScopeService

  // ui-router uses $q promises which depend on digest cycle to be resolved.
  // We need to run digest cycle first to resolve $q promise (and call it's .then callback)
  // and return native Promise so it can be await-ed.
  const transitionQPromise = $state.go.apply(null, params)
  const transitionPromise = new Promise((resolve, reject) => {
    transitionQPromise.then(resolve).catch(reject)
  })
  $rootScope.$digest()

  return transitionPromise
}

// then in test file:
test('makes transition', async () => {
  await goToState('existingState')

  expect($state.$current.name).toBe('existingState')
})

In my case, when compilation target is ES5, this does the job most of the time window['Promise'] = $q; (inside a run block).
When compiling to ES6 / ESNext and using native async / await, above will not do the trick and need to add (again inside run block)
	function patchNativePromiseWithInterceptor() {
		const originalThen = Promise.prototype.then;

		Promise.prototype.then = function promiseThenInterceptor() {
			const promise = originalThen.apply(this, arguments);

			originalThen.call(promise, triggerDigestIfNeeded, triggerDigestIfNeeded);

			function triggerDigestIfNeeded() {
				const phase = $rootScope.$$phase;
				const insideDigest = phase === '$apply' || phase === '$digest';
				const alreadyHasScheduledWork = $rootScope['$$applyAsyncQueue'].length > 0;

				if (insideDigest || alreadyHasScheduledWork) {
					return;
				}

				$rootScope.$applyAsync();
			}

			return promise;
		} as any;
	}

This will do the trick for many flows, in which using some kind of mix of async / await and Promise.
If whole flow is written using async / await, it might not trigger digest

@langdonx just found https://github.com/noppa/babel-plugin-angularjs-digest-await and it seems to do the trick

@swar30 I tried babel-plugin-angularjs-digest-await, but it is not working.
Here is my babel setting:
{
    "sourceMap": true,
    "presets": [
        [
            "@babel/preset-env",
            {
                "targets": {
                    "chrome": 56,
                    "ie": "11"
                }
            }
        ]
    ],
    "plugins": ["angularjs-digest-await"]
}

Here is some component version of my project:
"angular": "~1.5.8",
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"babel-plugin-angularjs-digest-await": "^2.0.0",

@Fundebug try dropping IE 11 from targets, and change chrome to last 1 chrome version, like so:
		presets: [
			[
				'@babel/env',
				{
					targets: {
						browsers: ['last 1 chrome version', 'last 1 firefox version'],
					},
				},
			],
		],

May be it would be better to move discussion regarding babel-plugin-angularjs-digest-await to https://github.com/noppa/babel-plugin-angularjs-digest-await

@swar30 Thanks for your reply. I have to stick to IE 11, otherwise my "grunt build" pipeline will fail,  it's another problem...

@Fundebug I meant just as a way to verify that it's not working because of configuration.
Have you tried my initial proposed solution, of overriding then in native promise?
That should work by itself if you are building for IE11, in my case I used Babel plugin because that solution but itself does not work if target is latest chrome


Failing to install @nuxt/devtools is missing

Describe the bug
Getting @nuxt/devtools is missing error when launching a Nuxt dev container. And it fails to install it even when I force install the devtool.
Link to the blitz that caused the error
https://stackblitz.com/edit/nuxt-starter-smebog?file=README.md
Steps to reproduce

Opened Stackblitz dashboard
Clicked create project
Selected Nuxt3

Expected behavior
I expected the webcontainer to boot without an issue and even when the error occured I expected the force install will install the devtool without a problem
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform
Browser name  = Chrome
Full version  = <IP_ADDRESS>
Major version = 117
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
performance.memory = {
  "totalJSHeapSize": 78799200,
  "usedJSHeapSize": 75927156,
  "jsHeapSizeLimit":<PHONE_NUMBER>
}
Hash = 129a5d66

Additional context
No response

Hey @paeltech 👋 . It seems to work if you install @nuxt/devtools manually and configure it manually. https://stackblitz.com/edit/nuxt-starter-koyt85
I'll create an internal ticket to investigate why it doesn't work through the nuxt prepare command.

We're currently in a conversation with the Nuxt team to have this resolved, so stay tuned.

They disabled the devtools setting in the nuxt.config.ts now for the StackBlitz starter. I'm keeping this open because it's definitely still a bug. But generating a new Nuxt project through the dashboard is working now.


Model tracing not working

Hi @bo-zhang-cs!
I am trying to trace SAMPNet:
cfg = Config()
torch_model = SAMPNet(cfg,pretrained=False)
torch_model.eval()
x = torch.randn(2,3,224,224)
s = torch.randn(2,1,224,224)
traced_cell = torch.jit.trace(torch_model, (x, s))
print(traced_cell)

At first attempt I got this error:
TypeError: adaptive_max_pool1d(): argument 'output_size' (position 2) must be tuple of ints, not Tensor
I fixed it by providing output_size directly as constant output_size=784
Now I get a new error which I don't know how to solve:
Traceback (most recent call last):
  File "trace.py", line 38, in <module>
    traced_cell = torch.jit.trace(torch_model, (x, s))
  File "/home/alex/anaconda3/envs/torch/lib/python3.8/site-packages/torch/jit/_trace.py", line 741, in trace
    return trace_module(
  File "/home/alex/anaconda3/envs/torch/lib/python3.8/site-packages/torch/jit/_trace.py", line 958, in trace_module
    module._c._create_method_from_trace(
RuntimeError: 0INTERNAL ASSERT FAILED at "/opt/conda/conda-bld/pytorch_1634272068694/work/torch/csrc/jit/ir/alias_analysis.cpp":584, please report a bug to PyTorch. We don't have an op for aten::fill_ but it isn't a special case.  Argument types: Tensor, bool,

Do you have an idea what the reason is?
Thank you!

Hi, Mazorati！As you see, this should be a bug in PyTorch. Maybe you can refer to this issue.

I reported a bug with more description

hey @bo-zhang-cs ! If you are interested I found out that the problem is caused by SurroundPattern. A code example is here: https://github.com/pytorch/pytorch/issues/67834#issuecomment-981710251
Actually I still don't know how to fix it.


SPI support

Coverage increased (+2.7%) to 83.475% when pulling ca625bb486ce3f5d0ab53dab0b9f178fbad1e2ae on feature/serial_interface into b5135f592d7541a944eb782fea780745ab5c1427 on master.


Description
In my case, I would add more information to the key table, such as usernames or emails, to more easily identify multiple providers.
I need the same as DatabaseUserAttributes or DatabaseSessionAttributes, but for keys.

Usernames and emails should be stored in the user table, not keys. Keys aren't intended to store more than the connection between an auth provider and a user. I'm open to listening to your use case, but we're removing keys in v3 anyway so I likely won't implement it.

I'm switching my app from next-auth to lucia, and I need a table like next-auth's Account table. This seems to be implemented in lucia v3, so I'll wait.


Make tensorflow and tensorflow-devel deb packages

Will you make it possible to install and update it by distributions package systems (deb & rpm)? You can make an official repository.
Will you make it possible to install a Tensorflow-devel package, which gives acces to C++ headers to make programs, which link to Tensorflow?

You'd be able to dynamically link Tensorflow, while building it,  to libraries available by the distribution.

We want to provide at least apt and homebrew packages. If someone would like to help out, we'd be thrilled.

Also, C++ applications'd be able to use the latest version without having to recompile.

Isn't that only true if we update the binary packages? Which realistically,
we'd only do for releases.
On Thu, Jan 7, 2016 at 4:07 PM Sherif89<EMAIL_ADDRESS>wrote:

Also, C++ applications'd be able to use the latest version without having
to recompile.
—
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/720#issuecomment-169845846
.

Yes, correct me, if wrong. If you dynamically link to a C++ library and the library is updated, you'll use the latest version of this library.

+1 for a yum repo containing this.

Debian ITP #804612 blocked by Bazel ITP #782654

/cc @CDLuminate

@bhack  You're right.
Things like splitting libtensorflow and libtensorflow-devel are done by the distributions instead of the upstream.
In order to get package Tensorflow into Debian's official archive, currently we need first to get bazel into the archive. However, if another build system is provided (Tensorflow #380 ), tensorflow gets rid of the blocker bazel.
As I'm holding Debian's ITP for tensorflow, I'm waiting for either an alternative build system, or the bazel being packaged and uploaded.

Would it be necessary to add another package for Python support? You can also add a doc package.

In debian Bazel it is blocked by protobuf >= 3.0.0 ITP #795841.

What about Arch, OpenSUSE or Fedora?

See Arch

See Arch

Can it be added to a repository to be installable by pacman? Why does it use Python 2?

You can install these arch AUR packages with yaourt, see arch wiki for detail.
Arch packages (pkgbuild) always require less working hour on packaging, so you may find it very fast that arch community adopts new packages.
So please just be patient about the distro's progress, many contributors are working on it under  a non-profit circumstance.

I'm very patient. I just hopehope it's part of its roadmap to make it:

Easy to install & update like any package.
Easy to link with C++ programs and the latest Python version.

I'm sure that Debian will have at least CUDA7.5+ and Caffe officially in this year (before or within Q2) but not sure for Tensorflow. And then Ubuntu devs will pull these Debian packages into Ubuntu vivid. As for other distros I'm afraid I can provide no info.
1 must be in the roadmap.
2 is a bit complicated ....

What's necessary to package Tensorflow?
Would #1309 make it closer?

#1309 would solve the bazel issue for Debian.
On Mon, Mar 7, 2016 at 10:00 PM Sherif89<EMAIL_ADDRESS>wrote:

What's necessary to package Tensorflow?
Would #1309 https://github.com/tensorflow/tensorflow/pull/1309 make it
closer?
—
Reply to this email directly or view it on GitHub
https://github.com/tensorflow/tensorflow/issues/720#issuecomment-193620324
.

OK, it would be great. When #1309 is merged, I can unblock tensorflow and then continue.

When #1309 is fixed, I'll try out the cmake build on CentOS 7.  CentOS 7 doesn't have JDK 1.8 or bazel in its yum repo so using bazel to roll the rpm would be cumbersome.  Supposedly bazel works with 1.7 even though it is deprecated, but it wouldn't work for me.
Rolling rpms should be much more straightforward after we can build with cmake.

@ricochet2200 any update? i just need a spec file that can build tensor-flow.
centos6 , amd-64

@iahmad-khan I haven't been following this bug closely.  Can you build with cmake now?

Just the core for now -- but it may still be interesting to make a tensorflow-core package from that.

You can put it in the open build service. It supports many distributions (Ubuntu, Fedora, OpenSUSE,...).

@martinwicke could you comment?

It will become more interesting as we fix the problems with our linkage / symbol visibility. But for now, I'm reluctant to maintain more packages.
I would still welcome contributions here.

Getting Tensorflow uploaded to the official debian repository is currently blocked because Bazel doesn't follow the Debian policy manual (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782654#45). But you could still provide deb packages even if they aren't accepted to upstream Debian.
If you are able to provide source packages for Tensorflow and all of its dependencies, then you could upload the packages to a PPA. Despite the bazel dependency, it sounds like this might be possible according to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=782654#65.

DIGITS (scripts, build, upload)
Ethereum (scripts, build+upload)

Or, if you can't provide source packages for tensorflow or one of it's dependencies (e.g. if you're working on a CUDA build), then you could still build your own and host it on your own servers (like you currently do for Python wheels).

nvidia-docker (scripts, build)

@lukeyeager The most straightforward way to make a tensorflow deb package is to repack the official whl package as a deb package, in which the Bazel dependency is skipped.
Tensorflow packaging is in my todolist but with a low priority, since pip / conda already provided a quite convenient way to install. Currently some Debian developer is also interested in packaging tensorflow, and he is currently trying to solve the Bazel ITP.

@CDLuminate: the TF package would be simple, but I realized today I would have to re-package a bunch of its dependencies, too. It looked like I was going to have to make new packages for protobuf, weakref, bleach, html5lib, markdown, and werkzeug (and possibly some of the sub-dependencies of those packages) in order to satisfy all the dependencies on 16.04. Yuck.

Most of the js deps will go away (tensorboard is moving to a separate pip
package) so it could be somewhat simpler.

@lukeyeager New Debian stable had just been released. Developers will upload new versions of their packages soon. AFAIK, for instance, the protobuf 3.3.1 packaging is already available but still not uploaded. Some new packages still stay in experimental.

https://github.com/tensorflow/tensorflow/issues/13061

It has been 14 days with no activity and this issue has an assignee.Please update the label and/or status accordingly.

@cdluminate  I see you already started doing some work on the packaging, is it already packageable? I tried running  dpkg-deb --build tensorflow but still get errors. An updated Readme would help.

@mehditlili Well, without error log I cannot tell you anything useful.
salsa/science-team/tensorflow
This repo holds the CPU version. For detail about progress please lookup README.Debian .
I can build the package from the git repo you referred on at least two architectures (amd64,s390x). The latest result is that the package was successfully compiled on amd64 and x390x. Some other architectures failed to build due to OOM killer during parallel ld so I don't know if the package compiles on them.
https://launchpad.net/~lumin0/+archive/ubuntu/ppa/+build/15309497
https://launchpad.net/~lumin0/+archive/ubuntu/ppa/+build/15309502
Besides, my targeting distribution is Debian experimental. However, it's impossible to write any documentation for user at this stage because this package is a really experimental WIP and there are still many pending choices.

@cdluminate I would be happy to sponsor it in Debian if you need!

@sylvestre I reuploaded the source to PPA with the -gsplit-dwarf flag and let's see what will be the difference. Thanks for the hint!

@cdluminate I am trying to convert it into a  Ubuntu 16.04 package. Did you encounter any dependency problem when building this package, was that a reason why it was only done for Ubuntu 18?

@mehditlili I'm moving to a new build system written from scratch with python plus ninja. And currently the debian directory is a bit messy. Please don't try to debug this messy WIP until I updated debian/rules for the new python+ninja build system.
As for dependency, yes indeed many system-shipped packages in Ubuntu 16.04 is too old to build tensorflow. If you encounter a build failure, try to embed a copy of newer source code to the package and use it. From my PPA you see only package for Ubuntu 18 is built because I don't care about old releases but only Debian unstable/experimental.

@mehditlili My build system is nearly in shape. Is it working for you?
https://lists.debian.org/debian-mentors/2018/09/msg00044.html

@sylvestre I forgot to CC you in the latest mail.
Preliminary binary packages available here:
http://debomatic-amd64.debian.net/debomatic/experimental/pool/tensorflow_1.10.1+dfsg-A1u27/tensorflow_1.10.1+dfsg-A1u27_amd64.changes
readme: https://lists.debian.org/debian-mentors/2018/09/msg00052.html

Closing the issue as per the solution provided above. Can reopen the issue if it still exists.

Yes this issue has been resolved. The first upload of TF is currently waiting in Debian's upload queue.

Yes this issue has been resolved. The first upload of TF is currently waiting in Debian's upload queue.

Great !!

Closing the issue as per the solution provided above. Can reopen the issue if it still exists.

@Harshini-Gadige looks like you can reopen.
Especially since I am completely failing to get it running on aarch64 which means only a binary package would solve the problem.
As a result, I can t run spleeter from Deezer.

Any progress for Ubuntu 20.04?

Is there any light in the tunnel?

@Dilshat  I'm also waiting for. Here is the latest information about packages in Debian (Removed from experimental in 2019-08-27):
https://tracker.debian.org/pkg/tensorflow
https://salsa.debian.org/deeplearning-team/tensorflow/

https://tracker.debian.org/news/1301497/accepted-tensorflow-231-1-source-amd64-into-experimental-experimental/
2.3.1 re-entered experimental thanks to<EMAIL_ADDRESS>


Add typescript declaration

Tracking this in the implementing repo makes things nicer for downstream.
I'm also happy to convert the repo over to typescript natively once #15 lands if you like (should be little more than an hour's worth of work, excluding possible closure compiler work).

This looks cool, thanks for the contribution. As we discussed in person, I'm in the middle of a somewhat large change to this parser, and would prefer to wait for that change to land before considering and discussing any major transition over to TypeScript.
/cc @justinfagnani

What do you think about merging this for now? As is we've been copy-pasting this d.ts file around wherever we use this repo, and it'd be simpler to have it in one canonical place.

Superseded by #17


[WFLY-18547][WFLY-19517] Set attributes to default values if available

https://issues.redhat.com/browse/WFLY-18547
https://issues.redhat.com/browse/WFLY-19517
The fixes the conflicts in #17230 (and then adds a fix for WFLY-19517). You can see the conflict resolution at https://github.com/wildfly/wildfly/pull/18026/commits/3a9ac87aede2a2b93122d81cdc7efe9bec124d96
@ehsavoie I don't know if this issue is still relevant after your WFLY-19072 fix. I didn't think much about it; I just resolved conflicts.  If this stuff is no longer relevant please let me know and I'll close this and #17230.
In case it's not relevant I'll send up a separate fix for WFLY-19517 that doesn't assume the rest of this.

Thanks @The-Huginn and @ehsavoie -- sorry this fell into a crack for so long!


Swift 4 Package compatibility

I've been trying to import Hero into a Swift 4 project using this approach. It mostly works, but some UIKit imports are missing, and the Source tree layout doesn't match what SPM 4 expects.
This PR fixes it for Swift 4, but I don't know if SPM 3 will work any more. I haven't tested whether it worked previously; was anybody else using it? I can put in a<EMAIL_ADDRESS>for backwards compatibility if it's needed.

Awesome! Thanks.

If they are using SPM, then they probably migrated to swift 4 already. lets not support SPM3.


Does not appear to work atm?

I would love to use this, but does not appear to build atm? (Running on Linux Mint 17.3, 64 bit intel)
# github.com/Sirupsen/logrus
build/src/github.com/Sirupsen/logrus/logger.go:32: undefined: sync.Pool
# github.com/prometheus/client_golang/prometheus
build/src/github.com/prometheus/client_golang/prometheus/registry.go:450: syntax error: unexpected range, expecting {
build/src/github.com/prometheus/client_golang/prometheus/registry.go:564: non-declaration statement outside function body
build/src/github.com/prometheus/client_golang/prometheus/registry.go:565: non-declaration statement outside function body
build/src/github.com/prometheus/client_golang/prometheus/registry.go:566: syntax error: unexpected }

@kristian-elder Hmm, looks like these errors are happening when go getting https://github.com/Sirupsen/logrus and https://github.com/prometheus/client_golang .
However I could build this on CentOS 7.1 with go version go version go1.4.2 linux/amd64  w/o an error.
Can you check which version of go are you using now?(go version)
Also, try clearing ./build directory to remove broken source code cache for just in case.

Thanks!
I don't have access to that machine right now, but tested on "go version go1.6 linux/amd64", and all working. Being new to go, I incorrectly assumed that the gow wrapper would pull a specific version of the go stack (much as gradlew would of gradle etc).

This works on CentOS Linux release 7.3.1611 // go version go1.7.5 linux/amd64
$ go get github.com/kawamuray/prometheus-json-exporter

Just make sure to set GOPATH before.
Thanks for this @kawamuray

This should now be working. Builds are automated and tested in master via CI.


Can I use lumx along with angular-material?

Are the 2 projects compatible to be used in the same application?

I'm working on a Chrome App where I'm using both angular-material and LumX. The dropdown list was the reason why I ended up using LumX together with angular-material, and right now I'm primarily only using the sidebar feature of angular-material. Both UI frameworks implements the CSS a little differently, I kinda hope that all of the material UI frameworks eventually implements the same style.

Hi, thank you very much for your feedback!
The sidebar will be provided when we'll pu some layout examples into LumX website.

Any idea when these layout examples will be available? ^^

I'm also waiting for this layout example to be available, is this going to change how FlexBox is designed in lumx. Also very keen to see sidebar making into the next release. Any date of it's release?

+1

+2

Good question. I'm mostly interested in the date / time pickers from LumX


not able to create this stack (AthenaLambdaCustomResources CREATE IN PROGRESS FROM 30 MIN)

while implementing the given code in my stack as mentioned in the blog, it is stuck on the stack creation process from last 30-40 min.
and while going through resources I found that it is not able to create (AthenaLambdaCustomResources)
please help me with this

This happens when the custom resource improperly communicates with CloudFormation to let it know that it is done and the process can proceed.  I bumped into this during my testing and thought I had it resolved.  Let me see if I can reproduce and try to fix.

@9783916990 I was able to reproduce the issue.  The issue that I ran into was with file permissions on my Windows box.  I cloned the repo into a folder that had permissions set to 770, and those were inherited.  All executables for custom resources need to be world readable for the custom resource to be created.  Can you let me know what environment you were using to prepare the zip files for upload?  I want to see if this was your issue or if I need to look elsewhere.


Calendar Selection for Events Screen

Is your feature request related to a problem? Please describe.
Right now, our events page is not the cleanest or prettiest, as this is going to be a high traffic part of the app, we need to get it in better condition.
Describe the solution you'd like
Kind of emulating some similar apps, it would be cool to have a calendar view at the top with a cleaner list below it. This will require reworking the way the page downloads the list of events from firebase, and how it sorts/displays them. In addition, the EventRow component will need to be upgraded so it looks a bit better.
Additional context
I think React Native Calendars would be best for the actual date picker at the top

Attached below is the proposed layout. From our meeting notes:

We will probably have to come back to this page to make sure it fits the theme of the rest of the app redesign. The main priority for the Events Page is to get the Backend and general setup settled.


Renaming custom TeX configuration filename to avoid name conflicts wh…

…en installing this plugin via pip.

Codecov Report

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

@@           Coverage Diff           @@
##           master       #4   +/-   ##
=======================================
  Coverage   35.09%   35.09%
=======================================
  Files           3        3
  Lines         151      151
=======================================
  Hits           53       53
  Misses         98       98

Continue to review full report at Codecov.

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


feat: port MeasureTheory.Constructions.Prod.Basic

[ ] depends on: #4103
[ ] depends on: #4165

This PR/issue depends on:

leanprover-community/mathlib4#4103
leanprover-community/mathlib4#4165
By Dependent Issues (🤖). Happy coding!

Is it necessary to have this stacked on top of https://github.com/leanprover-community/mathlib4/pull/4200? It would be nice if these could proceed independently.

@semorrison The new PR is #4433.


Included newer version of p5

Old version of p5 was 0.10.2 , now this file links to 1.1.9

Thanks for this!


Error Configuration with name 'default' not found.

Hello I was getting the following error on android using react native:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > Configuration with name 'default' not found.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 10.621 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

I fixed by replacing lib by src in settings.graddle, I made the specific change in this line:
project(':lottie-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/lottie-react-native/lib/android')
Because I realized that the folder lib/android in node_modules for lottie-react-native wrapper does not exist and is the one that appears on http://airbnb.io/lottie/react-native/react-native.html#android and also the one that automatically adds when you make a
react-naive link lottie-react-native.
Please see the following screenshot:

Looks like a clone of #241

Sorry I didn't see #241, and yes it is the same issue.

Duplicate of #241

Please run this command react-native upgrade. This command will ask replace existing file or not. If you    want to replace a particular file press Y and hit enter button or press N. After completing this command than run command  react-native link. This command will link all dependencies than you can run command react native run-android /ios. This issue create when you uninstall some dependencies so sometimes  it do not update build files like setting.gradle build.gradle etc.


Grouping seems to be broken on MacOS

When creating a blank document, I create a square and some circles that's filled in black. I group the one square and three circles via right click and group. I click on the square to drag around the circles do not come with it. I have to highlight everything, which seems that group is broken. Running version 22.0.2, on MacOS Sonoma 14.0.

Im using 22.0.8 and the grouping seems to be still broken. I create two rectangles and group them. I if move the group once (click and drag) the group moves. if I move it the second time, just the rectangle under the cursor moves and it breaks the group. Can you fix this or explain why the behavior is what it is?


Add a toast message when user successfully changes units and resolution of images in preferences.

Summary:
Add a toast message when user successfully changes units and resolution of images in preferences.

I want to work on this


Fix minor typo in tutorials

PR Checklist
If you are contributing to Javis.jl, please make sure you are able to check off each item on this list:

[ ] Did I update CHANGELOG.md with whatever changes/features I added with this PR?
[x] Did I make sure to only change the part of the file where I introduced a new change/feature?
[ ] Did I cover all corner cases to be close to 100% test coverage (if applicable)?
[ ] Did I properly add Javis dependencies to the Project.toml + set an upper bound of the dependency (if applicable)?
[ ] Did I properly add test dependencies to the test directory (if applicable)?
[x] Did I check relevant tutorials that may be affected by changes in this PR?
[x] Did I clearly articulate why this PR was made the way it was and how it was made?

Link to relevant issue(s)
No issues linked. (Since this is a minor change I left out creating an issue for it. If required will willingly do so.)
How did you address these issues with this PR? What methods did you use?
There seems to be a minor typo in Tutorial-2. The inner circle has a few wrong parameters. Corrected it using the examples from the rest of the tutorial.
Thanks for the awesome package and the wonderful tutorials!

Hi @codejaeger thanks for the PR. Seems like this should also be fixed at the end of the tutorial where the full code is displayed, right?

Hi @codejaeger thanks for the PR. Seems like this should also be fixed at the end of the tutorial where the full code is displayed, right?

Yep, sorry had missed that. Made the corrections, thanks.

Perfect thx


first CNN and animation

Turns out the model isn't that bad. I needed to adjust action_index from mode.model_inf.predict(..) so that the actions map to the correct index, and for some reason, my first animation code looped two movements.

Please add the changes from this morning (e.g., plotting top losses).

updated Imitate.py and ImitateWrapper.py


Updates from the fork

###Defect Fixes
When submitting a PR, please also create an issue documenting the error.
###Feature Requests
Due to company policy, we are unable to accept feature request PRs with significant changes as such cases has to be implemented by our team following our own processes.

updates merged


SQL Support

Things that need to be tested before launching:

[x] Job notification toggle
[x] Account creation
[x] Has account check returns properly
[x] Job exp updates properly
[x] Job levels update properly
[x] Job exp is retrieved properly
[x] Job levels are retrieved properly

I'd like to see this too :+1:
External SQL would be cool

Remember when it comes to larger user counts (per server) an SQL database may not be the best option since you can't really bundle transactions.
Otherwise SQL support will be an easy way to access data from another application.

Oh wow this is an old one. Let me go ahead and set a milestone on this one so we can get it added to the next release.

Hello together, hello @Erigitic
why you removed the feature from 1.5.1? It's my personal favorite feature. I need it for homepage integration (php) and for economy sharing between servers (bungeecord).
Thanks

@mister-man probably because he's busy resolving some other issues before implementing completely new features.

@MarkL4YG  Yes I tested it. But it's pre. So it was possible that the feature is disabled or else. Or a reason could, that there are problems with the api design and api is incompatible with a multi server environment.
But now I know the reason, thanks :)

Adding SQL support is going to take longer then I expected which is why I removed the milestone. As well as that, I am focusing on bug fixes for v1.5.1 as there seems to be quite a few that snuck their way into v1.5.0.
SQL support will be added sooner or later, but not until I have a large amount of time on my hand as there is a lot of code that would need to be altered.

Afaik the JobManager still lacks SQL support and for some reason the AccountManager initializes the level and exp tables while the JobManager manages them in file mode.
Although money and transactions are more important I'd say that it should be decided whether or not jobs will also have SQL support and if applicable this issue reopened.


feat: preemption

This is a WIP because there is a bug #24 with what looks to be the google storage plugin installed. Ping @johanneskoester I need to get #24 fixed before can proceed with more features here. Happy New Year!

There isn't any yet. But in principle it boils down to check whether the job is supposed to be preemptible with self.workflow.remote_execution_settings.preemptible_rules.is_preemptible(job.rule.name) and then pass this info to google batch. Further, the setting self.workflow.remote_execution_settings.preemptible_retries defines the number of retries.

@johanneskoester when I remove all my custom logic (and allow snakemake to install plugins it needs) I reproduce the error - it is looking for both gcs and gs. This is installing snakemake from the main branch. I can add the install of the gcs plugin, but then I'll be where I was before, looking for the gs plugin.

ah! Just found it in an environment locally - will test removing here and seeing if that somehow (magically) removes it from the remote. That doesn't make sense, but if snakemake is getting the plugins from my local call, it actually would! Will report back.

Looks like there is a bug with preemptible_rules in cli.py:
 snakemake --jobs 1 --executor googlebatch --googlebatch-region us-central1 --googlebatch-project llnl-flux --default-storage-provider s3 --default-storage-prefix s3://snakemake-testing-llnl --preemptible-rules hello
Traceback (most recent call last):
  File "/home/vanessa/Desktop/Code/snek/snakemake-executor-plugin-googlebatch/env/lib/python3.11/site-packages/snakemake/cli.py", line 1906, in args_to_api
    if not preemptible_rules:
           ^^^^^^^^^^^^^^^^^
UnboundLocalError: cannot access local variable 'preemptible_rules' where it is not associated with a value

Fix here: https://github.com/snakemake/snakemake/pull/2616

Also with the fix for the gs, the jobs are (finally) green! I won't show you how many red / failed there are, let along that it takes 7 minutes per one step run for a hello world... :grimacing:


hourly view of timeline, with the respective day below it.

I want to get the hourly presentation of timeline, in x-axis. with the respective day below it. like in the picture I have just tried to present a rough sketch.

Please use Stack Overflow tag d3.js to ask for help. Stack Overflow provides a better collaborative forum: thousands of D3-related questions have been asked there, and some answers may be relevant to you.
When asking for help, please include a link to demonstrate the issue, preferably as an Observable notebook. It is often impossible to debug from code snippets alone. Isolate the issue and reduce your code as much as possible before asking for help. The less code you post, the easier it is for someone to debug, and the more likely you are to get a helpful response.
If you have a question about D3’s behavior and want to discuss it with other users, also consider the d3-js Google Group or joining the d3-js Slack.
Thank you! 🤗


Window crash (-5) in open/restore editor of a .run file

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

VS Code Version:
Version: 1.67.1 (Universal)
Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d
Date: 2022-05-06T12:37:16.526Z (4 days ago)
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: <IP_ADDRESS>-electron.0
OS: Darwin arm64 21.4.0
OS Version: macOS 12.3.1 (21E258)

Steps to Reproduce:

Download a huge (4G) .run file in vscode integrated console
Open the editor by selecting the file in the sidebar
vscode tries to open the file then window crashes (-5)
Reopen the folder, keep crashing (restore editor - no then I have some chance to open the folder again)

I found there is a Backups folder (/Users/<>/Library/Application Support/Code/Backups). When reopening the workspace, vscode tries to load from the Backups folder, and the backup file is 4G in size.

Could you share a crash report? https://github.com/microsoft/vscode/wiki/Native-Crash-Issues
Similar to https://github.com/microsoft/vscode/issues/146974

Could you share a crash report? https://github.com/microsoft/vscode/wiki/Native-Crash-Issues
Similar to #146974

After I deleted the Backups folder, I can no longer reproduce this issue.
It looks better if we provide options to handle this issue in vscode:

Not loading large .run files in vscode editor - like not loading binaries
Store the backup file loading failure retries using a map or something, if one exceeds a certain threshold, then not try to load that backup file and warn users

Hey @tanhakabir, this issue might need further attention.
@yeahdongcn, you can help us out by closing this issue if the problem no longer exists, or adding more information.

Hey @tanhakabir, this issue might need further attention.
@yeahdongcn, you can help us out by closing this issue if the problem no longer exists, or adding more information.

Unfortunately, this issue still exists.
Several days ago, I tried to combine all code under my git repo into one file, but I forgot to exclude the binary directory for the first time. The created file is too big and when I opened it in vscode the same crash happened.
What particular information do you need? Crash report?

For this reason we introduced a checkbox to disable restoring of editors:

Did you try that?
However, if the file was somehow dirty (which means you were able to edit it), we would still restore the file because we want to restore your changes. Did you manage to edit it?

Did you try that?

Yes, but as you said, vscode automatically tries to restore the file for some reason.

Did you manage to edit it?

No, the crash happens in restoring too.
I will find the crash report and upload it here.
BTW, I think this issue should be easy to reproduce, a crash report may help to root cause the issue at the moment, but you still need to verify the change later.

But I wonder how the file is restored at all when you did not edit it? How did you make changes to it in VSCode when it crashes opening?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!