AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK' | Azure

ERROR! Unexpected Exception, this is probably a bug: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
the full traceback was:

Traceback (most recent call last):
  File "/usr/local/bin/ansible-galaxy", line 104, in <module>
    mycli = getattr(__import__("ansible.cli.%s" % sub, fromlist=[myclass]), myclass)
  File "/usr/local/lib/python3.6/dist-packages/ansible/cli/galaxy.py", line 25, in <module>
    from ansible.galaxy.api import GalaxyAPI
  File "/usr/local/lib/python3.6/dist-packages/ansible/galaxy/api.py", line 28, in <module>
    from ansible.module_utils.urls import open_url, prepare_multipart
  File "/usr/local/lib/python3.6/dist-packages/ansible/module_utils/urls.py", line 115, in <module>
    from urllib3.contrib.pyopenssl import PyOpenSSLContext
  File "/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in <module>
    import OpenSSL.SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1550, in <module>
    class X509StoreFlags(object):
  File "/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 1570, in X509StoreFlags
    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK
AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'

TASK [required packages] *******************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "Traceback (most recent call last):\n  File \"/root/.ansible/tmp/ansible-tmp-1651012355.0121708-9039-74068407239762/AnsiballZ_apt.py\", line 100, in <module>\n    _ansiballz_main()\n  File \"/root/.ansible/tmp/ansible-tmp-1651012355.0121708-9039-74068407239762/AnsiballZ_apt.py\", line 92, in _ansiballz_main\n    invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n  File \"/root/.ansible/tmp/ansible-tmp-1651012355.0121708-9039-74068407239762/AnsiballZ_apt.py\", line 41, in invoke_module\n    run_name='__main__', alter_sys=True)\n  File \"/usr/lib/python3.6/runpy.py\", line 205, in run_module\n    return _run_module_code(code, init_globals, run_name, mod_spec)\n  File \"/usr/lib/python3.6/runpy.py\", line 96, in _run_module_code\n    mod_name, mod_spec, pkg_name, script_name)\n  File \"/usr/lib/python3.6/runpy.py\", line 85, in _run_code\n    exec(code, run_globals)\n  File \"/tmp/ansible_apt_payload_cprt99gy/ansible_apt_payload.zip/ansible/modules/apt.py\", line 327, in <module>\n  File \"<frozen importlib._bootstrap>\", line 971, in _find_and_load\n  File \"<frozen importlib._bootstrap>\", line 955, in _find_and_load_unlocked\n  File \"<frozen importlib._bootstrap>\", line 656, in _load_unlocked\n  File \"<frozen importlib._bootstrap>\", line 626, in _load_backward_compatible\n  File \"/tmp/ansible_apt_payload_cprt99gy/ansible_apt_payload.zip/ansible/module_utils/urls.py\", line 115, in <module>\n  File \"/usr/lib/python3/dist-packages/urllib3/contrib/pyopenssl.py\", line 46, in <module>\n    import OpenSSL.SSL\n  File \"/usr/lib/python3/dist-packages/OpenSSL/__init__.py\", line 8, in <module>\n    from OpenSSL import crypto, SSL\n  File \"/usr/lib/python3/dist-packages/OpenSSL/crypto.py\", line 1550, in <module>\n    class X509StoreFlags(object):\n  File \"/usr/lib/python3/dist-packages/OpenSSL/crypto.py\", line 1570, in X509StoreFlags\n    CB_ISSUER_CHECK = _lib.X509_V_FLAG_CB_ISSUER_CHECK\nAttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

Just googling around for this error, and this issue came up in my results.
https://serverfault.com/a/1099630/228866
For me, python 3.8, upgrading pyopenssl to 22.0.0 fixed it.

Just googling around for this error, and this issue came up in my results.
https://serverfault.com/a/1099630/228866
For me, python 3.8, upgrading pyopenssl to 22.0.0 fixed it.

I figured python 3.8 would fix. Is that something that can be done via the playbook? I know right now it's also installing python3.6-pip.

I don't even know what this project is ... I was just googling for the error and found this issue.
The serverfault issue I think also shows some solutions without upgrading to to python3.8.
https://github.com/pyca/cryptography/commit/3fb93cfde75d073a91bc4a73a51f62962092501e

This is likely due to a non-working version of the py openssl lib being pulled in, have you tried it lately? Please reopen this ticket if there's still a problem.

This an issue @chadgeary please re-open. Using Azure with Ubuntu 18.04 version 18.04.202209020

I was able to workaround the Python cryptographic error as mentioned in my comment above by pinning the package version as mentioned in https://github.com/ansible/ansible/issues/77816
Only run command this if using Python version 3.6!!
pip3 install "cryptography>=3.4.7,<37.0.0"

fixed in
https://github.com/chadgeary/cloudblock/pull/71


Script need to be root for a trusted result !!!

As NonRoot User, the target is not vulnerable, as root it is:
user@server:/tmp$ python propane.py

  proFTPd Arbitrary File Read Write w/ Possible Code Execution (CVE-2015-3306)
                      Author: nootropics<EMAIL_ADDRESS>

[*] Connected to localhost:21
[-] Target doesn't appear to be vulnerable!
user@server:/tmp$ sudo python propane.py

  proFTPd Arbitrary File Read Write w/ Possible Code Execution (CVE-2015-3306)
                      Author: nootropics<EMAIL_ADDRESS>

[*] Connected to localhost:21
[+] Target is vulnerable!

Can you add a warning for nonRoot calls?

can not reproduce.. some calls told me I'm vulnerable, the most I'm not... so not depend on root, sorry!


CacheSize is type int, but should be uint32

In Pilosa, the CacheSize is a uint32. In go-pilosa it's an int. At this point, changing it breaks the go-pilosa API, but I wanted to ticket it just to keep track of it.

or uint64??


Add tests for ASIC flow with ASAP7

From what I see, when it comes to ASAP7 support in bazel_rules_hdl the tests cover only the synthesis step:
https://github.com/hdl/bazel_rules_hdl/blob/e30c65c618dabffdcdeb45ad66e27fbaa2dc573e/synthesis/tests/BUILD#L71-L78
I would be good to add tests that will run place_and_route and gds_write flows with the results from verilog_counter_asap7_synth as input.
I started work on adding this but I encountered errors in Clock Tree Synthesis. Looks like there are problems with placing FILLER cells, here is the log:
[INFO ORD-0030] Using 12 thread(s).
[INFO CTS-0049] Characterization buffer is: BUFx4_ASAP7_75t_R.
[INFO CTS-0039] Number of created patterns = 11880.
[INFO CTS-0084] Compiling LUT.
Min. len    Max. len    Min. cap    Max. cap    Min. slew   Max. slew
2           8           1           34          1           64
[WARNING CTS-0043] 1584 wires are pure wire and no slew degradation.
TritonCTS forced slew degradation on these wires.
[INFO CTS-0046]     Number of wire segments: 7500.
[INFO CTS-0047]     Number of keys in characterization LUT: 1744.
[INFO CTS-0048]     Actual min input cap: 1.
[INFO CTS-0007] Net "clk" found for clock "core_clock".
[INFO CTS-0010]  Clock net "clk" has 4 sinks.
[INFO CTS-0008] TritonCTS found 1 clock nets.
[INFO CTS-0097] Characterization used 1 buffer(s) types.
[INFO CTS-0027] Generating H-Tree topology for net clk.
[INFO CTS-0028]  Total number of sinks: 4.
[INFO CTS-0090]  Sinks will be clustered based on buffer max cap.
[INFO CTS-0030]  Number of static layers: 0.
[INFO CTS-0020]  Wire segment unit: 20000  dbu (5 um).
[INFO CTS-0023]  Original sink region: [(91411, 144720), (96595, 166320)].
[INFO CTS-0024]  Normalized sink region: [(4.57055, 7.236), (4.82975, 8.316)].
[INFO CTS-0025]     Width:  0.2592.
[INFO CTS-0026]     Height: 1.0800.
[WARNING CTS-0045] Creating fake entries in the LUT.
 Level 1
    Direction: Vertical
    Sinks per sub-region: 2
    Sub-region size: 0.2592 X 0.5400
[INFO CTS-0034]     Segment length (rounded): 1.
    Key: 7500 outSlew: 2 load: 1 length: 1 isBuffered: false
[INFO CTS-0032]  Stop criterion found. Max number of sinks is 15.
[INFO CTS-0035]  Number of sinks covered: 4.
[INFO CTS-0018]     Created 3 clock buffers.
[INFO CTS-0012]     Minimum number of buffers in the clock path: 2.
[INFO CTS-0013]     Maximum number of buffers in the clock path: 2.
[INFO CTS-0015]     Created 3 clock nets.
[INFO CTS-0016]     Fanout distribution for the current clock = 2:2..
[INFO CTS-0017]     Max level of the clock tree: 1.
[INFO CTS-0098] Clock net "clk"
[INFO CTS-0099]  Sinks 4
[INFO CTS-0100]  Leaf buffers 0
[INFO CTS-0101]  Average sink wire length 25.68 um
[INFO CTS-0102]  Path depth 2 - 2
[INFO RSZ-0058] Using max wire length 294um.

[INFO RSZ-0041] Resized 1 instances.
[WARNING RSZ-0062] Unable to repair all setup violations.
[INFO RSZ-0046] Found 4 endpoints with hold violations.
[WARNING RSZ-0066] Unable to repair all hold violations.

[WARNING DPL-0005] Overlap check failed (6369).
 FILLER_0_1 overlaps FILLER_0_0
 .
 .
 .
 FILLER_35_183 overlaps FILLER_35_181
[ERROR DPL-0033] detailed placement checks failed.

CC @proppy

