使用带有火花的DEAP(遗传算法库)(Using DEAP (genetic algorithm library) with spark)
是否可以使用DEAP( http://deap.readthedocs.io/en/master/ )和火花簇来映射健身评估功能。 我想运行GA,但健身功能相当长,我打算将它分配到火花簇上。
Is IT possible to use DEAP ( http://deap.readthedocs.io/en/master/) with a spark cluster to map the fitness evaluation function. I would like to run a GA but the fitness function is rather long and I was planning on distributing it on a spark cluster.
原文:https://stackoverflow.com/questions/45607035
最满意答案
这是Chrome中的一个怪癖。
如果用户在用户单击Web应用程序图标时在其清单中以“独立”方式将Web应用程序添加到其主屏幕,则它将在没有URL栏的情况下打开。
收到推送消息并打开相同的Web应用程序时,如果用户从主屏幕图标(最近10天)“最近”打开了Web应用程序,则不会显示URL栏。 如果用户在该时间段内没有使用主图标,则会打开通知点击,并显示URL栏。
在Chrome上查看此问题获取更多信息: https : //bugs.chromium.org/p/chromium/issues/detail?id = 541711
特别:
Web应用程序必须添加到主屏幕,能够以独立模式打开,并且在过去十天内已从主屏幕打开。 如果没有满足这些条件中的任何一个,则通知将回退到现有行为。
同样值得注意的是,PWA vs Browser本身并不是正确的思维方式。 您总是在浏览器中启动,只是以不同的模式,例如“独立”与“浏览器”。
PWA(Progressive Web Apps)主要是一个术语,用于描述使用一组API来为新的Web技术(即服务工作者,推送,Web应用清单等)提供良好的用户体验。
This is controlled by the browser. In addition when deciding to open a window it might be worth checking if the desired target URL is already open in a different tab/window so you can focus or open it, depending on the situation. Check this book here for some code samples.
For example in Chrome, if a user adds a web app to their homescreen with "standalone" in their manifest when ever the user clicks the web apps icon it will open without the URL bar.
When a push message is received and that same web app is opened, the URL bar will not be displayed if the user has "recently" opened the web app from the homescreen icon (Currently in the last 10 days). If the user hasn't used the home icon within that time period, a notification click will open with the URL bar displayed.
See for more info on this Chrome issue here:
Specifically:
The web app must be added to home screen, capable of opening in standalone mode, and have been opened from the home screen within the last ten days. If any of these conditions are not met, the notification will fall back to the existing behaviour.
It's also worth noting that PWA vs Browser itself isn't the right way of thinking of this. You are always launching in the Browser, just in different modes, "standalone" vs "browser" for example.
PWA (Progressive Web Apps) is largely a term to describe a use of a set of API's to make a good user experience with new web technologies (i.e. service workers, push, web app manifest etc).
相关问答
更多-
TCP/IP模型是一个________。[2023-10-02]
a -
下列中不属于面向对象的编程语言的是?[2022-05-30]
a -
处理对基于Service Worker的通知的点击的正确位置在Service Worker中。 您需要将您的侦听器 - 具有self.addEventListener('notificationclick', ...)移至您的Service Worker代码。 请注意,您没有window访问权限。 要导航到URL,您需要改为使用clients.openWindow 。 因此,您的应用程序端代码将只有reg.showNotification调用,并且Service Worker中的您的处理程序将如下所示: s ...
-
https://www.w3.org/TR/wake-lock/ https://developer.mozilla.org/en-US/docs/Archive/B2G_OS/API/Wake_Lock_API 基本上,是的,有一个网站迫使屏幕保持醒着,但它目前是非标准的。 它可能会成为标准,但现在它似乎只适用于FirefoxOS。 然而,这是在javascript中实现唤醒锁定的预期方式。 另一个解决方案,虽然这更多的是黑客正在做一些沿着背景隐藏视频播放的东西,因为据我所知大多数浏览器保持清醒,如果一个 ...
-
没有关于PWA的特定框架 - 您的网站必须满足一定的标准 : 一切都通过HTTPS提供 设计必须具有响应能力 你的应用程序必须可以离线使用(即它需要服务人员 ) 您需要提供包含有关应用程序元数据的清单文件 您的应用必须适用于所有现代浏览器 页面转换不应该阻止应用程序(即,如果需要加载一段时间,您需要显示加载屏幕/旋转器) 应用中的每个页面都需要一个唯一的URL 所有这一切都可以通过Angular 1实现 - 现代框架可能会更容易或更好 ,但至少现在没有什么能阻止您坚持使用您的产品。 Addy Osmani( ...
-
一个渐进式Web应用程序适用于任何网站工作,只要它有一个服务工作者,一个清单和SSL。 当人们离开公司时,他们会看到离线版本。 推送通知也可能工作,但您需要在公司网络内部接收它们。 A Progressive Web app works where any website works, as long as it has a service worker, a manifest and SSL. When people are outside the company, they'd see the offl ...
-
如何升级PWA的应用程序外壳(Progressive Web App)(How to upgrade app shell of a PWA (Progressive Web App))[2023-10-28]
渐进式Web应用程序依靠Service Workers来优化资源加载。 app shell也不例外。 A progressive web app rely on Service Workers to optimise resources loading. The app shell is no exception. -
PWA和Angular 2/4应用程序有什么区别?(What is the difference between PWA and Angular 2/4 application?)[2023-10-21]
PWA代表渐进式Web应用程序,更多是一组松散相关的技术和方法,旨在为Web应用程序提供类似移动应用程序的体验。 它实际上与Angular,React或Vue等框架无关。 谷歌有一个很好的解释器, 请访问https://developers.google.com/web/progressive-web-apps/ PWA stands for Progressive Web Applications, and is more of a set of loosely related technologies ... -
这是Chrome中的一个怪癖。 如果用户在用户单击Web应用程序图标时在其清单中以“独立”方式将Web应用程序添加到其主屏幕,则它将在没有URL栏的情况下打开。 收到推送消息并打开相同的Web应用程序时,如果用户从主屏幕图标(最近10天)“最近”打开了Web应用程序,则不会显示URL栏。 如果用户在该时间段内没有使用主图标,则会打开通知点击,并显示URL栏。 在Chrome上查看此问题获取更多信息: https : //bugs.chromium.org/p/chromium/issues/detail?i ...
-
选项1 : Manifest.json的启动URL仅在您添加到主屏幕后访问它时使用。 您可以将您的起始网址设为“ https://example.com/myapp?isPWA = true ” 在主页中,具有读取查询参数和标志的逻辑并基于该逻辑执行逻辑。 在浏览器模式下,此标志将不存在,因此逻辑在这种情况下应视为false。 这是适用于所有平台的通用解决方案。 选项2: 作为替代方案,您可以在JS中使用显示模式检测 。 非Safari(Safari兼容性可能会在新版本中出现) CSS解决方案 @media ...