Added scroll to top button

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
Fixes:  #340 and #341
Description
I have added a scroll to top button
Type of PR

[ ] Bug fix
[ ] Feature enhancement
[ ] Documentation update

Screenshots / videos (if applicable)
https://github.com/user-attachments/assets/3a7046b3-7027-4617-a153-479bb0930586
Checklist:

[ ] I have made this change from my own.
[ ] I have taken help from some online resources.
[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] My changes generate no new warnings.
[ ] I have tested the changes thoroughly before submitting this pull request.
[ ] I have provided relevant issue numbers and screenshots after making the changes.

@PriyaGhosal I have raised a new PR as someone had pushed errorneous code in main repo and i was getting merge conflicts. Fixed them all
Fixes #340 and #341

@devarsheecodess
Your pull request has been successfully merged! Don't stop here—continue contributing by addressing more issues and aiming to become a top contributor. Exclusive swag awaits for those who go the extra mile!
Great contribution to GSSOC'24 EXTENDED! 🎉


Add field annotations for high-priority Syndeo schema transforms

Add field annotations for BigQuery Storage Read, File Write, Spanner Changestreams Read, and Spanner Write schema transforms. This is necessary for tying a description to each field, so that when a schema transform config is generated, each field would have a description of what it is supposed to do

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

org.apache.beam.sdk.io.gcp.datastore.RampupThrottlingFnTest.testRampupThrottler unrelated flake


tile server with limited coverage

Issue Type
[ *] Bug
Description and/or steps/code to reproduce the problem
If a tile server only provides tiles for a limited geographic region, I have seen strange behaviour when the map is scrolled outside this region.  Rather than the empty grey checked tiles, I see a mixture of these, black tiles, and random tiles from elsewhere on the map.  Sometimes there is a rapid cycling of random tiles drawn.
The log contains:
Problem downloading MapTile: /14/8167/5502 HTTP response: Not Found
It repeatedly tries to download the same tile, but in this scenario it should stop trying.  The in-memory (and possibly sql?) cache could contain a flag to prevent this with minimal memory cost.
If it's a bug, version(s) of android this affects:
5.1
Version of osmdroid the issue relates to:
6.0.1

known issue, duplicate of #131


PyVerilator 0.7.0 (expected initializer before ‘VL_MT_UNSAFE’) inside Docker

I am trying to use PyVerilator 0.7.0 inside a Docker container and I am getting the following error:
error: expected initializer before ‘VL_MT_UNSAFE’
 void vl_finish (const char* filename, int linenum, const char* hier) VL_MT_UNSAFE {
                                  ``                                    ^
cc1plus: warning: unrecognized command line option ‘-Wno-parentheses-equality’

However, I tried switching into version 0.1.0 and the error is not there and my flow is working fine. Let me know if you need anything else to help you track the issue.

Hi,
Which version of verilator are you using?  I believe I encountered that message at some point, but I had a little bit of an old version of verilator. Have you tried using a more recent version of verilator?
I currently use 4.202 .

I am using Verilator version 3.874. We are currently installing verilator through the package manager which seems not to install the latest version. In this case, do you think this is causing the problem?

I believe this is likely to be the problem, yes
Here are the Verilator instructions to install from source that I followed:
https://verilator.org/guide/latest/install.html#git-install
Maybe you can give it a try, and let us know if the problem persist :)


man: fix doc-nit in property.pod

This causes travis build failures on master

Merged to master (b1f692575411), thanks!


Metadata private sp

Changes to include mandatory billing information for private SP in pid-sp-metadata file.
See https://www.agid.gov.it/sites/default/files/repository_files/spid-avviso-n19v4-regole_tecniche_aggregatori_0.pdf
I'm not Italian speaking, so if possible please provide the feedback in English, thanks

This looks great, thank you so much! I'll need a few days before I can review it but rest assured I will!

Reviewed and merged. Thanks for your work (and especially the tests), I really appreciate it!


Feature/progress bar

Show a single-line progress-bar when working and a summary when done.

Sweet :100:  for you @sokki !

Not sure how I feel about the progress bar, I'll talk it through with some people tomorrow.

Feedback from actual testing:
Ideally if the progress bar stayed on the top line, with the current action shown below (completed actions get removed), then I think we would have a good solution to the current lack of feedback when mgp is running. The report can then replace the completed progress bar and the current action line, leaving the terminal with the initiating command and the outcome.


"RCTVLCPlayer" was not found

Hello,
I installed your library in my project and I keep getting this error:
ERROR    Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager.
do you know how to solve it?
I'm using an android emulator
Thank you!

Please try downloading the sample repo first.
On Fri, 12 Feb 2021 at 2:39 AM, shironyaron<EMAIL_ADDRESS>wrote:

Hello,
I installed your library in my project and I keep getting this error:
ERROR Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not
found in the UIManager.
do you know how to solve it?
I'm using an android emulator
Thank you!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/razorRun/react-native-vlc-media-player/issues/55, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AFB72EB4OTRJ6UGUQXXP3BTS6PMZDANCNFSM4XO3GSHQ
.

I used to have the same issue and managed to get it working following these steps:
i added this to my android/app/build.gradle
` packagingOptions {
pickFirst 'lib/x86/libc++_shared.so'

pickFirst 'lib/arm64-v8a/libc++_shared.so'

pickFirst 'lib/x86_64/libc++_shared.so'

pickFirst 'lib/armeabi-v7a/libc++_shared.so'

}`
also:
`defaultConfig {
...
multiDexEnabled true //Add this line

}`
and finally upgraded my minSDKVersion to 17 ( android/build.gradle):
`buildscript {
ext {
buildToolsVersion = "29.0.2"

minSdkVersion = 17

compileSdkVersion = 29

targetSdkVersion = 29

}
}`
After these modifications I didn't have any more issues with building and using the package.

I'm seeing this issue on tvOS too

Following, same issue

having the same issue ..any update?

Crated a PR to add TVOS support 😄
https://github.com/razorRun/react-native-vlc-media-player/pull/151

tvOS pr merged

Please try downloading the sample repo first.
…
On Fri, 12 Feb 2021 at 2:39 AM, shironyaron @.***> wrote: Hello, I installed your library in my project and I keep getting this error: ERROR Invariant Violation: requireNativeComponent: "RCTVLCPlayer" was not found in the UIManager. do you know how to solve it? I'm using an android emulator Thank you! — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#55>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72EB4OTRJ6UGUQXXP3BTS6PMZDANCNFSM4XO3GSHQ .

sir i get a same error what to resolve this


Text overlapping in chrome latest version on using html2canvas javascript library

The actual correct HtmlElement

The image after converting it through html2canvas version "^1.4.1".

image on commenting this code in node_modules.
var segmentWords = function (value, styles) {         // if (FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION) {         //     // eslint-disable-next-line @typescript-eslint/no-explicit-any         //     var segmenter = new Intl.Segmenter(void 0, {         //         granularity: 'word'         //     });         //     // eslint-disable-next-line @typescript-eslint/no-explicit-any         //     return Array.from(segmenter.segment(value)).map(function (segment) { return segment.segment; });         // }         return breakWords(value, styles);     };
Bug reports:
I am facing this issue in latest chrome version i.e. 128.0.6613.84. While it was working fine with chrome version 127.0.6533.119. Can any one please suggest any solution for this?
Can you please look into it, @niklasvh?
Specifications:

html2canvas version tested with: 1.4.1
Browser & version: Google chrome  128.0.6613.84.
Operating system: Ubuntu 20.04.6 LTS

Facing the same issue. We are using jspdf to convert static html template to pdf, jsPdf internally uses html2canvas for this conversion. Everything was working fine before, but now after chrome v-128 update, the generated pdf seems to break.

Can anyone suggest an alternative library to convert static html to pdf?
Note: The html to be downloaded is not being rendered, so the alternative should be able to handle the conversion without rendering.

We fixed this by removing "zoom" css property from that element. Have a look at this chrome release note, We were also facing this on using scale so we removed it.

Yes i figured. Our application's layout is structured as such that it is not possible to remove zoom property at this point.


nginxMainline: 1.25.3 -> 1.25.4

Description of changes
Update Nginx to version 1.25.4.
Announcement from one of Nginx developers - https://forum.nginx.org/read.php?2,299130

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[x] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Seems like this fixes CVE-2024-24989 and CVE-2024-24990


The One Ring 2e - initial release 01.00.00

Changes / Comments
01.00.00
This is a new character sheet for The One Ring 2e build from the (basic) 2e and 1e version. It is a complete rewrite (based on css grid layout) and revamps the look&feel to the official 2e character sheets.

it includes two sheets: player characters and adversaries (which was not in the (basic) 2e but in the 1e version)

it has new extended support for all typical rolls (including attributes from selected tokens), including toggles for combat stance or parry/protection options

translation is supported based on the 1e and (basic) version

the sheet should be compatible to The One Ring Second Edition (basic). All attributes are represented in the revamp. One misspelled attribute ("treaure"->"treasure") was migration in the sheet workers.

this is my first character sheet but I've read and followed the numerous wiki related articles including the standards for character sheets.

Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x] Does the pull request title have the sheet name(s)? Include each sheet name.
[-] Is this a bug fix?
[x] Does this add functional enhancements (new features or extending existing features) ?
[x] Does this add or change functional aesthetics (such as layout or color scheme) ?
[x] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[x] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.

Character Sheet Info Roll20 Internal Use only.

Renamed the sheet preview image. What failed else in the character sheet validation?

Renamed the sheet preview image. What failed else in the character sheet validation?

Hi @nmbradley,
I understand that splitting the community (players and developers) is something that roll20 (and me too) wants to prevent.

regarding compatibility: yes, it should be compatible to the existing sheet regarding the data, but it is a complete rewrite with partly different/enhanced logic for rolls, sheet-workers and completely new CSS. I'm pretty sure 90% of the users will switch to this sheet after some time (when it is stable), but we don't want to "force" migration of existing games to this sheet. I've discussed this with the maintainer of the existing sheet (@aragant)  and we have come to the conclusion it would be better to release it as a new sheet to give everybody the freedom to migrate at their own chosen point of time. In IT terms we want to reduce risk for users not doing a bing bang migration, integrating user feedback in the transition phase, and ideally communicate clearly the existing basic sheet is deprecated and will not be maintained in the future. We have also discussed to put the new sheet on a separate tab in the existing sheet, but this has side effects with the new sheet workers (as they implement additional, non-compatible  functionality). So data migration is possible but we can't run them in parallel. What is clear: we will not split the developer community as we are all on the same page from the beginning and I was in close contact with Aragent before I started working on the changes.

