why tensorflow run slow in loop

I just run many times of sess.run in loop like this:
input1 = tf.placeholder(tf.float32)
input2 = tf.placeholder(tf.float32)
sess = tf.Session()
for image_num in range(128):
  image_result_table=np.zeros((96,32),dtype=np.float32)
  for sub_num in range(96):
      for centroids_num in range(32):
       vector_a = local3_value[image_num,sub_num*4:(sub_num+1)*4]
       vector_b = centroids[sub_num,centroids_num]
       mat_result = tf.mul(input1, input2)
           reduce_sum = tf.reduce_sum(mat_result)
       result =sess.run(reduce_sum,feed_dict={input1:vector_a, input2:vector_b})
           print(result)

at first ,it run fast. howerver, it become slower and slower. It takes almost an hour to get the whole result.

For future issues, please use Markdown to format the code.  For this one, I edited it to indent by four spaces to preserve indentation.

Your code snippet is incomplete, since you haven't shown us the definition of local3_value and centroids.  There are also some strange bits, such as allocating image_result_table but never using it.

@girving: the problem here is that the program is constantly adding more nodes to the graph because it is mixing graph construction with graph execution.

Ah, right, forgot about our quadratic time behavior.  @MisayaZ: Move the mat_result and reduce_sum definitions outside the loops and you should be fine.

Thanks

Hi @girving , when I run this code, the result shows that it just need 0.0273 second in the first epoch while 0.1528 second in the 200th epoch, and I don't know what is wrong with my code
`import tensorflow as tf
import numpy as np
import time
delta = np.random.uniform(size=(500, 500))
weight = tf.Variable(tf.truncated_normal([500, 500]))
x = tf.placeholder('float')
sess = tf.Session()
sess.run(tf.initialize_all_variables())
for epoch in range(200):
t = time.time()
for batch in range(10):
update = weight.assign_add(x)
sess.run(update, feed_dict={x: delta})
print 'epoch %s done, time used %s' % (epoch, time.time()-t)`
Sorry for my bad english :D

@hit-suit   "the program is constantly adding more nodes to the graph". I think this is the problem.

@MisayaZ @girving I have similar problem, the network is running slower and slower, and take up all the memory of my CPU, not GPU. So I was wondering if there is some convenient tool to check the graph, so I can know which nodes I am constantly adding to the graph? Thanks.

Hi Tensorflowers!
I am experiencing the same slow down issue by looping over sessions. In each loop I attempt to set a different seed for kernel initializer in tf.layes.dense , and I believe that "the program is constantly adding more nodes to the graph" causes this problem. In the following snipped I do my best to show how my program is structured. I set a global seed, and then generate a set of seeds in order to initialize my kernels differently in each run (or chain). The reason I am doing this is because I want to have independent trainings, and reproducible results. I was wondering if there is any way around to set the seed for the kernel initilizers without creating multiple nodes? At this point, I really appreciate any form of comments or help.
        global_seed = 1234
        np.random.seed(global_seed)
        seeds = np.random.randint(0,<PHONE_NUMBER>, size=nchain)
        for ii in range(nchain): # loop over different runs/chains
            tf.set_random_seed(seeds[ii]) # set the seed
            # set up the model x [input] -> y [output] with two hidden layers
            x   = tf.placeholder(tf.float32, [None, nfeature])
            # nfeature, Units, scale are number of features, number of units on each hidden layer
            # and regularization scale, respectively
            kernel_init0 = tf.random_normal_initializer(stddev=np.sqrt(1./(nfeature+1)), seed=seeds[ii])
            kernel_init1 = tf.random_normal_initializer(stddev=np.sqrt(2./(Units[0]+1)), seed=seeds[ii])
            kernel_init  = tf.random_normal_initializer(stddev=np.sqrt(2./(Units[1]+1)), seed=seeds[ii])
            y0 = tf.layers.dense(x,  units=Units[0], activation=tf.nn.relu, kernel_initializer=kernel_init0,
                                    kernel_regularizer= tf.contrib.layers.l2_regularizer(scale=scale))
            y1 = tf.layers.dense(y0, units=Units[1], activation=tf.nn.relu, kernel_initializer=kernel_init1,
                                    kernel_regularizer= tf.contrib.layers.l2_regularizer(scale=scale))
            y  = tf.layers.dense(y1, units=1,   activation=None,  kernel_initializer=kernel_init,
                                    kernel_regularizer= tf.contrib.layers.l2_regularizer(scale=scale))
            # placeholders for the input errorbar and label
            y_  = tf.placeholder(tf.float32, [None, 1])
            w   = tf.placeholder(tf.float32, [None, 1])

            #
            # objective function plus regularization term
            mse = tf.losses.mean_squared_error(y_, y, weights=w)
            l2_loss = tf.losses.get_regularization_loss()
            mse += l2_loss
            #
            global_step = tf.Variable(0, name='global_step', trainable=False)
            optimizer   = tf.train.AdamOptimizer(learning_rate)
            train_step  = optimizer.minimize(mse, global_step=global_step)
            #
            # initialize the NN
            sess = tf.InteractiveSession()
            tf.global_variables_initializer().run()
            for epoch in range(number_of_epoch): # loop on training epochs
                # do training ...
            # evaluate something on test data
            sess.close()


Geolocator is not supporting in gradle 3.5.0

Geolocator is not supporting on gradle 3.5.0 or any specified version should be used?
getting error as  "The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.10 and higher.
The following dependencies do not satisfy the required version:
project ':google_api_availability' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.0"
kotlinversion = '1.3.50'
gradle:3.5.0
geolocator: '^2.1.1'
Platform:

[ ] :iphone: iOS
[ ] :robot: Android

This issue will be solved in version 6.0.0 (version 6.0.0-rc.4 is out now if you want to verify).


fix-#220: Fixed Heights of All Post Section's cards

Summary
Fixed the different height issues of All post sections.
Description
The cards had different heights, causing inconsistency in the design. So added a Text Truncation (...) property on overflow on the Category Pill and sliced the category array into just  first 3 pills, so that it will stay in one line and won't grow to the next line to increase the size of the card.
Images

Issue(s) Addressed
Closes #220
Prerequisites

[x] Have you followed all the CONTRIBUTING GUIDELINES?

@krishnaacharyaa Sorry, I had to close the old PR, cuz I had to delete that branch. I hope that it's fine 😇

@krishnaacharyaa sorry to bother u. My contribution has not been reflected in GSSOC Leaderboard, missing

my name as Assigness in the PR
labels on PR {gssoc and level1}

Would you be kind enough to add these so that my work would be reflected on the LeaderBoard? Thank You  😇


Default .md live preview

I think the default markdown live preview in VS Code should be styled the same way as in Github.

You can already tune it with extensions e.g. https://marketplace.visualstudio.com/items?itemName=bierner.github-markdown-preview
IMHO GH has specific features that doesn't make sense in core
/assign mjbvz


add websocket support

add support for websocket through fastify-websocket

feature released from version 0.2.1


Non Antlers use

How would one go about using this plugin in a non Antlers context? I would like to use this with a React front end.

Hi!
This addon is primarily designed for use in Statamic projects with Antlers and Blade templates. If you want to use it with React in a Statamic project, you should create an API endpoint to expose the addon's data and then fetch this data in your React components.
Unfortunately, you can't use this addon in a pure Laravel project because it relies on Statamic's Glide methods to generate images. These methods are specific to Statamic and are not available in a standard Laravel setup.
In the near future, I plan to extend this addon's functionality to be compatible with Laravel projects.


npx react-native run-ios and npx react-native run-android failed to compile

After launching the iphone simulator and spinning the Building app... for few minutes
I got this error at the end:
The following build commands failed:
CompileC /Users/aitassouabdelkader/Library/Developer/Xcode/DerivedData/testApp-bcxbxzasgqtpznfdifpglceihhbg/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Flipper.build/Objects-normal/x86_64/FlipperRSocketResponder.o /Users/aitassouabdelkader/Downloads/_clever-programmer/_projects/_react_projects/_mes_projets/testApp/ios/Pods/Flipper/xplat/Flipper/FlipperRSocketResponder.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Here is a a complete log :
0 verbose cli [
0 verbose cli   '/usr/local/bin/node',
0 verbose cli   '/usr/local/lib/node_modules/npm/bin/npm-cli.js',
0 verbose cli   'exec',
0 verbose cli   '--',
0 verbose cli   'react-native',
0 verbose cli   'run-ios'
0 verbose cli ]
1 info using<EMAIL_ADDRESS>2 info using<EMAIL_ADDRESS>3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/Users/aitassouabdelkader/Downloads/_clever-programmer/_projects/_react_projects/_mes_projets/socialMedia/.npmrc Completed in 1ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/Users/aitassouabdelkader/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 9ms
19 verbose npm-session f851aed9bb473f1b
20 timing npm:load Completed in 18ms
21 timing command:exec Completed in 15519ms
22 verbose stack Error: command failed
22 verbose stack     at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
22 verbose stack     at ChildProcess.emit (events.js:315:20)
22 verbose stack     at maybeClose (internal/child_process.js:1048:16)
22 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
23 verbose pkgid<EMAIL_ADDRESS>24 verbose cwd /Users/aitassouabdelkader/Downloads/_clever-programmer/_projects/_react_projects/_mes_projets/socialMedia
25 verbose Darwin 20.3.0
26 verbose argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "exec" "--" "react-native" "run-ios"
27 verbose node v14.15.4
28 verbose npm  v7.5.2
29 error code 1
30 error path /Users/aitassouabdelkader/Downloads/_clever-programmer/_projects/_react_projects/_mes_projets/socialMedia
31 error command failed
32 error command sh -c react-native "run-ios"
33 verbose exit 1
I tried many things like checking if npm is up to date, removed node_modules, npm install and cd ios pod install
cleared the cache... all failed
Please help and thank you

I had the same problem

 npx react-native init AwesomeProject --version 0.62.0 Working for me
Look here: https://stackoverflow.com/questions/66062663/react-native-npx-react-native-run-ios-doesnt-work-after-initializing-the-proj

I have just created a new project using npx react-native init AwesomeProject and have this issue

I have just created a new project using npx react-native init AwesomeProject and have this issue

hi,Please specify the react-native version as 0.62.0

npx react-native init AwesomeProject --version 0.62.0 Working for me
Look here: https://stackoverflow.com/questions/66062663/react-native-npx-react-native-run-ios-doesnt-work-after-initializing-the-proj

It works for me! Thanks.

No need to downgrade to 0.62.0 version. Check the solution at https://stackoverflow.com/a/66130332/3574669


percent character no longer supported

I get a new exception when trying to execute a query that uses the character %. It doesn't happen with 1.0.8 or 1.0.9 but does with 1.1.0 :
$ pip freeze|grep PyAthenaJDBC
PyAthenaJDBC==1.1.0

