User scripts: seeking more background ("handholding?")

Can someone share more background on the intriguing user-scripts feature?
Some exploratory questions:

what are some typical benefits/applications/outcomes/scenarios?
eg: can a user-script add an additional keyboard-shortcut-based command to do something that Fastmate/Fastmail does not already provide in their UX (but does offer via their JMAP, or whatever API is used for their server(s))?  Something like this is the first kind of thing I would seek.
can you provide an example implementation, even if it's "hello world" simple?

The README.txt in the .../userscripts dir is light on details in v1.8.0.
I briefly browsed the master branch head and did not see anything that immediately answered my questions. I did not look that hard.  ;-)
Also: I have little to no javascript/Swift/Objective-C experience, but being multi-lingual in similar languages I have historically "figured stuff out" in similar situations without too much fuss for small changes/updates.

Hi, yes I agree that it should be documented a lot better, with examples etc! I will think about improving it. For now you can think about it being sort of like Greasemonkey.
It simply runs javascript files for the current web page. Anything you can do with Greasemonkey you can add to Fastmate to customize your Fastmail experience within the app. No Swift/ObjC knowledge is required for this, it's purely a Javascript extension API.
To answer the questions more specifically:

For example, creating custom themes, adding or removing functionality
Yes, you can add shortcuts. This is actually what Fastmate already does to interface with Fastmail, take a look at https://github.com/joelekstrom/fastmate/blob/master/Fastmate/Fastmate.js for examples. You can call these functions directly from your userscripts too, for example Fastmate.focusSearch().
An example would be something like adding a file in the userscripts folder and restart the app:

// helloworld.js
alert("Hello! I'm an alert within Fastmate!");
Notification("a fastmate desktop notification", {})


Github action .github/workflows/build.sh reports an error

Details are as follows:
Run .github/workflows/build.sh
error: no such subcommand: `remove`

	Did you mean `report`?
Error: Process completed with exit code [10](https://github.com/pyrsia/pyrsia/actions/runs/3809065416/jobs/6480154412#step:7:11)1.

Link: https://github.com/pyrsia/pyrsia/actions/runs/3809065416/jobs/6480154412

@efrisch I think this is related to your PR #1464. https://github.com/pyrsia/pyrsia/blob/2f1c3253bf968ca55f1944259e487f1eea3448f2/.github/workflows/build.sh#L18
Could you please look into it. Thanks

Latest commits to PR #1464 fix this issue.  Closing


use cpu for backends when not testing on gpu

This will prevent the GPU versions of different backends to mess up the GPU memory of each other.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (689cd70) 78.50% compared to head (827e1d8) 57.94%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #18661       +/-   ##
===========================================
- Coverage   78.50%   57.94%   -20.56%
===========================================
  Files         334      334
  Lines       32605    32605
  Branches     6377     6377
===========================================
- Hits        25595    18892     -6703
- Misses       5454    12283     +6829
+ Partials     1556     1430      -126

Flag
Coverage Δ

keras
57.94% <ø> (-20.45%)
:arrow_down:

keras-jax
?

keras-numpy
57.94% <ø> (ø)

keras-tensorflow
?

keras-torch
?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 179 files with indirect coverage changes

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

Thanks for the fix.


WebGL: Graphics moving independently from Sprites on Mobile.

Ive noticed that when running WebGL renderer on mobile (Specifically, in my case, iOS). When I move the position of a container that has a set of Graphics and Sprites in it, the sprites move perfectly, however the Graphics tend to need about 5-10 pixels of movement in order to rerender.
I'm working in the latest dev branch
I've recorded a video example here

I'm wondering if this is an effect of some optimization in the GL GraphicsRenderer. I've run the same code while forcing CanvasRenderer and it runs just fine (all Sprites & Graphics move together). I'm potentially thinking that it has something to do with the maximumSimplePolySize?
I'm still doing some digging, but I was wondering if the PIXI team had any thoughts on why this would happen?

Hello! That is a strange one! are ya running in v4?

@GoodBoyDigital there was a merged pull request with _localID thing, may be thats it?

@GoodBoyDigital Yeah, I've been trying to keep up to date with the dev branch incase there is a fix. Running the latest dev branch, still seeing the issue.

Good stuff, Unfortunatly  I cant say can recreate the issue myself :/ I guess what we really need is an isolated fiddle of the issue to debug and solve your issue. If you can provide one we will take a look and get it nailed. Thanks!

Brilliant, I'll whip one up tonight. Thanks @GoodBoyDigital

You are changing its position, nothing else, right?

@ivanpopelyshev Just using: container.position.set(x, y)  The container can also be scaled and rotated. But in the example the only property changing is the x/y.

put that before you create the stage:
PIXI.TRANSFORM_MODE.DEFAULT = PIXI.TRANSFORM_MODE.DYNAMIC;

Hey @GoodBoyDigital, I whipped up an isolated example
I tested it on Android & iOS and you can clearly see the lag between the shapes and the text.
@ivanpopelyshev .. I tried to add PIXI.TRANSFORM_MODE.DEFAULT = PIXI.TRANSFORM_MODE.DYNAMIC; before creating the stage but it doesn't seem to make any difference.

@XerxesNoble
offtop: use "pivot" for camera. Think that you're pinning container "pivot" point to screen's "position". Whatever is located in the "pivot" of container will be shown in "position" of the screen. That way you can use actual coordinates and not inverted ones. Also that helps with scaling: make position=center of screen, and pivot will be the point on map which will be shown in that center. Scale will zoom in and zoom out :)

Yeah, your coordinates are ~3000 , and may be some of our calculations are made with bad precision. @GoodBoyDigital What do you think?

@XerxesNoble try this one: http://codepen.io/anon/pen/VjgYpg . I subtracted 2500 from all shape coords and added 2500 to graphics position. If it works better, that's precision problem.

Also, try add this one before renderer creation: PIXI.PRECISION.DEFAULT = PIXI.PRECISION.HIGH;

@ivanpopelyshev Reducing the coords seems to help a bit. However, you can still see the shakiness. I could see how you think its a precision issue as the staggering is not really constant nor does it have any pattern to it.
Using:
PIXI.PRECISION.DEFAULT = PIXI.PRECISION.HIGH;

Seems to allow me to leave the coordinates where they are and have the same level of staggering as if the coordinates were 2500 less.

@XerxesNoble OK, so first thing we have to do is: for every shape, compute its center weighted point, or may be left-top. Take it as a position, and the rest leave in "shape.points". It is required for your case. If that is not enough, specify high precision.

@ivanpopelyshev no sure if I understand what you're saying..
Do you mean to calculate a generalized polygon (bounding box) and the set the polygons position to the top left of that? Or do you mean to draw a polygon at a closer coordinate and then move them to the ~2600px points?

You create graphics for very shape, right? Shape has points. You can find left X and top Y of those points, and make graphics position (X,Y), subtracting those coords from shape.points before you pass it to addPolygon.

Okay got it. I've Implemented it here: http://codepen.io/xerxesnoble/pen/mEvJGm?editors=0010
From what I can tell, the difference between specifying high precision and repositioning the graphics seems to be nonexistent.
@ivanpopelyshev are there any specific drawbacks or negative overhead to specifying high precision over repositioning?

High precision can cause performance problems if you are drawing a lot of objects.
So, does that thing satisfy you?

@ivanpopelyshev Thanks for the help, yes this helps me out a great deal!


Implement CORS on Oauth Server Controllers

Hey team! Please add your planning poker estimate with ZenHub @EkaterinaYatsyna @VladyslavZhigir


fix: subrouter endpoint_http_regex not matching

Fixes: #56
This ones on me. I remember doing some testing here but I think that must've only been with the file and websocket endpoints. I don't really use subrouters currently so I didn't catch it, sorry :p.

Well MSVC + TLS boost v1.75.0 ran out of RAM... what

..\test\test_suites\components\websockets.cpp(177): fatal error C1060: compiler is out of heap space

From: https://github.com/Tectu/malloy/pull/57/checks?check_run_id=3033032178, it seems the runner does not have enough ram... but only with boost 1.75.0 and due to a single line of code being added. The specs say they should have 7GB (docs)

..\test\test_suites\components\websockets.cpp(177): fatal error C1060: compiler is out of heap space

From: https://github.com/Tectu/malloy/pull/57/checks?check_run_id=3033032178, it seems the runner does not have enough ram... but only with msvc + tls + boost 1.75.0 and due to a single line of code being added. The specs say they should have 7GB (docs)

lol ^^
Should we disable that specific build config or...? I mean, there's not much we can do about it.


storage: use global thread pool to support prefetch

Currently we use a prefetch manager per backend, this design has two drawbacks:

spawn too many worker threads for prefetch
the network ratelimit has been defunct

So change the design to use a global prefetch manager with thread pool to supporrt all prefetch requests.

Is it for process-internal enhancement? Furthermore, what is the typical case, in which multiple backends runs in the same process?


[Android][Background] failed to post notification on channel "null"

react-native 0.51.0
Android Emulator, Android 8 API 26
targetSdkVersion 17
compileSdkVersion 27
buildToolsVersion 28.0.2
Hello! I have a strange issue when my app is in the background. When I send push notification from Firebase Console (and from my Java server) with attribute custom_notification = {"title": "Test title", "body": "Test Body", "channel": "default"} I receive a system message "failed to post notification on channel "null"... ". When my app is in the foreground I don't have such issue - all works pretty well. I checked in Android Studio debugger and discovered that react-native-fcm code isn't trigger at all! On IOS I don't have any problems. How can I fix this issue?

With firebase subscribeToTopic notifications its everything working form me. For foreground and background. For push notifications I do not tried yet.


[WIP] PSA Updates

Description of the change:
This PR updates the namespace and operator deployment resources and the catalog source and bundle unpacker job to enforce the PSA restricted profile.
NOTE These changes will break sqlite-based catalog sources due to a bug in opm fix, in which a copy of the database was made on the root of the filesystem.
Motivation for the change:
Upstream k8s is rolling out the new Pod Security Admission (PSA) mechanism to improve cluster security and substitute the Pod Security Policies feature link.
Architectural changes:
None
Testing remarks:
Manually tested on kind with k8s 1.24
Reviewer Checklist

[ ] Implementation matches the proposed design, or proposal is updated to match implementation
[ ] Sufficient unit test coverage
[ ] Sufficient end-to-end test coverage
[ ] Bug fixes are accompanied by regression test(s)
[ ] e2e tests and flake fixes are accompanied evidence of flake testing, e.g. executing the test 100(0) times
[ ] tech debt/todo is accompanied by issue link(s) in comments in the surrounding code
[ ] Tests are comprehensible, e.g. Ginkgo DSL is being used appropriately
[ ] Docs updated or added to /doc
[ ] Commit messages sensible and descriptive
[ ] Tests marked as [FLAKE] are truly flaky and have an issue
[ ] Code is properly formatted