Regarding the translations: I could remove all existing translations of the basic 2e version of the character sheet. But why? I guess they have been created already  by the translation service and should work right out of the box with new version of the charactersheet. I've paid close attention to reuse all existing tags in the UI of  the translation.json and added new entries to the end of the file. I could add all new entries in translation.json to all language files in the subdirectory if this is required. Deleting the files will delete all the existing work and raise the need to retranslate everything again. This would be painful for users that want to migrate to the new sheet, as all existing translations they already know from the basic version would be gone.

Last point: the name of the existing sheet (The One Ring Second Edition (Basic)) was chosen to indicate that the sheet was meant as a fast version to provide early functionality when the game was still in its beta phase and not released. The new sheet is not "basic" anymore thus changed to a new sheet name.
Best regards,
Bodo

I've just realized a different author has announced a new The One Ring 2e character sheet in the Roll20 forum.
https://app.roll20.net/forum/post/10558357/the-one-ring-2nd-edition-sheet-version-2-dot-00-pre-announcement
I've tried to contact the author via Roll20 direct message. I hope we can find a way to combine our efforts into one charactersheet. That would be the best for the community.


2 new lines inserted after IS in procedure/function definition

This happens when certain number of characters between IS and BEGIN is exceeded
    FUNCTION get_id1 (
        p_1  NUMBER,
        p_2  NUMBER,
        p_3  NUMBER
    ) RETURN NUMBER IS
        local_1  NUMBER;
        local_2  NUMBER;
        local_3  NUMBER;
        local_4  NUMBER;
        local_5  NUMBER;
    BEGIN
        RETURN 9999;
    END get_id1;

    FUNCTION get_id2 (
        p_1  my_table.id%TYPE,
        p_2  my_table.id%TYPE,
        p_3  my_table.id%TYPE
    ) RETURN my_table.id%TYPE IS

        local_1  my_table.id%TYPE;
        local_2  my_table.id%TYPE;
        local_3  my_table.id%TYPE;
        local_4  my_table.id%TYPE;
        local_5  my_table.id%TYPE;
    BEGIN
        -- some code
        RETURN 9999;
    END get_id2;

I guess you are using different settings. With the latest settings for SQLDev 20.2 the result is the following:
   FUNCTION get_id1 (
      p_1  NUMBER,
      p_2  NUMBER,
      p_3  NUMBER
   ) RETURN NUMBER IS
      local_1  NUMBER;
      local_2  NUMBER;
      local_3  NUMBER;
      local_4  NUMBER;
      local_5  NUMBER;
   BEGIN
      RETURN 9999;
   END get_id1;
   FUNCTION get_id2 (
      p_1  my_table.id%TYPE,
      p_2  my_table.id%TYPE,
      p_3  my_table.id%TYPE
   ) RETURN my_table.id%TYPE IS
      local_1  my_table.id%TYPE;
      local_2  my_table.id%TYPE;
      local_3  my_table.id%TYPE;
      local_4  my_table.id%TYPE;
      local_5  my_table.id%TYPE;
   BEGIN
      -- some code
      RETURN 9999;
   END get_id2;

Yes you are right, there are 2 settings I changed

indentation from 3 to 4 spaces (this alone doesn't make a difference)
and in Line Breaks - After statements changed from Single to Double Break

The (2) is essential as I want to have empty lines between individual functions and procedures. Once I change that, new line is added after IS
CREATE OR REPLACE PACKAGE BODY abc AS
FUNCTION get_id1 (
    p_1  NUMBER,
    p_2  NUMBER,
    p_3  NUMBER
) RETURN NUMBER IS
    local_1  NUMBER;
    local_2  NUMBER;
    local_3  NUMBER;
    local_4  NUMBER;
    local_5  NUMBER;
BEGIN
    RETURN 9999;
END get_id1;

FUNCTION get_id2 (
    p_1  my_table.id%TYPE,
    p_2  my_table.id%TYPE,
    p_3  my_table.id%TYPE
) RETURN my_table.id%TYPE IS

    local_1  my_table.id%TYPE;
    local_2  my_table.id%TYPE;
    local_3  my_table.id%TYPE;
    local_4  my_table.id%TYPE;
    local_5  my_table.id%TYPE;
BEGIN
  -- some code
    RETURN 9999;
END get_id2;

END;
Any suggestion how to achieve this?

Thank you for the additional information. Now I can reproduce the behaviour.
The brkX2_1 query handles that. This part of the expression is responsible for the additional, conditional line break:
| [node) is_or_as & [node+1) decl_list & [(node+1)+20 < (node+1)) -- long declarations

I'm going to change the behaviour as follows, if X2 is enabled:

never add a new line after as_or_is for PL/SQL units
add always a new line after as_or_is for a package specification or package body

Thanks for this too. Going to try it soon.


Tier data sync from http://www.borischen.co/ [Feature Request..of sorts]

I noticed on Boris's site he has a blog post that he is now updating tier data every hour. I used your tool going through a mock draft today and noticed two things:

http://jayzheng.com/ff/#/draft-aid says last updated Aug 19th, 2015
As an example Kelvin Benjamin is showing as a tier 6 WR option but was recently injured and is out for the season. This makes sense if the tool on your end last pulled data from Boris's site 2/3 days ago since I believe he was just injured around that time.

When you look at Boris's current WR tier data as of today Benjamin is no where to be found which makes sense since he is now out for the year and Boris is polling fantasypros every hour.
TL;DR now that Boris has committed to updating tier information based on FantasyPros ECR (polled fresh every hour) and running it through his tier alg. is there a way for you to poll new tier information from him site (and new ranking information from fantasypros) a couple of times a day?

it is certainly doable. the current update is done manually, and I thought about automating the process.
However, it will probably need to wait as I am currently working on something to let users upload their own rankings.


add elastic training blog

https://github.com/kubeflow/community/issues/500
@kubeflow/wg-training-leads

/hold pending rendering test

@kubeflow/wg-training-leads
@andreyvelich
/lgtm

/hold cancel
rendering issue fixed

/lgtm
/assign @terrytangyuan @xieydd

Nit - I would consider removing "like precedent cloud native adoptions" in final paragraph.

Nit - I would consider removing "like precedent cloud native adoptions" in final paragraph.

sounds reasonable. While there are some precedents like that, it's not always the case.

Please take a look, thanks for your time :smile:
@andreyvelich

cc @tgaddair

Awesome stuff, @gaocegege!  Great to see Elastic Horovod in Kubeflow :)

ping @theadactyl

Yeah, the feature is merged into kubeflow/mpi-operator.

Great, thanks @gaocegege!
/approved for my part
Do we need lgtm from Josh for copy?

/lgtm
@zw0610 Nice job!   Although some of the sentence structure and word flow might be a little unusual, I believe the message is conveyed.  Also, since I do not have the technical depth to validate the examples, I will rely on the Kubeflow Training WG approvals, which have been provided above.  Thank you for this post!

/approve


Add markdown task list

[x] Additional markup is supported, including @mentions, #references, links, emphasis, and HTML tags.
[x] List syntax is required.

You can nest lists below, too!

[x] This item is completed.
[ ] This item is not complete.

Add markdown list

[ ] Turn on GitHub Pages
[ ] Outline my portfolio
[ ] Introduce myself to the world

Updated


computed output size would be negative

I am getting following error when I am running sticker example in Windows 10/Python 3.5/TF 0.1.
computed output size would be negative

	 [[Node: fcn_8s/vgg_16/fc6/convolution = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="VALID", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/cpu:0"](fcn_8s/vgg_16/pool5/MaxPool, fcn_8s/vgg_16/fc6/weights/read)]]

Caused by op 'fcn_8s/vgg_16/fc6/convolution', defined at:

  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\visualstudio_py_launcher.py", line 78, in <module>

    vspd.debug(filename, port_num, debug_id, debug_options, run_as)

  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\visualstudio_py_debugger.py", line 2483, in debug

    exec_file(file, globals_obj)

  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\visualstudio_py_util.py", line 111, in exec_file

    exec_code(code, file, global_variables)

  File "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\visualstudio_py_util.py", line 87, in exec_code

    exec(code_obj, global_variables)

  File "C:\Users\vijay\Documents\Visual Studio 2015\Projects\PythonApplication3\PythonApplication3\sticker.py", line 48, in <module>

    is_training=False)

  File "C:\TensorFlow\tf-image-segmentation-master\tf_image_segmentation\utils\inference.py", line 53, in new_network_definition

    all_outputs = network_definition(*args, **kwargs)

  File "C:\TensorFlow\tf-image-segmentation-master\tf_image_segmentation\models\fcn_8s.py", line 78, in FCN_8s

    spatial_squeeze=False)

  File "C:\TensorFlow\models-master\slim\nets\vgg.py", line 165, in vgg_16

    net = slim.conv2d(net, 4096, [7, 7], padding='VALID', scope='fc6')

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\contrib\framework\python\ops\arg_scope.py", line 177, in func_with_args

    return func(*args, **current_args)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\contrib\layers\python\layers\layers.py", line 907, in convolution

    outputs = layer.apply(inputs)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\layers\base.py", line 303, in apply

    return self.__call__(inputs, **kwargs)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\layers\base.py", line 273, in __call__

    outputs = self.call(inputs, **kwargs)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\layers\convolutional.py", line 156, in call

    data_format=utils.convert_data_format(self.data_format, self.rank + 2))

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 639, in convolution

    op=op)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 308, in with_space_to_batch

    return op(input, num_spatial_dims, padding)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 631, in op

    name=name)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 129, in _non_atrous_convolution

    name=name)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py", line 396, in conv2d

    data_format=data_format, name=name)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 763, in apply_op

    op_def=op_def)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 2327, in create_op

    original_op=self._default_original_op, op_def=op_def)

  File "C:\Users\vijay\Miniconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1226, in __init__

    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): computed output size would be negative

	 [[Node: fcn_8s/vgg_16/fc6/convolution = Conv2D[T=DT_FLOAT, data_format="NHWC", padding="VALID", strides=[1, 1, 1, 1], use_cudnn_on_gpu=true, _device="/job:localhost/replica:0/task:0/cpu:0"](fcn_8s/vgg_16/pool5/MaxPool, fcn_8s/vgg_16/fc6/weights/read)]]

