Feature/caching grids

What
commit 92f5d54e5a684669922268cceed5e8bcfc1ab6c7 (HEAD -> feature/caching-grids, origin/feature/caching-grids)
Author: Vivian Allen<EMAIL_ADDRESS>Date:   Fri May 6 13:14:06 2022 +0100
implement caching grid in api.ts + setVizStore.ts

Add routine to check viewport bbox for intersections with one
or more Bbox from cacheGrid.ts, and make one or more requests for
this cacheable Bbox rather than the viewport bbox. Intention is
to quantise requsts made to the api to take advantage of its cache.

Routine makes use of shallow (one request deep) local cache to
avoid requesting identical data repeatedly (this is an issue with
the cache grid, as the cachable Bboxes are often larger than the
viewport is, and so moving the viewport may result in identical
geodata api requests).

commit f41d4373733cd8f88d41ddb740a708fa9716d53e
Author: Vivian Allen<EMAIL_ADDRESS>Date:   Fri May 6 13:13:41 2022 +0100
add spatialHelpers.doBboxesIntersect

Add helper function to test if two Bbox objects intersect or
cover each other. Tests added to spatialHelpers.ts.test.ts

commit 1152788b93a4f7339909ec686defa25596633f28
Author: Vivian Allen<EMAIL_ADDRESS>Date:   Fri May 6 13:12:50 2022 +0100
add utility scripts for processing caching grids + quad grid

- add caching-grids directory with utility script for parsing
grids defined as map tiles into Bbox objects compatiable with
the atlas
- add scr/data/cacheGrid.ts, containing caching grid based on
quads.json from https://github.com/bothness/oa-map/blob/main/public/data/quads.json

How to review
Ensure tests pass (npm run test)
Run atlas locally with npm run dev and test-drive (netlify currently broken...)
read the code
Who can review
Anyone

closed as redundant, now we're snapping to the slippy map tile X,Y grid instead.


[Request for external] Remove OnPrem scope requests for external not in major 22x

We requested to remove the OnPrem scope from functions which do not contain OnPrem specific code.
Please have a look at the following requests for external. They are approved but we do not see any code changes in the major 22.1.
#22081
#22084
#22087
#22198
#22129

Sorry, we never do that for released versions, we can only do external requests for next major.


feat: speed up 2bit file extract

Rewrite the extract logic.
On a single node with 20 workers, BaseRecalibration time is reduced from 5.8 min to 1.7 min.
Pass existing tests.

Wonderful! Thank you for submitting the patch; I will take a look at this later today or tomorrow.

Can one of the admins verify this patch?

Jenkins, test this please.

Coverage decreased (-0.003%) to 76.396% when pulling 1a53ce5f7239dad3acf8be53d49d5c7c8652352b on Blaok:master into 07c1982fb6fafb959b96d4c3cb83fa7edbe25721 on bigdatagenomics:master.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1844/
Test PASSed.

Is there an ε we can provide to coveralls to prevent it from failing a build in silly cases like this one?  Coverage decreased by 0.003%?  Come on.

@laserson would you be able to review this today or tomorrow, since you wrote the original 2bit code? If not, I think this is good to go and I will merge as is.

Merged! Thanks @Blaok for the contribution! We greatly appreciate it.


Caching api data for offline use

Hi,
I wanted to ask how we can get data from an api call with redux saga and cache iT somehow so that we can reuse the data when the application is offline?
Also, I wanted to ask how we can get the data when the homepage loads without clicking a button or something? And only ask to get new data when the application is online.
I hope you can help me?

I think this is not provided by default from this boilerplate.. you need to do it manually

Store it in the cookie or local storage? But it's not the best thing to do IMO.

how we can get the data when the homepage loads

That's where React life cycle methods would help you out.

Closing due to inactivity


[Help] Visual Map and MarkArea zone at marklines touching with Series line

What problem does this feature solve?
###Code try!
https://echarts.apache.org/examples/en/editor.html?c=line-sections&code=MYewdgzgLgBFIAcD6AbAlgWzbAvDAzAKwAMA3AFCiSwBGIU8Gqm2MeAjCReYlGuGxgBvcjBgAPAILi0EAFzDRYuAE8EAUwUByYAEMo6gOYgATiq0AaJWLoBXMABNdZgOK6ECgGa6UEdVeUYJyhdBQBtLWJiOSjLGEj2GOI4yIAmJJTifAyLeOIAFhy8wiLIgDYMgF0lAF8AmBVpWQURQKg1TXiANx9bdS1a-q7ZWx8AWXcW6xgENHVgdXkYMOmxVsDlQygFOgYQJnQsKHqNmBQDBXhkQ-wTjdAUU20aFD6B07rVxVOxLcvEZhHO6BB5PeImdQOd4bGrTSp3EC2KAAeU8ACVdGBDJ0hDBQSZtBCoTBYWJPmI_CY5ksVoF1oEMM4ANYAGTQYBxXzEwVCy1xjRkSyugNYdWEDSaS12jBFsBq8K5MAgaBQ6jA2zgJj6wOU6A5AGV2qqpj9lPjtIYIWrLIqxAB3NAOKAACwU7EV5J-EBUGDoKHCWjA4H6uUDwa01Q-OvaGm0epDXwgGBA9Fdmu1Xx54XwUVyqQAHMRcvkSHmykWYOXcjmK4QSArTvHDSpjd8fg6nWn8l9PQzmZIIbz6RtsOoMM3W8PTub4lATJiIAhnGqoDbTTZTA51CYAOqOl1unWBOgmLcmAAqHXChFy7GIkZ-vY2WeWttf6-UU_XYF0GE6WjGUwwHZQwYAABXUXQmTXD9lCkQVtGIRJYjfMkjw2L9TXg5o8myFDYJJN8G3XWlYMwn4fz_bQAFEujVEDwMg6D0NObClkiEp8Ngp9TXI1jJUQiouI_Ul1wfU5xOUUSySUaoalIIA
i want to make the MoringPeak and Evening Peak zone(visual map and markArea) base on the joins touch of markLine with the Series data.
so i tried to read some examples of line charts but not yet found solution for the design. please help with any idea !

What does the proposed API look like?

You want to draw a vertical MarkArea zone (or two MarkLines) for each peak >150. You'll need two X points like in the official example.

if you have enough data points, then it is easy to find all X's intersecting with Y=150.  But your data is too sparse...
with sparse data one could find the intersection X-value of each line segment with Y=150 (example: segment X=1:00 to X=2:00, with Y=150). But this will work only for straight lines (smooth:false).

So I think your choice to either have more data points or give up line smoothness.

Hi. thanks your attention.
the exactly my idea is to draw the vertical-line at touching-point where series-line touch with markLine (y=350).
but problem was if i don't have the data point in xAxis, and its too sparse.
so i don't have x,y of touching point for drawing vertical-line.
More in below example: the touching point A(x,y) is unknow.

And as i tested, visualMap.outOfRange already know where to change series-line color where it out of visualMap range XD but i don't know how to get it

visualMap.outOfRange already knows...(the intersections)

good observation, internally those points are known of course, but there is no API to obtain them.
I found getPointOn method in polyline, but it gives only the first intersection point for a fixed coordinate (x or y).
Here is the result - Demo Code
Would be nice to one day have getPointOn expanded and exposed as API function.

Thank you for that example, Really nice Demo Code shown exactly what i want to find. and Yes, hope for it sometime in future


Suggested Extensions : Permission : Page not found

The Url provided in the CLI is not found

