PySceneDetect v0.5 New CLI & API Feedback

Hello all;
Please free to leave any feedback or suggestions you might have regarding the latest release of PySceneDetect (v0.5).  This release includes a significantly refactored Python API as well as a completely redone command-line interface (CLI).
Feedback for both the new API and CLI is requested here.
Thank you all again for your help and support with respect to preparing this release - really appreciate everyone's feedback!

Hi @Breakthrough,
I have been doing some work recently with the 0.5 API and overall, I think the new structure is really well thought out. There is just one minor thing I want to point out. Would it be possible to bring the StatsManager class into the base import scenedetect call? As it is right now, this is what getting ready to analyze a video looks like:
import scenedetect

video_mgr = scenedetect.VideoManager([video_file])
stats_mgr = scenedetect.stats_manager.StatsManager()
scene_mgr = scenedetect.SceneManager(stats_mgr)

This would be fixed by adding an import statement to scenedetect.__init__.py to import StatsManager along with the VideoManager and SceneManager classes.
This would be a low priority for sure (I said it was minor). Thanks for your hard work!

Note that going forwards, the capabilities of DVR-Scan will be absorbed into PySceneDetect, with the appropriate API changes being made in v0.6 going forwards.  There may be some changes to the scene detection algorithm interfaces, but I don't think any of the changes will break existing code, just add new functionality.
That being said, thank you all for your input - I've pinned this issue to gain some last minute visibility as I plan what's going to be included in the v0.6 release (the biggest being support of SceneStats).

Random, but API changes to the detectors will be required to implement camera flash suppression.  Specifically, a lookahead buffer will be required (of size N frames).  My idea is to allow detectors to specify, during construction, the amount of lookahead they require, and will let the SceneManager know.  That way, the SceneManager can pre-buffer that many frames and provide them to each detector, rather than one frame at a time (and requiring individual detectors to buffer frames manually, as is done currently).
I would like to apply this in both directions, i.e. allow detectors to search +/- N frames in time from the current frame.  This will dramatically increase memory and CPU utilization, so N must be a user tunable parameter, as certain source material will benefit greatly from it, at the expense of processing speed.

I keep getting an error, just for save-images
scenedetect -i '/home/santiago/Documents/NewConsultoriaMarketing/filename.mkv'  detect-content save-images
[PySceneDetect] Loaded 1 video, framerate: 29.97 FPS, resolution: 1280 x 720
[PySceneDetect] Downscale factor set to 5, effective resolution: 256 x 144
[PySceneDetect] Image output format set: JPEG
[PySceneDetect] Detecting scenes...
100%|████████████████████████████████| 9680/9680 [00:24<00:00, 388.39frames/s]
[PySceneDetect] Processed 9680 frames in 24.9 seconds (average 388.35 FPS).
[PySceneDetect] Detected 9 scenes, average shot length 35.9 seconds.
[PySceneDetect] Comma-separated timecode list:
00:00:00.734,00:00:01.802,00:03:33.146,00:03:38.652,00:04:21.094,00:05:18.752,00:05:19.886,00:05:20.954
[PySceneDetect] Downscale factor set to 1, effective resolution: 1280 x 720
[PySceneDetect] Generating output images (3 per scene)...
0%|                                              | 0/27 [00:00<?, ?images/s]Traceback (most recent call last):
File "/home/santiago/.virtualenvs/videotracking/bin/scenedetect", line 8, in
sys.exit(main())
File "/home/santiago/.virtualenvs/videotracking/local/lib/python2.7/site-packages/scenedetect/main.py", line 58, in main
cli.main(obj=cli_ctx)   # Parse CLI arguments with registered callbacks.
File "/home/santiago/.virtualenvs/videotracking/local/lib/python2.7/site-packages/click/core.py", line 792, in main
ctx.exit()
File "/home/santiago/.virtualenvs/videotracking/local/lib/python2.7/site-packages/click/core.py", line 404, in exit
self.close()
File "/home/santiago/.virtualenvs/videotracking/local/lib/python2.7/site-packages/click/core.py", line 494, in close
cb()
File "/home/santiago/.virtualenvs/videotracking/local/lib/python2.7/site-packages/scenedetect/cli/context.py", line 397, in process_input
output_dir=self.image_directory)
File "/home/santiago/.virtualenvs/videotracking/local/lib/python2.7/site-packages/scenedetect/cli/context.py", line 225, in _generate_images
for start, end in scene_list
AttributeError: 'list' object has no attribute 'stop'
0%|                                              | 0/27 [00:00<?, ?images/s]

Hi @santiagodemierre;
Good find!  It looks like this only affects Python 2.7.  Are you able to upgrade to Python 3?
I have filed a new issue (#174) to track the resolution for that.  This is definitely a bug - I'll try to roll a fix out promptly (may have to roll out v0.5.4).
Thank you for letting me know, and sorry about the inconvenience!

Thank you all for your feedback and support.  All future CLI and API changes will now be targeted for PySceneDetect v0.6.  Any additional releases under v0.5.x will strictly be to address any major bugs.
Users wishing to provide feedback on upcoming planned API and CLI changes are free to do so in #177.  I especially encourage users using the Python API to review the upcoming changes, and to provide any feedback if a transition plan is required to implement these changes in a non-breaking way.  Although most of the planned changes will not break the most widely used APIs, your feedback is important to ensuring that the new changes take into account most potential use cases, support future extensibility, and can be integrated in a way that has minimal impact on existing dependencies.
Any additional bug reports found in existing v0.5 versions should be submitted as a new issue.


Use of Js future inside spawn_blocking code

Is it possible to use JS Futures in the context of spawn_blocking? A use case is, for example, the use of OPFS, which has a synchronous file handle that can only be used in a web worker. However, to obtain the file handle, two calls that return Promises are necessary.
This is a sample code that should be put inside a spawn_blocking closure:
let window = web_sys::window().unwrap();
let navigator = window.navigator();
let root: FileSystemDirectoryHandle = JsFuture::from(navigator.storage().get_directory()).await?.into();
let new_file: FileSystemFileHandle = JsFuture::from(root.get_file_handle_with_options(
    file.name().as_str(),
    FileSystemGetFileOptions::new().create(true)
)).await?.into();
let write_handle: FileSystemSyncAccessHandle = JsFuture::from(new_file.create_sync_access_handle()).await?.into();

Hi @faxioman :)
I haven't checked if that would be possible, but I would recommend doing async jobs only in the main thread, while running blocking heavy jobs in spawn_blocking. Is it possible for you to split the IO logic and calculation logic?

Hi @temeddix!
I've tried to keep the acquisition of the FileSystemSyncAccessHandle in the main thread, utilizing promises/futures for this. Ideally, I would then pass the obtained handle to the spawn_blocking part, especially since the synchronous APIs of OPFS can only be used from a web worker.
However, I encounter the following error:
`*mut u8` cannot be sent between threads safely [E0277]
Help: within `{closure@src/lib.rs:121:47: 121:54}`, the trait `Send` is not implemented for `*mut u8`, which is required by `{closure@src/lib.rs:121:47: 121:54}: Send`
Note: required because it appears within the type `PhantomData<*mut u8>`
Note: required because it appears within the type `wasm_bindgen::JsValue`
Note: required because it appears within the type `Object`
Note: required because it appears within the type `FileSystemSyncAccessHandle`
Note: required because it's used within this closure Note: required by a bound in `spawn_blocking`

Theoretically, the handle should be sharable between the main thread and the web worker, as I have enabled shared wasm memory. I suspect that the issue may be more related to Rust treating the code inside spawn_blocking as if it were a separate thread, expecting the FileSystemSyncAccessHandle to implement Send.
Unfortunately, I don't have strong skills in Rust yet... but do you think there is something on the Rust side that could allow this type of transfer?
I also want to compliment you on the brilliant approach you have implemented to truly simplify the use of web workers in this context. 💪

My example couldn't work anyway because the create_sync_access_handle method needs to be executed in a worker and returns a promise.
We decided to create a new spawn method that isn't provided by Tokio and that only exists when compiling with wasm bindgen. So:

spawn: uses JS futures (I've noticed the signature changed compared to Tokio, with the removal of Send, since wasm bindgen futures are not Send)
spawn_blocking: uses web workers with callable, no futures
spawn_web_worker [new method]: uses web workers with futures, allowing the management of those particular cases that require futures in a web worker context. This method is identical to spawn_block, but expects Futures instead of Callables.

With this new method we're able to use opfs sync API 👍

Happy to see that you could come up with your own solution! Indeed the goal of tokio_with_wasm is to keep the API aligned with the real tokio. Thank you for sharing the details with us 👍


Arnold batch rendering refactor

This refactors the ArnoldRender node to use the new renderer backend that we implemented for the InteractiveArnoldRender node. Rather than generating ass files and rendering them in a separate process, we now spawn our own threads and output the scene via the Arnold API directly within a Gaffer process.
I'm still in the (slow) process of tracking down an intermittent thread-related crash when doing batch renders with this, but it'd be valuable to me to get a review now, and ideally also get some testing done by the dev team at IE.

Updated with @danieldresser's compilation fix for GCC 4.1.


Dense layer throwing error with inputs from Keras Concatenate layer

I think this is the most weird error I have ever seen. I concatenated the outputs of max_pool and average_pool using two different methods and passed the output to another dense layer as :
1)   concatenated_layer = tf.concat([max_pool_output, avg_pool_output], axis=1)
      fc_layer = tf.layers.dense(concatenated_layer, 1024, tf.nn.relu)     # works fine

2) concatenated_layer = keras.layers.Concatenate([max_pool_output, avg_pool_output])
    fc_layer = tf.layers.dense(concatenated_layer, 1024, tf.nn.relu)     # throws error

The error thrown is this:
AttributeError                            Traceback (most recent call last)
<ipython-input-26-7320655fd554> in <module>()
----> 1 fc_layer = tf.layers.dense(concatenated_layer, 1024,tf.nn.relu,)

~/anaconda2/envs/Kaggle/lib/python3.5/site-packages/tensorflow/python/layers/core.py in dense(inputs, units, activation, use_bias, kernel_initializer, bias_initializer, kernel_regularizer, bias_regularizer, activity_regularizer, trainable, name, reuse)
    213                 trainable=trainable,
    214                 name=name,