It is possible to finish the flow by moving the check_placement step before filler_placement so that the check won't fail. However the result GDS looks a lot different than one I got straight from ORFS flow. PDN looks quite different and the filler cells are placed only along the power rails and are limited to only one cell type: FILLERxp5_ASAP7_75t_R while in ORFS flow there are more cell types and are placed uniformly throughout the whole die: FILLERxp5_ASAP7_75t_R, FILLER_ASAP7_75t_R, DECAPx1_ASAP7_75t_R, DECAPx2_ASAP7_75t_R, DECAPx4_ASAP7_75t_R, DECAPx6_ASAP7_75t_R, DECAPx10_ASAP7_75t_R.
I noticed that ASAP7 version used in bazel_rules_hdl is very old (The-OpenROAD-Project/asap7/157c92cf) which could be the cause of the differences between layouts.
In various places in PDK and bazel_rules for ASAP7 there are also scaling operations (multiply by 4) - I'm not sure what is their purpose but it is also possible that causes overlapping after filler_placement. I will try to bump the PDK and investigate this scaling.

ASAP7 comes with 2 variants of the technology: regular and scaled (4 times bigger). However, ASAP7 does not provide all required files for the regular variant (e.g. technology LEF), all files required for RTL->GDS flow are available only for the scaled variant.
ORFS uses regular variant. It doesn't have ASAP7 pinned as submodule or anything like that. Instead of that, at some point in history, the most important files from this PDK were imported straight into ORFS repository. Missing files for the regular variant were imported from scaled variant and manually converted to match regular variant. Then those files were updated with changes from upstream ASAP7 repository and probably with some additional external changes. Because of that it is hard to tell which version of ASAP7 is the closest to one used in ORFS.

Is there already an issue in the ASAP7 repo to discuss reconciling the two version? It sounds like we should be able to import ORFS version in the ASAP7 repo since it's incomplete there.

I will attach here GDS files for comparison.

I think it would also be useful to compare the TCLs generated by bazel_rules_hdl with the ones coming from ORFS for ASAP7, to see how the two flows differ.

Is there already an issue in the ASAP7 repo to discuss reconciling the two version? It sounds like we should be able to import ORFS version in the ASAP7 repo since it's incomplete there.

There was https://github.com/The-OpenROAD-Project/asap7/issues/19 which touched the problem. There is a comment there that states the files are missing due to licensing issues.

I think it would also be useful to compare the TCLs generated by bazel_rules_hdl with the ones coming from ORFS for ASAP7, to see how the two flows differ.

I will check  TCL scripts, compare them and post the results.

@QuantamHD for visilibility

flow still fails on placement_check

do you mean check_placement?

for some reason the placement check wont fail in case of ORFS flow.

did you already compare the *_place_and_route_commands.tcl file generated in bazel-bin with the ORFS TCL scripts in https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/master/flow/scripts?

do you mean check_placement?

Yes, sorry

did you already compare the *_place_and_route_commands.tcl file generated in bazel-bin with the ORFS TCL scripts in https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts/tree/master/flow/scripts?

In bazel_rules_hdl filler cell placement is done in the same script as clock tree synthesis.
clock_tree_synthesis command has additional -post_cts_disable arg which seems to be obsolete, while in ORFS there are additional args: -sink_clustering_size, -sink_clustering_max_diameter, -distance_between_buffers and -balance_levels
Then there is set_placement_padding which had different values in bazel flow (-left 2 -right 2) and ORFS (-left 1 -right 1), I tried to set values from ORFS but it didn't change anything.
I will try to use ASAP7 files from ORFS and check this gdstxt feature of klayout

@proppy I was able to finish the flow and pass  check_placement with setup described in https://github.com/hdl/bazel_rules_hdl/issues/172#issuecomment-1651225432 but without specifying more filler cell types in ASAP7 open_road_pdk_configuration (there was only FILLERxp5_ASAP7_75t_R).
Now I will focus on isolating the fix which is probably one of the changes described in the linked comment. Then I will try to answer the question: Why those additional filler cells cause placement check failures in bazel flow?
For that I will compare filler cells definitions from ORFS files with definitions from ASAP7 repository.

In order to enable processing designs targeting ASAP7 PDK and to achieve results similar to OpenROAD-flow-scripts it is required to:

use non-scaled variant of the PDK,
extend the list of the spacer cells available for filler placement stage.

With recent updates to ASAP7:

https://github.com/The-OpenROAD-Project/asap7/pull/54
https://github.com/The-OpenROAD-Project/asap7/pull/57
we are able to use the non-scaled variant of the PDK which is used by default in ORFS.


after entering to interface, when i select category and hit enter i get following error

Scanning the network...
Traceback (most recent call last):
File "./netattack2.py", line 578, in
main()
File "./netattack2.py", line 575, in main
handle_option(option)
File "./netattack2.py", line 79, in handle_option
host_scan(False)
File "./netattack2.py", line 213, in host_scan
hostscan.do_scan(ip_range)
File "/home/code/Desktop/hacking/netattack2/src/scan.py", line 43, in do_scan
nm = nmap.PortScanner()
File "/usr/lib/python2.7/dist-packages/nmap/nmap.py", line 192, in init
raise PortScannerError('nmap program was not found in path')
nmap.nmap.PortScannerError: 'nmap program was not found in path'

Hello,
python-nmap relies on the pure nmap.
You probably don't have nmap installed, just python-nmap which can't do the work on its own.
You just type:
apt-get install nmap
If you are not on Debian, use another packet manager.
However, this should do the job.
Thank you for reporting, I will add this to the requirements.
Greetings,
~ chrizator

I have already install the nmap.I think this is not the problem .I am using ubuntu backbox 4.7

Seems like the path nmap is installed in can't be detected. Could you please send me the output of
locate nmap
Thanks


Open Neogit for git repository of current buffer

Is your feature request related to a problem? Please describe.
While editing a file which is in another git repository compared to my cwd I want to open :Neogit to show the status of the repository of my current buffer
Describe the solution you'd like
In fugitive the git repository is automatically chosen for the current buffer.
This is such a nice feature and would be awesome to be integrated here as well.

I agree, this would be much more convenient. But you might be able to create a command like this:
    vim.api.nvim_create_user_command(
        "NeogitCWD",
        function()
            require("neogit").open({cwd = vim.fn.expand("%:p:h")})
        end,
        {nargs = 0}
    )

Thanks for the tip! Unfortunately, for me setting cwd argument led to a side-effect of changing working directory globally  for some plugins, so this command worked for me better (I use a tab mode).
vim.api.nvim_create_user_command(
        "Git",
        function()
            local cwd = vim.fn.expand('%:p:h')
            require("neogit").open()
            vim.cmd(":lcd" .. cwd)
        end,
        {nargs = 0}
)


Leaderboard: setup project

Leaderboard: setup project
Learning objectives

Use callbacks and promises.
Learn how to use proper ES6 syntax.
Use ES6 modules to write modular JavaScript.
Use webpack to bundle JavaScript.

Description
In this activity I set up a JavaScript project for the Leaderboard list app, using webpack and ES6 features, notably modules. I developed a working version of the app following a wireframe, but without styling - just focusing on functionality. In the following activities, I will consume the Leaderboard API using JavaScript async and await and add some styling.
General requirements

Made sure that there are no linter errors.
Made sure to use correct Gitflow.
Made sure to document work in a professional way.

JavaScript requirements

Followed the list of best practices for JavaScript.

Here is the preview

Didn't make API calls (I'll do it in the following lesson).
Used ES6 modules, with import and export.

Work and submission mode

I submitted this activity individually.

Appreciation

Thanks for the review 🙂 it means a lot

Thanks @mateo951


Add configuration file

Currently DocPub is being configured with environment variables. Need to replace it with convenient config.
Config name should be .docpub.config
Config should be located in a folder submitted to publish
Minimum required fields:

username: string, name of ZenDesk user from whose name docs would be published
apiToken: string, ZenDesk API token of the user
url: string, zendesk root URL

Do we need to support redefining this options with env variables or CLI args?

.docpub.config doesn't need to be a hidden file.

From Scott:
I suggest there be a required name for it and have the repo's gitignore set to ignore it. Then include a sample one with some instructions on copying it to the "real" config.
I agree, so there is no accidental upload with credentials. Obliviously this apply to devs.

Additional requirements for the config:

Possibility to override each config option with CLI arg
Possibility to override each config option with ENV variable
Priorities: CLI arg > ENV variable > Config entry


A question of source code

Here's why not unify the code format, but instead show a LinkedBlockingQueue for declarations
  LinkedBlockingQueue<Runnable> addConnectionQueue = new LinkedBlockingQueue<>(maxPoolSize);
      this.addConnectionExecutor = createThreadPoolExecutor(addConnectionQueue, poolName + " connection adder", threadFactory, new CustomDiscardPolicy());
      this.closeConnectionExecutor = createThreadPoolExecutor(maxPoolSize, poolName + " connection closer", threadFactory, new ThreadPoolExecutor.CallerRunsPolicy());

This is probably an artifact of the addConnectionExecutor and closeConnectionExecutor having different queue sizes in the past. I'll take a look.


Parametrize IngressClass name

Description
On a K3S kubernetes, the default ingress controller is traefik. It uses a "traefik" IngressClass.
Currently, the Ingress generated by devworkspace-controler is hardcoded to "nginx"
https://github.com/devfile/devworkspace-operator/blob/7e8aa722dfb4f2a168933bc51edb1aedb5b56b85/controllers/controller/devworkspacerouting/solvers/basic_solver.go#L34
Having a parameter to control this name would help to reuse in different K8S.

As a workaround, I created a nginx IngressClass to reroute to traefik
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
  name: nginx
spec:
  controller: traefik.io/ingress-controller

Traefik is now interested in the generated Ingresses but:
time="2023-03-16T16:32:11Z" level=error msg="Error while updating ingress status: failed to update ingress status default/workspace31cb5bbeca574a4d-che-code: Operation cannot be fulfilled on ingresses.networking
.k8s.io \"workspace31cb5bbeca574a4d-che-code\": the object has been modified; please apply your changes to the latest version and try again" namespace=default providerName=kubernetes ingress=workspace31cb5bbeca5
74a4d-che-code

I suspect a race condition around Status: traefik try to update and devworkspace-controller reconcille the Ingress.

