text:
[PDI-18211] JSON Input Step Performance Degradation in 8.3

The PPP-4374 case ( #6641 ) popped up some invalid getObject calls. For instance, it looks like kettleAnalyzerUtil.java (pentaho-metaverse) calls KettleVFS and then saves the result as resource even if it is not a valid file path, so we should be validating if we really want to request a "getFileObject" from a whole json string as argument, and not just validating if it is empty:
https://github.com/pentaho/pentaho-metaverse/blob/master/api/src/main/java/org/pentaho/metaverse/api/analyzer/kettle/KettleAnalyzerUtil.java#L156
At the same time KettleVFS should also be prepared to deal with this. And we have more cases where this also happen. A first approach was made in here (https://github.com/pentaho/pentaho-kettle/pull/6820) but the URI validation added, which is the recommend validation method for paths, was not compatible with all sorts of calls that exists in our code. We are requesting fileObjects  with white spaces, unresolved variables and invalid characters, which URI does not allow.
That PR was revert.
This PR adds an scheme validation (hasScheme function) that now validates if a scheme has a valid format, but at the same time keeps the old behavior intact, without sending any URI exceptions.
A small refactoring was also made and a few more tests were added to cover these new findings.

Build Completed
:fire: This pull request has some issues. It would be preferable to fix them in order for it to be just perfect. See below for more details. Some links are also available below for further assistance in addressing those issues.
Build Commands
mvn -B -f 'pom.xml' -pl 'core' -P '!assemblies' -Dsurefire.runOrder=alphabetical -Daudit -amd clean install

Cleanup Commands
mvn -B -f 'pom.xml' -pl 'core' -P '!assemblies' -amd build-helper:remove-project-artifact

Changed files
  core/src/main/java/org/pentaho/di/core/vfs/KettleVFS.java
  core/src/test/java/org/pentaho/di/core/vfs/KettleVFSTest.java

Unit Test Coverage
These statistics help you identify how your changes have affected the coverage of the following files. If a file is not in this list, then its coverage was not affected by your changes. To get some help interpreting these metrics, please refer to Jacoco's documentation.

:warning: Coverage Changes (click to expand)
org.pentaho.di.job.entries.evalfilesmetrics.JobEntryEvalFilesMetrics

Branch Change: -0.4% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.job.entries.waitforsql.JobEntryWaitForSQL

Branch Change: -0.7% :small_red_triangle_down:
Complexity Change: -1% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

org.pentaho.di.trans.step.StepMeta

Branch Change: -0.6% :small_red_triangle_down:
Complexity Change: -0.5% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:
Line Change: -0.3% :small_red_triangle_down:

org.pentaho.di.trans.steps.calculator.CalculatorMetaFunction

Branch Change: -8.7% :small_red_triangle_down:
Complexity Change: -3% :small_red_triangle_down:
Instruction Change: -0.7% :small_red_triangle_down:
Line Change: -0.9% :small_red_triangle_down:

org.pentaho.di.trans.steps.dimensionlookup.DimensionLookupMeta

Method Change: -1% :small_red_triangle_down:

org.pentaho.di.trans.steps.groupby.GroupByMeta

Branch Change: -1% :small_red_triangle_down:
Complexity Change: -1.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.ldapoutput.LDAPOutputMeta

Branch Change: -1.3% :small_red_triangle_down:
Complexity Change: -0.9% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.rowgenerator.RowGeneratorMeta

Branch Change: -2.6% :small_red_triangle_down:
Complexity Change: -1.5% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.webservices.WebServiceMeta

Branch Change: -1.7% :small_red_triangle_down:
Complexity Change: -1.2% :small_red_triangle_down:
Instruction Change: -0.1% :small_red_triangle_down:

org.pentaho.di.trans.steps.gpload.GPLoadMeta

Branch Change: -0.9% :small_red_triangle_down:
Complexity Change: -0.8% :small_red_triangle_down:
Instruction Change: -0.2% :small_red_triangle_down:

authors: ppatricio wingman-pentaho


text:
fix animation related to privacy warning message

fix the height for the gas calculation, so only one jump happens
https://github.com/penumbra-zone/web/assets/70081547/d19e4b8a-135e-4a20-bee8-e8c40d3a99b5

I see three simple ways to resolve this.
A) Set a fixed height on the Fee tier section - this looks odd to me with the empty space
B) Move the fee value next to the fee tier switch, and remove the gas icon, as we're not calling it gas anyway (at least for now).
C) Always display the value, but default to zero when we don't know the fee yet.

I included screenshots for all cases. My personal preference is B, C, A in this order.
Curious to hear your thoughts @penumbra-zone/web-reviewers

after more info from Tal, the right way to proceed is to make both of the dialogs appear at the same time, instead of changing the height of the fee part directly.

@VanishMax can you sanity-check the issue accurately captures the original intention for the suggestion you made?

@vacekj thanks for the ideas with detailed screenshots. I believe the C options suits our needs – displaying the empty value for a fraction of a second is, in my opinion, better than having multiple jumps and worsening the cumulative layout shift (CLS). The option B looks goon on the screenshot but in many cases would not fit into the view

Going for option C here, debugging why Fee doesn't also contain the asssetId.

debugging why Fee doesn't also contain the asssetId.

can you elaborate?

@TalDerei I'm going with option C, which displays a zero value before the actual fee is loaded, avoiding any CLS in the fee dialog. While implementing this, I realized that the fee param in GasFee (gas-fee.tsx:29) doesn't contain the assetId, just the amount. This leads to the fee display always defaulting to the stakingToken, in our case UM, and not the token that the fee is paid in (afaik after diggind deep into this with @grod220 ).

thanks for taking this on!

source: gharchive/issue

authors: TalDerei VanishMax vacekj

repo: penumbra-zone/web

license_type: permissive

license_source: github-api


text:
hasTokenBalance does not correctly detect token balances

hasTokenBalance contains incorrect logic
https://github.com/penumbra-zone/web/blob/d18f2d0cfbe8977dece1db5babe0b5616dc6eb9c/packages/storage/src/indexed-db/index.ts#L872-L887
problems
does not query notes table by valid index
https://github.com/penumbra-zone/web/blob/d18f2d0cfbe8977dece1db5babe0b5616dc6eb9c/packages/storage/src/indexed-db/index.ts#L876
an incoming asset id may not possess a binary 'inner' field, but may contain a altBech32m or altBaseDenom field. idb is indexed by the binary inner, but hasTokenBalance does not ensure the presence of this field before using an asset id to query.
performs invalid comparison of address indicies
https://github.com/penumbra-zone/web/blob/d18f2d0cfbe8977dece1db5babe0b5616dc6eb9c/packages/storage/src/indexed-db/index.ts#L884
an address index contains an integer field that may be undefined, and a randomizer that may not be relevant for certain comparison purposes. hasTokenBalance fails to compare zero/undefined equally, and will reject mismatched randomizers
effects
this results in hasTokenBalance failing to correctly determine the presence of a token in an account when it queries idb, depending on the input

suggested correction
require input parameters to contain a more restricted message type
addressIndex parameter should be { account: number, randomizer: never }
i believe randomizer is not relevant for this specific comparison. please correct me if this is wrong. caller will be responsible for constructing correct input.
assetId parameter should be passet1${string} or { inner: Uint8Array } and method should assert length
caller will be responsible for constructing correct input

this is suitable follow-up work, but doesn't actual lead to failures at genesis from what I can tell.

update: address-index comparison is fixed by #1605 but remaining issues exist

authors: TalDerei turbocrime


text:
Error running the make command wondering if it is related to the namespace change?

./craft notifications/make MemberAdded
PHP Warning 'yii\base\ErrorException' with message 'file_get_contents(/home/nhvegberry/webapps/nhvegberry-dev/vendor/percipiolondon/craft-notifications/src/notification.stub): Failed to open stream: No such file or directory'
in /home/nhvegberry/webapps/nhvegberry-dev/vendor/percipioglobal/craft-notifications/src/console/controllers/MakeController.php:122
Stack trace:
#0 [internal function]: yii\base\ErrorHandler->handleError()
#1 /home/nhvegberry/webapps/nhvegberry-dev/vendor/percipioglobal/craft-notifications/src/console/controllers/MakeController.php(122): file_get_contents()
#2 /home/nhvegberry/webapps/nhvegberry-dev/vendor/percipioglobal/craft-notifications/src/console/controllers/MakeController.php(83): percipiolondon\notifications\console\controllers\MakeController->buildClass()
#3 [internal function]: percipiolondon\notifications\console\controllers\MakeController->actionIndex()
#4 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#5 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#6 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/console/Controller.php(180): yii\base\Controller->runAction()
#7 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/Module.php(552): yii\console\Controller->runAction()
#8 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/console/Application.php(180): yii\base\Module->runAction()
#9 /home/nhvegberry/webapps/nhvegberry-dev/vendor/craftcms/cms/src/console/Application.php(90): yii\console\Application->runAction()
#10 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/console/Application.php(147): craft\console\Application->runAction()
#11 /home/nhvegberry/webapps/nhvegberry-dev/vendor/craftcms/cms/src/console/Application.php(121): yii\console\Application->handleRequest()
#12 /home/nhvegberry/webapps/nhvegberry-dev/vendor/yiisoft/yii2/base/Application.php(384): craft\console\Application->handleRequest()
#13 /home/nhvegberry/webapps/nhvegberry-dev/craft(22): yii\base\Application->run()

Hi @laurabennett,
Can you provide me the details of your Craft install and plugin version? This can be found in Utilities -> System Report

Craft Pro 4.3.5
Notifications 4.0.0

For one thing it says its looking in dev/vendor/percipiolondon but my vendor directory only has percipoglobal. I see there is a 4.1.0 now, I'll see if that makes any difference.

That will be the issue, @laurabennett are you in the ability to re-install the plugin? if not, I'll check to create a migration within the plugin that does the namespace update for you

I can reinstall but this is what is available in the Craft Plugin Store. Do I just change my composer.json file to
"percipiolondon/craft-notifications": "4.1.0" ?
ddev composer require percipioglobal/craft-notifications -w && ddev craft plugin/install notifications
composer require percipioglobal/craft-notifications -w && php craft plugin/install notifications

@laurabennett I see the mistake, I'm going to provide an update and release a version. I'll keep you posted when the update is there

Great, it works. Thank you!

Awesome! Thanks for your help @laurabennett, enjoy the plugin :-)!

repo: percipioglobal/craft-notifications

license: MIT


text:
Everest 240 list backups editing conflicts

conflicts solving +editing

It is better to solve conflicts in same branch. This way it is hard to check :)

source: gharchive/pull-request

repo: percona/percona-everest-frontend


text:
Upgrade GitHub Action

Fixes Issue

https://github.com/actions/setup-python/releases
Changes proposed

Check List (Check all the applicable boxes)

[ ] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[ ] All new and existing tests passed.
[ ] This PR does not contain plagiarized content.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Thanks @cclauss .
I'll let the team review :)

authors: cclauss orweis

repo: permitio/opal


text:
nan weights, nan validation losses

I am getting nan weights (and losses) during training.
OBS: Estimating class counts from 10 images
/opt/conda/lib/python3.7/site-packages/mpunet/utils/utils.py:237: RuntimeWarning: divide by zero encountered in log
  bias = np.log(freq * np.sum(np.exp(freq)))