My code is as follows

from __future__ import division

import os
import sys
import tensorflow as tf
import skimage.io as io
import numpy as np

sys.path.append("tf-image-segmentation/")
sys.path.append("/home/dpakhom1/workspace/my_models/slim/")

fcn_16s_checkpoint_path = \
 'C:/TensorFlow/checkpoints/vgg_16.ckpt'

os.environ["CUDA_VISIBLE_DEVICES"] = '1'

slim = tf.contrib.slim

from tf_image_segmentation.models.fcn_8s import FCN_8s
from tf_image_segmentation.utils.inference import adapt_network_for_any_size_input
from tf_image_segmentation.utils.pascal_voc import pascal_segmentation_lut

number_of_classes = 21

#image_filename = 'C:/Tensorflow/sticker/me.jpg'

image_filename = 'C:/Tensorflow/sticker/small_cat.jpg'

image_filename_placeholder = tf.placeholder(tf.string)

feed_dict_to_use = {image_filename_placeholder: image_filename}

image_tensor = tf.read_file(image_filename_placeholder)

image_tensor = tf.image.decode_jpeg(image_tensor, channels=3)

# Fake batch for image and annotation by adding
# leading empty axis.
image_batch_tensor = tf.expand_dims(image_tensor, axis=0)

# Be careful: after adaptation, network returns final labels
# and not logits
FCN_8s = adapt_network_for_any_size_input(FCN_8s, 32)

pred, fcn_16s_variables_mapping = FCN_8s(image_batch_tensor=image_batch_tensor,
                                          number_of_classes=number_of_classes,
                                          is_training=False)

# The op for initializing the variables.
initializer = tf.global_variables_initializer()

#saver = tf.train.Saver()
#saver = tf.train.import_meta_graph('C:/TensorFlow/checkpoints/fcn_8s_checkpoint/model_fcn8s_final.ckpt.meta', clear_devices=True)

with tf.Session() as sess:

    sess.run(initializer)
    #saver.restore(sess,fcn_16s_checkpoint_path)
    saver = tf.train.Saver()
    saver.restore(sess, "C:/temp/model_fcn8s_final.ckpt")
    #path = 'C:\\temp\\model_fcn8s_final.ckpt'
    #saver = tf.train.import_meta_graph(path + '.meta')
    #saver.restore(sess, tf.train.latest_checkpoint("C:\\temp\\"))
    all_vars = tf.get_collection('vars')
    print("Model restored.")
    print('Initialized')
    image_np, pred_np = sess.run([image_tensor, pred], feed_dict=feed_dict_to_use)

    io.imshow(image_np)
    io.show()

    io.imshow(pred_np.squeeze())
    io.show()

hi, do you solve the problem? I have the similar error.

I have the same error.Have you solved this problem?I need your help,thanks.

I also meet the same problem. But i check my code carefully, finding the number of images are setted wrong. Can help your guys hopefully. thanks.

I had the same problem. For me the image size was not correct.

can you please share more info regarding where we can make amendments to get it through


Merged PR 129185: [MERGE #5297 @VSadov] Adding telemetry for pinned objects and closed script contexts

[MERGE #5297 @VSadov] Adding telemetry for pinned objects and closed script contexts
Cherry-picked from commit ea9a1d6d.

@VSadov - this change went into master just after cut-off to automatically pump into release/1.10.  There's some benefit in having this data in release/1.10 and it will simplify merges & conflict resolutions going forward.
Any reason we don't want to take this in release/1.10 now?

Is this the same as https://github.com/Microsoft/ChakraCore/pull/5346 ?

It's close, looks like #5346 has some more changes than what's in here.  @vsadov?

Let's make this PR go through. I have couple additional changes.
They are easier to do once these are in. (I tried to do all at once and it seems unnecessary hard)


Add flag where an uncovered expression is an error.

I suspect that if flow coverage file.js is <100 then there are untyped expressions that can cause nasty errors at runtime.
I'd be great if there was a mode where those expressions became errors. For example:

Accessing a non-existant field returns an any and is marked as untyped in flow coverage
Importing a non-typed module returns an any and is marked as untyped in flow coverage
Adding an event listener, aka server.on('request', onRequest) makes the parameters of the onRequest function declaration have type any and is marked as untyped in flow coverage
If the arguments to a method definition in a class are not typed then they default to any and is marked as untyped in flow coverage

If these untyped expressions were type errors with a useful error message it will make it a lot easier to get a program to 100% flow type coverage.

A lot of this is now handled by configuring flow linting.

We don't intend to build this. You can query the coverage result and fail based on some criteria on your own


AWS Batch Fargate integration

User-facing changes: A new "BatchType" parameter that's set to 'ec2' by default.  Users can optionally set this parameter to 'fargate' which will alter the AWS Batch Compute Environment that's created to 'FARGATE'.
Considerations: Fundamentally, this just overlays a conditional for the "Type" parameter of the AWS Compute Environment's "ComputeResources" grouping to change it between EC2 and Fargate.  Additionally, in order to enable Fargate, a similar mechanism needs to depopulate the values for MinvCpus, DesiredVCpus, InstanceTypes, and InstanceRole.  All of those parameters will be ignored if 'fargate' is selected, even if set by the user.  Lastly, in order to facilitate logging, a CreateLogStream and PutLogs permission was added to the ECS Task role.  This wasn't required previously, as the instance itself logged on behalf of the container.

@queueburt It seems that we don't explicitly allow DescribeComputeEnvironment call for AWS Batch in this template (at least I couldn't find it) however Metaflow is able to issue the call and get a response against this PR as well as the tip of the master.

@queueburt It seems that we don't explicitly allow DescribeComputeEnvironment call for AWS Batch in this template (at least I couldn't find it) however Metaflow is able to issue the call and get a response against this PR as well as the tip of the master.

This is odd.  Let me dig in and see if I can figure out root cause.  What's the context in which this call succeeds?  Is it a local laptop user, or does it happen in the context of Batch and its assumed execution roles as well?