Humh... the Status is supposed to be ignored
https://github.com/devfile/devworkspace-operator/blob/7e8aa722dfb4f2a168933bc51edb1aedb5b56b85/pkg/provision/sync/diffopts.go#L91

I did some tries. I suspect something also introduce the field metadata.annotations.field.cattle.io/publicEndpoints. I don't know if this is the issue...

Related to https://github.com/devfile/devworkspace-operator/pull/1143


Spurious error message on encountering trailing whitespace in a multi-line string literal

The following code isn't formatted (which is probably correct[?]) by cargo fmt...
fn main() {
    let a = "I'm followed by two spaces:
           see?";
}

...but emits an error message:
>cargo fmt -- --write-mode=diff
Rustfmt failed at <...>\src\main.rs:2: left behind trailing whitespace (sorry)

This does not seem spurious, in that there is still trailing whitespace. It might be a bit much to expect Rustfmt to fix this, but it could be fixed manually, so the warning seems appropriate.

Ok, that makes sense


html2canvas printing previous render

[ X] You are using the latest version
[ X] You are testing using the non-minified version of html2canvas and checked any potential issues reported in the console

Bug reports:
I'd like to html2canvas print the div when user adds something. My application has an post-it system just like Trello and I'd like to show some preview to the user. But when the user adds an post-it, it's not printed, but what's been printed is the previous render, without the new post-it...
Specifications:

html2canvas version tested with: 1.0.0-rc.5
Browser & version: Opera latest version, Firefox latest version and Chrome latest version
Operating system: Windows 10 pro

Solved. At the end of the day, it was only cache.... :(

i know that it was only cache; but  in case of using in mobile; how can i solve it; there is no control of disable cache in console panel like pc；


HDDS-10260. Fix typos in OM HA documentation

What changes were proposed in this pull request?
There are a few documentation typos/grammatical errors which need to be addressed under OM High Availability section.
Details are mentioned in JIRA
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10260
How was this patch tested?
This is a documentation change and doesn't require testing.

Thanks @sarvekshayr for the fix.


Problems with viewport

Viewports that i am getting from wenv ^. L.widgetKeyMap . at (WidgetKey name) are always Rect {_rX = 0.0, _rY = 0.0, _rW = 0.0, _rH = 0.0}, Is this a bug or i just miss something? I need a way to make some points inside a big scroll, i give them their nodeKey, and then i am trying to get a viewport of one of them to send it with ScrollTo. Could you please help ?

Awesome! Thank you so much. The widgetKeyMap property of WidgetEnv should not have the complete WidgetNodeInfo structure, was the problem.

Great! I'll close the issue, then. Please re-open if needed. Thanks!


[1.23.29] [FEAT] Reduce Abyssal Gear to 2x2

Is your feature request related to a problem? Please describe.
Currently Abyssal Gear is 3x3 which is a really awkward size, since most things that are larger than 1 on both sides are multiples of 2
Describe the solution you'd like
2x2 Abyssal Gear

Is it that bad? You can always pad it with battery, toolbelt, or belt immunity equipment.
Additionally, diving gear stacks so using a 2x2 grid allows for an even size.

It is very inconvenient since the abyssal gear can only be used on Maraxsis. Whenever you go to or from Maraxsis, you need to juggle your loadout a fair amount since things don't fit neatly, and when you go back you have to get into a sub (to avoid drowning) and refit your loadout.
If it were 2x2, you would just leave it in and sacrifice a shield, or a PDL and not think about it. Otherwise it's such a hassle than players might just forgo using it at all and just use subs when they visit Maraxsis.
Permit me to ask you the reverse question, is it so bad and unbalanced to have it 2x2?


Screenshot not shown in embedded docs

Describe the bug
In AdvantageScope docs on Windows from WPILib build (beta 4), the example screenshot doesn't show
To Reproduce
Steps to reproduce the behavior:

Click on 📖

Expected behavior
Example AdvantageScope screenshot should be shown
Screenshots

Version (required):

After loading AdvantageScope a second time, the screeenshot loaded

This should be fixed now. It looks like there was an edge case on startup where the renderer didn't always receive the platform information before trying to set up image URLs.


TTS language

Hi George!
Is there a possibility to somehow set a language for TTS? My HomePod mini is set up for the Russian language but TTS plays only in English.

In configuaration.yaml:
tts:
  - platform: google_translate
    language: "ru"

Great, thank you!


Update Primer to v10.6.1

Coverage remained the same at 81.495% when pulling 044754bb9f70ba9a31a7da9fe38b7cc8ae78b859 on update-primer into c6421dcd49dedc677315140ecd5ceda98a7df6f9 on master.


Find text in embedded svg

Embedded svg images in web pages may contain meaningful text, e.g. in diagrams. It would be great if pagefind was able to find also this text.
In the example svg file attached visible text should be found: "unboxed text", "shape internal text", "shape hyperlink", "hyperlink inside".

Good suggestion — I'll look at the best way to achieve this. Right now SVG elements are blanket disallowed:
https://github.com/CloudCannon/pagefind/blob/d6bcff2c725dd7ac9f2d44cc71a46ba98814a15d/pagefind/src/fossick/parser.rs#L27-L30
The two best options I can see would be to add an option for the CLI — currently exclude-selectors is available which adds to that list, but an include-selectors option could be added to override it, or a --strict-exclude-selectors could be added to make the existing exclude-selectors an override rather than a merge.
The second option would be a data attribute that can include individual elements, so you would tag something like:
<svg data-pagefind-index > ... </svg>

to include a single SVG.
What would be the most ergonomic option for you?

The most ergonomic option for my use case (most of my svg should be indexed) was a CLI option, because I cannot simply inject the data attribut with SSG means, since the svg code is generated by an external drawing tool.
Maybe it would be good to be able control default behaviour via CLI, and additionally to be able to add exceptions for certain individual svg code blocks. (for my use case: "pagefind, please ignore this svg").


Importance of sorting sync between network API and DB query?

Ok, so this is more of a question:
In the GithubService, the network query is done as follows:
/**
     * Get repos ordered by stars.
     */
    @GET("search/repositories?sort=stars")
    suspend fun searchRepos(
            @Query("q") query: String,
            @Query("page") page: Int,
            @Query("per_page") itemsPerPage: Int
    ): RepoSearchResponse

Then, in the RepoDao, the DB (Room) query is done as follows:
@Query("SELECT * FROM repos WHERE " +
   "name LIKE :queryString OR description LIKE :queryString " +
   "ORDER BY stars DESC, name ASC")
    fun reposByName(queryString: String): PagingSource<Int, Repo>

Obviously, it seems important that these two queries are "in sync", so that both of them end up with the exact same ordering of the Repo's, otherwise you may request a new page, but the API may return data that doesn't result in more data for the corresponding DB query.
However, what I miss in the documentation is how important this is: it seems vitally important, but it's just sort of assumed that you understand this. But since the backend may use different internal rules for ordering (apparently it already has some hidden rule where it first orders by stars and then by name, which is not explicitly specified in the network query), it seems like it may not always match up 100%. If so, what's the resulting behavior of the Paging library?
It would perhaps make more sense if the exact backend ordering was used to sort on in the local DB query, rather than relying on "luck". Could you change the codelab to include this information?

@niekvse all things being equal, the sorting in the API should be 100% independent of the sorting in the the DB query. When the RemoteMediator is used, the results are not fed directly to the DB, instead they are persisted to disk. This causes the paging source to be invalidated, and another database query to be invoked. The DB is always the source of truth.

One simple rule follows from your words - when you working with PageMediator, the storage and fetch data from Room should be organized BY DEVELOPER HIMSELF in such a way that receiving new data from remote API (by PREPEND/APPEND call) never changes the current dataset in PagingState, but creates a new one solely by adding data to its start/end. Considering that not everyone here are experienced developer, the lack of focusing on this condition also puzzled me. The existing documentation for codelab and most of the articles on resources like medium give newbie like me the false impression that all that is needed to work with the Paging library is just to get next page from remote API and save it to Room as it. As the previous speaker pointed out, this is not entirely correct.

@alammer I'm not quite sure I follow. Are you saying that there should be a callout that Room queries should be sorted?

Sorry, for my english :) I think this guy will be able to convey to you the essence of my concern in a more accessible way :)
https://www.bornfight.com/blog/android-paging-3-library-with-page-and-limit-parameters/
Paging using item keys seems defaultish


MWPW-135814 Add underline in static link