/opt/conda/lib/python3.7/site-packages/mpunet/utils/utils.py:238: RuntimeWarning: invalid value encountered in true_divide
  bias /= np.linalg.norm(bias)
Setting bias weights on output layer to:
[ 0. -0. -0. -0. -0. -0. -0. -0. -0. -0.  0. -0. nan -0. -0. -0. -0.]

What could be wrong?
I have 17 classes (including background=0), but only 16 are guessed by mp init_project + mp train, so I edit the yml file to use 17.
The views look reasonable, but the prediction always looks like the gray scale image.

The full log looks more like this:
Audit for 16 images
-------------------
Total memory GiB:  1.776
Number of classes: 17

2D:
Real space span:   263.500
Sample dim:        304.000

3D:
Sample dim:        64
Real space span:   263.500
Box span:          54.400
--------------------------------------------------------------------------------
>>> Logged by: 'set_value' in 'hparams.py'
Setting value '263.50000739097595' (type <class 'numpy.float64'>) in subdir 'fit' with name 'real_space_span'
Setting value '304' (type <class 'numpy.int64'>) in subdir 'build' with name 'dim'
Setting value '1' (type <class 'int'>) in subdir 'build' with name 'n_channels'
Entry of name 'n_classes' already set in subdir 'build' with value '17'. Skipping (overwrite=False).

>>> Logged by: 'save_current' in 'hparams.py'
Saving current YAML configuration to file:
 /home/jovyan/work/results/drcmr_16/train_hparams.yaml
--------------------------------------------------------------------------------
>>> Logged by: '_base_loader_func' in 'data_preparation_funcs.py'
Preparing dataset ImagePairLoader(id=train, images=10, data_dir=/home/jovyan/work/data_dir/train)
X10679
--- loaded:     False
--- shape:      [310 310 310   1]
--- bg class    0
--- bg value    ['1pct']
--- scaler      RobustScaler
--- real shape: [263.5 263.5 263.5]
--- pixdim:     [0.85 0.85 0.85]
X14109
--- loaded:     False
--- shape:      [310 310 310   1]
--- bg class    0
--- bg value    ['1pct']
--- scaler      RobustScaler
--- real shape: [263.5 263.5 263.5]
--- pixdim:     [0.85 0.85 0.85]
...
>>> Logged by: '__init__' in 'eager_queue.py'
'Eager' queue created:
  Dataset:      ImagePairLoader(id=train, images=10, data_dir=/home/jovyan/work/data_dir/train)
Preloading all 10 images now... (eager)
'Eager' queue created:
  Dataset:      ImagePairLoader(id=val, images=6, data_dir=/home/jovyan/work/data_dir/val)
Preloading all 6 images now... (eager)
--------------------------------------------------------------------------------
>>> Logged by: 'sample_random_views_with_angle_restriction' in 'sample_grid.py'
Generating 6 random views...
[OBS] Weighting random views by median res: [0.85 0.85 0.85]
--------------------------------------------------------------------------------
>>> Logged by: 'load_or_create_views' in 'data_preparation_funcs.py'
View SD:     0.1
--------------------------------------------------------------------------------
>>> Logged by: 'prepare_for_multi_view_unet' in 'data_preparation_funcs.py'
Views:       N=6
             [ 0.89081436 -0.42408026  0.16311258]
             [ 0.43957442 -0.12374472  0.88964126]
             [-0.54803847  0.1605022   0.82090979]
             [ 0.03570166 -0.69000704  0.72292163]
             [-0.12735015  0.93440077  0.33268173]
             [-0.95791583 -0.14147684  0.24976303]

--------------------------------------------------------------------------------
>>> Logged by: 'get_sequencers' in 'data_preparation_funcs.py'
Preparing sequence objects...
--------------------------------------------------------------------------------
>>> Logged by: 'get_sequence' in 'utils.py'
Using on-the-fly augmenters:
Elastic2D(alpha=[0, 450], sigma=[20, 30], apply_prob=0.333)
--------------------------------------------------------------------------------
>>> Logged by: 'log' in 'isotrophic_live_view_sequence_2d.py'

Is validation:               False
Using real space span:       263.50000739097595
Using sample dim:            304
Using real space sample res: 0.8667763401018945
N fg slices:                 8
Batch size:                  16
Force all FG:                False
Noise SD:                    0.1
Augmenters:                  [Elastic2D(alpha=[0, 450], sigma=[20, 30], apply_prob=0.333)]

Is validation:               True
Using real space span:       263.50000739097595
Using sample dim:            304
Using real space sample res: 0.8667763401018945
N fg slices:                 8
Batch size:                  16
Force all FG:                False
Noise SD:                    0.0
Augmenters:                  None
Waiting for free GPU.
Found free GPU: 0
2021-08-11 14:20:16.064686: I tensorflow/stream_executor/platform/default/dso_loader.cc:48] Successfully opened dynamic library libcuda.so.1
2021-08-11 14:20:17.031107: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1716] Found device 0 with properties:
pciBusID: 0000:17:00.0 name: GeForce GTX 1080 Ti computeCapability: 6.

...

>>> Logged by: 'init_model' in 'model_init.py'
Creating new model of type 'UNet'
--------------------------------------------------------------------------------
>>> Logged by: 'log' in 'unet.py'
UNet Model Summary
------------------
Image rows:        304
Image cols:        304
Image channels:    1
N classes:         17
CF factor:         2.000
Depth:             4
l2 reg:            False
Padding:           same
Conv activation:   relu
Out activation:    softmax
Receptive field:   [155 155]
N params:          62062642
Output:            Tensor("flatten_output/Reshape:0", shape=(None, 92416, 17), dtype=float32)
Crop:              None
--------------------------------------------------------------------------------
>>> Logged by: 'set_bias_weights' in 'utils.py'
OBS: Estimating class counts from 10 images
/opt/conda/lib/python3.7/site-packages/mpunet/utils/utils.py:237: RuntimeWarning: divide by zero encountered in log
  bias = np.log(freq * np.sum(np.exp(freq)))
/opt/conda/lib/python3.7/site-packages/mpunet/utils/utils.py:238: RuntimeWarning: invalid value encountered in true_divide
  bias /= np.linalg.norm(bias)
Setting bias weights on output layer to:
[ 0. -0. -0. -0. -0. -0. -0. -0. -0. -0.  0. -0. nan -0. -0. -0. -0.]
--------------------------------------------------------------------------------
>>> Logged by: 'compile_model' in 'trainer.py'
Optimizer:   <tensorflow.python.keras.optimizer_v2.adam.Adam object at 0x7f138c320590>
Loss funcs:  [<tensorflow.python.keras.losses.SparseCategoricalCrossentropy object at 0x7f138c326950>]
Metrics:     <function init_metrics at 0x7f138c172ef0>
--------------------------------------------------------------------------------
>>> Logged by: 'save_images' in 'plotting.py'
Saving 64 sample images in '<project_dir>/images' folder
--------------------------------------------------------------------------------
>>> Logged by: '_fit' in 'trainer.py'
Using 157 steps per train epoch (total batches=1000000000000)
Using 219 steps per val epoch (total batches=1000000000000)
--------------------------------------------------------------------------------
>>> Logged by: 'init_callback_objects' in 'funcs.py'
[1] Using callback: Validation(params=?)
[2] Using callback: MeanReduceLogArrays(params=?)
[3] Using callback: ReduceLROnPlateau(patience=2, factor=0.9, verbose=1, monitor=val_dice, mode=max)
[4] Using callback: TensorBoard(log_dir=./tensorboard, profile_batch=0)
[5] Using callback: ModelCheckPointClean(filepath=./model/@epoch_{epoch:02d}_val_dice_{val_dice:.5f}.h5, monitor=val_dice, save_best_only=True, save_weights_only=True, verbose=1, mode=max)
[6] Using callback: EarlyStopping(monitor=val_dice, min_delta=0, patience=15, verbose=1, mode=max)
[7] Using callback: TrainTimer(verbose=True, logger=Logger(base_path=/home/jovyan/work/results/drcmr_16, print_to_screen=True, overwrite_existing=False, append_existing=False))
[8] Using callback: CSVLogger(filename=logs/training.csv, separator=,, append=True)
[9] Using callback: FGBatchBalancer(params=?)
[10] Using callback: SavePredictionImages(params=?)
[11] Using callback: LearningCurve(params=?)
[12] Using callback: DividerLine(params=?)
Epoch 1/500
  1/157 [..............................] - ETA: 0s - loss: nan - sparse_categorical_accuracy: 0.7300
...

Hi,
Thanks for reporting this. Based on the log it seems that the issue is caused by a given class not being present across a sample of images used to estimate class frequencies, ultimately leading to the setting of a NaN model weight during initialisation. Specifically, I am referring to the following section of the log:
--------------------------------------------------------------------------------
>>> Logged by: 'set_bias_weights' in 'utils.py'
OBS: Estimating class counts from 10 images
/opt/conda/lib/python3.7/site-packages/mpunet/utils/utils.py:237: RuntimeWarning: divide by zero encountered in log
  bias = np.log(freq * np.sum(np.exp(freq)))
/opt/conda/lib/python3.7/site-packages/mpunet/utils/utils.py:238: RuntimeWarning: invalid value encountered in true_divide
  bias /= np.linalg.norm(bias)
Setting bias weights on output layer to:
[ 0. -0. -0. -0. -0. -0. -0. -0. -0. -0.  0. -0. nan -0. -0. -0. -0.]
--------------------------------------------------------------------------------

I will fix this issue in 1 or 2 weeks when I am back from other activities. Until then, could you please try and set the biased_output_layer variable to False in the train_hparams.yaml parameter file and re-run training to verify that this is indeed the issue? See:
https://github.com/perslev/MultiPlanarUNet/blob/master/mpunet/bin/defaults/MultiPlanar/train_hparams.yaml#L86
Cheers,
Mathias

At some point realized that my dataset has no label 12, i.e. label=12 never is used.
After fixing it in the data the model is now learning...

authors: dyollb perslev

repo: perslev/MultiPlanarUNet


text:
Problem with BirrtPlanner

I see this error often when planning via Birrt:
[rrt.h:80 _InitPlan] no initial configurations
[rrt.h:354 PlanPath] BirrtPlanner::PlanPath - Error, planner not initialized
It is not consistent, i.e. sometimes we are able to plan just fine. When I manually move the arm to reset we seem to be fairly wrapped up, so it could be because the start configuration is near joint limit.

You can try switching back to CBiRRT or OMPL for our default randomized planner. I switched to the OpenRAVE BiRRT based on the input of @siddhss5 and @psigen. They found that the OpenRAVE BiRRT is much faster than OMPL's RRT-Connect.

I've found that this pair of errors generally means that the planner thinks
the initial configuration is violating a limit or in collision.
On Mon, Apr 6, 2015 at 9:29 PM, Michael Koval notifications@github.com
wrote:

You can try switching back to CBiRRT or OMPL for our default randomized
planner. I switched to the OpenRAVE BiRRT based on the input of @siddhss5
https://github.com/siddhss5 and @psigen https://github.com/psigen.
They found that the OpenRAVE BiRRT is much faster than OMPL's RRT-Connect.
—
Reply to this email directly or view it on GitHub
https://github.com/personalrobotics/prpy/issues/101#issuecomment-90306404
.