Hey @srikanth-programmer, you can find the correct link for this extension here: https://portal.thirdweb.com/contracts/build/extensions/general/Permissions
We'll fix this in the next CLI release


Android: Features and Compatibility

Finally pushing a big set of updates now that the latest release is out and happy.

Total rewrite of the platform ViewPager adapter to address the very long-standing issues around state loss when context switching while reading stories.  After much research, it appears that we weren't the only ones struggling to use the buggy platform impl, so went off and totally replaced it.  The new one understands the nature of story rivers being a dynamic list of items rather than an fixed-indexed dataset and correctly implements state save/restore for story fragments.  In most cases, things like scroll state are now preserved when rotating or context flipping.  This also fixes the root cause of the off-by-N problems we have had for years w.r.t. actions being performed on stories but not hitting the correct story or not being immediate reflected in the UI.
Improved messaging and display behaviour for stories/feesd that don't support original text mode.
Inserted some addtional logging to try and help debug the buggy WebView behaviour that GOOG rolled out some time over the last few months.
New feature - feeds can now be renamed from the app.
Bumped the target SDK version to 26.  This wasn't to gain features, but because in a few months GOOG will begin banning apps on older targets from the Play Store as a forcing function to push people away from older platform components.  For that reason, we also had to move our sync backend to a much newer (introduced in API 21) framework that works quite differently than the original one since API 1.  This new way of launching the syncs both in the background and when joined into the foreground should be compatible with the older platform versions while simultaniously not running afoul of the new background killer introduced in platform 28.
Many other bugfixes and performance tweaks.

Two big components of this code are brand new and deal with some of the worst differences between platform versions.  This will need a good deal of testing on every live Android version from 5.0 - 8.1.  Though I have tested most of this on my 7.1 daily driver, the other versions need thorough soaking.   I would suggest we test this a bit more internally before even going to Beta.

Wow, this is really something. With the transitions into the story list, this feels like a whole new app. I haven't had any issues, so I'm going to push this out as v9 beta 1.

Deployed


ResponseValidationError

ResponseValidationError: 1 validation errors:
{'loc': ('response',), 'msg': 'none is not an allowed value', 'type': 'type_error.none.not_allowed'}

Looks like we're hitting this? Any fixes?

Do you have an idea what's causing this?

Nope. Got another one though, in a repo with a single commit: https://github.com/lorenzleutgeb/radicle-nix/actions/runs/9167968223/job/25205978880 (don't be confused about it being green, I set continue-on-error because I was expecting it...).
Both of them are attempts for a "rolling release", check .github/workflows/flakestry.yamls:

ngi-nix/ngipkgs
lorenzleutgeb/radicle-nix


Remove incomplete ensemble.py

The code lives on in the branch https://github.com/flatironinstitute/bayes-kit/tree/feature/ensemble

Codecov Report

Merging #7 (4485a8b) into main (ea95a79) will decrease coverage by 0.22%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main       #7      +/-   ##
==========================================
- Coverage   92.30%   92.09%   -0.22%
==========================================
  Files           9        8       -1
  Lines         221      215       -6
==========================================
- Hits          204      198       -6
  Misses         17       17

Impacted Files
Coverage Δ

bayes_kit/__init__.py
100.00% <ø> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

I'm working on fixing that sampler right now.  So please don't merge this.


When sleuth is used , Spring boot 2.6.X not compatible with spring-cloud-dependencies 2021.0.2  and App don't start

After updating spring boot from 2.5.7 to 2.6.7 (Or any version higher than 2.5.7) Our app faces an issue and is unable to start.
The error :
Caused by: java.lang.ClassCastException: class org.springframework.cloud.sleuth.instrument.async.LazyTraceAsyncCustomizer cannot be cast to class org.springframework.web.servlet.config.annotation.WebMvcConfigurer (org.springframework.cloud.sleuth.instrument.async.LazyTraceAsyncCustomizer and org.springframework.web.servlet.config.annotation.WebMvcConfigurer are in unnamed module of loader 'app')
	at org.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.configurePathMatch(WebMvcConfigurerComposite.java:52)

The error explained after debugging :
In file WebMvcConfigurerComposite method configurePathMatch is trying to cast all delegates to WebMvcConfigurer
The issue is here because spring boot instead of having our AsyncConfig file which implements WebMvcConfigurer it mistakenly get another class instead and that class is LazyTraceAsyncCustomizer , which doesn't implement the WebMvcConfigurer then it fails because it can't cast it
To Reproduce
Steps to reproduce the behavior:

Use below versions together (Or any spring boot later than 2.5.7):

  <dependencyManagement>
    <dependencies>
    <dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-dependencies</artifactId>
      <version>2021.0.2</version>
      <type>pom</type>
      <scope>import</scope>
    </dependency>
    </dependencies>
  </dependencyManagement>

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.7</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

Try to create AsyncConfig class which use Sleuth e.g. LazyTraceAsyncTaskExecutor &  LazyTraceExecutor (Below is our current Kotlin class)

package nl.rabobank.online.dao.config

import org.springframework.beans.factory.BeanFactory
import org.springframework.beans.factory.config.BeanDefinition
import org.springframework.boot.autoconfigure.EnableAutoConfiguration
import org.springframework.cloud.sleuth.instrument.async.LazyTraceAsyncTaskExecutor
import org.springframework.cloud.sleuth.instrument.async.LazyTraceExecutor
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Role
import org.springframework.scheduling.annotation.AsyncConfigurer
import org.springframework.scheduling.annotation.EnableAsync
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
import org.springframework.web.servlet.config.annotation.AsyncSupportConfigurer
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer
import java.util.concurrent.RejectedExecutionException
import java.util.concurrent.RejectedExecutionHandler
import java.util.concurrent.ThreadPoolExecutor

private const val TEN_SECOND_DELAY = 10000L

private const val TP_EXECUTOR_SIZE = 20

private const val TP_TASK_SIZE = 5

private const val TP_QUEUE_SIZE = 30

@Configuration(proxyBeanMethods = false)
@EnableAutoConfiguration
@EnableAsync // add the infrastructure role to ensure that the bean gets auto-proxied
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
class AsyncConfig(private val beanFactory: BeanFactory) : AsyncConfigurer,WebMvcConfigurer{

    private val executor = threadPoolTaskExecutor(TP_EXECUTOR_SIZE, 0, "task-", true)

    override fun getAsyncExecutor() = LazyTraceExecutor(beanFactory, executor)

    override fun configureAsyncSupport(configurer: AsyncSupportConfigurer) {
        configurer.setTaskExecutor(LazyTraceAsyncTaskExecutor(beanFactory, executor))
    }

    private fun threadPoolTaskExecutor(
        poolSize: Int,
        queueCapacity: Int,
        threadNamePrefix: String,
        shouldBlock: Boolean
    ): ThreadPoolTaskExecutor {
        val executor = ThreadPoolTaskExecutor()
        // CUSTOMIZE HERE
        executor.corePoolSize = poolSize
        executor.maxPoolSize = poolSize
        executor.setQueueCapacity(queueCapacity)
        executor.setThreadNamePrefix(threadNamePrefix)
        executor.setWaitForTasksToCompleteOnShutdown(true)
        executor.setAwaitTerminationMillis(TEN_SECOND_DELAY)
        if (shouldBlock) {
            executor.setRejectedExecutionHandler(BlockingExecutionHandler())
        }
        // DON'T FORGET TO INITIALIZE
        executor.initialize()
        return executor
    }