Link and text is not differentiable in case of static links. Currently the default behaviour of links involve no-underline with underline on hover. When static link class is applied the text and links have same color and no underline makes it difficult to differentiate from the text.
Adding underline in static link by default to be in-sync with notification static link style of a.static.(https://github.com/aishwaryamathuria/milo/blob/main/libs/styles/styles.css).
Resolves: MWPW-135814
Test URLs:

Before: https://main--milo--adobecom.hlx.page/drafts/mathuria/aside/documentation/sectionmetadatadoc?martech=off
After: https://staticlink--milo--aishwaryamathuria.hlx.page/drafts/mathuria/aside/documentation/sectionmetadatadoc?martech=off

I think on hover the underline should disappear.
@ryanmparrish Any thoughts from the Consonant side?

@aishwaryamathuria @rgclayton, I'm checking with the consonant team and will let you know exacts. My gut says we should use the var blue-hover color for the :hover style and keep the underline.

@aishwaryamathuria  @rgclayton  - I spoke with the consonant team and they want to follow the same static link guidelines from spectrum. Static links have inherit text color, are underline and the only :hover style is the cursor is a pointer. So w/ that said this is GTG as is. LMK if you have any questions/concerns. Thanks


fix(TFD-836): correct tWindow maven url

Please check if the PR fulfills these requirements

[x] The commit message follows Talend standard
[ ] Tests for the changes have been added (for bug fixes / features)

What is the current behavior? (You can also link to an open issue here)
wrong tWindow maven url provided
What is the new behavior?
correct it
Does this PR introduce a breaking change?

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

Pull request test result: failure :x:

The build failed on an unrelated, so I corrected and pushed the correct mvn uri for all of the processing components.  (I do not think this constant is important for these components, however).

Pull request test result: success :star:


[Research] - Research on possibilities to communicate between plugins

[x] Description created
[x] Reviewed by peer:
[x] Prioritised

Description
Our plugin have to communicate with our other plugins to send data between them. With this issue we want to find and discuss solutions to meet this requirement.
Sub-Tasks
### Tasks
- [x] Search the [VS Code API](https://code.visualstudio.com/api/references/vscode-api) for possible solotions
- [ ] Determine how we want to implement it

There are two ways to communicate between extensions:

By using commands. One extension can invoke the commands of the other extension.
By using extension APIs. I made an example for that.


Update package infrastructure

This PR updates some of the package infrastructure.  It's motivated by the fact that I couldn't run pytest directly within the package.  That's fixed now.

Merging since this is a straightforward update from the package template.


Confusing instructions

On step 5 you mention and set that as your executable path in this installed package's configuration. but as a new Atom user I don't know where to go to do that.
I tried stumbling around and found 'Open your config' which had packages and I opened yours and found a config which I plugged in and it now works. Adding this to the readme would make the UX way better.
BTW thanks for this great package!! :beers:

I figured it out... I didn't see the settings next to the installed packages where the checkboxes and inputs appear. Doh! Closing this.


Can a windows AD restict connection on userprincipalname and block samaccountname

Laravel Version: 5.4.30
Adldap2-Laravel Version: 3.0.5
PHP Version: 7.0

Description:
I have followed the installation from scratch tuto https://github.com/Adldap2/Adldap2-Laravel/blob/master/docs/quick-start.md (I use username instead of email field in DB and form) and I'm able to authentified user with userprincipalname.
But no way to authenticate user with their samaccountname. I have the standard "These credentials do not match our records." message of laravel like if the password is wrong.
So do you think that Windows AD can block authentication with other thing than userprincipalname?
Steps To Reproduce:
In adldap_auth.php, I simply change in the 'usernames' section
'ldap' => 'userprincipalname',

by
'ldap' => 'samaccountname',

and in the sync_attributes section
'username' => 'userprincipalname',

by
'username' => 'samaccountname',

And I clean users table before to try to logon.
Thanks for your help

Hi @devplanete, the userprincipalname is suggested as the attribute to use because it includes your domain suffix which is needed for authentication but is also usually the users email address.
For example, if my base dn is dc=example,dc=com, then my userprincipalname is<EMAIL_ADDRESS>To resolve your issue using the samaccountname, add your domain suffix to the config/adldap.php file under the account_suffix option:
'account_suffix' =><EMAIL_ADDRESS>
Closing this as it should resolve your issue, but if it doesn't please let me know, thanks!

Yes! you solve my issue. Thanks :)

Great! No problem at all :).


Ability to "minimize" the server and put it in standby mode

Ability to "minimize" the server and put it in standby mode

This is the v1 repo. Did you mean this for v2?

D'oh...yesssss, thanks!


IngredientBasedRecipes

Describe the project
A clear and concise description of the project you are going to add to this repository.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[x] New Project

Additional context
Add any other context or screenshots about the project here.
Screenshots

If applicable, add screenshots to help explain your problem.

Kindly Assign it to me.

@yashkhandelwal2203 This project is already present in the repo.
If you have any idea or changes for the existing project you can create an issue for that

But the project that was present is different from mine. In my project you have to search all the recipes that can be made from a particular ingredient whereas in the existing one you have to search the recipes name.

In my project you have to just place the ingredients name and all the recipes that can be made from that ingredient will be shown.

In my project you have to just place the ingredients name and all the recipes that can be made from that ingredient will be shown.

Maybe you can add that as an enhancement to the existing project? If you're interested in doing so, please create a new issue stating all the changes made/features added. @yashkhandelwal2203

I'm closing this issue.


Support VR Mode

Issue
#137
Details
Support VR Mode

Coverage increased (+0.6%) to 91.33% when pulling 56334a322eeb2f22322aa1bda49ae873440d09a3 on VRMode#137 into a76e0b38096f9e175b00ad3297b59960196de496 on 3.0.0-rc.


Skipping tests

Are there already some thoughts on how the skipping should work?
More a blacklist or a whitelist of browsers?
Jest currently does something like that in their docs, but without adding custom data (for us browsers).
test.skip('it is not snowing', () => {
  expect(inchesOfSnow()).toBe(0);
});

describe.skip('my other beverage', () => {
  // ... will be skipped
});

Maybe something like that
test.skip(["firefox"], 'it is not snowing', () => {
  expect(inchesOfSnow()).toBe(0);
});

describe.skip("firefox", 'my other beverage', () => {
  // ... will be skipped
});

(either an Array or browsers type directly)
Also an interesting mode would be to configure, if the multiple browsers should run in parallel or in order. If its in order, then as proposed in #9 a setup hook can be used to e.g. reset the database.

Available in the new runner now.


Resources references for AMP controller

Issue #, if available:

https://github.com/aws-controllers-k8s/community/issues/1529

Description of changes:
Adding Workspace as a reference in AlertManagerDefinition, RuleGroupsNamespace and LoggingConfiguration
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Thank you Jay :) !

This PR needed to be rebased after merging this change https://github.com/aws-controllers-k8s/prometheusservice-controller/pull/38

Thank you @A-Hilaly !


Re-add ESM & CJS dual module support

What is the purpose of this pull request?

[ ] Documentation update
[ ] Bug fix
[ ] New feature
[x] Other, please explain:

What changes did you make? (provide an overview)
Re-add CJS support which dropped in v3.0.0-beta.10.
But ESM & CJS dual module support exists <= v3.0.0-beta.9.
Which issue (if any) does this pull request address?
https://github.com/node-fetch/node-fetch/issues/1226
https://github.com/node-fetch/node-fetch/issues/1230
Is there anything you'd like reviewers to know?
ESM & CJS dual module support exists in v3.0.0-beta.9.
As I'm a big fans of ESM, I understand CJS is dropped.
But I don't think it's time to drop CJS support.
PS: As may not re-add CJS, I use esbuild for easy mainteinance.
https://github.com/node-fetch/node-fetch/blob/38839c53bd417cef440757265f75c8371d4c51e6/package.json#L9
https://github.com/node-fetch/node-fetch/blob/38839c53bd417cef440757265f75c8371d4c51e6/package.json#L26
https://github.com/node-fetch/node-fetch/blob/38839c53bd417cef440757265f75c8371d4c51e6/rollup.config.js#L8

This is essentially a duplicate variant of PR #1227

@jimmywarting
Sorry, I did not see that pull, as jest fail, I try to fix that ASAP.
And please consider re-add cjs support, although I'm a big fan of ESM, but that whole ecosystem haven't reached there yet.
So, I think might be better to support both nowadays.

@loynoir did you read the discussion in #1227? e.g. https://github.com/node-fetch/node-fetch/pull/1227#issuecomment-888998279
Feel free to lay out arguments and continue the discussion there ☺

Locking b/c it's nicer to keep the discussion in one place.
(We still keep a open mind and looking for a solution - it dose not mean we will overlook this PR)
Feel free to keep pushing commits and move the discussion to #1227 where most of the discussion is already happening


program hung when trying to use the result of ConditionalAccumulator's take_grad method after The dequeue operator

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes.
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 14.04 & Windows 10
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 1.2.1
Python version: 3.5
Bazel version (if compiling from source):
CUDA/cuDNN version:
GPU model and memory:
Exact command to reproduce:

Describe the problem
I tried to extend SyncReplicasOptimizer where I need to use the result of ConditionalAccumulator's take_grad method after sync_token_queue.dequeue(), the program blocked. Then I looked into the code and thought that it might be caused  by  the step state in ConditionalAccumulator, but it still blocked.
Source code / logs
I could modify the official example a bit to reproduce the problem.
The cmds I used are as below：
python mnist_replica.py --job_name ps --task_index 0 --sync_replicas True
python mnist_replica.py --job_name worker --task_index 0 --sync_replicas True
python mnist_replica.py --job_name worker --task_index 1 --sync_replicas True
Where mnist_replica.py only changed a line of importing module, link.
And I edited sync_replicas_optimizer.py a bit, two versions in link1 and in link2.

We're trying to move to the dataset API which doesn't have these freezing issues. Typically it's either some racing condition or the eval queue not being started.
@nealwu @mrry @tfboyd do we have plans to convert our examples with the new API? I think that would remove a lot of confusion.

@drpngx I think the freezing issue is probably in the tf.train.SyncReplicasOptimizer rather than the queue-based input pipeline.
@josh11b and @isaprykin are working on a replacement that shouldn't have the same problems.

It has been 14 days with no activity and this issue has an assignee.Please update the label and/or status accordingly.

Nagging Assignee: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 15 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 170 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 185 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 200 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 215 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 230 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 245 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Sorry for the lack of updates, we do not at this time have a direct replacement for SyncReplicaOptimizer. On one machine you can use tf.contrib.distribute.MirroredStrategy to do sync replication across multiple GPUs. Further sync replication options will be coming, but I'm not certain of the time frame.

Nagging Assignee @josh11b: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 29 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Nagging Assignee @josh11b: It has been 44 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


nimble/ll: Add restriction when enabling periodic advertising

Periodic advertising requires extended advertising to be enabled.

@sjanc I checked it again and CDB is off by default; this fixes issue when CDB is on. Could you change commit title?


enlargen modal

Kelly: Could we perhaps size the modal popouts to a larger proportion of the screen for ease of reading on different devices?

Looks to be coming from modal class modal-lg in line 17 of infographiq.js and looks limited on a desktop to maximum 900 pixels wide.

Hmm... when looking on a mobile device, the width is max so maybe Kelly means the font should be bigger and more legible?

Moving to icebox until further response is heard from Kelly on this issue. Here's the relevant email exchange:

KELLY: Jai, yeah I agree that the modal pop outs are already pretty big. One teacher requested that so we wondered if she was basing the request on the size on a tablet. The sizes on the desktop and phone look pretty good to me!