It could be the usual "padded joint limits" problem, like @jeking04 suggested, then. Maybe it's time to actually solve this properly...

authors: jeking04 mkoval psigen

repo: personalrobotics/prpy

license_source: bigquery


text:
Negative numbers are not allowed

ctype_digit: Check whether the characters in the string are all numbers, negative numbers and decimals will not pass the test

Thanks

authors: petabyt xiamuguizhi

repo: petabyt/tinyblog


text:
Fixes approach for V1 pathing

Looks like #50 didn't take v1 into account correctly and the test was written wrong... lets try and fix that! 😄

I'm sorry for not testing (carefully enough) with v1.. I already converted my personal env to kv2 and therefore relied on Travis for kv1.


text:
KeyboardEvents Question

Hello,
I'm a little new to python, and trying to figure something out. I was wondering if you could give more examples of the KeyboardEvent class. Specifically, I was looking to generate an animation on any type of key press, such as a firework. Thanks!

Sure...  Which samples have you already had a look at?

fireworks.py, specifically the for loop on line 21.

OK.  In which case, you might want to have a look at https://github.com/peterbrittain/asciimatics/blob/master/samples/interactive.py to see how to process KeyboardEvents.  You could then use something like the http://asciimatics.readthedocs.io/en/latest/widgets.html#global-key-handling to act on a specific key to add a new Effect to your active Scene.

I have tried that before, but my not very good python skills seem to be
hampering making it work. I'm basically trying to replicate code similar to
this:
http://pastebin.com/ix8W8NQw
And to then generate a random effect (or firework) for any keypress. How
could I do that with your sample using the keyboard event class? Or would
there be another way?
On Fri, Sep 16, 2016 at 10:39 AM, peterbrittain notifications@github.com
wrote:

OK. In which case, you might want to have a look at https://github.com/
peterbrittain/asciimatics/blob/master/samples/interactive.py to see how
to process KeyboardEvents. You could then use something like the
http://asciimatics.readthedocs.io/en/latest/widgets.html#global-key-
handling to act on a specific key to add a new Effect to your active
Scene.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/peterbrittain/asciimatics/issues/43#issuecomment-247633596,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNW9efhz9UHYDQHVuc3GnPVVNFVuEGpks5qqrg_gaJpZM4J-8tB
.

Your pastebin code simply waits for enter and then prints a random character.
If you want to do something like that, just change the "hello world" sample from the readme.  For example:
from asciimatics.screen import Screen

def demo(screen):
    while True:
        ev = screen.get_key()
        if ev in (ord('Q'), ord('q')):
            # put your code here to play a random Effect

Screen.wrapper(demo)

This will play a random effect every time you press 'q'.

So this code below does closer to what I am looking for, modifying the
hello world example.
http://pastebin.com/U7NMYHVJ
However, when I run the below code no animation plays at all:
http://pastebin.com/AKE7UGM0
Is there something else I need to do before the effect.insert to have it
play correctly?
On Fri, Sep 16, 2016 at 4:00 PM, peterbrittain notifications@github.com
wrote:

Your pastebin code simply waits for enter and then prints a random
character.
If you want to do something like that, just change the "hello world"
sample from the readme. For example:
from asciimatics.screen import Screen
def demo(screen):
while True:
ev = screen.get_key()
if ev in (ord('Q'), ord('q')):
# put your code here to play a random Effect
Screen.wrapper(demo)
This will play a random effect every time you press 'q'.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/peterbrittain/asciimatics/issues/43#issuecomment-247707835,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNW9WoimcNTzcn7th_kuka7oC-PX2RJks5qqwNagaJpZM4J-8tB
.

You're not playing the effects.  You need to call play() (making sure that repeat=False so that it exits) passing in a Scene which contains your chosen effect (and an end frame).

Thanks again so much for the guidance, again excuse my noobishness.
On Sat, Sep 17, 2016 at 3:16 PM, peterbrittain notifications@github.com
wrote:

You're not playing the effects. You need to call play() (making sure that
repeat=False so that it exits) passing in a Scene which contains your
chosen effect (and an end frame).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/peterbrittain/asciimatics/issues/43#issuecomment-247804950,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALNW9WGow7rZTf_NvpcOjHwVbJYtgrjuks5qrEqkgaJpZM4J-8tB
.

No problem!  I assume that you've now got something running and so will close this issue.
BTW, if you like this project, don't forget to star it!

repo: peterbrittain/asciimatics


text:
feat: track token usage when stream chat

LG

authors: RaoHai xingwanying

repo: petercat-ai/petercat


text:
Add support for strings

Variables can contain string. Use double quote (") for denote a string.
'a = "Hello world"'

Codecov Report

Merging #6 into master will decrease coverage by 0.65%.
The diff coverage is 88.88%.

@@             Coverage Diff              @@
##             master       #6      +/-   ##
============================================
- Coverage        98%   97.34%   -0.66%
- Complexity      131      140       +9
============================================
  Files            19       22       +3
  Lines           350      377      +27
============================================
+ Hits            343      367      +24
- Misses            7       10       +3

Impacted Files
Coverage Δ
Complexity Δ

src/FormulaInterpreter/Parser/StringParser.php
100% <100%> (ø)
2 <2> (?)

...er/Command/CommandFactory/StringCommandFactory.php
100% <100%> (ø)
2 <2> (?)

src/FormulaInterpreter/Compiler.php
100% <100%> (ø)
6 <0> (ø)
:arrow_down:

src/FormulaInterpreter/Command/StringCommand.php
76.92% <76.92%> (ø)
5 <5> (?)

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 57773dd...814158d. Read the comment docs.

authors: codecov-io petrabarus

repo: petrabarus/php-formula-interpreter


text:
"Dobra", "Mărcești" are listed in the drop-down menu

Description:
When user writes ” Dobra” and "Mărcești" the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Dobra"

Expected results
The location appears in the drop-down menu as "Sat Dobra, DÂMBOVIȚA (Dobra)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Mărcești"

Expected results
The location appears in the drop-down menu as "Sat Mărcești, DÂMBOVIȚA (Dobra)".


text:
”Șeica Mare”, ”Boarta”, ”Buia” are listed in the drop-down menu

Description:
When user writes ”Șeica Mare”, ”Boarta”, ”Buia” the locations appear in the drop-down menu next to the comune and the county which is a part according to the law.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Șeica Mare"

Expected results
The location appears in the drop-down menu as "Sat Șeica Mare, SIBIU (Șeica Mare)".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write in the search bar "Boarta"

Expected results
The location appears in the drop-down menu as "Sat Boarta, SIBIU (Șeica Mare)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Write in the search bar "Buia"

Expected results
The location appears in the drop-down menu as "Sat Buia, SIBIU (Șeica Mare)".


text:
"Alba Iulia" is listed in the drop-down menu

Description:
"Alba Iulia" is listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Alba Iulia" in the search bar.

Expected results
The location is listed in the drop-down menu as "Alba Iulia, Alba (Alba Iulia)".


text:
Are we ready for a renaissance? Images vs Events = Chaos

I'm hoping interest in this plugin picks up in these post-Twitter times ;)
I am using The Event Calendar and just posted my first Event; it goes out to subscribers, but the photos are mangled
See https://mastodon.social/@eso@eighthstreetorchestra.com/109345671915173570

It has posted three images, the other two were early editions that I had added but had to replace, seems it sent all three; two of them have been deleted from Media, but the third, is a valid image (webp) url

The WP Event page is https://eighthstreetorchestra.com/event/dance-like-its-1952/

Duplicate: https://github.com/pfefferle/wordpress-activitypub/issues/149

authors: mediaformat teledyn

repo: pfefferle/wordpress-activitypub


text:
cookie_store: derive clone for CookieStore

Sometimes it's useful to clone a CookieStore, so
allow this by deriving Clone.
Signed-off-by: Adrian Ratiu adi@adirat.com

Thanks for the contribution!


text:
Name Change: CalorieCat+

UI2 should be called CalorieCat+.

reverses #5

update Panera Bread Nutrition Facts

based on version 6: https://github.com/pffy/data-panera-bread-nutrition-facts/tree/master/xml

license: unlicense


text:
LookupLocator serial form missing scheme field

The scheme field as added to allow LookupLocator to support https as well as the jini discovery protocol.  If LookupLocator is serialized, without the scheme field and if the scheme is https, it will be changed to jini upon deserialization.

LookupLocator::equals javadoc was updated to include IPv6 normalization.

repo: pfirmstone/JGDMS


text:
Support for Radius OTP login and fetching groups from Radius

Hi,
I have succesfully setup pfSense to work with Radius for TOTP instead of static passwords.
Tested setup:

LinOTP for TOTP management and Auth to Radius. Users are fetched from SQL Database and Active Directory.

in LinOTP  you can define if a valid passcode consists of:
Pin + Token (otppin=0)
or
User Password + Token (otppin=1)
or
Token only (otppin=2)
This has to be setup in the linOTP authentication policies ( action = "otppin=0|1|2" )

FreeRadius fetches user information from Active Directory ( Group membership ) and adds, besides the auth_accept message, also a pfSense-Group-Name parameter to pfSense
pfSense maps a user, either to a local account, and groups OR to an Active Directory user and Group.

This way, we can authenticate and map users into different groups, for example for GUI access, or VPN.
I have tested this with both OpenVPN and IPSec, as well as the admin access to the pfSense web GUI.
For freeradius (2.x), a few configration changes need to be done.
I am assuming that freeradius is setup correctly for both both Active Directory and LinOTP
So the changes documented here only apply for the pfSense part.
First create /usr/share/freeradius/dictionary.pfsense
# -*- text -*-
##############################################################################
#
#       pfSense's VSA's
#
#       $Id$
#
##############################################################################

#
#       pfSense VSA's
#

VENDOR          pfSense                 15000

BEGIN-VENDOR    pfSense
ATTRIBUTE       pfSense-Group-Name                      1       string

# Add more ATTRIBUTES for pfSense here

#
# Integer Translations
#

END-VENDOR pfSense

enable the pfsense dictionary in /usr/share/freeradius/dictionary
$INCLUDES dictionary.pfsense

create a client entry for pfSense in
/etc/raddb/client.conf
client pfsenseadmin {
        ipaddr = <ipaddress of pfsense lan>
        netmask = 32
        secret = 'YOURSECRET'
        shortname = 'pfsenseadmin'
        nastype = pfsense
}

I have created two groups on the pfSense box, PFSense Admins with all pfSense admin privileges,
and a VPNusers group with User - VPN - IPsec xauth Dialin access.
When freeradius gets a request from the pfsense box, it should return pfSense-Group-Name attributes.
So we will set that up in /etc/raddb/sites-enabled/default.
This should go in the post-auth section:
# Map AD/LDAP groups Domain Admins and Network Admins to the PFSense Admins group , make sure this group exists on pfSense and has admin privs
        if ("%{client:shortname}" =~ /^pfsenseadmin/ && ( LDAP-Group == "Domain Admins" || LDAP-Group == "Network Admins")){
                        update reply {
                                pfSense-Group-Name += "PFSense Admins"
                        }
       }

        # Map AD/LDAP group VPNusers to pfSense Group VPNusers
        if ("%{client:shortname}" =~ /^pfsenseadmin/ &&  LDAP-Group == "VPNusers" ){
                        update reply {
                                pfSense-Group-Name += "VPNusers"
                        }
        }
        # Add more group mappings for pfSense here
}