Exception when trying to execute query sql_with_percent
Traceback (most recent call last):
  File "test.py", line 97, in <module>
    raise e
ValueError: unsupported format character 'p' (0x70) at index 457

If % character is included in the query, it must be escaped with %%.
The error occurs in 1.1.0 because it was necessary to change to the old Python string format with SQLAlchemy support.

oh okay ... I have to change my code then :(
Thanks @laughingman7743


[FEATURE] add the ability to add and switch checker and remediation using external tools

the current code  makes it own assessment if there are secrets. and then try to remedy them.
There are external solutions for that.
I need to be able to add such external sdk/toolkit and then choose between the hards coded internal wa y and an exetrnal tool

used workspace to address this one


Release 0.12.0

@rultor release it; the tag is 0.12.0.

@rultor release it; the tag is 0.12.0.

@rafamizes OK, I will release it now. Please check the progress here

@rultor release it; the tag is 0.12.0.

@rafamizes Done! FYI, the full log is here (took me 2min)


Allow checkbox caption to wrap

The first checkbox in the Settings window is in a StackPanel which prevents the caption text from wrapping. Fixed by removing the StackPanel

Looks good, works well


Add DensityStyle property in Fluent Theme provider

What does the pull request do?
Add DensityStyle property to the fluent theme. Available values are Normal and Compact.
<Application.Styles>
        <FluentTheme Mode="Light" DensityStyle="Compact" />
</Application.Styles>

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

[ ] Added unit tests (if possible)?
[ ] Added XML documentation to any related classes?
[ ] Consider submitting a PR to https://github.com/AvaloniaUI/Documentation with user documentation

Breaking changes

Obsoletions / Deprecations

Fixed issues
Fixes #5321

You can test this PR using the following package version. 0.10.999-cibuild0018245-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 0.10.999-cibuild0018306-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]

You can test this PR using the following package version. 0.10.999-cibuild0018313-beta. (feed url: https://nuget.avaloniaui.net/repository/avalonia-all/index.json) [PRBUILDID]


runtime/src/enclave_rpc: Support insecure key manager RPC requests

Create a new simpler, session-less, RPC request/response protocol to be used when dealing with public keys.

You know, looking over this, it occurs to me that while the primary reason why our domain separated ed25519 is non-standard is because of Ledger etc.  There are places where such concerns are irrelevant so we could use ed25519ctx (or sr25519 for that matter).
Probably not for this PR but something to consider in the long term maybe.

After discussion we had last week I'm splitting this PR into two parts. In the first part only support for insecure RPC calls will be added. The latter will be used in the second part to make public key requests and to verify signatures.
Tested locally:

If request for private key uses an insecure call, an error is returned.

level=error ts=2022-12-13T10:20:16.576441842Z caller=root.go:434 module=test-runner msg="failed to run scenario" err="root: failed to run scenario: failed to decrypt ciphertext: failed to submit decrypt tx to runtime: runtime tx failed: private ephemeral key not available: call failed: method call is not secure: \"get_or_create_ephemeral_keys\"" scenario=e2e/runtime/keymanager-key-generation run_id=0

If request for public key uses an insecure or secure call, things work (insecure call should not be used as the signature is not verified; will be done in another PR).
If the key manager client and the key manager are not upgraded, the default channel is a secure one.


[Core] Reorganized the CMake build files.

This patch fixed some of the issues in CMake build config and related
files, which includes:

Renamed the project as "WeexCore", also renamed the corresponding
libraries as libweexcore and libweexipc, which better described
the project current status.
Splitted the source files into COMMON_SRCS which are platform
irrelevant, as well as ANDROID_SRCS which are platform relevant.
Removed some unnecessary includes and links.

@zshshr @YorkShen PTAL, thanks


Fixed 'approval_prompt' in ext. provider example

I believe this is a typo that prevented logging in with Google from working.

According to the API docs neither an approvalprompt nor an approval_prompt argument exist for that method...

However, approval_prompt is a valid request parameter for the Google API. The javascript library just parses the json parameters and forms the URL.

Ah, I see. Thanks!

Thanks! In fact, I probably should also have removed the extraneous quotation marks around the parameter name, but that's not important enough for another pull request :)

No, please go ahead and open a new one - also the little things matter.

Will do then when I get off mobile.


Improve usWeightClass check

Observed behaviour
https://github.com/uswds/public-sans/issues/119#issuecomment-550125986
Expected behaviour
If checking a static font that is TTF, not CFF, then the usWeightClass check can be changed to accept and prefer 100 and 200 for Thin and ExtraLight styles' OS/2 table usWeightClass values, and WARN that values of 250 or 275 are deprecated.
But, if checking a TTF variable font, the usWeightClass check should FAIL on 250 and 275 for Thin and ExtraLight styles' OS/2 table usWeightClass values. That way the wght axis values and the OS/2 values will match up.

Hey Felipe, can you take care of this one quickly? It fails on a VF with ExtraLight as 200.


Creating a new Overlay Data Asset, it is not possible to set the Size of Textures Channels to insert textures

Describe the bug
Creating a new Overlay Data Asset, setup the Material but it is not possible to set the texture channels to 2 to insert textures.
Environment (please complete the following information):

Unity Version: 2022.3.18f1
UMA Version: 2.13 alpha 4
Rendering Pipeline: standard/none
Platform Build (if not editor):

To Reproduce
Steps to reproduce the behavior:

Create a new Overlay Data Asset
Add some Material
Textures Channels -> Size -> insert some value e.g. 2, hit enter
Error 1:  Retrieving array element that was out of bounds
UnityEditor.SerializedProperty:GetArrayElementAtIndex (int)
Error 2: NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUILayout.IsChildrenIncluded (UnityEditor.SerializedProperty prop) (at <8e887700cd7e4674989da7b046e8eaa6>:0)

Fixed in Feature-13 branch


docs: fix path in lazy-load translations

🔗 Linked issue
Resolves: #3213
❓ Type of change

[x] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[ ] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
[ ] ⚠ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description
The default langDir is locales under i18n.
The documentation of lazy-loading have incorrect paths. This PR fixes it.
📝 Checklist

[x] I have linked an issue or discussion.
[ ] I have added tests (if possible).
[x] I have updated the documentation accordingly.

Good catch, thanks!


Procedural dynamic sky

As a creator I want to be able to create a sky based on atmospheric scattering parameters and a single light source (sun). It should be usable as background and environment light source.
Reference<EMAIL_ADDRESS>Sky.html

Hey team! Please add your planning poker estimate with ZenHub @Kryptos-FR @satendrapalsingh @sinkingsugar


ADAM_32bit optimizer with PPO trainer

Hello
How do I use  ADAM_32bit
https://github.com/huggingface/transformers/blob/main/src/transformers/training_args.py#L139-L157
with the PPO Trainer (TRL)?
I know I can specify optimizer by:
optimizer = Adafactor(
    filter(lambda p: p.requires_grad, model.parameters()),
    scale_parameter=False,
    relative_step=False,
    warmup_init=False,
    lr=config.learning_rate,
)

How do I do it with ADAM_32bit?

Which optimizer class are you referring to with ADAM_32bit? As long as the optimizer is a torch optimizer it should be fine.


Handle missing parameters gracefully

Using pasopa -unpack outputs the error:
Unhandled exception. System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at PASopa.Program.Main(String[] args) in C:\repos\PASopa\PowerApps-Language-Tooling\src\PASopa\Program.cs:line 51

Expected output:
A required argument -unpack is missing.

Usage:
-unpack PathToApp.msapp PathToNewSourceFolder
-unpack PathToApp.msapp  // infers source folder

Since this will eventually make its way into SolutionPackager - maybe this isn't a priority?!

Right - pasopa is just a test harness, the way this will ship is via PowerApps CLI  and Solution Packager.

Right - pasopa is just a test harness, the way this will ship is via PowerApps CLI  and Solution Packager.

Can't hurt to clean it up, added a PR to check args count.

Can't hurt to clean it up, added a PR to check args count.


Add Openstack support

Description
Add support for Openstack API by creating a new openstack provider.
This first implementation supports username/password authentication with a tenant name. It will display all floating ips defined for all Openstack Instances.
See https://github.com/projectdiscovery/cloudlist/issues/258

@S0obi , resolve merge conflicts and
go mod tidy

Hey @tarunKoyalwar, I rebased on dev and executed go mod tidy

Thanks @S0obi , I will approve this once tests are successful

@tarunKoyalwar I justed added missing documentation for tenant_name parameter. Sorry for that :)

@S0obi  , no worries


Kernarg preloading

Test out the feature for now.

Why precheckin and extended test failed?
Is it related to your change?

Can we have some some test cases under precheckin or extended to verify this feature?

Can we have some some test cases under precheckin or extended to verify this feature?

This is on by default when supported.  But I think it's a good idea to add an explicit test.

Still some fails in CI tests.
Looks like different from known issues.
Please check the fails.

I am not sure why .args: section is same between PreloadKernelArguments=0 and 1.
Don't we need to change it for PreloadKernelArguments = 1?

Further optimization ideas:

Move local read address code after prefetch global read
Undef AddressC and D after they are used (not sure if this actually makes difference or not...)

Maybe we can implement them after merging this version first.
(I can take over optimization part)

I am not sure why .args: section is same between PreloadKernelArguments=0 and 1. Don't we need to change it for PreloadKernelArguments = 1?

I don't think it affects anything but I fixed it.

Still some fails in 90a extended.
Do we need to modify custom kernel?
ck tests are failing.


ListView does not render rows until scroll (iOS only)

This issue describes the problem:
https://react-native.canny.io/feature-requests/p/listview-doesnt-render-rows-until-scroll
Does anyone have similar issue?

I have the same issue. I used https://github.com/react-community/react-navigation/issues/1238#issuecomment-297213802 for some of my other ListViews but not sure how to use it here. Did you find a fix?

Thanks for this! When landed, this PR will allow you to pass this prop:
https://github.com/tableflip/react-native-select-multiple/pull/14

You can now use the listViewProps prop to pass this to the list view
https://github.com/tableflip/react-native-select-multiple#properties

Use removeClippedSubviews={false} ,then it will work


ML RandomForestRegression

This is project for house price prediction using machine learning model using Random Forest Regression.

mantappp


Dynamic channel names

newCommentsChannel: {
   filter: comment => comment.repository_name === args.repoFullName,
},

Hi, I was wondering about the snippet above, would it scale to a large number of subscriptions? Since each subscription is doing a filter check, that would be o(n). Alternatively, is there a way to declare that variable upfront, for example newComments_${postId} as the channel name. Currently, the setupFunctions method seems to be mapping each distinct channel. A way to use a pattern would be helpful. Would love to understand more about optimizing subscriptions. Cheers :)