--> 215                 dtype=inputs.dtype.base_dtype,
    216                 _scope=name,
    217                 _reuse=reuse)

AttributeError: 'Concatenate' object has no attribute 'dtype'

As the incoming inputs are all float32, shouldn't the dense layer infer that itself?

keras.layers.Concatenate  is a class. Concatenate() returns a class instance, and it only expects an axis argument.
You could either:

Instantiate the class, then call it:

y = keras.layers.Concatenate(axis=-1)([x1, x2])

Use its functional interface, which is equivalent

y = keras.layers.concatenate([x1, x2], axis=-1)

I recommend 2).


Credit Calculation | Lowercase labels for renewable fuel in relation within the Default Carbon Intensities table |1|

https://trello.com/c/GJaNHRCj/1371-credit-calculation-lowercase-labels-for-renewable-fuel-in-relation-within-the-default-carbon-intensities-table-1

 Credit Calculation | Lowercase labels for renewable fuel in relation within the Default Carbon Intensities table |1|


Show most recent scheduling errors

On the TaskName->TableName page, the SCHEDULING ERRORS was previously TBD. Now we have the API for it: GET /tasks/generator/{tableNameWithType}/{taskType}/debug

Codecov Report

Merging #9161 (6f71c14) into master (fb4966b) will decrease coverage by 24.90%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master    #9161       +/-   ##
=============================================
- Coverage     60.15%   35.25%   -24.91%
+ Complexity     4862      185     -4677
=============================================
  Files          1836     1848       +12
  Lines         98217    98570      +353
  Branches      14928    14966       +38
=============================================
- Hits          59086    34746    -24340
- Misses        34704    60914    +26210
+ Partials       4427     2910     -1517

Flag
Coverage Δ

integration1
26.29% <ø> (?)

integration2
?

unittests1
?

unittests2
15.37% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...in/java/org/apache/pinot/spi/utils/BytesUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

.../java/org/apache/pinot/spi/utils/BooleanUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...java/org/apache/pinot/spi/trace/BaseRecording.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...java/org/apache/pinot/spi/trace/NoOpRecording.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ava/org/apache/pinot/spi/config/table/FSTType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ava/org/apache/pinot/spi/config/user/RoleType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ava/org/apache/pinot/spi/data/MetricFieldSpec.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...ava/org/apache/pinot/spi/utils/NullValueUtils.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...java/org/apache/pinot/common/tier/TierFactory.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...a/org/apache/pinot/spi/config/table/TableType.java
0.00% <0.00%> (-100.00%)
:arrow_down:

... and 1339 more

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Just tried this out. I'm not seeing the exception message be picked up. For example, here the response has only errors, and no success TS, but Scheduling Errors remains blank

A sample response will look like this, for your reference:
[
  {
    "tableNameWithType": "githubEvents_OFFLINE",
    "taskType": "MergeRollupTask",
    "mostRecentSuccessRunTS": [],
    "mostRecentErrorRunMessages": {
      "2022-08-05T05:44:00.267Z": "java.lang.IllegalStateException: Dummy exception\n\tat org.apache.pinot.plugin.minion.tasks.mergerollup.MergeRollupTaskGenerator.generateTasks(MergeRollupTaskGenerator.java:135)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:536)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:620)\n\tat org.apache.pinot.controller.helix.core.minion.CronJobScheduleJob.execute(CronJobScheduleJob.java:53)\n\tat org.quartz.core.JobRunShell.run(JobRunShell.java:202)\n\tat org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)\n",
      "2022-08-05T05:45:00.005Z": "java.lang.IllegalStateException: Dummy exception\n\tat org.apache.pinot.plugin.minion.tasks.mergerollup.MergeRollupTaskGenerator.generateTasks(MergeRollupTaskGenerator.java:135)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:536)\n\tat org.apache.pinot.controller.helix.core.minion.PinotTaskManager.scheduleTask(PinotTaskManager.java:620)\n\tat org.apache.pinot.controller.helix.core.minion.CronJobScheduleJob.execute(CronJobScheduleJob.java:53)\n\tat org.quartz.core.JobRunShell.run(JobRunShell.java:202)\n\tat org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)\n"
    }
  }
]

cc @saurabhd336

@joshigaurava please help review

Please eliminate code that is no longer required rather than simply commenting it out.

Looks like the text is spilling out of the Scheduling errors box. Can you just make the text box take up all the space from from left to right, instead of right aligned?
Also, the timezone of the Previous Fire Time and Next Fire Time is incorrect. The response says it is in America/Los_Angeles, but UI shows as GMT

Also, the timezone of the Previous Fire Time and Next Fire Time is incorrect. The response says it is in America/Los_Angeles, but UI shows as GMT

@npawar, Server is sending PreviousFireTime and NextFireTime in epoch format that's why creating date object from that UI shows user's local time.

lgtm functionally

Will merge once @joshigaurava approves

@satishwaghela can you please post an updated screenshot? For a UI change, it helps in correlating code with the output.

@satishwaghela can you please post an updated screenshot? For a UI change, it helps in correlating code with the output.


osc-core code changes for sdn sdk 2.0.0 version

Modified osc-core files from sdn-api version 2.0.0.
Compilation done : eclipseand mvn
Testing done :  on Newton setup with new nsc plugin and osc-core changes.

@karimull please fix the build


docs(operators): fix @return docs