in freeradius 3.x it is possible  to use a foreach loop, to add all groups  a user is member of , automatically
to the pfSense-Group-Name attribute.
But I havent played around with 3.x yet

In order to have patches accepted you must sign CLA as described at https://www.pfsense.org/about-pfsense/#legal

Hi Renato,
I did this already a while ago :-)

I couldn't find your CLA, what is your portal username?

Found it!

The code in master has diverged significantly here. We have had support for obtaining groups from the Class reply attribute in place for several months now, which could be leveraged here. If the new attribute is required, you can resubmit this as a change to just radius.inc to add the attribute and it should only take a couple lines added to radius_get_groups() in auth.inc to have it check the other attribute in addition to the Class attribute.

authors: jim-p kdbo rbgarga

repo: pfsense/pfsense


text:
Allow NAT 1:1 destination self on edit

Add a NAT 1:1 rule with destination "This Firewall (self)" and save (goodness knows why you would want to do this?)
Edit the rule
The Destination dropdown displays "any" rather than the special net that was selected for the rule.

This fixes the UI problem.
Maybe "This Firewall (self)" actually should not be in the Destination dropdown list?

The correct fix is to remove self from destination drop-down. Are you planing to work on this? If not let me know. Thanks!

See #3260

authors: phil-davis rbgarga


text:
Support "examples" documentation

As far as I can tell, nothing in this module allows you to specify example responses for different models. It would be nice if, perhaps through some decorator applied to a method on a pydantic model, one could provide an example response that the API might return, having that example response propagated through to the openapi spec and documentation.

I second this, I was searching for how to provide an example response. I have to put an example response in my docstring now which will just look weird and people would have to look thru 2 "example response" section. Just being able to edit this myself would be great.

This is already possible with Pydantic models, but not with others see https://docs.pydantic.dev/latest/concepts/json_schema/#using-json_schema_extra-with-a-dict and 93f26200cd1af0650daa0fb75110b3691cc10f4a. I'll document this if msgspec also supports, see https://github.com/jcrist/msgspec/issues/689.

authors: nkwade pgjones tyree731

repo: pgjones/quart-schema


text:
Can fit swow?

swow

This need investigation, any suggestion from where to start?

authors: AuroraYolo Jeckerson

repo: phalcon/bridge-swoole


text:
ArrayAccess incorrect behavior