/hold until we figure out how to migrate. These changes are only valid from k8s >= 1.19. Should we cut a release before merging and only support 1.19 going forward?

/close
as this is out of date.


Ci2 la3679

try not to make a pull request every time
make sure its okay and working then make a pull request


#None Error

Describe the bug
When downloading the downloadable resources from course, I get the error that is printed in my prompt saying "None" and the download of that file is skipped. The course comes with a text file that includes the source code of the tutorial. Udemy-dl fails to download the file.  I have attached the screenshot of the error.
To Reproduce
Steps to reproduce the behavior:

udemy course URL: https://gale.udemy.com/course/build-an-app-with-aspnet-core-and-angular-from-scratch/
Run the following command to reproduce the error:
python udemy-dl.py https://gale.udemy.com/course/build-an-app-with-aspnet-core-and-angular-from-scratch/ --sub-lang en -k [cookies text file]
See error

Expected behavior
I wanted to download those assets without any error.
Screenshots

Python Environment (please complete the following information):

OS Platform: Windows 10
Python Version: Python 3.8.3rc1

Can you check if the target folder contains the asset file with .part file extension ?

Yes, it has .part file

I think it then relates to #501
a quick and probably unclean workaround is to edit line #L222 in file udemy_shared.py
and change
if total_bytes_done == bytes_to_be_downloaded:
to
if total_bytes_done>= bytes_to_be_downloaded:
(greater equal)
tho this might have other unexpected results - tho for me its currently working this way.
Try at your own risk

Thanks. I will try it

I think it then relates to #501
a quick and probably unclean workaround is to edit line #L222 in file udemy_shared.py
and change
if total_bytes_done == bytes_to_be_downloaded:
to
if total_bytes_done>= bytes_to_be_downloaded:
(greater equal)
tho this might have other unexpected results - tho for me its currently working this way.
Try at your own risk

not a good fix, the file bytes shouldn't be greater then the total

i can't reproduce the error with courses i have in my account take a look at above SS. I might need an account to reproduce and fix

My idea was, that they started using gzip/deflate for compressing the asset files, so these data that was downloaded is less than the file afterwards.
I checked the files contents from manual udemy download and dem the downloader and they are equal. So something has to cause the difference, I just didn't notice anything bad from having downloaded more yet.

@Nightreaver requests also sends the header by default Accept-Encoding: gzip/deflate

i don't see any other reports and can't even reproduce with retries and the suggestions as well, so i 'm considering that this is resolved, or you guys share your creds on my email to check with that course causing the error.
<EMAIL_ADDRESS>


Project dead?

Is this project in development anymore? I'm looking for a good markdown parser and this is the best of all I tested. But I see some showstoppers in the issue list which are not fixed for many months.
Anyway. Thanks for this great parser!

It's been a bit neglected lately, as I've been super-busy building https://nota.md/, but I do want to come back to it eventually -- I'm still very much involved with Markdown.


Auth::getUser()->id return null

Hi,
Im using the 'Plan' plugin which requires the Rainlab 'User' plug and also the 'Roles' plugin. Ive tried asking on the support page of the 'Plan' plugin but got no response.
However ive noticed that if i use Auth::getUser()->id it doesn't return anything. but Auth::getUser()->name does. the user id is there however if i test by echoing Auth::getUser().
Is there any reason why Auth::getUser()->id would not return the users ID.
Any help would be great

Not sure why this would happen, if it returns name, then it should also return id.

I Know. I have the Plans, Roles & User plugin installed. ive even tried this.
$user_array = $user->toArray();

$user_id = $user_array['id'];
But i still can't retrieve the 'id'. Even though the array contains the 'id';
array(13) { ["id"]=> int(1).....


Unable to build vscoq-language-server 2.1.2 as an opam dependency using opam-nix

Describe the bug
Unable to have vscoq-language-server as an opam dependency in a coq project using opam-nix.
To Reproduce
Using opam-nix to get a dev shell for the following .opam project file works well:
opam-version: "2.0"
depends: [
  "ocaml"
  "coq" {>= "8.18"}
  "coq-hammer"
  "coq-aac-tactics"
  "coq-smtcoq"
]

Associated flake:
{
  inputs = {
    opam-nix.url = "github:tweag/opam-nix";
    opam-repository.url = "github:ocaml/opam-repository";
    opam-repository.flake = false;
    opam-coq-archive.url = "github:coq/opam-coq-archive";
    opam-coq-archive.flake = false;
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.follows = "opam-nix/nixpkgs";
  };
  outputs = { self, flake-utils, opam-nix, opam-repository, opam-coq-archive, nixpkgs }@inputs:
    let package = "destination";
    in flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        on = opam-nix.lib.${system};
        inherit (opam-nix.lib.${system}) queryToScope;
        scope = on.buildOpamProject'
          {
            repos = [ "${opam-repository}" "${opam-coq-archive}/released" ];
          }
          ./.
          {
            ocaml-base-compiler = "*";
          };
        overlay = final: prev:
          {
            # Your overrides go here
          };
        scope' = scope.overrideScope' overlay;
        main = scope'.${package};
      in {
        legacyPackages = scope';

        packages.default = main;

        devShells.default = pkgs.mkShell {
          inputsFrom = [ main ];
          buildInputs = [
            #additional packages from nixpkgs
            pkgs.eprover
            pkgs.cvc5
            pkgs.vampire
          ];
        };
      });
}

But it fails as soon as I add vscoq-language-server dependency (without constraint bounds):
opam-version: "2.0"
depends: [
  "ocaml"
  "coq" {>= "8.18"}
  "coq-hammer"
  "coq-aac-tactics"
  "vscoq-language-server"
]

$ nix develop
[...]
error: builder for '/nix/store/xfxxlv440lq0wwyv39131h57jz417k6r-vscoq-language-server-2.1.2.drv' failed with exit code 1;
       last 10 log lines:
       > Hint: coqc --config requires the coq-stdlib package in order to function
       > properly.
       > File "language/dune", line 4, characters 99-119:
       > 4 |  (preprocess (pps ppx_optcomp -- -cookie "ppx_optcomp.env=env ~coq:(Defined \"%{coq:version.major}.%{coq:version.minor}\")"))
       >                                                                                ^^^^^^^^^^^^^^^^^^^^
       > Error: Could not expand %{coq:version.minor} as running coqc --config failed.
       > /nix/store/5k4b2v1cn9rl0hhabarjdf2d8sr7znj6-coq-core-8.18.0/bin/coqc --config failed with exit code 1.
       > Hint: coqc --config requires the coq-stdlib package in order to function
       > properly.
       >
       For full logs, run 'nix log /nix/store/xfxxlv440lq0wwyv39131h57jz417k6r-vscoq-language-server-2.1.2.drv'.
error: 1 dependencies of derivation '/nix/store/8ick5xh2mzcsfp25x8wb1k035vgc9i6r-nix-shell-env.drv' failed to build

Using a globally installed opam, and using opam pin coq 8.18.0 and opam install vscoq-language-server works fine.
Already tried: setting "coq" { = "8.18.0" } instead of  "coq" { >= "8.18" } doesn't help.
Expected behavior
I expect opam-nix to successfully build vscoq-language-server as it would using opam install
Environment

OS name + version: Kubuntu 22.04 + nix
Version of the code: opam-nix master from 21/03/2024:

{
        "lastModified":<PHONE_NUMBER>,
        "narHash": "sha256-Cfiyf0o5ySmi2BHpNDvWEKM/dtExNcmIiTaBbRZImqs=",
        "owner": "tweag",
        "repo": "opam-nix",
        "rev": "8578c83725e4ceaf04913cf04da9bb36d85ad0bc",
        "type": "github"
}

Additional context
I just managed to get a working dev shell using the following opam file:
opam-version: "2.0"
depends: [
]

and flake:
{
  inputs = {
    opam-nix.url = "github:tweag/opam-nix";
    opam-repository.url = "github:ocaml/opam-repository";
    opam-repository.flake = false;
    opam-coq-archive.url = "github:coq/opam-coq-archive";
    opam-coq-archive.flake = false;
    flake-utils.url = "github:numtide/flake-utils";
    nixpkgs.follows = "opam-nix/nixpkgs";
  };
  outputs = { self, flake-utils, opam-nix, opam-repository, opam-coq-archive, nixpkgs }@inputs:
    let package = "destination";
    in flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = nixpkgs.legacyPackages.${system};
        on = opam-nix.lib.${system};
        # inherit (opam-nix.lib.${system}) queryToScope;
        devPackagesQuery = {
          # You can add "development" packages here. They will get added to the devShell automatically.
          coq = "8.18.0";
          coq-hammer = "*";
          coq-aac-tactics = "*";
          coq-smtcoq = "*";
          vscoq-language-server = "2.0.3+coq8.18";
        };
        query = devPackagesQuery // {
          ## You can force versions of certain packages here, e.g:
          ## - force the ocaml compiler to be taken from opam-repository:
          ocaml-base-compiler = "5.0.0";
          ## - or force the compiler to be taken from nixpkgs and be a certain version:
          # ocaml-system = "4.14.0";
          ## - or force ocamlfind to be a certain version:
        };
        scope = on.buildOpamProject' {
          repos = [ "${opam-repository}" "${opam-coq-archive}/released" ];
        } ./. query;
        overlay = final: prev: {
          # You can add overrides here
          ${package} = prev.${package}.overrideAttrs (_: {
            # Prevent the ocaml dependencies from leaking into dependent environments
            doNixSupport = false;
          });
        };
        scope' = scope.overrideScope' overlay;
        # The main package containing the executable
        main = scope'.${package};
        # Packages from devPackagesQuery
        devPackages = builtins.attrValues
          (pkgs.lib.getAttrs (builtins.attrNames devPackagesQuery) scope');
      in {
        legacyPackages = scope';

        packages.default = main;

        devShells.default = pkgs.mkShell {
          inputsFrom = [ main ];
          buildInputs = devPackages ++ [
            #additional packages from nixpkgs
            pkgs.eprover
            pkgs.cvc5
            pkgs.vampire
          ];
        };
      });
}

I don't know yet what made it work under this form.

Should be fixed. Can you update opam-nix and check?


Not wanting Bots to follow me

The project seems to have an interesting idea as a test on how to run a bot, using python libraries and HTTP requests.
Having the list of usernames, and running it is not that good.
Please remove my username from the hardcoded file