Hey @khankuan
Check out my apollo blog post especially relevant is the last part about dynamic channel names.

Nice! Did not realize there is a followup post. Thanks! :)

I'll close it then. Reopen if something else comes up, or rather open an issue on graphql-redis-subscriptions.

@davidyaha Thanks for the tip! It is very helpful :) I thought the setup with triggerTransform and channelOptions might be a little confusing, needing to setup in 2 places. The path specified could also be error-prone where another dev might call it scope or entity.
What do you think of something like:
setupFunctions: {
  commentsAdded: (options, {repoName}) => ({
    'comments.added': {
      filter: comment  => repoName === comment.repoName, // optional filter, defaults to null
      transform: (name) => `${name}.${repoName}`, // optional, defaults to `${name}`
    },
  }),
},

I felt that it eliminates the need for an extra layer in triggerTransform and the developer has full control and clarity over what is the channel of interest.

So actually channelOptions is a simple object so that the implementing PubSub Engine could use it in whatever way it would like. This trigger transform that makes sense for redis might not make sense for postgresql engine.
And path variable on the redis example could be whatever you want, as long as you use that property on the transformTrigger function.
This is all non opinionated implementation in the spirit of apollo as a project.
I think the next step would be to create a bundling package that has certain triggers for common use cases like create, update, delete operations on each __typename or something of this sort.

Hmm, would it be more flexible if we simply let the pubsub engine define the variable, eg:
  setupFunctions: {
    commentAdded: (options, { repoName }) => ([{
        channel: 'newCommentsChannel',
        filter: comment => comment.repository_name === args.repoFullName,
    }, {
        channel: { domain: 'posts', event: 'newComments' },
        filter: comment => comment.repository_name === args.repoFullName,
    },  {
        channel: repoName => `newComments.${repoName}`,
    }]),
  },


Add --name-prefix option

When specified, prefix environment name, profiles names, workers names,
and reference to profile names in scripts arguments with the specified
prefix. Prefixing the environment name and worker names is not required
but it creates more consistent logs.
This allows running multiple environment with the same profile names
(e.g. dr1) at the same time.
Templates names are not prefixed since they are not used in runtime.
We do a detailed test with embedded test yaml in envfile_test.py. The
actual environments have only basic test ensuring that loading with name
prefix does not raise.
Fixes: #637

Running 2 regional-dr envs on 64g vms with 8 cores:
$ minikube profile list
|----------|-----------|------------|-----------------|------|---------|---------|-------|--------|
| Profile  | VM Driver |  Runtime   |       IP        | Port | Version | Status  | Nodes | Active |
|----------|-----------|------------|-----------------|------|---------|---------|-------|--------|
| env1-dr1 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env1-dr2 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env1-hub | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env2-dr1 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env2-dr2 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env2-hub | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
|----------|-----------|------------|-----------------|------|---------|---------|-------|--------|

Needs to update after #647 was merged.

Rebased and fix the test for current worker naming.

Running 7 instances of regional dr on a bigger server:
$ minikube profile list
|----------|-----------|------------|-----------------|------|---------|---------|-------|--------|
| Profile  | VM Driver |  Runtime   |       IP        | Port | Version | Status  | Nodes | Active |
|----------|-----------|------------|-----------------|------|---------|---------|-------|--------|
| env1-dr1 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env1-dr2 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env1-hub | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env2-dr1 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env2-dr2 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env2-hub | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env3-dr1 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env3-dr2 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env3-hub | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env4-dr1 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env4-dr2 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env4-hub | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env5-dr1 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env5-dr2 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env5-hub | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env6-dr1 | kvm2      | containerd | <IP_ADDRESS>   | 8443 | v1.25.3 | Running |     1 |        |
| env6-dr2 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env6-hub | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env7-dr1 | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
| env7-dr2 | kvm2      | containerd | <IP_ADDRESS> | 8443 | v1.25.3 | Running |     1 |        |
| env7-hub | kvm2      | containerd | <IP_ADDRESS>  | 8443 | v1.25.3 | Running |     1 |        |
|----------|-----------|------------|-----------------|------|---------|---------|-------|--------|


Editor: Turn off cursor position showing on a slider

Editor has a feature that shows current cursor position. It is located on a slider on the right side of the screen. I personally don't like how it looks so I would like to have an option to disable this function.

I am sorry if this feature already exists, but I didn't find it. If it does please provide me with information how to turn it off.
Thank you.

Cursor position (horizontal line) can be hidden with "editor.hideCursorInOverviewRuler": true.
Is it what you were looking for?
Just in case vertical bar is from "editor.selectionHighlight": true - highlights text similar to selection across editor and shows them in overview ruler. If turned off - no vertical bars in ruler, but also no selections in editor.

See comment above.


switch to vendoring golang-1-linux from bosh-packages/golang-release

https://github.com/bosh-packages/golang-release and http://bosh.io/docs/package-vendoring/#vendor has some more info.

It is our understanding that, currently, the only advantage to this switch (given that we have already solved packaging golang for ourselves) would be that it might be easier to update our dependency in the future, especially in CI.
Is this correct, or are there other benefits?

we did this


Update ovos-utils and ovos-workshop to latest alpha versions

needs to solve #342

I think this can be merged as #342 seems closed.


Fix small issue, more params for RANDOMCHILDOF and new smartblock command FIRSTCHILDOFMENTION

@mdroidian @dvargas92495
Video explaining this PR: https://www.loom.com/share/8289de7d9d4c4439b6295f26a7c31c21

fix recursion bug for smartblocks which accept levelsIncluded param

Output:: https://github.com/RoamJS/smartblocks/commit/ae1b2e75e76e7051081b74a80411efa84bbf7892

add params levelsIncluded, format and optional filter values i.e. search in SB RANDOMCHILDOF

that SB should maybe be named RANDOMCHILDOFMENTION but IDK if we can change that
Output:: https://github.com/RoamJS/smartblocks/commit/fadb3d8d14a3dfe0eddbf546286ff437765f6eda

add FIRSTCHILDOFMENTION smart block

Output:: https://github.com/RoamJS/smartblocks/commit/d0e6e555d6852132c5a92f9da36ade9551984771

Video: New SmartBlocks Features demo using "One article a day" workflow: https://www.loom.com/share/72b75508e86c45da93d645902736d49a
(which uses the changes from this PR)

@dvargas92495 thanks!
Do you have any thoughts regarding the possibility of renaming RANDOMCHILDOF to be something like RANDOMCHILDOFMENTION? Do you think it's a clearer name? Also do you have a way to deprecate older smartblocks (while still allowing them)? If yes, we could deprecate that, and mention in the documentation of RANDOMCHILDOFMENTION that it was previously RANDOMCHILDOF?

Yea the rename makes sense to me. The way we would likely deprecate is to have the callback of the latter referenced in both places. We don't really have a deprecation pattern yet - I'll leave up to @mdroidian to design

Merged here: https://github.com/RoamJS/smartblocks/pull/125


warnseconds: command not found

steam@arkfrancepve:/root$ arkmanager useconfig ragna restart --warn
Running command 'restart' for instance 'ragna'
/usr/local/bin/arkmanager: line 1596: warnseconds: command not found

arkwarnminutes="1"
When it set to 1 min, it says that the server will reboot in 120 sec instead of 60 sec
any clue ?
Thanks

There was an error in the 1 minute -> 60 second case.  This has now been fixed in master.

Thanks for this, can you have a look into : https://github.com/FezVrasta/ark-server-tools/issues/852
Thanks


Don't Merge! PR real time test for webhook case

Docs Build status updates of commit cc9d6d9:
:clock10: Pending: waiting for processors (20 builds ahead of you)
:warning: Docs Build is busy, currently there are 20 builds ahead of this one, for more information you can view the Build queue graph on the Docs Portal.

Docs Build status updates of commit cc9d6d9:
:clock10: Full build: the average full build time is 7 min(s) 46 sec(s), this is based on the last 30 build(s) for this repository.

Docs Build status updates of commit cc9d6d9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-conceptual/testing.md
:white_check_mark:Succeeded
View (azure-cli-latest) View (azure-cli-2017-03-09-profile) View (azure-cli-2018-03-01-hybrid)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


How to start raspotify without systemctl

After the installation of raspotify I get the following error:
The user `raspotify' is already a member of `audio'.
/var/lib/dpkg/info/raspotify.postinst: 22: /var/lib/dpkg/info/raspotify.postinst: deb-systemd-helper: not found
/var/lib/dpkg/info/raspotify.postinst: 25: /var/lib/dpkg/info/raspotify.postinst: deb-systemd-helper: not found
/var/lib/dpkg/info/raspotify.postinst: 32: /var/lib/dpkg/info/raspotify.postinst: deb-systemd-helper: not found

# uname -a
Linux phone2 3.18.0-trunk-rpi #1 PREEMPT Debian 3.18.5-1~exp1+rpi19 (2015-08-08) armv6l GNU/Linux

Is there a way how I could (manually) start the service.
I did a search for a binary but only found the following folders and files on my system.
root@phone2:~# find / -name raspotify
/var/cache/raspotify
/usr/share/doc/raspotify
/etc/default/raspotify

I'd suggest to start with:
librespot --help

Indeed this does the trick. Thanks very much!
Librespot —name SpotifyDevice


A function to set the seed for randomisation and then evaluate a JME expression

If you have several separate questions that need to use the same data set, it'd be nice to be able to temporarily fix the seed for randomisation using something like seedrandom(seed, expr).
Just fixing the seed when the exam starts makes it sensitive to any other calls to randomisation which happen before that question's variables are generated, and to the order in which variables are generated.

Related to #805 and #925.

The seedrandom function now lets you generate data using a fixed seed.
But to use a seed based on the student's name in standalone mode, we need to ask for the student's name before the questions are generated. At the moment, the front page isn't shown until all the questions have been generated.
This will need a bit of thought - if we change it to show the front page immediately, and only generate the questions once the "begin" button is clicked, then there could be a big wait before the exam actually begins. We'll need to show the loading bar again, I think.


v5 compatibility

Hi,
The plugin doesn't build with strapi v5 :
After having moved js files to jsx files and ran yarn build, I get at least the following issue :
✖ Building admin panel
[ERROR]  There seems to be an unexpected error, try again with --debug for more information