JAI: If you want to ask the teacher to send a screenshot of the issue that is coming up for her (as well as a note of what kind of tablet she is using), that would be very helpful.


Make module walk only use RPM

All this kind of stuff: https://github.com/ReClassNET/ReClass.NET/blob/master/NativeCore/Windows/EnumerateRemoteSectionsAndModules.cpp#L8
make it use RPM only. This way stuff like drivers can get away with implementing a single method. Applies to some other native classes i think too

You talk about reimplementing VirtualQueryEx, CreateToolhelp32Snapshot, ...?

 CreateToolhelp is probably easier to pull out then virtualquery

Why? What’s the point of this?

This way stuff like drivers can get away with implementing a single method

https://github.com/reactos/reactos/blob/master/sdk/lib/epsapi/enum/modules.c#L30
this might help

check #135


Digeq 115 author validation rules

What
Allows a user to author validation rules for a particular question. All questions have the "required" validation rule as default. Text question also have maximum length. Numeric questions have greater than, less than, equal to and not equal to.
How to test

Check out this branch and run the author application
Create a new questionnaire
Add the various question types, checking you can add the validation rules as required by the story.

Who can review
Anyone apart from @warren-methods

When you toggle the preview - the tabs still display which is from the builder author view, think it's just a question of display noning on that event.

Good spot, will change it

After conversation with everyone, we're going to remove the standard error text box and move the editing of standard required error checks to the validation tab.

:+1:  This looks good to merge BUT let's wait until the Survey runner side is ready as this is a breaking change for our system - merging the two at the same / similar time.

Rebased


Improve renovate config

Pimp our renovate config with more specific rules:

add "untool" as package to the untool monorepo group filter
peerDependencies should be "widened (ie: "react": "15 || 16" instead of upgrading to 16)
devDependencies should be bumped (ie: an update from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>which would normally fall under our version range, should be updated to the new range: "prettier": "^1.1.0")
devDependencies in the root package.json should be auto merged if they are a minor or patch upgrade

Automerging is not going to work: renovatebot/renovate#846

:cry:

Why not restrict renovate to non-office hours any more? This might prevent some conflicts, does it not?

What kind of conflicts are you talking about? I initially enabled this option, to preserve our travis-ci resources, but disabled it now, because there aren't too many PRs being opened anyways (I think renovate already restricts this to max every 2 hours).


schemadiff v1.1 incorrectly reports diff in indexes

a.sql
CREATE TABLE `example` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `foo_id` int unsigned NOT NULL,
  `bar_id` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_example_foo_bar` (`foo_id`,`bar_id`)
) ENGINE=InnoDB;

b.sql
CREATE TABLE `example` (
  `id` int unsigned NOT NULL AUTO_INCREMENT,
  `foo_id` int unsigned NOT NULL,
  `bar_id` int unsigned NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_foo_bar` (`foo_id`,`bar_id`)
) ENGINE=InnoDB;

command
./schemadiff diff --source a.sql --target b.sql

actual output
ALTER TABLE `example` DROP KEY `idx_example_foo_bar`, ADD KEY `idx_foo_bar` (`foo_id`, `bar_id`);

expected output

In all other cases I tried, the diff is semantic only, ignoring the index names. This looks like a bug.

Duplicate of https://github.com/vitessio/vitess/issues/15463
This repo merely facilitates the use of schemadiff library from vitessio/vitess, which is the place to open any schemadiff related issues.


Zipline: Build a Camper Leaderboard - Confusion

I believe Zipline: Build a Camper Leaderboard can be considered buggy because of the confusing instructions.

The contents of the two json files, as linked in the instructions, are of the exact same campers. Shouldn't one be of the top from the past 30 days, and the other of the top from all time?

The information in the json files seems incorrect. There are a large number of campers with 0 points, for example. They do not match the campers in the video, or in the Codepen example.

The instructions are ambiguous. Are we operating on one set of data or two?!

When you says you must use SASS, do you strictly mean SASS only, as opposed to SCSS? I believe the distinction should be made crystal clear.

Hi @alanbuchanan Thanks for pointing out these ambiguities.
We will recommend SCSS, which is the more popular flavor (and the one Bootstrap 4 will use).

You should use the following URLs as endpoint depending on the sort column:
recent: http://fcctop100.herokuapp.com/api/fccusers/top/recent
alltime: http://fcctop100.herokuapp.com/api/fccusers/top/alltime
Then the data is already sorted

You should use the following URLs as endpoint depending on the sort column:
recent: http://fcctop100.herokuapp.com/api/fccusers/top/recent
alltime: http://fcctop100.herokuapp.com/api/fccusers/top/alltime
Then the data is already sorted

I fixed the URLS in the challenge. See pull request #5758. This issue is fixed.


Extract a partial for repeated sections of the applicants show page

The applicant show view has a number of sections for each chunk of applicant information, each wrapped in a bootstrap 4-column div.  It's bit repetetive, and could use some refactoring with one partial that defines the structure.

This actually turns out to be more complicated than it first appeared, and it might not be necessary.  Refactors are always nice, but this doesn't need to be an issue.


ConvNetSharp compare to other Deep Learning frameworks

Hi,
It's great work you made.
How does ConvNetSharp compare to other Deep Learning frameworks like Keras  in the accuracy of the prediction of DNN regression?
Have you done any  tests?
Thanks.

Hi,
I haven't done any comparison with other deep learning frameworks.
That would be interesting to do (especially to detect possible errors in ConvNetSharp) but I currently haven't got much time to do that.
Of course I expect mainstream frameworks to be more correct/accurate/performant.

Hi.
When  I use a small BatchSize ,For example, 100，200, the ConvNetSharp neural network will not converge.
But when I use the frameworks like Keras , and use the same small BatchSize(even 1) and network parameters, the Keras neural network will converge well.
I can't find the reason...

        double[][] traindata = ReadFromCsvFile(@"C:\LD\train111.csv", true);
        double[][] trainout = ReadFromCsvFile(@"C:\LD\out111.csv", true);

        var featurenum = traindata[0].Length;
        var outputnum = trainout[0].Length;

        Net<double> net = new ConvNetSharp.Core.Net<double>();

        net.AddLayer(new InputLayer(1, 1, featurenum));

        net.AddLayer(new FullyConnLayer(128));
        net.AddLayer(new ReluLayer());
        //net.AddLayer(new DropoutLayer(0.1));

        net.AddLayer(new FullyConnLayer(128));
        net.AddLayer(new ReluLayer());
        // net.AddLayer(new DropoutLayer(0.1));

        net.AddLayer(new FullyConnLayer(outputnum));
        net.AddLayer(new RegressionLayer());

        // Training
        int maxEpochs = 150;
        int nBatchSize = 100;//traindata.Length;

        //train input
        var featuresPerRow = traindata[0].Length;

        var flattenedInput = new double[traindata.Length * featuresPerRow];
        for (int i = 0; i < traindata.Length; i++)
        {
            var row = traindata[i];
            for (int j = 0; j < row.Length; j++)
            {
                flattenedInput[(i * featuresPerRow) + j] = row[j];
            }
        }
        var volumetrain = BuilderInstance.Volume.From(flattenedInput, new Shape(1, 1, featuresPerRow, traindata.Length));

        //train output
        var featuresPerRowOut = trainout[0].Length;

        var flattenedOut = new double[trainout.Length * featuresPerRowOut];
        for (int i = 0; i < trainout.Length; i++)
        {
            var row = trainout[i];
            for (int j = 0; j < row.Length; j++)
            {
                flattenedOut[(i * featuresPerRowOut) + j] = row[j];
            }
        }
        var volumeout = BuilderInstance.Volume.From(flattenedOut, new Shape(1, 1, featuresPerRowOut, trainout.Length));

        var trainer = new SgdTrainer(net) { LearningRate = 0.01, Momentum = 0.9, BatchSize = nBatchSize , L2Decay = 0.001 };

        for (int i = 0; i < maxEpochs; i++)
        {
            trainer.Train(volumetrain, volumeout);
            Console.WriteLine("Train Loss:" + trainer.Loss);

        }

        Console.ReadKey();

Hi,
That's interesting. Can you show your keras code as well?
Could you try to set L2Decay to 0 in Keras and in ConvNetSharp? It's not currently used in ConvNetSharp.

Hi,
There is keras code ,it is using R:
set.seed(1234)
library(keras)
root_mean_squared_error= function(y_true, y_pred) {
k_sqrt(k_mean(k_square(y_pred - y_true),keepdims = T))
}
metric_rmse <- custom_metric("rmse", function(y_true, y_pred) {
1/(1+k_sqrt(k_mean(k_square(y_pred - y_true), keepdims = )))*100
})
trainf <- read.csv('c:/LD/train111.csv', header = T)
yf <- read.csv('c:/LD/out111.csv', header = T)
train.y=yf$LS
train.x=data.matrix((trainf))
gc()
filepath="c:/LD/best.hdf5"
checkpoint = callback_model_checkpoint(filepath, monitor='val_loss', verbose=1, save_best_only=T, mode='min')
earlyStopping=callback_early_stopping(monitor="val_loss", patience=30, verbose=1, mode='min')
callbacks_list = list(checkpoint,earlyStopping)
model <- keras_model_sequential()
r<-ncol(train.x)
model %>%
layer_dense(units =128, activation = 'relu', input_shape = c(r)) %>%
layer_dropout(rate = 0.0) %>%
layer_dense(units = 128,activation = 'relu') %>%
layer_dropout(rate = 0.0) %>%
layer_dense(units = 1)
model %>% compile(
loss = root_mean_squared_error,
optimizer = optimizer_sgd(lr = 0.01, momentum = 0.9, decay = 0.01),
metrics = metric_rmse
)
#summary(model)
history <- model %>% fit(
train.x, train.y, callbacks=callbacks_list,
epochs = 150, batch_size =  8
)

I noticed something in your C# code: the 4th dimension of your input/output data should be the batch size. But I see it's the whole dataset size. You need to adapt the code to call the train method on each batch (if batch size = 1, once for each entry in the dataset).
I should emove the batch size parameter of the trainer because it's confusing: it should deduce it from the shape of the input.