Sure thing! We respect everyone's opinion!


issue when building my esp32 project! can anybody help?

C:\Users\ASUS\Desktop\project\esp-idf-master>idf.py build
Executing action: all (aliases: build)
Running cmake in directory c:\users\asus\desktop\project\esp-idf-master\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 c:\users\asus\desktop\project\esp-idf-master"...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_ASM_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/Users/ASUS/Desktop/project/esp-idf-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ASUS/Desktop/project/esp-idf-master/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1
C:\Users\ASUS\Desktop\project\esp-idf-master>idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Directory 'c:\users\asus\desktop\project\esp-idf-master\build' doesn't seem to be a CMake build directory. Refusing to automatically delete files in this directory. Delete the directory manually to 'clean' it.
C:\Users\ASUS\Desktop\project\esp-idf-master>idf.py set-target esp32
Adding "set-target"'s dependency "fullclean" to list of commands with default set of options.
Executing action: fullclean
Build directory 'c:\users\asus\desktop\project\esp-idf-master\build' not found. Nothing to clean.
Executing action: set-target
Set Target to: esp32, new sdkconfig created. Existing sdkconfig renamed to sdkconfig.old.
Running cmake in directory c:\users\asus\desktop\project\esp-idf-master\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=1 c:\users\asus\desktop\project\esp-idf-master"...
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_C_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:2 (project):
No CMAKE_ASM_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "C:/Users/ASUS/Desktop/project/esp-idf-master/build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/ASUS/Desktop/project/esp-idf-master/build/CMakeFiles/CMakeError.log".
cmake failed with exit code 1

git submodule update


Register this package

Could we register this package? I see there was an abandoned attempt to do that. I would like to use this for some stuff I've been trying on the side 😅

The problem with the community being distributed across multiple timezones and only communicating asynchronously is that it's hard to get a bunch of people into one place when a consensus decision (like the ones which needed to be made for registration) is required. Perhaps this thread can be that place.