    @Bean("documentCreationPoolTaskExecutor")
    fun getDocumentCreationPoolTaskExecutor(): LazyTraceExecutor {
        val threadPoolExecutorConfig = threadPoolTaskExecutor(TP_TASK_SIZE, TP_QUEUE_SIZE, "doc-create-", false)
        return LazyTraceExecutor(beanFactory, threadPoolExecutorConfig)
    }
}

internal class BlockingExecutionHandler : RejectedExecutionHandler {
    override fun rejectedExecution(runnable: Runnable, executor: ThreadPoolExecutor) {
        try {
            // based on the BlockingQueue documentation below should block until able to place on the queue...
            executor.queue.put(runnable)
        } catch (e: InterruptedException) {
            throw RejectedExecutionException(
                "There was an unexpected InterruptedException whilst waiting to add a Runnable in the executor's blocking queue",
                e
            )
        }
    }
}

Try to start your spring boot app,Then it won't start and it will give the above error.

Version of the framework
Spring cloud dependencies   :   2021.0.2
Spring boot parent:  2.6.7
Expected behavior
Expected behaviour when it works (For versions earlier than 2.5.8) in file WebMvcConfigurerComposite METHOD configurePathMatch The delegates object Should contain our correct AsyncConfig class below (Which impl. the WebMvcConfigurer) :
{AsyncConfig@10458} nl.rabobank.online.dao.config.AsyncConfig@40cd02fc
BUT Instead (In versions later than 2.5.7) it contains this:
{LazyTraceAsyncCustomizer@10473}
Screenshots
Screen shots of Debugging Spring code:

See invalid class LazyTraceAsyncCustomizer not impl. the WebMvcConfigurer at all

Additional context
It is a critical bug for our team and preventing us from upgrading Spring boot version to solve other security issues.

You can always set spring.sleuth.async.enabled=false and disable Sleuth for that matter.
Could you please rewrite this class from Kotlin to Java? That would rule out any Kotlin problems out and I could try to reproduce this sample locally.
Also, why is your class implementing both AsyncConfigurer,WebMvcConfigurer ? It's the first time I see such a case so no wonder that the Sleuth wrapper doesn't know that it should apply the WebMvcConfigurer. Just separate this class into 2 cause apparently it does too much and you should stop having this problem any longer

This seems to be a duplicate of https://github.com/spring-projects/spring-boot/issues/31030 that has been closed as a duplicate of https://github.com/spring-cloud/spring-cloud-sleuth/issues/2100.

Dupicate of https://github.com/spring-cloud/spring-cloud-sleuth/issues/2100


Install llbuild swift bindings

This PR installs the llbuild Swift bindings in the toolchain so they can be dynamically linked from SwiftPM.

Please build with following pull request:
https://github.com/apple/swift-llbuild/pull/341
@swift-ci Please Build Toolchain macOS Platform

Please build with following pull request:
apple/swift-llbuild#341
@swift-ci Please Build Toolchain Linux Platform

Please build with following pull request:
apple/swift-llbuild#341
@swift-ci Please Build Toolchain macOS Platform

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - 335290e39727aa141ec79890ea6b10f534b8ca64
Install command
tar zxf  swift-PR-17829-36-ubuntu16.04.tar.gz
More info

macOS Toolchain
Download Toolchain
Git Sha - 335290e39727aa141ec79890ea6b10f534b8ca64
Install command
tar -zxf  swift-PR-17829-46-osx.tar.gz --directory ~/

@gottesmm do you think such a test will be very valuable? SwiftPM intends to link with this library and will fail to run without it. If that happens, it will be caught by the existing swiftpm tests in the integration repo.

@aciidb0mb3r thats good enough for me. I just wanted to make sure that there was /something/.

Please build with following pull request:
apple/swift-llbuild#341
@swift-ci Please Build Toolchain Linux Platform

Linux Toolchain (Ubuntu 16.04)
Download Toolchain
Git Sha - 335290e39727aa141ec79890ea6b10f534b8ca64
Install command
tar zxf  swift-PR-17829-37-ubuntu16.04.tar.gz
More info


Coverity Scan flags some possible issues

Coverity Scan flags 3 issues in liblzg with may be real.  If you want, I can invite you to view the report for Squash in Coverity (detailed results are not public), where they have a handy annotated view of the source code explaining exactly how the tool arrived at the conclusion it did.  Or you could create a project for liblzg.  Two of the issues may have security implications (one of them is just a warning about dead code), so I'm not sure you want me to describe them here, though if you want I can.

Hello @nemequ - thanks for the work. I'm perfectly fine with an issue report (or if it's trivially fixed - a pull request).

Okay, the first one isn't really significant, just some dead code.  The condition at encode.c:599 will never be true (sa isn't assigned to until  line 445, and that is also the last place goto fail; is used, but only if !sa.
After looking at it closer, the second one (decode.c:217, length is derived from the input so the bounds of the loop can be controlled by the data) seems to be a false positive, as it is restricted to a table of preset values.
The third one I think requires a bit more familiarity with the code to know whether it is an issue.  Coverity sees the assignment to lldx on encode.c:292 as a byte swapping operation, so assumes it came from an untrusted source and marks it as tainted.  Then, the tainted value is used as an array offset on line 294, which means the input could control the array index used on line 294, potentially allowing it to load data from an unintended address.


Suggestion: don't set LeapBackdrop in default

I think user should opt-in to use this old style like the lightspeed. Personally it break my flow with it enabled.
And I think the previous yellow #D9B263 is better than this new red.

Agreed, will add the backdrop as an option in the configs.
Did you like it more when the bg was set to the color instead of the fg?

I went ahead and just reverted it to the old style.  Let me know if you meant something elese.

Perfect. Yeah, I prefer to have bg, easier to see but not too distracting


Zappa Init will not set up deployment configuration settings

Context

Using Python 3.6 with flask-ask on Windows 10 machine using this tutorial.
I followed the instructions on the blog and on the Readme.md, but zappa init is encountering errors.
Expected Behavior

I created a virtual enviroment, installed zappa, and typed in zappa init.
I expected for zappa to run intial set up and create a json file
Actual Behavior

