getChangeSets method does not respect the parameters passed in

I am using the client api to get the list of shelve sets. As per the documentation in this page
, the below code should return an array of items where each item's comment's max length will be 30 (since that is what i am passing to the method call). But apparently instead of using the 30, It is using maxChangeCount parameter value(which is 2). So with the below code i get items with comment of length 2 ! Also skip and top are also not working. I passed 7 to get only 7 items, but i am getting all the items!
var maxChangeCount = 2 ;
var includeDetails = true;
var includeWorkItems = true;
var maxCommentLength = 30;
var includeSourceRename = false;
var skip = 0;
var top = 7;
var projectId="my proj id here";

client.getChangesets(projectId, maxChangeCount, includeDetails, includeWorkItems,
                                                 maxCommentLength, includeSourceRename, skip, top)
    .then(function (data) {

        console.log(data.length);  // Number of items returned
        // Assume there is at least an item in the result array
        console.log(data[0].comment.length) //First item's comment length

    });

I finally found this information by looking at the latest type declaration file for tfs apis (tfs.d.ts). Here is the method signature if anyone else is interested.
/**
  * Retrieve Tfvc changesets
    *
    * @param {string} project - Project ID or project name
    * @param {number} maxCommentLength
    * @param {number} skip
    * @param {number} top
    * @param {string} orderby
    * @param {TFS_VersionControl_Contracts.TfvcChangesetSearchCriteria} searchCriteria
    * @return IPromise<TFS_VersionControl_Contracts.TfvcChangesetRef[]>
    */
   getChangesets(project?: string,
                           maxCommentLength?: number,
                           skip?: number,
                           top?: number,
                           orderby?: string,
                           searchCriteria?: TFS_VersionControl_Contracts.TfvcChangesetSearchCriteria
                         ):IPromise<TFS_VersionControl_Contracts.TfvcChangesetRef[]>;


Reading Variants from PGN file?

Is there any way to see if a pgn game is a variant such as 3-check or chess960? I don't see any way to separate normal games and variant games from the pgn chess file. Is there a way to do this?

OK, so I found that it is easy to fix this by modifying the pgn.py file. All you have to do is go to the file, and then add whichever tags you want to find to the TAGS list and likewise set them to a default value of None in the lines below that.


Data Points without coordinates

Today the car in question sent 3 data sets without coordinates in them and I was curious as to why that could happen

Without any data I can only guess: Probably missing GPS signal.


Managed Identity can be enabled at two levels

Managed Identity can be enabled at two levels

Service Fabric cluster level
Virtual Machine Scale Set level

It would be worthwhile to indicate which one KeyVaultReference depends on.
https://docs.microsoft.com/en-us/azure/service-fabric/concepts-managed-identity
https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/qs-configure-portal-windows-vmss

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

ID: 1d9706bb-4b9e-c17d-8c00-a69d10e47f81
Version Independent ID: 9d7f41f2-05b3-f638-00c4-bc10698d591f
Content: Azure Service Fabric - Using Service Fabric application KeyVault references - Azure Service Fabric
Content Source: articles/service-fabric/service-fabric-keyvault-references.md
Service: service-fabric
GitHub Login: @athinanthny
Microsoft Alias: atsenthi

Thanks for the feedback! I have assigned the issue to the content author to investigate further and update the document as appropriate.

The Prerequisites link for Managed Identity in this article says to enable Managed Identity at the Application level - here's the ARM template reference:  https://docs.microsoft.com/azure/templates/microsoft.servicefabric/2020-03-01/clusters/applications

Thanks for the info.


If registration is disabled, don't offer to register

The link Get Started » on the home page links to /main/register, like the link New user? on the page /main/login. If registration is disabled, the registration form should be replaced with a message explaining that this server is closed to registration, so users must find another one.
It wastes time to users that fill the registration form. They're notified that registration is disabled only after the registration form is correctly filled without any errors.

This is duplicated of #589, and it's already solved. Closing.