I recall @cossio mentioning on Slack that it would be fine to just register this as is (I don't think the name shadowing is a big concern here).

Time to close this?


Make authentication decision more generic

Make authentication decision more generic
Motivation
Decision could be used by other filters

Pull Request Test Coverage Report for Build 1044

2 of 5 (40.0%)  changed or added relevant lines in 3 files are covered.
4 unchanged lines in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 90.905%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

pkg/security/decision.go
0
3
0.0%

Files with Coverage Reduction
New Missed Lines
%

storage/postgres/storage.go
4
85.92%

Totals

Change from base Build 1042:
-0.2%

Covered Lines:
2039

Relevant Lines:
2243

💛  - Coveralls

@georgifarashev - please resolve conflicts
@NickyMateev - please review


[REQUEST] Re-add rcs value (y and x) back

and make it to work on pistols too, thanks

Pistol rcs hhh

Pistol rcs hhh

ppl use it

idk if this is rlly necessary because Aim RCS is already implemented and turned on by default. Otherwise look in the pull requests if you want Standalone RCS with the slider values of x and y.

yes, the RCS is buggy. Maybe someone can fix it.


feat(api): move gantry to safe spot while TC lid moves

Provide a protection for calls to thermocycler.open() and .close() that prevents the possibility of
the lid colliding with the pipettes. Before either command is sent to the module, the gantry will
move to a "safe" spot at the highest z above the fixed trash.

closed in favor of #3807


Creating FormIO custom component to use HandsOnTable spread sheet in form builder using React JS

Hi,
I am new to Form IO and need to create a custom component using HandsOnTable Spreadsheet which will be available in my form builder , so that user can able to use Spredsheet in the forms. It could be better some one can help me to create new component as Spreadsheet using HandsOnTable and integrate in Form IO builder using React js. Thanks

@tmohanbtech, here is an example of a custom component in React: https://github.com/formio/react-app-starterkit/tree/3.x/src/components

Thanks for your answer @aiwebb. I have gone through the above link but I need to construct new custom component using third party element i.e HandsOnTable Spreadsheet. Is there any way that we can directly render another third party component in FormIO components

@tmohanbtech, you can set this.element in your build() function to a dynamically created element that is then wrapped by HandsOnTable as a new table instance.

The example in the react-app-starterkit is pretty old - using formio 3.x - is there nothing newer?
For example, the line that supposedly loads the components:
import { initAuth, Formio, Components } from 'react-formio';

none of those objects are still existing in react-formio? It does look like now there's a ReactComponent function that might be useful, but without any documentation :shrug:


Doesn't support equal

h1=PageTitle doesn't work.
I have to use h1 #{PageTitle}

You need to leave a space after = right now. I'll see what the JS version does and make changes according to that.


rendering refactor

tried to decouple from pygame a bit so we can test things more easily
created a new seagulls.rendering package with basic functionality
created example scene with new API

Codecov Report

Merging #119 (ae26bd8) into main (1d099da) will decrease coverage by 2.93%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #119      +/-   ##
==========================================
- Coverage   61.82%   58.88%   -2.94%
==========================================
  Files          79       55      -24
  Lines        2483     2087     -396
  Branches      254      197      -57
==========================================
- Hits         1535     1229     -306
+ Misses        945      856      -89
+ Partials        3        2       -1

Impacted Files
Coverage Δ

...eagulls-engine/src/seagulls/app/_app_interfaces.py

...gulls-engine/src/seagulls/engine/_game_settings.py

...engine/src/seagulls/engine/_basic_scene_manager.py

...engine/src/seagulls/engine/_active_scene_client.py

seagulls-engine/src/seagulls/engine/_collisions.py

...-engine/src/seagulls/engine/_game_scene_manager.py

seagulls-engine/src/seagulls/eventing/__init__.py

seagulls-engine/src/seagulls/engine/_game_clock.py

...agulls-engine/src/seagulls/engine/_window_scene.py

...gine/src/seagulls/engine/_blocking_game_session.py

... and 14 more

Continue to review full report at Codecov.

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


function with struct

https://github.com/mattn/anko/issues/72

Codecov Report

Merging #348 (87fc6a0) into master (0d30f07) will decrease coverage by 1.86%.
The diff coverage is 33.33%.

@@            Coverage Diff             @@
##           master     #348      +/-   ##
==========================================
- Coverage   88.40%   86.53%   -1.87%
==========================================
  Files          15       15
  Lines        2682     2600      -82
==========================================
- Hits         2371     2250     -121
- Misses        201      235      +34
- Partials      110      115       +5

Impacted Files
Coverage Δ

vm/vm.go
91.26% <ø> (-0.67%)
:arrow_down:

vm/vmConvertToX.go
69.33% <33.33%> (-24.55%)
:arrow_down:

ast/astutil/walk.go
42.85% <0.00%> (-3.26%)
:arrow_down:

vm/vmToX.go
84.69% <0.00%> (-1.29%)
:arrow_down:

vm/vmExprFunction.go
75.76% <0.00%> (-1.16%)
:arrow_down:

anko.go
67.44% <0.00%> (-1.04%)
:arrow_down:

vm/vmStmt.go
96.01% <0.00%> (-0.19%)
:arrow_down:

vm/vmExpr.go
96.20% <0.00%> (-0.09%)
:arrow_down:

... and 7 more

Continue to review full report at Codecov.

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


Exec tachikoma update<PHONE_NUMBER>4606

:hamster::hamster::hamster:   Strategy none
Powered by Interval Pull Request as a Service - Tachikoma.io Announcement: 2015-06-28 Updated permissions - Tachikoma.io

Coverage remained the same at ?% when pulling cd9a8b37c77d65df7d7424a836df01b4e6be674c on pazjacket:tachikoma/update-20180717174606 into ddf31327ec9d3097b29bd6c49c1071d946319912 on sanemat:master.


Multipart upload fails to create com.alamofire.manager/multipart.form.data directory

This problem occurs if it's the first time you kick off an upload with multipart form data, and you kick off multiple uploads at the same time. The directory creation is done in a background thread and with some possibility, multiple uploads will try to create the directory at the same time, which causes a cocoa error 516. The createDirectoryAtURL:withIntermediateDirectories:attributes: method is not supposed to fail if the directory already exists with the parameters AlamoFire passes, but it seems it does throw an exception if 2 threads attempt to create it at the same time. The result is that a few of the uploads you launched will completely fail. Beware this is not easy to reproduce.
An easy fix would be to create the directory preemptively before any upload can reach this point.

Thanks for reporting this @fer662! I just pushed up b73893d0 which wraps the creation in a serial queue so the creation can't be done in parallel. This will be released as part of Alamofire 4.
Thanks again! 🍻


What's going on with the update/release commits?

Looking over the commit history to see what had changed since earlier this year. The CHANGELOG.md(or releases page) isn't too useful since commit messages adding changes often either don't use the keywords it expects at all or uses them incorrectly(part of a chore for release).
You have a pattern of release commits sometimes 2-3 times in a row. Usually only the first may contain actual changes or be for a prior commit. The others just seem to be version bumps for no reason? Is this a bug with some release automation?

I know, the update script was completely wacky... :( Have changed it since 1.7.8 to avoid the multiple commits, and I should also remember to actually use conventional commits structure... Sorry about that, and thanks for pointing it out.


add serialization

For some reason that I can't figure out, the tests from the dev branch fails on my local machine...
Todo:

[ ] Update MLJBase dep to 0.20

For some reason that I can't figure out, the tests from the dev branch fails on my local machine...

Mmm. That's weird. I just checked on my local machine and didn't run into any problems. What's your stack trace?

Mmm. That's weird. I just checked on my local machine and didn't run into any problems. What's your stack trace?

I get the following:
learning curves (accelerated with typename(CPUThreads)): Error During Test at /Users/olivierlabayle/Dev/MLJTuning.jl/test/test_utilities.jl:36
  Got exception outside of a @test
  MethodError: no method matching _tuning_results(::Vector{MersenneTwister}, ::CPU1{Nothing}, ::Machine{MLJTuning.DeterministicTunedModel{Grid, Main.Models.DeterministicEnsembleModel{FooBarRegressor}}, true}, ::Symbol, ::Int64)
  Closest candidates are:
    _tuning_results(::AbstractVector, ::CPU1, ::Any, ::Any, ::Any, ::Any) at ~/Dev/MLJTuning.jl/src/learning_curves.jl:210
    _tuning_results(::AbstractVector, ::CPUProcesses, ::Any, ::Any, ::Any, ::Any) at ~/Dev/MLJTuning.jl/src/learning_curves.jl:246
    _tuning_results(::AbstractVector, ::CPUThreads, ::Any, ::Any, ::Any, ::Any) at ~/Dev/MLJTuning.jl/src/learning_curves.jl:293
    ...
   Which later triggers a method error here. I don't know to what extent the fact that I run under a Mac M1 may be explaining this.
Otherwise everything runs fine, including the new serialization part.

For some reason that I can't figure out, the tests from the dev branch fails on my local machine...

@olivierlabayle I think https://github.com/JuliaAI/MLJTuning.jl/pull/166 will fix this.

Codecov Report

Merging #165 (8937ce9) into dev (2505b48) will decrease coverage by 0.40%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##              dev     #165      +/-   ##
==========================================
- Coverage   87.62%   87.21%   -0.41%
==========================================
  Files          11       12       +1
  Lines         614      618       +4
==========================================
+ Hits          538      539       +1
- Misses         76       79       +3

Impacted Files
Coverage Δ

src/serialization.jl
0.00% <0.00%> (ø)

src/tuned_models.jl
93.47% <0.00%> (+0.43%)
:arrow_up:

Continue to review full report at Codecov.

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


Update codebase, add scripted Ernest Hemingway

I have finally finished the scripted version of Ernest Hemingway, due to popular demand of the game. Due to the nature of having many entries and votes (and PMs) to have to worry about, I figured it'd be a great time to finally make use of the game system and have The Scribe worry about it all. This also updates the current codebase.
@sirDonovan, @AxeBane, it would be great if you could review.

@Mystifi can you please rebase this onto the master branch?


BUG:dropdown symbol in Frequently asked questions section

Is there an existing issue for this?

[X] I have searched the existing issues

What happened?
The dropdown symbol in the frequently asked questions section is not centered in the Questions Boxes.

I would be grateful if you consider this issue and assign to me.My github username @Bhanuprakash842
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

Thanks for creating the issue in SwapReads! The issue has been assigned to you.
Before you start working on your PR, please make sure to:

⭐ Star the repository if you haven't already.
Pull the latest changes to avoid any merge conflicts.
Attach before & after screenshots in your PR for clarity.
Include the issue number in your PR description for better tracking.

I'm excited to see your contribution as part of GSSOC EXT. 2024! 🎉
Don't forget to follow @anuragverma108  - Project Admin & @sailaja-adapa  - Project Mentor on GitHub for more updates.
Happy open-source contributing! 🚀


First Android app: Android Basics with Compose

URL of codelab
https://developer.android.com/codelabs/basic-android-kotlin-compose-first-app?continue=https%3A%2F%2Fdeveloper.android.com%2Fcourses%2Fpathways%2Fandroid-basics-compose-unit-1-pathway-2%23codelab-https%3A%2F%2Fdeveloper.android.com%2Fcodelabs%2Fbasic-android-kotlin-compose-first-app#5
In which task and step of the codelab can this issue be found?
Create your first android app -> Change the background color
Describe the problem
Incorrect reference provided for optimizing imports
Steps to reproduce?

It says in step7 that, In your code, the best practice is to keep your imports listed alphabetically. To do this press Help on the top toolbar, type in optimize imports, and click on Optimize Imports.
Actually, the Help option doesn't have the optimize imports option. Whereas it is present in Code option

Versions
Android Studio version: 2021.2.1
API version of the emulator: NA

@PaidupatiBharath
Thank you for reaching out to us. the actual instructions does not say you need to enter optimized import and click on Optimized import.

Lesson wording is correct.
Closing this issue to resolve it.


Sentence clarification

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


Add TryFrom for u64.

Used to extract integers from felts.

This change is

Will solve the following issue: https://reviewable.io/reviews/starkware-libs/blockifier/604#-NYYUEMbEbZRbWbc0gLD


.showWindow() doesn't use default position

Calling mb.showWindow() renders the window in the top right corner. Is it possible to specify this to show as if clicking the menubar?

No, currently there is no way to get the tray icon position without clicking the icon. So we have to default it to top-right when the tray position is missing.
https://github.com/atom/electron/issues/2469

@jenslind, in an OS project like this, would it be my responsibility to close this issue now?

@nickbytes I think it's the responsibility of whoever remembers first :P

Reopened because https://github.com/atom/electron/issues/2469 is still open, if that gets implemented this can be supported

This has been fixed in the latest version of electron.
tray.getBounds() has been added.
mb.on('ready', function ready () {
  mb.showWindow(mb.tray.getBounds())
})

Also added tray.getBounds to showWindow method, so you don't have to pass the bounds yourself.

@jenslind Is there anything that is required in order to access getBounds from the tray object?
This is what mb.tray looks like on my end (latest build):
Tray {
  popContextMenu: [Function],
  _events:
   { click: [ [Function], [Function: clicked] ],
     'double-click': [ [Function], [Function: clicked] ],
     'right-click': [Function],
     'balloon-click': [Function] },
  _eventsCount: 4 }


sails websocket client

Sails version: v1.0.2
Node version: v10.9.0
NPM version: 6.4.1
DB adapter name: N/A
DB adapter version: N/A
Operating system: ubuntu 16.04
Hello,
In my sails project, I want to connect to another sails project in websocket but this server is behind a proxy. how can I set the proxy in sailsIOClient ?
Below, my code :
const socketIOClient = require('socket.io-client')
const sailsIOClient = require('sails.io.js')
const io = sailsIOClient(socketIOClient)

// URL
io.sails.url = 'http://my-server.org'

// Event
io.socket.on('connect', () => {
   console.log('connect')
})

new issue https://github.com/balderdashy/sails/issues/4532


Support service interfaces

add an input_json parameter with standard description

Mark request body parameters as not required (and possibly add/alter description)


Please correct the known issues entry

From the known issues on the main site:
"On Windows you need to run the build and serve commands with Admin permissions, otherwise the performance is not good."
Not good? Its just not working, that means the Brocoli machine messes all up. "ng build" will just fail at least here on Windows 10!

You're right, at the moment it will not work at all without admin rights.

https://github.com/angular/angular-cli/pull/905 should allow non-admin user usage.


Get-BcContainerAppInfo does not work properly with multiple published apps

Describe the issue
Get-BcContainerAppInfo does not work properly with multiple published apps.
App D is published two times with two different versions. In my case, two scopes, old Global, new Tenant/Dev. This is causing App D to occur multiple times in the result.
Script used causing the issue
$apps = Get-BcContainerAppInfo -containerName bc182de -tenant default -sort DependenciesLast

Command result
Name               Version                 Scope
----               -------                 -----
App A              18.1.21060102.21060102 Tenant
App B              17.2.21052001.21052001 Tenant
App C              18.1.21060101.21060101 Tenant
App D              17.4.21090101.0        Tenant
App D              17.0.21040701.0        Global
App E              <IP_ADDRESS>              Tenant
App F              18.1.21060101.21060101 Tenant
App D              17.4.21090101.0        Tenant
App D              17.0.21040701.0        Global
App G              <IP_ADDRESS>              Tenant
App D              17.4.21090101.0        Tenant
App D              17.0.21040701.0        Global
App H              17.2.21052702.21052702 Tenant
App D              17.4.21090101.0        Tenant
App D              17.0.21040701.0        Global
[...]
Application        18.2.26217.26490       Global
Base Application   18.2.26217.26490       Global
System Application 18.2.26217.26490       Global

Suggested fix
Replace "-eq" with "-iin".
before
        function AddAnApp { Param($anApp)
            $alreadyAdded = $script:installedApps | Where-Object { $_.AppId -eq $anApp.AppId }
            if (-not ($alreadyAdded)) {
                AddDependencies -anApp $anApp
                $script:installedApps += $anApp
            }
        }

after
        function AddAnApp { Param($anApp)
            $alreadyAdded = $script:installedApps | Where-Object { $_.AppId -iin $anApp.AppId }
            if (-not ($alreadyAdded)) {
                AddDependencies -anApp $anApp
                $script:installedApps += $anApp
            }
        }

I did had the same behavior.
My workaround was: I unpublished all duplicated not installed apps. In result Get-BcContainerAppInfo did work well.
In a single tenant or with within the same tenant there should no need to have the  same app (id) multiple times.

@MODUSCarstenScholling do I understand this right, that the published 17.0 version of app D is published and not installed on any tenant, right?

There are two issues here.
One is that the sorting only takes AppId into account - it should also include version.
While there can be more than one occurance of AppId published, there can be only one with the same appid,version.
I have added this to the equasion.
Furthermore, in a lot of cases you might only want to get apps, which are actually installed. For this, I have added the -installedOnly parameter.

Shipped in 2.0.16


Load resource files from mods

Mods should be able to load behavior and resource packs into the game. Preferably being able to also specify things as global resources, with the files being stored specifically in the mods folder.

It may also be useful to give the mod creator an option for hiding certain packs/make them not de-activatable

I guess this is not work in progress anymore lol


chore(master): release 0.29.0

:robot: I have created a release beep boop
0.29.0 (2024-06-10)
Features

add api access restriction (ca2d71d)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v0.29.0
:sunflower:


Allow Binding of TabItem.Title

Allow binding the Title property of TabItem to a ViewModel property, like so:
<material:TabItem Title="{Binding ViewModel.Title}">

This currently leads to an exception: XamlC error XFC0009: No property, BindableProperty, or event found for "Title", or mismatching type between value and property., since Title is not a BindableProperty.
This would for example be useful if the Title property changes (e.g., showing the amount of items found in the TabItem etc, like
public override string Title => $"{Res.ContentNameLocalized} ({Items.Count()})";

It is possible with custom DataTemplates but it would be helpful if it's included by default in UraniumUI.
It'll be added in v2.5 release


Skip csv_export_new_applications test as it fails constantly in deploy

Description :sparkles:
Read title.

API branch is deployed to platta: https://helsinkilisa-pr2236.api.dev.hel.ninja/healthz :rocket::rocket::rocket:

HANDLER branch is deployed to platta: https://helsinkilisa-ui-handler-pr2236.dev.hel.ninja :rocket::rocket::rocket:

APPLICANT branch is deployed to platta: https://helsinkilisa-ui-pr2236.dev.hel.ninja :rocket::rocket::rocket:

TestCafe result is success for https://helsinkilisa-ui-pr2236.dev.hel.ninja :laughing::tada::tada::tada:


Security-group ingress rule to filter OnlyPorts

Use case:
Green: Access to port 80, 25, 443, or 465 is unrestricted.
Red: Access to port 20, 21, 1433, 1434, 3306, 3389, 4333, 5432, or 5500 is unrestricted.
Yellow: Access to any other port is unrestricted.

- filters:
  - type: ingress
    OnlyPorts: [443]
    Cidr:
      value_type: cidr
      op: eq
      value: "<IP_ADDRESS>/0"

The above filter resulted in

 "IpPermissions": [
      {
        "FromPort": 443,
        "IpProtocol": "tcp",
        "IpRanges": [
          {
            "CidrIp": "<IP_ADDRESS>/0"
          }
        ],
        "Ipv6Ranges": [],
        "PrefixListIds": [],
        "ToPort": 443,
        "UserIdGroupPairs": []
      }
    ]

and corresponding matched ip permissions
"MatchedIpPermissions": [
      {
        "FromPort": 443,
        "IpProtocol": "tcp",
        "ToPort": 443,
        "IpRanges": [
          {
            "CidrIp": "<IP_ADDRESS>/0"
          }
        ],
        "Ipv6Ranges": [],
        "PrefixListIds": [],
        "UserIdGroupPairs": []
      }
    ]

Please correct me if I am wrong. Since I am using OnlyPorts, I was expecting other ports to appear in the resources.json. I am referencing the second example in http://capitalone.github.io/cloud-custodian/docs/azure/policy/resources/nsg.html

We're having the same issue but wasn't #1954 meant to fix this? When I only have OnlyPorts in the filter, it works as it should. However, when coupled with Cidr, OnlyPorts fails to provide any function to the filter.

I had a similar issue - seems to work okay if 'separate' the filters a la:
     - type: ingress
       OnlyPorts: [80, 443]
     - type: ingress
       Cidr:
          value_type: cidr
          op: eq
          value: <IP_ADDRESS>/0

I'm trying to get something like this to work to no avail - has anyone had any success?

Notifies if any rule from a security group that allows <IP_ADDRESS>/0
ingress, not on ports 80 or 443

If I'm reading the description correctly, this is definitely related to #2917. See that issue for an update.

It looks like #2917 has been resolved via PR #3004, so this issue might be fixed.

From the tests I have done,it does look like PR #3004 has fixed trhe issue I was seeing.


Fix text preset related Karma tests

Context

Summary

Relevant Technical Choices

To-do

User-facing changes

Testing Instructions

QA

[x] This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:

Checklist

[x] This PR addresses an existing issue and I have linked this PR to it in ZenHub
[ ] I have tested this code to the best of my abilities
[ ] I have verified accessibility to the best of my abilities (docs)
[ ] I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
[ ] This PR contains automated tests (unit, integration, and/or e2e) to verify the code works as intended (docs)
[ ] I have added documentation where necessary
[x] I have added a matching Type: XYZ label to the PR

Fixes #8596

Looks like the eyedropper test is failing now -- @merapi -- is it flakey or always failing? Should I just merge this with the presets fixes anyway?


Issue in Footer

The footer is not flexible. Seems like there is some case in css.

Heyy @MasterLWA I would like to contribute , is the issue still open ?

Hey buddy, Yeah it is still open

If no one works on it, i would like to do that, @MasterLWA assign this to me
Ty

Seems like there is a issue in the Footer. Footer element is not flexible. try it in inspect mode. So you could get a idea about that. If not please let me know 😊


Error: The header content contains invalid characters

Code:
let needle = require('needle');

let url = "http://www.business-standard.com/article/opinion/sunil-sethi-ye-gods-what-have-we-done-to-deserve-this…-116092301178_1.html";
let options = {
	compressed:true,
	follow_max: 20,
	user_agent:'Mozilla/5.0 (Windows NT 6.2; rv:22.0) Gecko/20130405 Firefox/23.0',
	open_timeout: 20*1000,
	rejectUnauthorized: true,
	follow_set_cookies: true,
	follow_set_referer: true
}
needle.get(url, options, (err, res) => {
	if(res)
		console.log(res.headers['content-type']);
	if (err){
		console.error(err);
	}else{
		console.log(res.body);
	}
});

Falls with an error:
_http_outgoing.js:370
    throw new TypeError('The header content contains invalid characters');
    ^

TypeError: The header content contains invalid characters
    at ClientRequest.setHeader (_http_outgoing.js:370:11)
    at new ClientRequest (_http_client.js:131:14)
    at Object.request (http.js:26:10)
    at Needle.send_request (/home/ubuntu/workspace/node_modules/needle/lib/needle.js:425:26)
    at ClientRequest.<anonymous> (/home/ubuntu/workspace/node_modules/needle/lib/needle.js:467:21)
    at Object.onceWrapper (events.js:291:19)
    at emitOne (events.js:96:13)
    at ClientRequest.emit (events.js:189:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:522:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

If remove option - follow_set_referer: true, it is works.
How I can fix it?

I think it's because the URI contains a "…" char. Try doing let url = encodeURI(string); and see if it works.

Yes, it is help me, thanks. But strange, without follow_set_referer it is works without encodeURI;

Just added a quick fix to handle these types of scenarios. Thanks for reporting!


Put DeferredConfigurable back in place

Only the warning message should have been conditional,
the old extension should still behave as deferred.
Suprised so few people complained ;)

@pledbrook found this while writing a sample, really lucky for us :)


Create a UI for the Flask app

As a [role]
I need [function]
So that [benefit]
Details & Assumptions:

...

Acceptance Criteria:
Given [some initial state]
When [some event]
Then [some measurable outcome]

should this be broken down - each take turns on different UI elements?


Properly handle "308 Permanent Redirect" status code

Based on https://tools.ietf.org/html/rfc7538#section-3, "308 Permanent Redirect" status code is a permanent counterpart of status code 307 thus should be handled similarly.

@johnjelinek this has not yet been released, it should go out in the next release though.

Excellent. In the meantime, I'll pin the Sha.

oh 😢  looks like I can't use clj-http with deps and git sha because it's a lein project. Any idea when the next release ships?

@dakrone I can prepare a new release with this change.

@johnjelinek I released 3.10.3 which should have this change in.


Add support for collection-if in 'remove comparison' quick-fix

The following raises unnecessary_null_comparison warning, but offers no quick-fix for it:
final int a = 123;

final list = [
	if (a != null) // warning here, `a` cannot be null
		a
];

The RemoveComparison quick-fix doesn't implement support for it. If this is a wanted change, I can send a CL with this feature.

final int? a =123;
Declare 'a' as a nullable value like above

https://dart-review.googlesource.com/c/sdk/+/306312


Compilation error at Example - HDFS Distributor by java 1.7

When we compile from java 1.7 we have error. No error for java 1.8.
Let's use java 1.8 for next version?
Log:
INFO] Reactor Summary:
[INFO]
[INFO] Data Generator Parent POM .......................... SUCCESS [  5.137 s]
[INFO] Data Generator Common Utils ........................ SUCCESS [ 10.378 s]
[INFO] Data Generator Core Library ........................ SUCCESS [ 28.855 s]
[INFO] Data Generator Example - Default Distributor ....... SUCCESS [  2.666 s]
[INFO] Data Generator Example - HDFS Distributor .......... FAILURE [  0.747 s]
[INFO] Data Generator Simple CSV .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 48.003 s
[INFO] Finished at: 2016-03-11T19:14:03+00:00
[INFO] Final Memory: 46M/217M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4:shade (default) on project dg-example-hadoop: Error creating shaded jar: Invalid signature file digest for Manifest main attributes -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]