Hello there.
It seems that classes that implement SPL ArrayAccess interface do not actually act like arrays in the Zephire code (compiled PHP classes work fine). And moreover they act differently whether the class implementing this interface is a property (doesn't matter if public or private) of another class or just a local variable.
An example of what I'm talking about: https://github.com/bubleg/zephir_bug_arrayaccess
I'm using Vagrant box with debian/jessie64 with all updates and Zephir version 0.7.1b
Thanks.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Closed in favor of https://github.com/phalcon/zephir/issues/1400

authors: bubleg sergeyklay

repo: phalcon/zephir

license: mit


text:
Add option for onKeyUp callback to KeyboardDragListener

KeyboardDragListener has an end listener that should be called whenever dragging is complete. At the moment, it is called whenever any key is released, which is incorrect. Discussing with @zepumph, we will want options for both.
end - called every time ALL keys are released.
onKeyUp - called every time ANY key is released.

This issue is very closely tied to #850, and so we should potentially hold off on this (unless I need it for Friction in https://github.com/phetsims/friction/issues/94). I would assume that this logic would belong in the parent type we come up with over there. Marking on hold.

I'm a total liar. For https://github.com/phetsims/friction/issues/98 I am going to try to implement this right now.

I just inspected KeyboardDragListener and tested it out, the end callback is called as expected. The original issue comment suggests another optional callback for whenever any key is released and I don't think we need that. Closing.

authors: jessegreenberg zepumph

repo: phetsims/scenery


text:
Fix typo

Thank you for this amazing blog and Happy Easter 🐣

Thank you. Happy Easter to you too!

authors: Hofer-Julian phil-opp


text:
WEB NOT WORKING

I don't understand why many of the repositories are WEB compatible if they are not.
If it supports WEB, please let me know. Thank you.

Yes, the package supports web. I've updated the example project as well to add the web files.
Could you let me know specifically what didn't work for you?
Thanks

I downloaded the example and it doesn't allow me to move the items.
It just generates the list for me.

The examples are set to be dragged on long press (the android default).
You could add the lines
    listDragOnLongPress: false,
    itemDragOnLongPress: false,

to your DragAndDropLists to have a dragging mode that is more suitable for web.

Problem solved, sorry, thanks.

Great! Glad it worked for you.

The examples are set to be dragged on long press (the android default).
You could add the lines
    listDragOnLongPress: false,
    itemDragOnLongPress: false,

to your DragAndDropLists to have a dragging mode that is more suitable for web.

I ran into the same problem as well. Would be great if this was suggested in the readme, perhaps at the same place it is recommended to use GestureDetector over Inkwell.

I'd just like to 2nd the comment above, I was getting really frustrated after a team member implemented this package and it took me longer than I'd like to find this solution

authors: APDos DomingoMG WilliamViktorsson philip-brink

repo: philip-brink/DragAndDropLists


text:
can't install this extension---bower-asset/masonry not found.

Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- philippfrenzel/yii2masonry dev-master requires bower-asset/masonry * -> no
matching package found.
- philippfrenzel/yii2masonry 1.1.1 requires bower-asset/masonry * -> no matc
hing package found.
- philippfrenzel/yii2masonry 1.1 requires bower-asset/masonry * -> no matchi
ng package found.
- philippfrenzel/yii2masonry 1.0 requires bower-asset/masonry * -> no matchi
ng package found.
- Installation request for philippfrenzel/yii2masonry * -> satisfiable by ph
ilippfrenzel/yii2masonry[1.0, 1.1, 1.1.1, dev-master].
Potential causes:

A typo in the package name
The package is not available in a stable-enough version according to your min
imum-stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion f
or more details.

Read http://getcomposer.org/doc/articles/troubleshooting.md for further common
problems.

ok, I'll check this and come back to you

ok, I think you might have an issue with not having the latest composer assets plugin from francois...
which version do you run?
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
Cheers Phil

okay. thanks.

is it working? I don't wanna close without a yes :)?

yes.

authors: philippfrenzel shiyangDR


text:
TitleSceneに背景画像を指定できるようにする

凝りたい人は、DisplaySceneから自作すれば良いと思いますが
サクッと作りたい人向けに、この程度までは用意しても良いかと。
SplashSceneを参考にしました。
併せて、タイトルのフォントサイズを指定できるようにしています。
動作サンプル
http://runstant.com/alkn203/projects/094a733e

個人的に CSS の background-repeat のような感じで背景画像をリピートさせる機能が欲しいです。

@shioleap  こんな感じですかね。
http://runstant.com/alkn203/projects/bb954925

ありがとうございます。まさにこんな感じです！
↓小さい画像のパターンで使えるので便利ですね。
http://runstant.com/shioleap/projects/2b0721b5

リピートのほうをcreatePattern使って書いてみました。
http://runstant.com/Negiwine/projects/b74f9aa1

こちらの方がスマートですね。
ありがとうございます。

authors: alkn203 negiwine shioleap


text:
if device not support web audio api

Is there support for using native html audio tags now?

hello?

No.

authors: MarsCaiWORD phoboslab

repo: phoboslab/jsmpeg


text:
Docker containarized

Hi,
I've created a dockerfiles for this application, splitting it into three containers, ws-relay, http-server and ffmpeg stream.
The whole application can be run:
$ docker-compose up -d
and stopped:
$ docker-compose down
I've also added a "package.json" that will help build the npm container.
And also an index.html which is a copy of your html file, but this rename is so it will be served by default.
I would later expose some of the ports to the docker-compose commandline arguments for flexibility.
Hope you would like to add this to your branch.

Would love something like this to make it easier to get going!

authors: RyanEwen ausrasul


text:
-k/--cluster disabled in scdiff2

Hi
In scdiff2, is -k/--cluster disabled? How to set the cluster number in a customized manner?

@YZJenny
Yes, in scdiff2 -k/--cluster is dropped as we used the scanpy leiden clustering method for the initialization.
However, you are still able to set the cluster number in a customized manner via the optional parameter --cluRes (clustering resolution parameter).   By default, it is set as 1, if you want more clusters, you can increase the resolution (e.g. to 2), if you want to reduce the number of clusters, you can reduce the resolution (e.g, to 0.5).

authors: YZJenny phoenixding


text:
Change ticker text from "title" to "message" parameter

Maybe it would be logical to change ticker text which displays in status bar on notification from "title" to "message" parameter. For example, this behaviour is in LocalNotification plugin.
It's more useful for user to see notification information rather than abstract header.
For example for SMS we can immediately see all the text and not just the sender's number.

@waptaxi Sorry, I don't follow you. Can you mark up an image so I can understand?

I'm talking about changing .setTicker(extras.getString("title")) to .setTicker(extras.getString("message")) in GCMIntentService.java in this part of code:
        NotificationCompat.Builder mBuilder
                = new NotificationCompat.Builder(context)
                .setWhen(System.currentTimeMillis())
                .setContentTitle(extras.getString("title"))
                .setTicker(extras.getString("title"))
                .setContentIntent(contentIntent)
                .setAutoCancel(true);

Or maybe one of options:

Add parameter to push message to display ticker text
Add parameter to initialization that will format ticker text. E.g. {"ticker": "%t% sent you a message: %m%"}.
Where %t% is a template to "title" parameter and "%m%" is a template to "message" parameter of push message.
In many applications (Whatsapp, Viber etc.) we can see that ticker text differs from title and message.

authors: macdonst waptaxi

repo: phonegap/phonegap-plugin-push


text:
Force APNS | Added boolean ios init Option apnsForce to force apns | Updated docs as well

Description
Default : False [Uses FCM if GoogleServiceInfo.plist is present and APNS if not]
If set to true (Boolean) or "true" (String) within ios options in init, it will force APNS to be used even if GoogleServiceInfo.plist is present in the project
Related Issue
#1770
#2138
Motivation and Context
Allow forcing of APNS and FCM as necesssary from JS instead of having to edit the GoogleServiceInfo.plist file everytime
How Has This Been Tested?
Added GoogleServiceInfo.plist in ios and made sure apnsForce : true and apnsForce : "true" was causing APNS to be used over FCM. Also tested by removing apnsForce and setting apnsForce : false while GoogleServiceInfo.plist was present and it defaulted to FCM.
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Please let me know if I missed something, I will raise a new pull request.
Also thank you for this wonderful plugin.
Cheers,
Chris
Neutrinos


text:
Adding Blazor

Any plans to add another fronted type like https://github.com/bradwellsb/blazor-contacts blazor server?

Yes. Adding Blazor is on the way.

authors: phongnguyend stopcorp


text:
增加脚本独立开关

有些脚本对于当前来说用不到，而有些又要用，希望增加一个独立配置项用以控制每个功能的开关

有些脚本对于当前来说用不到，而有些又要用，希望增加一个独立配置项用以控制每个功能的开关

之后会增加配置文件

有些脚本对于当前来说用不到，而有些又要用，希望增加一个独立配置项用以控制每个功能的开关

之后会增加配置文件

已增加配置文件

你好，这个单独开关怎么用呀？  不会用哎~

你好，这个单独开关怎么用呀？ 不会用哎~

有一个config.ini，里边可以配置。0代表关闭，1代表开启。
具体看一下readme。

authors: phonowell yimo0908 yisk

repo: phonowell/genshin-impact-script


text:
Usb icon

Describe the requested icon
I need to use the USB icon for my project, like in Fontawsome.
Screenshots
SVG link:

Screenshoot:

Additional context
Please help me, i really really need it

Added usb in v2.0.0

authors: Quangdm-cdm rektdeckard

repo: phosphor-icons/homepage


text:
Icon request: reply

Describe the requested icon
A reply icon would be helpful in comment sections to indicate a reply, or to reply to
Screenshots
Like this, in font awesome

Additional context
An up arrow version to indicate something is replying to what is above would be neat as well

@Tanza3D Not quite authentic, but you can use arrow-bend-up-left.

I'm tagging the following icons to make it easier to search:

arrow-bend-up-left: "reply", "RE"
arrow-bend-up-right: "forward", "FWD",
arrow-bend-double-up-left: "reply-all"

authors: BranislavLazic Tanza3D rektdeckard


text:
Bug: every RenderTexture draw the same content

I use a lot of RenderTexture in my project. Today I update to Phaser 3.4, everything goes wrong.
Phaser 3.4
main.js
import 'phaser'
import MainScene from './scene/MainScene'

new Phaser.Game({
  type: Phaser.CANVAS,
  parent: 'content',
  width: 800,
  height: 600,
  scene: [
    MainScene
  ]
})

MainScene.js
import Bunny from "../ui/Bunny";
import Dude from '../ui/Dude'

class MainScene extends Phaser.Scene {
  constructor() {
    super({key: 'MainScene'})
  }

  preload () {
    this.load.setBaseURL('https://labs.phaser.io/')
    this.load.image('bunny', 'assets/sprites/bunny.png')
    this.load.image('dude', 'assets/sprites/phaser-dude.png')
  }

  create () {
    let rt1 = new Bunny({
      scene: this,
      x: 300,
      y: 200,
      width: 100,
      height: 100
    })

    this.add.existing(rt1)

    let rt2 = new Dude({
      scene: this,
      x: 400,
      y: 200,
      width: 100,
      height: 100
    })

    this.add.existing(rt2)
  }
}

export default MainScene

Bunny.js
class Bunny extends Phaser.GameObjects.RenderTexture {
  constructor({scene, x, y, width, height}) {
    super(scene, x, y, width, height)

      let image = this.scene.textures.getFrame('bunny')

      this.save()
      this.scale(this.width / image.width, this.height / image.height)
      this.draw(image.texture, image, 0, 0)
      this.restore()
  }
}

export default Bunny

Dude.js
class Dude extends Phaser.GameObjects.RenderTexture {
  constructor({scene, x, y, width, height}) {
    super(scene, x, y, width, height)

    let image = this.scene.textures.getFrame('dude')
    this.save()
    this.context.save()
    this.scale(this.width / image.width, this.height / image.height)
    this.draw(image.texture, image, 0, 0)
    this.context.restore()
    this.restore()
  }
}

export default Dude

output:

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

The relevant example:
http://jsfiddle.net/ugLozv3L/8/

@samid737 Thanks.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

authors: kuoruan photonstorm samid737

repo: photonstorm/phaser


text:
Adding resolution property to config object does not trigger the pointer events for GameObjects in a Container

If when using resolution property on config object the GameObjects which are created with in a container are not receiving pointer events . Using Phaser version 3.5.1 ( Issue is also observed in v3.4.0 ).
Below is the code
main.js
var getGameWidth = function () {
//var clientWidth = window.innerWidth;
//var clientHeight = window.innerHeight;
var clientWidth = screen.width;
var clientHeight = screen.height;
console.log("Return client width ", clientWidth + " - " + clientHeight);
if (clientWidth > clientHeight) {
    return clientWidth;
} else {
    return clientHeight;
}

};
var getGameHeight = function () {
console.log("Return client width ", clientWidth + " - " + clientHeight);
//var clientWidth = window.innerWidth;
//var clientHeight = window.innerHeight;
var clientWidth = screen.width;
var clientHeight = screen.height;
if (clientWidth > clientHeight) {
    return clientHeight;
} else {
    return clientWidth;
}

};
window.onload = function () {
var config = {
type: Phaser.AUTO,
width: getGameWidth(),
height: getGameHeight(),
backgroundColor: "#2e2e2e",
resolution: window.devicePixelRatio,
autoResize:true,
scene: [MyFirstScene]
};
/var config = {
type: Phaser.AUTO,
width: gameWidth(),
height: gameHeight(),
backgroundColor: "#2e2e2e",
scene:[MyFirstScene]
};/
game = new Phaser.Game(config);

};

MyFirstScene.js
class MyFirstScene extends Phaser.Scene {
constructor() {
super("MyFirstScene");
}
preload() {
    this.load.image("background", "assets/background.png");
    this.load.spritesheet("cards", "assets/cards_sprite_sheet.png", {frameWidth: 113, frameHeight: 148, endFrame: 55});
    this.load.script("CustomLayout", "js/CustomLayout.js");
}

create() {
    var gameWidth = game.config.width;
    var gameHeight = game.config.height;
    var background = this.add.image(0, 0, "background");
    background.setOrigin(0, 0);
    var imageWidth = background.width;
    var imageHeight = background.height;
    background.setScale(gameWidth / imageWidth, gameHeight / imageHeight);
    background.setInteractive();
    background.on("pointerup",function(){
        console.log("Pointer up on background");
    },this);

    var layout = new CustomLayout(this,0,300);
    this.children.add(layout);
}

}

CustomLayout.js
var CustomLayout = function (scene, x, y, children) {
Phaser.GameObjects.Container.call(this, scene, x, y, children);
this.createChildren();
};
CustomLayout.prototype = Object.create(Phaser.GameObjects.Container.prototype);
CustomLayout.prototype.constructor = CustomLayout;
CustomLayout.prototype.createChildren = function () {
console.log("Create Children ", this.scene.input);
for (var index = 0; index < 10; index++) {
var image = new Phaser.GameObjects.Image(this.scene);
image.setTexture("cards");
image.setFrame(index);
image.name = "card - " + index;
image.setOrigin(0, 0);
var screenWidth = Math.max(screen.width, screen.height);
var imageWidth = screenWidth * 0.11;
var imageHeight = screenWidth * 0.15;
var actualWidth = image.width;
image.setScale(imageWidth / actualWidth, imageWidth / actualWidth);
image.setPosition(Math.floor((index) * image.width / 4), 30);
console.log("Image position ", image.x + " -- " + image.y);
image.setInteractive();
image.on("pointerup", function () {
console.log("Image Pointer events ", arguments);
}, this);
this.add(image);
}
};

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

This issue is currently blocked pending development of the Scale Manager, which will begin during the month of May 2018. It will be updated once it has been tested against the new Scale Manager.

@photonstorm . The issue is fixed with version 3.6.0.


text:
Two way collision between circles, with arcade physics

Version

Phaser Version: 3.15.1
Operating system: Windows 10
Browser: Not specific.

Description
This concerns the arcade physics engine.
If you have two Circles colliding "sideways" while both having a velocity, the bounce will be extremely weird, like if they are "bouncing back".
Example Test Code
This code is almost exactly the same than this example : http://labs.phaser.io/view.html?src=src\physics\arcade\circular%20body.js&v=3.15.1
I just changed the initial velocities to make them do the weird collide bug.
var config = {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    parent: 'phaser-example',
    physics: {
        default: 'arcade',
        arcade: {
            debug: true,
            gravity: { y: 100 }
        }
    },
    scene: {
        preload: preload,
        create: create
    }
};

var game = new Phaser.Game(config);

function preload ()
{
    this.load.image('wizball', 'assets/sprites/wizball.png');
}

function create ()
{
    var ball1 = this.physics.add.image(100, 240, 'wizball');
    var ball2 = this.physics.add.image(700, 240, 'wizball');

    ball1.setCircle(46);
    ball2.setCircle(46);

    ball1.setCollideWorldBounds(true);
    ball2.setCollideWorldBounds(true);

    ball1.setBounce(1);
    ball2.setBounce(1);

    // here are the changed velocities
    ball1.setVelocity(150, 0);
    ball2.setVelocity(-150, 0);

    this.physics.add.collider(ball1, ball2);
}

Additional Information
I'm currently building a game of "bumper ships", where the collisions should work like a billard game. This weird bounce is the only thing that is holding me back.
Billard games are very common, and I wonder if anyone has tried to make one with the arcade physics engine. If you did, I'll be glad to hear how you managed the collisions.

Thank you for submitting this issue. We have fixed this and the fix has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

authors: JeSuisUnCaillou photonstorm


text:
After scaling the layer of a tilemap camera seems to get buggy

I was working on a small map that i scale to make the player feels that its a big (and pixelated) world while its just a small and simple tilemap.
While doing this i've noticed that the camera its not working quite well. I have prepared a demo using one of the examples from http://examples.phaser.io
Demo using mario
http://jsbin.com/xicav/3/
Source;
http://jsbin.com/xicav/3/edit?js,output

Is there any update to this? I'm trying to scale my tilemaps as well but everything is coming out wonky. Doing the below will re-scale the layers but the collisions are not fixed even if scaling is before the map.setCollisionsBetween.
var layer = map.createlayer('myLayer')
layer.scale.set(2,2); //Double the scale

This feature is now merged in the dev branch and will be part of the 2.3 release.

authors: JRogaishio eugenioclrc photonstorm


text:
Add mailhog to bin

Related https://github.com/php/php-src/pull/13190

@bukka
Could you look this?

repo: php/php-sdk-binary-tools


text:
Unable to try out v3.0.0-alpha.4

Trying to use the phpDocumentor.phar as php phpDocumentor.phar run -h throws error:
In FileLocator.php line 44:

  The file "phar:///srv/sites/cake-apps/cakephp/phpDocumentor.phar/config/packages" does not exist.

Trying to install using composer as composer require --dev phpdocumentor/phpdocumentor:3.0.0-alpha.4 gives error
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.4.0].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.4.0].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.4.0].
    - phpdocumentor/phpdocumentor v3.0.0-alpha.4 requires phpdocumentor/type-resolver ^0.7.1 -> satisfiable by phpdocumentor/type-resolver[0.7.1].
    - Installation request for phpdocumentor/phpdocumentor 3.0.0-alpha.4 -> satisfiable by phpdocumentor/phpdocumentor[v3.0.0-alpha.4].
    - Installation request for phpdocumentor/type-resolver (locked at 0.4.0) -> satisfiable by phpdocumentor/type-resolver[0.4.0].

Version used: v3.0.0-alpha.4
PHP version: 7.2
OS: linux