Thank you for pointing out the mistake.
Could you write an example code or pseudocode for using the batch and train?

You can get some inspiration from this line in the mnist example.
I'm travelling and I don't have access to a computer, typing code with a mobile is not ideal


This repro seems dead. I will try to maintain it

Hi,
this repro seems dead. I found it to be a nice little tool that should stay usable. I'm offering to maintain this tool with as much effort I can. I forked it and the first thing I did was to add ChromiumEdge support for Windows.
Unfortunately I don't own a Mac and haven't gotten to read about how to setup MacOS in a VM. But I will.
If your issues are still relevant please open them again at hegerdes/browserhistory.

Please checkout https://github.com/pesos/browser-history . The repo is properly maintained and is elegant in code structure.


Fixing jquery security issue but upgrading jQuery v1.11.3 -> jQuery v3.6.0

See Billingegroup/billingegroup.github.io PR #3

@sbillinge, this should be ready to commit and contains the jQuery fix originally submitted in Billingegroup/billingegroup.github.io PR #3


Cookies not being set?

I'm not sure why cookies aren't being set when I use CasperJS vs PhantomJS.
Here's an example:
Express Demo App:
express = require('express')

port = 58346
app = express.createServer()
app.configure ->
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
app.get '/', (req,res) ->
  res.contentType('text/html')
  res.cookie('secret', 'you are special', expires: new Date(Date.now() + 90000))
  str = 'I set a cookie.'
  res.send(str)
  res.end()
app.listen(port)
console.log 'listening...'

This phantom script (ps.coffee) works:
page = require('webpage').create()

console.log phantom.args

page.open 'http://localhost:58346', (status) ->
  console.log 'Output'
  phantom.exit()

Phantom Command:
phantomjs --cookies-file=/tmp/cookie.txt ps.coffee
This casper script does (cs.coffee) not work:
casper = require('casper').create()

console.log phantom.args

casper.start 'http://localhost:58346', ->
  console.log 'Output'

casper.run()

Casper Command:
casperjs --cookies-file=/tmp/cookie.txt cs.coffee
Viewing the output of console.log phantom.args shows that --cookies-file is indeed set. But the cookie file is not being created.
Thoughts?
Thanks.

Thanks for the exhaustive report. I think it's related to #49, my early testing confirms that arguments passed to the casperjs executable are not currently taken into account by phantomjs for some very unclear reasons.
I'll be investigating and keep you informed.

Can you please test latest commits to check it solves the issue?

Ok forget it, it breaks everything else, reverting right now.

Yet another attempt to fix the issue, could you test it please? Thanks.

should be fixed by 3c03103 — can you confirm?

Tested with some test scripts of mine, that fixed the issue. In case it didn't for you, please feel free to reopen the issue. In the meanwhile, 0.6.4 has been released containing the fix.

Fixes the issue for me! Thanks. So, should all native PhantomJS command line params work now?


Opentok-30242: Camera/Microphone permissions denied. r=nitrillio

I added a button at the bottom of the app to send the user to the application's system settings menu where the permissions can be updated.

@ArdyTokbox This PR is not needed. The sample apps have be rewritten.

ok closing


Temporarily disable var len key tests on index btree.

Codecov Report
Patch coverage has no change and project coverage change: -0.23% :warning:

Comparison is base (5de49c4) 44.70% compared to head (7f8c1d5) 44.48%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the GitHub App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #152      +/-   ##
==========================================
- Coverage   44.70%   44.48%   -0.23%
==========================================
  Files          79       79
  Lines        6993     6994       +1
  Branches      910      910
==========================================
- Hits         3126     3111      -15
- Misses       3552     3565      +13
- Partials      315      318       +3

see 2 files with indirect coverage changes

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


Are there additional data augmentations when training on synthetic data

Dear authors, I have a quick question about training networks using the synthetic data. Did you apply data augmentations (such as flip, randomcrop, etc.) to the synthetic images or you just use the original synthetic images (let's say 10pic/class then that would be the same 100 images in each iteration)? Thanks for your help.

Yes, we use data augmentation when training models on synthetic data. Please refer to our papers (including the supplementary) and code for specific augmentation implements.

Hi, I checked the codes, but it seems that you didn't apply data augmentations when training network using the synthetic data. I am running python main.py  --dataset CIFAR10  --model ConvNet  --ipc 10. In the evaluate_synset(), args.dc_aug_param['strategy'] is None, so it seems it didn't apply data augmentations.

In Dataset Condensation with Gradient Matching (ICLR 2021), we use data augmentation for MNIST dataset in all experiments when training models. For other datasets, we don't use data augmentation. The only exception is that we also used data augmentation for CIFAR10 when comparing with Dataset Distillation (2018). Please refer to Appendix - A Implementation Details - Dataset Condensation - 3rd paragrah. In Dataset Condensation with Differentiable Siamese Augmentation (ICML 2021), we use data augmentation for all experiments.

Thanks very much for your clarification!


Some Object methods should be implemented on Kernel level

I feel that Object#nil_chain, Object#bool_chain, Object#class_exists? and Object#cascade would be more suitable to be implemented on Kernel instead of Object. I didn't do anything else except copying and pasting. This is a non-breaking change as Kernel is included in Object

:+1:
Will be in next release.


Disallow focused tests

What kind of PR is this?:

/kind chore
What this PR does / why we need it:
Which issue(s) does this PR fixes?:
In this PR  jest lint plugin is added along with a pre-commit hook which will Disallow focused tests

Fixes #718
Additional comments?:

@fullstackninja864 what was the lint rule that reformatted the other files?

For unit test cases I have added plugin:jest/recommended and for e2e I have added  cypress rules
"rules": {
    "cypress/no-assigning-return-values": "error",
    "cypress/no-unnecessary-waiting": "warn",
    "cypress/assertion-before-screenshot": "warn",
    "cypress/no-force": "error",
    "cypress/no-async-tests": "error"
  }

As we have lot of wait time (to get txn confirm)thats why I made no-unnecessary-waiting to warn

@fullstackninja864  I'll merge this once 0.9.0 build is final


Remove extra newlines in _CStdlib.h

Removes a few extra newline characters in this file that I had forgotten to remove previously

@swift-ci please test


Freezing during long session in Safari (iPad, Mac)

Multiple users have reported that Kleki (and thereby Klecks) can freeze during a longer session (30 minutes) in Safari on iPad or Mac. When freezing occurs it's impossible to save and the page needs to be reloaded.
I think it started around December 2021. I've yet to reproduce this myself.
If you've experienced this issue and have a reliable way of reproducing it please provide information. Thank you.

In Safari canvases and CanvasRenderingContext2D can be null which points to a memory leak (https://stackoverflow.com/a/43482153/13941359).
Not sure if that's part of the slowdown / freeze.

There was information that it freezes after repeating fill 20 times on the iPad.
embedded mode Klecks.
The canvas size is max width 800px height 800px.

@satopian Thanks for the info.
I attempted to reproduce

iPad (7th gen, 2019, iPadOS 15.4.1)
16 layers @ 800x800
filled more than 20 times
The app continued to work without freezing.

It would be interesting to know their iPadOS version, from which year their model is, and if this happens consistently when filling 20 times.

The browser is Chrome and the iPad OS is the latest.
The iPad was released in November 2018.
The number of fills that freeze occurs is 3 to 40 times.
It seems that the issues always reappears in that user's environment.
Other operations may be causing the freeze, but it seems to avoid using it because it freezes frequently due to filling.
It hasn't been a few days since the memory leak was fixed, so I asked the user to clear the browser cache.
If I still know if the problem will recur, I will report it again.

I asked a user who freezes when using a fill.
The user didn't know how to clear the browser cache.
However, I was able to restart the iPad and test it.
When I tried it with the latest version of Klecks, the freeze no longer occurs.
The drawing time of the user is about 3 hours.

@satopian That is good news. Let me know if it comes back.
I will have a look at Chrome on iPad. It should use the same rendering and JavaScript engine as Safari though.

I use Kleki on both Mac and Macbook Pro with Safari.
On the Mac, the freeze occurs after around 20-30 minutes session time after zooming or undoing/redoing via buttons.
On the Macbook however, this doesn't seem to be the case as I've never encountered a freeze while using Kleki.
The Mac is a late 2017 27-inch model, with Safari ver.15.3 using MacOS 12.2.1 (Monterey)
The MacBook Pro is a late 2017 model with Safari ver.15.3 using MacOS 10.15.7 (Catalina)
So what seems to be the case is that a newer MacOS version is responsible for causing the freezes.

Hello again,
Ive noticed something regarding the freeze bug whilst working with Kleki today.
I used to press the undo button quite often in the past, but since I've gotten more used to using cmd+z instead, the freezes were getting less frequent.
So maybe it has something to do with the way UI buttons work? I don't remember any button other that undo/redo triggering the crash, but it might be something worth looking at.
Remember that this doesn't happen with browsers like Chrome, only on safari, so how safari handles web buttons etc might be a lead.

Update on the situation, although seemingly less common, hitting Cmd+Z to undo a step can still trigger a freeze.

What can also apparently happen, Safari instantly reloading Kleki / the site upon doing a freeze provoking action, such as undoing.
It gives the error message "this site was reloaded due to a problem", refuses to elaborate and leaves you with a white canvas.
Just lost a decent piece to this


dlib installed via pip looking for incorrect CUDA version

I'm running Ubuntu 18.04 with CUDA (10.2) and dlib (19.19.0). In Python,
import dlib
works with pip version 19.0.3 but not with 20.2.2. The error reads:
ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
Steps to Reproduce
python3.7 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install dlib==19.19.0
python
import dlib

Something is wrong with your CUDA install.  libcublas.so is an important part of the CUDA runtime.  Reinstall CUDA.

Thanks for your comment. However, everything works fine if I fix pip to version 19.0.3, suggesting that there is nothing wrong with my CUDA installation. The problem seems to be that dlib is looking for CUDA version 10.0 even though I have 10.2 installed.


feature: implement powerClient and finishTask to implement the basic functions of dfget

Signed-off-by: Starnop<EMAIL_ADDRESS>
Ⅰ. Describe what this PR did
Currently, dfget cannot download a file as expected which means that it's not a complete application to be used. So I complete the key part that are not yet implemented to make the p2p download function available. In the meantime, update something that doesn't make sense.
Ⅱ. Does this pull request fix one issue?

None.
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗？)
None.
Ⅳ. Describe how to verify it

get the source code
make

# ./build/build.sh client
=====================================================================
BUILD(dfdaemon&dfget): compiling dfdaemon and dfget...
install home: /opt/dragonfly
link /tmp/dragonfly/build/src/github.com/dragonflyoss/Dragonfly -> /vagrant/gopath/src/github.com/dragonflyoss/Dragonfly
PRE: clean and create /tmp/dragonfly/build/bin
CHECK: gofmt, check code formats
CHECK: install golint
CHECK: golint, check code style
CHECK: go vet, check code syntax
BUILD: dfdaemon
BUILD: dfget-go
BUILD(dfdaemon&dfget): SUCCESS

# ./build/build.sh install
=====================================================================
BUILD(install client): install dfdaemon and dfget...
INSTALL: /opt/dragonfly/df-client
......
BUILD(install client): SUCCESS

dfget

# dfget -u 'https://d7y.io/' -o /tmp/d7y.html
--2018-12-17 03:37:44--  https://d7y.io/
dfget version:0.3.0
workspace:/root/.small-dragonfly sign:13717-1545017864.285
client:<IP_ADDRESS> connected to node:<IP_ADDRESS>
start download by dragonfly
download SUCCESS(0) cost:3.684s length:24220 reason:0

validate

# ls /tmp/
d7y.html

NOTE: you can also validate the file is actually downloaded by p2p by looking at the log files:

dfclient.log:  ~/.small-dragonfly/logs/dfclient.log
supernode.log: /home/admin/supernode/logs/app.log

Ⅴ. Special notes for reviews
This pull request only finish the basic function of download file by the way p2p for dfget, I think we have a lot of things to go with dfget, just for your reference:

complete more details about the functions which have been implemented.
implement launchPeerServer
implement the uploader server
use go.context to track coroutines
Any other things waiting for you to explore, welcome to build it together

Codecov Report

Merging #265 into master will decrease coverage by 3.19%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master     #265     +/-   ##
=========================================
- Coverage   65.26%   62.06%   -3.2%
=========================================
  Files          30       30
  Lines        1592     1674     +82
=========================================
  Hits         1039     1039
- Misses        522      604     +82
  Partials       31       31

Impacted Files
Coverage Δ

dfget/core/downloader/p2p_downloader.go
0% <0%> (ø)
:arrow_up:

dfget/cli/cli.go
37.28% <0%> (+0.62%)
:arrow_up:

dfget/core/downloader/power_client.go
0% <0%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


Compatibility with Emotion

New Feature Proposal: a build for Emotion
Description
Can we add a build which depends on Emotion, in addition to the current, styled-components based one?
Background
Emotion is pretty popular, thanks to it's smaller bundle size and source maps support. It shares the same exact component API with styled and the changes should be minimal.
SmoothUI is an example of a component library which supports both styled and Emotion.

Sounds like a great proposal to me! Thanks for the examples @elektronik2k5
Anyone? @kotielnikov @boromo

If they have the same API, why not, I would say that this could be a really nice feature to the library.

Alright, looks like I underestimated the level of complexity here. While the most common APIs are the same, the rest differ enough to not make it trivial.
I tried hacking src/utils/styled.ts to switch from styled's monolithic build to Emotion's modular packages:
'@emotion/styled', '@emotion/core', 'emotion-theming' but failed cause the types are real complex there and can't simply be swapped on a 1:1 basis between styled and emotion. :sweat:
Pinging Emotion maintainers @Andarist @probablyup @mitchellhamilton @Ailrun @aaronjensen in hopes they'll be kind enough to help us here :angel:

Well, it's really hard to give any advice without knowing which features from styled-components do you use. If they are used solely internally or externally too. Also what would be the goal - would you like to have as much common code between those 2 variants as possible or do you just want to have 2 completely separate builds?

@Andarist, thanks for responding! :bowing_man:  The goal is to make precise-ui work with Emotion and the means is whichever way would be easiest to implement initially and maintain further down the road.

So looking really quickly through the repository I think it would be easiest to just make a sibling file to styled.ts (i.e. styled.emotion.ts) & alias all imports to original one to the emotion-variant. This might not play nicely with existing TS infra though - you'd have to explore how to make it work within that setup.

in plans is to remove styled.ts, while it was used for assigning theme to all styled functions. Now there is a [different better mechanism](Stephan
About 9 hours ago
weframe AG) and the code will be updated accordingly soon.
Regarding usage of emotion - this will be possible only in the case of total compatibility with styled-components API and types. I personally against it because it will increase maintaining cost twice and there will be never total compatibility.


Ledger KSM wallet unsigned

It seems that because of the recent upgrade of KSM.
Are there any upgrades planned for the ledger KSM wallet in the near future?

:link: zboto Link

Ledger is working on it, as soon as they upgrade we'll ping you in this issue!

The upgrade already happened, closing! :)