See https://github.com/FINRAOS/DataGenerator/pull/293
But it is still failing...

We are no longer supporting Java 1.7, so this is no longer relevant.


Added ability to get modules from NODE_PATH if exists

Node JS allows you to specify a NODE_PATH env variable, this allows you to require things from directories that are not in the project path.
We use this in our node projects and in React Native to tell it to get the modules from our_project/third_party/js. Now that react-native has react as a peer dependency we are running into issues where node-haste will only look for react in node_modules folders and miss out third_party/js completely.

@benhughes thank you for your contribution. NODE_PATH is already used by the host node process, that’s why I think we should have a separate mechanism to support this.
Please don’t bother updating the PR, as we are currently looking into replacing node-haste.


Fix exceptions in React 16 for React.PropTypes being deprecated

React 16 deprecates React.PropTypes in favor of a separate library 'prop-types'.
Trivial change, simply import PropTypes from 'prop-types instead of from React.

should prop-types also be added as a dependency in package.json?

I did not have to do that for any projects. I am guessing prop-types are a
required package for React 16. I have the same sources building with React
15 with no problems.
On Thu, Sep 7, 2017, 2:14 PM Stian Jensen<EMAIL_ADDRESS>wrote:

should prop-types also be added as a dependency in package.json?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/christopherdro/react-native-calendar/pull/162#issuecomment-327929373,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACiBmJM1wCW_BFY4PvTLvyewL-2NRG4xks5sgFy9gaJpZM4PKp6P
.

Then I guess no change in yarn.lock should be needed.

Could this be merged?

I hope so! Let me know if you want me to make a new pull request for this.

I already merged in https://github.com/christopherdro/react-native-calendar/pull/106 that had this fixed already.


Changing isNaN to eqNaN

Closes #977

I like the current name. JavaScript has isNaN and Number.isNaN, and R.isNaN is clearly a member of the family. I don't find the argument for renaming the function compelling, but if we do decide to avoid naming collisions I suggest removing the function and suggesting people use R.eq(NaN) instead.

removing and using eq(NaN) looks good to me

That would be fine with me too.  This function is a little specialized in any case.  Since eq is actually built to handle this, I think that may be best.

Will open another one soon to remove the function and suggest eq(NaN).  I suppose with a deprecation first.


Release 1.2

@johnDance @xreid @seanmakesgames @jz-huang @LGraber

Files look good. I assume the docs changes will be happening in a different pull request.

Yes. Dave has a PR out for that.

Tested the latest lib files against autoTest. All test pass successfully


Very slow read from a super massive table in Azure Data Lake Gen2

First of all thanks for creating this awesome library and eliminating the need to use spark for everything related to deltalake.
I have been trying to read a table from Azure Data Lake gen 2 and it is super slow.
The table hast lots of versions but when instantiating DeltaTable I specify the latest one
dt=DeltaTable("adl://container1/table1/", version=33, storage_options=storage_options)

This above code is almost fast 6s, but when I run to_pyarrow_table and to_pyarrow_dataset to use the data later in DuckDB it is taking super long. Is it possible to increase the number of threads it uses for reading data?
Any other possible solution?
Thanks in advance!

We have some ideas to improve read performance using our internal file system implementaions (which are in use here).
In case you have some predicates that can be applied to you data, you may be able to avoid reading some of the data into memory, by using to_pyarrow_dataset and subsequently the scanner(...) methods. I "think" DuckDB can also do predicate pushdown for pyarrow types, but I am not sure about it. In case that does not happen, or happen only partially, applying some predicated to the scanner should give you some performance boost.

We have also experienced really slow reads with ADLS gen 2 and a 70 mb file taking 12 minutes.