With this PR I'd like to fix the most operators' docs that were never fixed since pipeable operators were introduced. The old docs were pointing that operators were returning Observables which is not the case anymore. So I mostly added couple of words saying that operators are returning functions that return an Observable that does something.
I also fixed types that operator functions return, mostly from some Observable type to some OperatorFunction type. The official docs are actually correctly inferring return type, but the sentences were not in compliance with the type (e.g. map's #Returns section).
I also added couple of new @return and @name for some of the operators that were missing them and I modified some @return docs to better describe what returned Observables are doing.
From the src/internal/operators folder, these files were left unchanged:

publishBehavior.ts
publishReplay.ts
concat.ts
zipAll.ts

as they lack documentation.

I'm really sorry, I accidentally closed this PR. I still want it to be reviewed and considered for merging.

I'm so sorry. I love the spirit of this PR, but I'm afraid I didn't notice it in time and there are conflicts because it's quite large.
Also there's bound to be conflicts in #5729 if we merge this, and that has some very important work in it. If you have the time to do this work after #5729 lands, I'd love to see it. Otherwise, I'm so sorry, but I'll have to mark this as blocked.

@benlesh Thanks for letting me know. I'd love to work on this one once again after #5729 is merged to master. I'll wait, rebase and ping you once I update this PR. Also, looks like #5729 is gonna remove lot's of stuff (if not all) from my other PR: #5462. If you have time to take a look at it, maybe there are some commits that could still land to master after #5729 is merged.

@benlesh, a friendly ping.
I've seen some other refactoring PRs, do I need to wait for them to be merged or you can take a look at this now?
Also, I'd like to discuss @name usage: some @name lines were removed over time from some of the operators, while so many other still have them. After I rebased master, some @name lines may have been added. I'd like to create another PR solving this issue: either removing @name lines from every operator or either reverting removed @name lines to every operator. What should I do with them?

A lot of that was old from when we were using ES doc. I've fixed a few as I had time but not many. They should be updated to have only what's necessary in them now that our docs site uses the TypeScript information. But you'll want to run it to check.

I see. Thanks a lot @benlesh, I agree we should only have stuff that is used. I can check it (and possibly remove it) with my other PR that removes ES Docs stuff.

Okay, now that things have settled down a bit, it's probably safer to update these if you want to give it a shot. If there's another PR you have that covers this one, I'll let you close this.

@benlesh, updated. The other PR I mentioned here is not related to this one. I just wanted to let you know that if there are places in this PR where I have re-introduced @name lines in the docs, I did that accidentally when I was resolving conflicts. But, since my other PR is removing all ES Docs related stuff, I could remove all @name lines from every operator in that PR, if you don't mind.

@benlesh I'm rebasing this third time 😄 I have now included newly added switchScan operator and I have removed types that were usually written in brackets {} after @return statements - I tested and found out that the docs generator have never included what was written there, but they rather took what was declared as a return type of the function - which is really what we need.
I've seen some of the operators having removed @return statements from the docs (which this PR reverted), so please let me know do we need this or I should go and change this PR by removing every @return statement from every operator.


Load key - error in libcrypto

When using ssh from this port, I get an error when I want to connect to a machine with my already existing ssh-key: error in libcrypto.
When I create a new ssh-key with the ssh-keygen from this port, it does work. But it would be a pain if everyone that uses the current ssh that's in IBM's /bin/ssh, has to create a new ssh-key and implement this into their scripting.
I did find a workaround for using the current ssh-key: adding a newline at the end of the private key file.
BEFORE:
-----BEGIN OPENSSH PRIVATE KEY-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
-----END OPENSSH PRIVATE KEY-----

AFTER:
-----BEGIN OPENSSH PRIVATE KEY-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx==
-----END OPENSSH PRIVATE KEY-----

Why does it work with the current /bin/ssh and not with the ssh from this port?
When I create a new ssh-key with the ssh-keygen from this port, I don't see an extra newline at the end in the private key. But that is working well...
It would be a pain if everyone has to create a new ssh-key, or has to manually add a newline to the end of the private key. Is there something you could change in this port to make it compatible with existing private keys?

I see in the latest version you gave me the option to use the default /bin/ssh:
Openssh has been installed with the prefix "zot" under bin/zotssh to avoid collision with z/OS /bin/ssh.
If you prefer to use OpenSSH as ssh, source zopen-config with the option --override-zos-tools.
Or add $ZOPEN_ROOTFS/usr/local/altbin to your $PATH.

That's great! No problems with ssh, and still the abilty to enjoy the ssh-copy-id and the other options of the Z Open Tools's ssh!
Thanks!

Great, FYI, we've done this for a few more tools - https://github.com/orgs/ZOSOpenTools/discussions/825.


doc(README.md): specify subcharttype name

Description

Specify the name of the subchart type indicated in the text

How to review?

Check helmGlossary

Maybe @quintush ?

Hello @dancer1325,
Thanks for the detailed improvements.
Gave some feedback on it.
Greetings,
@quintush


Signals do not get executed

Hello everyone,
I have the following problem.
I use the latest git version of zenbot on Bitfinex with the forex_analytics strategy. Bit it seems that the signals do not get executed. I have no buying / bought / selling / sold states and no orders are created. Here is the log (--debug enabled, without the top, to make it a little bit smaller). No errors are visible (the 3 order-errors are, because I created and cancelled an order manually on bitfinex).
I use it inside docker. The parameters are
trade --debug --strategy forex_analytics --modelfile=/app/models/bitfinex.LTC-BTC.json bitfinex.LTC-BTC
I hope, someone can help.
..........
2017-10-24 09:30:00  0.0101550 LTC-BTC   +0.49%     2442   67 +++        buy
2017-10-24 10:00:00  0.0101780 LTC-BTC   +0.23%     1693   68 +++        buy
2017-10-24 10:30:00  0.0101990 LTC-BTC   +0.21%     1612   69 +++        buy
2017-10-24 11:00:00  0.0101750 LTC-BTC   -0.24%     3299   67 +++        buy
2017-10-24 11:30:00  0.0102480 LTC-BTC   +0.72%     5020   69 +++        buy
2017-10-24 12:00:00  0.0102770 LTC-BTC   +0.28%     7454   70 +++        buy
---------------------------- STARTING LIVE TRADING ----------------------------
Press  l  to list available commands.

WebSockets: We are now fully connected and authenticated.
2017-10-24 12:30:00  0.0103520 LTC-BTC   +0.73%     6017   73 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.62%

Warning: Order<PHONE_NUMBER>7 not found in cache for wsUpdateOrder (manual order?).

Warning: Order<PHONE_NUMBER>7 not found in cache for wsUpdateOrder (manual order?).

Warning: Order<PHONE_NUMBER>7 not found in cache for wsUpdateOrderCancel (manual order?).
2017-10-24 13:00:00  0.0102980 LTC-BTC   -0.52%     5509   68 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.11%
2017-10-24 13:30:00  0.0103200 LTC-BTC   +0.21%     5338   69 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.32%
2017-10-24 14:00:00  0.0103860 LTC-BTC   +0.64%     6792   72 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.94%
2017-10-24 14:30:00  0.0103580 LTC-BTC   -0.27%     3000   69 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.68%
2017-10-24 15:00:00  0.0103520 LTC-BTC   -0.06%     1996   69 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.62%
2017-10-24 15:30:00  0.0103280 LTC-BTC   -0.23%     2087   66 +++        buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -1.39%
2017-10-24 16:00:00  0.0102500 LTC-BTC   -0.76%     3338   59 ++         buy  0.00000000 LTC  0.02663940 BTC   +0.00%   -0.64%
2017-10-24 16:30:00  0.0100510 LTC-BTC   -1.94%     6618     - 46       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.32%
2017-10-24 17:00:00  0.0100010 LTC-BTC   -0.50%     4399    -- 44       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.83%
2017-10-24 17:30:00  0.0100480 LTC-BTC   +0.47%     3098     - 47       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.35%
2017-10-24 18:00:00  0.0100710 LTC-BTC   +0.23%     4881     - 48       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.12%

WebSockets Error: Connection closed. Retrying every 10 seconds.

WebSockets: We are now fully connected and authenticated.

WebSockets Error: Connection closed. Retrying every 10 seconds.

WebSockets: We are now fully connected and authenticated.
2017-10-24 18:30:00  0.0100740 LTC-BTC   +0.03%     5763     - 48       sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +1.09%
2017-10-24 19:00:00  0.0100990 LTC-BTC   +0.25%     3670   50 +         sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +0.84%
2017-10-24 19:30:00  0.0101730 LTC-BTC   +0.73%     7001   55 ++        sell  0.00000000 LTC  0.02663940 BTC   +0.00%   +0.11%

I did observe the same issue with forex_analytics. Sims work good. Live don't trade.

Same problem here.. forez analytics but with poloniex

Im having the same issue with on Bitfinex with a modified trend_ema

Closing this one in favor of #868


SOLR-16959: Make CoresLocator class configurable

https://issues.apache.org/jira/browse/SOLR-16959
Description
I would like to be able to hook into the process of discovering and persisting core descriptors. This allows to work with core descriptors not stored locally, or replicated elsewhere.
Solution
For this purpose, I propose to make the CoresLocator instance configurable, pretty much like other services (e.g., ConfigSetService, some handlers) are already configurable. Attached PR creates a new "coresLocator" parameter in solr.xml in order to achieve this. Because it is created outside of the CoreContainer (it is needed to load a CoreContainer), constructor of a custom CoresLocator receives a NodeConfig object (and not a CoreContainer) that it can use to lookup other parameters, if required.
Tests
I added new unit tests to validate the correct instantiation of a CoresLocator.
Checklist
Please review the following and check all that apply:

[x] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
[x] I have created a Jira issue and added the issue ID to my pull request title.
[x] I have given Solr maintainers access to contribute to my PR branch. (optional but recommended)
[x] I have developed this patch against the main branch.
[x] I have run ./gradlew check.
[x] I have added tests for my changes.
[x] I have added documentation for the Reference Guide

Can you please add a CHANGES.txt note in the 9.4 section, probably in the "Improvements" section?  A brief sentence would do like "Make the internal CoresLocator implementation configurable in solr.xml"

@dsmiley That's done.


Import all pregenerated headers

Codecov Report

Merging #79 (feade04) into master (7fe4df8) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #79   +/-   ##
=======================================
  Coverage   85.64%   85.64%
=======================================
  Files          17       17
  Lines         641      641
=======================================
  Hits          549      549
  Misses         92       92

Impacted Files
Coverage Δ

src/types/uavcan/node/ExecuteCommand_1_0.h
79.09% <ø> (ø)

src/types/uavcan/node/Health_1_0.h
88.09% <ø> (ø)

src/types/uavcan/node/Heartbeat_1_0.h
75.00% <ø> (ø)

src/types/uavcan/node/ID_1_0.h
75.55% <ø> (ø)

src/types/uavcan/node/Mode_1_0.h
88.09% <ø> (ø)

src/types/uavcan/node/Version_1_0.h
81.48% <ø> (ø)

Continue to review full report at Codecov.

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


Question: official add-ons in the Wiki

Description
I was wondering if official Add-Ons (e.g. ExoticGarden) related information should be added to the articles (marked clearly as "extra content"). E.g. it would be great to list the plants which produce Dusts

As long as it is clearly marked as information related to Addons and is beneficial to the end user, I don't see any reason why that info shouldn't be mentioned on the wiki.
Also please ask questions like that on our discord server, if possible, it's much easier to manage requests like this there, we have a designated #questions channel and around 2000 people who could potentially answer these questions. It also wouldn't pollute the Issue Tracker as much.


Implement Face Swapping

In awesome face operation folder

I worked before face swapping with images, can i work with this new issue?. Please assign me in this issue.

u can work on it!


Disable editing in support when subsequent application exists

Context
We currently allow editing of details on any application form in support. When a candidate has an apply 1 form followed by an apply 2 form, we generally want to only edit the latest entry as their old form is no longer relevant.
Changes proposed in this pull request
Hide edit links in support on an application form when the application is not the latest one in the chain.
Guidance to review
Per commit.
Does the logic make sense?
Are there any cases I've missed here?
Link to Trello card
https://trello.com/c/UNpmwpgT/4287-prevent-changes-being-made-to-an-applicants-application-in-apply1-when-they-have-an-application-in-apply2
Things to check

[x] This code does not rely on migrations in the same Pull Request
[x] If this code includes a migration adding or changing columns, it also backfills existing records for consistency
[x] API release notes have been updated if necessary
[x] Required environment variables have been updated added to the Azure KeyVault

Looking good, I think we missed work experience, reverting rejections and undoing refusals of referees, could we include them as well?

Good spot! As discussed I'll raise a card for the work experience one as it's currently broken in a different way (the change links go to the candidate interface). The others I'll fix here.


csv_split on null values

I think I'm having an issue related to csv_split, namely if one of my rows has a last column null value it looks something like this:
id,A,B,C
1,1,2,3
2,1,2,
and tippecanoe gives me an error that the number of columns is not correct for id=2, I'm forced to put an artificial "NULL" value there (which is a problem for me later because it's supposed to be an integer value, but 0 and -1 are used)

This will be fixed in https://github.com/mapbox/tippecanoe/pull/574

Hi Eric,
To answer your question, the command I used was: tippecanoe -pk -pf -pt -ps --output-to-directory outfolder in.csv
but it looks like you found the bug in any case!
Thank you!
-Matt


fix:  add pre-filled option on adding an option to a checkbox or radio button

Description
Fixes #8503  (issue)
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?
Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] 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

Test coverage results :test_tube:
:red_circle: Total coverage has decreased
// Code coverage diff between base branch:release and head branch: fix/add-option

Status
File
% Stmts
% Branch
% Funcs
% Lines

:red_circle:
total
55.01 (0)
36.5 (0)
34.72 (-0.01)
55.4 (-0.01)

:green_circle:
app/client/src/components/propertyControls/KeyValueComponent.tsx
15.79 (0.08)
24 (0)
0 (0)
17.14 (-0.05)

:red_circle:
app/client/src/utils/autocomplete/TernServer.ts
52.71 (-0.23)
40.83 (-0.84)
36.21 (0)
56.74 (-0.25)

/ok-to-test sha=0acf07f

/ok-to-test sha=9fdd3ad

/ok-to-test sha=066c40b

@vicky-primathon tested this PR. DP looks good. Checkbox group and Radiogroup widget now has pre-filled name and value with prefix added.
Moving to Done.


Feature API token

This is a feature that Mohannad added to the original client, it was never merged into master, but this is branch is the version currently used in staging and production.

+1


BUG Python依赖安装失败

青龙版本：v2.10.13
操作步骤：依赖管理→Python3→新建依赖→numpy→确定
参考了类似问题 #990 中大佬 @dclemon 的解答：

在网页端依赖管理里面选linux依赖，依次安装python3-dev,gcc,musl-dev,libxslt-dev，安装完后再安装python依赖，wheel和lxml

但不幸的是，于我无效...
下面是从网页端获取的完整日志：
开始安装依赖 numpy，开始时间 2022/1/11 下午8:41:18