Try to use composer require --update-with-dependencies option.
The most important information from output:

phpdocumentor/phpdocumentor v3.0.0-alpha.4 requires phpdocumentor/type-resolver ^0.7.1 -> satisfiable by phpdocumentor/type-resolver[0.7.1].
Installation request for phpdocumentor/type-resolver (locked at 0.4.0) -> satisfiable by phpdocumentor/type-resolver[0.4.0].

@garas I had already tried requiring after removing the composer.lock file too. Which gave error saying (installed at 0.4.0) instead of (locked at 0.4.0).
Trying composer require --dev phpdocumentor/phpdocumentor:3.0.0-alpha.4 after removing composer.lock as well as existing vendor directory gives:

  Problem 1
    - phpdocumentor/reflection-docblock 3.0.2 requires phpdocumentor/type-resolver ^0.1.5 -> satisfiable by phpdocumentor/type-resolver[0.1.5, 0.1.6, 0.1.7, 0.1.8].
    - phpdocumentor/reflection-docblock 3.0.3 requires phpdocumentor/type-resolver ^0.1.5 -> satisfiable by phpdocumentor/type-resolver[0.1.5, 0.1.6, 0.1.7, 0.1.8].
    - phpdocumentor/reflection-docblock 3.1.0 requires phpdocumentor/type-resolver ^0.2.0 -> satisfiable by phpdocumentor/type-resolver[0.2, 0.2.1].
    - phpdocumentor/reflection-docblock 3.1.1 requires phpdocumentor/type-resolver ^0.2.0 -> satisfiable by phpdocumentor/type-resolver[0.2, 0.2.1].
    - phpdocumentor/reflection-docblock 3.2.1 requires phpdocumentor/type-resolver ^0.3.0 -> satisfiable by phpdocumentor/type-resolver[0.3.0].
    - phpdocumentor/reflection-docblock 3.2.2 requires phpdocumentor/type-resolver ^0.3.0 -> satisfiable by phpdocumentor/type-resolver[0.3.0].
    - phpdocumentor/reflection-docblock 3.2.0 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 3.2.3 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 3.3.0 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 3.3.2 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.0.0 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.0.1 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.1.0 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.1.1 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.2.0 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.3.0 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - phpdocumentor/reflection-docblock 4.3.1 requires phpdocumentor/type-resolver ^0.4.0 -> satisfiable by phpdocumentor/type-resolver[0.4.0].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.1.5].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.1.6].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.1.7].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.1.8].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.2].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.2.1].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.3.0].
    - Can only install one of: phpdocumentor/type-resolver[0.7.1, 0.4.0].
    - phpdocumentor/phpdocumentor v3.0.0-alpha.4 requires phpdocumentor/type-resolver ^0.7.1 -> satisfiable by phpdocumentor/type-resolver[0.7.1].
    - Conclusion: don't install symfony/framework-bundle v4.3.3
    - Conclusion: don't install symfony/framework-bundle v4.3.2
    - Conclusion: don't install phpunit/phpunit 8.3.3
    - Conclusion: don't install symfony/framework-bundle v4.1.12|install phpunit/phpunit 8.3.3
    - Conclusion: don't install phpdocumentor/reflection-docblock 5.0.0-alpha5
    - Installation request for phpunit/phpunit ^8.3.3|^8.4 -> satisfiable by phpunit/phpunit[8.3.3, 8.3.4, 8.3.x-dev, 8.4.x-dev].
    - Conclusion: install phpspec/prophecy 1.8.x-dev
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install symfony/framework-bundle v4.3.1
    - Conclusion: don't install phpdocumentor/reflection-docblock 2.0.5|install symfony/framework-bundle v4.1.12|install symfony/framework-bundle v4.3.1|install symfony/framework-bundle v4.3.2|install symfony/framework-bundle v4.3.3
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install symfony/framework-bundle v4.3.0|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install phpdocumentor/reflection-docblock 5.0.0-alpha4|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpdocumentor/reflection-docblock 2.0.4|install symfony/framework-bundle v4.1.12|install symfony/framework-bundle v4.3.0|install symfony/framework-bundle v4.3.1|install symfony/framework-bundle v4.3.2|install symfony/framework-bundle v4.3.3
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install symfony/framework-bundle v4.2.11|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install symfony/framework-bundle v4.1.11|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install phpdocumentor/reflection-docblock 5.0.0-alpha3|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpdocumentor/reflection-docblock 2.0.3|install symfony/framework-bundle v4.1.11|install symfony/framework-bundle v4.1.12|install symfony/framework-bundle v4.2.11|install symfony/framework-bundle v4.3.0|install symfony/framework-bundle v4.3.1|install symfony/framework-bundle v4.3.2|install symfony/framework-bundle v4.3.3
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install symfony/framework-bundle v4.2.10|install phpdocumentor/reflection-docblock 2.0.3|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install symfony/framework-bundle v4.1.10|install phpdocumentor/reflection-docblock 2.0.3|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install phpdocumentor/reflection-docblock 5.0.0-alpha2|install phpdocumentor/reflection-docblock 2.0.3|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5
    - Installation request for phpdocumentor/phpdocumentor 3.0.0-alpha.4 -> satisfiable by phpdocumentor/phpdocumentor[v3.0.0-alpha.4].
    - Conclusion: don't install phpdocumentor/reflection-docblock 2.0.2|install symfony/framework-bundle v4.1.10|install symfony/framework-bundle v4.1.11|install symfony/framework-bundle v4.1.12|install symfony/framework-bundle v4.2.10|install symfony/framework-bundle v4.2.11|install symfony/framework-bundle v4.3.0|install symfony/framework-bundle v4.3.1|install symfony/framework-bundle v4.3.2|install symfony/framework-bundle v4.3.3
    - phpspec/prophecy 1.8.x-dev requires phpdocumentor/reflection-docblock ^2.0|^3.0.2|^4.0 -> satisfiable by phpdocumentor/reflection-docblock[2.0.0, 2.0.0a1, 2.0.0a2, 2.0.0a3, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 3.0.2, 3.0.3, 3.1.0, 3.1.1, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.3.0, 3.3.2, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.3.0, 4.3.1].
    - Can only install one of: phpdocumentor/reflection-docblock[5.x-dev, 2.0.0].
    - Can only install one of: phpdocumentor/reflection-docblock[5.x-dev, 2.0.0a1].
    - Can only install one of: phpdocumentor/reflection-docblock[5.x-dev, 2.0.0a2].
    - Can only install one of: phpdocumentor/reflection-docblock[5.x-dev, 2.0.0a3].
    - Can only install one of: phpdocumentor/reflection-docblock[5.x-dev, 2.0.1].
    - phpdocumentor/phpdocumentor v3.0.0-alpha.4 requires phpdocumentor/reflection-docblock 5.*@alpha -> satisfiable by phpdocumentor/reflection-docblock[5.0.0-alpha1, 5.0.0-alpha2, 5.0.0-alpha3, 5.0.0-alpha4, 5.0.0-alpha5, 5.x-dev].
    - Conclusion: don't install phpspec/prophecy 1.8.x-dev|don't install phpdocumentor/reflection-docblock 5.0.0-alpha1|install phpdocumentor/reflection-docblock 2.0.2|install phpdocumentor/reflection-docblock 2.0.3|install phpdocumentor/reflection-docblock 2.0.4|install phpdocumentor/reflection-docblock 2.0.5

I think think the issue might be that the project I am trying to add phpDocumentor to already as phpunit as a dependency.
Looking at this repo's .travis.yml is see it installs phpunit globally with comment cannot use phpunit.phar or require-dev, because this package is a phpunit dep.

For exactly that reason we are thinking about to drop the support of composer installs.
I understand that it's frustrating when the alpha phar doesn't work. I'm wondering why, because it passed the tests. Can you provide some more information about your project? It could be that we have some conflicts here

@jaapio I have provided error message shown when I try to run the .phar, I don't think it has anything to do with my project.
For reference we are trying evaluate phpDocumentor2 for upcoming v4 of CakePHP which will be PHP 7.2+.

Ok, I will give it a try. myself to see what is going on here. Will post an update when I have found something

I just the downloaded phar agains the cakephp 4.x branch without any issues. So I expect that there is something wrong on your side. I'm trying to find out what it could be.

Not sure if it is an option for you. But when running it in docker works like charm for example:
docker run --rm -v $(pwd):/cake --workdir=/cake php:7.2 php phpDocumentor.phar run
But I'm very curious what is going on on your system. Can you provide some more details about the OS you are using. exact installed php version and modules.
for example the output of php -v &  php -m

Earlier I had phar.readonly and phar.require_hash set to Off when I got the error posted.
I turned those settings On re-downloaded the phar.  Now I get
$ php phpDocumentor.phar run -h

In Kernel.php line 520:

  Warning: file_put_contents(phar:///srv/sites/cake-apps/cakephp/phpDocumentor.phar/var/cache/dev/phpDocumentorDevDebugProjectContainerDeprecations.log): failed to open stream: phar error
  : write operations disabled by the php.ini setting phar.readonly

In Kernel.php line 607:

  Unable to create the cache directory (phar:///srv/sites/cake-apps/cakephp/phpDocumentor.phar/var/cache/dev)

I have APP_ENV var set to debug which seems to make phpdoc think it should work in development mode :slightly_smiling_face:.

I get the help output if I explicitly specify the environment using php phpDocumentor.phar run -h -e prod.

Ok thats a nice catch. I think the APP_ENV is the problem. Need to remove that.
for now just pass on with the -e prod flag.
If you have any other issues please create an issue and I will guide you through :-)

Here are the docs generated for 4.x of cakephp/cakephp: https://admad.github.io/cakephp-4-api-docs/
As you can see the links for namespaces/classes are missing for the menus.
Also got tons of deprecation notices like this one when generating the docs:
php.INFO: User Deprecated: Use getType, because type is an object {"exception":"[object] (ErrorException(code: 0): User Deprecated: Use getType, because type is an object at phar:///srv/sites/cake-apps/cakephp/phpDocumentor.phar/src/phpDocumentor/Descriptor/Tag/BaseTypes/TypedAbstract.php:52)"} []

I discovered that the issue is only in the clean template. I need to check what is broken here. Please follow the progress in #2119
could use --tempate=responsive as work around.

$ php phpDocumentor.phar run -e prod -d src/ -t ../cakephp-4-api-docs --tempate responsive
[2019-08-26 18:20:37] console.ERROR: Error thrown while running command "run -e prod -d 'src/' -t '../cakephp-4-api-docs' --tempate responsive". Message: "The "--tempate" option does not exist." {"exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): The \"--tempate\" option does not exist. at phar:///srv/sites/cake-apps/cakephp/phpDocumentor.phar/vendor/symfony/console/Input/ArgvInput.php:218)","command":"run -e prod -d 'src/' -t '../cakephp-4-api-docs' --tempate responsive","message":"The \"--tempate\" option does not exist."} []
[2019-08-26 18:20:37] console.ERROR: Error thrown while running command "{command}". Message: "{message}" {"exception":"[object] (Symfony\\Component\\Console\\Exception\\RuntimeException(code: 0): The \"--tempate\" option does not exist. at phar:///srv/sites/cake-apps/cakephp/phpDocumentor.phar/vendor/symfony/console/Input/ArgvInput.php:218)","command":"run -e prod -d 'src/' -t '../cakephp-4-api-docs' --tempate responsive","message":"The \"--tempate\" option does not exist."} []

  The "--tempate" option does not exist.

project:run [-t|--target [TARGET]] [--cache-folder [CACHE-FOLDER]] [-f|--filename [FILENAME]] [-d|--directory [DIRECTORY]] [--encoding [ENCODING]] [--extensions [EXTENSIONS]] [-i|--ignore [IGNORE]] [--ignore-tags [IGNORE-TAGS]] [--hidden] [--ignore-symlinks] [-m|--markers [MARKERS]] [--title [TITLE]] [--force] [--validate] [--visibility [VISIBILITY]] [--defaultpackagename [DEFAULTPACKAGENAME]] [--sourcecode] [--template [TEMPLATE]] [--parseprivate] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-c|--config [CONFIG]] [--log [LOG]] [-e|--env ENV] [--no-debug] [--] <command>