Hi there!
We found a faster approach for this one if your goal is only read the current data of the delta table.
Steps are:

Create a DeltaTable instance.

dt = DeltaTable("adl://container1/table1/", storage_options=storage_options)

After this, the goal is to grab the path of the current parquet files used by the latest version of the delta table:

files = dt.file_uris()

Create a pyarrow dataset using these files and read into a pyarrow table. You also need to pass the fs used:

import pyarrow.parquet as pq
import pyarrow as pa

pq_data = pq.ParquetDataset(path_or_paths= files, filesystem= fs)
table= pq_data.read()

Special thanks to @Yacobolo for this one!

I think this is likely due to some GIL-locking in the filesystem implementation.
If you pass a PyArrow filesystem down instead, does it perform as expected?
dt = DeltaTable("adl://container1/table1/")
dt.to_pyarrow_dataset(filesystem=fs)

I think this is likely due to some GIL-locking in the filesystem implementation.
If you pass a PyArrow filesystem down instead, does it perform as expected?
dt = DeltaTable("adl://container1/table1/")
dt.to_pyarrow_dataset(filesystem=fs)

Does it have to be a pyarrow filesystem? Or is a fsspec filesystem also fine?

@ion-elgreco Okay. Did you get faster performance using PyArrow datasets directly on the parquet files in Azure? https://github.com/delta-io/delta-rs/issues/1569#issuecomment-1687827446
I suspect the fsspec implementation also holds the GIL, given it's implemented in Python. So comparing against that might not be relevant. But if you get better performance by reading the parquet files with PyArrow directly, then that would point to something else.

Yes, reading the files directly with pyarrow dataset is the fastest.

@wjones127 You can disregard my previous results, I had a network issue which slowed down the reads. I retried it today and passing a pyarrow filesystem which made it just as fast as using pyarrow.dataset.dataset directly.
def read_delta_fast_lazy(
    file: str,
    storage_options: dict | None = None,
    version: int | None = None,
) -> pl.LazyFrame:
    if storage_options is None:
        fs = fsspec.filesystem("file")
    else:
        fs = fsspec.filesystem("abfs", **storage_options)
    dt = DeltaTable(file, version=version, storage_options=storage_options)
    files = dt.file_uris()

    pq_data = pa.dataset.dataset(
        source=files,
        schema=dt.schema().to_pyarrow(),
        format='parquet',
        filesystem=fs,
    )
    return pl.scan_pyarrow_dataset(pq_data)

This is also just as fast:
dt = DeltaTable(os.path.join(root_dir, file), storage_options=storage_options)
fs_abfs = fsspec.filesystem("abfs", **storage_options)
handler = pafs.FSSpecHandler(fs_abfs)
fs = pafs.PyFileSystem(handler)
sub_fs = pafs.SubTreeFileSystem(os.path.join(root_dir, file), fs)
df = dt.to_pyarrow_dataset(filesystem=sub_fs)

Thanks for confirming @ion-elgreco . I’ll look into this more soon

@wjones127 I've some done some performance checks with v0.10.1 and v0.10.2, and with my own function using pyarrow directly. Seems that it's working as expected now : )
def read_delta_fast_lazy(
    file: str,
    storage_options: dict | None = None,
    version: int | None = None,
) -> pl.LazyFrame:
    """Fast path to read delta tables lazily, until upstream fixed: https://github.com/delta-io/delta-rs/issues/1569

    Args:
        file (str): file url (abfs://...)
        storage_options (dict): storage_options for fsspec, must contain, client_id, client_secret, tenant_id
        version (int | None, optional): Version number of table. Defaults to None.

    Returns:
        pl.LazyFrame: dataframe
    """
    if storage_options is None:
        fs = fsspec.filesystem("file")
    else:
        storage_options['account_name'] = file.split("@")[1].split('.')[0]
        fs = fsspec.filesystem("abfs", **storage_options)
    dt = DeltaTable(file, version=version, storage_options=storage_options)
    files = dt.file_uris()

    pq_data = pa.dataset.dataset(
        source=files,
        schema=dt.schema().to_pyarrow(),
        partitioning="hive",
        format="parquet",
        filesystem=fs,
    )
    return pl.scan_pyarrow_dataset(pq_data)

Results (pyarrow dataset):
%%timeit
df = read_delta_fast(os.path.join(root_dir, "table"), storage_options=storage_options)
31.6 s ± 1.72 s per loop (mean ± std. dev. of 7 runs, 1 loop each)

Results (v0.10.1):
%%timeit
df2 = pl.read_delta(os.path.join(root_dir, "gear_sequences"), storage_options=storage_options)
49.3 s ± 1.5 s per loop (mean ± std. dev. of 7 runs, 1 loop each)

Results (v0.10.2):
%%timeit
df2 = pl.read_delta(os.path.join(root_dir, "gear_sequences"), storage_options=storage_options)
32 s ± 1.84 s per loop (mean ± std. dev. of 7 runs, 1 loop each)

@rtyler @wjones127 https://github.com/apache/arrow/issues/36765 enabling pre-buffer in the pyarrow parquet scan options boost the performance quite a lot.

@wjones127 @rtyler shall we close this issue now that pre-buffer is enabled in pyarrow?


[BUG] Buffering HTML for bots is not working properly in workers environments

When running in a worker environment using ?_bot, we get a response like this:

<template id="B:0"></template><template id="B:1">
...

<template id="B:2"></template>
...

Which means, even though we await for ssrReadable.allReady before buffering, React is still producing JS tags to assemble the HTML.
In Node, however, we get a proper response by starting to buffer after onAllReady is called:

<a href="[#mainContent](http://localhost:3000/?_bot#mainContent)"
...

While Cloudflare works on a fix, we can fix this temporarily by updating the ReadableStream constructor in react-dom-server-vite with:
new ReadableStream({
  // ...
+ }, {
+  highWaterMark: 0,
+  size: () => 1
});

I might also propose this upstream in React to be more explicit.

Update: Cloudflare will be shipping the fix next week (Week of June 7, 2022)


Adds support for lists of Polymorphic Embeds

Split off #6
Adds support for lists of Polymorphic Embeds & docs to illustrate use.

In the example code:
|> cast_polymorphic_embed(:channel)
|> cast_polymorphic_embed(:contexts)

How does PolymorphicEmbed type knows whether it's an array of embeds or not?
I also see this somewhere default: [] as an option, I guess that was a mistake?

@mathieuprog Ecto tells us whether it's an array in the schema: https://github.com/mathieuprog/polymorphic_embed/pull/14/files#diff-a291756daff8ccac4fc17f41b7d86bf642ec4d582faa45035a9856cb79af6d23R281

I should have a deeper look, but in cast_polymorphic_embed you call:
%{array?: array?, metadata: metadata, on_type_not_found: on_type_not_found} = get_options(changeset.data.__struct__, field)

But at that time you don't know if it's an array or not? How will you have the right value for :array??
Because  cast_polymorphic_embed is called before cast.

Not according to the docs 🤔:

You need to have called cast in order to have a changeset in the first place. Maybe I'm missing something?

yeah but not on the field :channel. It is cast_polymorphic_embed that will make the actual cast call for the field. I wonder why it works for you.
I think there's a mistake somewhere. Maybe the cardinality should be passed as an option, [cardinality: :many] that'd default to :one, or we need to remove cast_polymorphic_embed and change to cast_polymorphic_embed_one and cast_polymorphic_embed_many public functions. Or cast_polymorphic_embed and cast_polymorphic_embeds (singular vs plural).
It's a pity that the custom type is not automatically aware of that context data => array or not.

I think it works because ecto knows how to cast arrays, and it knows it's an array. You don't change your cast calls when the field is :string or {:array, :string} because ecto just works, the same holds here.
Happy to look into this given a failing test, as I'm not seeing the issue right now 🤔

When I try to push on the branch
git push git@github.com:myskoach/polymorphic_embed list-of-polymorphic-embeds
It says

ERROR: Permission to myskoach/polymorphic_embed.git denied to mathieuprog.

Can you check if edits from maintainers are allowed?
https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork#enabling-repository-maintainer-permissions-on-existing-pull-requests
Checkbox "Allow edits from maintainers"

Other quick question, shouldn't :contexts in the migration file be of type {:array, :map}, as we are storing a list of embeds?

Never mind, just found the answer in the docs:

It is recommended to declare your embeds_many/3 field with type :map in your migrations, instead of using {:array, :map}. Ecto can work with both maps and arrays as the container for embeds (and in most databases map are represented as JSON which allows Ecto to choose what works best).

@mathieuprog it's not there 🤷🏼♂:

Maybe send me a patch to jf at skoach dot com?

Hi, is there any update with this?

It's coming, gotta find the time. Hope I'll get into this soon.

@jmnsf @paintingwithcode
Support for lists of embeds arrived in 1.1.0
Note that there is now a mandatory option to be set :on_replace.
@jmnsf I rewrote the code you provided as in the meanwhile there have been significant refactorings. I hope you don't mind. It is a very nice contribution!


Removing width change onModalOpen

Removing width change onModalOpen, providing a better user experience on how navbar looks like.

The width change is actually keeping the width the same because of the removal of the scroll bar. I think the way it is now is actually good as it will prevent any janky page reflows and won't shift page content.


With multiple sessions T2WML loses track of uploaded files

With multiple sessions T2WML loses track of uploaded files
To replicate:

open t2wml tab and upload WGI dataset
open another t2wml tab and update UN Median population dataset, and click suggest annotations
go back to first tab with WGI dataset and click suggest annotations. T2WML complains that no file is associated with project

this is due to a problem with how the session tokens are handled in the frontend

The frontend probably stores the session in localStorage. It should either be in an app-based store, or in sessionStorage


Integrate with Grafana Live

Grafana Live seem interesting, but it is unclear how live data and persistent data can be shown in the same pane;.

It seems Live is essentially a a completely different solution and it won't work with InfluxDB effectively.


Possible to override the helpers/Password class?

Wondering if we can override this like models/controllers as we're trying to extend the validation method.

At the moment there is no way you can override that class. However I want to refactor it, so developers will be able to override it.


Question about stream binder like queue for streamListener

There is some questions about below code. From my understanding, when I want to POST to /actuator/bus-refresh of config-server, the config-server itself can also receive the data too. If not from config-server, it will publish this event to stream. My question is about how that works if the stream queue message will be delete (like spring-cloud-azure-servicebus-queue-stream-binder) once it received, if we do not delete that received message, which means other client can receive that forever ?
https://github.com/spring-cloud/spring-cloud-bus/blob/fd827e8e8bf2ed53c678d2957a18a3461cb5b27a/spring-cloud-bus/src/main/java/org/springframework/cloud/bus/BusAutoConfiguration.java#L148-L162

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.


