OCaml binary produces bad extracted strings for F* (re)bootstrapping

Steps to reproduce:

make test -C src
make ocaml -C src
Now look in src/ocaml-output and see diffs like this with respect to trunk:
https://gist.github.com/catalin-hritcu/8934de3f11aea3818bb4
make -C src/ocaml-output
Now you have a broken binary

cp fstar.exe ../../bin/fstar.exe
make[1]: Leaving directory '/home/hritcu/Projects/fstar/pub/src/ocaml-output'
make: Leaving directory '/home/hritcu/Projects/fstar/pub/src/ocaml-output'
[hritcu@detained pub]$ fstar.exe --version
F* 0.9.0
platform=Linux_x86_64
compiler=OCaml 4.02.3
date=2015-08-28T20:37:13-0700
commit=f244572
[hritcu@detained pub]$ Error: using standard input to read formula.
For usage information: z3 -h
/bin/sh: line 1: $'\r': command not found
/bin/sh: line 2: $'\r': command not found
/bin/sh: line 3: SMT.RELEVANCY=2: command not found

[hritcu@detained pub]$

This should also explain the latest apparitions of #245, which I'll mark as a duplicate.

In src/tosmt/z3.fs:
  78   format2 "-smt2 -in %s \
  79     AUTO_CONFIG=false \
  80     MODEL=true \
  81     %s=2"
  82     timeout relevancy
  83

I looked at the extraction code, and it seemed legit, so I believe the parser of F* doesn't strip the "\r\n" from the string constant at it should. Looking into it.

@nikswamy I don't see anything in the lexer that would handle this case. Could it be that previously, string literals were passed "as is" through the extraction mechanism, hence leaving it up to the OCaml parser to handle the escaped end of line? Do we have a reason for re-encoding the strings when extracting?

Yes, I don't see anything handling this in src/parser/ml/lex.mll. Perhaps @ad-l has a better idea about it.
Note that the F# backend seems to do the right thing.

It seems that a fix is to remove this Buffer.add_string buffer x; at line 328 in lex.mll
@msprotz: is this what you had in mind?

Also, the escaping comes up because of the difference in src/basic/util.fs and src/basic/ml/FStar_Util.fs, specifically in the string_of_unicode functions in each of those modules.
I'm not sure why the OCaml version is encoding benign characters like _.

Nevertheless, it seems that emitting the encoded versions of the strings is not really a semantic problem ... is it?

I've tentatively pushed the change to lex.mll. It seems to fix the broken binary problem.


add pytest-split to allow splitting test running in groups

Motivation

System tests are notoriously slow to the point that they are quickly becoming unusable as they take too long to run. While improving their speed would definitely be the better option, having the ability to split the tests on multiple machines is a quick fix that will allow running them faster at least in CI.
Changes

Add pytest-split to allow splitting test running in groups.
Workflow

⚠ Create your PR as draft ⚠
Work on you PR until the CI passes (if something not related to your task is failing, you can ignore it)
Mark it as ready for review

Test logic is modified? -> Get a review from RFC owner. We're working on refining the codeowners file quickly.
Framework is modified, or non obvious usage of it -> get a review from R&P team

:rocket: Once your PR is reviewed, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist

[ ] Relevant label (run-parametric-scenario, run-profiling-scenario...) are presents
[ ] If PR title starts with [<language>], double-check that only <language> is impacted by the change
[ ] No system-tests internal is modified. Otherwise, I have the approval from R&P team
[ ] CI is green, or failing jobs are not related to this change (and you are 100% sure about this statement)
[ ] A docker base image is modified?

[ ] the relevant build-XXX-image label is present

[ ] A scenario is added (or removed)?

[ ] Get a review from R&P team

Hi @rochdev !
What scenarios do you want to split ?
If it's parametric, there is already pytest-xdist on the repo, it it's not activated on your repo, I can help you on that.
If it's other scenarios, unfortunately it won't work, as the test part of the run is actually the fasted, The long part is spawning the infra, and running the set-up, which can't be splitted. The solution here is parallel execution in the CI, where I can also help.

If it's parametric, there is already pytest-xdist on the repo, if it's not activated on your repo, I can help you on that.

First step is parametric, but then other tests as well if at all possible. For xdist, unfortunately it doesn't help at all, and parallelizing on 16 cores didn't make any difference unfortunately (well, a tiny difference of maybe 20% but that could just be faster cores).

Working example: https://github.com/DataDog/dd-trace-js/actions/runs/9664627172/job/26659723787?pr=4436


Segmentation fault when running demo in CPU mode

./tools/demo_rfcn.py --cpu

leads to segmentation fault, after these lines
I0922 20:40:52.680196  4690 net.cpp:771] Ignoring source layer silence
I0922 20:40:52.680202  4690 net.cpp:771] Ignoring source layer loss
I0922 20:40:52.680209  4690 net.cpp:771] Ignoring source layer accuarcy
I0922 20:40:52.680217  4690 net.cpp:771] Ignoring source layer loss_bbox

I don't have GPU :(.

I think this is because PSROIPooling layer only have GPU version. Since GPU plays a big role in deep learning, I suggest you buy a GPU to do some experiment. As I wrote in README, 4GB is enough for ResNet-50 :). If you really have no budget, you can implement CPU version by your own.


How to use this converter to convert from swagger 1.2 to 2.0?

In README:

It's recommended to use command line tools like swagger-tools or swagger-spec-converter for converting your spec.

@mohsen1 Can you close this issue?
@vivekkiran If you still have some questions. Please use our gitter chat

@IvanGoncharov just added you as a Collaborator so you can close issues or merge PRs.

@mohsen1 Thanks, I promise to use my new powers for good and not evil :innocent:


Google OAuth authentication/login error on Heroku deployed app

Hi async-labs team,
I almost complete project and was able to run project locally (localhost:3000).
Working fine at localhost
But I am having problem after Deploying the project to Heroku.com
Error: /login page will appear again after login
so, basically I am not able to login to project on Herorku
I did all Preparing a Codebase for Heroku Deployment, Deploying Node.js Apps on Heroku requirements, all needed configs from Chapter-9 builderbook.

I am deploying the app from Heroku Git.
But I did all config as required.
It is running fine locally.
Problem while deploying on Heroku.
I added all config vars to app settings on Heroku.

What might be the problem.
I can't solve it at the moment.
Thanks you

App running on localhost

Hi.
I solved my authentication problem.
hope will be helpful if someone have similar problem in the future.
This was helpful for troubleshooting
https://github.com/async-labs/builderbook/issues/460
some user had similar issue,
The change that helped me:
key: NODE_ENV value: production on Heroku
and adding COOKIE_DOMAIN
Hope, my project will work fine and I will close this issue soon.

I think you should add information about adding NODE_ENV variable key and value production on this part of book.


added swoc and dwoc to the readme section

Issue Number
ISSUE #23

Describe the changes you've made

I added two programs SWoC and DWoC  that this project is a part of under readme