I got the following message
zappa init
Oh no! An error occurred! :(

==============

Traceback (most recent call last):
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\cli.py", line 2348, in handle
    sys.exit(cli.handle())
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\cli.py", line 427, in handle
    self.init()
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\cli.py", line 1279, in init
    click.echo(click.style(u"""\nzappa\u255d\n""", fg='green', bold=True))
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\click\utils.py", line 259, in echo
    file.write(message)
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\colorama\ansitowin32.py", line 40, in write
    self.__convertor.write(text)
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\colorama\ansitowin32.py", line 141, in write
    self.write_and_convert(text)
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\colorama\ansitowin32.py", line 169, in write_and_convert
    self.write_plain_text(text, cursor, len(text))
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\colorama\ansitowin32.py", line 174, in write_plain_text
    self.wrapped.write(text[start:end])
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u255d' in position 7: character maps to <undefined>

==============

Need help? Found a bug? Let us know! :D
File bug reports on GitHub here: https://github.com/Miserlou/Zappa
And join our Slack channel here: https://slack.zappa.io
Love!,
 ~ Team Zappa!

Possible Fix

When I removed this part of the cli.py file it seemed to let me get farther.
         # Explain system.         click.echo(click.style(u"""\n███████╗ █████╗ ██████╗ ██████╗  █████╗ ╚══███╔╝██╔══██╗██╔══██╗██╔══██╗██╔══██╗   ███╔╝ ███████║██████╔╝██████╔╝███████║  ███╔╝  ██╔══██║██╔═══╝ ██╔═══╝ ██╔══██║ ███████╗██║  ██║██║     ██║     ██║  ██║ ╚══════╝╚═╝  ╚═╝╚═╝     ╚═╝     ╚═╝  ╚═╝\n""", fg='green', bold=True))
Now the error reads
==============

Traceback (most recent call last):
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\cli.py", line 2348, in handle
    sys.exit(cli.handle())
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\cli.py", line 427, in handle
    self.init()
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\cli.py", line 1379, in init
    matches = detect_flask_apps()
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\site-packages\zappa\utilities.py", line 143, in detect_flask_apps
    lines = f.readlines()
  File "c:\users\v-jamisc\.virtualenvs\alexa-color\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 301: character maps to <undefined>

==============

Need help? Found a bug? Let us know! :D
File bug reports on GitHub here: https://github.com/Miserlou/Zappa
And join our Slack channel here: https://slack.zappa.io
Love!,
 ~ Team Zappa!

Steps to Reproduce

Open gitbash on Windows 10 Machine
Create Virtual Environment with virtualenvwrapper
Go to directory of  project files
Type in workon [virtual enviroment]
Type in pip install zappa
Type in zappa init

Your Environment

Zappa version used:
0.42.0
Operating System and Python version:
Windows 10
Python 3.6
The output of pip freeze:
pip freeze
aniso8601==1.2.0
appdirs==1.4.3
argcomplete==1.8.2
asn1crypto==0.22.0
awscli==1.11.99
base58==0.2.4
boto3==1.4.4
botocore==1.5.40
certifi==2017.4.17
cffi==1.10.0
chardet==3.0.3
click==6.7
colorama==0.3.7
cryptography==1.9
docutils==0.13.1
durationpy==0.4
Flask==0.12.1
Flask-Ask==0.9.3
future==0.16.0
futures==3.1.1
hjson==2.0.2
idna==2.5
itsdangerous==0.24
Jinja2==2.9.6
jmespath==0.9.2
kappa==0.6.0
lambda-packages==0.15.0
MarkupSafe==1.0
packaging==16.8
placebo==0.8.1
pyasn1==0.2.3
pycparser==2.17
pyOpenSSL==17.0.0
pyparsing==2.2.0
python-dateutil==2.6.0
python-slugify==1.2.4
PyYAML==3.12
requests==2.17.3
rsa==3.4.2
s3transfer==0.1.10
six==1.10.0
toml==0.9.2
tqdm==4.11.2
troposphere==1.9.3
Unidecode==0.4.20
urllib3==1.21.1
Werkzeug==0.12
wsgi-request-logger==0.4.6
zappa==0.42.0

Hi!
I think this could a problem on  your operating system default encoding. It looks like it's failing to open a file inside your directory when detecting a Flask app.
We could try something:

Could you see in your text editor the file encoding? Try enforcing the repo_stats.py in UTF-8.
Inside your virtual env, could you execute this and give us the output?

python
import localte
locale.getpreferredencoding(False)

@Miserlou hey mate! I guess this is a encoding problem, do you think forcing encoding='utf-8' on the open() at statement at utilities.py:143 could prevent this kind of issue?

@jonatasbaldin - could be, this is likely a Windows-specific bug. It'd be great if we could get a Windows-using maintainer to help out things like this..

@Miserlou will try to get a Windows VM to test this. Meanwhile, if another contributor could test, I'd appreciate!

Hi, I've been following the same tutorial and I'm getting the same exact error on a Windows machine. When I executed the commands that @jonatasbaldin listed, my output was 'cp1252'. I'm not sure how to see the file encoding or how to force/enforce it. Any help would be greatly appreciated!

I'm able to avoid these errors by moving the virtual environment's directory outside of the directory where my python file is located, but then I have to move that directory back into the python code's directory in order for "zappa deploy dev" to work. I then wind up with a slew of errors when I try to do "zappa update dev"; it seems like it shouldn't be necessary to move the virtual environment directory around so much, which is why I assumed that "zappa init" and "zappa deploy dev" were the sources of my problems. Thanks for any help!

Same here:
$ zappa init
[...]
It looks like this is a Flask application.
Oh no! An error occurred! :(
==============
Traceback (most recent call last):
File "d:\develo\ping-store\ve-zappa\lib\site-packages\zappa\cli.py", line 2610, in handle
sys.exit(cli.handle())
File "d:\develo\ping-store\ve-zappa\lib\site-packages\zappa\cli.py", line 476, in handle
self.init()
File "d:\develo\ping-store\ve-zappa\lib\site-packages\zappa\cli.py", line 1604, in init
matches = detect_flask_apps()
File "d:\develo\ping-store\ve-zappa\lib\site-packages\zappa\utilities.py", line 143, in detect_flask_apps
lines = f.readlines()
File "D:\Program Files\Python-362\lib\encodings\cp1250.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 6142: character maps to
I changed utilities.py as per jonatasbaldin commented on 12 Jun.
And it worked.


Compare to VVV

Compare our Seravo Vagrant box to the develop branch of the official WordPress Vagrant box: https://github.com/Varying-Vagrant-Vagrants/VVV
If there are any developer tools, speed optimizations etc cool things, consider copying them over to our image. Note however to keep the PHP/Nginx part in parity with our production environment, there should be no surprises when developers push their sites to production.

Other commonly used Vagrant boxes are Flywheel Local and Scotchbox https://scotch.io/bar-talk/announcing-scotch-box-30-and-scotch-box-pro

And now also from WP Engine: https://wpengine.com/devkit/

Link to test report of different development environments: https://docs.google.com/document/d/1EVDPXyhG1xNtUDGuLq10a0B59z5co5Awz8LtNU2fgec/edit#
Currently Local by Flywheel is covered and DevKit by WP Engine is in progress. Might add VVV soon.

VVV seems somewhat similar to ours at least when compared to Flywheel and WP Engine. Have not tested the dev environment from 10up. Some differences based on brief testing:

VVV has no support out-of-the-box for self signed HTTPS certificates
VVV has sort of a "dashboard" starting page that includes some information regarding how to get started.

VVV has some additional tools that we don't have:

VVV has support for more extensive config.yml options. Maybe we should look into some of those options more deeply?

---

# This file is a YAML formatted file. YAML indenting is done in spaces not
# tabs, and whitespace is significant. If you don't stick to this, it will
# fail on provision

#
# IMPORTANT, if you change this file, you have to reprovision,  no exceptions
# Do this by running either this command:
# vagrant reload --provision
#
# Or, if your machine is already turned on:
# vagrant provision
#

# These are your websites, and their names map on to the folders they're
# located in. See the docs for how to define these, and what all the keys
# and options are
sites:

  # latest version of WordPress, can be used for client work and testing
  wordpress-one:
    skip_provisioning: false
    description: "A standard WP install, useful for building plugins, testing things, etc"
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
    hosts:
      - one.wordpress.test

  wordpress-two:
    skip_provisioning: false
    description: "A standard WP install, useful for building plugins, testing things, etc"
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
    hosts:
      - two.wordpress.test

  #mysite:
  #  description: "My website"
  #  repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
  #  hosts:
  #    - mysite.com

  # The wordpress-develop configuration is useful for contributing to WordPress Core.
  # It uses the built WP to serve the site
  wordpress-trunk:
    skip_provisioning: true # provisioning this one takes longer, so it's disabled by default
    description: "An svn based WP Core trunk dev setup, useful for contributor days, Trac tickets, patches"
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template-develop.git
    hosts:
      - trunk.wordpress.test

  # The following commented out site configuration will create a standard WordPress
  # site in www/example-site/ available at http://my-example-site.test.
  # Remember, whitespace is significant! Tabs and spaces mean different things
  #example-site:
  #  repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
  #  hosts:
  #    - my-example-site.test

  # The following commented out site configuration will create a environment useful
  # for contributions to the WordPress meta team, .e.g WordCamps, .org, etc:
  wordpress-meta-environment:
    skip_provisioning: true # disabled by default, this takes a long time to provision
    repo: https://github.com/WordPress/meta-environment.git

# Utilities are system level items rather than sites, that install tools or packages
# the core utilities install tools such as phpmyadmin
utilities:
  core: # The core VVV utility
    - memcached-admin # Object cache management
    - opcache-status # opcache management
    - phpmyadmin # Web based database client
    - webgrind # PHP Debugging
    - tls-ca # SSL/TLS certificates
    - mongodb # needed for Tideways/XHGui
    - tideways # PHP profiling tool, also installs xhgui
    #- php56
    #- php70
    #- php71
    #- php72
    #- php73

# vm_config controls how Vagrant provisions the virtual machine, and can be used to
# increase the memory given to VVV and the number of CPU cores.
# It can also be used to override the default provider being used within Vagrant.

vm_config:
  # For WP core development we recommend at least 2GB ( 2048 ),
  # If you have 4GB of RAM, lower this to 768MB or you may encounter issues
  memory: 2048
  # CPU cores:
  cores: 2

  # this tells VVV to use the prebuilt box copied from the USB drive at contributor days
  # once set to false, do not change back to true, and reprovision
  # wordcamp_contributor_day_box: false

  # Due to a limitation within Vagrant, the specified provider is only respected on a clean `vagrant up`
  # as Vagrant currently restricts you to one provider per machine
  # https://www.vagrantup.com/docs/providers/basic_usage.html#vagrant-up
  # provider: vmware_workstation

# General VVV options
general:
  # Backup the databases to the database/backups subfolder on halt/suspend/destroy, set to false to disable
  db_backup: true
  # Import the databases if they're missing from backups
  db_restore: true

Maybe we should direct some effort to support multisite configuration into config.yml with the aid of https://github.com/Seravo/wordpress/issues/81? I don't think that we can directly compare VVV with our Vagrant environment, because ours is only intended for serving a single site, whereas VVV seems to have support for subdomain installations for multiple sites (wordpress-one, wordpress-two etc).
Does @ottok have anything to comment about the results above? I also have created a shared Google docs document comparing also to other local environments, but not linking it here due to this being a public repo.

Other alternatives to compare to:

Docksal
Command line based, wp-cli support
docksal.io
Vagrant
Command line based. Has a WP focused conf.
vagrantup.com
Local by Flywheel
GUI, SSL
localwp.com
DesktopServer
GUI, SSL
serverpress.com

These are based on directly on docker-compose, but on a custom cli tool that creates the different files and environments, including docker-compose files: https://10up.github.io/wp-local-docker-docs/, https://lando.dev/


Async Await Support

Do python cloud functions support async and await? I can't find any examples showing this but it seems like a pretty basic feature. Am I missing it?

Figured it out.
    async def blah():
        resInfer = await dosInfer()
        return resInfer

    return asyncio.run(blah())

return asyncio.run(blah())

I think this way you loose the benefit of async, though. I mean, your code will block the instance for the whole duration of the  run()
I figure it would be nice to have actual async support, for a single instance to be able to run multiple IO bound functions in parallel, like the node version does I think.


Scala Common Enrich: add adapter to pre-process OpsGenie webhooks

https://www.opsgenie.com/docs/marid/sample-alert-action-data

Pushing back

Migrated to https://github.com/snowplow/enrich/issues/98


[Bug]: use python binding for Raspberry Pi 3 [not a supported wheel]

Issue description
Hi,
I need to use python binding of the wallet, on Raspberry Pi 3 Model B.
Using the mainnet branch.
Did I need to build the rust project then the python binding to get it works?
8Gb SD card isn't enough to build the rust project.
Any future support for Raspberry?
Version
mainnet branch
Expected behaviour
abaility to use python binding for raspberry.
Actual behaviour
$ pip install iota_wallet_python-0.2.0-cp36-abi3-linux_x86_64.whl
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: iota_wallet_python-0.2.0-cp36-abi3-linux_x86_64.whl is not a supported wheel on this platform.

Can the issue reliably be reproduced?
Yes
Steps to reproduce the issue
sudo apt-get update
sudo apt-get upgrade
sudo apt install python3-pip
wget https://nightly.link/iotaledger/wallet.rs/workflows/python_binding_publish/dev/linux-iota-wallet-py3.9-wheel.zip
unzip linux-iota-wallet-py3.9-wheel.zip
pip install iota_wallet_python-0.2.0-cp36-abi3-linux_x86_64.whl

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: iota_wallet_python-0.2.0-cp36-abi3-linux_x86_64.whl is not a supported wheel on this platform.

Errors
ERROR: iota_wallet_python-0.2.0-cp36-abi3-linux_x86_64.whl is not a supported wheel on this platform.
Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Code of Conduct

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

Hey, for Raspberry Pi you would need to build it yourself, also you should currently use the dev branch
If you need some help to build it you can join our discord, there in the Python channel https://discord.com/channels/397872799483428865/400435228923133959/846982856671625236
Someone else also tried to build iota.rs on a Raspberry Pi and the build process is basically the same

Hi,
Thank you for your response.
The python channel link is invalid for me. If you can share another link or repo related to raspberry.
I found some posts but they were for iota 1.0.
I'm using mainnet branch because I'm using a private tangle based on Hornet mainnet. That's a must for my nodejs client (https://github.com/gohornet/hornet/issues/1396#issuecomment-1090929616).
And I think that IOTA is basically for IoT. So official release should support objects like raspberry, arduino, .... But I just found linux, windows and MacOS builds.
May be a cross compilation can be added for these boards.

I saw your comment for the iota.rs, saying that @iota/client 2.1.1 works now Finished release [optimized] target(s) in 67m 22s.
https://github.com/iotaledger/iota.rs/issues/716#issuecomment-948985451
Did you just run npm install  @iota/client or build it from source code?
I guess that npm use a prebuild iota.rs or it build a new one?

I mention node client just to compare. Because both of them, python and node client, are using the rust lib.
I'm trying to build the python binding. It freezes at the end. no error message. I think 1GB of RAM is not enough.
I will try the cross compile. Or buy a new 4GB board.
I will tell you what works for me. if it works!
Thank you .


Add shields in README.md

Travis build
Vokuro docs link
Backers/sponsors

Backers/sponsors

There is commit to the master branch: https://github.com/phalcon/vokuro/commit/c95d290181a5520979b1d5e41d94420ce9d7218b#diff-04c6e90faac2675aa89e2176d2eec7d8

Implemented.


com.squareup.okhttp3 - 3.11.0 Getting quarantined by Nexus Artifactory

Hi Team
I am not expecting any specific action on this report. Logging this to help your team and the community. Three of my team members worked around 8 hours to come to this conclusion and putting it out there......
SETUP:
We are currently doing an automation project for a government client and all the Maven packages are coming via NEXUS Artifactory. It got a upstream link to Maven Central and all packages from Maven Central is scanned for known security vulnerabilities.
Issue:
As you may know Selenium Java latest and past versions marked okhttp3 - 3.11.0 as a transitive dependency and above issue is preventing us using Selenium Java for our project.
Link: https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/3.141.59 version
Why we can't change the version:
Selenium certified it's versions after unit testing and we like to request if this vulnerability can be fixed and re-deploy as same version. Also we did test latest and other versions of OKHTTP but it's not properly integrating with Selenium properly and test are failing intermittently. I know this is not a problem with OKHTTP and will report this with Selenium.
I did request the security vulnerability details from security team and once they provide it, I will post it.

Interesting. No action taken.

Maybe https://ossindex.sonatype.org/vuln/f265fef7-39d9-46b0-b42a-4e98261d93e3

https://github.com/square/okhttp/issues/4967

Thanks @yschimke I will use this info and get security to release it from Nexus. Thanks for sharing this valuable information.


feat: be able to ignore some files

Closes https://github.com/argos-ci/argos/issues/219

argos-ci/argos#219


update to use image_url

I noticed an issue with the starter theme where the og:image url being passed to facebook was returning
http:/cdn/shop/files/....

instead
http://store-name.myshopify.com/cdn/shop/files/....

This is an attempt to fix this but i am unable to test out the code.
Im also not 100% sure if the cdn url returns the domain back so this whole fix might be incorrect.
Any help is appreciated 🙏

I have signed the CLA!


Implement shortids for users and forms

We should implement shortids (see this https://www.npmjs.com/package/shortid) for mongodb _ids to make our urls shorter and easier to read.

Doing this for forms may open it up to abuse/brute force spamming attacks

Can do this with a token hash


Benchmark is not working properly?

Benchmark is not working properly? The results are not repeated, and a difference in one of the same test 10%.
`        ==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.2a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 07:20:00.618743][0x00002044]: Using SSE2: YES
[2016-10-28 07:20:00.626749][0x00002044]: Using AVX: YES
[2016-10-28 07:20:00.629743][0x00002044]: Using AVX2: NO
[2016-10-28 07:20:01.121043][0x00002044]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:20:01.384609][0x00002044]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:20:43.265854][0x00002044]: Benchmark done!
[2016-10-28 07:20:43.268938][0x00002044]: Total time : 41817 ms
[2016-10-28 07:20:43.272937][0x00002044]: Total iterations: 200
[2016-10-28 07:20:43.280030][0x00002044]: Total solutions found: 404
[2016-10-28 07:20:43.284109][0x00002044]: Speed: 4.78274 I/s
[2016-10-28 07:20:43.291110][0x00002044]: Speed: 9.66114 Sols/s
    ==================== www.nicehash.com ====================
            Equihash CPU&GPU Miner for NiceHash v0.2a
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp and xenoncat for providing
             optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[2016-10-28 07:20:50.732346][0x00000b60]: Using SSE2: YES
[2016-10-28 07:20:50.739346][0x00000b60]: Using AVX: YES
[2016-10-28 07:20:50.742347][0x00000b60]: Using AVX2: NO
[2016-10-28 07:20:51.212518][0x00000b60]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:20:51.444579][0x00000b60]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:21:33.299221][0x00000b60]: Benchmark done!
[2016-10-28 07:21:33.302722][0x00000b60]: Total time : 41789 ms
[2016-10-28 07:21:33.306229][0x00000b60]: Total iterations: 200
[2016-10-28 07:21:33.313225][0x00000b60]: Total solutions found: 431
[2016-10-28 07:21:33.316225][0x00000b60]: Speed: 4.78595 I/s
[2016-10-28 07:21:33.324297][0x00000b60]: Speed: 10.3137 Sols/s
    ==================== www.nicehash.com ====================
            Equihash CPU&GPU Miner for NiceHash v0.2a
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp and xenoncat for providing
             optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[2016-10-28 07:23:43.873359][0x0000075c]: Using SSE2: YES
[2016-10-28 07:23:43.879314][0x0000075c]: Using AVX: YES
[2016-10-28 07:23:43.883284][0x0000075c]: Using AVX2: NO
[2016-10-28 07:23:44.398684][0x0000075c]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:23:44.628754][0x0000075c]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:24:27.138714][0x0000075c]: Benchmark done!
[2016-10-28 07:24:27.141713][0x0000075c]: Total time : 42445 ms
[2016-10-28 07:24:27.145713][0x0000075c]: Total iterations: 200
[2016-10-28 07:24:27.152233][0x0000075c]: Total solutions found: 393
[2016-10-28 07:24:27.156242][0x0000075c]: Speed: 4.71198 I/s
[2016-10-28 07:24:27.163223][0x0000075c]: Speed: 9.25904 Sols/s
    ==================== www.nicehash.com ====================
            Equihash CPU&GPU Miner for NiceHash v0.2a
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp and xenoncat for providing
             optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[2016-10-28 07:24:34.429528][0x00001468]: Using SSE2: YES
[2016-10-28 07:24:34.436528][0x00001468]: Using AVX: YES
[2016-10-28 07:24:34.440454][0x00001468]: Using AVX2: NO
[2016-10-28 07:24:34.920634][0x00001468]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 960 (#0) BLOCKS=11, THREADS=224
[2016-10-28 07:24:35.091775][0x00001468]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:25:16.796577][0x00001468]: Benchmark done!
[2016-10-28 07:25:16.799576][0x00001468]: Total time : 41640 ms
[2016-10-28 07:25:16.803087][0x00001468]: Total iterations: 200
[2016-10-28 07:25:16.810188][0x00001468]: Total solutions found: 387
[2016-10-28 07:25:16.813181][0x00001468]: Speed: 4.80307 I/s
[2016-10-28 07:25:16.820112][0x00001468]: Speed: 9.29395 Sols/s
`

`        ==================== www.nicehash.com ====================
Equihash CPU&GPU Miner for NiceHash v0.2a
Thanks to Zcash developers for providing base of the code.
Special thanks to tromp and xenoncat for providing
optimized CPU and CUDA equihash solvers.
==================== www.nicehash.com ====================
Setting log level to 2
[2016-10-28 07:32:36.707031][0x0000022c]: Using SSE2: YES
[2016-10-28 07:32:36.712890][0x0000022c]: Using AVX: NO
[2016-10-28 07:32:36.716796][0x0000022c]: Using AVX2: NO
[2016-10-28 07:32:36.772460][0x0000022c]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 1080 (#0) BLOCKS=17, THREADS=240
[2016-10-28 07:32:36.979492][0x0000022c]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:32:52.549804][0x0000022c]: Benchmark done!
[2016-10-28 07:32:52.554687][0x0000022c]: Total time : 15489 ms
[2016-10-28 07:32:52.560546][0x0000022c]: Total iterations: 200
[2016-10-28 07:32:52.568359][0x0000022c]: Total solutions found: 381
[2016-10-28 07:32:52.575195][0x0000022c]: Speed: 12.9124 I/s
[2016-10-28 07:32:52.582031][0x0000022c]: Speed: 24.5981 Sols/s
    ==================== www.nicehash.com ====================
            Equihash CPU&GPU Miner for NiceHash v0.2a
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp and xenoncat for providing
             optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[2016-10-28 07:32:57.197265][0x00000b14]: Using SSE2: YES
[2016-10-28 07:32:57.204101][0x00000b14]: Using AVX: NO
[2016-10-28 07:32:57.209960][0x00000b14]: Using AVX2: NO
[2016-10-28 07:32:57.277343][0x00000b14]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 1080 (#0) BLOCKS=17, THREADS=240
[2016-10-28 07:32:57.433593][0x00000b14]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:33:12.920898][0x00000b14]: Benchmark done!
[2016-10-28 07:33:12.925781][0x00000b14]: Total time : 15406 ms
[2016-10-28 07:33:12.931640][0x00000b14]: Total iterations: 200
[2016-10-28 07:33:12.938476][0x00000b14]: Total solutions found: 376
[2016-10-28 07:33:12.944335][0x00000b14]: Speed: 12.982 I/s
[2016-10-28 07:33:12.951171][0x00000b14]: Speed: 24.4061 Sols/s
    ==================== www.nicehash.com ====================
            Equihash CPU&GPU Miner for NiceHash v0.2a
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp and xenoncat for providing
             optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[2016-10-28 07:33:18.304687][0x00000b80]: Using SSE2: YES
[2016-10-28 07:33:18.321289][0x00000b80]: Using AVX: NO
[2016-10-28 07:33:18.326171][0x00000b80]: Using AVX2: NO
[2016-10-28 07:33:18.387695][0x00000b80]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 1080 (#0) BLOCKS=17, THREADS=240
[2016-10-28 07:33:18.542968][0x00000b80]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:33:33.882812][0x00000b80]: Benchmark done!
[2016-10-28 07:33:33.886718][0x00000b80]: Total time : 15261 ms
[2016-10-28 07:33:33.893554][0x00000b80]: Total iterations: 200
[2016-10-28 07:33:33.899414][0x00000b80]: Total solutions found: 340
[2016-10-28 07:33:33.905273][0x00000b80]: Speed: 13.1053 I/s
[2016-10-28 07:33:33.912109][0x00000b80]: Speed: 22.279 Sols/s
    ==================== www.nicehash.com ====================
            Equihash CPU&GPU Miner for NiceHash v0.2a
    Thanks to Zcash developers for providing base of the code.
        Special thanks to tromp and xenoncat for providing
             optimized CPU and CUDA equihash solvers.
    ==================== www.nicehash.com ====================

Setting log level to 2
[2016-10-28 07:34:48.088867][0x000002b0]: Using SSE2: YES
[2016-10-28 07:34:48.095703][0x000002b0]: Using AVX: NO
[2016-10-28 07:34:48.110351][0x000002b0]: Using AVX2: NO
[2016-10-28 07:34:48.178710][0x000002b0]: Benchmarking CUDA worker (CUDA-TROMP) GeForce GTX 1080 (#0) BLOCKS=17, THREADS=240
[2016-10-28 07:34:48.403320][0x000002b0]: Benchmark starting... this may take several minutes, please wait...
[2016-10-28 07:35:03.849609][0x000002b0]: Benchmark done!
[2016-10-28 07:35:03.854492][0x000002b0]: Total time : 15372 ms
[2016-10-28 07:35:03.860351][0x000002b0]: Total iterations: 200
[2016-10-28 07:35:03.867187][0x000002b0]: Total solutions found: 409
[2016-10-28 07:35:03.873046][0x000002b0]: Speed: 13.0107 I/s
[2016-10-28 07:35:03.879882][0x000002b0]: Speed: 26.6068 Sols/s
`

That's expected. In the do_benchmark function the nonce is randomly generated, thus the number of solutions is different every time - in average 188 per 100 runs. For the Linux versions I change the source so that the nonces are always the same, thus generating comparable numbers.


Fix puppet download URL

Fixes puppet download URL composition logic, fixes issue #78 .

This should be resolved on master now by just switching the order of the previous set. Give it a try and feel free to open this back up if you're still having issues.


POS UI Components: Support rerendering tiles

Please list the related package(s)

<EMAIL_ADDRESS>If this related to specific APIs or components, please list them here

https://shopify.dev/docs/api/pos-extensions/ui-extensions-reference/components/tile
Is your feature request related to a problem? Please describe.

I am using a Tile with a notification count and want to refresh this notification count every 30 seconds, however, when the state of my tile component changes it does not rerender.
Describe the changes you are looking for

The pos.home.tile.render extension point should support rerendering when internal state changes, it seems like it currently does not
Describe alternatives you’ve considered

I don't think there is a workaround here. I assume that tiles may refresh on their own, but I dont know how often
Additional context

Closing, seems like its something else causing the issue


v4l2rtspserver and OBS

I have tried to get an rtsp stream from the v4l2rtspserver with obs. The communication exchange begin well but end after OBS send the DESCRIBE command. v4l2rtspserver answer with 404 Stream not found.

Hi jjsartin,
I don't know what is OBS, probably the url is not the one used by the streamer, you can modify it using option -u.
Running with -umystream will publish the stream rtsp://..../mystream
Best Regards,
Michel.

Yes, it works.
In OBS, simply add the RTSP URL:

Yes, it works.
In OBS, simply add the RTSP URL:

I can confirm that this works reliably, using a VLC source in OBS.


Crash when camera near and far clipping planes are exactly equal

Testscene:
00001.zip
To reproduce in any scene, just set the following props to the same values:
scene.camera.cliphither = 10
scene.camera.clipyon = 10

I think I got it, it's in src/luxrays/core/geometry/transform.cpp
When n == f then n / f == 1 and then 1 - 1 == 0 and then we have a division by zero.
Transform Perspective(float fov, float n, float f) {
	// Perform projective divide
	const float inv_denom = 1.f / (1.f - n / f);

Added a workaround.

Thanks, can confirm it's fixed.


episcopizing, birdseed

This pull request was generated by the 'mq' tool
[test]
flake rate: 0.4
logical conflict every: 100
sleep for: 300s
[pullrequest]
requests per hour: 30
deps=[b,e]

/trunk merge


Adding HVPA metrices to prometheus config

What this PR does / why we need it:
Adding HVPA metrices to prometheus config
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

@wyb1 could you have a look as well?

Any update? What's the status here?

How long will you need to work on it? Does it make sense to close & reopen the PR once ready?

From Slack:

@ggaurav10  14:42
hi Rafael
i pushed some changes yesterday
it should be ready for review and merge

Hence, @wyb1 can you please check again?


Added mask DAN [jailbreak] [english]

Bypass open ai restrictions English version.
Typically translation of #1731

Hi, thank you very much for your contribution, because jailbreak will lead to potential OpenAI's risk control of model attacks in the future, so we will gradually remove the relevant masks in the future


[cpp-package] Add C++ basic tutorial and build instruction

can we run some of the tutorials as CI?

@piiswrong Yes, but there are three CI systems, which one should I put the test into?

in jenkinsfile
On Tue, Apr 25, 2017 at 10:02 AM, Xin Li<EMAIL_ADDRESS>wrote:

@piiswrong https://github.com/piiswrong Yes, but there are three CI
systems, which one should I put the test into?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dmlc/mxnet/pull/5971#issuecomment-297096624, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAiudNS-VHHrlZb9PTCkiKDOdpeYz3NLks5rzicvgaJpZM4NHdjm
.


small pr

move OSC to its own file, display default values in input boxes, fixes a few things,
tbh i want to re-write most of the app at some point....

Just friggin implement it into ETVR


there is no config.js file or config folder file in the same folder(src/lib).

https://github.com/bartonhammond/snowflake/blob/c82c02f538ec06894b98220cb69b4bbcd8f8a046/src/lib/AppAuthToken.js#L15

Is it fixed? I am getting the same error

Be sure to read the instructions for the client, you need to:

Copy the src/lib/config.example.js to src/lib/config.js.


VnV Ready for Review

I just have to add Deesha to the repo too, but I'll assign her too.
One caveat is that I didn't mention any units in this document. I need to make a choice and fix my SRS first, and then I will update this document.
Another caveat is the abstract vs concrete symbols. I haven't changed them (yet) -- I will send @smiths a message about it soon!

Sounds good @balacij.

Done my review!

That was quick! Thank you @samm82 :smile:

I have done my review! You did a great job!

Thank you @DeeshaPatel! :smile:

I've done my review too.  The comments are in the attached pdf file.
plan-Fdbck.pdf

Thank you very much, @smiths :smile:


Modinv 511 create karate test for create item inside holding & instance

This is perhaps not related, but that UUID is hardcoded into the code base as well:
Here is the definition:
https://github.com/folio-org/mod-inventory/blob/b19e310fcfac0008cd0d3eb3b73238e8eafd30c3/src/main/java/org/folio/inventory/dataimport/handlers/actions/CreateHoldingEventHandler.java#L61

@fontanka16

This is perhaps not related, but that UUID is hardcoded into the code base as well

This is an important observation.
Unfortunately, when we decide to associate behaviour with a specific value we have to have a way to refer to that. Both the ID and the name have trade offs depending upon how hosting providers manage the reference data.
FOLIO could intermediate this by having configuration for identifying which source record refers to the special FOLIO  source. That opens up a set of different trade offs e.g. how the system should behaviour when the configuration hasn't been set or if the record is removed later.


User Reporting for Manual Moderation feature

Potential tech stack:

RabbitMQ or similar tool for message queue
Email automation: https://resend.com/

Maybe make some kind of "admin panel" for reviewing reports

Needs "admin" user role which we need to define in MongoDB etc

I am working on this issue though I do not have repository access so It is currently on a forked branch that can be found here


[move-prover] Added some "emits" specs to the Diem Framework

This PR adds the emits spec for the following functions which "directly" emit events (i.e., call Event::emit_event):

AccountFreezing::freeze_account
AccountFreezing::unfreeze_account
DualAttestation::rotate_compliance_public_key
DualAttestation::rotate_base_url
DiemAccount::withdraw_from
DiemAccount::deposit
DiemAccount::writeset_epilogue
DiemAccount::make_account
DiemBlock::block_prologue
Diem::preburn_with_resource
Diem::burn_with_resource_cap
Diem::cancel_burn_with_capability
DiemConfig::emit_genesis_reconfiguration_event

The following functions were specified in the previous PR:

Diem::mint_with_capability
Diem::update_xdx_exchange_rate

TODO: The following functions will be specified in an other PR later.

DesignatedDealer::tiered_mint (calling an opaque function that emits another event)
DiemConfig::reconfigure_ (having a too complex condition)

TODO: Specify the transaction scripts, and improve the method for checking "emits" spec (e.g, supporting the strictness checking, handling opaque function).
Motivation
To specify and verify the event-emitting behavior of the Diem Framework
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
cargo test

/land


Do not embed MediatR

MediatR is strong-name signed nowadays, no need to embed and strong-name signed anymore.
// cc @NTaylorMullen and @TylerLeonhardt would this break for any of you? It's basically a couple of more DLLs to ship with the extension, but nothing more.

Yes it would require a small change on my part but thanks for the heads up!

Let me know when I should expect my stuff to start breaking!


Fix Phone Number Regex

Closes #196
Make it become more restrictive that phone numbers should start with 6, 8, or 9 and be 3 or 8 digits long. eg: 911, 81754211

This is not allowed for v1.4

This shall be planned enhancements in DG


Implement macros

I do have macro code from my old (uhm, 1987-ish) assembler, will look for it.

Implemented in #ac56486.


ESRI ArcGIS tile provider

In notebooks/07_Geographic_Data.ipynb The ESRI URL should have Y before X. Here's the correct URL.
'https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{Z}/{Y}/{X}.jpg'

That explains it!  I had noticed an issue while giving the tutorial, but forgot to get back to it after the tutorial completed. Thanks!


Nixify project [2]

This should be a less invasive version of #22 , namely it preserves babel.

Ty!

just checked with nix-shell --pure on both macOS and Linux and it worked. Merging.


change text of Dashboard

At the present, the Dashboard displays the contents of the README.  It's a good starting point but we need a new document for the Dashboard as the user is a different stage in the journey.
Going through the e2e experience, the new text should cover the following:

Welcome message
Introduction of AI Lab
Key features and how to get started
Guiding the user into opening the Recipes Catalog (entry point for new users)

Cc: @slemeur

I'll give it a shot, so have an improved version before the 0.3.0 release.  It won't be perfect but something we can iterate on.  I've no idea how to have links to other menus (e.g., to the Recipe Catalog) but that's something we can worry about later on.

-> https://github.com/projectatomic/ai-studio/pull/639

I consider this done by https://github.com/projectatomic/ai-studio/pull/639, closing.


template: Update bug template to include os version

Creating a place for Operating System when opening a bug so it doesn't need to be asked.
Also makes figuring out which OS has the most issues.

Sorry about the repeated change requests, but because OS version is not required, could we move it below the required fields?

Of course!! Moved as per your recommendation.


SAA-1261: Change endpoint for fetching non-associations from prison API to Non-associations API

Codecov Report
Attention: 11 lines in your changes are missing coverage. Please review.

Files
Coverage Δ

...onsapi/api/extensions/PrisonerNonAssociationExt.kt
100.00% <100.00%> (ø)

...agementapi/client/prisonapi/api/PrisonApiClient.kt
88.53% <ø> (+3.25%)
:arrow_up:

...tiesmanagementapi/config/WebClientConfiguration.kt
64.36% <100.00%> (+3.11%)
:arrow_up:

...activitiesmanagementapi/util/TransformFunctions.kt
79.02% <ø> (-1.15%)
:arrow_down:

...tivitiesmanagementapi/service/CandidatesService.kt
75.00% <80.00%> (+1.98%)
:arrow_up:

...uitability/nonassociation/NonAssociationDetails.kt
53.84% <50.00%> (+1.46%)
:arrow_up:

...suitability/nonassociation/OtherPrisonerDetails.kt
72.72% <72.72%> (ø)

...nonassociationsapi/api/NonAssociationsApiClient.kt
28.57% <28.57%> (ø)

:loudspeaker: Thoughts on this report? Let us know!.


Storage: How to I set and retreive object metadata?

Should I be able to add arbitrary key/value pairs to a storage object's metadata? If so, 1) Am I setting it properly?, and 2) How do I access the metadata?
$object = $bucket->upload(
  file_get_contents('/path/to/myfile.png'),
  [
    'name' => 'myfile.png',
    'metadata' => [
      'foo' => 'bar',
    ]
  ]
);

// Based on code comments, I expected `foo` to be available here, but it is not.
print_r($object->info());

Hey there @mikemilano 👋 ,
Arbitrary metadata can be set like so:
$object = $bucket->upload(
    file_get_contents('/path/to/myfile.png'),
    [
        'name' => 'myfile.png',
        'metadata' => [
            'metadata' => [
                'foo' => 'bar',
            ]
        ]
    ]
);

The redundancy of the metadata key here can be a bit confusing, sorry about that!
As for access of the data:
$metadata = $object->info()['metadata'];

@dwsupplee Confirmed, this worked. Thank you!