Collecting numpy

  Using cached numpy-1.22.0.zip (11.3 MB)

  Installing build dependencies: started

  Installing build dependencies: finished with status 'done'

  Getting requirements to build wheel: started

  Getting requirements to build wheel: finished with status 'done'

    Preparing wheel metadata: started

    Preparing wheel metadata: finished with status 'done'

Building wheels for collected packages: numpy

  Building wheel for numpy (PEP 517): started

  Building wheel for numpy (PEP 517): still running...

  Building wheel for numpy (PEP 517): finished with status 'error'

  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py build_wheel /tmp/tmpuuyb6quk
       cwd: /tmp/pip-install-j2gz45dm/numpy
  Complete output (251 lines):
  Processing numpy/random/_bounded_integers.pxd.in
  Processing numpy/random/bit_generator.pyx
  Processing numpy/random/_bounded_integers.pyx.in
  Processing numpy/random/_generator.pyx
  Processing numpy/random/_pcg64.pyx
  Processing numpy/random/_sfc64.pyx
  Processing numpy/random/mtrand.pyx
  Processing numpy/random/_philox.pyx
  Processing numpy/random/_mt19937.pyx
  Processing numpy/random/_common.pyx
  Cythonizing sources
  INFO: blas_opt_info:
  INFO: blas_armpl_info:
  INFO: customize UnixCCompiler
  INFO:   libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: blas_mkl_info:
  INFO:   libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: blis_info:
  INFO:   libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: openblas_info:
  INFO:   libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: accelerate_info:
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_3_10_blas_threads_info:
  INFO: Setting PTATLAS=ATLAS
  INFO:   libraries tatlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_3_10_blas_info:
  INFO:   libraries satlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_blas_threads_info:
  INFO: Setting PTATLAS=ATLAS
  INFO:   libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_blas_info:
  INFO:   libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: blas_info:
  INFO:   libraries blas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: blas_src_info:
  INFO:   NOT AVAILABLE
  INFO:
  INFO:   NOT AVAILABLE
  INFO:
  non-existing path in 'numpy/distutils': 'site.cfg'
  INFO: lapack_opt_info:
  INFO: lapack_armpl_info:
  INFO:   libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: lapack_mkl_info:
  INFO:   libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: openblas_lapack_info:
  INFO:   libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: openblas_clapack_info:
  INFO:   libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: flame_info:
  INFO:   libraries flame not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_3_10_threads_info:
  INFO: Setting PTATLAS=ATLAS
  INFO:   libraries tatlas,tatlas not found in /usr/local/lib
  INFO:   libraries tatlas,tatlas not found in /usr/lib
  INFO:   libraries tatlas,tatlas not found in /usr/lib/
  INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_3_10_info:
  INFO:   libraries satlas,satlas not found in /usr/local/lib
  INFO:   libraries satlas,satlas not found in /usr/lib
  INFO:   libraries satlas,satlas not found in /usr/lib/
  INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_threads_info:
  INFO: Setting PTATLAS=ATLAS
  INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
  INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib
  INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib/
  INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>
  INFO:   NOT AVAILABLE
  INFO:
  INFO: atlas_info:
  INFO:   libraries f77blas,cblas,atlas not found in /usr/local/lib
  INFO:   libraries f77blas,cblas,atlas not found in /usr/lib
  INFO:   libraries f77blas,cblas,atlas not found in /usr/lib/
  INFO: <class 'numpy.distutils.system_info.atlas_info'>
  INFO:   NOT AVAILABLE
  INFO:
  INFO: lapack_info:
  INFO:   libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']
  INFO:   NOT AVAILABLE
  INFO:
  INFO: lapack_src_info:
  INFO:   NOT AVAILABLE
  INFO:
  INFO:   NOT AVAILABLE
  INFO:
  INFO: numpy_linalg_lapack_lite:
  INFO:   FOUND:
  INFO:     language = c
  INFO:     define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
  INFO:
  running bdist_wheel
  running build
  running config_cc
  INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options
  running config_fc
  INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
  running build_src
  INFO: build_src
  INFO: building py_modules sources
  creating build
  creating build/src.linux-x86_64-3.8
  creating build/src.linux-x86_64-3.8/numpy
  creating build/src.linux-x86_64-3.8/numpy/distutils
  INFO: building library "npymath" sources
  WARN: Could not locate executable armflang
  WARN: Could not locate executable gfortran
  WARN: Could not locate executable f95
  WARN: Could not locate executable ifort
  WARN: Could not locate executable ifc
  WARN: Could not locate executable lf95
  WARN: Could not locate executable pgfortran
  WARN: Could not locate executable nvfortran
  WARN: Could not locate executable f90
  WARN: Could not locate executable f77
  WARN: Could not locate executable fort
  WARN: Could not locate executable efort
  WARN: Could not locate executable efc
  WARN: Could not locate executable g77
  WARN: Could not locate executable g95
  WARN: Could not locate executable pathf95
  WARN: Could not locate executable nagfor
  WARN: Could not locate executable frt
  WARN: don't know how to compile Fortran code on platform 'posix'
  Running from numpy source directory.
  /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:2077: UserWarning:
      Optimized (vendor) Blas libraries are not found.
      Falls back to netlib Blas library which has worse performance.
      A better performance should be easily gained by switching
      Blas library.
    if self._calc_info(blas):
  /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:2077: UserWarning:
      Blas (http://www.netlib.org/blas/) libraries not found.
      Directories to search for the libraries can be specified in the
      numpy/distutils/site.cfg file (section [blas]) or by setting
      the BLAS environment variable.
    if self._calc_info(blas):
  /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:2077: UserWarning:
      Blas (http://www.netlib.org/blas/) sources not found.
      Directories to search for the sources can be specified in the
      numpy/distutils/site.cfg file (section [blas_src]) or by setting
      the BLAS_SRC environment variable.
    if self._calc_info(blas):
  /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:1902: UserWarning:
      Lapack (http://www.netlib.org/lapack/) libraries not found.
      Directories to search for the libraries can be specified in the
      numpy/distutils/site.cfg file (section [lapack]) or by setting
      the LAPACK environment variable.
    return getattr(self, '_calc_info_{}'.format(name))()
  /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:1902: UserWarning:
      Lapack (http://www.netlib.org/lapack/) sources not found.
      Directories to search for the sources can be specified in the
      numpy/distutils/site.cfg file (section [lapack_src]) or by setting
      the LAPACK_SRC environment variable.
    return getattr(self, '_calc_info_{}'.format(name))()
  Warning: attempted relative import with no known parent package
  /usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'
    warnings.warn(msg)

  [Errno 2] No such file or directory: 'g++'

  Traceback (most recent call last):
    File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 280, in <module>
      main()
    File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 204, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 230, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 450, in <module>
      setup_package()
    File "setup.py", line 442, in setup_package
      setup(**metadata)
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/core.py", line 169, in setup
      return old_setup(**new_attr)
    File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build.py", line 61, in run
      old_build.run(self)
    File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 144, in run
      self.build_sources()
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources
      self.build_library_sources(*libname_info)
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources
      sources = self.generate_sources(sources, (lib_name, build_info))
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources
      source = func(extension, build_dir)
    File "/tmp/pip-install-j2gz45dm/numpy/numpy/core/setup.py", line 701, in get_mathlib_info
      raise RuntimeError(
  RuntimeError: Broken toolchain: cannot link a simple C++ program. note: A compiler with support for C++11 language features is required.
  ----------------------------------------

  ERROR: Failed building wheel for numpy

Failed to build numpy

ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly

依赖安装失败，结束时间 2022/1/11 下午8:45:11，耗时 232.967 秒

这种问题一般是因为docker打包的环境不完整，看样子缺了几个c++的编译库，你可以用关键词docker、numpy搜索看看
------------------ 原始邮件 ------------------
发件人:                                                                                "whyour/qinglong"                                                                                @.>;
发送时间: 2022年1月11日(星期二) 晚上9:25
@.>;
<EMAIL_ADDRESS>主题: [whyour/qinglong] BUG Python依赖安装失败 (Issue #1068)
青龙版本：v2.10.13
操作步骤：依赖管理→Python3→新建依赖→numpy→确定
参考了类似问题 #990 中大佬 @dclemon 的解答：
在网页端依赖管理里面选linux依赖，依次安装python3-dev,gcc,musl-dev,libxslt-dev，安装完后再安装python依赖，wheel和lxml
但不幸的是，于我无效...
下面是从网页端获取的完整日志：
开始安装依赖 numpy，开始时间 2022/1/11 下午8:41:18 Collecting numpy   Using cached numpy-1.22.0.zip (11.3 MB)   Installing build dependencies: started   Installing build dependencies: finished with status 'done'   Getting requirements to build wheel: started   Getting requirements to build wheel: finished with status 'done'     Preparing wheel metadata: started     Preparing wheel metadata: finished with status 'done' Building wheels for collected packages: numpy   Building wheel for numpy (PEP 517): started   Building wheel for numpy (PEP 517): still running...   Building wheel for numpy (PEP 517): finished with status 'error'   ERROR: Command errored out with exit status 1:    command: /usr/bin/python3 /usr/lib/python3.8/site-packages/pep517/_in_process.py build_wheel /tmp/tmpuuyb6quk        cwd: /tmp/pip-install-j2gz45dm/numpy   Complete output (251 lines):   Processing numpy/random/_bounded_integers.pxd.in   Processing numpy/random/bit_generator.pyx   Processing numpy/random/_bounded_integers.pyx.in   Processing numpy/random/_generator.pyx   Processing numpy/random/_pcg64.pyx   Processing numpy/random/_sfc64.pyx   Processing numpy/random/mtrand.pyx   Processing numpy/random/_philox.pyx   Processing numpy/random/_mt19937.pyx   Processing numpy/random/common.pyx   Cythonizing sources   INFO: blas_opt_info:   INFO: blas_armpl_info:   INFO: customize UnixCCompiler   INFO:   libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: blas_mkl_info:   INFO:   libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: blis_info:   INFO:   libraries blis not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: openblas_info:   INFO:   libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: accelerate_info:   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_3_10_blas_threads_info:   INFO: Setting PTATLAS=ATLAS   INFO:   libraries tatlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_3_10_blas_info:   INFO:   libraries satlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_blas_threads_info:   INFO: Setting PTATLAS=ATLAS   INFO:   libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_blas_info:   INFO:   libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: blas_info:   INFO:   libraries blas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: blas_src_info:   INFO:   NOT AVAILABLE   INFO:   INFO:   NOT AVAILABLE   INFO:   non-existing path in 'numpy/distutils': 'site.cfg'   INFO: lapack_opt_info:   INFO: lapack_armpl_info:   INFO:   libraries armpl_lp64_mp not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: lapack_mkl_info:   INFO:   libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: openblas_lapack_info:   INFO:   libraries openblas not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: openblas_clapack_info:   INFO:   libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: flame_info:   INFO:   libraries flame not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_3_10_threads_info:   INFO: Setting PTATLAS=ATLAS   INFO:   libraries tatlas,tatlas not found in /usr/local/lib   INFO:   libraries tatlas,tatlas not found in /usr/lib   INFO:   libraries tatlas,tatlas not found in /usr/lib/   INFO: <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_3_10_info:   INFO:   libraries satlas,satlas not found in /usr/local/lib   INFO:   libraries satlas,satlas not found in /usr/lib   INFO:   libraries satlas,satlas not found in /usr/lib/   INFO: <class 'numpy.distutils.system_info.atlas_3_10_info'>   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_threads_info:   INFO: Setting PTATLAS=ATLAS   INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib   INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib   INFO:   libraries ptf77blas,ptcblas,atlas not found in /usr/lib/   INFO: <class 'numpy.distutils.system_info.atlas_threads_info'>   INFO:   NOT AVAILABLE   INFO:   INFO: atlas_info:   INFO:   libraries f77blas,cblas,atlas not found in /usr/local/lib   INFO:   libraries f77blas,cblas,atlas not found in /usr/lib   INFO:   libraries f77blas,cblas,atlas not found in /usr/lib/   INFO: <class 'numpy.distutils.system_info.atlas_info'>   INFO:   NOT AVAILABLE   INFO:   INFO: lapack_info:   INFO:   libraries lapack not found in ['/usr/local/lib', '/usr/lib', '/usr/lib/']   INFO:   NOT AVAILABLE   INFO:   INFO: lapack_src_info:   INFO:   NOT AVAILABLE   INFO:   INFO:   NOT AVAILABLE   INFO:   INFO: numpy_linalg_lapack_lite:   INFO:   FOUND:   INFO:     language = c   INFO:     define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64')]   INFO:   running bdist_wheel   running build   running config_cc   INFO: unifing config_cc, config, build_clib, build_ext, build commands --compiler options   running config_fc   INFO: unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options   running build_src   INFO: build_src   INFO: building py_modules sources   creating build   creating build/src.linux-x86_64-3.8   creating build/src.linux-x86_64-3.8/numpy   creating build/src.linux-x86_64-3.8/numpy/distutils   INFO: building library "npymath" sources   WARN: Could not locate executable armflang   WARN: Could not locate executable gfortran   WARN: Could not locate executable f95   WARN: Could not locate executable ifort   WARN: Could not locate executable ifc   WARN: Could not locate executable lf95   WARN: Could not locate executable pgfortran   WARN: Could not locate executable nvfortran   WARN: Could not locate executable f90   WARN: Could not locate executable f77   WARN: Could not locate executable fort   WARN: Could not locate executable efort   WARN: Could not locate executable efc   WARN: Could not locate executable g77   WARN: Could not locate executable g95   WARN: Could not locate executable pathf95   WARN: Could not locate executable nagfor   WARN: Could not locate executable frt   WARN: don't know how to compile Fortran code on platform 'posix'   Running from numpy source directory.   /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:2077: UserWarning:       Optimized (vendor) Blas libraries are not found.       Falls back to netlib Blas library which has worse performance.       A better performance should be easily gained by switching       Blas library.     if self._calc_info(blas):   /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:2077: UserWarning:       Blas (http://www.netlib.org/blas/) libraries not found.       Directories to search for the libraries can be specified in the       numpy/distutils/site.cfg file (section [blas]) or by setting       the BLAS environment variable.     if self._calc_info(blas):   /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:2077: UserWarning:       Blas (http://www.netlib.org/blas/) sources not found.       Directories to search for the sources can be specified in the       numpy/distutils/site.cfg file (section [blas_src]) or by setting       the BLAS_SRC environment variable.     if self._calc_info(blas):   /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:1902: UserWarning:       Lapack (http://www.netlib.org/lapack/) libraries not found.       Directories to search for the libraries can be specified in the       numpy/distutils/site.cfg file (section [lapack]) or by setting       the LAPACK environment variable.     return getattr(self, 'calc_info{}'.format(name))()   /tmp/pip-install-j2gz45dm/numpy/numpy/distutils/system_info.py:1902: UserWarning:       Lapack (http://www.netlib.org/lapack/) sources not found.       Directories to search for the sources can be specified in the       numpy/distutils/site.cfg file (section [lapack_src]) or by setting       the LAPACK_SRC environment variable.     return getattr(self, 'calc_info{}'.format(name))()   Warning: attempted relative import with no known parent package   /usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'define_macros'     warnings.warn(msg)         [Errno 2] No such file or directory: 'g++'         Traceback (most recent call last):     File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 280, in <module>       main()     File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 263, in main       json_out['return_val'] = hook(**hook_input['kwargs'])     File "/usr/lib/python3.8/site-packages/pep517/_in_process.py", line 204, in build_wheel       return _build_backend().build_wheel(wheel_directory, config_settings,     File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 230, in build_wheel       return self._build_with_temp_dir(['bdist_wheel'], '.whl',     File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir       self.run_setup()     File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup       super(_BuildMetaLegacyBackend,     File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup       exec(compile(code, file, 'exec'), locals())     File "setup.py", line 450, in <module>       setup_package()     File "setup.py", line 442, in setup_package       setup(**metadata)     File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/core.py", line 169, in setup       return old_setup(**new_attr)     File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/setuptools/init.py", line 153, in setup       return distutils.core.setup(attrs)     File "/usr/lib/python3.8/distutils/core.py", line 148, in setup       dist.run_commands()     File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands       self.run_command(cmd)     File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command       cmd_obj.run()     File "/tmp/pip-build-env-nnmicgq1/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run       self.run_command('build')     File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command       self.distribution.run_command(command)     File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command       cmd_obj.run()     File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build.py", line 61, in run       old_build.run(self)     File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run       self.run_command(cmd_name)     File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command       self.distribution.run_command(command)     File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command       cmd_obj.run()     File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 144, in run       self.build_sources()     File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 155, in build_sources       self.build_library_sources(libname_info)     File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 288, in build_library_sources       sources = self.generate_sources(sources, (lib_name, build_info))     File "/tmp/pip-install-j2gz45dm/numpy/numpy/distutils/command/build_src.py", line 378, in generate_sources       source = func(extension, build_dir)     File "/tmp/pip-install-j2gz45dm/numpy/numpy/core/setup.py", line 701, in get_mathlib_info       raise RuntimeError(   RuntimeError: Broken toolchain: cannot link a simple C++ program. note: A compiler with support for C++11 language features is required.   ----------------------------------------   ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly 依赖安装失败，结束时间 2022/1/11 下午8:45:11，耗时 232.967 秒
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.>

感谢解答 我去弄下库文件吧

https://github.com/whyour/qinglong/issues/1162#issuecomment-1041138224)
这个方法要好得多

#1162 (comment)) 这个方法要好得多

感谢提醒
在服务器命令行执行命令：apk add py3-numpy


stderr, QStandardPaths: XDG_RUNTIME_DIR not set

Hi all,
I'm new to wenbsocketd and just want to transmit a single message from python script. After going through the tutorial, I simply add print(message), stdout.flush() to my original python code. But things don't go well.
After I executed command: websocketd --port=8080 --staticdir=. python3 test.py
It gives the following error:

Any idea what might to wrong and how to make it work?
Many thanks.

Did you try it with some websocketd example scripts BTW, e.g. counter? I wonder if the result is same or different...
It seem that your python script uses some kinds of QT functionality that would only work when process is running from the console. OR, the python3 wrapper you use might be doing something funky. What OS do you use? Could you post your python3 --version here?

@asergeyev Thank you for your reply. It turned out that I cannot use cv2.imshow() to print some frames along with websocketd. After I commented the cv2.imshow() part, websocketd worked perfectly.


Better type narrowing for Matchers

Some functions such as map (code) use overloads to narrow the return type to Matcher<...> based on whether Parser or Matcher was provided as the argument.
Minor inconvenience here is that the documentation has to be repeated twice.

Some functions such as ab (code), abc (code) accept multiple parsers.
Fortunately, there is no combinatorial explosion - there are only two potential cases to consider. Currently there are no overloads (I didn't need it yet) but I might have to cover these holes eventually.

Some functions such as all (code), choice (code) accept unspecified number of parsers.
Some cases should be solvable with function overloads ("all args are Matchers"). Others - not so much ("any arg is a Matcher").

An alternative to function overloading would be conditional types. That would allow to save some duplicating comments and apply to more functions, not weighting the probability of practical occurrence.
Unfortunately, it seems like I'm facing the limitation of TypeScript (at least the version 4.9.4). StackOverflow question.
It might be possible to infer "correct" types for some of the functions with extra generic parameter. But not for all of them. For example, map function accepts Parser<TToken, TOptions, TValue1> but returns Parser<TToken, TOptions, TValue2> - the type has to be reconstructed somehow.
choice function would require type-level Any conditional utility type to narrow down successfully.

Update:
I was able to solve the type inference and reconstruction from argument types. I'm also positive about type-level Any - haven't written it down yet but can see how it is generally done.
I've ran into another issue now: r/typescript question - When inferring types based on arguments, it seems I'm losing the access to the type of the "slot" that might have its own type constraints.

I'll write down this contraption for history:
export function map<
  TParser1 extends Parser<TToken, TOptions, TValue1>,
  TMapper extends (v: TValue1, data: Data<TToken, TOptions>, i: number, j: number) => TValue2,
  TToken   = TParser1 extends Parser<infer T extends {}, any, any> ? T : TMapper extends (v: any, data: Data<infer T extends {}, any>, i: number, j: number) => any ? T : unknown,
  TOptions = TParser1 extends Parser<any, infer T extends {}, any> ? T : TMapper extends (v: any, data: Data<any, infer T extends {}>, i: number, j: number) => any ? T : unknown,
  TValue1  = TParser1 extends Parser<any, any, infer T extends {}> ? T : TMapper extends (v: infer T extends {}, data: Data<any, any>, i: number, j: number) => any ? T : unknown,
  TValue2  = ReturnType<TMapper>,
  TParser2 = TParser1 extends Matcher<TToken, TOptions, TValue1> ? Matcher<TToken, TOptions, TValue2> : Parser<TToken, TOptions, TValue2>
>(
  p: TParser1,
  mapper: TMapper
) {
  return (
    (data: Data<TToken, TOptions>, i: number) => mapInner(p(data, i), (v: TValue1, j) => mapper(v, data, i, j) as TValue2)
  ) as TParser2;
}

It does almost everything it needs, but it is not a perfect replacement for function overloads still.
The main difference is that inferred types collapse to unknown if can't be recovered from containing expression. I don't know whether there is any way to preserve some unresolved generic type parameters in an inferred type.
In any case, without something more specific for this case, there is no justification for replacing duplicating documentation of function overloads with this monstrocity.


Fix browser command with non-default root path.

Make the browser command easier to use when run against a
juttle-engine/juttle-service with a root path other than /. Do this by
fetching the server's root directory and comparing that to the path
provided in the --path argument. If the root directory isn't a prefix
of the --path argument, throw an error. Otherwise, take just the part
not covered by the --root argument and use that as the ?path= cgi
param in the url.
In juttle-engine-client, also fully resolve the path immediately
instead of several times in the function for each command.
Also update juttle-engine to rely on juttle-service's built-in
defaults with juttle-config.js and command-line overrides. This
simplifies the initialization steps a bit.
These changes caused the test coverage numbers to dip slightly below
the thresholds, so provide some additional options when creating the
engine to cover one additional branch, which got the coverage numbers
up again.
This PR depends on changes in juttle-service (https://github.com/juttle/juttle-service/pull/67). I can wait to merge this until we're ready to push a new juttle-service, or do an early juttle-service release (bumping the minor number), and update package.json for juttle-engine to depend on it.
@demmer @go-oleg @VladVega

+1


packrat

Re-run packrat initiation? Packages aren't feeding through properly when the repo is cloned for the first time.

I think this is fixed now. I cloned a new repo and it worked fine - with installations


How do I style the Label

I am using a sans-serif fontFamily and I need the label to take that fontFamily. Is this possible?

With #17 merged, you can pass in a className property to the component and then style whatever you want from the outside with CSS. Just target it via .className label { ... } or whatever the right CSS is to target what you want to style.


Warn message is missing when the path key doesn't start with slash

Hi team,
As per the open api spec, all the keys in the paths map should start with '/' as mentioned https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#pathsObject

Field Pattern
Type
Description

/{path}
Path Item Object
A relative path to an individual endpoint. The field name MUST begin with a slash. The path is appended (no relative URL resolution) to the expanded URL from the Server Object's url field in order to construct the full URL. Path templating is allowed. When matching URLs, concrete (non-templated) paths would be matched before their templated counterparts. Templated paths with the same hierarchy but different templated names MUST NOT exist as they are identical. In case of ambiguous matching, it's up to the tooling to decide which one to use.

Expectation:
When a path is not starting with '/', then parser should warn.
Below is the failing test:
@Test
public void testSimple() {
SwaggerParseResult result = new OpenAPIParser().readLocation("petstore.yaml", null, null);
assertEquals(result.getMessages().size(), 1);
}
Thanks,
Mohammed Rizwan

Closed by #894


Variance reduction over minibatches?

Hi, thanks for this great implementation!
I was wondering where the variance reduction method described in Appendix C.1 is present in this code. Also, is there an easy way to reproduce the results of Appendix D.1 on variance reduction?

Hi @ameya98,
The code I used is here: https://github.com/atong01/conditional-flow-matching/blob/6b3adb46750df045e9285f0b2833382ed87cec7a/runner/src/models/cfm_module.py#L203-L216
I believe something like this command will get you close to the results in D.1
#!/bin/bash
python src/train.py -m experiment=cfm \
  model=sbcfm,cfm,fm \
  +model.avg_size=1,2,4,8,16,32,64,128,256,512 \
  datamodule=twodim \
  datamodule.batch_size=512 \
  trainer.check_val_every_n_epoch=1 \
  trainer.max_epochs=1000 \
  seed=42,43,44,45,46 &

@ameya98 did it work for you?


The installed binary is not runnable

The bin/SwaggerValidator.phar binary that gets installed after a composer require cannot be executed.

could you post an example (simple, light) of source code that not working ?
Thanks in advance


[v11] Spark is not a framework dependency, middleware does not exist

I was bugged with https://github.com/laravel/framework/issues/50298
I think closing the issue was an overlook, as I still think this does not belong here.
I should have created the PR at first to better illustrate the issue, sorry for that 🙏
Cheers

Are you manually attaching that middleware to some routes? Or is this on a clean install?

Are you manually attaching that middleware to some routes? Or is this on a clean install?

I am not touching that middleware in any place.
I am pushing other middlewares in the ServiceProvider with Router::pushMiddlewareToGroup(), not sure if that can be anything related here. Those middlewares are not the spark one, or I am not trying to set another subscribed middleware.

Ok, I was able to find what was logging that into my app logs.
My editor static analyser was the culprit. I was able to reproduce the issue by forcing it to re-index the project files.
Whenever it reindexes that class the error is thrown, because "technically" the class should exists as subscribed is a perfectly valid key from that array. One should know before hand that to use "subscribed" alias you must first install the spark package, but what's the point ?
Can't that alias be registered by spark package ?
Feel free to close if you think it's ok as it is, but from my POV, even if I found this "by chance" and shouldn't be getting this error unless "i try to use the alias without installing the package", it makes more sense that this package alias to be registered by the package itself.
Cheers

Sorry, how do I recreate this issue on a fresh Laravel 11 application. We are registering that alias for convenience for Spark users. I don't see how just listing that in the aliases array would cause any issue? What do I need to type into a fresh Laravel 11 routes file to trigger an error?

Closing for now.


Unexpected end of JSON input error

This is my HTML File:

This is my script_rssapi.js code:
var objRss = new rss();
		var feedURL = "https://www.tu-braunschweig.de/marketing/aktuellesundtermine/aktuell/rssfeed.xml";
		var count = 7;
		objRss.displayAsinc(feedURL, "feed", 'pubDate','date','desc',count, 512);

If I try to run it, I get:
Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at setItems (feed.js:161)
    at Object.success (feed.js:244)
    at fire (jquery-1.11.3.js:3148)
    at Object.fireWith [as resolveWith] (jquery-1.11.3.js:3260)
    at done (jquery-1.11.3.js:9314)
    at XMLHttpRequest.callback (jquery-1.11.3.js:9718)

Am I doing something wrong?

What your doing looks ok to me, both your code and rss document ... I think it might have something to do with the configuration.
The feed url is https ... are calling from a secure connection too ? Does it work on the test page ? can you try with http instead a see if it's works ?
Can you post or send me by email your service/config.php file and lib/feed.js ?
Regards

Thank you for the quick response.
Yes, it's calling from a secure location.
Otherwise I think I'd get a Mixed Content Error, right?
Sure, config File looks like this:
$ALLOWED_DOMAINS = array('https://www.tu-braunschweig.de/marketing', 'https://redaktionssystem.tu-braunschweig.de/');
$BASE_FEED_URL = 'https://marketing.rz.tu-bs.de/marketing/test/cache/feeds';

And feed.js looks like this (I won't post the whole things, only the important part):
var serviceURL = 'https://marketing.rz.tu-bs.de/marketing/test/service/RSSget.php';
var loaderURL = 'https://marketing.rz.tu-bs.de/marketing/test/lib/loading_50.gif';

The files are all where they are supposed to be.

This is the test page: https://github.com/fberrizbeitia/RSS-API/blob/master/test.php

Ah, didn't see that one. If i paste the link in there and press try, absolutely nothing happens. I can test that one locally, right? Or do i need to use it on the webspace?

I get the same error and it happens at
setItem @ feed.js:161
success @ feed.je:244

What could it be?

I think the problem is in the config.php file ... You don't need to specify the whole path:
https://www.tu-braunschweig.de/marketing
just
https://www.tu-braunschweig.de
In you case I would also remove the "/" at the end. That may cause issues too.
Another thing I would do is include the www and non www variation of the domain, just to be safe.
I hope this help.

@breeaakdancc  can you provide more info on your issue. I might very well be also a problem in the configuration.
Can you post or send me by email your service/config.php file and lib/feed.js ?

@AlcuZan  I forgot something. To have the test page working you'll to add this domain to the white list:
https://marketing.rz.tu-bs.de

Now I get Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Seems a php coding error. Can you "un-comment" line 243 in /lib/feed.js
console.log(data)
We may get some more info there

@fberrizbeitia
my config.php:
<?php $ALLOWED_DOMAINS = array('https://localhost', 'https://localhost'); $BASE_FEED_URL = 'http://localhost/cache/feeds/'; ?>
and my feed.js:
http://pastebin.com/pe9Xs1YB

@breeaakdancc ... Can you try removing the https from one of the alloweed domains.
Also check on chrome -> developer tools -> nerwork -> XHR click on the RSSget.php look for the request header. In the header look for the Referer . The domain of the Referer  URL must be included in allowed doimain for the api to work.

@fberrizbeitia
Thanks. The Referer is localhost
But now I get also
500 (Internal Server Error)
And
PHP Warning:  file_get_contents(index.xml): failed to open stream: No such file or directory in /var/www/html/service/feedIndex.php on line 10, referer: http://localhost/test.php

Hi @breeaakdancc
You need to to specify a full URL in the input box if your using the test page or on the displayAsinc function call. Something like:
http://localhost/your-path/feed-name.xml
If you look at the warning is trying to access a file on the same directory not a URL on the web.
Cheers

@fberrizbeitia Uncommenting the console.log(data) in line 243 doesn't do anything! I tried alert(data) and also nothing happens there.

@AlcuZan  ... The CORS part is working. You can see the in the response header
Access-Control-Allow-Origin:https://marketing.rz.tu-bs.de
I think the error may be in the caching. Maybe folders permissions ? can you look at the log files, in cache/logs/requests ? Can you check inthe cache/feeds/ folder in some files were created?

requests.log is empty. cache/feeds only has the feed.xml from your package, which is also empty.

Can you check the permissions. Both the cache (and subfolders) and the service folders must have writing permissions. I think this may be the cause.

I have no idea how to do this

Not sure if I did it right. I right clicked on the folders  -> properties -> permissions -> checked every box
Doesn't do any good though

Are on windows ?. If so you can do this:

Right-click the directory, then choose Properties
Go to the Security tab
Find the IUSR account  (If IUSR is not in the list, add it by clicking Edit, then clicking Add, and then typing "IUSR" in the "Enter the object names to select" field.)
Highlight the user in the list, click Edit, and grant the account Modify and Write permissions

For screen shots refer to this page:
https://www.kbpublisher.com/kb/setting-up-folder-permissions-in-internet-information-services-(iis)_392.html

I use an FTP client to access the webspace, WinSCP.

https://winscp.net/eng/docs/ui_permissions

I did these steps for the files @fberrizbeitia  mentioned.
In the log file it says
POST /marketing/test/service/RSSget.php HTTP/1.1" 500 1
I have no idea what that tells me.

@fberrizbeitia sorry for the late reply.
I did use a full url: "https://www.heise.de/newsticker/heise-atom.xml"
what do I need to use as BASE_FEED_URL in my case? is BASE_FEED_URL='https://localhost/cache/feeds/'
is this right?

@fberrizbeitia  I solved the problem. It was because php5-curl and php5-xsl was not installed.
Thank you for this great API :)

Thanks @AlcuZan for pointing out the typo, I will correct and update the repo.
@breeaakdancc  I'm glad you solved the problem. Will add the php confoguration to the documentation.


Pods support / Example project

Added Example project: https://github.com/dkalaitzidis/SwiftyAvatar/issues/1
Added Pods support: https://github.com/dkalaitzidis/SwiftyAvatar/issues/2
Please change the SwiftyAvatar.podspec file accordingly to add your information.

Thank you for the read me corrections & pods support. I'm on vacations right now and it's little difficult to do the podspec changes and merge. If i don't merge this week you should expect a merge next monday. Thanks again.

No problem. Thanks for mentioning me in the readme.

Thank you for your work creating the pod, example & readme corrections


Failed Configs to be included in failed reports

Closes #2611
Fixes #2611  .
Did you remember to?

[X] Add test case(s)
[X] Update CHANGES.txt

We encourage pull requests that:

Add new features to TestNG (or)
Fix bugs in TestNG

If your pull request involves fixing SonarQube issues then we would suggest that you please discuss this with the
TestNG-dev before you spend time working on it.

@juherr - I have altered the logic to include all the below configurations

@BeforeGroups
@AfterGroups
@BeforeTest
@AfterTest
@BeforeSuite
@AfterSuite

when dealing with failures

@juherr

Could you add some tests with failing after configurations?

I don't think failed configurations would matter here because they wont be failing the tests. The tests would have already run to completion and a failure in @AfterTest|@AfterSuite|@AfterGroups don't affect the outcome of the test execution no ?


Additional instructions for SPWebServiceInstance.Provision Method

Note: You should run this command only from the server on which you would like to Provision the service instance.

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

ID: 1209f814-bddd-3af9-2af8-0e0dbb7448c8
Version Independent ID: b1084dd1-65b1-62fc-4467-d2d3dc40ecf7
Content: SPWebServiceInstance.Provision Method (Microsoft.SharePoint.Administration)
Content Source: sharepoint-server/xml/Microsoft.SharePoint.Administration/SPWebServiceInstance.xml
Product: sharepoint
GitHub Login: @dotnet-bot
Microsoft Alias: o365devx

Good note, but closing as an issue. Thanks!


flake: remove dependency on naersk

buildRustPackage now supports vendoring from Cargo.lock without a hash

Thanks.


Make populate_async doesn't require Pin

When I'm seeing a sample code
seeder
        .populate_async("fixtures/users.yml", |input| {
            Box::pin(async move { User::insert(&input).await })
        })
        .await?;

It's good if we can remove Box::pin.
And I tweaked the type parameters in populate_async and I've succeeded to pass tests without Box::pin.
I still have no idea what is the root cause of why we needed Pin but it seems to work at least for tests.
Thanks!

Just confirmed it works perfectly fine. Thanks a lot!


Add 'Map to flow inputs' and 'Map from flow output' steps in helloworld.md

While following the different steps of 'Hello World', I had an error when executing my app as I haven't configure the trigger to map to flow inputs and from flow output. I am now suggestions these instructions for people who might be in the same situation as me.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.MaiCHg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Tests for Cluster

Partly accomplishes: https://github.com/aws-controllers-k8s/community/issues/858
Description of changes:
Add initial smoke tests for Cluster
By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

/hold
Waiting for test-infra bootstrapping https://github.com/aws-controllers-k8s/test-infra/pull/63

/hold
Waiting for test-infra bootstrapping https://github.com/aws-controllers-k8s/test-infra/pull/63


Cluster state refactor part 1

Which issue does this PR close?

Closes #554
Rationale for this change

See issue for rationale
What changes are included in this PR?

This is part 1 which creates a ClusterState interface for a higher-level abstraction to manage executor resources. A default implementation is provided which just uses the StateBackendClient for the underlying implementation so functionally this should not change anything for existing users.
Are there any user-facing changes?

A new CLI config -c/--cluster-backend is available to set the backend for ClusterState which will default to Sled. Right now there is no way to use a separate Sled dir (or etcd cluster for that matter) for the regular StateBackendClient and the ClusterState because I though that would be weird use case and mostly just make things confusing.

No

@yahoNanJing @mingmwang @andygrove Can you guys help review this?

I'll plan on merging this tomorrow morning


Post a request with parameters

Hello,
I was trying codeceptjs this days and I was trying to post a request to a url with 2 params. Is that possible?
What I want to do is something like:
I.amOnPage('/');
I.waitForElement('#login-page', 5); // secs
request
.post('http://<IP_ADDRESS>')
.type('form')
.set('Accept', 'application/json')
.send({ ssid: '#something', id: '#something'})
.end(function(err, res){
}
The request part is taken from Protractor code. Is it possible to do something similar in Codeceptjs?
Thank you.

Have you tried it?
It's just JavaScript so I don't see why you couldn't send a request.

I tried with the following code:
Scenario('login', (I) => {
I.amOnPage('/');
I.waitForElement('#login-page', 5); // secs
I.wait(5)
request
.post('http://<IP_ADDRESS>:9999')
.type('form')
.set('Accept', 'application/json')
.send({ ssid: loginPage.sessionId, remember_me_id: 'remember_me_id_1'})
.end(function(err, res){
if (err) {
console.log('ddddddd')
} else {
console.log('ffffff')
}
})
And I get the following output:
Login --
login
• I am on page "/"
ddddddd
• I wait for element "#login-page", 5
• I wait 5
It doesn't even seem to wait the few seconds before it tries the request. Any ideas why this might happen?

The request itself works, but it works in an async way. What I want to do is to load a page, get an id, then send a post request with that id and wait for the page to reload.
What it actually does now is to do the post in an async way, and the test finishes by the time the request is done, the other steps do not wait after this request.
Is there a way to do the request using one of the I.something methods?
Or could I use promises for this particular case to handle the request?

Are you trying to go to a new page with the request?

The page that I am currently on should refresh once the post request is sent.
But the scenario ends before the request is sent

Sending a request from your test code won't send the request from the browser you're testing in.
If you want to move paging within a test, use I.amOnPage():
Scenario('Successful login', I => {
	I.amOnPage('/first-page.html')
	// Test stuff here
	I.amOnPage('/second-page.html)
})

If that's not what you're after, let us know. Also, should all your code.

As I know, you can't send request from browser using Selenium. The best option is to create custom helper that uses sync-request library https://www.npmjs.com/package/request-sync
Then you can create custom methods in your helper to send requests. And Also after request you can use recieved data in your selenium test. E.g. below is a helper that get auth token and set it to cookies
const request = require('sync-request');
const BASE_URL = codeceptConfig.helpers.WebDriverIO.url;

setLoginCookieFor(username, password) {
        let client = this.helpers['WebDriverIO'].browser;
        let res = request('POST',
            BASE_URL + '/api/login/', {
                json: {
                    "username": username,
                    "password": password
                }
            });

        let reqs = res.body.toString()
        let cookies = [];

        let domain = BASE_URL
        let secure = (domain == 'we.testdomain.ru');

        res.headers['set-cookie'].forEach(function (cookie) {
            let parts = cookie.split(/[;=]/g);
            cookies.push({
                name: parts[0],
                value: parts[1],
                domain: domain,
                secure: secure,
                path: '/'
            });
        });

        client.addCommand('loadCookies', function (cookies) {
            var self = this;
            return cookies.reduce(function (promiseChain, currentCookie) {
                return self.setCookie(currentCookie)
            }, cookies[0]);

        }, true);

        return client.loadCookies(cookies);
    }

Closing this issue, create a new one if you have any questions or ask in gitter chat


Add a hide taskbar icon setting.

Description of the new feature / enhancement
Title explains everything.
Scenario when this would be used?
People who like neat and clean system icons on their taskbar.
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/9526


Fix iteritems call in Python3

I revised an error in Python3.

looks like this is an equivalent fix to already merged #143 -- closing this. please correct if wrong. I don't use python3 so can't test, but #143 works on 2.7.11


Donor Neon Command Fix

Fixed donor neon command to modify all BaseParts instead of just Parts
I am aware that neon does not correctly create a neon effect in most instances because of meshes, but there isn't much that can be done about this ig

Would a meshpart work?
It seems neon works fine on meshparts

Would a meshpart work?
It seems neon works fine on meshparts

I think it doesn’t work if the mesh has a texture iirc

Would a meshpart work?
It seems neon works fine on meshparts

Doesn't seem to work on R15 characters

Would a meshpart work?

It seems neon works fine on meshparts

Doesn't seem to work on R15 character parts affected by clothing or any other texture

Doesn't work on RTHRO either, as those are meshes with material textures


add trello clone 'trolli' demo app

Already ready for trial?

I really like you project! You structured and outlined everything so well.
The output too is 👌🏾 (great)!

Let me know when it's ready to merge.

Should be fine to merge.


Adding FirmataBLE support using littleb

Working with @shiranbm to update this PR to the latest littleb & mraa. Closing for now.


neither swscale nor libcairo detected, compiling without image scaling

libcairo/cairo dependencies is not handled correctly in the cmake files.
I'm submitting a PR with a possible solution.

@antenore thank you. for remmina I´d  suggest using libswscale as that is a lot faster for the task it is used for. (and I believe you already link ffmpeg for audio/video)


Reason for TVICameraCapturerDelegate is not called when back from background mode to active mode in application ?

Hello @ceaglest
I have an one another question. When i am back from background mode to active mode in app, the preview view is stuck. I know this is not happening in demo app. But in my implementation preview view is stuck if i am back from background mode to active mode.
Also i implemented TVICameraCapturerDelegate in my class and it called once when i start call, but when i back from background mode to active mode, this delegate was not called. Actually this is working fine in your demo code.
So please let me know how can i identify and what is the possible reason if this below method is not called when getting back from background to active mode.
/ /MARK: TVICameraCapturerDelegate
extension CallAcceptVC : TVICameraCapturerDelegate {
func cameraCapturer(_ capturer: TVICameraCapturer, didStartWith source: TVICameraCaptureSource) {
self.previewView?.shouldMirror = (source == .frontCamera)
}
}
This two method also called when going to background mode
 func cameraCapturer(_ capturer: TVICameraCapturer, didFailWithError error: Error) {

    logMessage(messageText: "provider: " + error.localizedDescription)
}
// Here when it execute it shows => provider: The operation could not be completed
func cameraCapturerWasInterrupted(_ capturer: TVICameraCapturer, reason: TVICameraCapturerInterruptionReason) {

    logMessage(messageText: "provider: cameraCapturerWasInterrupted")
    print(reason.rawValue)
}

// Here when it execute it shows => provider: cameraCapturerWasInterrupted  & getting raw value 1
Also if i simulate the call from background in my app and after success of call join and video track creation , now if i am going to background and then again coming back to foreground then preview view is not stuck. I think this is strange and unable to found reason for active mode.
Also in my implementation when i getting back from background mode to active mode i checked value of this self.previewView?.shouldMirror , then i am getting false.
Please let me know how can i solve this.
Thank you
Mitesh

Hi @MiteshiOS,
Could you provide debug level logs which demonstrate the sequence of events? As you said this problem doesn't occur in our sample code, so I wonder if you've somehow got two TVICameraCapturer instances at play? It's generally not a good idea to create more than one since each owns an AVCaptureSession under the hood and they are liable to interrupt each other.
Best,
Chris

Hi @ceaglest
Can you please let me know why i am unable to print debug level logs in my code. I just set TwilioVideo.setLogLevel(.debug) in viewdidload() but it is not working. Is there any extra set up i need to do for this. Also i added your framework through cocoa pod and the version i am using is pod 'TwilioVideo', '~> 1.0.0'. Please let me know as soon as possible.
Thank you
Mitesh

Hello @ceaglest
You still not respond to my question. Please let me know where i am doing wrong. I purchased your service so it's responsibility of your team to provide suggestion on this. I am waiting from last 4 days but no one replay on this thing.
Thank you
Mitesh

Hi @MiteshiOS,
My apologies for not responding sooner. I see no reason why logging wouldn't work. Can you reproduce this problem by in the Swift QuickStart? For example try adding.
    override func viewDidLoad() {
        super.viewDidLoad()
        TwilioVideo.setLogLevel(TVILogLevel.debug)

Hi @MiteshiOS,
I'm closing out this ticket because I haven't heard back from you with more information. As I mentioned you should definitely be able to get logging working, assuming you are not redirecting the console output in your application (see code snippet). As for TVICameraCapturer, creating multiple instances is not recommended as they are liable to interrupt each other. Only a single AVCaptureSession can run at a time, and they do not play nicely together.
Please re-open if you can provide more info.
Regards,
Chris Eagleston

Hi @ceaglest
I am facing the same issue, video freezes when I came from background to forground.
Below are the twilio logs:
2018-07-23 15:31:08.230367+0530 Wivi[1894:1827071] WARN:TwilioVideo:[Signaling]:RESIP::TRANSPORT: Can't find matching transport [ V4 <IP_ADDRESS>:0 TLS target domain=unspecified mFlowKey=0 ]
2018-07-23 15:31:08.543077+0530 Wivi[1894:1827071] DEBUG:TwilioVideo:[Core]:
Receiving incoming SIP message from infra
SIP/2.0 200 OK
Via: SIP/2.0/TLS <IP_ADDRESS>;received=<IP_ADDRESS>;branch=z9hG4bK-524287-1---5c80b516f99cd7c1;rport=49375
Contact: sip:<IP_ADDRESS>:5060
To: sip:orchestrator@mobile-endpoint.twilio.com;tag=42092176_6772d868_8f8bb696-ff91-4d05-b104-5663f7f29ad8
From: "11c759DEdA82F2AD5ABc77eF85Cd52Ab" sip:11c759DEdA82F2AD5ABc77eF85Cd52Ab@mobile-endpoint.twilio.com;tag=c5f9b5a7
Call-ID: obq8GUXIDg3cIprewDFryw..
CSeq: 9 UPDATE
Session-Expires: 120
Server: Twilio
X-Twilio-CallSid: CA3d8b26bdc124d8e3becf0252751247c4
X-Twilio-LegInfo: external
X-Twilio-TlsVerify: true
Content-Length: 0
Also the func "cameraCapturer(_ capturer: TVICameraCapturer, didFailWithError error: Error) " calling two time s.

@gautam1001,

Also the func "cameraCapturer(_ capturer: TVICameraCapturer, didFailWithError error: Error) " calling two time s.

Are you creating two instances of TVICameraCapturer? What were the two errors that were raised? What about other TVICameraCapturerDelegate callbacks during this time?
Best,
Chris

Are you creating two instances of TVICameraCapturer?
No, only one instance is created.
Issue Resolved
The AVCaptureSession created by Twilio Video SDK when I connected to a Room (with video track added), is conflicting with the other one in my app. By adding self.cameraCapturer?.stopCapture()
just before making self.cameraCapturer to nil resolve the problem in my case.
self.cameraCapturer?.stopCapture()
self.cameraCapturer = nil

Perfect, I'm glad to hear it @gautam1001.


Dynamic Resize

Before you ask, the buttons cant be resized.
https://user-images.githubusercontent.com/83908932/148544832-132482e6-2862-4b21-8b90-2d1a5522856b.mp4

@not-nef @im-coder-lg Wait, there are some things I want to add

Phew! I didn't approve easily, since if it's done in one go, there has to be something else to add, right?

Also, from now, the best way of committing is from the CLI, use this method:
$ pip install -r requirements-dev.txt # get pre-commit hooks and commitizen
$ pre-commit install
$ git add . # adds everything
$ cz commit
add anything, type of commit, scope(optional), title, description, if it's a breaking change or not, why, etc.
$ git push

Best method.

@not-nef @im-coder-lg Wait, there are some things I want to add

ok, just tell me what it is and i add it

@sumeshir26 will tell that, also why is Netlify failing?

I knew it! We need to change the base folder to docs.

Well can someone pls tell me what to add fgs

Is it possible to just change the width of the buttons using .configure(width=)?

Well, you can do that, but afaik the width parameter adjusts the width and not the general size of the Button.

So it makes the button wider

I know, but still that’s better than nothing

okay, will do that later this day

https://user-images.githubusercontent.com/83908932/148685109-d7ecc58a-a0b7-48e2-96f4-14d5cba99b73.mp4

@sumeshir26 @im-coder-lg pls review

Excellent! Anything else to add?

Nope, all done

WOOO 🎉🎉🎉

Wait, can you run isort? Just to sort the imports, stack them properly. If not, leave it, it might happen accidentally soon.

:(

I know, same for me. I'm a teenager too lol. But I can manage school, it's
not too hard. Maybe I'll be committing some files during my soon-to-come
holidays. But don't worry - I'll try fixing some things and try some crazy
Tk things that might end up as a new feature. Maybe I'll start with editing
the About page since the TimerX text is too large.

and @sumeshir26 this time, pls use this commit message.
feat: Dynamic resizing (#40)

So it doesnt list all commits

I'll just rename the PR? That'd be easier, right?

So it doesnt list all commits

Actually, it's the merge description.

I'll just rename the PR? That'd be easier, right?

nah, i just dont want that all commits are listed in the master branch commit

Nah, i just don't want that all commits are listed in the master branch commit

See, we squash and merge, meaning everything is made into one commit. The merge description would have the commit list.

I know, same for me. I'm a teenager too lol. But I can manage school, it's not too hard. Maybe I'll be committing some files during my soon-to-come holidays. But don't worry - I'll try fixing some things and try some crazy Tk things that might end up as a new feature. Maybe I'll start with editing the About page since the TimerX text is too large. Also, I never provided the gist of the app text, so maybe now's the chance for me to make sure I learn something new.

Well it doesnt go good for me. Since 8th class ive been a complete E Student and it doesnt seem to get better. Before i was pretty average. I have a chemistry exam on wednesday and if my grades dont get better i wont make the year. :(

Well, all the best, hope you do well!

Well, let's try this. Till you return back on Thursday, well just update the documentation and/or add very minor features related to build. I will just edit the about page, minor change. After you are back, we'll resume. I think this is needed since you are the person with the most Python-related commits. I think this is the best way for us to say thank you.  All the best too :)

Thank you so much ❤

I think we will start with merging this PR and then start updating documentation from #42 till Thursday.

Well it doesnt go good for me. Since the start of 8th class ive been a complete E Student and it doesnt seem to get better. Before, i was pretty average. I have a chemistry exam on wednesday and if my grades dont get better i wont make the year. :(

Good Luck, hope it goes good for you!

Build fails :\ btw saw this come as mail, I'm still busy

ait what? the build fails!

@im-coder-lg No, that was because of an updated workflow file on master

Build failed in PR checks, can you please verify?

Oh, okay. I must've done the same on the PR too.