Describe if there is any unusual behaviour of your code(Write NA if there isn't)

NA

Additional context (OPTIONAL)
Add any other context or screenshots about the feature request here.

Test plan (OPTIONAL)
A good test plan should give instructions that someone else can easily follow.
How someone can test your code?
Checklist

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.
[x] The title of my pull request is a short description of the requested changes.
[x] Participating in SWOC2021.
[x] Participating in DWOC.

Looks good! Will merge.


Random problems with some generated access tokens

Summary
Change #1720 did not only change the generation of the token but also the range of used characters.
So in some cases the token generator generates tokens which are converted during the request flow to tokens containing a space or to other url encoded characters.
A user getting such a token has problems for some type of request e.g GET requests work, POST request not.
Example for such a token breaking things: n3puPWRHcbe+1JGniRxFqc5mVOU=
Expected Behavior
Don't use special characters in token.
Perhaps it works without any problems if on all places, where requests are created in a web application and the access_token attached to the request, the access_token is correctly encoded, but I think there are many applications out there where this is not the case and which will suffer from these random problems.

@bmaehr Please provide a minimal sample or test that reproduces the problem and I'll have a look.

@bmaehr Please provide a minimal sample or test that reproduces the problem and I'll have a look.

For what a minimal sample? For the fact, that the random generator now generates other characters than before?

If you believe the changes applied in #1720 resulted in a bug then please demonstrate the bug via a sample or test. This is standard process when reporting a bug.

I try to explain it once more:
The changes in #1720  resulted in changing the access token from e.g. a00ca325-8a76-4380-b18c-62ea960ce6d2 to n3puPWRHcbe+1JGniRxFqc5mVOU=
These access tokens are transferd in ever application back and forth between backend and frontend. Depending on the typ of transfer special characters like blanks, + or = need to be encoded during the transfer. This was not necessary for the old range of charaters . Due the change many applications will brake randomly, because with #1720 the implicit definition of the format of the access token has been changed.

@bmaehr Apologies for the delay. Can you confirm which version you are using? If you are using 2.4.1 then please try 2.4.2 and let me know how it goes.
FYI, #1857 (backport #1864 for 2.4.2) fixed the access token generation to ensure url-safe base64 encoding.

2.4.1
Sorry, did search for tickets but didn't find #1857

No worries I'm glad you have the fix now.


Unable to get css classes injected in element with scss and css modules.

react-testing-library version: 5.3.1
react version: 16.6.3
node version: 10.4.1
npm version: 6.4.1

Reproduction:
Here's the Codesandbox: https://codesandbox.io/s/xvw9r8z24z
In this codesandbox I can run my tests
However, in this codesandbox I have the project setup: https://codesandbox.io/s/r15r76o8y4
I can not run the project because of missing dependencies.
Problem description:
I had created another issue regarding not seeing classes in components that I was testing and I thought it was a problem how I was developing my components in storybook. However, I've tested a component in our project and I still have the same problem.
The component displays just fine with the classes when I run the project, however when I try to test my components and check if they have a class, the test fails.
I've tried to rename the file from .scss to css and instead of having className={s.active}, I'd have className="active" and the test would pass because the class was injected into the dive element.
I've been struggling with this, I don't know if it has to do with postcss or how scss files should be handled. I'm not getting any error when I run the text other than why the test is not passing.
In jest.config.js I've tried with the following settings:
"moduleNameMapper": {
".+\.(css|styl|less|sass|scss|svg)$": "/node_modules/jest-css-modules-transform",
},
but the result is the same.
@kentcdodds, I'm sorry to be a pain but do you think you could check my codesandbox and see if I'm doing something wrong the way I'm configuring jest with scss?

Jest config does not work in codesandbox, but here's what I think the problem is:
This is your style-mock.js
module.exports = {}

This means all style imports are replaced with an empty object.
Instead of this mock, you can point to a module called identity-obj-proxy that maps s.xyz to "xyz":
// in jest.config.js
moduleNameMapper: {
    ".+\\.(css|scss)$": "identity-obj-proxy"
  },

Also, when I download the project locally it appears that react-scripts ts is not using all the options in your jest.config.js. It looks like only a few properties are supported for overrides: https://facebook.github.io/create-react-app/docs/running-tests#configuration
To get around this you may need to follow the instructions to eject from create-react-app, or run jest directly and copy in any missing config that CRA set up for you (e.g. setupTests.js).


esnext-webpack test not working on windows 10

I'm submitting a bug report

Aurelia Skeleton Version
skeleton-esnext-webpack 1.0.0-beta.3.0.1
Operating System:
Windows 10
Node Version:
5.7.0
NPM Version:
3.6.0

Current behavior:
npm test failing with
Chrome 51.0.2704 (Windows 10 0.0.0) ERROR
  Uncaught Error: Cannot find module "../index"
  at webpack:///test/spec-bundle.js:17:0 <- spec-bundle.js:5301
Chrome 51.0.2704 (Windows 10 0.0.0) ERROR
  Uncaught Error: Cannot find module "../index"
  at webpack:///test/spec-bundle.js:17:0 <- spec-bundle.js:5301

Expected/desired behavior:
npm test not failing

tx. that works now. :+1:
i  still get:
21 07 2016 09:52:11.112:WARN [reporter.remap-istanbul]: Could not find any specified files, exiting without doing anything.
but that's not any concern for me now


Doesn't work with Astro 4

Describe the bug
Looks like starlight-openapi is broken on Astro 4.
The errors thrown are:

TypeError: Cannot read properties of undefined (reading 'themeSelect.accessibleLabel') in dev server
TypeError: Cannot read properties of undefined (reading 'tableOfContents.onThisPage') on build

To Reproduce
Here's a repro stackblitz+repo: https://stackblitz.com/~/github.com/keturiosakys/starlight-openapi-repro

Spin up the dev server
Side bar is generated successfully, however, navigating to one of the links crashes the server
Server throws: TypeError: Cannot read properties of undefined (reading 'themeSelect.accessibleLabel')

Alternatively:

Run pnpm build
The build fails with TypeError: Cannot read properties of undefined (reading 'tableOfContents.onThisPage') error

Expected behavior
Generated pages should open normally.
How often does this bug happen?
Every time
System Info
No response
Additional Context
Happy to provide a PR for a fix, so continuing to investigate this further. If there are any leads I should take a look at, lmk!

Thanks for the report.
The issue is actually not related to Astro v4 but Starlight itself since Starlight v0.14.0. I submitted a PR to  attempt to fix the issue and also #11.
This is currently tracked in #14 so I'll close this one but I'll make sure to add updates to the other one.


docs around using ollama

You mentioned that if using Apple Silicon, you should install ollama on it's own outside of docker. But you don't include a docker-compose yaml for that case. where you don't run ollama in docker.

Hi @technovangelist, if you run docker compose up without any profile, it will not spin up any ollama for you. You are correct that we could add this to the readme too. Thanks for bringing it up!


[stable/airflow] airflow is not reading secret of a private github repo

I'm trying to Add my private git reop to airflow
I ran this command
kubectl create secret generic my-git-secret --from-file=key=./id_rsa --from-file=known_hosts=./known_hosts --from-file=key.pub=./id_rsa.pub

And my YAML Look like this:
    git:
      ##
      ## url to clone the git repository
      url: https://github.com/myorg/airflow-dags
      ##
      ## branch name, tag or sha1 to reset to
      ref: master
      ## pre-created secret with key, key.pub and known_hosts file for private repos
      secret: "my-git-secret"
      ## The host of the repo so for example if a github repo put github.com (Only need if using ssh not https git sync)
      repoHost: "github.com"
      ## The name of the private key in your git sync secret (Only need if using ssh not https git sync)
      privateKeyName: "key"
      gitSync:
        ## Turns on the side car container
        enabled: true
        ## Image for the side car container
        image:
          ## docker-airflow image
          repository: alpine/git
          ## image tag
          tag: 1.0.7
          ## Image pull policy
          ## values: Always or IfNotPresent
          pullPolicy: IfNotPresent
        ## The amount of time in seconds to git pull dags
        refreshTime: 60
    initContainer:
      ## Fetch the source code when the pods starts
      enabled: true
      ## Image for the init container (any image with git will do)
      image:
        ## docker-airflow image
        repository: alpine/git
        ## image tag
        tag: 1.0.7
        ## Image pull policy
        ## values: Always or IfNotPresent
        pullPolicy: IfNotPresent
      ## install requirements.txt dependencies automatically
      installRequirements: true

I'm getting a message from git-sync and git-clone pods writing
Cloning into '/dags'...
fatal: could not read Username for 'https://github.com': No such device or address

I checked the secret and it's there. So what i'm doing wrong here?

It was my mistake i didn't use the SSH git url url: git@github.com:myorg/airflow-dags.git

Hi, I tried creating the secret and provided all the details as above in helm but i am still receiving an error Cloning into '/dags'...
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Can you please provide some details on how to check the secret and how you created ssh key on your machine. Thanks

@ahmedspiir , you don't know how much you helped me. Thanks a lot!!


Authenticate requests from api-server in sidecar injector

Adds the ability to authenticate requests coming from the Kubernetes API server for the webhook admission server.
Closes #1780

/ok-to-test


fix issue #17

This is from piotrbrzuska in http://code.google.com/p/iscroll-js/issues/detail?id=17
I've tested on Safari 5 and iPhone iOS 5.  Fixes the problem.

Tested and working too in Safari, iOS 3, 4 and 5.
Need test on android.

I've applied this change to code which is running under iOS 5 and it has fixed the problem with not being able to enter text into textfields.

Can we get this fixed. Please?


SMTP forwarder

child of #162
Email server which accepts all our configured domains (wildcard) and forwards to other domain e.g. incubaid.com.
This allows us not having to create all aliases on google domain which is a pain.
So e.g<EMAIL_ADDRESS>would automatically get to<EMAIL_ADDRESS>In python there are quite some libraries doing SMTP, let's put in gevent loop and use nginx as the proxy (forwarded).

➤ Abdelrahman Hussein commented:
I was looking into lamson ( https://github.com/zedshaw/lamson ) and python-slimta ( https://github.com/slimta/python-slimta )
I think its better to just implement a simpler application to do the forwarding using the standard library instead (doing this now)

➤ Abdelrahman Hussein commented:
PR is open here ( https://github.com/threefoldtech/jumpscaleX/pull/448 )
Still working on documentation


[Feature] Animation on Popup Opening and Closing

Create an animation for the popup if you open and close it. Should be handled with the already created data-animation if you want to toggle it off like currently for the .bootstrapNiceSelect('open') and .bootstrapNiceSelect('close') methods.

For the created animation, the property for the overlay background-image got changed to background and the color is not a linear-gradient() anymore because this can not be somehow animated for opacity. Could be animated if the linear-gradient() is an img but that seems to be not necessary and to hard to read for the plugin


Blogs: incorrect links in "top blogs" blocks

The problem is in old .htaccess file, it could happen when not all files were copied from upgrade script.
To fix the problem upload the latest .htaccess file from the package.


Change Switch Color

Making the select slider change color from red to green when you make your selection and display on or off would be beneficial

Great idea! We will get it put on the board!

Thanks for the feedback @SLehew! Keep the ideas coming!


Assigning users to projects in several roles

The admin/owner of Pure3D may assign an editor (= creator) to a project. The admin/owner may also remove an editor from a project.
editors may invite sub-editors (editors) and reviewers (readers) to a project and remove them from the project or modify their role.
The admin/owner of Pure3D should have a handy dashboard that gives an overview of the pojects with their editors.
A project editor should have a handy control to administer the project users (sub-editors and reviewers.
In both controls, known users should be selectable from a table.
It must also be possible to invite new users by means of a magic link.

Projects have organisers, editions have editors and readers.
We can now display all these roles, and we have authorization in place to modify them.
But we have not yet implemented the modification of roles itself.

Role management has been implemented.


Reading value from user preferences on dashboard page, always returns the default value on the first render.

I am trying to add another value at user preferences so that I can save on local storage and use this value in Layout and dashboard page.
I began by adding the field on UserPreferences.cs
public bool Auction { get; set; }

And then on my LayoutService.cs
public bool Auction { get; set; } = true;

I update it by invoking this method on LayoutService.cs
public async Task SetIsAuction(bool value)
{
    Auction = value;
    UserPreferences.Auction = Auction;
    await UserPreferencesService.SaveUserPreferences(UserPreferences);
    OnMajorUpdateOccured();
}

On the dashboard page I have a switch button which is being used to switch the Auction on and off like this:
<MudSwitch T="bool"<EMAIL_ADDRESS>Label="@(LayoutService.Auction? "Auction" : "N/A")" ValueChanged="@(e => OnAuctionUpdate(e))" />

And this is the OnAuctionUpdate method from the dashboard page:
private async Task OnAuctionUpdate(bool value)
{
    LayoutService.Auction = value;
    await LayoutService.SetIsAuction(value);
    StateHasChanged();
}

Although the value on the local storage is being updated when I switch, the problem is that when I reload, it always gets the default value which is defined on the LayoutService.cs
Do you have any idea on how to fix this issue?
Best regards and thanks in advance.
Cheers.

 public async Task ApplyUserPreferences(bool isDarkModeDefaultTheme){
...
}

The ApplyUserPreferences method will load the saved configuration each time; your code needs to assign values to your parameters here.

I am already applying, and the parameters are assigned correctly, but on the first load, it shows the default values and not the values that are stored on local storage.


libdevil: fix compilation on Darwin with clang

Compilation fails now that the default C++ standard is 17, because the (rather old) upstream code uses the "register" keyword.
./../src-IL/include/il_manip.h:63:2: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
        register int m =   i        & 0x007fffff;
        ^~~~~~~~~

We could selectively set -std=c++14, but it also seems sufficient to suppress the warning, so this commit chooses that option.
Fixes #309078. Fixes #309417.
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

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

Hmm, when building with nix-review, there's a further error:
./../src-ILUT/src/ilut_opengl.c:147:18: error: incompatible function pointer types assigning to 'ILGLTEXIMAGE3DARBPROC' (aka 'void (*)(unsigned int, int, unsigned int, int, int, int, int, unsigned int, unsig
ned int, const void *)') from 'void (GLenum, GLint, GLint, GLsizei, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *)' (aka 'void (unsigned int, int, int, int, int, int, int, unsigned int, unsigned in
t, const void *)') [-Wincompatible-function-pointer-types]
                ilGLTexImage3D = glTexImage3D;
                               ^ ~~~~~~~~~~~~

and adding -Wno-incompatible-function-pointer-types didn't seem to fix things. :-/

Mind sharing the code you tried?

This can actually be reproduced on Linux too by using llvmPackages.stdenv.

Looks good, builds on both darwins.  I see no reason to delay.

Alright, thanks @vcunat


feat: add TLD for Slovakia (.sk)

Description of change
Only 21 out of TOP 50 country TLDs are present in the POPULAR_TLDS list (based on these statistics https://domainnamestat.com/statistics/tldtype/country), creating quite a few false positives for loads of countries.
It gets especially embarrassing when a domain such as '.sk' suggest to be changed to '.se', where E sits on the opposite side of the keyboard.
I am adding 'sk' TLD for Slovakia as a quite popular domain, but the list of 29 other domains, that could be added to complete the list for TOP50 sorted alphabetically goes as follows:
['ar', 'au', 'br', 'cc', 'cf', 'cl', 'cn', 'ga', 'gq', 'id', 'in', 'io', 'ir', 'me', 'ml', 'mx', 'nu', 'nz', 'ph', 'pl', 'pw', 'ro', 'tk', 'tw', 'ua', 'vg', 'ws', 'xn', 'za']

Pull-Request Checklist

[x] Code is up-to-date with the main branch
[x] npm run lint passes with this change
[x] npm run test passes with this change
[x] This pull request links relevant issues as Fixes #0000
[x] There are new or updated unit tests validating the change
[x] Documentation has been updated to reflect this change
[x] The new commits follow conventions outlined in the conventional commit spec

@virpo Thanks so much for doing this! I'm going to merge the PR!
From your list, I noticed there are 21 domains that we don't have support to ['ar', 'cf', 'cl', 'cn', 'ga', 'gq', 'ir', 'ml', 'mx', 'nu', 'nz', 'ph', 'pl', 'ro', 'tk', 'tw', 'ua', 'vg', 'ws', 'xn', 'za']
I'm going to create a separate PR adding those.


blackbox probe : x509: certificate signed by unknown authority even with insecure_skip_verify set to true

What did you do?
Hello!
I'm trying to monitor a website with prometheus and blackbox exporter. Each of them are running inside a docker (images pulled from official docker hub https://hub.docker.com/r/prom/prometheus and https://hub.docker.com/r/prom/blackbox-exporter/).
My blackbox config:
modules:
  http_2xx:
    prober: http
    timeout: 5s
    http:
      valid_status_codes: []
      method: GET
      tls_config:
        insecure_skip_verify: true
      no_follow_redirects: true
      fail_if_ssl: false
      fail_if_not_ssl: true
      preferred_ip_protocol: "ip4"
      ip_protocol_fallback: false

My issue: the target that I'm trying to monitor is using a self-signed certificate. That's why I tried to set insecure_skip_verify: true but it doesn't seem to handle it. I have the following error in the probe debug:
ts=2020-08-26T10:09:33.988405182Z caller=main.go:119 module=http_2xx target=https://example.com level=error msg="Error for HTTP request" err="Get \"https://x.x.x.x\": x509: certificate signed by unknown authority"

What did you expect to see?
probe_success 1 with metrics
What did you see instead? Under which circumstances?
probe_success 0 with the error previously copied in debug mode.
Environment

System information:
n/a

Prometheus version:
docker image v2.20.1

Prometheus configuration file:

global:
  scrape_interval: 10s
  external_labels:
    env: 'my-supervision'

scrape_configs:

  - job_name: 'blackbox-http-2xx'
    metrics_path: /probe
    params:
      module: [http_2xx]
    relabel_configs:
      - source_labels: [__address__]
        regex: ([^,]*),(.*)
        replacement: $1
        target_label: __param_target
      - source_labels: [__address__]
        target_label: instance
      - target_label: __address__
        replacement: localhost:9115  # The blackbox exporter's real hostname:port.
    static_configs:
      - targets:
        - https://example.com,example # replaced the real target for the issue creation

It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.


Cannot selectively include types in a declares from a modular node package.

I've bounced this around StackOverflow without any luck, so it may be something that declares files are currently unable to handle... I am trying to create a declares file for a node package, let's call it simply package. This package has different modules that define methods on a single core object. The structure looks like this:
// index.js
require('./foo');
require('./bar');
module.exports = require('./core');

// foo/index.js
var obj = require('../core');
obj.foo_method_1 = require('./foo_method_1');
obj.foo_method_2 = require('./foo_method_2');
// etc
module.exports = obj;

// bar/index.js
var obj = require('../core');
obj.bar_method_1 = require('./bar_method_1');
obj.bar_method_2 = require('./bar_method_2');
// etc
module.exports = obj;

When requiring in node, using require('package'), require('package/foo'), and require('package/bar') all return the same object, however the last 2 will only define the methods within that module, while the first will define methods in all modules.
The goal is to be able structure the declares in a way that will model this, with only types for foo defined when using import * as package from 'package/foo';. However, the problem I keep hitting is that no matter how I structure it (I've tried several approaches), typescript will always end up loading the root declares file (package/index.d.ts) so that all members exist on the object, when this may not be the case.
How can I structure the declares so that only certain members exist when importing sub-modules?
Any help is appreciated. Thank you.

This one is a pain to figure out. RxJS is probably the best example to follow here.
However, trying to do so in your local folder structure, say for testing within the package or from a sibling directory, say test, does not work at all.
The directory containing the library needs to be matched, implicitly or explicitly, by the exclude property of your tsconfig.json!
Here is a working example:
Note that "exclude" defaults to ["node_modules", "jspm_packages", "bower_components"] if left unspecified.
tsconfig.json (in test project)
{
  "compilerOptions": {
    "module": "system",
    "moduleResolution": "node",
    "target": "es5"
  },
  "exclude" : [
    "node_modules",
    "jspm_packages"
  ]
}

node_modules/pkg/pkg.d.ts
export declare class Pkg {
  withName: (this: this, name: string) => this & { name: string };
}

node_modules/pkg/imbue/with-property.d.ts
import { Pkg } from '../../pkg'; // this file must be a module
declare module '../../pkg' {
  interface Pkg {
    withProperty: <K extends string, V>(this: this, key: K, value: V) => this & {[P in K]: V };
  }
}

consumer.ts
import { Pkg } from 'pkg/pkg'
// import .withProperty
import 'pkg/imbue/with-property';

const p = new Pkg()
  .withName('Fred')
  .withProperty('age', 49);

Note that if you move pkg to a non-excluded location, say vendor, and import it from there, all methods will be available regardless of importing 'pkg/imbue/with-property'.
This behavior is a bit confusing but also kind of makes sense.

You can find documentation about authoring declaration files at http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html.

Maybe it would be good to clarify the RxJS usage where mutations are selectively brought into scope along with their implementations. Sure it is just one library, but it is very popular. I think the ambient merging nature of the augmentations that people are likely to add to their own projects is a source of confusion.

It would be helpful to add a section to http://www.typescriptlang.org/docs/handbook/declaration-files/by-example.html with this example.

@mhegazy I've been in and out of the declare file documentation, but haven't found any way to do this. I would definitely be in favor of adding more examples.
@aluanhaddad To clarify, the tsconfig.json file needs to be in the project consuming the library, not in the @types repo, correct?
If this is the case, then it doesn't really work for me as I am trying to create declares files that will be consumed. Also, in your example, importing from pkg/pkg would not include the withProperty method, correct? This also differs from my use case, as in my case importing pkg/pkg would essentially include everything, where importing from pkg/imbue/with-property would only import that method.

I believe it will work. The reason it will work is that your consumers will install the type declarations under the node_modules folder.
You can make your scenario, which admittedly is different than I had thought, work using the same technique by breaking your declarations apart into individual augmentations and then reproviding them in specific groups to match the shape of your library.

@aluanhaddad Apologies if I'm being obtuse here, but let me clarify my understanding. Are you saying that after installing @types/pkg, consumers would use import { Pkg } from 'pkg/pkg' instead of import { Pkg } from 'pkg'?

You can lay it out in a bunch of different ways. The directory structure itself is fairly arbitrary. The reason I used PKG / PKG was as an experiment trying to fix something else that wasn't working that turned out to be unrelated but I never changed it back to index.

The caveat to this is that the module augmentations have to map to whatever directory structure you ultimately choose

This leads me back to my original issue, however. My directory structure is fixed (it already exists) and in node requiring the entire package would be require('pkg'), which would map to import * as Pkg from 'pkg' with types loaded from /index.d.ts. However, importing just a subset with import * as Pkg from 'pkg/imbue/with-property' (to use your example) results in superfluous types on Pkg, as this also loads the types from /index.d.ts.

Declare the primary module in core/index.d.ts, declare augmentations for this module in each corresponding subdirectory/index.d.ts. In the package main import each augmentation from its corresponding subdirectory/index.d.ts and additionally re-export core. Essentially you are there by mimicking the behavior of the corresponding requires. Import as needed.

Hi, sorry for taking so long to respond to this. I've been attempting different approaches here while reading your comments and following along with the declaration merging docs at the same time, but I just can't seem to get module augmentation working as documented. Since there's a lot of files, I finally decided to set up a repo here to make it very clear what I'm trying to do. I feel like there is some core concept I'm missing that is preventing it from working right from the start....

export = N  makes the module an alias of the namespace, and it does not declare a namespace N under the module. so:
declare function pkg() : any;

declare namespace pkg {
  export function core_method(): any;
}

export = pkg;

your module core does not have a namespace pkg. it only has a function called core_method.
An easy way to visualize this is to use vscode, and hit dot on your import pkg.
As for the solution to your issue, pkg\foo\index.d.ts should be :
import * as pkg from '../core';

declare module "../core" {

 // export namespace pkg {
    export function foo(): any;
    export namespace foo {
      export function method(): any;
    }
 // }

}

Hmm... ok this seems to have worked for the namespace, but what about classes? I now have:
pkg/core/index.ts
declare function pkg() : any;

declare namespace pkg {
  //function core_method(): any;

  export namespace FooNamespace {
    function method1(): any;
  }

  export class FooClass {
    method1(): any;
  }
}

export = pkg;

pkg/foo/index.ts
import * as pkg from '../core';

declare module "../core" {

 // export namespace pkg {
    export namespace FooNamespace {
      export function method2(): any;
    }
    export class FooClass {
      method2(): any;
    }
 // }

}

...but this seems to just throw Duplicate identifier 'FooClass'...

Classes do not merge. at runtime, there is only one value.
Classes and interfaces do though. so you can augment it using an interface.
You can find information about declaration merging at: http://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html.

Thank you for following up with me so thoroughly on this! I got a bit busy and haven't had the chance to circle back around to this yet, but everything you mentioned helped point me in the right direction and I think it makes sense now!


chapter 1: snake_case enum and union fields

see: https://github.com/ziglang/zig/issues/2101

Thanks!


Sharing thoughts

Hi, guys. I noticed you also write logger. I also spend some time one this 1 and 2. Of course both much faster bunyan, intel and others. I did not compared to this project actually.
Right idea i got to improve speed - message compilation. So just compile string message to function producing simple string or json string - and you will gain huge speed improvement.

hey @btd we actually started creating functions from strings, in 294ea421 we moved away from that since eval / new Function tends to scare people away, and if no one's going to use it, what's the point.
Even at that I recently attempted the same thing again (this time using new Function), just to see if we could squeeze any more performance out, and the results are negligible. Essentially, we're optimized to the point where we're on par to the building functions from strings approach, without having to scare people with eval.
Having said that, if you want to give your suggestion a go with pino it'd be awesome if you could prove me wrong (say if you can get another 20% that's worth creating a pino fork "pino-renegade" for people who don't mind their loggers using eval).
Closing for now, but let me know your plans, and thanks for sharing those other other loggers!


Expand "Hide Join", "Hide Clip", "Hide Thanks" "Show full sub-counts" to all languages

Just a idea I came up with.

Also, make the subscribe counter compatible language wide, and make the counter move left of the subscribe button depending on the language.

This isn't really feasible with how things currently are. The watch page would need to be significantly reworked, which I might end up doing, but I'm not sure how I should go about it yet, or if I'm even going to do it.


Problems trying to compile exprtk tests adapted

While testing xcc/wcc with an adapted version of the tests from https://github.com/ArashPartow/exprtk the online wcc compile and give different results from gcc, the xcc takes for ever to compile and I aborted it, see attached file.
It's a good source to profile the compiler.
exprtk.c.zip

Here is the output of gdb while trying to compile the preprocessed eprtk.c interrupted at several intervals of several seconds:
./xcc -E exprtk.c > exprtk.pp.c
xcc-dad$ ./cc1 exprtk.pp.c
^C

xcc-dad$ gdb --args ./cc1 exprtk.pp.c
GNU gdb (Ubuntu 10.2-0ubuntu1~18.04~2) 10.2
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./cc1...
(gdb) r
Starting program: xcc-dad/cc1 exprtk.pp.c
^C
Program received signal SIGINT, Interrupt.
0x0000555555576c66 in vec_contains (vec=0x55555b048f50, elem=0x5555582d3ef0) at src/util/util.c:404
404	    if (vec->data[i] == elem)
(gdb) bt
#0  0x0000555555576c66 in vec_contains (vec=0x55555b048f50, elem=0x5555582d3ef0) at src/util/util.c:404
#1  0x000055555555da58 in analyze_reg_flow (bbcon=0x5555557932f0) at src/cc/regalloc.c:332
#2  0x000055555555e2ef in alloc_physical_registers (ra=0x555555793460, bbcon=0x5555557932f0, reserved_size=0)
    at src/cc/regalloc.c:520
#3  0x000055555556b8bd in gen_defun (func=0x5555557a3720) at src/cc/codegen.c:522
#4  0x000055555556b92e in gen_decl (decl=0x555557e105f0) at src/cc/codegen.c:535
#5  0x000055555556b9a5 in gen (decls=0x555555783930) at src/cc/codegen.c:554
#6  0x000055555556a088 in main (argc=2, argv=0x7fffffffd998) at src/cc/cc1.c:77
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
vec_contains (vec=0x55555b048f50, elem=0x5555596b21a0) at src/util/util.c:404
404	    if (vec->data[i] == elem)
(gdb) bt
#0  vec_contains (vec=0x55555b048f50, elem=0x5555596b21a0) at src/util/util.c:404
#1  0x000055555555da58 in analyze_reg_flow (bbcon=0x5555557932f0) at src/cc/regalloc.c:332
#2  0x000055555555e2ef in alloc_physical_registers (ra=0x555555793460, bbcon=0x5555557932f0, reserved_size=0)
    at src/cc/regalloc.c:520
#3  0x000055555556b8bd in gen_defun (func=0x5555557a3720) at src/cc/codegen.c:522
#4  0x000055555556b92e in gen_decl (decl=0x555557e105f0) at src/cc/codegen.c:535
#5  0x000055555556b9a5 in gen (decls=0x555555783930) at src/cc/codegen.c:554
#6  0x000055555556a088 in main (argc=2, argv=0x7fffffffd998) at src/cc/cc1.c:77
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
vec_contains (vec=0x55555b048f50, elem=0x55555a2ce120) at src/util/util.c:404
404	    if (vec->data[i] == elem)
(gdb) bt
#0  vec_contains (vec=0x55555b048f50, elem=0x55555a2ce120) at src/util/util.c:404
#1  0x000055555555da58 in analyze_reg_flow (bbcon=0x5555557932f0) at src/cc/regalloc.c:332
#2  0x000055555555e2ef in alloc_physical_registers (ra=0x555555793460, bbcon=0x5555557932f0, reserved_size=0)
    at src/cc/regalloc.c:520
#3  0x000055555556b8bd in gen_defun (func=0x5555557a3720) at src/cc/codegen.c:522
#4  0x000055555556b92e in gen_decl (decl=0x555557e105f0) at src/cc/codegen.c:535
#5  0x000055555556b9a5 in gen (decls=0x555555783930) at src/cc/codegen.c:554
#6  0x000055555556a088 in main (argc=2, argv=0x7fffffffd998) at src/cc/cc1.c:77
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0, sorted_intervals=0x7ffff6a5c010, vreg_count=245237)
    at src/cc/regalloc.c:410
410	        if (((VReg*)ra->vregs->data[li->virt])->vtype->flag & VRTF_FLONUM)
(gdb) bt
#0  detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0, sorted_intervals=0x7ffff6a5c010,
    vreg_count=245237) at src/cc/regalloc.c:410
#1  0x000055555555e637 in alloc_physical_registers (ra=0x555555793460, bbcon=0x5555557932f0, reserved_size=0)
    at src/cc/regalloc.c:584
#2  0x000055555556b8bd in gen_defun (func=0x5555557a3720) at src/cc/codegen.c:522
#3  0x000055555556b92e in gen_decl (decl=0x555557e105f0) at src/cc/codegen.c:535
#4  0x000055555556b9a5 in gen (decls=0x555555783930) at src/cc/codegen.c:554
#5  0x000055555556a088 in main (argc=2, argv=0x7fffffffd998) at src/cc/cc1.c:77
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000055555555de2d in detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0,
    sorted_intervals=0x7ffff6a5c010, vreg_count=245237) at src/cc/regalloc.c:403
403	        LiveInterval *li = sorted_intervals[k];
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0, sorted_intervals=0x7ffff6a5c010, vreg_count=245237)
    at src/cc/regalloc.c:410
410	        if (((VReg*)ra->vregs->data[li->virt])->vtype->flag & VRTF_FLONUM)
(gdb) bt
#0  detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0, sorted_intervals=0x7ffff6a5c010,
    vreg_count=245237) at src/cc/regalloc.c:410
#1  0x000055555555e637 in alloc_physical_registers (ra=0x555555793460, bbcon=0x5555557932f0, reserved_size=0)
    at src/cc/regalloc.c:584
#2  0x000055555556b8bd in gen_defun (func=0x5555557a3720) at src/cc/codegen.c:522
#3  0x000055555556b92e in gen_decl (decl=0x555557e105f0) at src/cc/codegen.c:535
#4  0x000055555556b9a5 in gen (decls=0x555555783930) at src/cc/codegen.c:554
#5  0x000055555556a088 in main (argc=2, argv=0x7fffffffd998) at src/cc/cc1.c:77
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x000055555555deae in detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0,
    sorted_intervals=0x7ffff6a5c010, vreg_count=245237) at src/cc/regalloc.c:415