Support for local images referenced by path

Would like to reference embedded images, not sure where the React Native packager puts the images, and therefore, not sure how to reference them in the path portion of an image.
Eg,
![Image](./where/is/the/image.jpg)

Maybe you can make a pull?
In renderRules.js line 229 you see a rule
image: (node, children, parent, styles) => {
    return (
      <FitImage
        indicator={true}
        key={node.key}
        style={styles.image}
        source={{ uri: node.attributes.src }}
      />
    );
  }

by checking if the file is a external request or a local request you can make this also working locally.
THIS IS PSEUDO CODE
image: (node, children, parent, styles) => {
    let url = null;
    if( isLocalURL(node.attributes.src)){
      url = require(node.attributes.src)
    } else {
      url = {uri: node.attributes.src}
    }
    return (
      <FitImage
        indicator={true}
        key={node.key}
        style={styles.image}
        source={url}
      />
    );
}
  }

Looks like a good approach. I'll have to research a few other things (specifically, assets handling, especially amongst different ReactNative Environments), but I'll contribute that PR in the coming weeks!

@mientjan the solution you provide cant be implemented because of the way react native bundles.
It can be seen here https://facebook.github.io/react-native/docs/images#static-image-resources
We wont be able to use require with a variable.
Anyone found the solution?


Enable SLE_12_SP4

In preparation for OpenStack Rocky upgrade, we need to first
enable it on Master and get it tested.
Jira: https://jira.prv.suse.net/browse/SCRD-4288

we dont really want merge commits in a PR - can you git rebase origin/master


Header modifications, Issue #69 "Enhance Styling of Header Component"

Description
Modified the header file based on the requests of the issue #69
Created a menu for the tools. docs, night mode switch. Made the switch stay toggled when you close the menu, depending on the current theme. Added descriptions next to the icons and margins.
Related Issues
Issue #69 "Enhance Styling of Header Component"
Checklist

[True] I have tested my changes locally.
[True] I have added necessary documentation or updated existing documentation.
[True] My code follows the project's coding conventions and style guidelines.
[ ] All tests pass successfully.
[ ] I have added/updated relevant unit tests.

Additional Notes
Seeking constructive feedback on my pull request—appreciate any insightful criticism to improve the header and the over all code. Thank you!

Thank you for the feedback!
I have some questions:

Can I have the names of the icons below them, on the desktop, or do you want them somewhere else?
Does "Theme" sound good for the switch?

Good job :)


Freezes/Crashes Browser Chromium on Android

I am using Brave browser 1.35.103 Chromium 98.0.4758. 102 Android 8
Whenever I try to edit bigish files (1000 lines of English sentences) on StackEdit, the browser would get REALLY SLOW, and then crashes. The blinky cursor still blinks, and the clock still spins, and it's still responsive, but the lag time is about 15-40 seconds, it heats up the phone, it overloads the browser, and Android eventually force shuts the browser down.

This issue only presents itself with text files that contain maybe more than 200 lines of text. Whenever I start off a new file, with only two lines, everything's hunkydory, but the second I start to grow it, CRASH.
more details

I also tested the issue on regular Chrome on android, and I gotnt

This issue does not present itself on Firefox on Android though, however other issues are present which I don't want to talk about here.

So, the reason I actually made a post here is that I finally got a clue! So...
I was editing a small document in Firefox, but I was sick of the bugs so I decided to move to a Chromium browser. I switched and it was great (small document) but I accidentally tapped on one of my behemoth documents, and my browser started to die. I was going to need to go back to the original (small) document. So I started rapid fire- closing the browser, starting the browser, and clicking the folder button, (This usually works after 50 or so tries) The idea is if the top bar loads before the document does, I can still reach the menu, before the website tries to parse the text and crash (I think). In that short time I can click on a smaller, non-catastrophic document. I was impatient though, so I decided to go to delete the contents of the large document on Firefox, so it wouldn't load much and burden Chromium. So I deleted the behemoth's text converting into smallhemoth, and HERE'S WHERE IT GETS GOOD. The deleted text still was present on the Chromium side, even after multiple restarts. So I think this is a cache issue.


Dapr support

Have you ever used dapr with FastEndpoint?
Dapr integrates quite easily with minimal apis .net using the package:
https://www.nuget.org/packages/Dapr.AspNetCore
app.MapPost("...", async (...) => {  ... }).WithTopic(PUB_SUB_NAME, TOPIC_NAME);
We could integrate it directly into the endpoint configuration in this way:
public override void Configure()     {         Post("someendpoint");         Policies("somepolicies");         WithTopic(PUB_SUB_NAME, TOPIC_NAME);     }
What do you think?

you can use the WithTopic()extension methods with fastendpoints too. via the Options(...) method that exposes the endpoint builder as shown here: https://fast-endpoints.com/docs/misc-conveniences#endpoint-options

Perfect, thanks for the quick response! 😉

I'm coming back to you because when I integrated dapr with fastendpoints, I had a problem with routing.
When I don't include UseFastEndpoints(), it works fine, the endpoint registration is ok:

When i integrate UseFastEndpoints(), i get the following error:

I've checked Dapr troubleshooting documentation (https://docs.dapr.io/developing-applications/sdks/dotnet/dotnet-troubleshooting/dotnet-troubleshooting-pubsub/) but it doesn't help.
I've integrated the following code :
`app.UseFastEndpoints();
app.UseCloudEvents();
app.MapSubscribeHandler();`
Have you seen this error before?

i don't see anything fastendpoints related in that stack trace. seems to be thrown by dapr.
to be frank, i have zero exposure to dapr, so can't really help without knowing how to replicate the issue exactly.
first try sending that stack trace to dapr people and see what they have to say. because FE is just a wrapper around minimal apis and it should work with anything that supports minimal apis.
if all else fails, can you put together a standalone/ bare minium repro project that i can just run and debug?


Fix NRE on IntellisenseHelper.TryGetInnerMostFunction

Telemetry from Power Apps showed a large number of NullReferenceException instances coming from this method. A TryXXX method should return false instead of throwing a NRE.

✅ No public API change.


But what does it do?

Exactly.

That was incredible @anythingbot :clap:

Great answer, but bumping because It still doesn't explain WHAT CAN THE BOT DO? xD
Maybe a list of functionalities currently implemented or something?