Enable users to configure lighting in the GUI

There is no UI control of lighting in the OpenSim visualizer (have to edit the underlying javascript) and using expert mode in the web browser is extraordinarily difficult and inconsistent with the visualizer (#681). Furthermore, there are multiple scene light sources and their names are not indicative of what they do. The purpose of each light source must be made clear and there should be ways to modify lighting directly from the GUI/visualizer.
Suggestions (in order of complexity)

add option for users to turn on/off each light source including model and ambient lighting
enable setting the intensity of each light source
enable movement of each light source not just the "scene light" in the visualizer
enable changing the direction (orientation) of directional light sources
store these settings so the scene can be preserved.

related to #314, #477, #519  #613, #668. We are lacking a design/structure for handling user needs for modifying the scene to deliver on our promise to provide beautiful visuals and publication quality images. Documenting the requirements and presenting a design to address  those requirements should be step 0 in addressing these issues.

Closing this issue since it is a duplicate of #688


AppWorkDir is really AppWorkPath

Gitea version (or commit ref): v1.9

Description
Related to #3549.
The docs at https://docs.gitea.io/en-us/install-from-source/ talk about AppWorkDir (with an unclear explanation of what it is/does); but the code nowhere actually references AppWorkDir, only AppWorkPath.
One the one hand, the name of the variable should be fixed either in the code or (probably) in the docs; on the other hand, the documentation should be improved to allow the administrator to get an understanding of what AppWorkPath is used for so they can set it meaningfully. This is #3549 territory though.

I suppose I'll just have to keep bumping this? Yay for conserving resources.

Thanks for (re-)reporting. AFAICS this was fixed in #8567.


Add level requirements to diaries

https://github.com/runelite/runelite/issues/2123

When the diary scroll thing is opened, this plugin replaces the text to include each achievement's level requirements. Requirements are colored blue and crossed out when complete, and colored red when incomplete.

Is there a reason why all of the line offsets are hardcoded in this? It seems like it wouldn't be hard to just identify them dynamically.

Looking forward to see this in the client!

This needs to be rebased after the history rewrite. See https://github.com/runelite/runelite/wiki/Rebasing-your-branch-from-the-May-16%2C-2018-rebase

Bump. Rebased.

Are all diaries separated by .\n? It seems like that would be a safe way to determine placement of the requirements.

Not just whole requirements, unfortunately. You also see things like this, when a single achievement spans two lines:
<col=000000>Harvest some strawberries from the Ardougne farming
<col=000000>patch.

Well, that should be covered by what I recommended--a period followed by newlines should cover all diary requirements, yeah?

Ah my bad, I didn't see the period in your comment.
I decided just to get rid of the clunky "sectionStarts", and keep track of widget text on a rolling basis.
for (row : rows):
buffer = (reqs.get(buffer + row) != null) ? buffer + row : row
if (reqs.get(buffer) != null):
// Requirement found, modify the row text
This works as long as all requirements are <= 2 rows long (as is currently the case)

Code looks much improved @Adam-. :+1:
One potential issue I can see is that it doesn't address there being extra requirements on some diaries for ironmen, due to lack of access to associated items. For instance, "Place a Scarecrow in the Falador farming patch." has an implicit requirement of 47 farming for ironmen as the only way to obtain watermelons is to grow them via farming.

Too late to also suggest that the Requirement class could include a boolean arg for if it is boostable or not?

I'm open to adding those if there is time, maybe along with their respective toggles in the Config.


Switch from package:html5lib to package:html

Fixes https://github.com/dart-lang/initialize/issues/35

lgtm


Set background color to white

Steam's in-game browser uses a black background by default which makes it impossible to read the content on the site. Setting the background color to white should fix it.

I signed it!

Not sure why the CI does not complete, but change looks good.


try out common linuxes with the base agent

broken this issue down into several distros tasks
therefore this issue is duplicate


Write a Java program to check consonant

Description
Write a Java program to check consonant
Check if a character is a consonant.
Input  : b
Output : Consonant

How to contribute

Save the solution in CheckConsonant.java file
Add CheckConsonant.java file in check-consonant folder

!assign

Please assign this to me!


Bump telegram-web-apps.js

Bump telegram-web-apps.js version to include new features

@ArthurStam

Why this is not approved?

Release it ASAP please

Sorry, folks, I was out of office. I will update version of types and sdk today. This MR updates only JS file, which is wrong.


Secret References don't resolve

Writing function in python:
Environment variables (app settings) are discoverable and resolve appropriately.
Secret references stored as app settings resolve to 'None'. Is the a current bug - has anyone else experience this issue?

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

ID: 7feaa3d0-7233-a3cb-cb9b-a9a55b1f0d7a
Version Independent ID: f41f9d51-52f8-1f45-1043-1344a3b74458
Content: Key Vault references - Azure App Service
Content Source: articles/app-service/app-service-key-vault-references.md
Service: app-service
GitHub Login: @mattchenderson
Microsoft Alias: mahender

@snoodleboot Thanks for the feedback! We are currently investigating and will update you shortly.

@snoodleboot Thanks again for the question! Could you try restarting the app. Also try turning off then re-enabling system assigned managed identity. Let me know if issue persists.

@snoodleboot Since we have not heard back from you, we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly reopen the issue and continue the discussion.


Hypothesis plugin not working with alias and special characters

Initial Checks

[X] I have searched GitHub for a duplicate issue and I'm sure this is something new
[X] I have searched Google & StackOverflow for a solution and couldn't find anything
[X] I have read and followed the docs and still think this is a bug
[X] I am confident that the issue is with pydantic (not my code, or another library in the ecosystem like FastAPI or mypy)

Description
Hi, I have a schema that uses an alias containing $ within its name and it seems that, on that case, hypothesis can't generate input values for it and it raises the following error:
>   ???
E   pydantic.error_wrappers.ValidationError: 1 validation error for ExampleSchemaBad
E   $example
E     field required (type=value_error.missing)

pydantic/main.py:342: ValidationError

FAILED tests/unit/test_pylint.py::test_dollar_sign - pydantic.error_wrappers.ValidationError: 1 validation error for ExampleSchemaBad

Apparently the issue isn't only with the dollar sign, but with all special characters
Example Code
import hypothesis
import pydantic
from hypothesis import strategies as st

class ExampleSchemaBad(pydantic.BaseModel):
    example: str = pydantic.Field(alias="$example")

class ExampleSchemaGood(pydantic.BaseModel):
    example: str = pydantic.Field(alias="other")

@hypothesis.given(
    request=st.builds(
        ExampleSchemaBad,
    )
)
def test_dollar_sign(
    request: ExampleSchemaBad,
) -> None:
    pass

@hypothesis.given(request=st.builds(ExampleSchemaGood))
def test_clean(
    request: ExampleSchemaGood,
) -> None:
    pass

Python, Pydantic & OS Version
pydantic version: 1.10.4
            pydantic compiled: True
               python version: 3.10.5 (main, Oct  3 2022, 09:43:47) [Clang 13.1.6 (clang-13<IP_ADDRESS>.5)]
                     platform: macOS-13.2-arm64-arm-64bit
     optional deps. installed: ['typing-extensions']

Affected Components

[ ] Compatibility between releases
[ ] Data validation/parsing
[ ] Data serialization - .model_dump() and .model_dump_json()
[ ] JSON Schema
[ ] Dataclasses
[ ] Model Config
[ ] Field Types - adding or changing a particular data type
[ ] Function validation decorator
[ ] Generic Models
[ ] Other Model behaviour - model_construct(), pickling, private attributes, ORM mode
[X] Plugins and integration with other tools - mypy, FastAPI, python-devtools, Hypothesis, VS Code, PyCharm, etc.

As a possible workaround, for some of you that might be facing the same issue, something like:
@hypothesis.given(st.builds(ExampleSchemaBad, **{"$example": st.text()}))
seems to work.

Hi @galbino,
Thanks for reporting the issue and for the workaround.
I can confirm the problem. I think it can't get a fix in v1.
@samuelcolvin Do you have any idea how to fix the problem? or even do we want to fix it in V2?

We’re no longer actively developing Pydantic V1 (although it will continue to receive security fixes for the next year or so), so we’re closing issues solely related to V1. If you really think this shouldn’t be closed, please comment or create a new issue 🚀.


For REF mode leave the contentType header unset

Resolves #16
In ref mode, leave the contentType header unset. This would allow the message consumer to use the spring.cloud.stream.bindings.output.contentType property to set the desired type

LGTM - merged upstream.


Added OutlookGifPickerDisabled parameter to Set-OrganizationConfig.md

Closes https://github.com/MicrosoftDocs/office-docs-powershell/issues/6386.
@chrisda could you confirm this information? Maybe this parameter is not fully available yet because I cannot see the current value with Get-:

Docs Build status updates of commit dc24071:
:clock10: Full build: the average full build time is 17 min(s) 38 sec(s), this is based on the last 1000 build(s) for this repository.

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

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Set-OrganizationConfig.md
:white_check_mark:Succeeded
View (exchange-ps)

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

@dariomws, this feature must be in a controlled Preview, because I don't see it in an SDF tenant. I added a note about preview.

Docs Build status updates of commit 700eb03:
:clock10: Full build: the average full build time is 17 min(s) 38 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 700eb03:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/Set-OrganizationConfig.md
:white_check_mark:Succeeded
View (exchange-ps)

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


Relax run_exports to accommodate patch releases

Resolves https://github.com/conda-forge/mysql-feedstock/issues/48

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin Please re-render!


How to delete modern Team Site?

Category

[x] Question
[ ] Typo
[ ] Bug
[ ] Additional article idea

I'm trying to delete modern team site. I've read the post on how to delete a site. But I don't see 'Delete site' link in Site Information panel (tested on 2 tenants).
Also tried to go to Site Settings to delete the site using old-school way. But I don't see 'Delete this site' link there...
I have Full Control permissions, also tried to add myself to Site collection administrators - no luck.
Any thoughts?

I ultimately had to use PowerShell (SharePoint Online Management Shell) to delete my modern team sites:
Remove-SPOSite https://yoursite.sharepoint.com/teams/yourteamsite
I also had an issue where I had deleted my root site collection and couldn't create a new one in the SharePoint admin center until I also removed the modern team sites I had created from the site collection recycle bin:
Remove-SPODeletedSite https://yoursite.sharepoint.com/teams/yourteamsite
To fully clean up after deleting your modern team site, make sure you also delete the associated group from the Office 365 admin center after you delete the site.

@dannyjessee, yup. Now I'm using PowerShell.
But to my mind it should be in UI. Especially if it is described in the documentation.

Here is your answer:
Check Delete Modern Team site section in this article:
[https://social.technet.microsoft.com/wiki/contents/articles/40067.sharepoint-online-modern-team-sites.aspx] (SharePoint Online Modern Team Sites)

@MaruthachalamK if you look at my initial question it has link to the same guide on how to delete a site.
The thing is that at the moment when I asked the question 'Delete site' link was not presented on Site Information pane.
Now it is there, so I can close the question.
Thanks


Add "Stems: away from center" to cue_notes_create

@cv-on-hub I'm not sure the best workflow for this; I thought I'd open an issue instead of just opening a PR. Please see what you think about these changes. This adds an option to the plugin to freeze stems away from center -- that is, a cue line with most noteheads at or above the center line will get stems frozen up, otherwise it will get stems frozen down.

Moved clef reset earlier, since we need to check staff positions in the correct clef
Calculate whether stems should be up or down and freeze appropriately
Freeze ties, tuplets, and slurs on the stem side of the cue

I'm also testing here a small script that will flip the direction of a cue created in the manner described above. I'm not sure if you're interested in looking at that as an additional menu item for this script.
My use case for all of this is that I always like to follow the "away from center" convention. Whether I use your script or the TGTools plugin, this has always meant that I have to look at the source material, mentally place it in the destination key/clef, figure out whether stems should be up or down, and set the plugin that way. If I guess wrong, I have to Undo and then go back and run the plugin again. I'd like to have the plugin figure this all out for me, on a per-staff basis, and if I happen not to like the result, I'd like to be able to easily flip the cue.

These types of modification depend entirely on user workflow. Previously I have NOT copied clefs from the cue source, since cues are hidden in the full score, and the final clef for the cue depends on the transposition and disposition of each part at that point in the music. (I normally employ SCORE IN C so transposition only happens in the part). This obviously affects cue stem direction. Sometimes the measure rests need to be above, sometimes below, and this is often not obvious until all transpositions and part clefs have been assigned.
This means that the high level of finessing you propose serves no purpose for me at the preliminary stage. For the majority of staves in treble clef in C or Bb it is simplest to create a single cue, make all necessary corrections to the extracted cue then copy it to every other treble-clef staff. Quick and easy. Fine music layout is so convoluted, organic and personal that whatever minuscule enhancements you add in at the start will probably to need to be overridden later.

I'm not sure I understand your first comment about clef. Your script copies the cue music to the  destination staff, makes some adjustments, and then restores the original clef of the destination staff. All I did was restore the original clef earlier in the process, so that other tweaks could see the notes in their final staff positions.
And yes, no plug-in will serve everyone's needs, and some things will need to be adjusted later. For example, I moved the whole rests after creating the cue in the example above.
So are you saying that you're not interested in adding this functionality to your script? That's fine--I'll close this issue and just keep the changes in my local copy.

Sorry - I missed the link behind these changes and the fact that you'd already done the heavy lifting. Nicely achieved with a minimal change to the UI. I'm unsure about the handling of tie directions, and doubt that I'll find use for "away-from", but now you've done the work there's no reason not to include it.
I'm not sure of the protocol here for changes to scripts created by others. Do you want to submit a PR?
PS: copying the cue clef to the destination is optional. The destination clef is only restored if "Copy" is disabled.
if not config.copy_clef then clef.restore_default_clef() ...

Actually - my own script is up to v0.84. I'll submit the PR.

Yes, I've got the same logic surrounding clefs, just moved your block a little earlier in the function.
I'm glad you're amenable to adding this functionality. Are you interested also in "Flip Cue Notes" as an additional menu item? If so, I'd like to make a couple of other mods, for your approval -- refactoring this a little so that code is reusable.

cue_notes_flip.lua should be a separate script - user experience of a separate menu item will be the same. Nothing to stop it reading the same config file to identify the exact cuenote_percent.

It doesn't need to read any of the settings -- it just goes in and flips things. But it does use the same code that I added for freezing tuplets, ties, and slurs, which is why I thought that including it here would make sense. Again, if you don't want to, that's fine.

Okay, thanks -- I will submit a PR to your repo fork, and after you merge that you can send a PR to this repo. It will take me a little bit to tidy things up, probably later tonight (US Eastern time) or tomorrow.

Closed via #450