415	        if (nip == li->end)
(gdb) bt
#0  0x000055555555deae in detect_living_registers (ra=0x555555793460, bbcon=0x5555557932f0,
    sorted_intervals=0x7ffff6a5c010, vreg_count=245237) at src/cc/regalloc.c:415
#1  0x000055555555e637 in alloc_physical_registers (ra=0x555555793460, bbcon=0x5555557932f0, reserved_size=0)
    at src/cc/regalloc.c:584
#2  0x000055555556b8bd in gen_defun (func=0x5555557a3720) at src/cc/codegen.c:522
#3  0x000055555556b92e in gen_decl (decl=0x555557e105f0) at src/cc/codegen.c:535
#4  0x000055555556b9a5 in gen (decls=0x555555783930) at src/cc/codegen.c:554
#5  0x000055555556a088 in main (argc=2, argv=0x7fffffffd998) at src/cc/cc1.c:77
(gdb)

Here is the profile output from a trimmed down exprtk.c to allow it to finish:
Flat profile:

Each sample counts as 0.01 seconds.
  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 83.10      1.18     1.18        2     0.59     0.59  detect_living_registers
 14.79      1.39     0.21    55549     0.00     0.00  vec_contains
  0.70      1.40     0.01    14236     0.00     0.00  var_find
  0.70      1.41     0.01        4     0.00     0.00  check_live_interval
  0.70      1.42     0.01        2     0.01     0.71  alloc_physical_registers
  0.00      1.42     0.00  1344993     0.00     0.00  equal_name
  0.00      1.42     0.00   390940     0.00     0.00  fetch_token
  0.00      1.42     0.00   387900     0.00     0.00  match
  0.00      1.42     0.00   312158     0.00     0.00  sort_live_interval
  0.00      1.42     0.00    49796     0.00     0.00  is_flonum
  0.00      1.42     0.00    45835     0.00     0.00  vec_push
  0.00      1.42     0.00    45478     0.00     0.00  isutf8first
  0.00      1.42     0.00    43922     0.00     0.00  expire_old_intervals
  0.00      1.42     0.00    43922     0.00     0.00  remove_active
  0.00      1.42     0.00    37717     0.00     0.00  find_entry
  0.00      1.42     0.00    28589     0.00     0.00  table_get
  0.00      1.42     0.00    22084     0.00     0.00  skip_whitespaces
  0.00      1.42     0.00    21961     0.00     0.00  insert_active
  0.00      1.42     0.00    21487     0.00     0.00  skip_whitespace_or_comment