Cannot Live Preview PHP Files

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[x ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior
Cannot Live Preview PHP Files

Expected behavior
Live preview of PHP Files

Environment
Browser:

- [x ] Chrome (desktop) version 69.0.3497.12 (Official Build) dev (64-bit)
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server:  5.1.1 <!-- Check which version is installed -->
- Platform: Linux, Ubuntu 18.04   <!-- Mac, Linux, Windows -->
- Visual Studio Code: 1.25.1 <!-- `code --version` -->

@dr34mwh1t3 Please check this https://github.com/ritwickdey/vscode-live-server/blob/master/docs/faqs.md#how-to-setup-live-server-for-dynamic-pages-like-php


Problem: Source files contain no license info

Solution: Add comments with SPDX license info to source files
Notes:

I used the add-spdx script from https://github.com/bigchaindb/BEPs/tree/master/tools
After doing that, I undid the changes it made to the files:

.github/ISSUE_TEMPLATE.md
.github/PULL_REQUEST_TEMPLATE.md
k8s/nginx-openresty/LICENSE.md
k8s/nginx-openresty/container/README.md
LICENSES.md

When I tried to commit the changes, the Git pre-commit checks were failing for Flake8 and PEP257 compliance. (See below.) I'm not sure why. Anyway, I fixed all the errors and got those checks to pass.

Flake8...................................................................Failed
hookid: flake8

acceptance/python/src/test_basic.py:44:5: E303 too many blank lines (2)
acceptance/python/src/test_basic.py:65:5: E303 too many blank lines (2)
acceptance/python/src/test_basic.py:77:5: E303 too many blank lines (2)
acceptance/python/src/test_naughty_strings.py:15:120: E501 line too long (120 > 119 characters)
bigchaindb/backend/utils.py:5:1: E302 expected 2 blank lines, found 1
bigchaindb/consensus.py:7:1: E303 too many blank lines (3)
bigchaindb/exceptions.py:5:1: E302 expected 2 blank lines, found 1
tests/common/utils.py:5:1: E302 expected 2 blank lines, found 1
tests/web/test_server.py:5:1: E302 expected 2 blank lines, found 1

Verifying PEP257 Compliance..............................................Failed
hookid: pydocstyle

bigchaindb/backend/query.py:369 in public function `get_validator_set`:
        D209: Multi-line docstring closing quotes should be on a separate line
bigchaindb/common/transaction.py:576 in public method `spent_outputs`:
        D403: First word of the first line should be properly capitalized ('Tuple', not 'tuple')
bigchaindb/core.py:1 at module level:
        D209: Multi-line docstring closing quotes should be on a separate line
bigchaindb/core.py:35 in public class `App`:
        D209: Multi-line docstring closing quotes should be on a separate line
bigchaindb/core.py:71 in public method `check_tx`:
        D209: Multi-line docstring closing quotes should be on a separate line
bigchaindb/core.py:104 in public method `deliver_tx`:
        D209: Multi-line docstring closing quotes should be on a separate line
bigchaindb/core.py:122 in public method `end_block`:
        D209: Multi-line docstring closing quotes should be on a separate line
bigchaindb/fastquery.py:10 in public class `FastQuery`:
        D204: 1 blank line required after class docstring (found 0)
bigchaindb/fastquery.py:10 in public class `FastQuery`:
        D212: Multi-line docstring summary should start at the first line
bigchaindb/fastquery.py:17 in public method `get_outputs_by_public_key`:
        D212: Multi-line docstring summary should start at the first line
bigchaindb/fastquery.py:28 in public method `filter_spent_outputs`:
        D212: Multi-line docstring summary should start at the first line
bigchaindb/fastquery.py:42 in public method `filter_unspent_outputs`:
        D212: Multi-line docstring summary should start at the first line
bigchaindb/utils.py:35 in public class `Process`:
        D209: Multi-line docstring closing quotes should be on a separate line

Codecov Report

Merging #2455 into master will increase coverage by 0.1%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master    #2455     +/-   ##
=========================================
+ Coverage   88.16%   88.27%   +0.1%
=========================================
  Files          40       40
  Lines        2298     2319     +21
=========================================
+ Hits         2026     2047     +21
  Misses        272      272

@muawiakh Please don't merge yet. I want to fix the Python (*.py) files that contain a # -*- coding: utf-8 -*- line. That line should be kept as the first or second line. I'll also update the script.

I just removed the # -*- coding: utf-8 -*- lines from all Python files that had it, because it's not needed in Python 3 files.
This pull request can be reviewed (and merged if you approve).


make project tests pass

Same workarounds as on ci.dawg.eu, finally testing everything and passing.
https://ci2.dawg.eu/blue/organizations/jenkins/dlang/detail/dlang/150/pipeline


feat(search): use hooks to style on input focus and show recent queries [f-7]

This PR stacks on #124 . It will be rebased onto next once that is merged in.

This PR styles the search bar on blur and focus so that it expands/collapses to show/hide the recent searches.
Before this PR

Search input field did not include recent search history
The SourceSelect buttons did not span the width of their container

After this PR

Search bar expands to show recent history (up to 3 searches)
Recent history is clickable
SourceSelect buttons styling matches comps more closely

Future work

Add a search button under the search bar
Add a clear button under the search bar
Add hover styling to the recent searches
Responsive styling for the search bar and the recent searches dropdown.

VIdeo 📹
https://user-images.githubusercontent.com/16711614/144484926-a13768fc-f185-4d20-bd1d-49a537e62cf8.mov

Stacked PR Chain: f-7

PR
Title
Status
Merges Into

#124
chore: fix layout and styles of source select and search bar

-

#125
👉 *(Draft) feat(search): use hooks to style on input focus and show recent queries *

#124

#126
chore: fix className overriding

#125

#127
chore: layout top bar correctly

#126

#128
chore: fix left icon

#127

#129
chore: update source select dropdown, and api calls

#128

#131
chore: fix layout and styles of source select and search bar

#129

#132
chore: have search-bar take up container width

#131

#133
chore(search): refactor on-focus styling

#132

#135
*(Draft) chore(search): add buttons to expander *

#133

#136
*(Draft) fix: use the active prop *

#135

#137
*(Draft) chore(search): refactor handlers *

#136

CI is breaking because of the useFocus hook. It's really more of a listing issue, and since other PRs in the stack use this hook, I feel more comfortable tackling the CI issue as the last commit in the stack. Hope that's alright.


💬 RFC: Jest Error from @backstage/backend-test-utils

🔖 Need
Issue: ReferenceError: jest is not defined
Context: We recently upgraded our Backstage version and created a custom TechInsights plugin. This plugin has a dependency on @backstage/backend-test-utils. When attempting to run yarn dev, we encounter the following error:

/Users/rxxxmxxxx/Documents/bug-fix-tech-insights/xyzz-idp-app/packages/backend/node_modules/@backstage-community/plugin-tech-insights-backend/node_modules/@backstage/backend-test-utils/src/next/services/mockServices.ts:64
child: jest.fn().mockImplementation(createLoggerMock),
^
ReferenceError: jest is not defined
at createLoggerMock (/Users/rxxxmxxxx/Documents/bug-fix-tech-insights/xyzz-idp-app/packages/backend/node_modules/@backstage-community/plugin-tech-insights-backend/node_modules/@backstage/backend-test-utils/src/next/services/mockServices.ts:64)

Steps Taken:

Upgraded Backstage version.
Created a custom TechInsights plugin.
Added @backstage/backend-test-utils as a dependency.
Ran yarn dev.

Error Details:

The error occurs in the mockServices.ts file at line 64. (inside my node_modules of backend I am able to see this path "backend/node_modules/@backstage-community/plugin-tech-insights-backend/node_modules/@backstage/backend-test-utils/src/next/services/mockServices.ts:64")
It seems that jest is not defined in the context where createLoggerMock is being called.

Request for Help: Could anyone provide guidance on how to resolve this ReferenceError? Specifically, how can we ensure that jest is properly defined and available in the context of mockServices.ts?
🎉 Proposal
Issue: ReferenceError: jest is not defined
Context: We recently upgraded our Backstage version and created a custom TechInsights plugin. This plugin has a dependency on @backstage/backend-test-utils. When attempting to run yarn dev, we encounter the following error:

/Users/rxxxmxxxx/Documents/bug-fix-tech-insights/xyzz-idp-app/packages/backend/node_modules/@backstage-community/plugin-tech-insights-backend/node_modules/@backstage/backend-test-utils/src/next/services/mockServices.ts:64
child: jest.fn().mockImplementation(createLoggerMock),
^
ReferenceError: jest is not defined
at createLoggerMock (/Users/rxxxmxxxx/Documents/bug-fix-tech-insights/xyzz-idp-app/packages/backend/node_modules/@backstage-community/plugin-tech-insights-backend/node_modules/@backstage/backend-test-utils/src/next/services/mockServices.ts:64)

when we checked this repo link for latest @backstage/backend-test-utils but after doing yarn install and yarn dev we are getting jest not define.
〽 Alternatives
No response
❌ Risks
No response
👀 Have you spent some time to check if this RFC has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you seeing this error when importing @backstage/backend-test-utils in a test file? It is only intended to be used in tests, if it's imported in the main build it's expected that it breaks in this way.

when we are trying to run application via yarn dev then I am getting this jest not define.
The thing is we are not able to find mockservice.ts inside backend/node_modules.

And this is getting from plugin tech-insigths.

I see that the tech-insights backend has a production dependency on backend-test-utils: https://github.com/backstage/community-plugins/blob/fdb08e6fe73cc3c0d2be8e37b059979a5cd2eb0c/workspaces/tech-insights/plugins/tech-insights-backend/package.json#L53
There's also no /testUtils entry point or similar, so that dependency shouldn't be there and is looking like a bug in the tech insights plugin. Gonna move this over to the community plugins repo for fixing there


Add new function: FetchAll to Storage interface

The newly added funtion simply returns the map[string]Account of the Storage object.
I need this functionality in an downstream application in order to be able to iterate over the accounts (or rather domains) that are managed with it.

Pull Request Test Coverage Report for Build 451090191

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.4%) to 83.571%

Totals

Change from base Build 389116129:
0.4%

Covered Lines:
117

Relevant Lines:
140

💛  - Coveralls

Thanks again @joohoi - I tagged a release with this work included: https://github.com/cpu/goacmedns/releases/tag/v0.1.0


healpix_plot & healpix_count expecting Gaia conventions

The current API is based on Gaia defaults which are not obvious outside Gaia:
healpix_expression='source_id/34359738368', ... nest=True, ...
These are not the defaults in healpy. Healpy by defaults does nest=False for instance.
Maybe providing a virtual column that does the healpix calculations from RA, DEC columns similarly to the coordinate conversions?
maybe adapting properly something like:
def add_columns_healpix_data(ds, coords=('ra', 'dec'),
                          name='source_id', nest=True,
                          lonlat=True, NSIDE=4096):
    """ Vaex defaults to Gaia conventions for healpix handling

    namely it defaults to having Healpix cell numbers as
    'source_id /<PHONE_NUMBER>8'

    It also uses nested pixels (not rings)
    """
    import healpy
    # add healpix numbers for plotting
    # using Gaia conventions
    ra, dec = coords
    _ra = ds.evaluate(ra)[:]
    _dec = ds.evaluate(dec)[:]
    hpix = healpy.ang2pix(NSIDE, _ra, _dec,
                          nest=nest, lonlat=lonlat)
    # convention from gaia
    ds.add_column(name,<PHONE_NUMBER>8 * hpix).astype(int))
    return ds

Hi Morgan,
the default healpix expression is different in master, since it was indeed really gaia specific. However, the default for nested or not i'm not sure about, I have a preference for it since it is easy to go to coarser level by simply dividing. (I don't think you can do that for ring right?).
There is a method for this already I hope that suits your needs. Thanks anyway!
cheers,
Maarten

Hi Maarten,
I found my way with the methods. I suggests to update the documentation and make the healpix_plot expression more standard or a necessary argument.
Thanks

I'm actually just playing with the healpix_plot, and indeed it is still set to the gaia values, which does not make sense, I need to change that.


Added token refresh

The main addition of this PR is to add a refresh of the account server token before its expiry, which is the suspected cause of #28. It also contains a few refactors and corrections in the network components.
With this fix, token expiry is saved in the network client. A routine is started by the global manager, that updates the token (and the clients created with this token) 2 minutes before a token expires. If the token cannot be refreshed, it is considered as a fatal error and shuts the packet forwarder down.

The latest commit introduces a networkChanges channel in the network client. Whenever a network change needs to be applied (new router, new account server info...), it is passed to this channel as a function that contains the changes to execute. A goroutine then fetches this function, executes it in a safe (locked) environment, and updates subsequently the streams and connections.
The network client also has now less mutexes - only networkMutex, for general network operations (uplink transmission, client changes...), and streamsMutex, for operation regarding streams.
In the manager, there are now separate error channels for every routine (uplinks, statuses, GPS, network).

Is merge OK?


Update README.md

I couldnt figure out if i where to open an issue or reply here, but since this PR is about the ts-example:
The types dont seem to work when using require? And when instead using an es6 import, the types work, but then it just returns typeerror:
TypeError: Cannot read properties of undefined (reading 'TransactionalEmailsApi')
This was solved by awaiting the import:
const brevo = await import('@getbrevo/brevo');
So, would it be reasonable to update the readme with es6 imports?


fix/minor: Error encoding hexa decimal

String is defined as an array of char. The char can be negative. The
cast "reinterpret_cast" from char to int keep the negative side, so
the "unsigned char" number 0x91 is negative as "char". When it is
"reinterpret_cast" as integer, it becomes 0xffffff91, so the hexadecimal
display is broken:
[155493246391.747672] [/absolute?what=badarg2] [9]  T (0) t:hexEncode: "ffffff91ffffffecffffffe6334bffffffebffffff87ffffff9affffff824a06ffffffc33b4cffff (14 characters omitted)"
This patch fix this behavior using classic cast without reinterpret_cast:
[155493251286.221115] [/absolute?what=badarg2] [9]  T (0) t:hexEncode: "91ece6334beb879a824a06c33b4cb4240e4c6f56"

Hi @tech-ozon-io,
Thank you for your contribution. Sorry, for the delay. The code is now merged!


fix(challange): Redundant note has been removed

Pre-Submission Checklist

[x] Your pull request targets the staging branch of freeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Addressed currently open issue (replace XXXXX with an issue no in next line)

Closes #16893
Description

Redundant note has been removed

:sparkles: :sparkles: NEAT..! :sparkles: :sparkles:
Thanks @muratdogan17 !! Congratulations on your first contribution to this code base, and we look forward to more.


Fix velocity issues

When submitting the answer without throwing it, the object maintains velocity after being reset, this does not look good, but is not crucial

This issue will not be worked on