After some investigation, the likely culprit is that the Describe call always happens client-side (correct me if I'm wrong, I only did a surface level dig through the code) prior to either submitting the jobs directly to Batch or generating them for Step Functions.  Effectively, this would mean that as long as your local user has DescribeComputeEnvironment permissions, the call will pass.  I tested this against the restricted user we create with this template and got the expected denial:
2021-02-16 12:06:36.870 [6/start/20 (pid 40503)] An error occurred (AccessDeniedException) when calling the DescribeComputeEnvironments operation: User: arn:aws:sts::263972292686:assumed-role/SC-263972292686-pp-bmcfyqhhtlgtq-MetaflowUserRole-1OWG4UPWZ81EW/botocore-session-1613505996 is not authorized to perform: batch:DescribeComputeEnvironments on resource: *
What's our best fix for this?  It seems safe to assume that given Batch's current requirements, DescribeComputeEnvironment should be enabled for our restricted user.

@savingoyal After some investigation, the likely culprit is that the Describe call always happens client-side (correct me if I'm wrong, I only did a surface level dig through the code) prior to either submitting the jobs directly to Batch or generating them for Step Functions.  Effectively, this would mean that as long as your local user has DescribeComputeEnvironment permissions, the call will pass.  I tested this against the restricted user we create with this template and got the expected denial:
2021-02-16 12:06:36.870 [6/start/20 (pid 40503)] An error occurred (AccessDeniedException) when calling the DescribeComputeEnvironments operation: User: arn:aws:sts::xxxxxxxxxxxxx:assumed-role/SC-263972292686-pp-bmcfyqhhtlgtq-MetaflowUserRole-1OWG4UPWZ81EW/botocore-session-1613505996 is not authorized to perform: batch:DescribeComputeEnvironments on resource: *
What's our best fix for this?  It seems safe to assume that given Batch's current requirements, DescribeComputeEnvironment should be enabled for our restricted user.


qr-image with href

I want to add qr-image with href so user can click on it but svg has so many double quotes so it's not working. What is the best way to print svg qrcode in this case?
Example:
var svg_img = qr.imageSync('http://www.gizmo.com/link/', { type: 'svg' });
$("#qrdiv").html('');

I replaced double quotes with single quotes of svg image but still no joy
new_img = svg_img.replace(/"/g, '\'');
$("#qrdiv").html('');

The error is
Failed to load resource: net::ERR_FILE_NOT_FOUND

I am using this http://davidshimjs.github.io/qrcodejs/ instead

imageSync returns image. To use it in src, you should encode it to base64 and use data: protocol.
Or don't use  and just put SVG-image as it is.
Anyway, it has nothing to do with qr-image.

@alexeyten, thanks for your reply. I opted to use your latter suggestion (SVG-image as it) and it works like a champ. Thanks man.


[Issue] Add security logging in default bicep for function apps

This is about the core Bicep files. Currently I get an alert to "Enable security logging in Function Apps". I believe this Bicep resolves that alert:
https://github.com/pamelafox/staticmaps-function/pull/76
I can send that Bicep as a PR to the repo, but I wanted to get an early review on how I organized it, and whether it should be something someone can just enable as a boolean to the functions app bicep.
Thanks!

Updating details share by @weikanglim offline
Looks like we set AzureWebJobsStorage__accountName instead System assigned identity for functions: Create a function app without default storage secrets in its definition - Azure Functions | Microsoft Learn
User-assigned identity for functions: Use User managed identity to replace connection string in"AzureWebJobsStorage" for function apps - Microsoft Community Hub

@rajeshkamal5050 That's actually a different security alert. I'll share the Bicep for that once I've got it working, I'm close but not quite there.


Let us give feedback to the AI

Problem
I gave gtp-engineer a simple task. It asked me some questions, and then generated a lot of Python code. Which was fine. Except I had forgotten to specify that I wanted JavaScript code!
(There may be similar situations when the code it generates differs from what I wanted. For example, one time I gave it a complex task, and it generated a skeleton project with no actual code inside the methods. I would have liked to feedback to it: "Please generate implementations for each method.")
Solution
At the stage when it shows me the code which would be generated, I wish I could give it more information, before it actually writes the files.
For example, I might say things like:
Minor correction: Please generate the code in C++ instead of Python
or
Please document each function with docstrings.
or
Correction: We should use Z, not Y, for the vertical axis.

This would essentially let me add a new clarification, after seeing the code, and then rerun gpt-engineer's code-generation stage. (Or perhaps check whether gpt-engineer now needs to ask some more questions before proceeding.)
I think this would be very useful, if the developer notices that something is not how they wanted it.
This question to provide corrections/clarifications should be offered on repeat, in case multiple refinements are needed. (But perhaps with a warning that it costs a lot of API tokens!)
This wouldn't really need to be an extra prompt. For example, AutoGPT combines everything into one prompt.
Enter 'y' to proceed, 'n' to quit, or enter feedback?

Enter 'y' to proceed, 'n' to quit, or enter feedback?

Is a good idea but it would require a new architecture for things.
And sometimes you def. just want it to run.
Adding label to revisit this!


Howto show progressbar only in console titlebar

Checklist

[X] I'm asking a question
[X] I've looked through the README and FAQ for similar questions
[X] I've searched the bugtracker for similar questions including closed ones

Version: youtube-dl 2021.05.16
Question
I would like to remove the progress line in my console output but keep it on the console titlebar. With
./youtube-dl --console-title <URL>
I see a progress bar in the console and additionally on the titlebar. With
./youtube-dl --no-progress --console-title <URL>
or
./youtube-dl --quiet --console-title <URL>
I see no progress-bar at all.
I would like to have the option --console-title working independant of the option --no-progress to only see relevant information in the console window. How could this be done?

Added as a request.


Improperly requesting SSL certificate for local :80 site

Hey @mholt,
Caddy 0.8, OSX 64-bit. Caddyfile:
wp.dev:80 {
  root /usr/local/var/www/wp.dev/public
  fastcgi / localhost:9000 php
}

Error:
$ sudo caddy
Activating privacy features...
2015/12/18 16:48:50 [wp.dev] failed to get certificate: The server could not validate our request.

The documentation claims that Automatic HTTPS is skipped when the port is 80.
If I add tls off into the above Caddyfile, the SSL certificate request is (correctly) skipped.
Is this a bug or a feature? Great project BTW :smile:

For now, use http://wp.dev instead.

actually, explicit port 80, explicit scheme http, and caddy's inability to bind port 80 and 443 will only resolve in error.
the only way to disable automatic https which works on 0.8 is "tls off" directive, and explicitly setting non-standard port.
additional info, setting with only host without port and permission to privileged port:

on 0.7 -> will bind to default port 2015
on 0.8 -> wil try to bind port 80, and error

Thanks for the report. This seems to be a duplicate of #391. If you agree, feel free to close this one and I'll get around to it soon. :)

Roger that, thanks again


GitHub Action to just test on macOS, Ubuntu, and Windows

Developers may be interested to run the same just commands that they use locally on continuous integration platforms such GitHub Actions.  Every time that a contributor creates a pull request, just test will be run on the three major operating systems to provide feedback to both the contributor and reviewers that tests are passing.
Test results: https://github.com/cclauss/django-microapi/actions
;-) macOS just worked out-of-the-box ;-)

Cool.  This allowed me to do a few fun things with just...

https://github.com/casey/just/pulls?q=is%3Apr+author%3Acclauss+

@cclauss Apologies are in order here. The addition is great, & I really appreciate it. I just (teehee, "just", just test) couldn't get here before you deleted the branch. I've done my best to recreate it, minus the commit history but including the authorship, at #6.
Hopefully, this is not offensive, but I'll hold off on merging for a bit in case you want to protest.

No troubles at all.  Like I said above, I learned a lot hacking on just.
Now that you are "back" would you be interested in working with some interns to modernize django-haystack?!?
The Djangonaut Team wanted to do it earlier in the year but unfortunately, that did not happen.

https://djangonaut.space/comms/2024/04/25/2024-opening-session-2

They want to do it in the next session (Oct 7th - Dec 2nd) if you want to get involved, please send an email to<EMAIL_ADDRESS>


Error when loading en+hi model

I am getting this error when trying to load the newly uploaded en+hi model

Traceback (most recent call last):
File "main.py", line 35, in
models[lang]  = Synthesizer(
File "Indic-TTS/env/lib/python3.8/site-packages/TTS/utils/synthesizer.py", line 91, in init
self._load_tts(tts_checkpoint, tts_config_path, use_cuda)
File "Indic-TTS/env/lib/python3.8/site-packages/TTS/utils/synthesizer.py", line 190, in _load_tts
self.tts_model.load_checkpoint(self.tts_config, tts_checkpoint, eval=True)
File "Indic-TTS/env/lib/python3.8/site-packages/TTS/tts/models/forward_tts.py", line 828, in load_checkpoint
self.load_state_dict(state["model"])
File "Indic-TTS/env/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2041, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ForwardTTS:
size mismatch for emb_g.weight: copying a param with shape torch.Size([4, 512]) from checkpoint, the shape in current model is torch.Size([2, 512]).

Any help would be appreciated.  @GokulNC @ashwin-014

Sorry for late response, but can you please try again by redownloading?
It is still working for me.

@GokulNC I am trying to inference on a model trained on my custom dataset, but facing this same error.
Traceback (most recent call last):
  File "/anaconda/envs/tts/lib/python3.8/runpy.py", line 192, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/anaconda/envs/tts/lib/python3.8/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/vibhor1/code/Users/vibhor/IndicTTS/TTS/TTS/bin/synthesize.py", line 425, in <module>
    main()
  File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/vibhor1/code/Users/vibhor/IndicTTS/TTS/TTS/bin/synthesize.py", line 322, in main
    synthesizer = Synthesizer(
  File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/vibhor1/code/Users/vibhor/IndicTTS/TTS/TTS/utils/synthesizer.py", line 78, in __init__
    self._load_tts(tts_checkpoint, tts_config_path, use_cuda)
  File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/vibhor1/code/Users/vibhor/IndicTTS/TTS/TTS/utils/synthesizer.py", line 120, in _load_tts
    self.tts_model.load_checkpoint(self.tts_config, tts_checkpoint, eval=True)
  File "/mnt/batch/tasks/shared/LS_root/mounts/clusters/vibhor1/code/Users/vibhor/IndicTTS/TTS/TTS/tts/models/forward_tts.py", line 839, in load_checkpoint
    self.load_state_dict(state["model"])
  File "/anaconda/envs/tts/lib/python3.8/site-packages/torch/nn/modules/module.py", line 2152, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ForwardTTS:
        size mismatch for emb_g.weight: copying a param with shape torch.Size([1, 512]) from checkpoint, the shape in the current model is torch.Size([8, 512]).

Any idea on what's causing this? Any help is appreciated.

Hey @GokulNC I facing the same issue. Do you know the probable cause? Traceback -
python3 -m TTS.bin.synthesize --text "Namaste! How are you? Kal milte hai" --model_path "models/v1/hin/fastpitch/best_model.pth" --config_path "models/v1/hin/fastpitch/config.json" --vocoder_path "models/v1/hin/hifigan/best_model.pth" --vocoder_config_path "models/v1/hin/hifigan/config.json" --speaker_idx male --out_path "temp.wav" --use_cuda true
 > Using model: fast_pitch
 > Setting up Audio Processor...
 | > sample_rate:22050
 | > resample:False
 | > num_mels:80
 | > log_func:np.log
 | > min_level_db:-100
 | > frame_shift_ms:None
 | > frame_length_ms:None
 | > ref_level_db:20
 | > fft_size:1024
 | > power:1.5
 | > preemphasis:0.0
 | > griffin_lim_iters:60
 | > signal_norm:False
 | > symmetric_norm:True
 | > mel_fmin:0
 | > mel_fmax:8000.0
 | > pitch_fmin:0.0
 | > pitch_fmax:640.0
 | > spec_gain:1.0
 | > stft_pad_mode:reflect
 | > max_norm:4.0
 | > clip_norm:True
 | > do_trim_silence:True
 | > trim_db:60
 | > do_sound_norm:False
 | > do_amp_to_db_linear:True
 | > do_amp_to_db_mel:True
 | > do_rms_norm:False
 | > db_level:None
 | > stats_path:None
 | > base:2.718281828459045
 | > hop_length:256
 | > win_length:1024
 > Init speaker_embedding layer.
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/usr/ai-inference/TTS/TTS/bin/synthesize.py", line 425, in <module>
    main()
  File "/usr/ai-inference/TTS/TTS/bin/synthesize.py", line 322, in main
    synthesizer = Synthesizer(
  File "/usr/ai-inference/TTS/TTS/utils/synthesizer.py", line 78, in __init__
    self._load_tts(tts_checkpoint, tts_config_path, use_cuda)
  File "/usr/ai-inference/TTS/TTS/utils/synthesizer.py", line 120, in _load_tts
    self.tts_model.load_checkpoint(self.tts_config, tts_checkpoint, eval=True)
  File "/usr/ai-inference/TTS/TTS/tts/models/forward_tts.py", line 839, in load_checkpoint
    self.load_state_dict(state["model"])
  File "/usr/local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2153, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ForwardTTS:
	size mismatch for emb_g.weight: copying a param with shape torch.Size([4, 512]) from checkpoint, the shape in current model is torch.Size([2, 512]).

@tanmayh-fg were you able to solve this?

@adimyth @tanmayh-fg Try changing num_speakers in the config.json to 4 if it's 2, or vica versa.

I am facing same issues.


ardana-job: reboot computes before post-deploy checks

This is based on a rebased version of #2469 and will need rebasing after #2469 is merged.
Based on a suggestion from @dirkmueller, adds a reboot_computes option to reboot the compute plane after site.yml completes and before the Tempest and rpm post-deployment checks are run.  I can't remember the exact reason why this is a good idea but it should help test updateability apparently.  @dirkmueller feel free to edit this to provide a better explanation of the motive :-)

Currently being tested via ardana-job-aspiers#4 (aspiers-automation-2469/std-min).

Rebased now #2469 is merged.
ardana-job-aspiers#4 (aspiers-automation-2469/std-min) aborted correctly on site.yml failure (in Horizon).  Trying again in ardana-job-aspiers#6 (aspiers-automation-2472/std-min) to see if it gets any further.

@aspiers does it work?

 Will fix.

Retesting via ardana-job-aspiers#10 (aspiers-automation-2472/std-min)

No way to test while there is this Horizon issue :-(
IOError: [Errno 2] No such file or directory: u'/opt/stack/service/horizon-20180409T154924Z/venv/srv/www/openstack-dashboard/openstack_dashboard/dashboards/help/static/help/admin'

@aspiers , just in case the reboot on its own creates problems, you should know the documentation does show a slightly different reboot procedure (http://docserv.suse.de/documents/SUSE_OpenStack_Cloud_8/suse-openstack-cloud-operations/single-html/#idg-all-operations-maintenance-reboot_cloud_rolling-xml-9), namely one that involves running the ardana-stop.yml and ardana-start.yml plays.

@aspiers , I think you could reuse some of the playbooks added in #2506 to reboot the nodes, not only compute nodes but also the other ones, including the deployer.

@dirkmueller Do you still see value in getting this merged?


Fix repeated backspace, other internal components

I can't describe entirely why the DraftEditor.react change here is necessary, but this is closer to what we had before #666.
The editOnSelect change fixes holding down Backspace in Firefox -- before this, the cursor would jump to the start of the input.

(accepted/landed internally already)


User can schedule a topic

A topic can have multiple bookings (date)

Each topic has a book button
Book button links through to form w/ date/time selection
If booking conflict, submit button redirects to booking page with flash message (Perhaps containing which topic is booked for the desired period)
If Successful, submit button redirects to Curriculum Page w/ flash message "Topic Successfully added" or equivelant.


How to hide menu item programically?

My view has this button. But in some scenarios I need to show or hide some of items.
I tried:
mFabMenu.findViewById(R.id.action_accept).setVisibility(View.GONE);
But it keeps title of the button

Ya is there any option to hide or remove item programatically


Weird behaviour generating documentation comments for internal procedures

Dear @365businessdev,
I have ran into some weird issues trying to add documentation comments to internal procedures.

It seems to be doing something wrong if there is a local procedure beneath an internal procedure. I think this is best explained with an example:
internal procedure MyInternalProcedure(SomeInterface: Interface "Line With Price"; SomeRec: Record "Custom Address Format"): Boolean
var
    SomeCodeunit: Codeunit "Sales-Post";
begin
    exit(true);
end;

local procedure MyLocalProcedure(): Integer
begin
    exit(42);
end;

Putting the code above in a codeunit and then typing /// above the internal procedure, results in:

If I have an internal procedure at the bottom of a codeunit, typing /// doesn't trigger any documentation comment generation.

You're absolutly right! internal procedure is not working properly. Fixed this in dev branch already and preparing for release

Fixed in version 0.3.1


New engine og:image

📝 Changed routes:

/engine

(view full size)

Commit 7261c8331fe427db0978887bd20631f2338f47ab (https://thirdweb-na8sx4rb8.thirdweb-preview.com).


No user agent

Resolve issue #34

For me this PR is OK.
I don't undertstand why there is check fail in PHP 7. It's OK with all others PHP versions.

Thank you for PR!
I will check your PR later, may be tomorrow.
Tests now is ok, for php7 already fixed in master in https://github.com/bopoda/robots-txt-parser/pull/37

@LeMoussel, merged, thanks!


go build: fails with stack overflow using generics and self referential function type

What version of Go are you using (go version)? go version go1.18 windows/amd64

$ go version
 go version go1.18 windows/amd64

Does this issue reproduce with the latest release? Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\karaa\AppData\Local\go-build
set GOENV=C:\Users\karaa\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\karaa\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\karaa\go
set CGO_ENABLED=1
set GOMOD=C:\Users\karaa\projects\go\generics\go.mod
set GOWORK=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\karaa\AppData\Local\Temp\go-build2344714082=/tmp/go-build -gno-record-gcc-switches

What did you do?
I want to define a constraint on the pointer receiver of a type and also have a self referential function type.
This combination seem to trigger infinite recursion and stack overflow
Here is link to the go playground https://go.dev/play/p/aOb7OSImUuf
Here are the stack overflow discussions about adding interface constraint on the pointer receiver of a type T
https://stackoverflow.com/questions/71547015/how-to-define-type-constraint-on-pointer-receiver-ingolang/71547820#71547820
https://stackoverflow.com/questions/69573113/how-can-i-instantiate-a-new-pointer-of-type-argument-with-generic-go
Here is a working sample that does not have the self referring function type https://go.dev/play/p/myw6FAosPjK

Here is the failing code just in case
package main

import "fmt"

// In the real solution this function receives parameters and also returns error. As it has to process recursive structures
// it sometimes has to create a new function with the same signature.
type Consumer func() Consumer

type Doer[T any] interface {
	Do()
	*T
}

type Struct struct{}

func (s *Struct) Do() {
	return
}

// PT is a constraint on the T pointer receiver based on these discussions. In short I am trying to make sure *T implements Doer.
// https://stackoverflow.com/questions/71547015/how-to-define-type-constraint-on-pointer-receiver-ingolang/71547820#71547820
// https://stackoverflow.com/questions/69573113/how-can-i-instantiate-a-new-pointer-of-type-argument-with-generic-go
// and working sample https://go.dev/play/p/myw6FAosPjK
func CreateConsumer[PT Doer[T], T any]() Consumer {
	return nil
}

func main() {
	fmt.Println("Slice Consumer", CreateConsumer[*Struct]())
}

What did you expect to see?
Successful compilation and run.
What did you see instead?
Stack overflow error on go build ./...

I found this similar defect that may be related though the file exhibiting the recursion is different and the example is not well distilled https://github.com/golang/go/issues/39695

CC @griesemer @findleyr
Error is
runtime: goroutine stack exceeds<PHONE_NUMBER>-byte limit
runtime: sp=0xc0204604c0 stack=[0xc020460000, 0xc040460000]
fatal error: stack overflow

runtime stack:
runtime.throw({0xd10385?, 0x12cb2e0?})
	../../go/src/runtime/panic.go:992 +0x71
runtime.newstack()
	../../go/src/runtime/stack.go:1101 +0x5cc
runtime.morestack()
	../../go/src/runtime/asm_amd64.s:547 +0x8b

goroutine 1 [running]:
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1051 +0x167c fp=0xc0204604d0 sp=0xc0204604c8 pc=0x61fc3c
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc020460578 sp=0xc0204604d0 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc0204607b0 sp=0xc020460578 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc020460858 sp=0xc0204607b0 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc020460a90 sp=0xc020460858 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc020460b38 sp=0xc020460a90 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc020460d70 sp=0xc020460b38 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc020460e18 sp=0xc020460d70 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc020461050 sp=0xc020460e18 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc0204610f8 sp=0xc020461050 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc020461330 sp=0xc0204610f8 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc0204613d8 sp=0xc020461330 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc020461610 sp=0xc0204613d8 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc0204616b8 sp=0xc020461610 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc0204618f0 sp=0xc0204616b8 pc=0x61e78d
cmd/compile/internal/typecheck.(*Tsubster).tstruct(0xc04045e528, 0xc0003df810, 0x0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1337 +0x168 fp=0xc020461998 sp=0xc0204618f0 pc=0x61fdc8
cmd/compile/internal/typecheck.(*Tsubster).typ1(0xc04045e528, 0xc0003df5e0)
	../../go/src/cmd/compile/internal/typecheck/subr.go:1168 +0x1cd fp=0xc020461bd0 sp=0xc020461998 pc=0x61e78d

etc.

Looks like a bug in the 1.18 noder code. The type checker (types2) has no problems with this code. With the unified build this compiles and runs fine and prints Consumer <nil> which is the expected result.
cc @randall77 @mdempsky

I managed to distill the code further looking at the subr.go code that falls into recursion
https://github.com/golang/go/blob/release-branch.go1.18/src/cmd/compile/internal/typecheck/subr.go
There is no need for fancy generics. Just any generics used alongside self referring function type seem to trigger this
https://go.dev/play/p/1d2qLjzZrSu
package main

type F func() F

func do[T any]() F {
	return nil
}

func main() {
	do[int]()
}

ping: this is a release blocker that hasn't been updated in a while.


OPENTOK-31614 sentry error monitoring

See https://github.com/opentok/opentok-meet/pull/28 for more details.

+1
Tested by causing error from opentok.js and opentok-meet then confirming errors reported to separate Sentry.io projects.


Clarify in the documentation which operating systems are supported

The documentation talks about chromium, so it seems reasonable to assume OSX / Linux are supported, but the details are all windows/edge based. So it would be good to clear about which OSs are known to be supported, which are known not to be possible, and which are possible

Fixed. Thanks!


$http post method always having Error 500 when the content response is bigger in size

Hi
I am using $http post method and it works perfectly as expected when the response data is small
but when i return a bigger data it fails and goes to error function with status 500.Below is the code which i am using, please suggest any solution or advice me if i am doing something wrong.
$http({
method: 'POST',
url: 'my.aspx/GetFiles',
data: {},
headers: {
'Content-Type': 'application/json'
}
}).then(function (response) {
$scope.filedetails = $.parseJSON(response.data.d);
}, function(response){
alert("error");
});

If you are getting a 500 error, then this is not related to Angular (i.e. the same would happen without Angular). It could be a server configuration issue. You should look at your server's error log to find more info about the error.


Incoperate lang native build command change in Std Libs

Description:

$Subject

Change - --native -> --graalvm
Describe your task(s)

[x] Release a new ballerina gradle plugin with the the flag change
[x] Update standard lib graalvm build template
[ ] Update the std libs with this new version

Module list :

[ ] io
[ ] java.arrays
[ ] regex
[ ] time
[ ] url
[ ] xmldata
[ ] constraint
[ ] crypto
[ ] log
[ ] os
[ ] persist
[ ] protobuf
[ ] random
[ ] task
[ ] xslt
[ ] cache
[ ] file
[ ] ftp
[ ] mime
[ ] tcp
[ ] udp
[ ] uuid
[ ] auth
[ ] email
[ ] jwt
[ ] oauth2
[ ] toml
[ ] yaml
[ ] http
[ ] grpc
[ ] websocket
[ ] websub
[ ] websubhub
[ ] graphql
[ ] sql
[ ] nats
[ ] persist.inmemory
[ ] kafka
[ ] persist.googlesheets
[ ] rabbitmq
[ ] java.jdbc
[ ] mssql
[ ] mysql
[ ] oracledb
[ ] persist.sql
[ ] postgresql

Changes needed to be done by the std lib module owners:

Change the workflow file name to build-with-bal-test-graalvm.yml

Change the standard library workflow name to ballerina-platform/ballerina-standard-library/.github/workflows/build-with-bal-test-graalvm-template.yml@main

Update the ballerinaGradlePluginVersion to 1.1.0 in the gradle.properties file

If you have a separate test package then update the command and the task in the build.gradle. Example PR:

If you have enabled bal build --native or bal test --native in the examples those commands should be changes to bal build --graalvm and bal test --graalvm

There will be inconsistencies if we run an older branch of the std lib with an older branch of the lang. This might happen when we want to check for GraalVM incompatible changes in a patch release.
Since we only run the GraalVM check on the default branch and with the lang master for pull requests checks, this scenario is not allowed. But ideally, we should have a mechanism to run GraalVM checks in the patch branches as well.
This issue has been tracked via: https://github.com/ballerina-platform/ballerina-standard-library/issues/4553

This task is complete now!


sim: Add a config to test libcxx

Summary
extract from https://github.com/apache/incubator-nuttx/pull/2063, to improve c++ build coverage
Impact
Testing
pass the build

@yamt do you know how to fix this warning?
In file included from libcxx/src/filesystem/directory_iterator.cpp:19:
Error: libcxx/src/filesystem/filesystem_common.h:200:27: error: declaration 'struct timespec' does not declare anything [-Werror]
  200 | using TimeSpec = struct ::timespec;
      |                           ^~~~~~~~
Error: libcxx/src/filesystem/filesystem_common.h:201:24: error: declaration 'struct stat' does not declare anything [-Werror]
  201 | using StatT = struct ::stat;
      |                        ^~~~
cc1plus: all warnings being treated as errors
make[1]: *** [Makefile:87: directory_iterator.o] Error 1
In file included from libcxx/src/filesystem/operations.cpp:20:
Error: libcxx/src/filesystem/filesystem_common.h:200:27: error: declaration 'struct timespec' does not declare anything [-Werror]
  200 | using TimeSpec = struct ::timespec;
      |                           ^~~~~~~~
Error: libcxx/src/filesystem/filesystem_common.h:201:24: error: declaration 'struct stat' does not declare anything [-Werror]
  201 | using StatT = struct ::stat;
      |                        ^~~~


chore: bdd-nh-1594734531 to 0.0.1

chore: Promote bdd-nh-1594734531 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


opts.defaults in updated getting started not working

I am new to holoviews and probably my entire system setup is not sufficient. I am constantly facing issues when it comes to setting options.
My system is based on anaconda3 (python 3.7.1, param 1.8.1, holoviews, 1.10.6, bokeh 0.13.0, jupyter notebook 5.7.4) from default channel only.
First issue in Getting Started/Tabular Datasets:
overlay.opts(width=600) produces error: "TypeError: 'int' object is not iterable"
I was able to fix it for me by changing the line to
overlay.opts(plot=dict(width=600))
Just for aiding you in identifying my issue.
Even after long searches I was not able to fix the getting started on Gridded Datasets:
opts.defaults(
opts.GridSpace(shared_xaxis=True, shared_yaxis=True),
opts.Image(cmap='viridis', width=400, height=400),
opts.Labels(text_color='white', text_font_size='8pt', text_align='left', text_baseline='bottom'),
opts.Path(color='white'),
opts.Spread(width=600),
opts.Overlay(show_legend=False))
This is producing the error:
AttributeError: type object 'opts' has no attribute 'GridSpace'
which is the same of course for all lines. I think I could fix it by changing it back to line Magics
%opts GridSpace [shared_xaxis=True, shared_yaxis=True]
at least, this is not producing any error. However, I would like to have it jupyter independent, i.e. to use .opts() for usage in ipython/python only environments.
Of course I have imported opts, i.e. first lines of my notebook state:
import numpy as np
import holoviews as hv
from holoviews import opts
hv.extension('bokeh', 'matplotlib')
Basically I am just copy-pasting your getting started into my notebook trying to reproduce the original output.
Thank you for any helping hint
lh

opts.defaults is new API introduced in 1.11.0 to replace the magics, upgrade using:
conda install -c pyviz holoviews

# or
pip install holoviews


[State Restoration] Scaffold.drawer and Scaffold.endDrawer

Description
Adds state restoration capabilities to the drawer and endDrawer.
Related Issues
Fixes https://github.com/flutter/flutter/issues/70925
Related to https://github.com/flutter/flutter/issues/62916
Tests
I added the following tests:

Tests to make sure that state restoration is off if Scaffold.restorationId is null.
Tests to make sure that state restoration behaves as expected for Scaffold.drawer and Scaffold.endDrawer.

Checklist
Before you create this PR, confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I signed the CLA.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I updated/added relevant documentation (doc comments with ///).
[x] All existing and new tests are passing.
[x] The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Did any tests fail when you ran them? Please read Handling breaking changes.

[x] No, no existing tests failed, so this is not a breaking change.
[ ] Yes, this is a breaking change. If not, delete the remainder of this section.

[ ] I wrote a design doc: https://flutter.dev/go/template Replace this with a link to your design doc's short link
[ ] I got input from the developer relations team, specifically from: Replace with the names of who gave advice
[ ] I wrote a migration guide: https://flutter.dev/go/breaking-changes-template Replace this with a link to a pull request that adds the migration guide to https://flutter.dev/docs/release/breaking-changes

Looks like this is causing some test failures.

Looks like this is causing some test failures.

Fixed the failing tests. Just needed to make sure to address when isDrawerOpen's value is modified when passed into the DrawerController. Otherwise, it only initializes the DrawerController's value.

Fixed the failing tests. Just needed to make sure to address when isDrawerOpen's value is modified when passed into the DrawerController. Otherwise, it only initializes the DrawerController's value.


Use placeholder image for beekeeper

https://beekeeper.herokuapp.com appears to be down, so the image is broken.
EDIT: @danyeaw pointed me to the new location.

@danyeaw I've force-pushed with the new link.
I'll do another pass through the repositories to see if this link needs to be updated elsewhere.


Parsing error: Cannot read property 'ecmaFeatures' of undefined (null)

What version of standard?
11.01
What operating system, Node.js, and npm version?
Ubuntu,  Node v9.0.0, npm 6.1.0
What did you expect to happen?
This linter warning should not appear
What actually happened?
In Atom editor appear this message in all js files
Provider: js-standard  Parsing error: Cannot read property 'ecmaFeatures' of undefined (null)
My package.json
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^8.2.5",
"babel-jest": "20.0.3",
"babel-polyfill": "^6.26.0",
"eslint": "^5.0.1",
"eslint-plugin-react": "^7.10.0",
"jest": "20.0.4",
"react-test-renderer": "^16.3.2",
"standard": "^11.0.1"
}
This problem occurs after update several devs packages

I found a way to replicate this issue:
It has to do with package-lock.json. I've seen many repos that have both eslint 5+ and standard without issue, but if you delete the package-lock.json and rebuild it from scratch (via npm i) that app will now experience this bug.

thanks @Autre31415 at this moment I downgrade to eslint package to version 4.19.1 and problem was solved!

any fixes for this?

See response by @tmilar xojs issue #336:
npm install --save-dev --save-exact<EMAIL_ADDRESS>
this fixes for me.
NOTE: I am not running xojs, just happened upon that as a fix.

With the update of Standard v12, this bug seems to be resolved.

For me this appeared after v12 version :(

If you have a package that installs both ESLint 4.x and 5.x, this will occur to a bug with acorn

@wmhilton Prettier-standard has a dependency of<EMAIL_ADDRESS>so yes

Hmm... I think I'm seeing this bug even after I've removed everything depending on<EMAIL_ADDRESS>from my project.

Hmm... I think I'm seeing this bug even after I've removed everything depending on<EMAIL_ADDRESS>from my project.

Double check those dev dependencies to make sure, then wipe out package-lock.json and node_modules and do a fresh npm install.

I am having this issue on NodeJS 8.11.1 Win64 and my only libs are:
  "dependencies": {
    "@feathersjs/express": "^1.2.7",
    "@feathersjs/feathers": "^3.2.3"
  },
  "devDependencies": {
    "nodemon": "^1.18.4",
    "standard": "^12.0.1"
  }

Is it nodemon ?

Thanks to @favadi's https://github.com/standard/standard/issues/1189#issuecomment-418323326. Workaround works for me is:
npm i --save-dev standard@11


Markdown to JSON

Planning to use markdown to specify configuration, which can then be converted into a JSON object. Thoughts?

In my opinion you'd be better off just using a parser that supports relaxed-JSON, like mine at http://softwaremonkey.org/code/JsonParser. Most decent parsers support relaxations like unquoted keywords, inferred commas, etc, which make RJSON directly suitable for configuration (I use it all the time).
See http://hjson.org/ for a similar stance and [search for "relaxed json"](https://www.google.com/search?num=100&hl=en&safe=active&q=relaxed json).
But a good middle ground is the code-within-markdown approach where the parser is used to parse indented code sections and ignore everything else and the document can then be directly published to HTML en toto, and the same document parsed. It would be trivial to modify JSON parsers to do this and wouldn't be hard to write a quite stream preprocessor that was installed upstream of the parser fed only the code sections to the parser.
Apart from this, I think markdown is too lacking in structure and, more importantly, to specific to HTML to be suitable as a source format for JSON and similar structured data.


Inserting the "#" character and print it

I've been using TextMesh Pro in Unity, and I was trying to put hexadecimal values in tags like this:
<#BFDCE1>Boy:</color> When are we getting out? I don't like it here. I wanna go home...
The problem here is the hashtag. In the Yarn editor, it turns all the text after it grey, and I can't escape it with \#. If I tried to run that line in YarnSpinner, it wouldn't work.
Any idea of what the hashtag even does? And how can I get YarnSpinner to simply print out the character? Thank you.

Hashtags are used by Yarn Spinner to add additional information about a line, like its unique line code (which games can use for doing localisation or voiceovers.)
As a workaround, you could replace the # with any other symbol, and in the code that receives the line string, swap it back to a # before providing it to TextMeshPro.

Thank you so much! Got your workaround to work perfectly.


Memory leak connected to EJS and PUG view engines

I have tested two simple apps.
One using the ejs templating engine and the other using pug.
Both apps were tested with Siege. One route, and 5 - 20 concurrent users.
////////////////////////
EJS
////////////////////////

/////////////////////////////////
PUG
////////////////////////////////

In both tests I was using Express.js version 4.16.3, and latest versions of pug and ejs.
Edit -- wrong version of express stated...

Express doesn't really do anything but pass data between the two view engines. We can definitely take a look. Can you provide the following?

The source code in text format so we can copy and paste and run it instead of trying to type it out from a photo.
The version of Node.js and the versions of pug/ejs involved.
The steps to reproduce the memory leak.

Also, just as an aside, can you try to test the following to verify if the memory leak is in ejs or express by testing this, which doesn't use Express?
var http = require('http')
var ejs = require('ejs')
var fs = require('fs')

var template = fs.readFileSync('views/home/home.ejs', 'utf8') // or where ever your file is located

function app (req, res) {
  res.setHeader('Content-Type', 'text/html')
  res.end(ejs.render(template))
}

http.createServer(app).listen(3000)

Dupe? #3552
I think we were pretty confident in that issue that there was a leak in ejs.

Source code
//Server file (index.js) -- when using EJS, just replace the view engine to ejs

var express = require('express');

var app = express();
app.set('view engine', 'pug');

app.get('/', function(req, res){
  res.render('home/home');
});

app.listen(3000);

//Pug view file
doctype html
html
  head
    title RndSite
  body
    h1 Welcome to my memory test app

//Ejs view file
<!DOCTYPE html>
<html>
  <head>
     <meta charset="utf-8">
     <title></title>
  </head>
  <body>
    <h1> Memory Test </h1>
  </body>
</html>

Versions
Node -- 8.12.0
EJS -- 2.6.1
Pug -- 2.0.3

Steps
Start the server with : "node --expose-gc --inspect=9222 index.js"
Open the chrome inspector by typing "chrome://inspect" in the address bar.
Start Allocation instrumentation on timeline.
Open up Siege and run: siege -if urls.txt -c 5. // urls.txt file contains : "http://localhost:3000/"

Thanks @m-majetic ! Can you please validate https://github.com/expressjs/express/issues/3751#issuecomment-424047928 ?

I think we were pretty confident in that issue that there was a leak in ejs.

Right, at least it doesn't seem to be in Express. Either Node.js HTTP server is causing it or (I suspect) the actual inspector itself is causing it as the leak only appears when the inspector is attached to the Node.js process; it doesn't seem to exist when there is no inspector.

When testing in that issue, I did a test like @dougwilson suggests.  Only when I added the ejs part did I get a leak.  https://github.com/expressjs/express/issues/3552#issuecomment-370958064
I would go ahead and just remove the http stuff all together and try just rendering a file with both engines in a loop.  Then check the memory usage for that.  I believe, IIRC, you will find your leak in there.

The thing is, I am getting the same leak using pug as well...
There might be something with the inspector.
@dougwilson
I have tried it without express and I am getting the same thing.
I will now try to monitor the rss and heapTotal without the inspector

Hi @m-majetic right, I get that it happens with both ejs and pug, but that still doesn't mean it is Express. It sounds like you tested with the basic app I provided that does not include Express at all. I think at this point it rules out Express as the contributing factor here. If you think otherwise on why specifically Express is causing the memory leak, please let us know and we can reopen to investigate further.

With further investigation I found out that the problem is the node inspector.
Sorry for the false accusations.
After the debugger attaches it starts allocating memory to function strings for some reason.


Restart round button

It should be possible to set admin for the game, and it should be possible for admin to restart game

Admin == master?

No.
Currently the server appoints a first client as a master client. This approach is simple, but as well it works only for simple cases.
So it should be possible to make a list of logins for the server. Only clients with logins from that lists can  become masters.
I think, it is better to separate masters from admins.
I will add soon details to the protocol description.

I think this issue realted to #119


⚠ ClamAV has degraded performance

In 28b9a59, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 124 ms

Resolved: ClamAV performance has improved in e5979af after 5 minutes.


GUI for the project

The project is a bit hard to use through a command line, maybe you can add a GUI (Client). If you're planning to add it, and if you're planning to use WPF, I'll be more than happy to try to contribute to the project!

Thanks for the suggestion and the offering @lordpiki
I think it would be faster and easier to start with a web UI before going into native apps but if you want to try, be my guest, although it is maybe a bit early in the project for the GUI, I'd wait a bit.
Thanks!

I agree it would be cool


Tag <context.location.other_block> returns bad location

/version git-Paper-227 (MC: 1.15.2)
/version denizen (build 4741-DEV)
debug: https://one.denizenscript.com/paste/68310
script: https://one.denizenscript.com/haste/68311
The tag <context.location.other_block> does not return the right location when breaking a bed. When I let me return the <context.location> and the <context.location.other_block> by breaking a bed I've got 4 different locations for the same one bed.

Fixed.
The tag was reading beds backwards.


Performance impact sort() and merging inventories. v2.4.9

There is a performance impact on .autosplitmerge() and .sort() v2.4.9
Scenario would be adding multiple items per second to inventory.
Using autosplitmerge() from one inventory to another:

Plenty of space in inventory no impact
Space for some items like 1x1 but not 1x2 or 2x2 etc, minimal impact fps begins to drop
No space for new items, must fill existing stacks, large performance impact, clears up after a second or two.
Completely full inventory and multiple items and trying to be added, large impact ui begins to freeze and FPS tanks to 0 if actions continue the application becomes unresponsive.

Using .sort() on an inventory using autosplitmerge and sorting after every item is merged:

Minimal impact while inventory is empty or partially filled.
Large impact 2-3 seconds per action when inventory is full or has no slots for new items

Using automerge() from one inventory to another:

Minimal impact to FPS as it does drop from 60FPS to 30-35FPS but it stabilizes during high interactions at that FPS and returns to normal afterwards

Using .sort() on an inventory using automerge and sorting after every item is merged:

Minimal impact if at all anything noticable while there are slots open and space for items to merge.
Large impact to FPS when no slots are available or limited slots open, FPS tanks to 0FPS if actions persist

TLDR in my testing:
Using .sort() after every item addition is probably bad move for your game project, don't do it.
Using automerge works perfectly fine in low volume, try not to add 20 items a second if it can be avoided.
Using autosplitmerge works great as it merges items and fills any stacks that are not full, but has a huge performance impact so use sparingly.

Hey, thanks for the detailed analysis! I started using quadtrees for organizing items in 2d space (i.e. on a grid) which fixed some of the issues from earlier, but apparently comes with a performance cost. I think I'll put together a benchmarking scene and try to figure out which parts of automerge and autosplitmerge can be optimized further.

I did a few optimizations and bugfixes in v2.4.9 but I'm afraid that it only improves performance to some degree. The optimizations mostly affect the "automerge" and "autosplitmerge" calls, while i don't think there's much I can do regarding sort() since it's generally an expensive operation. But maybe making only once sort() call after all items have been added could be an acceptable workaround in your case?
On the bright side, the issue where the application gets totally stuck should be fixed now 🙂.
I'll keep this issue open as I don't think the work is really done here (as it never is with optimizations). I'll try to come up with even more tricks to make the grid-based operations faster and report the progress here.


Include script to enable SSE+CMK for existing VMSS

Currently there is no document available on how to enable SSE+CMK for existing VMSS. Tested the script and confirmed its working. Kindly check and approve it. FYR - https://github.com/MicrosoftDocs/azure-docs/issues/72294

@samueljamkhandi-MSFT : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@samueljamkhandi-MSFT Thanks for adding this and helping to improve our docs, we appreciate it!
I've shown this to the product team and they've signed off, so I'll sign off here, as well.
#sign-off

@roygara thank you!


Not running

Hi -
I had a working version of quantiphyse that out of the blue stopped working. So I removed the conda environment and proceed to start it all over again. Installation is successful however I still get the same error when trying to run it.
$ quantiphyse
Traceback (most recent call last):
File "/home/oscar/anaconda3/envs/qp2/bin/quantiphyse", line 5, in
from quantiphyse.qpmain import main
File "/home/oscar/anaconda3/envs/qp2/lib/python3.8/site-packages/quantiphyse/qpmain.py", line 30, in
from PySide2 import QtGui, QtCore, QtWidgets
ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.15' not found (required by /home/oscar/anaconda3/envs/qp2/lib/python3.8/site-packages/PySide2/QtGui.abi3.so)
I haven't been able to find the solution.
Thank you.

It was struggling me a bit but found the solution.
LD_LIBRARY_PATH="/opt/afni-latest/:/usr/lib/x86_64-linux-gnu/*"
The * needs to be in the LD_LIBRARY_PATH

This is an issue with the installation of Qt rather than quantiphyse - normally qt would be installed in the conda environment with quantiphyse  but the error suggests that it is looking at a system library which isn't compatible with the version of pyside. Glad you found a solution.


The build fails with 'filesystem' file not found error

I am building the code inside the docker container (running the wfameasurement/bazel image) on my Macbook. And it fails with
src/main/cc/common_cpp/protobuf_util/textproto_io.cc:22:10: fatal error: 'filesystem' file not found
#include <filesystem>

I'm wondering how it passed the github action check.

Is this using the extra config options specified in https://github.com/world-federation-of-advertisers/cross-media-measurement/blob/main/container.bazelrc ? Those are needed to ensure that the correct C++ toolchain is used.

I believe the issue is that our container image has too old a version of libstdc++. From https://en.cppreference.com/w/cpp/filesystem:

Using this library may require additional compiler/linker options. GNU implementation prior to 9.1 requires linking with -lstdc++fs and LLVM implementation prior to LLVM 9.0 requires linking with -lc++fs.

The simplest solution is to upgrade our build container image to be based on Ubuntu 20.04 (focal) instead of 18.04 (bionic). The GHA runner likely has a newer libstdc++ installed.

That sounds good. Do you want to have a try? Hope the upgrade won't break anything else.

Thank you Sanjay!


Migrate to Torann/laravel-geoip for getting the location

Hey,
Are you open if this library gets migrated to https://github.com/Torann/laravel-geoip?
This way it is possible to choose your own service (https://lyften.com/projects/laravel-geoip/doc/services.html) instead of relying on just iplocation.com
I can make a PR if you are open for it.
Thanks

Hey @KeizerDev
Yeah, that sounds awesome! Having the option to choose different services would be super useful. Go ahead with the PR – looking forward to checking it out!
Thanks!

Hey @mohammadhprp I have made a PR. The PR might also resolve #2 when MaxMind is used for example. It won't lazy load but it uses a local database instead of a web service in that case.

@mohammadhprp any chance you have time to check my PR?


Insignificant change to show error

Hmm sorry, what does this PR do?

(The diff only has a file.txt)

Sorry! I was testing if a package error appearing when building is reproducible on another machine. Ignore this PR.


Ensure that tab characters aren't in multi-line strings before throwing a violation

Fixes #3674 and #3438

(Doing some testing, then will merge tonight!)


Expose lezer feel dialect configuration

Is your feature request related to a problem? Please describe
With lezer-feel now supporting the camunda dialect, it would be great if the feel language support for codemirror allows developers to configure that one.
Describe the solution you'd like
I'm not sure what the best solution would be but probably extend the feel function to either:
a) accept an additional configuration?: ParserConfig config argument field
b) make an explicit parserDialect?: 'camunda' available
The parserDialect might be a bit confusing because there's already an optional dialect field defined.
Describe alternatives you've considered
One could also not change anything and just copy the feel(config) impl and configure the unaryTestsLanguage/expressionLanguage again but that feels a bit workaroundy for developers.
If you think any of the options are good i can create a PR for it

I propose that we introduce a parserDialect that you mention. A generic configuration is not extremely useful (for typing, etc).

Available via https://github.com/nikku/lang-feel/releases/tag/v2.2.0.


Black screen

After entering the password correctly, this black unsolved screen appears.
What could have happened?
Skull Island 2.1.0 Android 12

Check your internet connection

check the Wallet connection permission from app settings, that black screen is when the wallet doesnt reach to the internet

Try without VPN if it works then its VPN issue if doesnt then your wallet it doesnt connects to internet at all

Clear the app data, uninstall the wallet and reinstall it

if it doesnt again mean you should check your internet


http servers now auto-disconnect if the version is 1.0

This utilizes the ability for codecs to provide their own server handlers.  Now any Http or StreamingHttp service will properly kill connections using http 1.0

+1


POC: Deep Search PDF to MD file conversion

WIP/POC for PDF -> MD file conversion using Deep Search
Issue #2
While the endpoint is getting established, this takes the client side typescript library and mocks up a Go gin server for mocking the file conversion API responses.
All of this code is inferring the API from the client typescript lib in src/lib/api/deepsearch/index.ts. It will certainly require some tuning once the endpoint gets stood up. There was one adjustment I had to make to the getDocumentHashes DS4SD library code removing the / before api/xxx in path: api/cps/public/v2/project/${projKey}/data_indices/${indexKey}/documents/transactions/${transactionId}`` to prevent a double slash and a 404 from being returned. Typo maybe, tbd.
The UI components call the mock Deep Search API for PDF to Markdown conversion with the following operations with NextJS SSRs:

Upload component from the client side sent to the server side rendering.
Implement a POST endpoint to handle PDF to Markdown conversion
Authenticate the user with the username and API key
Launch the conversion task and wait for its completion with the status/wait API call. The API server mock go binary adds a 15 second delay, enough for the client side to send a second GETv2/project/mockProject/celery_tasks/mock-task-id.
Retrieve the transaction ID from the completed task
Fetch document hashes using the transaction ID
Obtain document artifacts using the document hash
Return the document artifacts as the API response to the nextjs client side for rendering the results.

To start the Go mock deep search api server do the following:
cd mock/go-deepseed/
go run deepseed-mock.go

Here are the CURL commands for functional testing and to validate the API calls. Also listing them to add clarity to the operations in the src/app/api/conversion/route.ts code in this PR.

 Once we get a feel for the conversion times we can consider integrating it directly into the knowledge submission form that will render the PDF doc to MD directly in the upload that then kicks off the process to get it posted in a repo and supply the location+SHA of the docs.
https://github.com/instructlab/ui/assets/1711674/ed347bd2-2c2f-4c76-95a2-da0340237aeb

Latest demo screen cap https://drive.google.com/file/d/1dal2nQHWr3ye1E_zCpIJzyqaOEy84Id5/view


chore(templates): remove reviewers checklist in PR

Summary

Description

Reviewers

[ ] Reviewer 1 has approved the PR
[ ] Reviewer 2 has approved the PR

TODO

Tests

[ ] Unit
[ ] Integration
[ ] Acceptance

[ ] Documentation

Current coverage is 100% (diff: 100%)

Merging #7 into master will not change coverage

@@           master    #7   diff @@
===================================
  Files           1     1
  Lines           1     1
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
  Hits            1     1
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 7adf88c...82f9cac


Unescape special Slack Characters

Slack performs encoding of special characters & < >. Those should be unencoded by the app but currently aren't.
So when in slack I type @myBot find students of MSc & MBA what is actually returned by match is
#<MatchData "find students of MSc & MBA"

As long as we preserve backwards compatibility or make a clear breaking change and allow raw data to be retrieved I'd take a PR.


Fix ls-files for git 2.16

Since GIT version 2.16.0 empty pathspecs as alias to "everything" has
been made illegal.
A more detailed study this change's impact has been made at:
https://github.com/ruby-git/ruby-git/issues/345#issuecomment-369260500
Closes #345

Thanks @tarcinil I've rebased from master so Github can FF merge. Could you have another look?


Create about page component - Vue

Create About page component - Vue
🚀 Goal
Create an About page component in Vue that provides information about the Decentralized Web App (DWA) starter, mirroring the content and structure of the existing React implementation.
🤔 Background
We need to implement the About page for our Vue.js DWA starter. This page should display information about the DWA Starter, explaining what a DWA is and why a Progressive Web App (PWA) is used.

This is part of our larger project to create a Vue.js DWA starter. See our main issue here for the full context and list of all related tasks.

Important: For reference, please see the DWA React Vite starter app. While the implementation details will differ for Vue, this example provides a good overview of the structure and functionalities of a DWA.

🔑 Tasks and Acceptance Criteria

[ ] Create an AboutPage.vue component
[ ] Implement the following content structure:

[ ] Main title (h1): "DWA Starter Vue"
[ ] Paragraph: "Decentralized Web App: it's a Web5 Progressive Web App."
[ ] Subtitle (h2): "Why PWA?"
[ ] Paragraph: "It's a perfect match with Web5 DWNs since a PWA can work offline and DWN has a synced local storage."

[ ] Ensure proper spacing between elements (similar to the 'space-y-4' class in the React version)
[ ] Style the component using Tailwind CSS to match the existing design
[ ] Ensure the layout is responsive and looks good on various screen sizes

🌟 Resources

Vue.js Documentation
Tailwind CSS Documentation
DWA React Vite Starter App (for reference)

Getting Started

Comment ".take" on this issue to get assigned
Fork the repository and create a new branch for this task
Follow the tasks outlined above
Submit a pull request with your changes
Respond to any feedback during the review process

Questions?
If you have any questions or need clarification, please comment on this issue or join our Discord community.
Happy coding! 🎉

.take


Deal with jumping into the middle of the app

We're having issues if an owner is logged in and goes straight to (for example) the add note page from a new tab

Jumping to the add-note page without going through the Owner DoorBoard page first makes the add-note page not work. Pushing the 'add note' button does nothing, however the cancel button will redirect you. This seems to only happen when you jump in from a new tab that has not gone to the Owner DoorBoard previously.


FlutterMethodChannel may cause memory leak in iOS

See FlutterChannels.mm
FlutterBinaryMessenger is strongly referenced in FlutterMethodChannel. If the FlutterBinaryMessenger is a FlutterViewController, then this channel should be strongly referenced so that it can work, as the result the FlutterViewController is strongly referenced too.  There is no callback for the controller finally releasing so that I can remove this channel.
Is that FlutterBinaryMessenger in FlutterMethodChannel supposed to be weak reference.

I think this will be fixed by: https://github.com/flutter/engine/pull/6879

fixed in https://github.com/Natoto/engine/tree/fix_engine_memory_leak

Closing this. Following up on #8038.

I faced this problem.
Sould I watch https://github.com/flutter/engine/pull/8038 ?

I'm a bit confused about how you've created this cycle.  You might be able to avoid it by creating a different class that implements FlutterBinaryMessenger.  Could you provide a little sample code that shows the creation of the cycle?

My understanding from the bug description is that the cycle is (FlutterEngine *-- FlutterMethodChannel *-- FlutterViewController *-- FlutterEngine).  FlutterEngine has a handful of channels, all of them created here: https://github.com/flutter/engine/blob/93452747fcb791d73c9c548e74db382fcc39d772/shell/platform/darwin/ios/framework/Source/FlutterEngine.mm#L213
Since FlutterEngine is creating them and they aren't using the FlutterViewController and they are all readonly; I don't think currently this cycle is able to be created.  Closing bug until further evidence or clarification.

Let's discuss this some more tomorrow

I reopened this because I thought I had a local reproduction.  Sitting with @gaaclarke, I'm not actually able to reproduce it anymore.
Can anyone who has been invovled in this provide a simple reproduction for us to work on?  If not, I think we can assume this has either been fixed, or it won't result in correct usage of the API.

(What would be ideal is a test case in dev/integration_tests/ios_add2app that fails without this being fixed).

I may have figured out what this bug is referring to.  I've written up a UINavigationController that will push a FlutterViewController onto its stack.  When the FlutterViewController is popped it is not deleted immediately.  The FlutterEngine and the channel both have retains on the FlutterViewController.
I was able to force the FlutterViewController to dealloc by clearing out the channel and the engine's view controller: https://gist.github.com/gaaclarke/dd650342fba18ea640c7b3923995cc7d
I'm not sure what we want to do about this yet, but there is the example to get the FlutterViewController to dealloc in the meantime.

Ideally the inner FlutterViewController should free itself as soon as it pops (rather than its parent, which owns the FlutterEngine) popping.
Is this not an issue anymore if our primary doc had people pass the flutterEngine into https://gist.github.com/gaaclarke/dd650342fba18ea640c7b3923995cc7d#file-gistfile1-txt-L35?

@xster Yes, if we use the FlutterEngine as the binary messenger we don't have to do any of the fiddling with the channel, just calling [flutterEngine setViewController:nil] is sufficient to get the FlutterViewController to dealloc.

After https://github.com/flutter/engine/pull/9347 channels still leak, but they won't be holding onto FlutterViewControllers anymore.  So, even passing in the FlutterViewController as the binary messenger, you'll be able to dealloc the FlutterViewController (assuming your Engine still isn't referencing it).

fixed by #9329