@mingodad Thank you to testing the compiler!
It seems detect_living_registers function is inefficient
if a function has many expressions.
It should be optimized.

Leaving xcc compiling ends up with this error message:
/usr/bin/time ./xcc exprtk.c
cc1: src/cc/arch/x64/ir_x64.c:204: ir_out: Assertion `ir->dst->phys == ir->opr1->phys' failed.
Command exited with non-zero status 1
837.09user 0.36system 13:57.47elapsed 99%CPU (0avgtext+0avgdata 121672maxresident)k
0inputs+0outputs (0major+53735minor)pagefaults 0swaps

While trying to output the inequalities in exprtk.c I noticed that wcc cant output %.16f and looking into vsnprintf.c and changing some long by long long fixed the problem (probably should also do the same in other places`:
@@ -240,17 +240,17 @@ vsnprintf(char *out, size_t n, const char *fmt_, va_list ap)
       double x = va_arg(ap, double);

       o += sprintsign(out + o, x < 0, sign, &order);
       x = x < 0 ? -x : x;

-      long intPart = x >= 0 ? (long)x : -(long)(-x);
+      long long intPart = x >= 0 ? (long long)x : -(long long)(-x);
       o += snprintulong(out + o, n - o, intPart, 10, kHexDigits,
                         order, padding);
       if (o < n) {
         out[o++] = '.';
         suborder = suborder > 0 ? suborder : 6;
-        unsigned long fraction = (unsigned long)((x - intPart) * pow10(suborder));
+        unsigned long long fraction = (unsigned long long)((x - intPart) * pow10(suborder));
         o += snprintulong(out + o, n - o, fraction, 10, kHexDigits,
                           suborder, '0');
       }
 #endif
     } else {

Changes to exprtk.c:
void equal(double a, double b) {
	++total_count;
	if(a == b) {
		++total_eq;
	}
	else printf("%d : %.16f != %.16f\n", total_count, a, b); //!!!<<< added this line
}

wcc onine before:
RuntimeError: float unrepresentable in integer range

wcc online after:
3 : 0.0000001016675003 != 0.0000001016675003
5 : -0.0000002061871832 != -0.0000002061871831
13 : 0.0000000051749797 != 0.0000000051749797
15 : 0.0000000167198425 != 0.0000000167198425
17 : 0.0000000051749797 != 0.0000000051749797
30 : 0.0000001016675020 != 0.0000001016675021
...

It seems like using long in several places for wasm should be replaced by long long (that also would help in xcc to possible port it to windows).

When lexing integers we need to check the value range to classify then properly .

I suspect that the difference between gcc/xcc-compiled and online-wcc
is caused from my own strtod implementation is inaccurate.
I think using printf("%.16f") is other topic and
I want it as is (or split issue).

I'm gonna close this issue.


Add a Gitter chat badge to README.md

opscode-cookbooks/php now has a Chat Room on Gitter
@Rockstar04 has just created a chat room. You can visit it here: https://gitter.im/opscode-cookbooks/php.
This pull-request adds this badge to your README.md:

If my aim is a little off, please let me know.
Happy chatting.
PS: Click here if you would prefer not to receive automatic pull-requests from Gitter in future.

Hi. I am an automated pull request bot named Curry. There are commits in this pull request whose authors are not yet authorized to contribute to Chef Software, Inc. projects or are using a non-GitHub verified email address. To become authorized to contribute, you will need to sign the Contributor License Agreement (CLA) as an individual or on behalf of your company. You can read more on Chef's blog.
GitHub Users Who Are Not Authorized To Contribute
The following GitHub users do not appear to have signed a CLA:

@gitter-badger

Please sign the CLA here.

Ill close this so I can add the badge in a better spot


Mount Volumes from Host

What would you like to be added?
An application/robot should be able to mount volumes from host when needed. It can be added as a new additional configuration with the key HOST_DIR. Configuration should include the followings:

Host path of the directory
Container path (where the files will be mounted on)

Why is this needed?
It's needed to enable using shared repositories and storages between different applications. (eg. model repository)

The format could be:
<HOST_DIR>:<INTERNAL_DIR>,<HOST_DIR>:<INTERNAL_DIR>


Add docs/description/payloads to the source code responsible for the node REST API. (public/private)

Suggestion details
Add more info about the pyrsia node exposed REST API used by the pyrsia clients (e. g. Pyrsia CLI).
Additional details
No response

Are you actively working on this? Or is it on hold for now? @karolh2000

@betarelease it's on hold, I want to do it at some point but not working on it actively.


Code action for deprecated syntax in operation types

The annotation describing the characteristics of an operation type has changed from in 0.6. It would be nice to provide a code action that updates the syntax on click.

Formally filing an issue to match the PR.
This is done with PR #120

Merged into master with PR #130.


[Languages] Simulating Voting Systems with Python

Proposed title of article
Simulating Voting Systems with Python
Proposed article introduction
Voting is a key element in a Democracy. From time to time, we get to choose our representatives. Each group, city, state, country (etc.) has its own voting system. In a democracy, the purpose of voting is to choose the one (or ones) candidate(s) who better represent the voters. But this is what really happens? How different voting systems can change the results of an election?
Luckily, there are people who studied this through the lenses of math and science. In this article, we are going to understand some different voting systems, visualize them and try to answer questions like those. For this, we are going to use Python.
Key takeaways

Understanding different voting systems from the point of view of math and science
Simulating voting systems with Python
Visualizing different voting systems with Python and Matplotlib

Article quality
I haven't found any tutorials about simulating voting systems in any language, so this is a good contribution as it may be the first. Also, it's a good way for the readers to understand the systems while coding and seeing the results by themselves.
References

Primer - Alternate Voting Systems
Types of Voting Systems
To Build a Better Ballot

Templates to use as guides

Tutorial Template

Hi @csamuelsm
Thank you for submitting your article suggestion. Upon running a simple google search, I came across several articles and GitHub repos covering the same topic as the one you've suggested. We therefore cannot move forward with your article. We look for more original content that isn't saturated over the internet.
You are more than welcome to explore other topics that may interest you.


⚠ Secret Website 3 has degraded performance

In 6ff3ff0, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 3986 ms

Resolved: Secret Website 3 performance has improved in 3fe6f54.


Time format with optional 1000s hour separator

now:
write("numeral(10000000).format('00:00:00');"); => 2777:46:40
next (possible)
write("numeral(10000000).format('0,0:00:00');"); =>2,777:46:40

quick and dirty hack to fix this (partially not working) https://github.com/samuraiii/Numeral-js/commit/64d7f9378648980ffa0a91758eee36f4093478ab


Installation failed

Installation failed
Hello, I'm just trying to install this package following the instructions:
npm install vue-table-component --save

Next, you must register the component. The most common use case is to do that globally.
//in your app.js or similar file
import Vue from 'vue';
import { TableComponent, TableColumn } from 'vue-table-component';

Vue.component('table-component', TableComponent);
Vue.component('table-column', TableColumn);

then when I compile with webpack I got this error:
WARNING in ./resources/assets/js/bootstrap.js
63:33-47 "export 'TableComponent' was not found in 'vue-table-component'
 @ ./resources/assets/js/bootstrap.js
 @ ./resources/assets/js/app.js
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

WARNING in ./resources/assets/js/bootstrap.js
64:30-41 "export 'TableColumn' was not found in 'vue-table-component'
 @ ./resources/assets/js/bootstrap.js
 @ ./resources/assets/js/app.js
 @ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss

Anyone can help me with this?
Thanks :+1:

I assume you inadvertently downloaded the alpha version that was just published to NPM try using npm install<EMAIL_ADDRESS>--save instead

Yes, I've done that already and forgot to close the issue. Thanks anyway @ShaneShipston :+1:

I had this issue after the fix above I'm now getting:
ERROR in ./node_modules/vue-table-component/dist/index.js
Module not found: Error: Can't resolve 'moment' in '/app/node_modules/vue-table-component/dist'
@ ./node_modules/vue-table-component/dist/index.js 3:27-44
@ ./resources/assets/js/app.js
@ multi ./resources/assets/js/app.js ./resources/assets/sass/app.scss
Any ideas?


made changes so FLAnimatedImage is optional

Should USE_FLANIMATED_IMAGE be defined as something by default? Maybe if USE_FLANIMATED_IMAGE is undefined and has_include(FLAnimatedImage etc) is true, then USE_FLANIMATED_IMAGE should be true?

@Kurry would love to get this merged in, any chance you could take a look at my comments? I think addressing the version number stuff should allow this to merge without conflicts.

Of course! No problem, I'm moving apartments and stuff and can look at it tomorrow or Friday by the latest. Thanks for the updated comments. Will try to get to it ASAP.
Sent from my iPhone

On Sep 30, 2015, at 12:06 PM, Garrett Moon<EMAIL_ADDRESS>wrote:
@Kurry would love to get this merged in, any chance you could take a look at my comments? I think addressing the version number stuff should allow this to merge without conflicts.
—
Reply to this email directly or view it on GitHub.

@garrettmoon
In response to your comment:
Should USE_FLANIMATED_IMAGE be defined as something by default? Maybe if USE_FLANIMATED_IMAGE is undefined and has_include(FLAnimatedImage etc) is true, then USE_FLANIMATED_IMAGE should be true?

#if __has_include(<FLAnimatedImage/FLAnimatedImage.h>)
#define USE_FLANIMATED_IMAGE    1
#else
#define USE_FLANIMATED_IMAGE    0
#define FLAnimatedImage         NSObject
#endif

I think the code you wrote here ensures that USE_FLANIMATED_IMAGE is always defined to something by default. You just have to note that we use the macro for both deciding if we should import a framework and when we should map FLAnimatedImage to NSObject.

@garrettmoon I think should be all set. Let me know if you see anything else.

Thanks so much for doing this @Kurry!


cleanup extra format

Remove stray klog format %s

D'oh! Thanks for catching that.
/lgtm

D'oh! Thanks for catching that.
/lgtm

Thanks for all the cleanups! :)
I believe we used to have a glinted in GitHub CI may be, we should add it on openshift CI