It says --template option does not exists, even though the help message does show the option.

Sorry, I made a type in the option name :blush:.

But using the responsive template doesn't generate any html files, just a bunch of folders with css and js files.

I think you are missing some php dependencies, but I would expect some errors. When they are missing. The responsive template is using php-xsl to process the xml output to html.

I created a new issue. Since the issues reported earlier in this item are resolved. Otherwise, it will be very hard for us to keep track of the work that needs to be done.

authors: ADmad garas jaapio


text:
🛑 phpMyFAQ Homepage is down

In 6d8e8bf, phpMyFAQ Homepage (https://www.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Homepage is back up in 2d5876b.


text:
🛑 phpMyFAQ Homepage is down

In f0c1379, phpMyFAQ Homepage (https://www.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Homepage is back up in 9ca6ae1.


text:
🛑 phpMyFAQ Demo is down

In a4bf38d, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in 1bc8ff5.


text:
🛑 phpMyFAQ API is down

In 554c53e, phpMyFAQ API (https://api.phpmyfaq.de/versions) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ API is back up in b2df140 after 4 minutes.


text:
🛑 phpMyFAQ Demo is down

In af5b4ca, phpMyFAQ Demo (https://demo.phpmyfaq.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: phpMyFAQ Demo is back up in 1f203ea after 19 minutes.


text:
UnusedLocalVariable false positive when variable inlined in string

Example:
$test = 1234;

echo "Hello ${test}";

This results in $test being reported as unused, whereas in reality it is being used.

Is this resolved by #443?

Yes, it should.

authors: avindra jdufresne ravage84

repo: phpmd/phpmd


text:
设计的方向是自顶向下吗，好像还没看到具体如何交互

设计的方向是自顶向下吗，好像还没看到具体模块如何交互，我是一名 web go工程师,不太了解游戏的逻辑 希望学习下

没有具体的方向，想到哪，写到哪


text:
FISSARE APPUNTAMENTO degli interventi

PRENDI ESEMPIO l'intervento di TONELLO MARCO
la durata di un intervento non si può mai sapere prima della fine dell'intervento.
Prendendo come esempio TONELLO MARCO.

chiamo il cliente e decidiamo che ci vediamo alle ore 11 del giorno 06.05.2017
inizio a passare il cavo ma ci posso mettere 1h o 3h prima di riuscire a finire l'intervento
in base a quando detto al punto 2, io per fissare l'appuntamento sul calendario vado nell'intervento del cliente e faccio AGGIUNGI DATE e devo poter inserire solo la DATA e L'ORA INIZIO.
4). quando ho finito l'intervento rientro nella data dell'intervento e imposto ORA FINE.

vero, ma avevamo concordato di impostare un default di 2 ore. non e' possibile creare un intervento in calendario senza impostare una data fine.
l'idea di base era: fisso un appuntamento e gli do una durata base (da te fissata in 2 ore). il giorno dell'intervento faccio la variazione (magari la fissa in automatico l'app, quando creo il rapportino).
non capisco dove sia la issue.

confermo quanto detto da te.
allora la impostiamo a 15 minuti. una sostituzione di un'antenna la faccio solitamente in 30minuti

anzi impostalo a 1 minuto

authors: hacosmin physio

repo: physio/anigest


text:
Per App Settings only available to system apps

I don't see per apps setting for user installed apps as shown in the screenshot below:

My device info:

Lenovo Tab P11, TB-J606L
Android 11
PIA version: 3.12.4 (571) - playstore

Any update on this?

Can confirm that this is an issue for me aswell, been running 3.12.3 (10570) sideloaded as a workaround for a while and tried the newest sideload version and playstore version today to see if anything had changed but nothing yet.
This is version 3.16.0 (577)

Version 3.16.0 (10577)

Version 3.12.3 (10570)

This is not the only app missing from the list, Google Home is also missing to give an example, but the one I need to work.
Hardware info:
Sony Xperia 1 III
Android 12 (61.1.A.11.36)

To clarify though, I don't think it's limited to just system apps for me, Battle.net authenticator still shows up for example, but alot of apps are indead missing for some reason.

Just tested 3.17.0 (579) and am still experiencing the issue

Is there any update on this?

Same issue here. Alot of apps missing from "Per Apps Settings"
It looks like many users face the same issue:
https://www.reddit.com/r/PrivateInternetAccess/comments/rc6axp/per_app_settings_on_android/
https://www.reddit.com/r/PrivateInternetAccess/comments/uz19uv/android_per_app_settings_doesnt_show_all_apps/

I've been in contact with support about this issue a couple of times and the responses has varied between "we've never heard of this before!" and "the development team is working to resolve the issue, it should be fixed in the next patch!".
I've gotten some variation of the first response after I've gotten the second response so either the support team is not all up to date on the current known issues or someone is lying.
Doesn't really seem to be much developer activity here on GitHub either so I don't know if any issues are actually monitored...

Really? Nothing for two years?

Most likely is the check when the adaptor is getting populated.
It seems like they should use checkSelfPermission which is a safer and correct way to check the permission.
Not sure why it would filter out too much since many apps should have the permission to have internet access
https://github.com/pia-foss/android/blob/2413ef5cd2a6c839010fcf4692789d994975576f/app/src/main/java/com/privateinternetaccess/android/ui/tv/fragments/PerAppFragment.java#L178C66-L178C66

hello everyone! first of all, apologies for the unfogivable delay on the reply. I believe this is something that has been addressed and it should no longer be the case on version 3.19.2. If you face it again, please feel free to create a new issue. We are working to keep a closer look at the issues reported here 🙇

Can confirm that this issue is finally fixed and per app settings actually show all apps again.

authors: Gronsak ThoSap darkmagic13 kp-juan-docal kreaninw max246 nethershaw zackarno

repo: pia-foss/android


text:
🛑 FreeDMR IT Bridge is down

In 4d1621d, FreeDMR IT Bridge (https://dashboard.freedmr.it) was down:

HTTP code: 0
Response time: 0 ms

Resolved: FreeDMR IT Bridge is back up in 169c06d.

repo: picchiosat/HBLink-Uptime


text:
Upgrade to Ultradom

Hi @pickle-ts. Ultradom is the continuation of and successor to Picodom.
Could you update your dependencies / code / etc? Also please update your repository's tags — remove picodom and change it to ultradom.
Cheers! 👋

Hi Jorge - just done a big update to pickle including porting over the latest version of Ultradom to Typescript. Perhaps that might be useful to you. Many thanks to you for Ultradom!
Cheers

authors: jorgebucaran pickle-ts

repo: pickle-ts/pickle


text:
Footnotes not working in Pico 2

Hello and happy 2019 to all!
I used new year's vacations to upgrade my blog from Pico 1 to Pico 2 via pre-bundled package and everything worked fine.
The only things I can't make work are footnotes, both in the remote Apache server and in my local one I use for testing.
The same .md file that gets parsed correctly under v1, under v2 outputs what looks like raw html
1.
custom footnote text  ↩

I checked, the new config.yml file tells Pico to use Markdown Extra; if it didn't, footnotes wouldn't appear at all and markers in the text would look like this ^1 rather than this^1.
I also copied over the vendor folder once again to make sure nothing was corrupted.
Checking the html from the browser, the
 element is present and shows up correctly.
Html for the above referenced note reads:

<p>custom footnote text &#160;<a href="#fnref1:1" rev="footnote" class="footnote-backref">&#8617;</a></p>

Am I missing something, what am I doing wrong?
Thank you very much

Pico uses Parsedown as Markdown parser (resp. Parsedown Extra, Parsedown's extension for Markdown Extra), so to put a long story short: Regarding Markdown, Pico does, what Parsedown does.
Unfortunately there's a known issue with footnotes in Parsedown Extra since Parsedown 1.7, see https://github.com/erusev/parsedown-extra/issues/118. Development of Parsedown Extra isn't very active, but there's a beta release of Parsedown Extra (v0.8.0-beta.1) that seems to fix the issue. Since it doesn't seem that there's going to be a stable release soon, I've just released a beta release of Pico (v2.0.5-beta.1 (not yet released, see below)) that uses Parsedown Extra 0.8 and Parsedown 1.8 (as said, both currently in beta).
Some extra testing is required before deploying this as a stable bugfix release of Pico 2.0. Please keep in mind that this is a rather outstanding move; stability is very important to Pico, depending on a beta release of a library is bad. However, the fact that this is a long-living issue in Parsedown Extra (and that apparently not much is happening) is bad, too. Thus extra testing is required. Please test v2.0.5-beta.1 (not yet released, see below) whether it fixes your issue and doesn't break your other Markdown files.
@all: There were pretty massive changes in Parsedown 1.8, there might be issues with existing Markdown files in the wild, so: Additional testing is highly appreciated! Not just related to footnotes, but all your Markdown files in general.

Note about v2.0.5-beta.1: v2.0.5-beta.1 has not been released yet because Travis CI seems to have a major outage: jobs start with major delays only, making it virtually impossible to deploy a release (the latest build is running for over an hour now...). Will release v2.0.5-beta.1 tomorrow.

v2.0.5-beta.1 is out now.
@ALL: There were pretty massive changes in Parsedown 1.8, there might be issues with existing Markdown files in the wild, so: Additional testing is highly appreciated! Not just related to footnotes, but all your Markdown files in general.

First of all, thanks for releasing a new beta following my issue!
I tried v2.0.5-beta.1 on my existing md files and this is what turned out:

footnotes work!

headings kind of work, but the bug is minor since the closing hashes aren't necessary. Anyway, closing # show up in parsed html, but only if followed by some character - including white spaces. So, for example, these get rendered correctly
## heading 2 and heading 2 #
while these
## heading 2 ##  and ## heading 2 #s
get rendered as
heading 2 ##  and heading 2 #s
now, putting letters after the closing hash is pointless, but I used to put space space return after closing hashes when I began writing with markdown. Nowadays, I don't use closing hashes anymore, but still use space space return even after headings as a habit.
This output is obtained even if breaks in the markup are set to be reflected in the parsed output too.
Again, this bug is very minor, but it exists nonetheless.
Setext-style headers with = and - work just fine even with space space return

images show up

inline html works

I tried to read some of the comments on ongoing work on parsedown, but I think I understood 30% of what was being said. So, if I can be of any further help, please let me know since I can't get any further than this for now in understanding what might be some weak points to test.

Greetings. I joined GitHub so I could post this.
I noticed two problems with the generated footnotes. The first and most obvious is that they aren't rendering correctly. The second is that the anchor links aren't working properly.
After reading through everything in this thread I upgraded Parsedown to the 0.8 beta and that fixed all of the footnote rendering issues for me just as it did for you guys, but the anchors still don't work. Taking a look at the generated HTML directly everything looks fine with the  tags being formatted correctly, but when I hover my mouse over the link I noticed the web addresses were too short. I'm wondering if this could be caused by how Pico generates pages? I don't know.
For example: I have Pico currently installed under html/cms-staging/ while I build my site, and am working on a file that generates the address mywebsite.com/html/cms-staging/dev-journals/app-journal/page-name in my browser address bar when being viewed.
Footnotes generate HTML id attributes like #fn:1 and when you hover your mouse over the link you'd expect it to be mywebsite.com/html/cms-staging/dev-journals/app-journal/page-name#fn:1, but instead you just get the base url, plus a slash, plus the anchor id, resulting in mywebsite.com/html/cms-staging/#fn:1 which isn't a valid address (Well, actually it's the home page, but there's no #fn:1 anchor there, nor is that the expected destination URL for a same-page anchor.) The footnote return links that are also doing the same.
Your thoughts?

Sounds like your theme creates a <base href="" /> element in your website's . Remove this element and make sure to use absolute URIs instead.

That fixed it! Thank you!

authors: PhrozenByte roboticforest stefanocpp

repo: picocms/Pico


text:
assets in subfolders

For better organization it would be good to put images of a sub-site into its own assets folder. For example,
contents
          sub-folder1/index.md
          sub-folder1/assets/image1.png, image2.png, ....
          sub-folder2/index.md
          sub-folder2/assets/image1.png, image2.png, ....

Is it possible? How?

Please refer to Pico's user docs, http://picocms.org/docs/#creating-content
There's a distinct assets/ folder you can and should use. You can use whatever structure you prefer inside this folder. Your content/ folder isn't accessible from the outside for security reasons.

I'm finding myself in the same situation where I use Image Paste for Sublime Text, that writes the image from the clipboard into a markdown file as link. The image is saved relatively to the document.
blogpost-12345.md
blogpost-12345/blogpost-123451.png
blogpost-12345/blogpost-123452.png
etc.
This makes it quite easy to create articles and not jumping between folders, copy filenames etc.
Given, this is a very specific case, there are probably other Markdown editors that simplify the process in a different way or one can optimize the process of creating documents with images by oneself.
At the end, it's easy to get around the restriction and just tweak the .htaccess to allow access to the content folder (with all security implications) and rewrite paths to the images in a plugin.
RewriteRule ^(config|content|content-sample|lib|vendor)(/|$) index.php [L]

So I guess, Pico should indeed stick to their concept of separating assets and content.
(just my 2cents)


text:
Can't import Device in linux

Setup

Version of Python: 3.5
Pico Technology device model: 5244D
Driver name, version number and platform (32- or 64-bit): 64bit
Operating system: Linux Debian
USB port type	(e.g. 2.0): 3.0

Description
When importing Device there is an import error.
from ctypes import c_int16, c_int32, c_uint32, c_float, create_string_buffer, byref, cdll, WinDLL
    ImportError: cannot import name 'WinDLL'

Steps to reproduce the issue

Create main.py
Write from picosdk.device import Device

Actual Result
   from ctypes import c_int16, c_int32, c_uint32, c_float, create_string_buffer, byref, cdll, WinDLL
ImportError: cannot import name 'WinDLL'

Expected Result
No import error.
Notes
In __init__.py from ctypes to import WinDLL this condition has to pass : if _os.name in ("nt", "ce"): When you are on linux os.name returns posix.
Maybe change
from ctypes import c_int16, c_int32, c_uint32, c_float, create_string_buffer, byref, cdll, WinDLL

to
from ctypes import c_int16, c_int32, c_uint32, c_float, create_string_buffer, byref
if sys.platform == 'win32':
    from ctypes import WinDLL
else:
    from ctypes import cdll

After this modification on my side I get with this problem:
  File "/home/.../lib/python3.5/site-packages/picosdk/library.py", line 69, in <module>
    from picosdk.device import Device
ImportError: cannot import name 'Device'

I've just hit the same issue with a Pico 4444. Will update if I find a workaround.

@brianbienvenu, the (beta) armhf drivers for BeagleBone Black and Raspberry Pi platforms do not currently support the PicoScope 4444. We hope to address this as soon as possible.

@Lorac & @brianbienvenu, thank you for raising this issue. I have reported an issue for colleagues to investigate further.

Hello @hsmistry do you have an ETA on a fix?

Hi @Lorac, I've requested an update from a colleague.

Hi @Lorac & @brianbienvenu this should be fixed in Changeset e8deec9. Please try the updated the code and confirm if it resolves the issues for your systems.

The specified issue has been fixed thanks!

authors: Lorac brianbienvenu hsmistry

repo: picotech/picosdk-python-wrappers

license: ISC


text:
light card, white color

Hi,
How do I set the white color for my led?
Is it possible to add white in the color palette?
Thanks for this great addon

You can set white color with color temp slider.

Sorry, there must be something I didn't understand...
I have activated the temperature color change, but I can't find it on the final card.
I just have the brightness change and the color change.

Hey guys,
I have a similar problem. I'm controlling my lights via KNX and a DALI Gateway. When I add a mushroom light card and select my RGBW light, I can only use color control and no color temperature. So I'm not able to select a whit color ever again with this method. Adding a button or whit space in the color palette would be awesome! ;)
For now, I'm using a workaround: Long-press action sends a knx group-address to change back to white.
Thanks for your great work!
Best
Felix

Same here with HomeMatic RGBW LED controller. It's possible to select white from HA color wheel for the entity, but it doesn't expose the color temperature control. The controller either uses white LEDs (if set to white) or RGB LEDs (if set to any other color).

+1 - I have some LEDs which don't seem to expose temperature control, so I can't return them back to white when using the mushroom light card, even when I enable 'temperature control' on the card options, nothing shows up.
It would be great to have white added to the end of the colour slider so that it can be picked for LEDs like these.

Got the same issue.  My bulb does not expose the colour temperature property and thus cannot see it when enabled.  Please add white to the colour palette or implement an alternative solution?   Since the bulbs are set to white, the colour on the slider doesn't show as white.  I'm using v2.

+1 following (IKEA TRADFRI bulbs)

Hi Paul (@piitaya), would it be an idea to add this as a feature. Adding an option "emulate color temp", also with some offset options. Which translates color_temp to color_xy values.
There is a HACS integration which adds lamps to a group and translates this already: https://github.com/Mr-Groch/HA-Emulated-Color-Temp-Light/blob/main/custom_components/emulated_color_temp/light.py
The problem with this integration is that I don't like to have duplicate light. entities and it does not seem to work with button cards in combination with mushroom cards.
I currently have this issue on IKEA Tradfri LED1624G9 bulbs, which don't expose color_temp either.

Well there is no way to get a white light with this card. I have to use another old style card to set it to white. Closest I can get is a light blue, but no place on that slider to get white. Here is what I have with the latest version (Mushroom version 2.5.2):

Can we get a white selection target at one end or in the middle of the slider?

I have the same problem, a way to go back to white would be nice

Still an issue: https://github.com/piitaya/lovelace-mushroom/pull/809#issuecomment-1976586374

authors: AlessandroAnnini Xitro01 glbailey ipodmusicman julienM77 piitaya realroywalker timdonovanuk yawor zoesn89

repo: piitaya/lovelace-mushroom


text:
🛑 Stripe Endpoint URL is down

In 90ae250, Stripe Endpoint URL ($STRIPEAPI) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Stripe Endpoint URL is back up in 556de2d after 1 hour, 3 minutes.

repo: pikfarm/PikfarmStatus


text:
New Gmail message

Ref: Conversation #3741 / Dan

Ref: Conversation #4469 / Martin

repo: pilotmoon/PopClip-Extensions


text:
build pimusicbox using linuxkit

I'm a big fan of debian and would love to have pimusicbox running on a debian where I can SSH in and add some stuff and upgrade some packages... but... I've come across linuxkit, which seems interesting for pimusicbox
https://github.com/linuxkit/linuxkit  A toolkit for building secure, portable and lean operating systems for containers
Although this goes in the other direction of having a "hackable" pimusicbox based on a pure debian, I think it could still be an interesting path to build the distro / images for pimusicbox.
I was inspired by a talk (in french) about linuxkit https://www.hooktube.com/watch?v=CWTJdve0g6U which explains quite well how the "embedded, task specific, linux distros" could benefit from this. I'm sure someone can find a decent intro on youtube if the project page is not explicit enough https://hooktube.com/results?search_query=linuxkit
Just putting this idea out there, in case someone else is tempted by this path and wants to share ideas and trying it out.

Thanks for the suggestion, closing in favor of #6 which already tracks a similar idea.

Or, would close if I could :-)

authors: adamcik arthurlutz

repo: pimusicbox/pimusicbox


text:
Only provide Prometheus metrics at specific endpoint /metrics

Only provide Prometheus metrics to single HTTP route /metrics, this makes it easier for other routes to be expanded by other HTTP services.
// Create a local server to serve Prometheus metrics
export const server = http.createServer(async (req, res) => {
    if (!req.url) return;
    if (req.method == "GET") {
        if (req.url === "/metrics") {
            res.writeHead(200, { 'Content-Type': prometheus.registry.contentType });
            return res.end(await prometheus.registry.metrics());
        }
    }
});

Added in commit: https://github.com/pinax-network/substreams-sink/commit/9ffa81024dd133c6ccacc3cd4084f8cb64d4a9ad

Published new release

authors: DenisCarriere chamorin

repo: pinax-network/substreams-sink


text:
Create bhavya.txt

Closes # .
Changes proposed in this PR:

Tips for an ideal PR

You have read our Code of Conduct: https://github.com/pinax/.github/blob/master/CODE_OF_CONDUCT.md
You have read our Contributing info: https://github.com/pinax/.github/blob/master/CONTRIBUTING.md
The PR is atomic
Unit tests have been updated/added, if needed
App version number has been updated in setup.py (Pinax uses SemVer)
Change Log has been updated

It looks like you inadvertently opened a PR in Pinax. Closing PR.

authors: KatherineMichel bugiebhavya

repo: pinax/pinax-blog


text:
JavaScript

#JavaScript
##User Story
as a boot camp student
i want the pre work notes to be structured on a webpage
so that i can easily find and read information
Acceptance criteria
GIVEN a Prework Study Guide website
WHEN I view the study guide
THEN I can see the four topics I learned listed along with a suggestion on what I should study first

js ADDED

repo: pindoghd/Prework-study-guide


text:
Align header with close button

I day.html template, I propose
`..{{title}}
`
The change is small-5 insteed of small-6 and add an "end" class.

DId you submit this PR to the wrong repo? Did you intend to subit this to https://github.com/sjarrin/angular-foundation?

Yes, apologize for that.

authors: GregLoichot circlingthesun

repo: pineconellc/angular-foundation