RollupError<EMAIL_ADDRESS>(6:9): "Redirect" is not exported by "node_modules/react-router-dom/dist/index.js", imported by<EMAIL_ADDRESS>│   file: /opt/app/packages/cms/node_modules/@strapi/helper-plugin/dist/index.mjs:6:9
│   4: import { useIntl } from "react-intl";
│   5: import { useQuery as useQuery$1, useQueries } from "react-query";
│   6: import { Redirect, useLocation, useHistory, NavLink } from "react-router-dom";
│   ^
│   7: import * as React from "react";
│   8: import { useMemo, useCallback, useState, useEffect, useRef } from "react";
│   at getRollupError (file:///opt/app/packages/cms/node_modules/rollup/dist/es/shared/parseAst.js:392:41)

Hey. I look this weekend for a potential fix, or give you some informations for fix it.

Apparently the CLI of version 5 does not offer the generation of plugins, I do not think that it is possible to create plugins in this version of strapi still in Beta, I continue to investigate but I do not think that my plugin is compatible before a few weeks


Passing data dynamically to Mocha

Prerequisites

[x] Checked that your issue hasn't already been filed by cross-referencing issues with the faq label
[x] Checked next-gen ES issues and syntax problems by using the same environment and/or transpiler configuration without Mocha to ensure it isn't just a feature that actually isn't supported in the environment in question or a bug in your code.
[x] 'Smoke tested' the code to be tested by running it outside the real test suite to get a better sense of whether the problem is in the code under test, your usage of Mocha, or Mocha itself
[x] Ensured that there is no discrepancy between the locally and globally installed versions of Mocha. You can find them with: node node_modules/.bin/mocha --version(Local) and mocha --version(Global). We recommend avoiding the use of globally installed Mocha.

Description
Hey ya'll, I'm currently working on an automated grader that takes in a Github repo and then passes the content to the test files. I'm finding it difficult to programmatically send information to the file before using mocha.addFile(). What's the best approach for solving this?
I've looked at vm, but it doesn't allow variables to be passed into it. Only other solution I can think of is having to build a file and then destroy it after mocha tests are run, but that could also run into weird race conditions.
I was messing with the loadFiles method, but again, the vm doesn't allow me to pass in variables to it. So, I can't pass the dynamically generated object for the test file to use.
Steps to Reproduce

Create Mocha test file.
Have a file such as runMocha.js that will execute the Mocha test programmatically.
Have Mocha test file dynamically take data from object passed in before executing Mocha.run()

Expected behavior: [What you expect to happen]
I'd like the files to be able to take in data like function arguments.
Actual behavior: [What actually happens]
I guess the functionality doesn't exist?
Reproduces how often: [What percentage of the time does it reproduce?]
Versions

The output of mocha --version and node node_modules/.bin/mocha --version:
The output of node --version:
The version and architecture of your operating system:
Your shell (bash, zsh, PowerShell, cmd, etc.):
Your browser and version (if running browser tests):
Any other third party Mocha related modules (with versions):
The code transpiler being used:

Additional Information

Hello,
I will try to help you as much as possible, given that I do not fully understand your case without some code example or more details.
The best approach to unit testing is to provide fixtures rather than dynamic content. You are not testing if github is returning data or returning correct data (that is github's job) so saving their response in a fixture file and using that file to test your code is the best approach, it also gives consistency which is key in unit testing (ie. if github was down your test will fail while they should not).
in your use-case, VMs will only complicate things, basically in your use-case you are only using VM's to avoid setting to the main nodeJS globals object, not the perfect excuse to use VMs since they complicate things a lot.

the vm doesn't allow me to pass in variables to it

It definitely does. you pass a context object to the node vm which is accessible to the vm script. Without running into much details:
const context = {
    Buffer,
    clearImmediate,
    clearInterval,
    clearTimeout,
    setImmediate,
    setInterval,
    setTimeout,
    console,
    process,
    myVar: 11,
};

context.global = context;
const compiledWrapper = vm.runInNewContext(wrapper, context, options);

Thank you so much for your response!
So, the background of the application is that I'm creating an automated grader for student homeworks.

The student homeworks are code homeworks that are hosted on GitHub public repos.
I fetch these repos and then pass the base64 hash representation of each repo into an object.
I created a test file that was using a test represent tation of the JSON file for testing

Ah, I do agree with the fixtures approach, but the data being sent back from GitHub is different for each student.
Here is some of the code to test an HTML file to make sure it matches our expectations:
`const chai = require('chai');
const chaiSubset = require('chai-subset');
chai.use(chaiSubset);
const expect = chai.expect;
const base64 = require('base-64');
const HTML_CONTENT = require('../../00-sandbox-files/basic-portfolio-solution.json').html;
const CSS_CONTENT = require('../../00-sandbox-files/basic-portfolio-solution.json').css;
const decodedCSS = base64.decode(CSS_CONTENT[1].content);
const cheerio = require('cheerio');
const juice = require('juice');
let decodedHTMLcontact;
let decodedHTMLindex;
let decodedHTMLportfolio;
for (const obj in HTML_CONTENT) {
if (HTML_CONTENT[obj].path == "contact.html") {
decodedHTMLcontact = base64.decode(HTML_CONTENT[obj].content);
} else if (HTML_CONTENT[obj].path == "index.html") {
decodedHTMLindex = base64.decode(HTML_CONTENT[obj].content);
} else if (HTML_CONTENT[obj].path == "portfolio.html") {
decodedHTMLportfolio = base64.decode(HTML_CONTENT[obj].content);
}
}
tests = function (html, css) {
describe('HTML Elements tests that should pass for contact.html', function () {
let $ = cheerio.load(decodedHTMLcontact);
describe('HTML Elements that should exist in contact.html', function () {
it('should contain a header element', function () {
expect($('body').find('header').length).to.equal(1);
});
it('should contain a section element', function () {
expect($('body').find('section').length).to.equal(1);
});
it('should contain several anchor elements', function () {
expect($('nav').find('a').length).to.be.at.least(3, 'You need an additional anchor elements for your navigation elements');
});
it('should contain an h1 element', function () {
expect($('body').find('h1').length).to.equal(1);
});
it('should contain a form element', function () {
expect($('body').find('form').length).to.equal(1);
});
it('should contain a footer element', function () {
expect($('body').find('footer').length).to.equal(1);
});
});
`
Note that the HTML_CONTENT was hard coded. My goal is to execute this programmatically from another file, runMocha.js, so that the test files use the Github data for HTML_CONTENT instead of local data we set up for our own testing. Here is the runMocha.js file so far:
`const Mocha = require('mocha'),
fs = require('fs'),
vm = require("vm");
tmp = require('tmp');
module.exports = {
// Run the tests and have info about what can be returned
runTests: function(contentObj, repo) {
homeworkRouter(contentObj, repo);
console.log("Content Object", contentObj);
console.log("Repo", repo);
mocha.run()
.on('fail', function (test, err) {
console.log('Test fail');
console.log(err);
})
.on('end', function () {
console.log('All done');
});
}
}`
Also, I had no idea you could do that! That's so cool. OK, so considering I don't need to change the global JS object (I'm passing data that's constantly going to change), would it be better to just pass in the data as part of context?

@OSP123 awesome. Im excited every time i see some code being used for teaching!
The least code change is to export put it in a global and use it
fetchStudentsData().then(studentsData => {
   global.studentsData = studentsData;
}).then(_ => {
   mocha.run()
});

What I'd suggest you do the data fetching in a before and loop over the students to create the cases dynamically, this way you do not have to run mocha programmatically as well, just run it from the cli.
describe('Automated Grading', function() {
  let studentsData;
  before(async function() {
     const students = await getStudentsList();
     studentsData = Promise.all(students.map(student => {
        return getStudentData(student);
     }));
  });

  studentsData.forEach(student => {
     describe(`Grading for ${student.name}`, function() {
         it('...', function() {
           //...
         });
     })
  });
});

Yeah, I'm really excited about it as well! The students and the TAs can pass in a github url to the the search bar and it comes back with grading information. I can't give away too much now (we are pushing for as much open source as possible, believe me), but this is going to impact a lot of people.
Unfortunately, because this is all run from a microservice, I don't think we can use the CLI unless we use exec() or something like that, no? This is all being run through an Express/Node application. So, the logic flow is like the following:

Client submits their Github url. Request is made to Express/Node application.
Express/Node application takes repo and username and makes request to Github API for data and adds the content of the files to an object as base64.
The object with the files are passed to the relevant test files and then executed.
The results are processed and preliminary grades are created. These are then sent back to the client.

Considering the logic flow, I'm thinking the easiest way to do this would be to use VM when running the runMocha.js file instead of running Mocha via exec() and executing files from cli, no?

@Bamieh Any advice on execution?

@OSP123 try to follow the above hints, and avoid VMs. I'd point you to the wiki pages for instructions on how to run mocha programmatically https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically

@OSP123 Buddy I will close this since this is not related to mocha per say, its more of a programming challenge, please feel free to open a new issue whenever you find something specifically related to mocha. I am on gitter if you need personal help with this

Yeah, I'd just like to avoid passing anything into a global, especially considering there are going to be thousands of different requests. But I do agree that it's more of a programming problem that just involves Mocha. However, perhaps it can be something that can be done open further for those that are using Mocha programmatically? I'll try and come up with something and then see if I can submit a PR. Thanks for the help!

@OSP123 Did you figure out a nice solution for this? Would you be willing to share it with the rest of us?

Oh man, we came up with something, but I forgot what it was. We've had to shelve the project for other priorities.

@thusfar7
Soution for this will to write tests Dynamically like in the below blog.
https://javascript.plainenglish.io/introduction-to-programmatic-approach-to-mocha-testing-framework-e10d1947148e
this way you can pass the variable as parameters


[TASK] Investigate SPDK lvstore cluster size

What's the task? Please describe
Our current implementation uses a lvstore cluster size of 1 MiB. This may affect the IO performance when a volume has multiple snapshots. The task is to study how different cluster sizes influence the performance and tradeoffs.
With the results, we can optimize the lvstore cluster size configuration or provide a flexible setting for users to choose the cluster size for each volume or for all volumes.
Additional context
cc @shuo-wu @DamiaSan @james-munson

Lvstore cluster size is 4MiB
https://github.com/longhorn/spdk/blob/4542f9b14010fc7192d42e05adaafc2ae863bac5/include/spdk_internal/lvolstore.h#L17
/* Default size of blobstore cluster */
#define SPDK_LVS_OPTS_CLUSTER_SZ (4 * 1024 * 1024)

Cluster size is the same for whole lvstore, how can you set a different cluster size for each volume?

Oh, sorry

Lvstore cluster size is 4MiB https://github.com/longhorn/spdk/blob/4542f9b14010fc7192d42e05adaafc2ae863bac5/include/spdk_internal/lvolstore.h#L17
/* Default size of blobstore cluster */
#define SPDK_LVS_OPTS_CLUSTER_SZ (4 * 1024 * 1024)

Cluster size is the same for whole lvstore, how can you set a different cluster size for each volume?

Per-disk not per-volume.


Unknown ProductCategory leads to DatabaseQueryException

Describe the bug
The method rowResultstoProduct in the ProductsDbConnector throws a Databasequeryexception if the ProductCategory can't be recognized for a stored product.
This leads to the problem that adding new ProductCategories to the database will crash older versions of the application which can't recognize the new ProductCategories in the switch block.
To Reproduce
Steps to reproduce the behavior:

Add a product with a new productcategory to the database
Try to start the application
Grab popcorn
Watch the fireworks

Expected behavior
A better solution would be to either log/generate a warning for the unknown ProductCategories.
Alternatively one could ensure that only known productCategories are parsed for in the query.


New Release?

Hi @dgraham!
Thanks a lot for this gem and your open source work!
I noticed that the latest release for this gem does not include all the the most recent commits -- I am especially missing this commit. Because this was missing, we were receiving the following exception, probably because of an emoji in the JSON document we were trying to parse:
somethingsomething/gems/json-stream-0.2.1/lib/json/stream/parser.rb:232:in `block in <<':
uninitialized constant JSON::Stream::Parser::Fixnum (NameError)
error('Expected low surrogate pair half') if @stack[-1].is_a?(Fixnum)

Using the most recent commit of this gem fixed the error for us
gem 'json-stream', github: 'dgraham/json-stream', ref: '63a963e6563652a09a5dc5d11f27a9fc84aea65a'

Maybe you could release a new version of this gem? 🙂

I published 0.2.2 today. Thanks for the long overdue reminder.


add workload config api

fixes #6595
Still need to add put request but making the pull request for the format agreement.

Tested in vm, merging it.


Remove unnecessary slash.

Fixes #1565

Can you update the gh-pages branch after the merge please?


ARM missing on 8.11.1

It's there on 8.11.0

This is being discussed/investigated in https://github.com/docker-library/official-images/issues/15753 :eyes:

Success via https://github.com/docker-library/official-images/pull/15808 👍
https://explore.ggcr.dev/?image=kibana:8.11.1


Profile import process bug(s) with selected accounts

Selected accounts are reset by parent component in page/import-profile.

Fixed in v1.1.4


Horizontal scroll bar appears on Add/Edit form

Might be an issue with a div, or margin spacing.

This can be closed.


Marker on Line Not Displaying in Mixed Chart When Hovering Over Column with Greater Value

I encountered an issue with the mixed chart type in ApexCharts. When I hover over a position where the column's value is greater than the line's value, the marker on the line does not appear at the corresponding position.
For instance, https://jsfiddle.net/27d0L1xw/ , the marker does not display at the positions corresponding to Mar 03, Jun 03, and Sep 03. This behavior makes it difficult to view the exact value of the line at these points.

I am seeing the marker, but it's behind the column since the line sis rendered behind column series.

Could you share an image of what you are seeing?

@brianlagunas I configured intersect to false, so the cursor is over any position near the data points without being directly on a specific point or column, and the lines in this position do not display markers.

which browser are you using because I cannot duplicate that.

https://github.com/user-attachments/assets/01bbd191-4298-4339-8bae-79c1b1f3f9bf
This video is from my view. when i hover over  Mar 03, Jun 03, and Sep 03, line of team B & teamC do not show the marker.
Google Chrome 123.0.6312.105


Add additional clustering algorithms

It would nice to support other clustering methods than HDBSCAN in the process. Some commonly used methods include:

k-means
GMM (Guassian Mixture Models)
EVOC
NMF (Non-negative matrix factorization)
Dictionary learning

Considerations

We'd need to support the methods in python scripts similar to the current cluster.py
We'd need UI that allows choosing the method
We probably want to allow the choice to cluster directly on the high-dimensional data rather than just the 2D UMAP as we currently default to

Luckily, the input to a clustering algorithm is always going to be a vector for each row in the data, and the output will be a cluster index. So adding these options shouldn't affect our data model for the overall latent scope process
This sklearn page is inspiring

Something to think about here is making the default clustering (using HDBSCAN) operate on the high-dimensional embeddings instead of on the UMAP.
If we do that, it can be done independently of the UMAP. perhaps it should be an option. Something like k-means should probably not be done on high-dim inputs, but GMM and EVOC should.


GDScript 2.0: Unable to cast in child classes using file classes defined in the parent class

Godot version
4.0 alpha 6
System information
Windows 10
Issue description
Say you have a file class CustomClass, and you make a base class called ParentClass that will use CustomClass by registering it as a type for this class via const CustomClass := preload("res://CustomClass.gd"). Make a class that inherits/extends ParentClass called ChildClass. Now, if you try to cast using CustomClass as defined in ParentClass, the parser will throw an error saying that "CustomClass" was not found in the current scope.
This is weird because it partially recognizes CustomClass, as it appears in the dropdown for the auto completion. Also, calling something like CustomClass.new() or accessing some member functions/variables/enums defined in CustomClass are also acceptable. It doesn't like casting for some reason.
It doesn't like using CustomClass as a type for anything, actually.
I tried this issue out in Godot 3 and it worked fine.
Steps to reproduce
Just make the three scripts below in the same directory and you'll see what I'm talking about.
CustomClass.gd
extends Resource

ParentClass.gd
extends Node

const CustomClass := preload("res://CustomClass.gd")

ChildClass.gd
extends "./ParentClass.gd"

func _ready() -> void:
	var my_res := CustomClass.new()
	var other_res := my_res as CustomClass # Parser throws error here
	return

Minimal reproduction project
No response

I can't reproduce this using the steps above. It maybe fixed.

Let's tentatively close it as many fixes have been done to GDScript since alpha 6

From what I can tell, it looks to be fixed. I'm not having the issue anymore.


update helm to v2.7.0

I've missed that, it is annoying since helm upstream still release helm as "v2.7.0" and not "2.7.0"

There is an issue in the upstream image, let's see if a "v2.7.0" is pushed soon:
https://github.com/lachie83/k8s-helm/issues/20

ci check this


Handling of thunks and tangents

When the VJP is not an abstract array, things get weird
julia> import AbstractDifferentiation as AD

julia> import Zygote

julia> ad_backend = AD.ReverseRuleConfigBackend(Zygote.ZygoteRuleConfig())
AbstractDifferentiation.ReverseRuleConfigBackend{Zygote.ZygoteRuleConfig{Zygote.Context{false}}}(Zygote.ZygoteRuleConfig{Zygote.Context{false}}(Zygote.Context{false}(nothing)))

julia> AD.second_derivative(ad_backend, identity, 1)
ERROR: MethodError: no method matching length(::ChainRulesCore.NoTangent)

julia> AD.hessian(ad_backend, sum, [1.0])
ERROR: MethodError: no method matching size(::ChainRulesCore.Thunk{ChainRulesCore.var"#48#49"{ChainRulesCore.Thunk{ChainRulesCore.var"#48#49"{…}}}})

the correct thing to do with thunks is unthunk them before using them.
The correct thing to do with NoTangent is generally to handle is specifically, or failing that to pull information from the primal. Though for NoTangent more the former, for ZeroTangent more the later (see how Diffractor turns ZeroTangent into zero_tangent.


Add amazon linux2 support

This is the currently available Amazon Linux 2 version.
Without that fix it will be recognized as RHEL 4.

Hello,
Thank you for this PR.
I don't kown Amazon Linux 2 but why it's operatingsystemmajrelease is 4 ?
Regards,

Hi Florent,
Me neither ;-(
Looks like it is derived from the used kernel version of Amazon Linux 2,
but in fact it is the first time I'm using Amazon Linux 2. So just guessing.
This is the os fact hash:
facter os
{
architecture => "x86_64",
family => "RedHat",
hardware => "x86_64",
name => "Amazon",
release => {
full => "4.14.47-64.38.amzn2.x86_64",
major => "4",
minor => "14"
},
selinux => {
enabled => false
}
}
And kernel version is:
uname -r
4.14.47-64.38.amzn2.x86_64
And sorry for the pull request mess I created. I'm unfortunately not used
to write/adjust tests or doing pull requests in general ;-/
HTH,
Erik
On Mon, Jul 9, 2018 at 10:36 PM Florent Poinsaut<EMAIL_ADDRESS>wrote:

Hello,
Thank you for this PR.
I don't kown Amazon Linux 2 but why it's operatingsystemmajrelease is 4 ?
Regards,
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/solution-libre/puppet-monit/pull/3#issuecomment-403611704,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AmTeuCzwQbh_tAdlHZ7JXETJcMmcOvqnks5uE77RgaJpZM4VH4Nu
.

--
Erik Geiger
DevOps Engineer
Unterstrasse 4, 9000 St. Gallen
Switzerland
frontify.com, blog.frontify https://frontify.com/blog, twitter.frontify
https://twitter.com/frontify


Datura/feat/save pending hotkey subnet emission

Description
we need to keep track of subnet specific emission of each hotkey
Related Issue(s)

Closes #[issue number]

Type of Change

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation update
[x] Other (please describe):

Breaking Change
If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.
Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have run cargo fmt and cargo clippy to ensure my code is formatted and linted correctly
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] Any dependent changes have been merged and published in downstream modules

Screenshots (if applicable)
Please include any relevant screenshots or GIFs that demonstrate the changes made.
Additional Notes
Please provide any additional information or context that may be helpful for reviewers.

@mz-Datura thanks for this ! can you please look at the Contribution.md doc. PRs should be opened to the devnet-ready branch.
I have opened it against that branch. can you please fix conflicts

you might have to forked off devnet-ready

@distributedstatemachine  could you check my new PR?
I've opened from devnet-ready branch.
Thank you


main.html: fix typos; add small clarification

Closes #263

I could now merge this directly given that a review is not required... but I've requested (and will wait for) a review unless informed otherwise...


10.4.0 install fail

libqpdf.lai does not exist
DEBUG: libtool: install: ./install-sh libqpdf/build/.libs/libqpdf.lai /builddir/build/BUILDROOT/qpdf-10.4.0-1.x86_64/usr/lib64/libqpdf.la
DEBUG: ./install-sh: libqpdf/build/.libs/libqpdf.lai does not exist.

I not have libqpdf.lai file:
`$ ls libqpdf*
libqpdf.la
`

I am not familiar with lai files. You haven't indicated what platform, compiler, etc. you are using.

I'm going to close this, but if you find out what's going on and need more assistance, please feel free to reopen.

I'm facing same problem too. This problem is caused by cross-compiling. something error leads to libqpdf/build/.libs/libqpdf.lai is not generated.

I hope to get qpdf 11 out in the next few weeks. Its build has been completely redone with cmake, which should eliminate this kind of issue. I don't have any intention of fixing any problems with the pre-cmake build at this time.

It seems that --disable-shared options leads to this problem, I use --enable-rpath to resolve this problem. Although it is strange, but it works. ltmain.sh has problem, if no rpath is given, the libqpdf/build/.libs/libqpdf.lai will not be generated.


Kotlinter is not ignoring generated files

I have several generated kotlin files in my app (inside a build directory) which creates kotlin code that ktlint doesnt like. Since I have no control over the code generation and it is not being checked into git I would like ktlint to ignore the files within the build directory.
I tried adding several variations of exclude("build/**") but each time ktlint was failing on the generated files. Is there any way to ignore the build directory?
Note: I added the exclude directory to "lintKotlinMain"(org.jmailen.gradle.kotlinter.tasks.LintTask::class) { as stated in the README
Thanks so much!

Since I wasnt sure the exact format expected, the other exclude variations I tried are:
exclude("**/build")
exclude("**/build/**")
exclude("build/***")

Thanks Josh, let me see if I can figure this one out.
If you navigate to the module in question and do gradle tasks --all, are there other lintKotlinX tasks for other sourceSets? It could be your generated files aren't in the "main" source set, but maybe another kotlinter detected.
Is that the same "build" directory as the one gradle uses for output?
The LintTask extends the standard Gradle SourceTask so exclude takes standard pattern arguments https://docs.gradle.org/current/dsl/org.gradle.api.tasks.SourceTask.html

there is a lintKotlin, lintKotlinMain, and lintKotlinTest for each of the subprojects inside my main project.

It could be your generated files aren't in the "main" source set, but maybe another kotlinter detected
kotlinter is only defined in the root project.

Is that the same "build" directory as the one gradle uses for output?
Yes!

Thanks so much for the quick follow-up. I'm very new to kotlin so I may have done something wrong as well

Based on this issue in ktlint and the ant pattern docs it looks like the correct syntax is **/build/** or  **/build/ which should be equivalent.
@jeremymailen I tried both formats just now and they still didnt work 🙃

Can you show what the project structure looks like? Are these generated files being created by another gradle plugin or custom build code?
I ask because build seems unusual. Each of the kotlinter subtasks are associated with a sourceSet. For example the main source set for a project might have its root at project/src/main/kotlin and the exclude paths would be relative to that.
Kotlinter operates very similar to the gradle quality plugin which has some examples here: https://xvik.github.io/gradle-quality-plugin/2.4.0/guide/exclusion/

is there a way to log the relative root for a source set?

You should be able to do something like this in your Gradle script
sourceSets.forEach {
    val dirPaths = it.java.srcDirs.map { d -> d.path }
    println("${it.name} : ${dirPaths.joinToString()}")
}

Kotlin JVM gradle plugin uses java sourceSet to configure things (see https://kotlinlang.org/docs/gradle.html#kotlin-and-java-sources).
Typically a standard project will have two sourceSets main and test. For kotlinter itself
main : /path/to/git/kotlinter-gradle/src/main/java
test : /path/to/git/kotlinter-gradle/src/test/java

Do you have any thoughts on the above questions -- what's generating your sources and your project structure?

I have a similar problem (see image below):

My sources are being generated by Apollo Android and my project structure is like this:
/${projectDir}/src/main/kotlin <- where all the code resides for my app
/${projectDir}/src/test/kotlin <- tests
/${projectDir}/build/generated/... <- generated code from apollo android

@jeremymailen where do I add that sourceSets block in the build.gradle.kts? sourceSets was not defined in the root, in tasks, or within the lintTask

Sorry, was out of town -- if you're still looking for a solution:
It occurs to me the easiest way to debug the problem is probably just debugging which files being linted:
gradle -d lintKotlin | grep linting

You'll see output including the relative file path and name of the lint task that is operating on it. For example:
2021-07-18T15:44:06.584-0700 [DEBUG] [org.jmailen.gradle.kotlinter.tasks.LintTask] lintKotlinTest linting: src/test/kotlin/org/jmailen/gradle/kotlinter/functional/KotlinProjectTest.kt

That's helpful info about the Apollo plugin. It looks like what it does is add a new path to each sourceSet under build/generated. For Apollo, did you try exclude("**/generated/**")?

Ok, did a few experiments with ordinary source sets. It appears the exclude path is oriented to the package, regardless of the root. For example to exclude my above file you'd need to:
tasks {
    "lintKotlinTest"(LintTask::class) {
        exclude("/org/jmailen/gradle/kotlinter/functional/KotlinProjectTest.kt")
    }
}

Or any glob including that exact path.
I know it's not the most user friendly when there's a whole root you need to exclude. Is there a pattern  within the package or file names you can target instead?
I suppose we could break our dependency on Gradle's SourceTask but would take some careful thought on how to extend it to add  something like excludeSources.

``> Sorry, was out of town -- if you're still looking for a solution:

It occurs to me the easiest way to debug the problem is probably just debugging which files being linted:
gradle -d lintKotlin | grep linting

You'll see output including the relative file path and name of the lint task that is operating on it. For example:
2021-07-18T15:44:06.584-0700 [DEBUG] [org.jmailen.gradle.kotlinter.tasks.LintTask] lintKotlinTest linting: src/test/kotlin/org/jmailen/gradle/kotlinter/functional/KotlinProjectTest.kt

The key is to make sure you're modifying the excludes for the correct lint task and a matching path.
That's helpful info about the Apollo plugin. It looks like what it does is add a new path to each sourceSet under build/generated. For Apollo, did you try exclude("**/generated/**")?

I did try all of the variants that are described in the OP and with the generated blob as well:
exclude("**/build")
exclude("**/build/**")
exclude("build/***")

exclude("**/generated")
exclude("**/generated/**")
exclude("generated/***")

Those did not work. I am currently just contemplating running a ktlint check without the plugin, but it would be nice if the plugin was able to do this on its own.

Sorry, was out of town -- if you're still looking for a solution:
It occurs to me the easiest way to debug the problem is probably just debugging which files being linted:
gradle -d lintKotlin | grep linting

You'll see output including the relative file path and name of the lint task that is operating on it. For example:
2021-07-18T15:44:06.584-0700 [DEBUG] [org.jmailen.gradle.kotlinter.tasks.LintTask] lintKotlinTest linting: src/test/kotlin/org/jmailen/gradle/kotlinter/functional/KotlinProjectTest.kt

The key is to make sure you're modifying the excludes for the correct lint task and a matching path.
That's helpful info about the Apollo plugin. It looks like what it does is add a new path to each sourceSet under build/generated. For Apollo, did you try exclude("**/generated/**")?

I did try all of the variants that are described in the OP and with the generated blob as well:
exclude("**/build")
exclude("**/build/**")
exclude("build/***")

exclude("**/generated")
exclude("**/generated/**")
exclude("generated/***")

Those did not work. I am currently just contemplating running a ktlint check without the plugin, but it would be nice if the plugin was able to do this on its own.

Ok, see my other note above -- it will work, but you must use a path matcher on the package or filename portion.

Ok, see my other note above -- it will work, but you must use a path matcher on the package or filename portion.

So with that I can just do the following?
tasks {
    "lintKotlinMain"(LintTask::class) {
        exclude("build/generated/source/apollo/main/service/*.kt")
    }
}

Ok, see my other note above -- it will work, but you must use a path matcher on the package or filename portion.

So with that I can just do the following?
tasks {
    "lintKotlinMain"(LintTask::class) {
        exclude("build/generated/source/apollo/main/service/*.kt")
    }
}

No you must use the package and filename portion of the path.
I'm just imagining how apollo might choose a package, but hopefully it's unique.
tasks {
    "lintKotlinMain"(LintTask::class) {
        exclude("service/graphql/*.kt")
    }
}

Ok, see my other note above -- it will work, but you must use a path matcher on the package or filename portion.

So with that I can just do the following?
tasks {
    "lintKotlinMain"(LintTask::class) {
        exclude("build/generated/source/apollo/main/service/*.kt")
    }
}

No you must use the package and filename portion of the path.
I'm just imagining how apollo might choose a package, but hopefully it's unique.
tasks {
    "lintKotlinMain"(LintTask::class) {
        exclude("service/graphql/*.kt")
    }
}

Ah ok, but apollo unfortunately does not create a package for anything but primitive types. So most of the generated classes are not in a package. In my case for instance, I simply do import TripQuery (which is where the generated code resides).

Ah ok, but apollo unfortunately does not create a package for anything but primitive types. So most of the generated classes are not in a package. In my case for instance, I simply do import TripQuery (which is where the generated code resides).

It's looks like they provide a rootPackageName?
https://www.apollographql.com/docs/android/essentials/plugin-configuration/
Also seems like here:
https://www.apollographql.com/docs/android/essentials/get-started-kotlin/
apollo {
  packageName.set("com.example")
}

Ah ok, but apollo unfortunately does not create a package for anything but primitive types. So most of the generated classes are not in a package. In my case for instance, I simply do import TripQuery (which is where the generated code resides).

It's looks like they provide a rootPackageName?
apollographql.com/docs/android/essentials/plugin-configuration
Also seems like here:
apollographql.com/docs/android/essentials/get-started-kotlin
apollo {
  packageName.set("com.example")
}

Yes, it is possible to create one if required, but that's not the default configuration. Do I need to set a package name and then create the path?

I'm not an apollo user. I'm just noting in their docs you can change the package. I don't know their rationale for choose the root package as default.
Although Kotlinter wasn't designed specifically to support or not support apollo, I'm guessing any tool which generates source code will allow you to choose the output package because you'd need to be able to do that to prevent conflicts or control package visibility.

So from what I understand, the exclude is not matching the full path (as in the debug output /build/generated/etc..), but just the last part?
As an example, lint errors are here: /Users/Robert/projects/core/common/build/generated/sqldelight/code/PeopleInSpaceDatabase/com/surrus/peopleinspace/db/*.kt
This does not work/exclude the file(s):
tasks {
    "lintKotlinCommonMain"(org.jmailen.gradle.kotlinter.tasks.LintTask::class) {
        exclude("**/excluded/**")
    }
}

But this does:
tasks {
    "lintKotlinCommonMain"(org.jmailen.gradle.kotlinter.tasks.LintTask::class) {
        exclude("/com/surrus/peopleinspace/db/**")
    }
}

Can I somehow still match on the 'generated'-part?
I think it is cleaner.
https://github.com/joreilly/PeopleInSpace/issues/64

You are correct @RdeWilde, the way SourceTask works is matching the package part of the path. I intend to clarify the documentation.
We would need to extend SourceTask and add another parameter to choose root trees to exclude as well.
It would be nice, but I wonder if we'll need it? It seems like any code generation plugin will allow you to specify a unique output package. Wouldn't you want a unique package anyway to keep your generated source separate in namespace from your hand written code?

That could be true. But basically I'd like to just exclude anything from the generated-path, no matter what package.
If it is too much hassle, this can also work. Suggestion not requirement :-)

Yes, will add it as an enhancement request. The Gradle Quality plugin has a similar extra param excludeSources
http://xvik.github.io/gradle-quality-plugin/4.6.0/guide/exclusion/

Closing for now and will take note of the enhancement request.

Just catching up on this. Thanks @jeremymailen ! I got the exclude working now.
+1 to the enhancement discussed above, it would have been a more intuitive solution to discover and is better "documentation" that it is generated code being ignored.

Cool, noted. Glad you're able to find a solution for the meantime.

Just catching up on this. Thanks @jeremymailen ! I got the exclude working now.
+1 to the enhancement discussed above, it would have been a more intuitive solution to discover and is better "documentation" that it is generated code being ignored.

Could you explain how you make it work?
Im facing the same issue, Im using a code generator plugin for my Graphql API (DGS codegen from netflix) and everything in goes into the /build/generated path outside the main project, and I cant make it work to ignore it, with ktlint gradle it works like a charm doing this:
ktlint {
filter {
exclude { element ->
element.file.path.contains("generated/") ||
element.file.path.contains("TestProjections") ||
element.file.path.contains("build.gradle.kts")
}
}
}
But with this plugin it doesnt work at all

Just catching up on this. Thanks @jeremymailen ! I got the exclude working now.
+1 to the enhancement discussed above, it would have been a more intuitive solution to discover and is better "documentation" that it is generated code being ignored.

Could you explain how you make it work? Im facing the same issue, Im using a code generator plugin for my Graphql API (DGS codegen from netflix) and everything in goes into the /build/generated path outside the main project, and I cant make it work to ignore it, with ktlint gradle it works like a charm doing this:
ktlint {
    filter {
        exclude { element ->
            element.file.path.contains("generated/")
        }
    }
}

But with this plugin it doesnt work at all
We need a standard way to fix this problem...This issue must be open.
EDIT: Found a solution
tasks.formatKotlinMain {
    exclude { it.file.path.contains("generated/")}
}

tasks.lintKotlinMain {
    exclude { it.file.path.contains("generated/")}
}

Thanks this solves my problem!

Even more DRY:
import org.jmailen.gradle.kotlinter.tasks.ConfigurableKtLintTask

withType<ConfigurableKtLintTask> {
    exclude { it.file.path.contains("generated/") }
}


Compliance Report C | An additional column appears when Other is selected for Expected Use |2|

Story:
As a BCeID user, I want the system to prompt me to provide the details about Fuels used for other purposes when I select the Other category so that I can ensure that I am fulfilling my reporting obligation.
Scenario:
GIVEN that I am a BCeID user
AND I have the Compliance Reporting role Card 1299
AND I am filling out Schedule C of the Compliance Report (new report or editing a draft)
AND I am filling out a particular entry row within Schedule C
AND I have clicked on the Expected Use cell
AND I can see the list of predefined options Card 1301
WHEN I select the Other option
THEN a new input field/cell/column appears to the right of the Expected Use column
AND the system prompts me to "Enter in the expected use"
AND I am able to enter an explanation of the "Other" fuel use within that input field / cell / column
Potential Design(s):
Similar to the zero dollar option menu that appears when a user enters a zero credit price (affiliate or other), when the user selects the Other category have an additional entry field appear to the right of the expected use cell that allows the user to enter in the details of the "Other" fuel use.
Additional Requirements:

This input field should be free text (allow anything)
The user should be required to enter something into this cell if they have selected the Other category in the Expected Use column

https://trello.com/c/eUq1jomb/1302-compliance-report-c-an-additional-column-appears-when-other-is-selected-for-expected-use-2

 Compliance Report C | An additional column appears when Other is selected for Expected Use |2|


PMID:25825517

abnormal protein localization to shmoo projection
abolished actin fusion focus formation (during conjugation with cellular fusion) (I have requested a term for actin fusion focus)
incomplete cell wall disassembly at cell-cell fusion focus (during conjugation with cellular fusion)
Narrow cell fusion site following conjugation with cellular fusion. the cell is narrower than normal at the point where cell fusion ocurred. Normally WT expands at this point following conjugation with cellular fusion but this doesn't happen in the mutant

is it OK to use GO:1903260 "protein localization to mating projection tip" for #1?

yep

edit file: 4f92866058675ecf5624b404050649e5cca2545c
release: 44608c390480250c6aee5a0f2a00aae8dfb12d72


 restricts PanResponder

I have fullscreen card views which are swiped up/down using PanResponder. I had to make use of <TouchableOpacity> to wrap a touchable element on each card and it has restricted the pan movement. I can understand why. But is there a workaround in place or planned?
return (

      <Animated.View style={[styles.newsItemCtr, newsItemStyle, shadowStyle, this.x]}>
        <TouchableOpacity onPress={this.handleItemPress}>
          <View style={styles.imageCtr}>
            <Image style={styles.imagePlaceholder} source={require('../images/topstories.png')} />
            {this.props.imagesEnabled ? <Image style={styles.itemImage} source={{ uri: news.imageurl }} /> : null }
          </View>
          <View>
            <View style={styles.itemBodyCtr}>
              <Text style={styles.itemTitle} numberOfLines={Constants.NUM_LINES_NEWS_TITLE}>{news.title.replace(/<\/?[^>]+(>|$)/g, "")}</Text>
              <Text style={styles.itemBody} numberOfLines={Constants.NUM_LINES_NEWS_BODY}>{news.snippet.replace(/<br>|<br\/>/g, '\n').replace(/<\/?[^>]+(>|$)/g, "")}</Text>
              <View style={styles.ctaCtr}>
                <TouchableOpacity style={styles.ctaItem} onPress={this.openFullStory.bind(this, news.url)}>
                  <View style={styles.ctaSubCtr}>
                    <Text style={styles.fullStoryTitle}>{this.props.getLabel('fullStory')}</Text>
                    <Text style={styles.fullStoryLink}>{news.source}</Text>
                  </View>
                  <Text style={styles.storyDate}>{this.getTimeagoLabel(news.published_ts)}</Text>
                </TouchableOpacity>
              </View>
            </View>
          </View>

        </TouchableOpacity>
      </Animated.View>
    );```

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/touchablex-restricts-panresponder
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook-github-bot label Icebox

@facebook-github-bot close


Would you be interested in support for hyper 0.13 and rustls (replacing OpenSSL)?

Hello! I'm the maintainer of boondock, a barely-maintained Docker client for Rust. I'm hoping to migrate away from it at some point, and shipyard is on my shortlist.
There's one piece of potentially interesting code in boondock: A hyperlocal + rustls connection routine, which you can find here. The completely removes the dependency on OpenSSL, and it makes it easy to use the same code to talk to either unix:// sockets or https:// endpoints. It implements Docker-compatible certificate and key management.
If you'd be interested in supporting rustls at some point, I'd be happy to answer questions and maybe help with the integration. Thank you for maintaining a Docker client for Rust!

Thanks for reaching out @emk. I'll take a look. I've been waiting for a lot of the async ecosystem to shake out but I think most of the dust has settled.  Any help would be welcome. There've been a handful of external start/stop attempts and moving this forward so the smaller the change the easier it would to drive it to completion

Thank you for your response! I'm eagerly looking forward to the day that I can port cage to use shiplift, and then deprecate boondock in favor of your library. :-)
I agree that the async dust has mostly settled. I maintain several async Rust projects including dbcrossbar, bigml-parallel and geocode-csv. All of these now use async syntax and hyper 0.2 with no major problems. There are a few tricks but it's not bad once you get the hang of it.
The basic steps that I took to port boondock were:

Build a new Connector type that handles HTTP, HTTPS and Unix sockets, and that knows how to use Docker TLS keys. This is pretty much a standalone component that can be reused anywhere. My employer can make it available under the same MIT license as shiplift.
Convert the hyper initialization code to use hyper 0.13, and make sure hyperlocal URIs are built using hyperlocal::Uri (because hyper won't accept them otherwise).
Convert the lowest-level GET and POST routines to be async.
Go through adding async and await as needed to make the compiler errors stop.

Step (4) was surprisingly fast. It took me about an hour for all the simple cases.
Once there's an async API, you might want to add an optional blocking API that's similar to reqwest::blocking. Here's how I call async APIs from regular code:
        // Start a local `tokio` runtime for async calls.
        let mut rt = runtime::Builder::new()
            .basic_scheduler()
            .enable_all()
            .build()?;

        // Modify async calls to to use `rt.block_on`.
        let containers = rt.block_on(docker.containers(opts))?;

So it's pretty easy to provide a blocking wrapper around a basically async library.
Take a look at connector.rs and let me know what you think. The rest of the boondock is fairly messy, because I've never had enough time to modernize the code I inherited.

The rustls implementation is dependent on wepki, which does validation on the hostname of the DOCKER_HOST:


Fix golint issues in maya/types/v1/labels.go

File: maya/types/v1/labels.go
Line 33: warning: comment on exported const EnvVariableContextDef should be of the form "EnvVariableContextDef ..." (golint)
Line 185: warning: comment on exported const OrchProfileNameLbl should be of the form "OrchProfileNameLbl ..." (golint)
Line 187: warning: comment on exported const OrchRegionLbl should be of the form "OrchRegionLbl ..." (golint)
Line 189: warning: comment on exported const OrchDCLbl should be of the form "OrchDCLbl ..." (golint)
Line 193: warning: comment on exported const OrchNSLbl should be of the form "OrchNSLbl ..." (golint)
Line 215: warning: comment on exported const OrchNetworkAddrDef should be of the form "OrchNetworkAddrDef ..." (golint)
Line 218: warning: comment on exported const OrchInClusterDef should be of the form "OrchInClusterDef ..." (golint)
Line 220: warning: comment on exported const OrchNSDef should be of the form "OrchNSDef ..." (golint)
Line 239: warning: comment on exported const PVPProfileNameLbl should be of the form "PVPProfileNameLbl ..." (golint)
Line 241: warning: comment on exported const PVPReqReplicaLbl should be of the form "PVPReqReplicaLbl ..." (golint)
Line 243: warning: comment on exported const PVPReqNetworkingLbl should be of the form "PVPReqNetworkingLbl ..." (golint)
Line 246: warning: comment on exported const PVPReplicaCountLbl should be of the form "PVPReplicaCountLbl ..." (golint)
Line 249: warning: comment on exported const PVPPersistentPathCountLbl should be of the form "PVPPersistentPathCountLbl ..." (golint)
Line 251: warning: comment on exported const PVPStorageSizeLbl should be of the form "PVPStorageSizeLbl ..." (golint)
Line 253: warning: comment on exported const PVPReplicaIPsLbl should be of the form "PVPReplicaIPsLbl ..." (golint)
Line 255: warning: comment on exported const PVPReplicaImageLbl should be of the form "PVPReplicaImageLbl ..." (golint)
Line 257: warning: comment on exported const PVPControllerCountLbl should be of the form "PVPControllerCountLbl ..." (golint)
Line 259: warning: comment on exported const PVPControllerImageLbl should be of the form "PVPControllerImageLbl ..." (golint)
Line 261: warning: comment on exported const PVPControllerIPsLbl should be of the form "PVPControllerIPsLbl ..." (golint)
Line 263: warning: comment on exported const PVPPersistentPathLbl should be of the form "PVPPersistentPathLbl ..." (golint)
Line 265: warning: comment on exported const PVPControllerNodeTaintTolerationLbl should be of the form "PVPControllerNodeTaintTolerationLbl ..." (golint)
Line 267: warning: comment on exported const PVPReplicaNodeTaintTolerationLbl should be of the form "PVPReplicaNodeTaintTolerationLbl ..." (golint)
Line 270: warning: comment on exported const PVPControllerNodeSelectorLbl should be of the form "PVPControllerNodeSelectorLbl ..." (golint)
Line 273: warning: comment on exported const PVPReplicaNodeSelectorLbl should be of the form "PVPReplicaNodeSelectorLbl ..." (golint)
Line 351: warning: comment on exported type MayaAPIServiceOutputLabel should be of the form "MayaAPIServiceOutputLabel ..." (with optional leading article) (golint)
Line 376: warning: comment on exported type VolumeProvisionerDefaults should be of the form "VolumeProvisionerDefaults ..." (with optional leading article) (golint)
Line 381: warning: comment on exported const PVPControllerCountDef should be of the form "PVPControllerCountDef ..." (golint)
Line 383: warning: comment on exported const PVPReplicaCountDef should be of the form "PVPReplicaCountDef ..." (golint)
Line 385: warning: comment on exported const PVPPersistentPathCountDef should be of the form "PVPPersistentPathCountDef ..." (golint)
Line 388: warning: comment on exported const PVPControllerImageDef should be of the form "PVPControllerImageDef ..." (golint)
Line 390: warning: comment on exported const PVPReqReplicaDef should be of the form "PVPReqReplicaDef ..." (golint)
Line 392: warning: comment on exported const PVPReplicaImageDef should be of the form "PVPReplicaImageDef ..." (golint)
Line 394: warning: comment on exported const PVPReqNetworkingDef should be of the form "PVPReqNetworkingDef ..." (golint)
Line 417: warning: comment on exported const OrchestratorNameLbl should be of the form "OrchestratorNameLbl ..." (golint)
Line 419: warning: comment on exported const VolumeProvisionerNameLbl should be of the form "VolumeProvisionerNameLbl ..." (golint)
Line 423: warning: comment on exported type OrchProviderRegistry should be of the form "OrchProviderRegistry ..." (with optional leading article) (golint)
Line 458: warning: comment on exported const PVCOrchestratorProfile should be of the form "PVCOrchestratorProfile ..." (golint)
Line 468: warning: comment on exported const VolumeProvisionerProfile should be of the form "VolumeProvisionerProfile ..." (golint)
Line 472: warning: exported type GenericAnnotations should have comment or be unexported (golint)
Line 530: warning: comment on exported type JivaAnnotations should be of the form "JivaAnnotations ..." (with optional leading article) (golint)
Line 602: warning: comment on exported const JivaIqnFormatPrefix should be of the form "JivaIqnFormatPrefix ..." (golint)
Line 658: warning: comment on exported type K8sAnnotations should be of the form "K8sAnnotations ..." (with optional leading article) (golint)

Resources:
-> Contributors guide: https://github.com/openebs/openebs/blob/master/CONTRIBUTING.md
Complexity: Easy

I am interested in this

hey @ABHIYANSHU go ahead. let me know if you need help.

Not a valid one anymore.. hence closing


[mobile branch] code mirror loses focus after first click in IE8

Go to http://jsfiddle.net/a4vuoydw/5/embedded/result/ in IE8. Click somewhere outside of code mirror to ensure that code mirror doesn't have focus.
Click the code mirror text area.
Observe the blinking cursor and start typing a few letters (e.g. abc).

Expected: newly typed characters appear.
Actual: none of the newly typed characters appear.

Click the code mirror text area again and start typing. Now the characters appear.

Note:
-If you hit the backspace key as opposed to other character keys after the first click, the existing characters do get deleted as expected.
-Does not repro in Chrome, Firefox, or IE9 and above.

Thanks for reporting that. Should be fixed in attached patch.


How were the painted karyograms made?

Hi, I am interested (if possible and available), for the modified script to Alicia's Karyogram plot from RFMix v1 output to RFMix v2 output...
Unfortunately I can;'t find anywhere a way to generate karyograms of LAI from RFMix v2 output...
Thanks

Hi! I made those painted karyograms on another branch from Alicia's original pipeline - see especially this conversion script - https://github.com/eatkinson/ancestry_pipeline/blob/master/RFmixv2_plotconversion.txt


Remove duplicate from list

The line:
- Docker (Docker version 3.0.10+azure, build 99c5edceb48d64c1aa5d09b8c9c499d431d98bb9)

is repeated twice in the images/linux/Ubuntu1804-README.md file.
This PR simply removes the duplicate.

Hello, @pouriaa
Please don't update autogenerated documentation. Duplicate https://github.com/actions/virtual-environments/pull/470 PR.


[TypeScript] Enterprise Bot

Concepts introduced in this sample

Dialogs
Template Manager
Dispatch
Middleware

@lauren-mills Can you go through this and take a look?


[ERROR] Error updating the NVD Data

Are there any recommendations?
The error persists even if you add "delay" and "apikey".
It occurs in the commandline and in the AzureDevops plugin.
[ERROR] Error updating the NVD Data
org.owasp.dependencycheck.data.update.exception.UpdateException: Error updating the NVD Data
at org.owasp.dependencycheck.data.update.NvdApiDataSource.processApi(NvdApiDataSource.java:336)
at org.owasp.dependencycheck.data.update.NvdApiDataSource.update(NvdApiDataSource.java:110)
at org.owasp.dependencycheck.Engine.doUpdates(Engine.java:902)
at org.owasp.dependencycheck.Engine.initializeAndUpdateDatabase(Engine.java:707)
at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:633)
at org.owasp.dependencycheck.App.runScan(App.java:260)
at org.owasp.dependencycheck.App.run(App.java:192)
at org.owasp.dependencycheck.App.main(App.java:87)
Caused by: io.github.jeremylong.openvulnerability.client.nvd.NvdApiException: NVD Returned Status Code: 503
at io.github.jeremylong.openvulnerability.client.nvd.NvdCveClient.next(NvdCveClient.java:327)
at org.owasp.dependencycheck.data.update.NvdApiDataSource.processApi(NvdApiDataSource.java:315)
... 7 common frames omitted
[INFO] In DISPOSE, [POM] disposing of memory cache.
[INFO] Memory Cache dispose called.
[INFO] In dispose, destroying event queue.
[ERROR] Region [NODEAUDIT] : Not alive and dispose was called, filename: NODEAUDIT
[INFO] In dispose, destroying event queue.
[ERROR] Region [CENTRAL] : Not alive and dispose was called, filename: CENTRAL
[INFO] In dispose, destroying event queue.
[ERROR] Region [POM] : Not alive and dispose was called, filename: POM
[ERROR] One or more fatal errors occurred
[ERROR] Error updating the NVD Data
[ERROR] No documents exist

see #6107


Laradock on Raspberry.

How to use Laradock on raspbian? Is there any solution? Thank you

There shouldn't be much of a difference for Raspberry Pi, best way to find out is to try it out.
Install Docker and Compose for raspberry pi then move your code to the Pi via SSH/Git and docker-compose up.
That being said, I'm not sure which of the images in Laradock support ARM.
This guide goes into more detail.


Using a single class to implement multiple handlers throws "AmbiguousMatchException".

Let's say I have two classes that implement ICommand: TestCommand1 and TestCommand2.
The following handler will cause the router to throw an "AmbiguousMatchException":
public class TestCommandHandler : IHandleCommand<TestCommand1>, IHandleCommand<TestCommand2>
    {
        public Task Handle(TestCommand1 command, CancellationToken shutdown)
        {
            Console.WriteLine(command.SomeText);
            return Task.FromResult<object>(null);
        }

        public Task Handle(TestCommand2 command, CancellationToken shutdown)
        {
            Console.WriteLine(command.SomeText);
            return Task.FromResult<object>(null);
        }
    }

If the handlers are segregated into separate classes, it doesn't throw this exception. However it can certainly be desirable to group handlers in the same class.
Thanks.
Edit: fixed typo, added formatting.

This is currently a known limitation of the routing algorithm. But I'm glad you opened an issue for it, as it's not documented anywhere... and someone really ought to try and address it.


Implement HA for master nodes

Task

[ ] Define leader election protocol or distributed lock protocol
[ ] Define database replication
[ ] Implement secure master to master communication
[ ] Add concept of regions/datacenters
[ ] Implement so only one master makes decision

Key notes:

Each master(s) take care of nodes within their region
If masters in region goes down, leadership needs to be done by masters from other regions (this will complicate things a lot probably)

We might not need a leader election protocol as if a user publishes a new service to a master (either directly or through a load balancer) then only one master will receive request. Then it can acquire a global lock for that service ensuring no one else can make changes to that service until it is finished.


Updating references to self.pubnubs to self._pubnubs

Howdy! I noticed during shutdown of my Home Assistant instance that an exception is thrown in this library. This appears to prevent HA from closing gracefully, meaning that systemctl (in my case) kills the process after a timeout.
Traceback (most recent call last):
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/wink/__init__.py", line 404, in stop_subscription
    hass.data[DOMAIN]["pubnub"].unsubscribe()
 File "/srv/homeassistant/lib/python3.7/site-packages/pubnubsubhandler.py", line 106, in unsubscribe
    for pubnub in self.pubnubs:
AttributeError: 'PubNubSubscriptionHandler' object has no attribute 'pubnubs'

I fixed up the references to self._pubnubs and I also quickly grepped for other references to self. without a leading underscore.
After patching my installation in-place I don't see exceptions being thrown and HA shuts down within a second or two.

I forgot to mention - I'm very happy to stick the PR up to homeassistant core to upgrade the version if that would be helpful once this is merged and published.

@mkeesey I am sorry for just now seeing this. GitHub is terrible with notifications. I either get notified for everything or nothing.

@mkeesey I pushed your change. Version 1.0.9 should be live on pypi

@w1ll1am23, no problem at all! Appreciate it. :+1:
The PR for HA is https://github.com/home-assistant/core/pull/44542.