All selection bindings no longer work (x, *a, etc.)

Just noticed that I can no longer select tasks with x, nor can I select all tasks with *a. This is the case both on Brave and Chrome.

Yes just noticed this.

Thanks for reporting!  Fixed in version 81
Todoist appears to have renamed ItemSelecter.toggle to ItemSelecter.selectClick.  This is a somewhat strange refactor as it still toggles.  But hey, it's working now.


Add data-test-id for Table Components to use for Cypress Testing

🙋 Feature Request
In e2e Cypress testing, it suggests to use data- for the elements we want to query for as best practices. https://docs.cypress.io/guides/references/best-practices#How-It-Works
It would be great if the Spectrum components allows us to pass in a prop, like data-test-id to define the elements we want to test, or automatically add this for us in the base elements with the row/cell key,  so we can run the e2e test with this query anchor.
🤔 Expected Behavior

When running cypress e2e, we can search for a table element through the usage of data-test-id

😯 Current Behavior

There is no way for developers to pass in this value manually for Cypress testing purposes through props.
I have a sandbox demo running a quick check to make sure the prop passed in is not being addressed to the table elements

Codesandbox demo:
https://codesandbox.io/s/inspiring-thunder-j04l6?file=/src/App.js
Image Example:

From the image, the expected behaviour is that if we have data-test-id passed in to the corresponding element (in this case the column header FOO, then there should be an attribute in the div, which has data-test-id="cypress-columnHeader-foo" in it.
💁 Possible Solution

Allow user to pass this prop in to populate this value themselves
Automatically add a data-test-id attribute to the column headers, rows and values based on it's corresponding key passed in/

🔦 Context

In AEP platform library, the current table that is implemented there has this anchor point.
https://git.corp.adobe.com/experience-platform/platform-library/blob/master/components/platform-components/src/DataTable/DataTableRow.js#L58

💻 Examples
https://git.corp.adobe.com/experience-platform/platform-library/blob/master/components/platform-components/src/DataTable/DataTableRow.js#L58
🧢 Your Company/Team
AEP - Saruman

CC: @jluyau @matthewdeutsch

Hi @fhschan
We support passing data-test-id to the top level element of a component. From there you can use semantics to find the elements needed in your tests. Hopefully this page on testing will help you https://react-spectrum.adobe.com/react-spectrum/testing.html

Hi @dannify - Thanks for the response!
Yes, I found that we can pass in at the Table component level, but our existing Cypress cases also has the ability to define it at the row and cell level.  Was wondering if this implementation is possible as well?
Understand that we can query for a cell by string, (eg. getByLabelText in the case of testing library, or get for cypress).  In the event where we want to ensure a specific value is in a specific row, which is what we have for the test cases, having the ability to have data-test-id prop to the row element would help significantly to find the exact row we are looking for.
eg. A dataset with unique ids, if we can map the row to that id (given that this unique id is hidden visually on the table), we can simply confirm that the row has this data, and then we can query the cells within the row.

Please disregard! Understand that RS will only support parent level prop for this data-test-id. Thanks all!


Allow doctrine-bundle 1.7?

The requirement for doctrine-bundle should be "^1.6.10 || ^1.7"

👍 Can you submit a PR?

I just realized that, indeed, ^1.6.10 is actually allowing 1.7.*
My bad


Background color not being set

Hello, I'm writing a colorscheme for my neovim and i set the Normal group like so in my theme file:
Group.new('Normal',  colors.fg, colors.bg, styles.NONE)

with fg and bg being:
Color.new('fg', #c5cdd9')
Color.new('bg', '#2b2d3a')

but, the background color is not correct, while every other color is. This is what the background color is at the moment

which has the hex value 282c34 instead of 2b2d3a. Do you have any idea why?
The entire theme is located here if needed.

Might need to update the link.
Are you sure image compression is not to blame for this?

I ran into this too. It seems bg, background, etc. are reserved words (which seems awkward for a theme helper/framework. What are your thoughts @tjdevries, might you be open to a PR to free up these reserved words?

yes, definitely open to that

🔥 https://github.com/tjdevries/colorbuddy.nvim/commit/5114e2c9ac9c0a39487c45f848c55f4f5c8517df


Add base shipping price to order

I want to merge this change because of adding the base shipping price to the order.

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations
[ ] Documentation needs to be updated

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[ ] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

Task linked: SALEOR-7786 Create shipping base price in Order


Publish to Play Store?

Although I primarily imagined this being used as an in-app application for other developing apps, it may be useful as a stand alone app.

In seeing this as an in-house dev utility app, closing ticket.


Docker hosting updates

Expose Biz websocket under a path on web, not a separate port. Switch to standard web ports for http/https. This simplifies prod hosting as only the two common ports must be exposed for the web service.
For local dev the 8443 websocket port is routed directly to the biz container. This port should not be exposed in production / external hosting.
This required some minor client updates. The changes made here will use the host:port combination that the page is currently served on to request the /ws path. A better long term solution would be to provide these as defaults but allow the clients to specify an override url for the biz ws location.
The web dockerfile was reworked to use multistage builds. I grabbed the code from the previous version, before space reduction, and simply updated to use pre-built docker images for node and  caddy server. Overall the image size should be similar, but with the benefit of docker layer caching for node builds.
Additionally the Caddyfile was update to version 2.0 to support the versions available from dockerhub. The Caddy files have been split into a local and remote version with http port 8080 for localhost. The docker-compose file has both with remote currently commented out. For prod, port 8080 should not be exposed publicly.
This should fit most cases, but could use some feedback on how people are hosting remote and locally for dev.
Fixes #75

I think this approach makes sense. I am using a custom frontend and also expose biz directly.

LGTM!

I found error when i deploy online

I use 443 port and ./scripts/webStart.sh to deploy
1、sfu.toml uncomment ice line
[webrtc]
ice = ["stun:stun.l.google.com:19302"]
2、demo's webpack.config.js add two lines
module.exports = {
.........
contentBase: './dist',
hot: true,
host: '<IP_ADDRESS>',
disableHostCheck: true,
port: 443,
}
};

#148
revert first

Well it looks like a websocket connection problem. Do you have a shot of the network tab to see what address it was having an issue with?
If you are using the start web script to bring up a node server how is ssl for web and biz socket being terminated in your setup?
Also the node server is probably not needed for prod hosting at this point. The web container can be rebuilt quickly when deploying front end changes, and is configured to serve and proxy things correctly.
Here is an example I have hosted using only docker and the instructions listed in the Readme updates from this PR.
https://chat2.overcloud.org/
The only step I took that is not in the list was enabling the local docker build for the web container instead of using the default remote images.
If you have any more details on how you are hosting that would be useful.

wss://<IP_ADDRESS>:8080/ws?peer=080a7733-3df8-4a79-b748-f593a0eb044c
port changed from 8443 to 8080

Thanks for the info. Yep, as I mentioned in the PR description the clients were updated to look on the same host:port that the page is served from for ws, 8080 in local config and 443 with prod Caddyfile. The provided Caddy files are configured with this websocket proxy correctly out of the box and with ssl in prod.
Port 8443 is still exposed at the docker level, but routes directly to the biz container so no ssl at that level.


Add figs and conclusions about 'spatial'/'temporal' example to Rmd

[ ] Figures (maybe including one showing the differences between regular and hotspot grid cells?)
[ ] Conclusions /summary of take home messages from prelim sims (or just basic results)

CV inside and outside hotspot would be ok. I think one like the first fig (with a vessel effect of 0.7) where you compare the base case to a scenario where a hotspot is included in the sims, would be good. But it is open ended; we can add whatever is relevant. Or if you don't think the framework is providing useful outputs yet, we could also just add a paragraph of text about proposed comparisons.


Icon Usage & IconPool: Custom icons via IconPool and default UI5 icons can not be used together

OpenUI5 version: ALL
Browser/version (+device/version): ALL
URL (minimal example if possible): http://jsbin.com/solatafena/edit?html,output
Steps to reproduce the problem:

Have a look at icon sizes

What is the expected result?
Custom icons and UI5 icons are size-wise aligned to each other
What happens instead?
They are not.
Any other information? (attach screenshot if possible)
This is a follow up to #1934

When you place the external icon, it gets the styles associated with SAPUI5 icons e.g. styles classes sapMGTHdrIconImage sapUiIcon sapUiIconMirrorInRTL. In the given example, this will set font-size of 40px (2.5rem), which for the given external icons comes with the blank space around them and the colored part appears smaller - the way the external icons are designed. This is illustrated by my colleagues with http://jsbin.com/viwodolare/edit?html,output (change the size to see how the colored part of each icon changes)
For example the FontAwesome icon - https://fontawesome.com/v4.7.0/icon/check-circle/
You can use additional style classes to size the FontAwesome icon e.g. fa-3 (see the rendered HTML) which will set a font-size of 4em, yet the same size for other not Font Awesome icon will look differently.
What can be done, you will have to consider the design of each set of icons and adjust sizes based on glyphs and space around them. Same as for fonts:

Or stick to a single icon set (font), where the content should be considered with the same design.


Add a task_name property to DBTaskResult

Closes #126
Added a fairly simple method/property to DBTaskResult to return the task name based on the saved path in the database.
This does change the name of the column in the admin from "Task" to "Task name" - let me know if that's an issue at all.

Updated - and improved the tests a little bit this time round.


More Accessibility

Putting the issue back up, my previous PR closed the entire previous issue.

Heading tags need to be fixed up so that levels aren't skipped and are in a more natural order. One example is the EducationCard component using an <h6> heading followed immediately by <h4>, and another example is the SingleBlog component going from an <h3> to an <h6>
Semantic HTML needs to be ensured. One example of an issue is the close button on the menu drawer being a <div> when it should be a button
Alt attributes on images need to be looked at. I think for the most part these are good, but there are some cases where I think the attribute should be changed (one example is the image in the Contact section, as that should really have a blank alt="" attribute since it seems more decorative than anthing)
I think certain sections could be tweaked so that the items are in an actual list. Things like the Education section I think could benefit from having each individual education item as part of an actual <ul> list, then just have styles added to remove the list markers.
Keyboard navigation needs to be improved. Currently it is incredibly difficult if not impossible to tell what element has focus when navigating via keyboard. I think a lot of this can be fixed by just giving the :focus pseudoclass the same styling as :hover
Form labels need to be linked to an input. Right now the labels have the for attribute, but they aren't actually linked to their respective inputs with an ID.

I would like to work on this issues if assigned


Support for Windows Server 2022

Context
Windows Server 2019 (1809) will be EOL in about 6 months. Attempting to run a Windows-based Editor container in Windows Server 2022 returns
ERROR: Job failed (system failure): Error response from daemon: hcs::CreateComputeSystem 495d65b4034d0510367c8c9daa8a60ff46591a2653d5aebe4e6921620e3f0e40: The container operating system does not match the host operating system. (exec.go:78:0s)
Suggested solution
Add support for Windows server 2022 in the Base template - It's unclear if we need to support both going forward, or if we should simply stop supporting Win2019 as MS is doing
Considered alternatives
Not really one, unless we want to keep using an EOL OS for il2cpp builds
Additional details
https://learn.microsoft.com/en-us/lifecycle/products/windows-server-2019

Images are now Server 2022 in v3


Only alias tables on self join cases and fix #1078

On #1054 aliasing was added to all tables to fix the self join cases, however that made the error messages a bit unclear:
GET "/items?select=id,wrong"
{"hint":null,"details":null,"code":"42703","message":"column items_1.wrong does not exist"}

GET "/clients?select=*,projects(id,name,wrong)"
{"hint":null,"details":null,"code":"42703","message":"column projects_2.wrong does not exist"}

GET "localhost:3000/tasks?select=id,name,project(id,name,client(id,name,wrong))"
{"hint":null,"details":null,"code":"42703","message":"column tasks_3.wrong does not exist"}

There may be other cases where the error messages and generated queries are harder to understand.
Self reference fks are rare in db designs, so I thought it'd be better to restrict the aliasing to only self joins.

Thanks for this! I'll add a review in the next day or two.

Actually Steve I trust your judgement. I'll let you do with this PR as you think best.


transformer for VARS converts keyword Catenate incorrectly

First of all, thanks for VAR transformer. It work great!
I found 1 issues
Keyword Catenate is converted incorrectly. It doesn't take the seperator attribuut into account.
old code:           ${dbUrl}  Catenate  SEPERATOR=  ${dbUrlPrefix}  :currentSchema=${schema} is converted to
converted code  VAR  ${dbUrl}  ${dbUrlPrefix}  :currentSchema=${schema}  SEPERATOR=${SPACE}
The old seperator meant, use NO seperator, and the converted code uses a space. This is different!

Thanks - I assumed incorectly that missing or empty separator equals ${SPACE}, whether it should recognize SEPERATOR= as SEPERATOR=${EMPTY} and only no separator at all should yield defau;lt ${SPACE}.


Chat wallpaper + suggestion similar to issue #25

Hi. I have a few suggestions and issues to appoint. You wrote that "any sort of contribution is more than welcome", and I'll be very happy if any of my suggestions get to help you in some way.
First of all, I'm mindblown by the capabilities of CSS customization using browser extensions. I've just found out about it and your project fits perfectly with my likes. I might be a novice in terms of HTML and CSS coding, but I've figured a few things out when researching about the issues and I think I've managed to change the code to make things work. I'll include code sections on each suggestion. I also tried to follow your style of comments and structure (I don't even know if it's a common standard). As to where to add the code, I leave it up to you. Without further ado, here are the suggestions:

Chat wallpaper.
I've noticed that you included a TODO comment on this section of your code. After a lot of searching, I found that the YUoyu class has the WhatsApp default "Doodle background", as you call it. As I've always wanted to have chat wallpaper on Web just as it is on mobile, I tried to make it work on this code. (Web allows us to put solid colors as wallpapers, but who wants that?)
I first created a variable for the wallpaper image, as you did with the background variable --image. The variable i created, --chatwallpaper, is set as the background image of the class _1GX8_. The background size is set to cover, so that it fits the chat div.
The default doodle wallpaper still appears over the --chatwallpaper image. To avoid this, I simply set the opacity to 0 on the YUoyu class.
The code inside :root to add the variable:
    --chatwallpaper: url(/* image url here */)

The code for this:
  /* Chat wallpaper. */
  ._1GX8_ {
    /* Set chat wallpaper image. */
    background-image: var(--chatwallpaper) !important;
    /* Set background image to fit to chat area. */
    background-size: cover !important;
  }
  .YUoyu {
    /* Set default WhatsApp chat background's opacity to 0. */
    opacity: 0 !important;
  }

Embedded videos missing background color.
There's an issue that was opened 12 days ago with the exact same title (Issue #25). I gotta say I've arrived in time, and I understand that you might not have answered because not so much time has passed since then. In Issue #25, the person who opened the Issue suggested to add the following code to solve it:
    ._3C3Sj { background-color: var(--light); }
It works fine, but, following the "dark" name of the theme, I think it's fitting to set the background color to --dark and setting the text color to --light later, which is the exact same thing you did on the sections /* Document embeds. */ and /* Link embeds. */. By the way, the code that I'll suggest can be put inside /* Link embeds. */, but, again, I leave it for you to decide where to put my code. I've worked out the code needed for YouTube and Instagram embedded video links, so I'm not sure it will work with other sites, although it looks like it's a standard since both sites share a few style names on the original style code.
The code for this:

  /* Video link embeds. */
  ._3C3Sj {
    /* Embedded video link background color */
    background-color: var(--dark) !important;
  }
  ._2a30d {
    /* Instagram video description OR YouTube video title */
    color: var(--light) !important;
  }
  .vFSKE{
    /* YouTube video description. */
    color: var(--light) !important;
  }
  ._37Q6_{
    /* Domain URL. */
    color: var(--light) !important;
  }

P.S.: I've decided to make my own background image on Photoshop, and thought that anyone reading might enjoy it. Here's the link: https://i.imgur.com/WLzE96a.png
There are lines on the top and bottom of the image. I've drawn them to work perfectly on a maximized Google Chrome window with the favorites bar hidden. Put the imgur link in place of the --image variable in order to use it.

Hi! Thank you for making this very detailed post with some great suggestions.

I'm mindblown by the capabilities of CSS customization using browser extensions. I've just found out about it and your project fits perfectly with my likes.

Awesome! You might also like my other projects that are hosted on GitLab specifically themes for Discord, HackerNews and GitLab itself. The one for Discord has by far the largest amount of custom CSS and the one for GitLab is my largest project up to date.

I also tried to follow your style of comments and structure (I don't even know if it's a common standard).

Comments are there so we know what obfuscated CSS does. The coding style is very weird but it made sense back when I did a major refactor. I've been thinking about refactoring it with Stylus-lang but I'm not motivated enough to do it since everything just works and it's a nightmare to post updates on userstyles.

Without further ado, here are the suggestions.

They're looking great! If you'd like to, feel free to open separate pull requests and I'll be happy to merge them. Actually, I encourage you to do it! :smile:

Put the imgur link in place of the --image variable in order to use it.

Since I exposed that variable in the configuration menu, simply click on Stylus icon on your toolbar then on the configure (gear icon) button and replace the existing link with a new one.
Editing code locally prevents auto-update and that's not an ideal situation because the only way to get auto-update back is to force update the theme and that'll remove all local changes. If you want to add/change/test styles, a better way is to make a companion style -- just a separate style that applies to the same website.

If you have any questions, do let me know. :smiley:

Hi, i hope you don't mind sharing the extension link here too, which uses your CSS project as a major function, it has the option to easily change the background image of the chats also, with a customization panel for the night mode colors.

Hi. Thanks a lot for sending me this email. I had to rework the CSS code when the WhatsApp Web site went through an update XD. All the classes had other names, and it was a mess. This extension makes it a lot easier, mostly of course for users that don’t want to get messy with code, which includes me. It looks great, and I’m very happy with the results.
I’m just worried about the default chat background still being visible, albeit just a little bit (https://web.whatsapp.com/img/bg-chat-tile_8a055527b27b887521a9f084497d8879.png).
I’m currently using a temporary Stylus code to work around the issue, and I really think that it’d be nice if you implemented this function to your extension, which is already great.
The background is located on a div with class=”fzCXy”, and the image is in the aforementioned link. It can be disabled simply with this code I’m currently using:
.fzCXy {
background-image: none !important;
}
Two more things, both related to the custom background image URL text box in the extension menu.
Is it possible to save the link in case the user switches the “custom background image” off and on again? I think it would be best if the text box “remembers” what was the last image it used.
Last thing, when pasting the link, a “Save” button appears. Is it possible to trigger the save option with the Enter key? It’s because I’m a “keyboard user”, I’d say, he he. I believe other users like me would like to set an image as background without the need to grab the mouse.
All things considered, it’s a very good extension, and I’m happy that I found it. I’m looking forward to its future development. Congratulations and keep up the good work!
De: tinyCoder32
Enviado:Monday, June 3, 2019 8:15 PM
Para: vednoc/onyx
Cc:KDASthenerd; Author
Assunto: Re: [vednoc/onyx] Chat wallpaper + suggestion similar to issue #25(#27)
Hi, i hope you don't mind sharing the extension link here too, which uses your CSS project as a major function, it has the option to easily change the background image of the chats also, with a customization panel for the night mode colors.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Thank you so much for the suggestions and i'm happy you found it useful. I guess you are right, I must keep the last used background image saved when the option is switched off.
I will take your notes into my considerations for the next version in a few days god willing.

Two more things, both related to the custom background image URL text box in the extension menu. Is it possible to save the link in case the user switches the “custom background image” off and on again? I think it would be best if the text box “remembers” what was the last image it used. Last thing, when pasting the link, a “Save” button appears. Is it possible to trigger the save option with the Enter key? It’s because I’m a “keyboard user”, I’d say, he he. I believe other users like me would like to set an image as background without the need to grab the mouse.

You can update in 60 minutes to Version 2.0.4, the first suggestion was great, now the plugin remembers the last background url you saved. Enter key saving will be in the next update god willing.


Dependency Issue with Graphql v15 vs v16

Question about GraphQL Shield
Hello!
I'm trying to add graphql-shield to one of my projects, but I can not install it.
It looks like that I can't use it with graphql v16.x.x
With v15 i get it to work. Is this normal?
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/graphql
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>|| ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0" from<EMAIL_ADDRESS>npm ERR! node_modules/graphql-shield
npm ERR<EMAIL_ADDRESS>from the root project

Thanks!

Probably shouldn't close this one? Updating for graphQL 16 compatibility I guess would be the fix?

Can we get an update to GraphQL 16?

Yeah, this is really needed.

Can confirm, still an issue, graphql v15.x requirements collide with Apollo packages that utilize v16.x

@maticzav would you accept a PR to bump to GraphQL v16?

Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼

This is a major issue. This package isn't compatible with Apollo anymore. Same problem with graphql-middleware. Only solution is to abandon these packages.

Can confirm. Doesn't work still.

Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼

It would be great to know how to transition from graphql-shield to @graphql-tools/resolvers-composition for nexus users.

graphql v16 support was released

I've just recently done this transition, it's very simple once you have a
basic example, I will write one up.
On Thu, 8 Sep 2022, 05:23 Hays Clark, @.***> wrote:

Just use https://www.graphql-tools.com/docs/resolvers-composition 👍🏼
It would be great to know how to transition from graphql-shield to
@graphql-tools/resolvers-composition for nexus users.
—
Reply to this email directly, view it on GitHub
https://github.com/maticzav/graphql-shield/issues/1389#issuecomment-1240140559,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AILMBQX7VRLISIJ7J33FYPLV5FE3DANCNFSM5PPDN2QA
.
You are receiving this because you commented.Message ID:
@.***>

--
Book a Demo today for our new NEXTVOICE platform. Click here
https://www.vadacom.com/for more information and book a demo at
@.** @.***>
*

New Admin portal
focused on simple self-management
Install our softphone on Android or
iPhone and on PC or Mac and communicate where ever you are
A system
built as a high resilient telco-grade voice platform


[CT-723] COPY INTO command not getting committed with dbt (on Snowflake)

Describe the bug
I try to unload data from Snowflake to S3 using dbt.
dbt run-operation unload_data_to_s3
{% macro unload_data_to_s3() %}

    {{ log("Unloading data", True) }}
    COPY INTO <my_path_stage>
    FROM <my_table>
    FILE_FORMAT = (TYPE=CSV COMPRESSION=NONE)
    SINGLE=TRUE
    {{ log("Unloaded data", True) }}

{% endmacro %}

There are no errors on the log using dbt, but the file is not uploaded. However, everything works fine if I run the copy into command on the Snowflake CLI.
Things that I have tried:

ALTER SESSION SET AUTOCOMMIT=TRUE
ALTER USER {{ target.user }} SET AUTOCOMMIT=TRUE
wrapping the copy into command with BEGIN; and COMMIT;

Am I missing something?
Steps To Reproduce
You can use my macro on any table and defined stage.
Expected behavior
Unload a new CSV file on my s3 bucket.
System information
The output of dbt --version:
installed version: 0.21.0
   latest version: 1.0.0

Plugins:
  - snowflake: 0.21.0
  - postgres: 0.21.0
  - redshift: 0.21.0
  - bigquery: 0.21.0

The operating system you're using:
MAC
The output of python --version:
Python 3.7.13
Additional context
The inverse pattern (load data from s3 to Snowflake) works as expected using this tool: https://github.com/dbt-labs/dbt-external-tables

I have solved wrapping the copy into command with:
{% call statement('unload_test', fetch_result=true, auto_begin=true) %}
...
{% endcall %}

@bukosabino Glad you were able to solve this with auto_begin=True! I think you would also be able to solve it by wrapping your DML in explicit begin; + commit; statements:
{% macro unload_data_to_s3() %}

    {{ log("Unloading data", True) }}
    BEGIN;
    COPY INTO <my_path_stage>
    FROM <my_table>
    FILE_FORMAT = (TYPE=CSV COMPRESSION=NONE)
    SINGLE=TRUE;
    COMMIT;
    {{ log("Unloaded data", True) }}

{% endmacro %}

We made dbt do this for its DML statements during materialization, following Snowflake's recommendation last year. There's even A Macro For That:
https://github.com/dbt-labs/dbt-snowflake/blob/0829bd362568cb4003c05f4cd9f6a7dfd90cc5a6/dbt/include/snowflake/macros/adapters.sql#L262-L276

Hi @jtcohen6 ,
I tried using the options that you proposed and some others based on this issue:

ALTER SESSION SET AUTOCOMMIT=TRUE
ALTER USER {{ target.user }} SET AUTOCOMMIT=TRUE
wrapping the copy into command with BEGIN; and COMMIT;

But, it never worked, call statement was the solution because I wanted to run from run-operation.
Thanks anyway!
And congrats on this fantastic project!


call injectReducer in onEnter() if fetch async data in react-router onEnter hook

I came with a problem that I should fetch async data with react-router's onEnter hook.I just follow the approach of Counter example, dispatch a thunk in onEnter() , and inject the relative reducer in getComponent() as below:
export default (store) => ({
  path: 'panel/:panelId',
  getComponent(nextState, cb) {
    ...
    require.ensure([], (require) => {
      const Panel = require('./containers/PanelContainer').default
      const reducer = require('./modules/panel').default

      /*  Add the reducer to the store on key 'panel'  */
      injectReducer(store, { key: 'panel', reducer })
      /*  Return getComponent   */
      cb(null, Panel)

    /* Webpack named bundle   */
    }, 'panel')
  },
  onEnter: (nextState) => {
    store.dispatch(fetchPanelConfig(nextState.params.panelId))
  },
})

Something strange happened here. Because the 'injectReducer()' inject reducer in async way,
we can't ensure that the 'panel' reducer is injected properly before 'fetchPanelConfig' action finished.
Behavior of program became weird.
I just try to move the 'indectReducer' in 'onEnter' method, and everything works well.
onEnter: (nextState) => {
    const reducer = require('./modules/panel').default
    /*  Add the reducer to the store on key 'panel'  */
    injectReducer(store, { key: 'panel', reducer })
    store.dispatch(fetchPanelConfig(nextState.params.panelId))
  },

I was still confused of how 'require.ensure' works here, any explanation is appreciated.

I guess you already solved the issue, but just for the record. When dealing with API calls could have three actions, each of them dispatched on different cycles of the fetching process.
1- When the data is requested dispatch an action that sets the state indicating to the user that something is  loading, usually a flag isFetching and render a loading icon.
2- When data is finally fetched dispatch another action that sets the isFetching flag to false and renders the component with the corresponding data.
3- This one is optional, in case you get an error then dispatch an action that sets the state so that the user is notified about the problem .
I'm just starting with Redux so I might be wrong, feel free to confirm this in their documentation.

Your solution of colocating the injection and dispatch is correct :).

@huangzhuolin with this solution fetchPanelConfig fires on every child route (eg :panelId). Is there a way to fire onEnter on the parent route only?

@foodgy I guess you just want to fetch some data at parant path eg,  /panel. At this point you may need to define your parent Router explicitly and put the fetch logic there.

@huangzhuolin well, I do have separate route config for parent and children.
Parent route configuration example (list of projects):
export default store => ({
  path: 'projects',
  childRoutes: [createProjectRoute(store)], // Child route for project
  onEnter: nextState => {
    const projects = require('./modules/projects').default

    injectReducer(store, {
      key: 'projects',
      reducer: projects
    })

    /*  Fetch List of  Projects   */
    store.dispatch(fetchProjects())
  },
  getIndexRoute(nextState, cb) {
    /*  IndexRoute for Project List page   */
    ...
  }
})

Child project route configuration looks like this:
export default store => ({
  path: ':id',
  getComponent(nextState, cb) {
    /* Fetching Project Data here */
  }
})

Whit this setup onEnter of /propjects fires even if user directly loads /projects/:id. Just curious if this is expected behaviour. BTW I've read that onEnter (as router config in general) is not the best place to fetch data.

@foodgy Yes. onEnter of /projects will be fired if you directly loads /projects/:id. Another way to fetch initial data of your app is to fetch data in your component's componentDidMount(). Refer this:
componentdidmount

@huangzhuolin thanks!


Support webpack 2.x version

Will the added support of the webpack version 2.x?

@Ilyaololo This repository is not actively maintained.

@isaachinman i know you're not the owner but do you happen to know of a more modern boilerplate or know why it's not actively maintained? I still build with some spin-off of this so kinda just curious if I'm falling behind on tech. Thanks regardless, take it easy.

This is what I was looking for, hope it helps someone moving forward. Did not check if they upgraded webpack but I'd guess yes based on a quick glance.
https://github.com/erikras/react-redux-universal-hot-example/pull/1200

@stevenaldinger Basically, even though this project hasn't been actively maintained in a while, it's still not far from the bleeding edge. If you used this boilerplate a jumping-off point and truly understand all the tech involved here, I wouldn't be worried about falling behind at all.
Obviously there are dep updates to be had, some of them breaking (like webpack 2, eg). But the underlying ideology has remained more or less the same. I would look towards React 16 (beta just released), and some hypothetical future implementation of renderToStream.
Let me know if you have any other questions or suggestions yourself - weirdly this repo has become almost a community forum on best practices and exciting new tech.

That makes me feel better, thanks hahah. I drifted off into kubernetes land for about 8 months and the js community moves forward quicker than anything I've witnessed before, I was ready for a slap in the face. Community forum is ultimately what I would've hoped for, I think I just need to spend some time looking through the records.
I'm lean more towards devops and iframe half my personal GUI from services like kibana tbh. If you need help spinning up a Google Cloud cluster with auto ssl certs (letsencrypt) / load balanced containerized api/gui servers and stuff with this definitely hmu though. I'm going to clone that updated version and probably post a tutorial at some point but I focus more when someone's waiting on it lol.
Hopefully react 16 stabilizes context... will catch up on that tonight. Thanks again for the quick response, see you around.

@stevenaldinger On a tangent I'd be interested if you post a tutorial. Coincidentally I'm doing almost exactly what you've listed (minus Kibana so far). Right now on the final steps of getting my app based off of this boilerplate working on Kubernetes (hosted by gcloud and eventually using letsencrypt), but the client server is producing a very generic error of not finding a module (even though it's clearly there), which I have found in the past to be what bubbles up as the error when something else breaks.
The app works fine when I have all my dbs and services exposed on Minikube except for this client server, and even works on a Docker Compose upped environment. But something when hosted by Kubernetes is breaking it.  I'm going to see if it's because of some securityContext privileges right now.

I have updated version: https://github.com/wearepush/redux-starter


Failed to get convolution algorithm

When execute "python demo.py"
Tensorflow-gpu - 1.13
But working with tensorflow cpu
Crash on -> y_pred = final.predict(x_test)
tensorflow.python.framework.errors_impl.UnknownError: Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
[[{{node conv1_1/convolution}}]]

Close this since it seems an environment issue.


docstring should be worded for audio

I guess 'takes in an PIL image' should be changed to something like 'takes in raw audio'
https://github.com/pytorch/audio/blob/7212f245ab738b2f65f398f8da92ba2cc43858e2/torchaudio/datasets/vctk.py#L83
https://github.com/pytorch/audio/blob/7212f245ab738b2f65f398f8da92ba2cc43858e2/torchaudio/datasets/yesno.py#L20

closed via #90


Add Hyperlinking

Name field are now replace record page hyperlink.

This is great! I didn't know that we can do it.
Do you think you can extend the modification so that it works for related records, too?
For example, it works for "opportunity.name", but not on "opportunity.account.name" nor "opportunity.owner.name".

Since It's get the record id of all related objects contained in the user specified field, we will need to make many changes.
利用者が入力したフィールド一覧からどのオブジェクトが関連しているのかリスト化し、それらすべてのレコードIdを取得するコードを挟まなくてはならないので、多くの変更が必要になるかと思います。
実利用の環境で関連オブジェクトについては要件に入っていないので、直近では対応する余裕がないです。すみません。

Ok that is fine!
I will merge your changes first and try to figure out what I can do with the other name fields, too.
Thank you so much for your great contributions ;)

Cool. Thank you so much!

Alright, the latest version has links on all Name fields(xxx.Name/xxx.Subject).
@t-f-u-sys-co-jp Do not forget to modify the sorting function as well, otherwise you will be sorting on the link urls.
see https://github.com/hrk623/record-hunter/commit/1078847a85700658080f32bde951491557fc4c66


Taiwan belongs to china

Taiwan is not a country,Taiwan belongs to China。

Or maybe China belongs to Taiwan.


DoIt result boxes broken in Chrome

Working in Chrome, create a project that contains a button.
Connect the Companion
Now go to the block editor, pull out the block for the width of the button, and select Do-It.
The result box will create a white vertical strip that obscures everything on the screen below it.
Happens when the box is highlighed, i.e., if you reload the project the problem goes away but appears again if you click to move or resize the box.
The does not happen in Firefox.
I am running Chrome
Version 44.0.2403.125 (64-bit)

Also see forum thread
https://groups.google.com/forum/#!category-topic/mitappinventortest/W-u-dW4AxPg

fixed by #488

#488 was merged