[GSSoC'23] Animal Match Game Enhacement completed

PR Description 📜

Enhacement of Animal Match Game

Fixes #2612

Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[x] I have added working video of the game in README.md (optional)
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸
https://github.com/kunjgit/GameZone/assets/114330097/53891497-259c-4ec2-a8b4-a16760724221

Thank you soo much for contributing to our repository 💗

Thank you @Avdhesh-Varshney ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

@kunjgit @gurjeetsinghvirdee @Arun9739 please review this pull request

Thank you  @Avdhesh-Varshney , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


ZURB Template builds broken site

How can we reproduce this bug?

Create a new foundation-site project using the zurb template via foundation new
Use this file as layouts/default.html and this as index.html.
run $npm run build in the project folder

What did you expect to happen?
I expected to get a nice compressed build in the dist-folder.
What happened instead?
The build is faulty. The off-page-navigation doesn't work, it only opens and doesn't close once it's opened. All javascript related to foundation seem faulty. Check it out in this faulty build (dropbox)
System setup
I have a windows environment.$ foundation watch works fine, the uncompressed files are not corrupted. The error is though directly related to $ npm run build.
Background info
If I run $ foundation watch with a fresh installation, I receive a "Failed to load external module babel-register" - error. If I run $ npm install babel-register babel-preset-es2015 the error disappears, however the builds remain faulty.
I have no idea what is causing this, it seems to be a major bug to me.

Yeah this is an issue right now. Also trying to get help for the same thing here. https://github.com/zurb/foundation-sites/issues/8750

@Larmor27 - there have been quite a few updates to babel-plugin-es2015 modules among others.
I'm curious if running npm update  fixes your watch tasks?

Hey @fndaily thank you for your input.
I ran $ npm update and directly afterwards $ npm run build. Unfortunately the built is still faulty, with the same error as described in my first post.
@bc-ian our problems seem related, altough my setup doesn't throw Uncaught ReferenceError: $ is not defined, neither do I encounter problems running watches. Curiously enough, my watch works perfectly fine, I even use the watch-output in a productive environment right now as a substitute.
In my case only the compressed builds are causing trouble.

@Larmor27 So it looks like 2 problems are occuring here. I have installed a fresh copy of the Zurb template and use the code you provided and I have managed to get it working.
The first problem about Failed to load external module babel-register seems to be fixed by running npm install babel-register babel-preset-es2015 --save-dev. Could you try this and tell me if it fixes that error? If so I think we need to amend the package.json file for the template to solve this completely.
The 2nd error is due to UnCSS which is causing a number of problems for users and I think will be removed, at least for now until it can be sorted out fully. To confirm its this causing the issue rather than any Babel specific issue could you try this for me to confirm?
In config.yml in the root directory, find UNCSS_OPTIONS (line 10 for me).
Under the line - !!js/regexp ^\.is-.* can you add - !!js/regexp js-off-canvas-exit
From my own testing adding this adds the style for the background overlay (UnCSS is removing it).

@brettsmason you are definitely on the right track there. First of all npm install babel-register babel-preset-es2015 --save-dev solves the error Failed to load external module babel-register when running build or watch.
Concerning the other bug, I'm sure now that UNCSS is destroying my builds. It deletes

sticky-classes like .is-anchored
reveal-related classes. If I use a reveal on my page UnCSS stripps the classes off of it that take care of positioning
the styling for the background overlay

... so how do I get rid of UnCSS asap? I'm sporting this ignore-list right now, which is not beautiful but works for my builds. Is there maybe a better expression to just disable UnCSS?
   - !!js/regexp .*     - !!js/regexp js-off-canvas-exit     - !!js/regexp ^.(fade|slide|hinge|reveal|scale|spin|zoom)     - new RegExp('.foundation-mq'),     - new RegExp('.is-stuck'),      - new RegExp('.is-at-top'),      - new RegExp('.sticky'),      - new RegExp('.is-anchored'),     - new RegExp('.svg'),     - new RegExp('.cssanimations'),     - new RegExp('.csstransitions'),     - new RegExp('.multiplebgs'),

@Larmor27 That's good news that we are on the right track.
To remove UnCSS from the production build I think you only need to remove the following:
.pipe($.if(PRODUCTION, $.uncss(UNCSS_OPTIONS))) - line 87 in gulpfile.babel.js
There are also other traces, like const { COMPATIBILITY, PORT, UNCSS_OPTIONS, PATHS } = loadConfig(); (remove UNCSS_OPTIONS) and it will be in the package.json but that should get it working.
If you can confirm it works that would be great. I can then pass this back to the others so we can look at fixing the issues permanently.

@brettsmason Okay that did the trick. Here is what I did to get rid of all error-messages and all faulty behavior of foundation:

npm install babel-register babel-preset-es2015 --save-dev to fix Failed to load external module babel-register.

Delete .pipe($.if(PRODUCTION, $.uncss(UNCSS_OPTIONS))) from the gulpfile to disable UnCSS completely.

Everything else works fine now. Thank you @brettsmason !

@Larmor27 Brilliant thanks for confirming that this fixed your issues. I'll use this as a reference to hopefully get the templates fixed.

I believe these have all been fixed in the latest versions of the template.


Maybe someday I'll add it to the seminar notes. Or maybe not. Most likely not. Whatever. You will remain unfinished. So be it. Adiós.

You know what?  I think you are quite finished as it is.


⚠ GitLab Server has degraded performance

In 837a297, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 11823 ms

Resolved: GitLab Server performance has improved in 8d84f5a.


Added Tavas and SaDDas

From  Codeforces Round #299 (Div. 2)  using BITMASKING.

Changes have been made kindly review it


🐛 [BUG] - Alignment requests

Description
Could you please

left align the "Clusters" description box with the ClusterType as well as the table that displays the clusters?
Place the clusterType as well as the filters on the same line and make those the same height?

Reproduction URL
http://<IP_ADDRESS>/clusters/SveltosCluster/1
Reproduction steps
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Screenshots
![DESCRIPTION](LINK.png)

Logs
No response
Browsers
No response
OS
No response

it is by intention these alignments as you can select multiple labels and it shows them as tags

Hmm, I was referring to these being in a line. Are you saying this was intentional? Then thats ok.

Also, was thinking it might look better if these were in the same line (instead of cluster filters being slightly below. What do you think?

for the first alignment it's not intentional , Thank you  ! will fix it
for second one , it is intentional (write some filters in the labels field)


sitemap.xml has duplicate URL when using reverse proxy

When not using localhost to access the flask app, sitemap generated has duplicated URL separated by comma causing errors. Here is the generated sitemap.xml. In this example, I'm using Nginx for reverse proxy to static local IP.
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<script id="youtube-hd-fjdmkanbdloodhegphphhklnjfngoffa">var ythdlog = () => {};;var ythderror = () => {};</script>
<url>
<loc>https://<IP_ADDRESS>,<IP_ADDRESS>/</loc>
<lastmod>2024-02-18</lastmod>
</url>
<url>
<loc>https://<IP_ADDRESS>,<IP_ADDRESS>/home</loc>
<lastmod>2024-02-18</lastmod>
</url>
<url>
<loc>https://<IP_ADDRESS>,<IP_ADDRESS>/contact</loc>
<lastmod>2024-02-18</lastmod>
</url>
</urlset>

When the same flask app is launched on localhost instead of reverse proxy IP, it works fine. The correctly generated sitemap is as follows:
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<script id="youtube-hd-fjdmkanbdloodhegphphhklnjfngoffa">var ythdlog = () => {};;var ythderror = () => {};</script>
<url>
<loc>https://<IP_ADDRESS>:8000/</loc>
<lastmod>2024-02-18</lastmod>
</url>
<url>
<loc>https://<IP_ADDRESS>:8000/home</loc>
<lastmod>2024-02-18</lastmod>
</url>
<url>
<loc>https://<IP_ADDRESS>:8000/contact</loc>
<lastmod>2024-02-18</lastmod>
</url>
</urlset>

The issue was in the NGINX file, here is a thread for someone who comes across the same issue as I did.


Error: Failure in generating int8 calibration YOLOv3 with TLT

I am running the notebook YOLO example of TLT Version 2 release in the tlt docker. I have successfully trained, pruned, and retrained the YOLO-restnet18. The results of FP32’s are fine but when I executed the tlt-export (int8) command as shown in the notebook:
!tlt-export yolo -m $USER_EXPERIMENT_DIR/experiment_dir_retrain/weights/yolo_resnet18_epoch_$EPOCH.tlt  \                  -o $USER_EXPERIMENT_DIR/FFxport/yolo_resnet18_8epoch_$EPOCH.etlt \                  -e $SPECS_DIR/yolo_retrain_resnet18_kitti.txt \                  -k $KEY \                  --cal_image_dir  $USER_EXPERIMENT_DIR/data/training/image_2 \                  --data_type int8 \                  --batch_size 1 \                  --batches 10 \                  --cal_cache_file $USER_EXPERIMENT_DIR/FFxport/cal.bin  \                  --cal_data_file $USER_EXPERIMENT_DIR/FFxport/cal.tensorfile
The warning message popped up:
Using TensorFlow backend.
2020-05-12 02:09:02,221 [INFO] /usr/local/lib/python2.7/dist-packages/iva/yolo/utils/spec_loader.pyc: Merging specification from /workspace/examples/yolo/specs/yolo_retrain_resnet18_kitti.txt
2020-05-12 02:09:05,844 [INFO] /usr/local/lib/python2.7/dist-packages/iva/yolo/utils/spec_loader.pyc: Merging specification from /workspace/examples/yolo/specs/yolo_retrain_resnet18_kitti.txt
NOTE: UFF has been tested with TensorFlow 1.14.0.
WARNING: The version of TensorFlow installed on this system is not guaranteed to work with UFF.
Warning: No conversion function registered for layer: BatchedNMS_TRT yet.
Converting BatchedNMS as custom op: BatchedNMS_TRT
Warning: No conversion function registered for layer: ResizeNearest_TRT yet.
Converting upsample1/ResizeNearestNeighbor as custom op: ResizeNearest_TRT
Warning: No conversion function registered for layer: ResizeNearest_TRT yet.
Converting upsample0/ResizeNearestNeighbor as custom op: ResizeNearest_TRT
Warning: No conversion function registered for layer: BatchTilePlugin_TRT yet.
Converting FirstDimTile_2 as custom op: BatchTilePlugin_TRT
Warning: No conversion function registered for layer: BatchTilePlugin_TRT yet.
Converting FirstDimTile_1 as custom op: BatchTilePlugin_TRT
Warning: No conversion function registered for layer: BatchTilePlugin_TRT yet.
Converting FirstDimTile_0 as custom op: BatchTilePlugin_TRT
DEBUG [/usr/lib/python2.7/dist-packages/uff/converters/tensorflow/converter.py:96] Marking [‘BatchedNMS’] as outputs
2020-05-12 02:09:22,062 [WARNING] modulus.export._tensorrt: Calibration file /workspace/tlt-experiments/yolo/export/cal.bin exists but is being ignored.
[TensorRT] INFO: Detected 1 inputs and 4 output network tensors.
[TensorRT] WARNING: Current optimization profile is: 0. Please ensure there are no enqueued operations pending in this context prior to switching profiles
[TensorRT] INFO: Starting Calibration with batch size 1.
DEPRECATED: This variant of get_batch is deprecated. Please use the single argument variant described in the documentation instead.
[TensorRT] INFO: Calibrated batch 0 in 0.101843 seconds.
[TensorRT] INFO: Calibrated batch 1 in 0.0926203 seconds.
[TensorRT] INFO: Calibrated batch 2 in 0.0919941 seconds.
[TensorRT] INFO: Calibrated batch 3 in 0.0910869 seconds.
[TensorRT] INFO: Calibrated batch 4 in 0.0929871 seconds.
[TensorRT] INFO: Calibrated batch 5 in 0.0934323 seconds.
[TensorRT] INFO: Calibrated batch 6 in 0.099967 seconds.
[TensorRT] INFO: Calibrated batch 7 in 0.104515 seconds.
[TensorRT] INFO: Calibrated batch 8 in 0.0996476 seconds.
[TensorRT] INFO: Calibrated batch 9 in 0.0921785 seconds.
[TensorRT] WARNING: Tensor BatchedNMS is uniformly zero; network calibration failed.
[TensorRT] WARNING: Tensor BatchedNMS_1 is uniformly zero; network calibration failed.
[TensorRT] WARNING: Tensor BatchedNMS_2 is uniformly zero; network calibration failed.
[TensorRT] INFO: Post Processing Calibration data in 3.91784 seconds.
[TensorRT] INFO: Calibration completed in 37.7898 seconds.
2020-05-12 02:09:59,897 [WARNING] modulus.export._tensorrt: Calibration file /workspace/tlt-experiments/yolo/export/cal.bin exists but is being ignored.
[TensorRT] INFO: Writing Calibration Cache for calibrator: TRT-7000-EntropyCalibration2
2020-05-12 02:09:59,897 [INFO] modulus.export._tensorrt: Saving calibration cache (size 9237) to /workspace/tlt-experiments/yolo/export/cal.bin
[TensorRT] WARNING: Rejecting int8 implementation of layer BatchedNMS due to missing int8 scales, will choose a non-int8 implementation.
[TensorRT] INFO: Detected 1 inputs and 4 output network tensors
It looks like I did not make it in generating an int8 implementation for calibration but I am not sure what is going on with the warnings and any solution to it.  I google-searched several forums but noting related to TLT version 2.
I appreciate your help! Thanks!

[INFO] modulus.export._tensorrt: Saving calibration cache (size 9237) to /workspace/tlt-experiments/yolo/export/cal.bin
According to above log, I think the INT8 calibration should be generated

Please refer to https://forums.developer.nvidia.com/t/errors-tlt-export-tlt-yolo-model-to-int8-calibration/122787


Prepare an animated picture for the lucy model

Prepare an animated picture that sorts the triangles by their distance to the selected vertex, and render the mesh progressively.

Completed.


Replace hand-written binary search with Vec::binary_search_by.

It's similar to https://github.com/rust-lang/miri/pull/3021 and should improve maintainability.

Makes sense, thanks!
@bors r+

:pushpin: Commit 4c5ccc25330dd964c69d9153cb3941d60f03bfd8 has been approved by RalfJung
It is now in the queue for this repository.

:hourglass: Testing commit 4c5ccc25330dd964c69d9153cb3941d60f03bfd8 with merge 106f7d8420595c83da7d65abe3414cf18c3e1d4d...

:sunny: Test successful - checks-actions
Approved by: RalfJung
Pushing 106f7d8420595c83da7d65abe3414cf18c3e1d4d to master...


No love for cocoa relative formatting

In Swift 1.2 we had a parameter in toString method to enable doesRelativeDateFormatting flag in NSDateFormatter. That parameter is now gone and there's only one method to enable it:
public func toRelativeCocoaString() -> String? {
	let formatter = NSDateFormatter()
	formatter.locale = region.locale
	formatter.calendar = region.calendar
	formatter.timeZone = region.timeZone
	formatter.dateStyle = .MediumStyle
	formatter.doesRelativeDateFormatting = true
	return formatter.stringFromDate(UTCDate)
}

However this method forces dateStyle and timeStyle and create a new NSDateFormatter on each call. In addition. NSDateFormatter.cachedFormatter() is declared internal, so no other DateInRegion extensions can use it.

Fixed in https://github.com/malcommac/SwiftDate/commit/d85c3bbbe1cc1e3be32a6a5bdd3f50d92ac2351d
Thanks


Conversation View

When clicking on replies, i want to see the conversation, not just in the browser, but in chirp itself.

Done in master.


Create multisig operation. Signers are shown as wallet

Description
When user create multisig operation it hard to understand which account would be use a a signatory, because we show wallet, which may include a few accounts.
Steps to Reproduce

Create single network multisig with signatory as Polkadot Vault wallet with few accounts inside
Select that multisig wallet
Go to Transfer flow
Try to create operation with that multisig

Expected Behavior
User can understand which particular address will be used for signing
Actual Behavior

Environment

Operating system: macOS
Version: Spektr Staking 1.4.4-4

Changes for showing account instead of wallet https://www.figma.com/file/XUbuZFQVVRXM5NNGoaB8uq/Gavin's-feedback?type=design&node-id=582%3A26133&mode=design&t=6PCfRuRkoJKTGkcl-1

This is not related to the code I touched. It must have been there before.


Black-Scholes implied vol BelowIntrinsicError with negative risk-free rate

Trying to calculate the implied vol for Eurostoxx50 options and running into problems due to the negative risk-free rate in EUR:
from py_vollib.black_scholes.implied_volatility import implied_volatility
implied_volatility(price=107.35, S=3576.1, K=3575, t=0.139726, r=-0.618873, flag='p')

Any suggestions how to handle/overcome this?

BelowIntrinsicException                   Traceback (most recent call last)
 in
1 from py_vollib.black_scholes.implied_volatility import implied_volatility
----> 2 implied_volatility(price=107.35, S=3576.1, K=3575, t=0.139726, r=-0.618873, flag='p')
~/miniconda3/lib/python3.8/site-packages/py_vollib/black_scholes/implied_volatility.py in implied_volatility(price, S, K, t, r, flag)
89     undiscounted_option_price = price / deflater
90     F = forward_price(S, t, r)
---> 91     sigma_calc = iv(undiscounted_option_price, F, K, t, binary_flag[flag])
92     if sigma_calc == FLOAT_MAX:
93         raise PriceIsAboveMaximum()
~/miniconda3/lib/python3.8/site-packages/py_lets_be_rational/lets_be_rational.py in implied_volatility_from_a_transformed_rational_guess(price, F, K, T, q)
650     :rtype: float
651     """
--> 652     return implied_volatility_from_a_transformed_rational_guess_with_limited_iterations(
653         price, F, K, T, q, implied_volatility_maximum_iterations)
654
~/miniconda3/lib/python3.8/site-packages/py_lets_be_rational/lets_be_rational.py in implied_volatility_from_a_transformed_rational_guess_with_limited_iterations(price, F, K, T, q, N)
601     intrinsic = fabs(max(K - F if q < 0 else F - K, 0.0))
602     if price < intrinsic:
--> 603         raise BelowIntrinsicException
604     max_price = K if q < 0 else F
605     if price >= max_price:
BelowIntrinsicException: The volatility is below the intrinsic value.

mea culpa. breaks of course down with non-sensical rates


⚠ ClamAV has degraded performance

In 0e7bb93, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 607 ms

Resolved: ClamAV performance has improved in 0250083.


Android Canvas error

03-15 11:05:16.689: D/Tabris(30683): WARNING Could not call method "draw" (reason: Attempt to invoke interface method 'void com.eclipsesource.tabris.android.internal.toolkit.view.gc.IGcOperation.execute(com.eclipsesource.tabris.android.internal.toolkit.view.GraphicalContext, com.eclipsesource.tabris.android.internal.toolkit.util.PrimitiveList)' on a null object reference)

fwiw, the same code works on iOS. will try to get repro code together but in general, its using three.js CanvasRenderer to just make some simple shapes on the tabris canvas

Sounds like a drawcall is made that is not supported on Android. Most likely on iOS it is not supported either but the exception is swallowed. It would be interesting to know what call that is exactly.
Could you provide a snippet?

it looks like setTransform() is causing the issue on android, works on iOS

fyi - just adding a call to setTransform in any canvas example causes the error

@bFlood The transform is currently not supported on either platform. We will be more silent about ignoring the error.

We have improved the error message on Android to make it clearer what operation has not been supported.


Bump lifecycle import code to 0.13.4

Codecov Report

Merging #935 (cb80543) into main (3771025) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #935   +/-   ##
=======================================
  Coverage   69.64%   69.64%
=======================================
  Files         119      119
  Lines        5379     5379
=======================================
  Hits         3746     3746
  Misses       1268     1268
  Partials      365      365

Impacted Files
Coverage Δ

pkg/buildpod/generator.go
66.66% <100.00%> (ø)

pkg/cnb/cnb_metadata.go
46.29% <100.00%> (ø)

pkg/cosign/image_signer.go
86.66% <100.00%> (ø)

pkg/notary/image_signer.go
71.60% <100.00%> (ø)

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 3771025...cb80543. Read the comment docs.

Resolves: https://github.com/pivotal/kpack/issues/919


Magic-Link Sveltekit example: Auth not working with slow connection

Bug report
Describe the bug
Using the sveltekit-magic-link example and throttling the connection in the chrome-devtools network tab, causes the login to quietly fail. Nothing happens, you're stuck on the loading animation from the example (/logging-in does not redirect to /dashboard) . Both slow 3G and fast 3G cause this.
To Reproduce
See above
Expected behavior
Login should work (even with slow connection)
System information

OS: macOS
Browser: Chrome
Version of supabase-js: 1.35.6, "@supabase/auth-helpers-svelte": "0.4.5", "@supabase/auth-helpers-sveltekit": "0.6.8",
Version of Node.js: v18.5.0

Additional context
I was not able to find the cause, but from observing the network calls one can notice that the /callback endpoint does not get called when using one of the throttled network speeds.

I'm unable to replicate this, you can see from my video below that everything loads on Regular 3G speed.
https://user-images.githubusercontent.com/79497/184130679-bdf62bf9-77c5-480c-84ea-60b27fd64902.mp4

Here's chrome:
https://user-images.githubusercontent.com/105976309/184142941-a125f755-f377-40db-8b0b-45de424d002f.mov
In firefox it works for me too

@philippviereck Is this still a thing after the latest release?

I´m going to close this issue not for, feel free to reopen if this is still a problem using the latest release


Error sys_platform

Hello,
I followed scrupulously "Installation guide for Ubuntu 14.04 and other versions" but I get an error that appears is the second time that the manipulations and each time the same mistake. Does he have there a solution?
I use an OVH server Ubuntu 16.04 Server (64-bit)
:~/MusicBot# python3.5 run.py
No module named 'aiohttp'
Attempting to install dependencies...
Ignoring cffi: markers "sys_platform == 'win32'" don't match your environment
Collecting discord.py[voice] (from -r requirements.txt (line 1))
Using cached discord.py-0.11.0.zip
Collecting youtube_dl (from -r requirements.txt (line 2))
Using cached youtube_dl-2016.8.1-py2.py3-none-any.whl
Requirement already up-to-date: pip in /usr/local/lib/python3.5/dist-packages (f                                                                                rom -r requirements.txt (line 3))
Collecting aiohttp<0.22.0,>=0.21.0 (from discord.py[voice]->-r requirements.txt                                                                                (line 1))
Using cached aiohttp-0.21.6.tar.gz
Collecting websockets==3.1 (from discord.py[voice]->-r requirements.txt (line 1)                                                                                )
Using cached websockets-3.1.tar.gz
Collecting PyNaCl==1.0.1 (from discord.py[voice]->-r requirements.txt (line 1))
Using cached PyNaCl-1.0.1.tar.gz
Complete output from command python setup.py egg_info:
    No working compiler found, or bogus compiler options
    passed to the compiler from Python's distutils module.
    See the error messages above.
    (If they are about -mno-fused-madd and you are on OS/X 10.8,
    see http://stackoverflow.com/questions/22313407/ .)
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                156, in save_modules
    yield saved
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                197, in setup_context
    yield
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                246, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                276, in run
    return func()
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                245, in runner
    _execfile(setup_script, ns)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-3vzxh1xi/cffi-1.7.0/setup.py", line 111, in <modul                                                                                e>

  File "/tmp/easy_install-3vzxh1xi/cffi-1.7.0/setup.py", line 65, in ask_sup                                                                                ports_thread

  File "/tmp/easy_install-3vzxh1xi/cffi-1.7.0/setup.py", line 52, in no_work                                                                                ing_compiler_found

SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_insta                                                                                ll.py", line 1100, in run_setup
    run_setup(setup_script, args)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                249, in run_setup
    raise
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                197, in setup_context
    yield
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                168, in save_modules
    saved_exc.resume()
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                143, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/_vendor/six.py"                                                                                , line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                156, in save_modules
    yield saved
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                197, in setup_context
    yield
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                246, in run_setup
    DirectorySandbox(setup_dir).run(runner)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                276, in run
    return func()
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                245, in runner
    _execfile(setup_script, ns)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/sandbox.py", line                                                                                47, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-3vzxh1xi/cffi-1.7.0/setup.py", line 111, in <modul                                                                                e>

  File "/tmp/easy_install-3vzxh1xi/cffi-1.7.0/setup.py", line 65, in ask_sup                                                                                ports_thread

  File "/tmp/easy_install-3vzxh1xi/cffi-1.7.0/setup.py", line 52, in no_work                                                                                ing_compiler_found

SystemExit: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-build-nu6ysvdp/PyNaCl/setup.py", line 259, in <module>
    "Programming Language :: Python :: 3.5",
  File "/usr/lib/python3.5/distutils/core.py", line 108, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 348                                                                                , in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 394                                                                                , in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", l                                                                                ine 826, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", l                                                                                ine 1098, in best_match
    return self.obtain(req, installer)
  File "/usr/local/lib/python3.5/dist-packages/pkg_resources/__init__.py", l                                                                                ine 1110, in obtain
    return installer(requirement)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/dist.py", line 461                                                                                , in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_insta                                                                                ll.py", line 664, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_insta                                                                                ll.py", line 694, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_insta                                                                                ll.py", line 875, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_insta                                                                                ll.py", line 1114, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/local/lib/python3.5/dist-packages/setuptools/command/easy_insta                                                                                ll.py", line 1102, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nu                                                                                6ysvdp/PyNaCl/t

No working compiler found

You don't have a compiler bub.  The instructions have you install one, which you seem to failed to do properly.

OK thanks ! It's very strange I had half the order yet. Thank you so much for your help it works perfectly!


chore(main): release 1.2.0

:robot: I have created a release beep boop
1.2.0 (2024-09-20)
Features

Add GHA lint workflow (68e1ce0)
Add GHA lint workflow (3e2b826)

Bug Fixes

Specify ansible versions (48c659f)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.2.0
:sunflower:


Fix local publish command

Fixes make publish-local command

Removes useless javadocDeps definitions
Fixes geojson javadoc issues (error: bad HTML entity)

👀 @cammace @langsmith @tobrun

@Guardiola31337 , any thoughts on @cammace 's comment above?

Closing since many of the issues in this PR have already been addressed and I have ticketed our discussion on 1javadocDeps  https://github.com/mapbox/mapbox-plugins-android/issues/191


Manage category filter if present in the pagination configuration

Pagination can be used with AutoPages.
However, filtering category was overwritten when generating pages by AutoPages for category.
This lightweight changes allows to define category or categories in the frontpage matter.
For instance, to generate pages for all categories for posts with at least the category "software"
---
layout: post
autopages:
  permalink: '/software/category/:cat/'
pagination:
  enabled: true
  category: software
---

Needs to be rebased due to forced backtracking in repo


Fix global scope issue when working with noConflict

Hi,
I think there might be a problem with the noConflict-method. When you execute the following code the device object is still bound to "window.device" inside of the device.js IEF e.g.:
var devicejs = device.noConflict();
var device = new YourOtherDeviceObject();
devicejs.desktop();

Therefor you receive the following error:
devicejs.desktop()
TypeError: undefined is not a function

Cheers,
Alex

@piscis @molefrog Should be resolved as of v0.2.1
Thank you so much!


Multi gpu training

I seem to be getting the error below when setting --num-gpus 2 in train_transfer_learning.sh with CUDA_VISIBLE_DEVICES=0,1
ERROR [07/12 12:43:41 d2.engine.train_loop]: Exception during training:
Traceback (most recent call last):
  File "/home/wanjiz/RegionCLIP/detectron2/engine/train_loop.py", line 149, in train
    self.run_step()
  File "/home/wanjiz/RegionCLIP/detectron2/engine/defaults.py", line 506, in run_step
    self._trainer.run_step()
  File "/home/wanjiz/RegionCLIP/detectron2/engine/train_loop.py", line 273, in run_step
    loss_dict = self.model(data)
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 994, in forward
    if torch.is_grad_enabled() and self.reducer._rebuild_buckets():
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument `find_unused_parameters=True` to `torch.nn.parallel.DistributedDataParallel`, and by
making sure all `forward` function outputs participate in calculating loss.
If you already have done the above, then the distributed data parallel module wasn't able to locate the output tensors in the return value of your module's `forward` function. Please include the loss function and the structure of the return value of `forward` of your module when reporting this issue (e.g. list, dict, iterable).
Parameter indices which did not receive grad for rank 0: 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 ...
 In addition, you can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print out information about which particular parameters did not receive gradient on this rank as part of this error
[07/12 12:43:41 d2.engine.hooks]: Total training time: 0:00:00 (0:00:00 on hooks)
[07/12 12:43:41 d2.utils.events]:  iter: 1  total_loss: 3.286  loss_cls: 3.053  loss_box_reg: 0.233  data_time: 3.6441  lr: 2e-07  max_mem: 12165M
Traceback (most recent call last):
  File "/home/wanjiz/RegionCLIP/./tools/train_net.py", line 170, in <module>
    launch(
  File "/home/wanjiz/RegionCLIP/detectron2/engine/launch.py", line 67, in launch
    mp.spawn(
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/multiprocessing/spawn.py", line 240, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/multiprocessing/spawn.py", line 198, in start_processes
    while not context.join():
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/multiprocessing/spawn.py", line 160, in join
    raise ProcessRaisedException(msg, error_index, failed_process.pid)
torch.multiprocessing.spawn.ProcessRaisedException:

-- Process 1 terminated with the following error:
Traceback (most recent call last):
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/multiprocessing/spawn.py", line 69, in _wrap
    fn(i, *args)
  File "/home/wanjiz/RegionCLIP/detectron2/engine/launch.py", line 125, in _distributed_worker
    main_func(*args)
  File "/home/wanjiz/RegionCLIP/tools/train_net.py", line 164, in main
    return trainer.train()
  File "/home/wanjiz/RegionCLIP/detectron2/engine/defaults.py", line 496, in train
    super().train(self.start_iter, self.max_iter)
  File "/home/wanjiz/RegionCLIP/detectron2/engine/train_loop.py", line 149, in train
    self.run_step()
  File "/home/wanjiz/RegionCLIP/detectron2/engine/defaults.py", line 506, in run_step
    self._trainer.run_step()
  File "/home/wanjiz/RegionCLIP/detectron2/engine/train_loop.py", line 273, in run_step
    loss_dict = self.model(data)
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1130, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/ahmad/regionclip/lib/python3.9/site-packages/torch/nn/parallel/distributed.py", line 994, in forward
    if torch.is_grad_enabled() and self.reducer._rebuild_buckets():
RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one. This error indicates that your module has parameters that were not used in producing loss. You can enable unused parameter detection by passing the keyword argument `find_unused_parameters=True` to `torch.nn.parallel.DistributedDataParallel`, and by
making sure all `forward` function outputs participate in calculating loss.
If you already have done the above, then the distributed data parallel module wasn't able to locate the output tensors in the return value of your module's `forward` function. Please include the loss function and the structure of the return value of `forward` of your module when reporting this issue (e.g. list, dict, iterable).
Parameter indices which did not receive grad for rank 1: 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 ...
 In addition, you can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print out information about which particular parameters did not receive gradient on this rank as part of this error

This error could be caused by the newly added language encoder for the script of language embedding extraction. You can simply comment out this line since it is not used during finetuning.

@Jawing FYI, This issue has been resolved by this commit. All scripts (multi-node finetuning, language embedding extraction) are now compatible without changing any line of code.


Build does not complete, tests failing

Failed tests:   calendarDateRangeStart(com.conveyal.gtfs.GtfsStatisticsServiceTest): expected:<Mon May 26 00:00:00 CEST 2014> but was:<Mon May 26 06:00:00 CEST 2014>
  calendarDateRangeEnd(com.conveyal.gtfs.GtfsStatisticsServiceTest): expected:<Mon May 26 00:00:00 CEST 2014> but was:<Mon May 26 06:00:00 CEST 2014>
  validateTrips(com.conveyal.gtfs.GtfsValidationServiceTest): expected:<11> but was:<9>

Judging by the 6-hour mismatch in times, I suspect that these are all timezone issues.


Vendor in latest buildah code

Use the parsing code to properly setup podman build namespaces
Fixes support for network namespace and user namespace
Signed-off-by: Daniel J Walsh<EMAIL_ADDRESS>

Need to wait for https://github.com/projectatomic/buildah/pull/761

Fixes https://github.com/projectatomic/libpod/issues/913

@TomSweeneyRedHat @giuseppe @baude @mheon @wking PTAL

LGTM once the buildah PRs are in

@rh-atomic-bot r+


fix for new libconfig

Changes Proposed in this Pull Request:

change definition in core for new non-global variable libconfig
this change is necessary to work with multiple libraries depending on libconfig

Pull Request Test Coverage Report for Build 208

0 of 0   changed or added relevant lines in 0 files are covered.
17 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.02%) to 83.83%

Files with Coverage Reduction
New Missed Lines
%

.tox/py36/lib/python3.6/site-packages/rstoolbox/core/core_init.py
4
80.95%

.tox/py36/lib/python3.6/site-packages/rstoolbox/utils/tools.py
13
78.05%

Totals

Change from base Build 207:
0.02%

Covered Lines:
3401

Relevant Lines:
4057

💛  - Coveralls


Add Generator Field

This is associated with #9.  For Standard/Featured markets we want to have the ability to denote the generator used for the generated image.

The number of generators increases and will increase, which makes it a bit tricky. For example, traditional digital platforms don't ask about the software used as there are really a lot, whole Adobe Creative Cloud. Also, do artists combine generators?

I agree, and enforcing it will be impossible.  I was at one point making it so you could publish from Discord directly to sb1 as a product.  That was back in October 2022 and got shelved due to other priorities.  That would be one way of determining the generator, but it does not allow for post-production work which is also common. 🤔

Here's how Behance does it.

Ah tagging.  Soon. :) 🤞

This is an idea I am highly against. People tend to hype Midjourney and Midjourney only. Now I have a lot of images that are generated in StableDiffusion and DALL-E which would make people not to buy them as they are not Midjourney. Whereas if they don't know it's not Midjourney, based on the quality they think it is. Furthermore will you also add all the possible models based on StableDiffusion? And why is this information important anyways?

And why is this information important anyways?

Users requested it and it was a conversation we had there they expressed a lot of interest in it. 🤔

Okay, I will just lie then.

Comforting to see that we're now attracting users with the proper moral orientation to be successful.

Comforting to see that while nobody gives a damn about my concerns, they are still worried about my morals :)

We're all about the important things in life here 😁

I am not sure how viable this story is as it is involved.  The first version (if even implemented) may involve trust from user to input the correct tools used.  We could account for very specific scenarios such as pulling directly via Discord/Midjourney to assign the value if they publish directly from Discord.  This is very specific and a lot of work.
For the most part, people are proud of the tools they use and want to promote them.  Brands like to be seen and be associated with the top-performing artists.  There is value here and I do not think people will lie and promote something they do not use.


Add an extra test with shows that you can do some nice tricks with a List

Actually this test is inspired on the documentation from WireMock.org:

request.query.- First value of a query parameter e.g. request.query.search
request.query..[]- nth value of a query parameter (zero indexed) e.g. request.query.search.[5])

This can be shown by this unit-test:
/// <summary>
/// A special HandlebarsList which overrides the ToString() to return first value.
/// </summary>
private class HandlebarsList<T> : List<T>
{
	public HandlebarsList(IEnumerable<T> collection) : base(collection)
	{
	}

	public override string ToString()
	{
		if (this.Any())
			return this.First().ToString();

		return base.ToString();
	}
}

[Test]
public void BasicPathSpecialList()
{
	var source = "Hello {{ list }} {{ list.[0] }} {{ list.[1] }}";
	var template = Handlebars.Compile(source);
	var data = new
	{
		list = new HandlebarsList<string>(new [] { "x", "y" })
	};
	var result = template(data);
	Assert.AreEqual("Hello x x y", result);
}

Maybe a good idea to add this to the unit-tests?

This test would be redundant, since we already have tests that ensure indexers (x.[n]) work and that we call ToString() on objects that don't have a separate native string representation.

Ok. Perfect.


Why didn't I receive XLM?

did you notice that after the "ending" of XLM, there were over 170,000,000 left? Over 500 people were missed by the bot, including myself, I wrote about it yesterday ... please help
A month ago, everything was fine, I received XLM ... I note that I did interaction with aidrops and did not set up multi-accounts ...
Will I receive these 355 XLM? Is the topic already completed?
Account [Keybase Space Drop] GDV4KECLSZLKRVH4ZTWVAS4I3W2LPAPV66ADFFUZKGIVOTK6GMKGJT53
Current Account Balance
179,869.6521568 XLM

I did not receive my stellar, and I was qualified to receive it, since I qualified last month.  I had a message in the app that said I should accept them but then the message disappeared

I also didn't receive any XLM even though I registered properly and am qualified. Please do something about it soon enough.

IT is a massive data kidnapping. They paid just a few to collect a lot of personal ID.


Added panic level logging

Issac, We have moved this repo so that I can maintain it from outside FogCreek. Can you please create a new pull request to sasbury/logging and I will get it in asap.


travis-cargo coveralls does not work

...

test result: ok. 42 passed; 0 failed; 0 ignored; 0 measured
Uploading coverage
Usage: kcov [OPTIONS] out-dir in-file [args...]

Coverage isn't uploaded to coveralls.

I am having the same issue. https://travis-ci.org/karai17/crml

me too :(

+1

+1


Doesn't create directory

Info: Applying configuration version '1436896308'
Notice: /Stage[main]/Moinmoin/Package[python-moinmoin]/ensure: ensure changed 'purged' to 'present'
...snip...
Error: Cannot create /srv/wiki/underlay; parent directory /srv/wiki does not exist
Error: /Stage[main]/Main/Node[wiki.utilizeit.local]/Moinmoin::Wiki[wiki]/File[/srv/wiki/underlay/]/ensure: change from absent to directory failed: Cannot create /srv/wiki/underlay; parent directory /srv/wiki does not exist
Error: Cannot create /srv/wiki/data; parent directory /srv/wiki does not exist
Error: /Stage[main]/Main/Node[wiki.utilizeit.local]/Moinmoin::Wiki[wiki]/File[/srv/wiki/data/]/ensure: change from absent to directory failed: Cannot create /srv/wiki/data; parent directory /srv/wiki does not exist
...snip...
root@wiki:~#

Looking at the config for a system I run, I never intended for the directory to be auto-created:
  file { '/srv/wiki/':
    ensure => directory,
    owner  => 'www-data',
    group  => 'www-data',
    mode   => '0770',
  }

Yeah--I just figured if you told the app to install somewhere (say /opt/mywiki) you would actually create the target directory.  Obviously not /opt, but /opt/wiki.  I did create a folder on my own.  Thanks.

I think I wanted people to be able to set their own permissions and stuff, I'll add something to the readme.


indent.before.CatchKeyword = 1

Not sure  if this desired behavior or not but setting lineBreak.before.CatchKeyword = 1 I'd expect the following code to be formatted with a line break before any catch keywords.
try {
    somethingRisky();
} catch (e) {
    console.error(e);
}

Formatted:
try {
    somethingRisky();
}
catch (e) {
    console.error(e);
}

But instead I get the original back.

I believe the lineBreak.before.CatchKeyword = 1 is being overwritten by lineBreak.after.TryClosingBrace = 0
we have tests that show that the behavior you want is possible but we used  lineBreak.after.TryClosingBrace = 1 instead of CatchKeyword:

https://github.com/millermedeiros/esformatter/blob/master/test/compare/custom/try_statement-out.js
https://github.com/millermedeiros/esformatter/blob/master/test/compare/custom/try_statement-config.json

that happens because the formatting starts from the leaf nodes and moves until the root node. -- CatchClause is inside the TryStatement, so TryStatement can basically override everything from CatchClause.

Ah I see, I'll check those out. Thanks!


Script to generate figure grids

Hi, I was wondering whether you could upload the script to generate the figure grids.
I'm talking about grids like these.
I couldn't find them in the repo, maybe I'm overlooking something?
Would be nice to get some inspiration how to produce similar grids, as I feel like they look pretty good!

Sorry, I don't version control these. I used the draw rectangle function of PIL https://pillow.readthedocs.io/en/3.0.x/reference/ImageDraw.html

Hey thanks for answering. I actually wrote a script to draw these figures with pillow in the meantime. Good to hear that you used that as well.


Add To Do List project

Have you read the Contributing Guidelines ?
Yes
Description
Added a TO DO list project in JS, HTML, CSS.
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.
[ ] I've edited the README.md and link to my code.

Related Issues or Pull Requests
#37 .

@96RadhikaJadhav Looks good to me


The window has crashed (reason 'launch-failed')

VS Code Version: VSCodeUserSetup-x64-1.55.2
OS Version: Windows 10 Professional 1903 18362.1256

Steps to Reproduce:
1.Launch the vscode.
2.Crash dialog show.

Does this issue occur when all extensions are disabled?: Yes/No
I have already delete all files associate with vscode，and reinstall it，didn't works for me, the crash dialog still shows.

Can you provide the output of code --verbose --vmodule=*/base/process/*=4


add optimization success parameter

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.05% :tada:

Comparison is base (5eaba02) 92.88% compared to head (891da0d) 92.94%.
Report is 10 commits behind head on main.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
+ Coverage   92.88%   92.94%   +0.05%
==========================================
  Files           4        4
  Lines         253      255       +2
==========================================
+ Hits          235      237       +2
  Misses         18       18

Files Changed
Coverage Δ

compotime/models.py
91.85% <100.00%> (+0.07%)
:arrow_up:

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Create samples for databinding using EF Core in WPF and WinForms

Moved from https://github.com/aspnet/EntityFrameworkCore/issues/12396 posted by @Int32Overflow
I am facing the task of implementing a large database application in WPF. I have already worked with small WPF database applications.
Unfortunately, I haven't found an example of large WPF EFC applications.
A brief summary of my task:

WPF application with MVVM
Data with Entity Framework Core 2.1
IoC container with Repository pattern
Data editors for master data. Simultaneous processing of data in split screens => No global DbContext possible

Add data
Edit data

Save changes
Discard changes

Delete data

Example MockUp of an data editor

I start editing "Item 1", then I edit "Item 2" and save "Item 2". I now discard the changes of "Item 1".
How would you design this application?

Maybe another idea before this example is implemented. How about if the user still had the possibility to create or select the database in the program. This would require even more dynamism and is in the "real" world mostly the order of the day. From my point of view that would make the example really round. Because I haven't seen a real-world scenario where the database is hard-coded in any *.config files or anchored in the program code. Normally everything should be dynamic.

Update these guides following 7.0work.


feat(rest): update getCommit and getContent

:tada: This PR is included in version 1.1.0 :tada:
The release is available on npm package (@latest dist-tag)
Your semantic-release bot :package::rocket:


Day 3 throw an exception with some input sets

Hi,
I was trying to do the advent of code without actually coding, and I got stuck on day 3, as your code threw an exception with my input. It's really annoying, because I had to read you code and what we are asked to guess I could work around the issue with the following patch
diff --git a/day3.py b/day3.py
index 4f50594..5fa0b18 100644
--- a/day3.py
+++ b/day3.py
@@ -23,10 +23,13 @@ def get_power_consumption(diagnostic):

 def oxygen_rating(diagnostic, i):
     c = collections.Counter(diag[i] for diag in diagnostic)
-    (val1, nb1), (val2, nb2) = c.most_common(2)
-    if nb1 == nb2:
-        return "1"
-    return val1
+    try:
+        (val1, nb1), (val2, nb2) = c.most_common(2)
+        if nb1 == nb2:
+            return "1"
+        return val1
+    except ValueError:
+        return "0"

 def co2_rating(diagnostic, i):

Please also test your code with input files you don't have for the coming days.
thx

Issue mentionned fixed with https://github.com/SylvainDe/aoc2021/commit/c9f76134b6cee18dea2381ff004b634b4294baea#diff-ea372b7f0d693d21e1ce76fcd9a6de29254513319f3e5be6c8df1a0eedfb00d7 .
I suspect invalid inputs can still fail in many different ways.


PokemonGo-Bot/issues#3366: use self.logger.warning instead of log.logger

Short Description:
MoveToMap Task is using the incorrect function to log warnings. I've updated to use self.logger.warning included in BaseTask.
Fixes (provide links to github issues if you can):
https://github.com/PokemonGoF/PokemonGo-Bot/issues/3366

log.logger is removed?

@maestroi are you thinking of logger.log?

feedback on this anyone? @douglascamata

It should use the new event system and send as little events as possible. logger.log is deprecated and should not be used inside tasks.

@sandbochs How do you want to proceed?

@sandbochs please indicate how you would like to proceed, or the PR and related issues will be closed

Outdate, need close. Thanks for PR.


Kubeadm documentation Google Cloud public signing key

This command from the official documentation https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ is not working on Ubuntu 18.04.6 LTS :

The response after the execution is curl: (23) Failed writing body (0 != 1377).
Anyone else encountered this issue recently ?

Anyone else encountered this issue recently ?

i think i've seen reports from users where the key is temporarily unavailable for download but with a different error. also it works after a while. did it work for you after more tries?
/kind support

That error can also occur if you try to access the signing key from a country that imposes state-level censorship. If your country has that kind of censorship, you might need to make your own packages instead.

It seems that the /etc/keyrings doesnt exist by default in Ubuntu 18.04.6 LTS , seems that I have missed that part in the documentation.

After creating the directory , the curl command worked fine.


KAFKA-5660 Don't throw TopologyBuilderException during runtime

KAFKA-5660 Don't throw TopologyBuilderException during runtime
Created this PR and after closing https://github.com/apache/kafka/pull/4605 due to conflicts.

\cc @bbejeck @vvcephei

I can add the change to StreamsPartitionAssignor, it was missed because the file name changed from 'StreamPartitionAssignor'.  Also just confirming that 'StreamsPartitionAssignor.prepareTopic' is called at runtime ?

The class was renamed recently to get consisting naming throughout the code base.

Retest this please.

Retest this please.


#! format off  does not completely disable formatting

Hi, thanks for runic! I am in the process of being persuaded to agree that explicit return statements are a good thing for those reading my code. However:
Every time Pluto saves a notebook to disk, it writes the following statement to the notebook:
macro bind(def, element)
    #! format: off
    quote
        local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
        local el = $(esc(element))
        global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)
        el
    end
    #! format: on
end

Runic wants to format this as
macro bind(def, element)
    #! format: off
    return quote
        local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
        local el = $(esc(element))
        global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)
        el
    end
    #! format: on
end

While this might be changed to more "runic" code on the Pluto side (@fonsp),
in fact, runic fails the assumption that code in the region marked by formt on/off is not modified. So I guess this is a bug.

Not sure I would call it a bug, but perhaps a result of how things are implemented. For the "add explicit return" formatting pass the syntax node of interest is the function node` (i.e. the whole function) and that one isn't within the toggle comments. Do you have control over this? In that case, using
#! format: off
macro bind(def, element)
    quote
        local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
        local el = $(esc(element))
        global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)
        el
    end
end
#! format: on

would work as you expect.

Ok, so let us see if this will be changed in Pluto then.

Will be addressed in Pluto: https://github.com/fonsp/Pluto.jl/pull/3106#issuecomment-2498438716


Any way to use dynamic google map ids

Summary
When using googleMapId, google doesn't let you use old styling options and you need to move over to use cloud styling. Now if you want to have different style of maps supported you need to keep changing googleMapId, is there anyway to reflect the map id changes instantly on change, currently you need to redraw the map to get them to change.
Reproducible sample code
import React from 'react';
import MapView from 'react-native-maps';

export default function App() {
  return (
    <MapView
      googleMapId={'mapID'}
      style={{flex: 1}}
      initialRegion={{
        latitude: 42,
        longitude: 30,
        latitudeDelta: 1,
        longitudeDelta: 1,
      }}
    />
  );
}

Steps to reproduce

Create a mapview with googleMapId
Try to dynamically change the value of googleMapId

Expected result
The new styling related to the change mapId should be reflected on the map.
Actual result
There is no change to the map view
React Native Maps Version
1.11.2
What platforms are you seeing the problem on?
Android
React Native Version
0.69.11
What version of Expo are you using?
Not using Expo
Device(s)
S23 Ultra
Additional information
No response

https://github.com/react-native-maps/react-native-maps/issues/5123 same problem on IOS


Dense(unit=0) can trigger errors on cntk and theano backend, but tensorflow runs well

System information

Have I written custom code (as opposed to using example directory):
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):  Windows 10
TensorFlow backend (yes / no):  yes
TensorFlow version:  1.15.0
Keras version:  2.3.1
Python version:  3.6.9
CUDA/cuDNN version:  -
GPU model and memory:  -

Describe the current behavior
When we set Dense (units = 0), both CNTK and Theano can report an error because the shape will contain 0 in the operations, but TensorFlow can run smoothly. Does unit = 0 have any special effect on TensorFlow? I don't see the corresponding instructions in the documentation.
Code to reproduce the issue
import os
import numpy as np
import keras.layers as L
import keras.backend as K
import importlib

def set_keras_backend(backend='tensorflow'):
    if K.backend() != backend:
        os.environ['KERAS_BACKEND'] = backend
        importlib.reload(K.load_backend)
        importlib.reload(K)
        assert K.backend() == backend

kwargs={'units': 0}
input_data = (10 * np.random.random((1,32,32,16)))
input = input_data.astype('float32')
set_keras_backend('tensorflow')
from keras.engine import Model, Input
K.set_floatx(str(input.dtype))
layer = L.core.Dense(**kwargs)
x = Input(batch_shape=input.shape)
y = layer(x)
bk_model = Model(x, y)
print('finish')

@shiningrain  We see that you are using old version of tensorflow which is not actively supported now, please verify on 2.x and open a new issue in case you face any errors, hence moving this to closed status.Thanks!


Molecule override cmd

Description of the change:
Molecule now requires you to set the override_command option to false in order to prevent it from overriding the CMD directive on a docker image you're using. This PR brings the generated molecule.yml files up to date. See https://github.com/ansible/molecule/pull/1771
Motivation for the change:
We're going to break without it.

/cherrypick v0.4.x


[UI] Add new themes to TextArea component

Summary
Adds theme for the TextArea component,

Light
Dark

Rest

Focus

Disabled

Readonly

Addresses https://github.com/NuGet/NuGetGallery/issues/9872

Please add main tracking issue into PR.


Compile OpenJ9 for Linux on ppc64le on Rhel/Cent 7

Currently the builds are compiling OpenJ9 on Linux ppc64le on Ubuntu16 (build-osuosl-ubuntu1604-ppc64le-1)
I believe the Adopt Ubuntu 16 ppc64le machine has a newer glibc version than rhel/cent7. When I try and run these SDKs on a Centos 7 machine I get the error
glibc_2.22 not found
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk11/job/jdk11-linux-ppc64le-openj9/
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk10u/job/jdk10u-linux-ppc64le-openj9/
https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-linux-ppc64le-openj9/
Adopt also has Cent7 ppc64le machines
https://ci.adoptopenjdk.net/label/ppc64le&&centos7/
These should have a lower glibc version.
Perhaps this work was blocked due to ibmruntimes/openj9-openjdk-jdk8#7. I believe this is resolved with make 4.1 as @sxa555 suggests.

@AdamBrousseau I am going to close this as a dup of https://github.com/AdoptOpenJDK/openjdk-infrastructure/issues/256 - as per the PR you've seen (which only appears to affect 10/11 because they were the only ones explicitly locked to Ubuntu) this should now be enough - I did some builds yesterday on our Centos/ppc64le machines and they looked ok, so now that the PR is merged my plan is to remove the build tags from the Ubuntu build machines so everything will be on CentOS7 now.


feat: Auto-import generated .scss to .core.scss

Type: feat
Ionic Version: 2.x
Platform: all
Knowing that you need to import every generated *.scss file to the app.core.scss is just one more things to remember and beginners shouldn't have to do. I myself just spent 15 minutes trying to figure out why my scss changes weren't working despite the SASS compiler actually saying it was doing work. Maybe I don't know Ionic2's app structure by heart yet, but we should make it as easy and frictionless as possible for both totally new devs, as well as new devs coming from Ionic 1.
I see 2 ways, the lazy (1) and the awesome-dev-tool (2):

When a user runs ionic generate x, ensure the CLI tells the user anything they need to follow up with, in this case importing the generated .scss into the core.scss file. Just a small change, probably here: https://github.com/driftyco/ionic/blob/2.0/tooling/generator.js#L36

Actually overwrite .core.scss with the necessary change:
@import '../path/to/newly_generated_component.scss

If you guys are down for (1) I'm happy to do commit and PR, but you should probably invest in the better longer-term solution (2).

Just like with any other form of web development, if a developer creates a new file, then the file needs to be wired up correctly for it to work. Yes we should make it easier to know what's happening, but we need to be careful to not overwrite any of the developers custom code, which is why number 2 is could cause more issues. Additionally, the app's css may require a certain order of files, so it's important for the developer to know what's happening. I'll move this over to the cli repo and we'll take a look at improving it, thanks.

This issue was moved to driftyco/ionic-cli#773


Gesture Detector on tap down local position dx and dy value are not same in all device

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Steps to reproduce

Add an image widget and put it under the GestureDetector widget
add onTapDown in GestureDetector and print the local position with details.localPosition
run the app on android and ios simulators.
tap down on the image, you will see the values of dx and dy are different on both devices.

Expected results
The expected result should be both dx and dy should same for the image with fixed height and width.
Actual results
localPosition.dx and localPosition.dy are different in every device , it should be same.
Code sample
Code sample
GestureDetector(
onTapDown: (details) {
var position = localPosiiton;
print(position);
 // this position should be the same in every device for the same point in the image.

  },

Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.11, on macOS 13.4.1 22F770820d darwin-arm64, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.79.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
! Doctor found issues in 1 category.

Hi @Mayank8290. Thanks for filing this issue. I see you are on an older version of flutter, can you upgrade to the latest versions to confirm this issue still persists? If it does, Please provide a minimal complete reproducible code sample that doesn’t include 3rd party plugins or complex production code

How are you sure you tap the same point in the image?

the number is written on the image, we have tapped on the same point of the image number 9 (top circle of 9), and we have run the app in the iphone14 Pro max simulator, iPhone SE simulator, and Android simulator at the same time, and tapped via the mouse pointer, found the different between the dx and dy localPoisiton for the same point.

How are you sure you tap the same point in the image?

Thanks for the reply @moffatman, really appreciated it.
the number is written on the image, we have tapped on the same point of the image number 9 (top circle of 9), and we have run the app in the iphone14 Pro max simulator, iPhone SE simulator, and Android simulator at the same time, and tapped via the mouse pointer, found the different between the dx and dy localPoisiton for the same point.

one more thing I forgot to mention is, I have added a gesture detector in intractionViewer, seems like when we zoom the image dx and dy got changes and are not the same in every device.

Hi @Mayank8290. Thanks for filing this issue. I see you are on an older version of flutter, can you upgrade to the latest versions to confirm this issue still persists? If it does, Please provide a minimal complete reproducible code sample that doesn’t include 3rd party plugins or complex production code

updated the flutter same issue
[✓] Flutter (Channel stable, 3.10.6, on macOS 13.4.1 22F770820d darwin-arm64, locale en-IN)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.79.2)
[✓] Connected device (3 available)
[✓] Network resources
! Doctor found issues in 1 category.

Thanks for the update @Mayank8290. Please provide a minimal complete reproducible code sample that doesn’t include 3rd party plugins or complex production code to make this issue workable

import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// Try running your application with "flutter run". You'll see the
// application has a blue toolbar. Then, without quitting the app, try
// changing the primarySwatch below to Colors.green and then invoke
// "hot reload" (press "r" in the console where you ran "flutter run",
// or simply save your changes to "hot reload" in a Flutter IDE).
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
double imageX = 0.0;
double imageY = 0.0;
double imageZoom = 0.0;
final viewTransformationController = TransformationController();
@override
void initState() {
const zoomFactor = 4.0;
const xTranslate = 550.0;
const yTranslate = 1150.0;
viewTransformationController.value.setEntry(0, 0, zoomFactor);
viewTransformationController.value.setEntry(1, 1, zoomFactor);
viewTransformationController.value.setEntry(2, 2, zoomFactor);
// viewTransformationController.value.setEntry(0, 3, -xTranslate);
// viewTransformationController.value.setEntry(1, 3, -yTranslate);
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: InteractiveViewer(
transformationController: viewTransformationController,
child: GestureDetector(
onTapDown: (TapDownDetails details) {
print(details.localPosition);
print(details.localPosition.dx);
print(details.localPosition.dy);
},
child: Container(
height: 5055,
width: 2880,
color: Colors.lightBlueAccent,
child: Image.network(
'https://exposocial.s3.eu-west-1.amazonaws.com/event_map/event_map_1.png',
height: 5055,
width: 2880,
),
),
),
));
}
}

Hi @Mayank8290. Thanks for your response. I'm getting very close values on the different devices, in which the little difference could be due to the fact that I might not be tapping at the exact point.
iOS
flutter: Offset(71.1, 126.1)
flutter: 71.08333206176758
flutter:<PHONE_NUMBER>6176758

Android
I/flutter ( 4214): Offset(70.5, 125.3)
I/flutter ( 4214): 70.54119318181819
I/flutter ( 4214):<PHONE_NUMBER>3863636

Is this the same behavior you are experiencing or is there a huge difference in the values?

Hi @Mayank8290. Thanks for your response. I'm getting very close values on the different devices, in which the little difference could be due to the fact that I might not be tapping at the exact point.
iOS
flutter: Offset(71.1, 126.1)
flutter: 71.08333206176758
flutter:<PHONE_NUMBER>6176758

Android
I/flutter ( 4214): Offset(70.5, 125.3)
I/flutter ( 4214): 70.54119318181819
I/flutter ( 4214):<PHONE_NUMBER>3863636

Is this the same behavior you are experiencing or is there a huge difference in the values?

Nope, it's not the same behavior..
Android Pixel 2 api 30 simulator -> I/flutter ( 4578): Offset(33.2, 236.0)
iphone 14 Pro max simulator -> flutter: Offset(33.8, 354.8)
See the difference in dy , it's huge for the same point.

I have clicked on middle of X in Exposoc Text.

Hi @Mayank8290. Thanks for your response. I'm trying to reproduce this and I think the difference in the values could be due to the fact that we can't exactly tap on the same point in both instances.

Android
iOS

If you still have a different view, can you attach a screen record explaining further?

Hi @Mayank8290. Thanks for your response. I'm trying to reproduce this and I think the difference in the values could be due to the fact that we can't exactly tap on the same point in both instances.
Android	iOS
Screen.Recording.2023-07-20.at.13.26.18.mov
Screen.Recording.2023-07-20.at.13.27.26.mov
If you still have a different view, can you attach a screen record explaining further?

Yes, I have a different view try to set const zoomFactor = 4.0; , the original image is not causing the issue but after adding zoomFactor, you will see the difference in values. how can i get the correct value with using zoom.

Hi @Mayank8290. I'm unable to view the image without setting the fit property. So doing that with zoomFactor = 4.0. I still get close values. You might want to record your screen as mine so we can get a clearer view of the issue.

iOS
Android

Hi @Mayank8290. I'm unable to view the image without setting the fit property. So doing that with zoomFactor = 4.0. I still get close values. You might want to record your screen as mine so we can get a clearer view of the issue.
iOS	Android
Screen.Recording.2023-07-21.at.09.25.34.mov
Screen.Recording.2023-07-21.at.09.29.44.mov

This is the exact piece of code i am using.
`import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';
import 'package:photo_view/photo_view.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
// This is the theme of your application.
//
// Try running your application with "flutter run". You'll see the
// application has a blue toolbar. Then, without quitting the app, try
// changing the primarySwatch below to Colors.green and then invoke
// "hot reload" (press "r" in the console where you ran "flutter run",
// or simply save your changes to "hot reload" in a Flutter IDE).
// Notice that the counter didn't reset back to zero; the application
// is not restarted.
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatefulWidget {
const MyHomePage({super.key, required this.title});
// This widget is the home page of your application. It is stateful, meaning
// that it has a State object (defined below) that contains fields that affect
// how it looks.
// This class is the configuration for the state. It holds the values (in this
// case the title) provided by the parent (in this case the App widget) and
// used by the build method of the State. Fields in a Widget subclass are
// always marked "final".
final String title;
@override
State createState() => _MyHomePageState();
}
class _MyHomePageState extends State {
int _counter = 0;
double imageX = 0.0;
double imageY = 0.0;
double imageZoom = 0.0;
final viewTransformationController = TransformationController();
@override
void initState() {
const zoomFactor = 4.0;
const xTranslate = 550.0;
const yTranslate = 1150.0;
viewTransformationController.value.setEntry(0, 0, zoomFactor);
viewTransformationController.value.setEntry(1, 1, zoomFactor);
viewTransformationController.value.setEntry(2, 2, zoomFactor);
viewTransformationController.value.setEntry(0, 3, -xTranslate);
viewTransformationController.value.setEntry(1, 3, -yTranslate);
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: InteractiveViewer(
transformationController: viewTransformationController,
child: GestureDetector(
onTapDown: (TapDownDetails details) {
print(details.localPosition);
print(details.localPosition.dx);
print(details.localPosition.dy);
},
child: Container(
height: 5055,
width: 2880,
color: Colors.lightBlueAccent,
child: Image.network(
'https://exposocial.s3.eu-west-1.amazonaws.com/event_map/event_map_1.png',
height: 5055,
width: 2880,
fit: BoxFit.contain,
),
),
),
));
}
}
`
Android
https://github.com/flutter/flutter/assets/39935418/4309c532-70e3-4660-a945-b47ab7722350
IOS
https://github.com/flutter/flutter/assets/39935418/fea815cd-276f-4a21-873e-ba59847ba1b2

It comes from a misunderstanding of InteractiveViewer. First, the widget is laid-out without any scaling. And it uses the incoming constraints. Those large width and height figures have no effet, since the Container and Image are limited to the size of InteractiveViewer's parent (the phone screen size). Then afterwards, that layout is scaled.
Now the matter of different y-values for the same point on the image. The iPhone is taller than the Android. So in the initial layout, the image is smaller, and there is more "whitespace" above and below the image. You can be sure of this by looking at the app without any scaleFactor. The localPosition is relative to the GestureDetector, which is outside of this vertical padding. So localPosition on the GestureDetector is really equal to image tap position + image top padding. Note this padding is introduced by the Image itself, by fitting to external constraints and applying its alignment property (defaulting to Alignment.center).
To do what I think you want, you should set constrained: false on the InteractiveViewer, and use alignment: Alignment.topLeft on the Image.


add feature: Paragraph.add_hyperlink() #74

I continued robertdodd's work to implement the p.add_hyperlink() method:

to add links to paragraphs
to add multiple texts into a link
style the link text(run)

Documentations are also available for the dev part.

from docx import Document
document = Document()
p = document.add_paragraph('some text')
link = p.add_hyperlink('google','http://www.google.com')
google
link.add_run('run1')
< docx.text.run.Run object at 0x7fec7cabe908>
link.add_run('formatted').italic = True
3

Hi @tanyunshi, I won't be able to commit this pull-request as is because it lacks tests and the API has not been vetted. But I thank you for it nonetheless and will keep it open for when we get back to hyperlinks. I'm sure it will be useful to folks in the meantime and we'll use it as a reference when we get to the implementation.
If you're interested in pursuing a commit, the best place to start is with the feature analysis. That's where the discussion that resolves the API happens, and that determines the acceptance tests which in turn of course have a strong impact on the implementation. Let me know if you're interested, happy to help you along the way with any questions on how to get into it.

Hihi @scanny, I am interested in pursuing commits. In fact I have modified

Is there a plan to finish/merge this feature back to master? I am interested in inserting hyperlinks via python-docx. Btw, thanks you guys for all your work!

Hi all, apologies, I seem to have lost track of this one for roughly a year somehow :o:
We're definitely interested in pursuing this feature. @tanyunshi I'll take a look at your analysis page this evening. On first glance it looks quite good. I'll provide some feedback.
Are you still interested in working on this? I know it's been some time :)

Hi @scanny
Glad that you are interested in this feature. ^^
Yes I think the hyperlink is an important feature and I will work on. Shall we start with the analysis page? :)

Yes, perfect. I'll take a look at it and provide comments, probably tomorrow, and we can go from there :)

Hello @scanny,
Thank you for the reviewing. :)
I have taken your advise and improved the feature analysis.
Just a few remarks:
As in the xml schema, a hyperlink may have multiple runs. In some use cases, we have different styles for the text in the same link(see my response above). I am not sure how much extra work it requires to implement this. However, if we make a bit more effects at the beginning, we have docx api more flexible(as it adapts the xml schema) and we have more possibilties for hyperlink stylings.
You are right about the hyperlink access problem. I find Paragraph.iter_run_level_items()  a bit confusing (see run level content) and I name the function as Paragraph.iter_p_content() in the Candidate protocol part. In fact I am bad at the naming thing. If you have an idea, please let me know. :)
I am not sure about the external/anchor link as it refers to a bookmark and so a bookmark should be implemented first. External links may be implemented later.

@tanyunshi -- Just wanted to mention to procedure for updating pull requests. To make changes, you do not create a new pull request (most folks seem to do this the first time :). What you do is update the branch you created the pull request with and then push that up to GitHub. The pull request is automatically updated.
That said, in this case, you'll need to create a new pull request because your pull is based on the master branch, and is also based on a different fork (robertdodd/python-docx). So you'll need to get your work into a new branch named 'feature/hyperlink' that's based on the 'feature/hyperlink' branch I've created on python-openxml. If you need help with the rebasing involved, let me know.
There are other challenges with making updates to pull requests, but we can face those when we come to them.
How familiar are you with git rebasing and with the GitHub pull process? I don't want to bore you with basics if you've already mastered them :)

As in the xml schema, a hyperlink may have multiple runs. In some use cases, we have different styles for the text in the same link(see my response above). I am not sure how much extra work it requires to implement this. However, if we make a bit more effects at the beginning, we have docx api more flexible(as it adapts the xml schema) and we have more possibilties for hyperlink stylings.

I can see your use case now. It's definitely legitimate, so we'll take a look and see how much work is involved. We'll need to look at the XML Schema for the hyperlink element and then should have an idea.

You are right about the hyperlink access problem. I find Paragraph.iter_run_level_items() a bit confusing (see run level content) and I name the function as Paragraph.iter_p_content() in the Candidate protocol part. In fact I am bad at the naming thing. If you have an idea, please let me know. :)

.iter_run_level_items() is the right name for that method if we implement it. There is already an .iter_block_level_items() method in the works on Document, and this would be analogous. The main question is what it should do with all the possible items it finds. You can see there are many possible child elements, of which run and hyperlink are just two (http://python-docx.readthedocs.org/en/latest/dev/analysis/schema/ct_p.html). The items that may appear within a run is something else altogether; I'm not sure what we would name that :)
For the moment I'm thinking .iter_run_level_items() would generate items of three possible types: Run, Hyperlink, and RunLevelItem. The first two would be a run and a hyperlink respectively. The last one would be used for everything else and only give access to the element (probably as .element). As other run-level items were implemented, they could be added explicitly. I'm inclined to think that Run and Hyperlink should inherit from RunLevelItem, but we can get to that later.

I am not sure about the external/anchor link as it refers to a bookmark and so a bookmark should be implemented first. External links may be implemented later.

I don't get what you're saying here. Can you elaborate?

I am not sure about the external/anchor link as it refers to a bookmark and so a bookmark should be implemented first. External links may be implemented later.

I don't get what you're saying here. Can you elaborate?

Good evening @scanny ,
A hyperlink may be an external link, such as url, or an anchor link, such as an bookmark. In the second cas, the link does not have an r:id attribute that refers to an element in relationship. However, the link has an attribute anchor, that refers to a name of a bookmark, and the bookmark can be found somewhere in the document.
I don't think we have bookmark in python-docx.
Therefore, I remove everything about anchor links in the analyses part and think about it later. :)

@scanny I close this PR as another one is available : https://github.com/python-openxml/python-docx/pull/278


Add extension contribution point for auto-joining communities

This PR introduces an extension point for VS Code extensions to declare they have an associated Live Share Community (“liveshare.communities”). This way, if a developer installs their extension, it will automatically join the community without needing to do anything further. Additionally, if the user disables/enables/uninstalls the extension, the associated community will be joined/left as appropriate. You can see a usage example in the counter sample.
The usecase I have in mind for this, is making it easy for schools/etc. that have extension packs, to associate a Live Share community along with their pack (e.g. LBCC CS Pack). That way students/members can simply install a single extension/pack, and join the community without any effort. This, along with our existing deep link URL, provide rich mechanisms to simplify the community onboarding process.
The following GIF shows the experience, using the Live Share Counter sample, which I updated to include an associated community called “counter”:

Before I merge this, I’m going to:

Display a notification that you auto-joined/left a community

Add a setting to allow you to control whether you auto-join communities that are contributed by extensions (it would default to true)


[MB-8344] Show alert on home screen after saving amending orders

Description
After a service member uploads files for amended orders, and until the TOO approves the new orders, the service member should see an alert on the home screen to reassure them that they've successfully submitted the new documents.
Reviewer Notes
I'm piggybacking on @kylehilltruss's branch , in which he creates some help text that displays in the same scenario that this alert is displayed in.
The formatting doesn't quite match the designs; there's a bigger gap between the text and the top of the alert box than there should be. I'm guessing this is something to do with my use of <p> tags. I'm still fiddling with this, but any suggestions are welcome.
Should I move the alert into its own little component in a separate file, like the Helpers are?
Are the tests adequate?
I used a data-testid to select the alert because I don't think I have anything else to query on that would distinguish it from other <Alert>s we may put on the page in the future. If this is not the best way to do this, let me know.
Setup
We can't see this in the app yet (devseed data and the ability to upload amended orders are both in progress right now). However, you can see it in storybook:
http://localhost:6006/?path=/story/customer-components-pages-home--amended-orders
and compare against the designs:

mobile
desktop

Code Review Verification Steps

[ ] There are no aXe warnings for UI.
[ ] User facing changes have been reviewed by design.
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

References

Jira story for this change

Screenshots
mobile

tablet

Messages

:book:
:link: MB-8344

  Generated by :no_entry_sign: dangerJS against a6d097e27bdcefd4a932c6c43af5bf7469d647b4


Merge Latest TAU Changes

Pull in the latest changes FiniteSingularity made to TAU that addresses some issues and supports IRC bots

Addressed in #42


Support for new options in react-redux connect

With the new version of react-redux, it seems the API has changed a bit, and there are new options in connect
https://github.com/rackt/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
Has redux-form been updated to support these?

I am most specifically interested in the options.withRef feature which makes getWrappedComponent() work.

in line with this request, was wondering if the third mergeProps optional function could be added (looking to grab props passed from React Router and use it to generate initialValues)


Remove Azure AD overview page

Content was out of date-resolving this problem raised in issue #437

Docs Build status updates of commit 5604e03:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-mapping/reference.yml
:white_check_mark:Succeeded

docs-ref-services/activedirectory.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Request to track the “5-second-rule” for mana-regeneration

Hi,
I would like to suggest/request a feature to be implemented with the mana ticks setting. If possible, rather than the spark being frozen for 5 seconds after spending mana it can be tracked? Either numerically or by using the spark.
For reference:
https://wow.gamepedia.com/Five_second_rule
https://www.curseforge.com/wow/addons/fivesecondrule
Cheers

This is already in the UI

Thanks for the quick response,
I just looked through all the setting and I found nothing pertaining to the five second rule. I assume it must not be working correctly with my UI. Currently, after I cast a spell the spark just freezes, then after 5 seconds, resets to the left side of the mana bar to then tick mana regeneration. My original suggestion was to show some indicator of this 5 second window. How do I implement this in your UI?