Retrieve channel info & search with a specific time span

Thank you for this really great work!!!
I have a question, how can I search videos with keywords in a specific time span.
For example, I want to get the videos with "china" and  uploading between 2022.1.1 - 2022.1.30

Hello,
I think that's not possible

These are all of filters that are available in YouTube.
But we do provide filters for last month, last hour, last day etc.
from youtubesearchpython import *

customSearch = CustomSearch('NoCopyrightSounds', VideoUploadDateFilter.lastHour, limit = 1)

print(customSearch.result())

I don't know if you are able to search in any third party app by the timespan, if you do know any app, please let me know and I will have a look at it.

Thank you for the reply!!! Currently, I don't find an app that can search with a timespan.
I still have a question, How can I get the information of a user? for example:  https://www.youtube.com/c/NoCopyrightSounds/about

Thank you for the reply!!! Currently, I don't find an app that can search with a timespan. I still have a question, How can I get the information of a user? for example: https://www.youtube.com/c/NoCopyrightSounds/about

This is currently not possible. Will have a look into that.

👍👍👍

Sorry it takes me so long. I have a lot of other projects. Will have a look soon.

Never mind, Thanks a lot!!!

When I merge #165, I'll publish everything onto PyPi and you are ready to go.
If you are curious how does it look like, I'd recommend installing from Git:
pip install git+https://github.com/alexmercerind/youtube-search-python@transcript

You can use following code:
from youtubesearchpython import Channel

print(Channel.get("UC_aEa8K-EOJ3D6gOs7HcyNg"))

wow!!! nice job!


Getting error when passing google pay token

I'm passing just string and all error causes in mutation
"""mutation {       payOrderByToken(input: {token: "$token"}) {         boolean       }     }"""..replaceAll('\n', ' ')
this is error
E/flutter ( 2144): #0      _Scanner.scanToken (package:gql/src/language/lexer.dart:229:5) E/flutter ( 2144): #1      Lexer.tokenize (package:gql/src/language/lexer.dart:112:23) E/flutter ( 2144): #2      parse (package:gql/src/language/parser.dart:14:24) E/flutter ( 2144): #3      parseString (package:gql/src/language/parser.dart:27:5) E/flutter ( 2144): #4      gql (package:graphql/src/core/query_options.dart:10:35) E/flutter ( 2144): #5      GooglePayProvider.execute (package:qummy/src/datasource/google_pay_provider.dart:20:47) E/flutter ( 2144): <asynchronous suspension> E/flutter ( 2144): #6      BasketBloc.googlePayStatus (package:qummy/src/bloc/basket/basket_bloc.dart:189:51) E/flutter ( 2144): <asynchronous suspension> E/flutter ( 2144): #7      ShoppingBasketState._handleMethod (package:qummy/src/ui/basket/shopping_basket.dart:492:21) E/flutter ( 2144): #8      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:402:55) E/flutter ( 2144): #9      MethodChannel.setMethodCallHandler.<anonymous closure> (package:flutter/src/services/platform_channel.dart:370:54) E/flutter ( 2144): #10     _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:200:33) E/flutter ( 2144): #11     _invoke3.<anonymous closure> (dart:ui/hooks.dart:303:15) E/flutter ( 2144): #12     _rootRun (dart:async/zone.dart:1126:13) E/flutter ( 2144): #13     _CustomZone.run (dart:async/zone.dart:1023:19) E/flutter ( 2144): #14     _CustomZone.runGuarded (dart:async/zone.dart:925:7) E/flutter ( 2144): #15     _invoke3 (dart:ui/hooks.dart:302:10) E/flutter ( 2144): #16     _dispatchPlatformMessage (dart:ui/hooks.dart:162:5)

It's likely a sanitisation issue and your token contains bad characters.
It's a good practice to keep your queries constant and make use of operation variables.

As klavs said. I recommend using r""" strings as well.
Please come by the #support channel in discord as this is more a usage question.


Rename the _views directories in ITs back to views after the FS Router bug is resolved

Describe the bug
We had to rename the frontend/views directories in the following ITs so that FS Router doesn't engage in those projects after the #2188 is merged:

react-signals
react-grid-test
We should rename these back to ensure FS Router is also working fine in those ITs.

Expected-behavior
To have views directory in React related ITs and verify that the FS Router is working in those IT apps properly.
Reproduction
N/A
System Info
N/A

The files related to react-grid-test is already done in #2188.


bower package v3.2.7 does not contain dist folder

@Eptis apologies for that, there was a hiccup in our deploy process. Give a try and let me know if it works for ya!


reportng revival?

reportng is an important stone of the TestNG ecosystem and it is used by many people even if it is not maintained since years.
Some forks are still alive and continue to progress but they don't have the visibility they deserve.
That's why the @testng-team/testng proposes to own its own fork under the org.testng groupId on maven central if one or more person(s) want to take the leadership of the project.
@mingyu0519 @ptsiakos77 @AngryTester @guoxn @lenxeon @zhangyy-k @tm93112 @leopold-liu All of you have at least one recent (in the last year) commit. Are you interested in the idea?

@juherr and @krmahadevan: I'm working on it and send you the PR once done.

@juherr and @krmahadevan : Can this issue be closed?

Closed by https://github.com/testng-team/reportng/pull/2


[WIP] Update select choices whenever entry changes

Fixes #1193.

[x] Update available choices on maChoicesField when model changes
[x] Update selected value when available choices are changed

Switching to RFR:


Is it possible to add Openrouter?

I always use models from Openrouter's api key. Is it possible to add Openrouter option?

I always use models from Openrouter's api key. Is it possible to add Openrouter option?

use OpenAI Chat llm provider
set the base path to https://openrouter.ai/api/v1
search for Experimental features enable it, then you should be able to set custom value to the model field


One more prerequisite

I have spent man hours last night and also some time today trying to find out why I get an error from Stack on 1 of 2 mostly the same Ubuntu machines. And I use Stack installed using HM and based on this template. It appears that I was missing $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh in my ~/.bashrc and a workaround for locales wasn't working correctly.
It would be useful to have this documented. Thanks.

@qrilka Does this section on the Caveats saying that you need HM to manage bash not cover this? https://github.com/ryantm/home-manager-template#caveats

In principle yes, thank you
See #3


Add all fields to JSON

Record 77, id 102, in the JSON doesn't have the dimensions.
For consistency, can you add them, so all records have the same number of fields in the same order?  Of course, in JSON you don't need to do that, as you inherently would in CSV.
The JSON data is more complete, but I'm pretty much treating it the same as the CSV, and am thrown off when some fields are missing.

No height and width, like all the preceding records have.
Thanks!

Oh, I see, starting with record 77 there's now a dimensions field, rather than height and width.  But that's inconsistent with the way the CSV is.  Hmm.

Although I still think the fields should be documented (#33 ) I can simply read the whole file and look for new keys, so I'll close this.


directives that can be used in .rdp files don't have a reference

seeing the content in this page, I believe that it is a good place to have a COMPREHENSIVE (not summary) of all the possible values in an .rdp file listed here as well.
I agree with this link:
https://www.rdsgurus.com/rdp-file-settings-an-ongoing-list/
that claims there is no such list populated anywhere on microsoft.com or affiliated websites. it would be nice to have examples of the relevant PowerShell command to modify those parameters as manually modifying the .rdp files will break their signature.

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

ID: 9effefa0-ac98-1fdd-6174-f06d524622f5
Version Independent ID: 5d405e1c-d2eb-9c72-3cf6-817930cad4f6
Content: Remote Desktop clients URI scheme
Content Source: WindowsServerDocs/remote/remote-desktop-services/clients/remote-desktop-uri.md
Product: windows-server-threshold
GitHub Login: @lizap
Microsoft Alias: elizapo

#please-close


JBPM-4303 -  Add a queue-based implementation of the process engine

See https://github.com/droolsjbpm/jbpm/pull/563 for all discussion and explanation.
PR set:

https://github.com/droolsjbpm/droolsjbpm-build-bootstrap/pull/268
https://github.com/droolsjbpm/droolsjbpm-knowledge/pull/164
https://github.com/droolsjbpm/drools/pull/887
https://github.com/droolsjbpm/jbpm/pull/563

@psiroky, @mswiderski, @krisv, @MarianMacik If you wouldn't mind reviewing the changes to kie-api?

@mrietveld looks there are conflicts, do you mind rebasing?
one comment about NodeRemoved event listener extension that I believe makes sense to be included


scrollV and scrollH fixes

Fixes scrollV and brings scrollH to parity with Flash.
With every font and font size I tested, scrollH gets bumped in increments of 24 px, so that is captured here.

@mikhailitsky


html2canvas is not able to capture a SVG in IE11.

Specifications:

html2canvas version tested with:  1.0.0-alpha.10
Browser & version: Internet Explorer 11 & Version: 11.309.16299.0
Operating system: Window 10

Bug reports:
Problem
html2canvas is not able to capture a SVG in IE11.
Steps to reproduce
Please see jsFiddle: https://jsfiddle.net/coolbean/ekshfuLz/17/

install html2canvas and es6promise

 var Promise = require('es6-promise').Promise;
 import html2canvas from "html2canvas";

Calls html2canvas on a DOM with SVG tag

html2canvas(SVGsource).then(function(canvas) {
  document.body.appendChild(canvas);
});

When I tried above in Chrome, html2canvas finished loading "1" images.
However, IE11 finishes loading "0" images.

As a result, the produced canvas is empty.

There is no error log,
so I assume that this problem might be from incompatible syntax of SVG tag.

Update
I am to make it work by switching version from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>// import the following 2
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.5.0-beta4/html2canvas.js"
                type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/0.5.0-beta4/html2canvas.svg.js"
                type="text/javascript"></script>

@Paul-Kijtapart  Hi I'm facing the same issue as well have you fixed your issue?
Currently my project works for internet explorer, edge, chrome and opera only. Looking for<EMAIL_ADDRESS>that supports SVG as my HTML2PDF is not working for firefox.

Hi @GoodJeans,
Progress
I ended up not using version "0.5.0-beta4" since it does not have "scale" feature.
Attempt
I have recently updated the version to "v1.0.0-alpha.11" which, according to the changelog, should fix IE11 member not found error.
However, even with this latest version "v1.0.0-alpha.11", html2canvas does not capture most of the SVG components in IE11.
Troubleshoot
According to the log provided by html2canvas, this is probably the same issues with alpha.10,
With Chrome:
1468ms html2canvas: Finished parsing node tree
1487ms html2canvas: Finished loading 3 images (3) [img, img, img]
1489ms html2canvas: Starting renderer

With IE11
2137ms html2canvas: Starting node parsing
2451ms html2canvas: Finished parsing node tree
2455ms html2canvas: Finished loading 0 images
2455ms html2canvas: Starting renderer

From the log above, unlike Chrome, IE11 fails to capture the 3 images from the SVG dom.

@Paul-Kijtapart I see.. the alpha version that I am using does not support the SVG on internet explorer unfortunately.. guess I will have to wait for a next release.
I'm actually using eKoopmans/html2pdf along with html2canvas.

It is still not working in ie 11.Below is the Code I am using.
let data = document.getElementById('contentToConvert');
html2canvas(data, {
onrendered: function (canvas) {
let imgWidth = 208;
let pageHeight = 295;
let imgHeight = canvas.height * imgWidth / canvas.width;
let heightLeft = imgHeight;
const contentDataURL = canvas.toDataURL('image/png')
let pdf = new jspdf('p', 'mm', 'a4'); // A4 size page of PDF
let position = 0;
pdf.addImage(contentDataURL, 'PNG', 0, position, imgWidth, imgHeight)
pdf.save("testf .pdf'); // Generated PDF
}
});

I have the same issue and it's not working in IE 11. What I try to do is to generate the PDF file for the report page with some highchart graphs (which is svg). I am using html2canvas and jspdf. when I switch the version from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>it can show the highchart graph, but there are others issues like layout. If I use<EMAIL_ADDRESS>all the highchart graph will be empty when generate canvas.
I am looking forward to the new release with this fix.

This is still an issue in 1.0.0-rc.1.  IE11 doesn't see highcharts (svg canvas) while Chrome and Firefox do.

Still seems to be an issue in 1.0.0-rc.3.

Any update on this issue?
Also I am getting disordered graph data.

I have updated to use 1.0.0-rc.5. but still not working.
Mr. Bill Gates can you please announce end-of-support to IE immediately? I can then give it up....

Any news? Last thing I need on my project is good pdfs in IE11.

still not working in IE11 with svg. does anybody have any workaround?

@kuldip27792
use canvg first, and then use html2canvas

my teammate suggests an alternative, you can view it as an option if your PDF is not a must to generate in real-time:
Step 1. Install google-chrome
Step 2. Use google-chrome command prompt to capture the rendered html to png/pdf
In that case the generated PDF will be in the same style no matter which browser you are using.
Tricky but work for me.

@fiftyk i tried doing that but that also worked for chrome but not for IE11.
@martinknc thanks for suggestion but i need that real time in my project.

123123123

@kuldip27792 we ended up launching IE11 to a stripped down page with a button just call into screen shot. Not good but enough for our client.

@fiftyk  I've tried your solution and it worked great. so what I'm doing is I'm collecting all the svg elements and rendering them to the canvas created by html2canvas with their own position values. Thanks a lot brother.

yup, like ahmeturun, this is what I do as well. Attached is my TypeScript function to make svgs render onto the screenshot:
`
import { Canvg } from 'canvg';
...
private convertSvgD3ChartsToPngs(): HTMLImageElement[] {
const pngD3Charts: HTMLImageElement[] = [];
Array.from(document.getElementsByTagName('svg')).map(svg => {
let svgD3ChartCanvas = document.createElement('canvas');
        // Increase the Pixel Density for the Screenshot
        svgD3ChartCanvas.width = parseInt(svg.getAttribute('width')) * 4;
        svgD3ChartCanvas.height = parseInt(svg.getAttribute('height')) * 4;

        let canvasContext = svgD3ChartCanvas.getContext('2d');

        // Use Canvg to convert the svg into a png
        let convertedSvgToPng = Canvg.fromString(
            canvasContext,
            (svg.parentNode as HTMLElement).innerHTML,
            {
                ignoreDimensions: true,
                scaleWidth: svgD3ChartCanvas.width,
                scaleHeight: svgD3ChartCanvas.height
            }
        );
        convertedSvgToPng.start();

        // Attach new png
        let pngD3Chart = new Image();
        pngD3Chart.src = svgD3ChartCanvas.toDataURL('image/png');
        pngD3Chart.style.width = '100%';
        pngD3Charts.push(pngD3Chart);

        // Remove HTML Attribute and use CSS
        (pngD3Chart as any).width = '';
        svg.parentNode.parentNode.appendChild(pngD3Chart);
        (svg.parentNode as HTMLElement).style.visibility = 'hidden';
        (svg.parentNode as HTMLElement).style.height = '0';
        (svg.parentNode as HTMLElement).style.minHeight = '0';
    });
    return pngD3Charts;
}`


MacOS arm64 wheels installed via pip result in ImportError

Issue description
Running the following code:
from numpy import gradient
import pennylane as qml
from pennylane import qchem
from pennylane import numpy as np
from functools import partial
from time import perf_counter

# Build the electronic Hamiltonian
symbols, coordinates = (['H', 'H'], np.array([0., 0., -0.66140414, 0., 0., 0.66140414]))
h, qubits = qml.qchem.molecular_hamiltonian(symbols, coordinates)

# Number of electrons
electrons = 2

# Define the HF state
ref_state = qchem.hf_state(electrons, qubits)

# Generate single and double excitations
singles, doubles = qchem.excitations(electrons, qubits)

# Map excitations to the wires the UCCSD circuit will act on
s_wires, d_wires = qchem.excitations_to_wires(singles, doubles)

# Define the device
dev = qml.device('lightning.qubit', wires=qubits)

# Define the UCCSD ansatz
ansatz = partial(qml.UCCSD, init_state=ref_state, s_wires=s_wires, d_wires=d_wires)

# Define the cost function
cost_fn = qml.ExpvalCost(ansatz, h, dev)

# Compute the expectation value of 'h' for given set of parameters 'params'
params = np.array(np.zeros(len(singles) + len(doubles)), requires_grad=True)
print(cost_fn(params))

opt = qml.GradientDescentOptimizer(stepsize=0.4)
max_iterations = 100
conv_tol = 1e-06

energy = [cost_fn(params)]

for n in range(max_iterations):
    start_time = perf_counter()
    theta, prev_energy = opt.step_and_cost(cost_fn, params)

    energy.append(cost_fn(theta))

    conv = np.abs(energy[-1] - prev_energy)

    #if n % 2 == 0:
    print(f"Step = {n},  Energy = {energy[-1]:.8f} Ha")

    if conv <= conv_tol:
        break

print("\n" f"Final value of the ground-state energy = {energy[-1]:.8f} Ha")

Results in the following error traceback:
Traceback (most recent call last):
  File "/Users/joelbierman/Desktop/pennylane/tutorial_vqe.py", line 26, in <module>
    dev = qml.device('lightning.qubit', wires=qubits)
  File "/Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pennylane/__init__.py", line 297, in device
    plugin_device_class = plugin_devices[name].load()
  File "/Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2472, in load
    return self.resolve()
  File "/Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pkg_resources/__init__.py", line 2478, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pennylane_lightning/__init__.py", line 17, in <module>
    from .lightning_qubit import LightningQubit
  File "/Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pennylane_lightning/lightning_qubit.py", line 48, in <module>
    from .lightning_qubit_ops import (
ImportError: dlopen(/Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pennylane_lightning/lightning_qubit_ops.cpython-39-darwin.so, 2): no suitable image found.  Did find:
        /Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pennylane_lightning/lightning_qubit_ops.cpython-39-darwin.so: mach-o, but wrong architecture
        /Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages/pennylane_lightning/lightning_qubit_ops.cpython-39-darwin.so: mach-o, but wrong architecture*

Setting "default.qubit" instead of "lightning.qubit" for the device works fine. There seems to be an issue with the lightning builds.
Expected behavior:
No ImportError

Actual behavior:

ImportError.

Reproduces how often:

100%

System information:

Name: PennyLane
Version: 0.23.1
Summary: PennyLane is a Python quantum machine learning library by Xanadu Inc.
Home-page: https://github.com/XanaduAI/pennylane
Author: None
Author-email: None
License: Apache License 2.0
Location: /Users/joelbierman/miniforge3/envs/pennylane-test/lib/python3.9/site-packages
Requires: autoray, numpy, scipy, semantic-version, pennylane-lightning, networkx, retworkx, appdirs, cachetools, toml, autograd
Required-by: PennyLane-Qchem, PennyLane-Lightning

Platform info:           macOS-11.6.2-arm64-arm-64bit
Python version:          3.9.6
Numpy version:           1.21.0
Scipy version:           1.7.0
Installed devices:
- default.gaussian (PennyLane-0.23.1)
- default.mixed (PennyLane-0.23.1)
- default.qubit (PennyLane-0.23.1)
- default.qubit.autograd (PennyLane-0.23.1)
- default.qubit.jax (PennyLane-0.23.1)
- default.qubit.tf (PennyLane-0.23.1)
- default.qubit.torch (PennyLane-0.23.1)
- lightning.qubit (PennyLane-Lightning-0.23.0)

Source code and tracebacks
See above.
Additional information
In the past when I have encountered this sort of error for other packages, it was because while the wheel names indicated that they were built for arm64, the actual wheel contents contained code compiled to x86. My guess is that there's something buggy with the build process for these published wheels.

HI @JoelHBierman thanks for reporting this. We will check this out and report back shortly

Hi again @JoelHBierman
We can reproduce the error locally. The issue seems to arise from the builder we are using for the wheels being unable to correctly output ARM64 targeted binaries, as we build using GH Actions. We are looking into a strategy to fix this, but as an interim we can suggest the following:

Install the XCode command line tools and C++ compiler
Install Lightning locally with:

git clone git@github.com:PennyLaneAI/pennylane-lightning.git
cd pennylane-lightning && git checkout v0.23.0
python -m pip install cmake ninja
python -m pip install -e .
cd ..

We can confirm when built natively, this will work, though we aim to have a fix for the built wheels shortly.

As an update, we have a fix for this coming with PR https://github.com/PennyLaneAI/pennylane-lightning/pull/306

The next release of PennyLane (v0.24) will arrive on Tuesday 21st June. The above mentioned fix will be available as of that release. I will close this issue now, but feel free to reopen if there are any updates you would like to share.


⚠ Bofrost.si has degraded performance

In f27050c, Bofrost.si (https://www.bofrost.si) experienced degraded performance:

HTTP code: 200
Response time: 2833 ms

Resolved: Bofrost.si performance has improved in 9c2cebc after 9 minutes.


[Ubuntu] docker: add buildkit image

Description
BuildKit is probably the most used build engine for Docker images via our docker/build-push-action GitHub Action.
Whenever a build is triggered, the latest BuildKit image is pulled from Docker Hub and we think it would be more efficient for GitHub to have it preloaded.
cc @chrispat @justincormack @chris-crone @tonistiigi
Related issue: -

Hey @crazy-max! Considering action and image popularity we have no objections to adding it to the Ubuntu images. Please remove the changes from Ubuntu-16.04 toolset as Ubuntu 16 is retired.

@miketimofeev

Considering action and image popularity we have no objections to adding it to the Ubuntu images.

Great thanks!

/azp run ubuntu1804, ubuntu2004

Do we want to limit this to just adding the docker image?  Why not install the buildkit builder natively as well?

Do we want to limit this to just adding the docker image? Why not install the buildkit builder natively as well?

Isn't it already?
https://github.com/actions/virtual-environments/blob/fdcef883c3987605fa28d7885a2f64b14841882f/images/linux/scripts/installers/docker-moby.sh#L18

@catthehacker

Isn't it already?

buildx is the frontend CLI and BuildKit the container backend.

@chrispat

Do we want to limit this to just adding the docker image? Why not install the buildkit builder natively as well?

Buildx is currently not able to talk to buildkitd daemon directly without the BuildKit container image (https://github.com/docker/buildx/issues/21).

@crazy-max thank you for your contribution! The changes will be available next week.


rqt_image_view get normal image, but ros get a flip image (use cv_bridge).

System Description
Camera Name and Model: PointGreyBFS-PGE-31S4C-C + FA0401C (lens)
Operating System:Ubuntu 18.04
Spinnaker Version:1.27
ROS Version: melodic
Computer details
Processor:E3-1275 V5
RAM:32G
Do the cameras work with SpinView?
yes, no problem
my description:
rqt_image_view get normal image, but ros get a flip image (use cv_bridge).
i have tried #41, but they still is different of 'rqt_image_view' and 'ros get', alway horizontal + vertical flip.
i don't know whose problem it is, spinnaker? lens? cv_bridge?
other problem:
frist, i use spinnaker 2.0, it indeed happen these problem: #76 , and i try #84, it can solve how to get cam id. meanwhile, it happen this problem of 'frame id == 0', i also try comment line 59 of 'camera.cpp', it can run only up to 2 minutes, and print 'NEW_BUFFER_DATA event [-1011]'.
last, i try #63, set bining=4. it is ok. it is few of 'NEW_BUFFER_DATA event [-1011]' .( i need use color, so color = true.)
later, i use spinnaker 1.27, and this driver 'dev'. it is not helpful.
i want to know why it is great in spinview (color, bining=1), do you have any solutions? plz.
plz, help me, thank you.

@wwstory if rqt_image_view get it correctly, I would bet that the image being published is fine.  I am not familiar with ros get, but there might be something going on there.  The ROS image msgs don't have a 'flipped or reversed' tag to be causing an issue like this.  Can you provide more details on what exactly you are doing with ros get.
Also, what frame rate are you running at?  I believe the issue you are dealing with is about network traffic.  I think spin view probably handles a lot of these exceptions and keeps spitting out images at whatever rate it can.  I don't think it actually delivers the full rate, you can test by trying to record the frames in SpinView and checking the actual rate.
For our robotics applications, we don't like having missed frames, so we don't just handle exceptions and move on.  Our lab doesn't have any ethernet cameras, so I don't have any experience with them but #10 has some information that might help.
As for the frame_id == 0 check.  We can implement a conditional check for non-ethernet cameras.
We should be able to use the enum called DeviceType and check if it is ETHERNET or GEV
enum DeviceTypeEnum
< Transport layer type of the device.

Enumerator
DeviceType_Mixed	TL - Mixed
DeviceType_Custom 	TL - Custom
DeviceType_GEV 		TL - GEV
DeviceType_CL 		TL - CL
DeviceType_IIDC 		TL - IIDC
DeviceType_UVC 		TL - UVC
DeviceType_CXP 		TL - CXP
DeviceType_CLHS 		TL - CLHS
DeviceType_U3V 		TL - U3V
DeviceType_ETHERNET 	TL - ETHERNET
DeviceType_PCI 		TL - PCI

It would be nice if someone with an ethernet camera can implement this and submit a PR.

@shahvi Hi,  Now I can run great, but i am not sure that it happen problem in the feature.
I try to compose this issue again.
I do this:

install spinnaker sdk 2.0.
checkout spinnaker_sdk_camera_driver of dev branch.
set acquisition.launch binning = 2.
set net.core.rmem to 25mb.( bining = 2, if bining = 1, it maybe need set 100mb)
sysctl -w net.core.rmem_max=26214400
sysctl -w net.core.rmem_default=26214400

It's ok.


Copy doesn’t work on mobile

When on mobile, the copy button’s style doesn’t work and doesn’t copy the values to the clipboard.
I tried in Chrome, on an IPhone 8, iOS 13.4.1

Pull request #93 might fix this !

@kallir the copy functionality works 👍but the animation to "Copied!" doesn't show.
I think it's fine and it resolves the bug.


Both web and CLI executions boot up both kernels

Both artisan and public/index.php boot up both kernels: Http and Console.
Unwanted results 💣
Related to #2

The addressed suggestions have been incorporated in the v0.0.1 release. Furthermore, version v0.1.0 introduces additional enhancements designed to provide further utility and refinement.


Form doesn't submit without a button

What is the current behavior?
Form doesn't submit if the user just presses enter on an input element.
It does if a button is added to the form (even if the button is not selected).
What is the expected behavior?
Text inputs should submit the form if the user presses enter while it is focused
Sandbox Link
https://codesandbox.io/s/1rkv5povyq
What's your environment?
React 16.2, Redux 3.7.2, Redux-Form 7.2.0
Firefox 57 on Linux

thats actually a browser quirk.  If you create a form and hit enter, the browser will look for a submit button and hit that.  If no button, no submit

Thanks for the information @flanamacca.
If you remember reading this somewhere, can you please post the links here? Cheers!


[Question] How are css being managed in this app

Hi,
I came here following a link in awesome-redux. I am learning redux and I stumbled upon this example. Could you please tell me how component specific styles are managed in this example?
Thanks.

With webpack, you can import css file inside your component as shown in here: https://github.com/Rhadow/redux-example/blob/master/src/components/WeatherMap/WeatherMap.js#L1.
In my case, it is a sass file.
Webpack then compiles it into css and add these styles in a style tag with different webpack loader during development. Webpack can also produce a separate css file with some adjustment in configuration.

Thankds Rhadow,
That was very helpful. I am new to this ecosystem with webpack. That definitely helped.


Save original prompt [feature request] (easy fix)

I've been using this extension very much, and I cannot tell how glad im about its existence!
However, sometimes its a curse, especially when you forget it and use png info to export something and it overwrites the prompt you had!
My suggested solution wont save everything always, but it can help with my suggested (and not too uncommon!) usecase.

suggested fix: save original prompt with all {shits|giggeles} into usual daily output folder as a text file.

https://github.com/adieyal/sd-dynamic-prompts/pull/790


less parser chokes on empty input ("Cannot read property 'replace' of undefined")

Type of Issue

[x] Bug Report
[ ] Feature Request

Description
BUILD ERROR
Cannot read property 'replace' of undefined
TypeError: Cannot read property 'replace' of undefined
at Object.parse (.../odata-v4-ng/node_modules/less/lib/less/parser/parser.js:114:22)
at Object.parse (.../odata-v4-ng/node_modules/less/lib/less/parse.js:61:18)
at Object.render (.../odata-v4-ng/node_modules/less/lib/less/render.js:25:18)
at .../odata-v4-ng/node_modules/ng-packagr/lib/steps/assets.js:98:14
at .../odata-v4-ng/node_modules/ng-packagr/lib/steps/assets.js:97:44
How To Reproduce
ng-packagr version 1.2.0 works as expected.
Starting from version 1.2.1 ng-packagr produces this error
Expected Behaviour
Compilation should work
Version Information
ng-packagr: v1.2.1 and 1.3.0
node: v6.11.4
@angular: v4.4.4
rxjs:5.4.3
zone.js:0.8.18

Hi @riccardomariani,
do you have a repro where I can take a look at it?

Hi @dherges,
I'm developing a npm library called odata-v4-ng.
The current ng-packagr version used to pack the library is 1.2.0.
If you try to use ng-packagr version 1.2.1 or 1.3.0 you will get the mentioned error.
Let me know if I can help in any other way.
Thanks.

Can you try to reproduce the error? For example, fork the ng-packagr repo, then copy the issue-raising code to integration/samples/* and then send me an example of the code.
For example, try to add the issue in this sample: https://github.com/dherges/ng-packagr/blob/master/integration/samples/custom/src/baz/baz.component.less

Hi @dherges,
I reproduced the error and it's caused by empty less files. I don't know if the problem also affects other style formats. Anyway you can reproduce the problem simply removing everything from  https://github.com/dherges/ng-packagr/blob/master/integration/samples/custom/src/baz/baz.component.less

@riccardomariani thanks for reporting. Fix will be in next release!


Memcache I/O and connection timeouts

I see strings of log entries from the memcache client:
630626-ts=2017-07-24T14:03:17Z caller=warming.go:161 component=warmer err="storing manifests in cache: memcache: connect timeout to <IP_ADDRESS>:11211"
630770-ts=2017-07-24T14:03:17Z caller=memcached.go:179 component=memcached err="storing in memcache: memcache: connect timeout to <IP_ADDRESS>:11211"
630912-ts=2017-07-24T14:03:17Z caller=warming.go:161 component=warmer err="storing manifests in cache: memcache: connect timeout to <IP_ADDRESS>:11211"
631056:ts=2017-07-24T14:03:18Z caller=memcached.go:179 component=memcached err="storing in memcache: read tcp <IP_ADDRESS>:47202-><IP_ADDRESS>:11211: i/o timeout"
631210:ts=2017-07-24T14:03:18Z caller=warming.go:161 component=warmer err="storing manifests in cache: read tcp <IP_ADDRESS>:47202-><IP_ADDRESS>:11211: i/o timeout"
631366-ts=2017-07-24T14:03:19Z caller=memcached.go:179 component=memcached err="storing in memcache: memcache: connect timeout to <IP_ADDRESS>:11211"
631508-ts=2017-07-24T14:03:19Z caller=warming.go:161 component=warmer err="storing manifests in cache: memcache: connect timeout to <IP_ADDRESS>:11211"
631652-ts=2017-07-24T14:03:19Z caller=memcached.go:179 component=memcached err="storing in memcache: memcache: connect timeout to <IP_ADDRESS>:11211"

This also affects us in dev, and leads to automated services not being updated, and the UI showing no entries for services (because it either doesn't have a full complement of images, or cannot complete a query for all the images).

In addition, we could add these metrics, to help detect problems:

image registry GET failures
when we fail to write what we've fetched to memcache
total time to run through all the images used and fetch anything new
memcache read failures

One possibly related thing is that our dev flux is constantly thinking that entries have expired:
ts=2017-07-28T13:02:31Z caller=warming.go:124 component=warmer fetching=quay.io/weaveworks/billing-ingester:master-6c369ea to-update=1
ts=2017-07-28T13:02:31Z caller=warming.go:127 component=warmer expiring=quay.io/weaveworks/billing-ingester
ts=2017-07-28T13:02:31Z caller=warming.go:167 component=warmer updated=quay.io/weaveworks/billing-ingester
...
ts=2017-07-28T13:26:50Z caller=warming.go:124 component=warmer fetching=quay.io/weaveworks/billing-ingester:master-6c369ea to-update=1
ts=2017-07-28T13:26:50Z caller=warming.go:127 component=warmer expiring=quay.io/weaveworks/billing-ingester
ts=2017-07-28T13:26:50Z caller=warming.go:167 component=warmer updated=quay.io/weaveworks/billing-ingester
...
ts=2017-07-28T13:30:03Z caller=warming.go:124 component=warmer fetching=quay.io/weaveworks/billing-ingester:master-6c369ea to-update=1
ts=2017-07-28T13:30:03Z caller=warming.go:127 component=warmer expiring=quay.io/weaveworks/billing-ingester
ts=2017-07-28T13:30:03Z caller=warming.go:167 component=warmer updated=quay.io/weaveworks/billing-ingester
...

This also affects us in dev, and leads to automated services not being updated

The problem here is that we abandon an automation run as soon as there's an error. So, if there's an error reading from memcache, you will not be going to space today.

I think something is grossly wrong here. Timeouts are nothing really to do with flux itself. Maybe memcache is maxed out? Or maybe it's not running?
One thing I have seen is that when memcache or nats disconnect/crash, flux struggles to reconnect to the new instances. I'm not sure why yet.
Regarding the metrics, most of those should be available. Definitely:

Get failures (flux_client_fetch_duration_seconds)
when we fail to write what we've fetched to memcache (flux_registry_fetch_duration_seconds)
memcache read failures (flux_registry_fetch_duration_seconds{err=true})

Although this isn't covered:

total time to run through all the images used and fetch anything new

You've only got the time per single fetch.

One thing I have seen is that when memcache or nats disconnect/crash, flux struggles to reconnect to the new instances. I'm not sure why yet.

Me neither, but I have noticed that kube-dns crashes an awful lot, and sometimes outbound connections fail because they can't resolve a hostname.

kube-dns crashes an awful lot, and sometimes outbound connections fail because they can't resolve a hostname.
Yes, this would cause problems. We should definitely investigate this.

Regarding the I/O timeouts, there's a couple of things that could be at fault. The issues fall into two main camps:

Resources
Concurrent read/writes

The timeout is actually raised on our end. We have a setting --memcache-timeout that defaults to 1s. If the request takes longer than that, it will timeout.
First, resources. This is less likely, but if memcache is maxing out it's cpu/ram then it will struggle to service the request. Some people complain about memcache being swapped out onto disk, even when there is free ram. When any of this happens you will get elongated response times. (https://groups.google.com/forum/#!topic/memcached/H9g48R8-AfQ)
Second, and more likely, concurrent requests. The default number of allowed concurrent connections is 1024. The --registry-burst parameter defines the number of concurrent connections. This defaults to 125. BUT, I have seen delays when you concurrently request from memcache all at the same time. I.e. it can handle 1024 connections without dropping connections, but when you request 1024 all at the same time you do get some latency.
I'll do some more debugging locally to see if I can try to reproduce errors like these (although I don't see them in day-to-day development).

I'll do some more debugging locally to see if I can try to reproduce errors like these (although I don't see them in day-to-day development).

I am able to provoke timeouts by running images with lots of versions (probably some sock shop images would be good for this purpose), and restarting memcached so that the warmer has to repopulate it.

flux is constantly thinking that entries have expired

This could happen if there were new images in quick succession; each will have a staggered expiry time. But I'm not sure that it is the case, here. (On the other hand I struggle to explain it another way)

We have a setting --memcache-timeout that defaults to 1s. If the request takes longer than that, it will timeout.

We were explicitly setting this to 100ms in our dev environment, which seemed to catch a lot of the tail of the latency distribution if memcached is under any kind of load. It's probably a reasonable setting if you are checking for the presence of cache entries (and that's probably why it was set to that originally). But, now we're using memcached as a kind of local database, much better to leave it to default and simply slow down. (We removed the argument to let it default to 1s).


VACMS-0000 Set Proxy-fetcher to Only Run for Local ENVs

Description
Relates to #TICKET_NUMBER. (or closes?)
Testing done
Screenshots
QA steps
What needs to be checked to prove this works?
What needs to be checked to prove it didn't break any related things?
What variations of circumstances (users, actions, values) need to be checked?
- [ ] Automated tests have passed
- [ ] Tugboat environment was generated without errors

Is this PR blocked by another PR?

Add the DO NOT MERGE label
Add links to additional PRs here:

I think this change would require that each yarn dev run to be prefixed by APP_ENV=local

I think this change would require that each yarn dev run to be prefixed by APP_ENV=local

Adding APP_ENV=local to envs/.env.example should mitigate this friction.


Update BINDINGS.md

Raylib-CsLo and Raylib-cs now support raylib 4.2
https://github.com/NotNotTech/Raylib-CsLo/tags
https://github.com/ChrisDill/Raylib-cs/releases

@JupiterRider thanks for the update!


enable IPV6 name resolution

Enable IPV6 name resolution inside containers.

This pull request didn't trigger Jenkins as its author isn't in the whitelist.
An organization member must perform one of the following:

To have this branch tested by Jenkins, use the "ok to test" command.
To have a one time test done, use the "test this please" command.

So looking at the manpage, shouldn't we be using "ra-stateless,ra-names" instead?
That way a stateless DHCPv6 server would also run to provide things like DNS information to clients (and SLAAC would still work fine for those that don't know about the other-config flag).

Added ra-stateless and ra-names.


build:package net/netip is not in GOROOT

hello, i am using clickhouse-go/v2:
github.com/ClickHouse/clickhouse-go/v2 v2.3.0
<EMAIL_ADDRESS>
and use go1.18.3 build it return error:
../../../go/pkg/mod/github.com/!click!house/ch-go@v0.47.3/proto/ipv4.go:5:2: package net/netip is not in GOROOT

seems that package net/netip is only valid in go1.19

https://go.dev/doc/go1.18#netip
It is in go1.18

Probably you are not using go1.18, because we have both go1.18 and go1.19 in CI/CD: https://github.com/ClickHouse/ch-go/runs/7937223598?check_suite_focus=true


Manual mercenary unit unlocks

Through various crusade events and decrees you can get one-time unit additions to your army, like 7 wizards or hunters.  However, they never appear again (which may be influenced by the mythic path).  7 wizards or hunters are basically useless and not worth the expense of those events/decrees, but they could be so much more.
Is it possible to add an option to unlock all units as mercenaries once you have at least one of them?
Another crusade related request is the ability to edit crusade general experience.  Ex: Captain Odan starts as a 15th level general, but has zero experience so there's no incentive to develop him except as a backup or depot commander.
Thanks for considering!

Thanks for the army general xp editing capability.
Any chance for the mercenary unit unlock?  Seems like the easiest would be to have a button next to the unit on the Armies page.


Fixes Dockerfile RUN command + Rename main app + Updates dependencies

Addresses issue reported in  https://github.com/hummingbot/streamlit-apps/issues/6


Changing the build-only to build function to add tests

Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[ ] Have you picked the single best (existing) category and subcategory for your project?
[ ] Does it follow the other guidelines from the new entries section?
[ ] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[ ] Does your logo follow the guidelines?
[ ] Does your project/product name match the text on the logo?
[ ] Have you ensured that all of your filter variables meet the standards of other entries?
[ ] Have you checked the pdf and png files to ensure that the landscape looks appropriate? To do so, go to Actions and then Artifacts, and download the png/pdf to see.
[] After checking the landscape png/pdf, have you added a comment to the PR saying "LGTM"?

@jpegburch as you can see, that worked 👍


Add meta data to pages with placeholder text

Trello card:
https://trello.com/c/RmOIhQqD/326-vv-ee-as-a-user-i-need-the-meta-information-to-reflect-the-site-content-so-that-i-can-search-for-or-share-the-site-easily-and-ac
Description

Add dynamic meta description and title
Add Lang attribute
Add og image (needs better url handling)

@neontribe/sea-map

I fixed a merge conflict. @Nikomus re-review...


config: disable authoring MFE for xPRO Production

What are the relevant tickets?
Related to https://github.com/mitodl/hq/issues/3654#issuecomment-1964534504
Description (What does it do?)

We don't intend to enable the new authoring MFE experience in xPRO production yet. But the current configuration enables it for staff users on production. This PR disables them for everyone.

How can this be tested?
We should see the authoring MFE upon editing any unit in e.g. https://studio.xpro.mit.edu/container/block-v1:xPRO+MLx1_IND+SPOC_R1+type@vertical+block@8ad6326456c94930aba3e0b91cffa1b6

@cachob Here is the PR to persistently disable the authoring MFE experience in production.


Python: Pipenv minor mode not activated by default

What did you expect to happen?
...
What actually happened?
...
Additional details:

Include a link to your private config
Include screenshots/casts of your issue
If you mention key sequences, include what commands they're bound to (use SPC h k KEY or C-h h k KEY to inspect keys).
Include any warnings or errors logged to *Messages* (use M-x view-echo-area-messages to see it).

If an error message is involved include a backtrace of it.
How to acquire a backtrace:
https://github.com/hlissner/doom-emacs/blob/develop/docs/getting_started.org#how-to-extract-a-backtrace-from-an-error

Steps to reproduce:

Select these example steps,
Delete them,
And replace them with precise steps to reproduce your issue.
Fill in "system information" below.

System information:

Place the output of `M-x doom/info` or `~/.emacs.d/bin/doom info` here.

Terribly sorry, messed this one up.


fix(auth): on-boarding, signup and welcome flows

Closes #16855
Closes #16945

@Bouncey can you check and guide, if I should be adding this specificity, at other places?

Hi @Bouncey thanks for the additional info.
I think User.doesExist is an expensive call.
However, currently the linked issue is potentially breaking the legacy login, of which we have over 200K accounts in production.
I also, agree that the use case of supporting back linking is needed too.
But, IMHO can that use case be deferred until shipping beta? I feel as minimal changes should be dome as possible to be able to ship in 2 weeks we have left.
PS: I guess, a quick fix could be checking the /auth in the react bootscript and passing it to server as it is. But that will not include any custom routes we have had in the production (randomAPIs.js).

@raisedadead while I appreciate the effort, this doesn't solve the issue but merely band-aids one of the symptoms. I'll continue the discussion in the issue.

good post Click here

@raisedadead I'm closing this in favor of restructuring the URL path to something like /portfolio/[username] as mentioned on https://github.com/freeCodeCamp/freeCodeCamp/issues/16855

Hi @QuincyLarson I'll just update this PR for the new routes soon.

Steps to QA? Just sign in-out-in-out? Shall I dust off my linkedin account?

Steps to QA? Just sign in-out-in-out?

Yes.

Shall I dust off my linkedin account?

Yes, you will have to get a developer key. But please note that this is not mission critical because new users aren't allowed signup.
So, I am afraid you will not be able to replay the old login scenario.
The change is just a scope of info that we have limited to. On Production we had seen some complaints, which has since been resolved with the commit that a ported over.

@raisedadead I can't reach any page.

TypeError: Invalid attempt to destructure non-iterable instance
    at /home/stuart/freecodecamp/node_modules/babel-runtime/helpers/slicedToArray.js:48:13
    at /home/stuart/freecodecamp/server/component-passport.js:43:49
    at handleCallback (/home/stuart/freecodecamp/node_modules/mongodb/lib/utils.js:128:55)
    at Collection.aggregate (/home/stuart/freecodecamp/node_modules/mongodb/lib/collection.js:2524:10)
    at /home/stuart/freecodecamp/server/component-passport.js:40:10
    at /home/stuart/freecodecamp/node_modules/loopback-datasource-juggler/lib/dao.js:2176:5
    at /home/stuart/freecodecamp/node_modules/loopback-datasource-juggler/lib/dao.js:2111:9
    at /home/stuart/freecodecamp/node_modules/async/dist/async.js:1012:9
    at /home/stuart/freecodecamp/node_modules/async/dist/async.js:359:16
    at iteratorCallback (/home/stuart/freecodecamp/node_modules/async/dist/async.js:935:13)
    at /home/stuart/freecodecamp/node_modules/async/dist/async.js:843:16
    at /home/stuart/freecodecamp/node_modules/async/dist/async.js:1009:13
    at buildResult (/home/stuart/freecodecamp/node_modules/loopback-datasource-juggler/lib/dao.js:2077:11)
    at /home/stuart/freecodecamp/node_modules/loopback-datasource-juggler/lib/dao.js:2091:13
    at doNotify (/home/stuart/freecodecamp/node_modules/loopback-datasource-juggler/lib/observer.js:155:49)
    at doNotify (/home/stuart/freecodecamp/node_modules/loopback-datasource-juggler/lib/observer.js:155:49)

I pulled down your branch and did rm -rf node_modules && npm i

Ah... right. Let me check.. oh I did bump the dependencies. Sorry about that. I should not made that commit  on this branch.
I'll update this soon.

Hey @Bouncey I found an unrelated bug, if you click on the show me my public profile button, after you have updated via the form on the profile, the link stays pointed to the old one.
We should fix that.
Can you guide how to do that?

@raisedadead Are we talking about after updating the username?

@Bouncey yes, that is correct.

@raisedadead I'm still getting the same error? comment

Hi @Bouncey hmm I have removed all dependencies from my commit. So it could be something stale on your machine?
Try this:

Checkout staging and reset it at par as upstream
npm install
Launch the server.
Pull this PR
Test this PR

LTS for you local should be, if not already:
npm is 5.x.x
node is 8.x.x
mongodb is 3.6.x


Final parts for PERL-883 command monitoring

Contains:

Implementation of command data redactions.
Full command monitoring spec testing.
TODO wrappers for data fields that still need fixing.

Rebased and merged.  Thanks!


React Native window property and metadataStorage error

After initializing Amplitude with amplitude.getInstance().init(<key>, null, {useNativeDeviceInfo: true}) and setting a user id at a later stage using amplitude.getInstance().setUserId(<user uuid>), the two following errors show up in the console intermittently.
[Amplitude] TypeError: undefined is not an object (evaluating 'getLocation().href')
[Amplitude] TypeError: undefined is not an object (evaluating 'scope._metadataStorage.save')

I am using amplitude-js v6.0.1 and react-native 0.62.0.

Sorry. This should be solved in 6.1.0. We're setting up some better react-native automated testing.


Balilesti village is not found in Arges county

Precondition
SOLR: http://zimbor.go.ro/solr/#/romania/query
browser: Chrome
Steps to Reproduce:

Step
Action
Expected
Status

1
open SOLR in browser
SOLR UI is loaded without any errors
Pass

2
type one by one in the q field all the list of the components of every village in Arges county found in test dataTest data.xlsx
you are able to type one by one in the q field  all the list of the components of every village in Arges county found in test data
Pass

3
type judet: Arges in the fq field
you are able to type judet:Arges in the fq field
Pass

4
click on Execute Query button
Verify that all the list of the components of every village in judet:Arges form the test data are displayedTest data.xlsx
Fail

Actual Results:
Balilesti village is not found in Arges county

https://orase.testquality.com defect D29.

Este comuna Balilesti.


Fix XID comparison in  test_vm_bit_clear_on_heap_lock test

Problem
xid are compared as strings test_vm_bit_clear_on_heap_lock test
See https://github.com/neondatabase/neon/pull/6412#issuecomment-1902072541
Summary of changes
Cat xid to integer
Checklist before requesting a review

[ ] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.
[ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
[ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

[ ] Do not forget to reformat commit message to not include the above checklist

I tried reverting the commit 66fa176cc8 that the test was written for, and the test still passed. So the test has other problems, it isn't reproducing the original problem. See https://github.com/neondatabase/neon/pull/6694 for a more comprehensive rewrite of the test.


El Capitan Install Issue

Get the following error when installing on OS X 10.11:
ERROR:  While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/xcodeproj
Solved it by adding -n /usr/local/bin/xcodeproj to the gem install sync command. Might want to update install directions. Also, there could be a better way to solve this.

Fwiw, it installed and ran fine on my (relatively fresh) El Cap install.

I am experiencing a similar issue, but with a different folder:
Ellens-MacBook-Pro:Scripts ellenshapiro$ sudo gem install synx
ERROR:  While executing gem ... (Errno::EPERM)
    Operation not permitted - /usr/bin/synx

the Colorize and Clamp dependencies were able to install just fine, but synx is barfing even if I try the above suggestion of adding -n /usr/bin/synx to the end of my gem install command. El Cap 10.11.1.

Look carefully. You have to change the directory to /usr/local/bin/...

this may be related to System Integrity Protection
check this

https://support.apple.com/en-us/HT204899

sudo gem install -n /usr/local/bin/ synx seems to make it work on El Capitan


Add analyzers support

(Follows #1029 but the GitHub doesn't let me change the base branch so it got confused when I rebased from master to groups)
This PR add the support for the "analyzers" folder in NuGet packages.
They contain roslyn based analyzers. Packages can either contain only analyzers or normal libraries could include their analyzers along with the main lib.
The documentation details for the NuGet feature is still in flux https://github.com/NuGet/NuGetDocs/pull/362/files / https://github.com/jmarolf/NuGetDocs/blob/AnalyzerConventions/NuGet.Docs/Create/Analyzers-Conventions.md but as VS2015 support them, the current status is "Whatever works in VS2015".
Languages
Analyzers are contained either in per-language folders or shared between languages so I had to add code to get the language of a project file (Implemented using both the "ProjectTypeGuids" node and the file extension)
As the documentation specify that F# is a supported analyzer language I added it but the F# project type doesn't support analyzers for now :(
Framework
In theory their folders can also specify the framework of the host but nobody does that for now (All analyzers are in 'dotnet' subfolder as it is the platform supported by visual studio) but I ignored that completely.
if it is needed at some point the paket.dependencies files would need to specify it.
It seem to me that the feature of specifying the framework in there is broken anyway and microsoft didn't think long enough before introducing it.
Tests
I don't know if there is enough tests, especially the code in LanguageEvaluation and my additions to ExtractPackage aren't tested. But I wanted to make this review to know if I was on the good track or if I did something really stupid somewhere.
To manually test the feature the easiest is to add 'RefactoringEssentials' as reference to any C# project and run paket install.
Then code like int[] values = new int[] { 1, 2, 3 }; will trigger the "Array Creation can be replaced with Array Initializer" analyzer.

I also created a stub for docs. Could you please fill in some details? Thx
https://github.com/fsprojects/Paket/commit/40d6ee24b44d8b4a4f102c0329d908b656ae62d2


45 | Jump Game II | CPP

Title - Jump Game II
What will change -
Type of Issue -

[x] Adding New Code

Programming Language

[x] C++

Self Check

Ask for issue assignment and wait to get assigned to it before making Pull Request.
Add your file in the proper folder
Clean Code and Documentation for better readability
Add Title and Description of the program in the file

:star2: Star it :fork_and_knife:Fork it :handshake: Contribute to it!
Discord server ✉ - https://discord.gg/CXksGdn
Happy Coding,

can I work on this?

Hi, I want to work on this issue.

An open issue for this problem already exists.

Ok 👍


Fix Enter Event & Mathjax Equations.

The cursor should move to the end of the previous line or the start of
a Mathjax equation because SVG does strange things when it is the
selected element (you could select any element). Therefore we need to
test this case in the backspace event.
and
Handle Mathjax separately when it is the only thing in the editor. If
there is only a Mathjax equation then instead of deleting the div that
contains them, we delete all the nodes inside the div and leave the div
alone.

Looks good once the commented code is deleted


VPN service access

From Anonymous user:

We use privateinternetaccess VPN service at the router level. All outbound LAN traffic goes through the VPN tunnel.
The SAFE launcher does not connect through the VPN.
It is always trying to connect.
I assume it would have the same problem through TOR.
Does MaidSafe require access to the physical IP through a specific port?
This is consistent with devices like PogoPlug.
This is probably required for any point on the network to connect to my system.
What is the answer here?
It appears that I need to set our router to bypass the VPN tunnel for all TCP traffic for the local IP address, both as a source and destination, of the PC running MaidSafe. Based on the firewall settings, there is no specific external source IP address or external destination IP address, but it seems it will only be TCP traffic. Also, there are no specific port numbers used for MaidSafe connections. While the MaidSafe connections are kept private to some extent, the ISP will still see the local nodes being connected. However, this only provides reasonable security when using the SafeNet. All other traffic is exposed to the ISP.
It is obvious that the external (local group) connection IP addresses could be almost anything and could change regularly, the ports used could be limited. This would at least not require all internet traffic to go through the ISP naked.
Do I understanding this correctly?
Is the only solution to not use the VPN tunnel for all IPs and Ports for TCP traffic to and from the PC running MaidSafe?
Thanks.

I believe I found my biggest problem; the SAFEnet does not appear to be always running yet.
Is there a schedule when it is running for testing?
I would like to create an account.
Thanks,
wtw2

This crate had a major re-write/re-design. Please raise an issue again if required as almost everything in the library and the way it handled things have changed. Closing this.


What's the pattern to only read key data without fetching?

Suppose I have two pages for listing some REST objects and for showing details for those objects, explore/index.js and explore/[id].js. They fetch a list of objects and details, using respectively useSWR('/api/objects', fetcher) and useSWR(`/api/objects/${router.query.id}`, fetcher).
How do I use the /api/objects state as initialData on the details page? When [id].js renders (normally soon after visiting index.js), I don't care how stale the list is, I only want to use it to pre-populate my state while the second endpoint is being fetched so I don't want to make an additional API request to /api/objects.
An IMO good use case is when fetching the list is cheap (ids/names of objects) but fetching the details is expensive (e.g. it returns DB statistics or logs).
So far I've considered providing a no-op fetcher, which feels really dirty:
// in [id].js
useSWR('/api/objects', async () => {
        throw new Error();
    }, {
        revalidateOnFocus: false,
        revalidateOnReconnect: false,
    });

Or, since we cannot pass props from page to page in Next.js, use duplicate state source like context or MobX store which feels equally dirty.
What's the best way to solve this, or am I completely astray in approaching this problem?
Thanks for your time!

If you don’t care about data being stale you can read from cache directly using cache.get(key), you could even subscribe to cache updates with cache.subscribe(fn) and update a state with the cache data but never trigger a request. But if you will subscribe I recommend you to use useSWR directly.

I have the same use case.
Where can I get documentation about that cache?
Thanks!

The best place right now is the code itself https://github.com/zeit/swr/blob/master/src/cache.ts

Great thanks @sergiodxa !
That is what I did. I wanted to ask, because it was not documented and I want to make sure to use API that is stable.

Thanks for your reply @sergiodxa!
Here's the custom hook I came up with that implements the following use case pattern:

do not invoke any automatic validation -- that is, on render, focus, or reconnect;
until prompted by user event to validate manually, use cached value from cacheKey;
user code can invoke onFetch to validate fetchKey and use its result from now on.

I'd be happy to discuss any problems with this approach. It's a bit verbose and it would be good to know if similar behaviour can be implemented in a better way.
Obviously, passing stuff like error etc. should also be added to get true composability, this is a minimal variant.
import React, { useState } from 'react';
import useSWR, { cache } from 'swr';

const useManualSWR = (cacheKey, fetchKey, fetcher) => {
    const [ startFetch, setFetch ] = useState(null);
    const cachedData = cache.get(cacheKey);
    const { data: frechData, mutate, isValidating } = useSWR(
        () => startFetch ? fetchKey : null,
        fetcher,
        {
            revalidateOnFocus: false,
            revalidateOnReconnect: false,
        }
    );
    const onFetch = () => {
        if (startFetch) {
            mutate();
        }
        setFetch(true);
    };
    const data = frechData || cachedData;
    return { onFetch, data, isValidating };
}

export default useManualSWR;

I think cacheKey and fetchKey should be the same, if the idea to have different ones is to support arrays in fetchKey then it's not needed, cache.key supports arrays too, so you can pass the same key to both keys, it even supports functions.
Also this () => startFetch ? fetchKey : null doesn't need to function, with only the condition is enough to avoid the fetch until startFetch is true 👍
import React, { useState } from 'react';
import useSWR, { cache } from 'swr';

const useManualSWR = (key, fetcher, options) => {
    const [ startFetch, setFetch ] = useState(null);
    const cachedData = cache.get(key);
    const { data: fetchData, mutate, isValidating } = useSWR(
        startFetch ? key : null,
        fetcher,
        {
            ...options, // options is before the other keys so you can't overwrite them
            revalidateOnFocus: false,
            revalidateOnReconnect: false,
        }
    );
    const onFetch = () => {
        if (startFetch) {
            mutate();
        }
        setFetch(true);
    };
    const data = fetchData || cachedData;
    return { onFetch, data, isValidating };
}

export default useManualSWR;

Something like that ☝

Thanks a lot! cacheKey and fetchKey might be different not because of arrays but because I might want to get cache from a different API call; I'm not convinced that's useful though.
My previous version didn't fulfil the "no auto fetching" requirement when I introduced variable keys -- my use case is a data chart that shows data that can be fetched (via an expensive call to BigQuery) within different intervals so start and end must go into the key to become available to the fetched function, and startFetch flag remains true after key change, prompting fetch on rerender. After some errors I added the following useEffect, which seems to be the only way to reliably prevent autofetch:
import React, { useState, useCallback, useEffect } from 'react';
import useSWR, { cache } from 'swr';
const useManualSWR = (cacheKey, fetchKey, fetcher, options) => {
    const [ startFetch, setFetch ] = useState(false);
    const cachedData = cache.get(cacheKey);
    const { data: fetchData, mutate, isValidating } = useSWR(
        () => startFetch ? fetchKey : null,
        fetcher,
        {
            ...options,
            revalidateOnFocus: false,
            revalidateOnReconnect: false,
        }
    );
    useEffect(() => {
        if(!isValidating) {
            setFetch(false);
        }
    }, [isValidating]);
    const onFetch = useCallback(() => {
        if (startFetch) {
            mutate();
        }
        setFetch(true);
    }, [startFetch]);
    const data = fetchData || cachedData;
    return { onFetch, data, isValidating };
}

export default useManualSWR;

My takeaway from this is that SWR is more geared towards handling immediate UI changes rather than explicitly on-demand changes and there's some shoehorning going on with my approach. I'm still going to try using this because it's convenient to have the single library for all data calling stuff.
Thanks again!

@bausk actually I think this https://github.com/zeit/swr/pull/225 will let you implement what you want, disabling revalidateOnMount would make SWR only read from cache until you manually trigger a revalidation with mutate.

@sergiodxa Seems to be exactly what I need, thanks!


Server crash on load- java.lang.NoClassDefFoundError: me/flibio/updatifier/UpdatifierServiceImpl

http://pastebin.com/mxnvW6sQ

Ah one of your sponge plugins are shipping an outdated updatifier api, i assume. i will figureit out later. You can remove updatifier to make the server run.

@hsyyid Could you update your updatifier api version to 1.4.0? As I see this bug is caused by outdated api in essentialcmds.

updated essentialscmds to  EssentialCmds-7.8e.jar still using old api.
http://pastebin.com/fk5nYx9p

@liach Will do so.

@prospercraft Wait for the next release of essentialcmds.


footcitetext does not pick up footcite delims

See https://golatex.de/viewtopic.php?p=111333#p111333
\footcitetext does not pick up the inner cite delims from \footcite despite there being a mapping to do so.
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}

\usepackage[style=ext-authoryear, backend=biber]{biblatex}

\DeclareInnerCiteDelims{footcite}{\bibopenparens}{\bibcloseparens}

\addbibresource{biblatex-examples.bib}

\begin{document}
Lorem\footcite{sigfridsson}
dolor\footnotemark\footcitetext{sigfridsson}
\end{document}

It might have been nicer, easier and more consistent to just alias the delim context footcitetext to footcite, but we've gone down the other way of aliasing the outcomes later. In any case,
https://github.com/moewew/biblatex-ext/blob/df8a75b1ed9e990da3c8d23ea0ed064844853281/ext-biblatex-aux.def#L97
and
https://github.com/moewew/biblatex-ext/blob/df8a75b1ed9e990da3c8d23ea0ed064844853281/ext-biblatex-aux.def#L105
are the wrong way round and we need stuff like
\DeclareFieldFormat{extblx@innerfootcitetextdelims}{%
  \csuse{mkinner\blx@delimcontext delims}{#1}}

Maybe those field formats should be generated automatically? That would avoid a lot of repetition and hassle.

Since the actual definition of the field formats unfortunately depends on the implementation in the styles, we can't generate them automatically. So we have to resort to field aliases here.

biblatex-ext v0.8f (2020-05-09) with the fix for this issue is on CTAN and available in both TeX live and MikTeX now.


Is windows os chrome really different from linux？

Hi ,
I have a question. Does installing vm in docker container, Virtual windows system really bring value?Is there really a difference between linux and windows chrome
I hope you can answer that. Thank you very much

@izachwei we consider that it does not bring value. Probably only fonts differ. This solution was mainly needed for running Internet Explorer in containers.

@izachwei we consider that it does not bring value. Probably only fonts differ. This solution was mainly needed for running Internet Explorer in containers.

thanks.


Try to replicate Hubitat incorrect time issue

Last week, both Millinocket Hubitats came back after the power outage with time from 2015, which caused trouble with the hubitat dashboard.
See if we can replicate this issue. Ask Hubitat why the time resets to 2015. Consider protections against this.

meant to put this in scada code


STORM-2859: Fix a number of issues with NormalizedResources, and prev…

…ent it from leaking static state in tests.
This is part of making the build run on the new Travis Ubuntu image. Travis is probably running the tests in a slightly different order than before.
NormalizedResources had a static field used to track the generic resource types registered for supervisors. It was leaking from the GenericResourceAwareSchedulerTest to DefaultResourceAwareSchedulerTest, where it was causing a test failure. When the unused resource type showed up in the test, NormalizedResources would return 0.0 from calculateMinPercentageUsedBy for all racks because there was a resource type where the cluster had 0 of that resource in total. This breaks rack sorting and causes the test to fail.
I'm not entirely sure why NormalizedResources used the static field + double arrays for tracking resources, but I've replaced it with regular resourceName -> resourceValue maps. Let me know if this is a problem.
Other issues fixed:

calculateMinPercentageUsedBy threw division by 0 error if total cpu or memory was 0.
Removed static map between resource names and array indices. It was causing tests to leak information to each other. Rewrote parts of NormalizedResources to make this map unnecessary.
Added check that all resources in a rack/node are also present in the total.
calculateAvg was being inconsistent about the divisor in the average between cpu/memory and other resources. Fixed so skipped resources are never counted in the divisor.
calculateMin didn't handle resource totals being 0 very well. The method defined (anyNumber)/0 to result in 0, so if any resource in the total had a 0 value, all racks/nodes would be prioritized equally. Change calculateMin and calculateAvg to simply skip any resources where the total is 0 in the calculation. I think it makes sense to disregard such resources and fall back on prioritizing by any remaining non-0 resources. It was already done for CPU and memory in calculateAvg. In case there are no non-0 resources, we can just return 100% for both average and minimum to disable prioritization, since any rack/node is as good as any other.
Fixed up NormalizedResources constructor so it doesn't call an overridable method.

There's also a TODO I'd like some input on https://github.com/apache/storm/pull/2463/files#diff-0f94945ef866045b8717f781620fd59dR190

Here's the run from a branch that contains this branch, STORM-2858 and some minor travis.yml changes. https://travis-ci.org/srdo/storm/builds/317153261

@srdo One of the issues I was trying to address with using the array was both performance and memory usage.  Maps are very slow and use lots of memory compared to an array.  Hadoop did a very similar thing as part of their generic resource work for similar reasons.  They tend to do a lot more computation on their resources looking at fairness etc.
We are fining that the performance of the scheduler loop in general is our biggest bottleneck to scaling our clusters larger.  It directly correlates to how responsive a cluster is to user requests.  So for cases where they want to kill a topology and launch a new one, if they cannot do it quickly because of scheduling they are not very happy.

@revans2 That makes sense. How about we fix the issue by doing as you suggest in https://github.com/apache/storm/pull/2477, and I'll try to pick out the changes from this I think would still be relevant for a later PR?

@srdo that sounds fine to me.

Closing in favor of https://github.com/apache/storm/pull/2477, will figure out which parts of this are still relevant and reopen at some point.


Bugfix #8295: WebSocket is closed without an error on protocol violations

Motivation:

Incorrect WebSockets closure affects our production system.
Enforced 'close socket on any protocol violation' prevents our custom termination sequence from execution.
Huge number of parameters is a nightmare both in usage and in support (decoders configuration).

Modification:

Fix violations handling - send proper response codes.
Fix violations handling - send response into channel (originally it was sent into context).
Encapsulate decoder's configuration into a separate class.
Add new decoder's option - send close frame on protocol violation (enabled by default).

Result:
Fixes #8295.

@netty-bot test this please

@ursaj I will try to have another look tomorrow. I will cut a release this week but I am not sure we will get this in in time so it may only make it in the next one.

all this.decoderConfig = ... guarded with checkNotNull

New test on protocol violation discovered resource leak in original code. Fixed.

hi @normanmaurer . is there anything I can do (help with) to move forward?

@ursaj just returned from vacation. Will check soon

This pull request mixes two changes - one for fixing the sudden disconnection and the other for introducing config object. Would it ever be possible to split this pull request into two for focused reviews?

This pull request mixes two changes - one for fixing the sudden disconnection and the other for introducing config object. Would it be possible to split this pull request into two for focused reviews?

It looks meaningless for me. Could we please proceed with a single PR?
If you have any questions to clarify changes (for focused review) - u'r welcome, I'll do my best to answer.
By the way, it contains not two but five changes:

fix for sudden disconnection (message max size close code)
introducing config object for decoders
introducing WebSocketCloseStatus
introducing an option to disable default behavior for protocol violations
fix for messages leak

That's fine if you are fine. I was suggesting so since I wanted to suggest some refactoring for the config object while other changes looked good to me.
Unless there's a good reason to let a user create a config object by him/herself, how about using a builder pattern instead? e.g.
public class WebSocketFrameDecoderBuilder {
    public WebSocketFrameDecoderBuilder(/* some mandatory configuration parameters, e.g. protocol version */) { ... }

    // Setters
    // ...

    public WebSocketFrameDecoder build() { ... }
}

// User code, for example:
WebSocketFrameDecoder wsdecoder = new WebSocketFrameDecoderBuilder(WebSocketVersion.V13)
        .expectMaskFrames(false)
        .allowExtensions(true)
        .maxFramePayloadLength(...)
        .build();

We may want to decide between two builder API styles though:
// 1)
public class MyObject {
    public static MyObject.Builder builder() { ... }
}
// 2)
public class MyObject { ... }
public class MyObjectBuilder { ... }

I prefer the second because the LOC of a single Java file can be bigger for when there are many things to configure. Opinions?

Unless there's a good reason to let a user create a config object by him/herself, how about using a builder pattern instead?

The key point is exactly opposite - there is NO good reason to NOT use config object. I want to describe decoder's behavior only once. I don't want to care about actual protocol or implementation underneath, making current api more developer-friendly:
WebSocketDecoderConfig decoderConfig = WebSocketDecoderConfig.newBuilder()
    .allowMaskMismatch(true)
    .maxFramePayloadLength(16384)
    .closeOnProtocolViolation(false)
    .build();

pipeline.addLast(new WebSocketServerProtocolHandler("/test", null, false, false, decoderConfig));

Also I don't like the current approach - huge parameter chains copy-pasting (across handshaker and decoder implementations). Encapsulation of these options into single 'config object' looks much more convenient, reliable and simpler for further evolution.

We may want to decide between two builder API styles though

I've used the same approach, as already exist in the code (to keep consistency). See ProtobufDecoderNano or WorldClockClientHandler. Actually it is a Protocol Buffer API, but it is already used.

I prefer the second because the LOC of a single Java file can be bigger when there are many things to configure. Opinions?
Even, when there are 50+ options to configure - it will be simpler to keep consistency within a single file, then with separate entities. It's just my personal experience, I don't insist on this approach.

We need the third opinion - to keep current variant or to change.

I now understand that you want to build a WebSocket*ProtocolHandler rather than a decoder. Then, why don't we just add:

WebSocketProtocolHandlerBuilder (abstract, provides common setters)
WebSocketServerProtocolHandlerBuilder (extends WebSocketProtocolHandlerBuilder, provides server-specific setters)
WebSocketClientProtocolHandlerBuilder (extends WebSocketProtocolHandlerBuilder, provides client-specific setters)

I do not prefer providing a builder API for an intermediary object (config in this case) that's actually meant to be fed to another class because:

it increases the level of indirection unnecessarily. Why build A when what you really wanna build is B?
more public class means less freedom at the implementation level & more API to maintain as we evolve in general

If you still think configuration object is useful, please give me a specific counterexample that shows it yields better user experience.

I do not prefer providing a builder API for an intermediary object (config in this case) that's actually meant to be fed to another class

Let's consider a simple scenario - I want a new option to be passed into decoders. To be precise - 'closeOnProtocolViolation'.
To make this change, I need to modify 8 classes (constructors, fields, configuration passing, etc):

WebSocketServerHandshaker.java
WebSocketServerHandshaker00.java
WebSocketServerHandshaker07.java
WebSocketServerHandshaker08.java
WebSocketServerHandshaker13.java
WebSocketServerHandshakerFactory.java
WebSocketServerProtocolHandler.java
WebSocketServerProtocolHandshakeHandler.java

The same for affected decoders:

WebSocket07FrameDecoder.java
WebSocket08FrameDecoder.java
WebSocket13FrameDecoder.java

In total - 13 files changed + a lot of copy-pasting + very long constructor argument lists.
On the other hand, if we have config object, then the same change would be trivial:

WebSocketConfigObject.java - add new option into config and builder
WebSocket08FrameDecoder.java - apply new option where it is really needed

Imho, this simplifies code changes and support, when new option does NOT affect any intermediate code.

Why build A when what you really wanna build is B?

a) Because A is re-used across multiple B's.
Indeed, you always can keep such configuration on app-level and copy-paste it on pipeline build. But it's inconvenient and rather should be provided by framework.
b) Because you can override only those options, you really care about. Leaving the rest "by default".
E.g. I want to allow mask mismatch:
public WebSocketServerProtocolHandler(String websocketPath, String subprotocols,
        boolean allowExtensions, int maxFrameSize, boolean allowMaskMismatch) {

But I'm enforced to explicitly set all intermediate parameters..
Or even worse - I don't won't to instantly close channel on protocol violation:
public WebSocketServerProtocolHandler(String websocketPath, String subprotocols,
                                      boolean allowExtensions, int maxFrameSize, boolean allowMaskMismatch,
                                      boolean checkStartsWith, boolean dropPongFrames,
                                      boolean closeOnProtocolViolation) {

Eight arguments in constructor, where only the first one and last one are meaningful? It's ridiculous...
c) Because you can override any intermediate class without worry about constructors hell.
d) Because 'config object' is much more readable:
pipeline.addLast(new WebSocketServerProtocolHandler("/test", null, false, 65536, false, false, true))

vs

private final WebSocketDecoderConfig decoderConfig = WebSocketDecoderConfig.newBuilder()
                .maxFramePayloadLength(65536)
                .allowMaskMismatch(false)
                .allowExtensions(false)
                .closeOnProtocolViolation(false)
                .build();
...
pipeline.addLast(new WebSocketServerProtocolHandler("/test", null, false, true, decoderConfig))

BTW, I like your idea about WebSocket*ProtocolHandlerBuilder:
pipeline.addLast(WebSocketServerProtocolHandler.newBuilder()
    .path("/test").decoderConfig(decoderConfig).build())

But even so, I think handler builder and decoder config should be independent.

How about making the config class package-private so it's hidden from the public API? You can still reuse most of the code while keeping the public API minimal, right?
Re: reusability of configuration - a user can write a function that returns a builder.

How about making the config class package-private so it's hidden from the public API? You can still reuse most of the code while keeping the public API minimal, right?
It's constructor is private. You cannot create or even inherit it directly. The same for builder. This approach is extremely safe for public api evolution, so you don't need to worry so much.

Re: reusability of configuration - a user can write a function that returns a builder.

As I already said - I can keep such configuration on app-level and apply it on pipeline build (with function, with builder, with copy-paste, with any other way). But it is inconvenient.

All right. I'm convinced :smiley::+1: Thanks for your patience. Let me do my final review soon.

.. and did I say I'm sorry if I was too annoying? I wish I did not discourage your next PR. ;-)

Don't worry, this is not my first PR and definitely will not be the last =)
Do we need anything else to get it merged?

@trustin can you do another review please so we can get this one merged ?

@netty-bot test this please

Yes. Will review soon.

@trustin, @normanmaurer, @ejona86 hi, guys. could we merge this PR? or are some changes still needed?

@trustin, @normanmaurer, @ejona86 hi, guys. Any updates on this PR?

@netty-bot test this please

@trustin, @normanmaurer, @ejona86
hi, guys. I've updated this PR once again (resolved conflicts). could we merge it?
If no, what should I do to get it merged into origin/4.1 branch?

Re-opened this patch as a new PR #9116


TypeScript server lags behind on latest version

TS Template added by @mjbvz
TypeScript Version: 4.4.0-dev.20210802
Search Terms

diagnostics

The TS server on Insiders started having trouble Friday, both on my machine and @roblourens'. It analyzes things and has an error before I finish typing, then after I finish typing it doesn't update again. I need to change something and re-save the file to get it to update again. This persisted after a reboot.

Switching back to the repo version of TS (20210802) seems to fix the issue for me. Here's the log where the above error happened:
tsserver.log

@connor4312 Can you try setting:
"typescript.inlayHints.parameterNames.enabled": "none"

to see if that prevents the issue from happening (try restarting TS after changing the setting too to make sure everything is in an ok state). I want to see if this is another symptom of #45320
/cc @DanielRosenwasser I believe you hit a similar issue at some point

@connor4312 Can you try setting:
"typescript.inlayHints.parameterNames.enabled": "none"

to see if that prevents the issue from happening (try restarting TS after changing the setting too to make sure everything is in an ok state). I want to see if this is another symptom of #45320
/cc @DanielRosenwasser I believe you hit a similar issue at some point

adding this setting seems to fix the issue for me


Error when using tabs

Do the following:

:tabnew
:tabclose

Error:
Error detected while processing WinClosed Autocommands for "*":
E5108: Error executing lua ...are/nvim/site/pack/packer/start/shade.nvim/lua/shade.lua:280: Invalid window
 id: 1010
Error detected while processing WinEnter Autocommands for "*":
E5108: Error executing lua ...are/nvim/site/pack/packer/start/shade.nvim/lua/shade.lua:255: Invalid window
 id: 1010

Also want to point out that it changes my tabline highlight group

@sunjon When I am trying to close the tab via <C-w>q or :bdelete I get:
E5601: Cannot close window, only floating window would remain

Is this also related to mentioned neovim issue?

Poking my head in here almost a year later... this is still happening for me, even though https://github.com/neovim/neovim/issues/11440 is closed out...
Wondering if this is still an issue for others?

@hahuang65 yes, this bug hasn't been fixed.

Are there any alternatives to this plugin? Also getting this error, but the effect is great.


Fix strategicpatch swallowed errors

There are four dropped error variables in the strategicpatch package.

I'm looking for a reviewer, so I'm going to @ all of the reviewers in the OWNERS file. Is there a better process for this? @thockin @lavalamp @smarterclayton @wojek-t @deads2k @derekwaynecarr @caesarxuchao @makedanese @liggitt @gmarek @stts @ncdc @tallclair

typo'd @wojtek-t and @mikedanese above ^

@alrs thanks for the PR! This repo, however, is currently sourced from the code in the https://github.com/kubernetes/kubernetes/ repo, in the staging dir. I'd recommend you open a PR there instead (see https://github.com/kubernetes/apimachinery/blob/master/README.md for more details).

Thanks, @ncdc


Fix unintentional filtering of periods

Fixes #197

@nnansters I've added test cases for Result.filter across the different calculators. Believe there may be a bug in the univariate drift result (not fixed for now); more details in inline comments in the PR.
I've also refactored to try and avoid code duplication. For Abstract1DResult this worked out well. Not so convinced about Abstract2DResult, there's a lot of attributes that require special handling. I've kept all the attributes to preserve compatibility, but things may become simpler if they're removed/changed.


[Bug]: autocd plugin doesn't do anything

What went wrong?
autocd plugin is not autocd-ing

This one can be closed now.


[0.9.0-1] Limit is not respected

Just upgraded today. I have a measurement with ~10k records. The expectation, obviously, that select * from my_measurement limit 1 would return one record. However, it seems to return (at least) one record per series in a measurement. This was surprising.

@contentfree what do you mean by '(at least) one record per series'. When I run the query you've specified I only get one record per series.

select * from my_measurement

is equivalent to
select [all fields] from my_measurement group by [all tags]

Does writing out the fields give you what you expect?
select field1, field2, field3 from my_measurement limit 1

LIMIT 1 returns one point from every matching series. SLIMIT 1 returns all points from the first matching series.
@gunnaraasen is correct, SELECT field_key FROM measurement LIMIT 1 returns only one point, regardless of how many series match. Be aware that it is not deterministic which series will match first.
Docs could be clearer on this. Opened https://github.com/influxdb/influxdb.com/issues/73 to fix it.

That's very confusing and unexpected. Why is select * from my_measurement equivalent to select [all fields] from my_measurement group by [all tags] and not select [all fields] from my_measurement as one would expect (given the choice of a SQL lookalike language)?
If I have tagged measurements by host, for example, and I do this for hundreds of hosts, when I ask for 1 item without providing a tag then I'd be very surprised to get hundreds of records back. It should not group by anything unless I tell it to group by something, no?
So how do I get all fields from a measurement without writing out each field and without it group by all tags? How do I get the most recent n records from a measurement?

@contentfree the implicit GROUP BY * is a way of returning the tag values when doing a SELECT *. See https://github.com/influxdb/influxdb/pull/1997 for more details. I agree it can lead to non-intuitive behavior, but the prior behavior select [all fields] from my_measurement didn't return any tags and that appeared to be a more non-intuitive issue for the community.

How do I get the most recent n records from a measurement?

I don't think there is a way to do this currently. It's a reasonable feature request.

Clarifying: SELECT * FROM my_measurement ORDER BY DESC LIMIT N returns N points from each series in my_measurement. SELECT * FROM my_measurement ORDER BY DESC SLIMIT N returns the full series from the first N matching series.
This new function would return the N first matching points in the measurement, regardless of series.

SELECT * FROM measurement ORDER BY time DESC LIMIT 10 will return the 10 most recent points in the measurement, regardless of series.


Replace foo-bar header with content-type

YOU HAVE TAUNTED ME LONG ENOUGH RUST-HTTP TEMPLATE
(All the other HTTP templates already use content-type as their example header.)

I am excited for the moment when the integration tests turn out to depend critically on the foo: bar header


Add an option to evolve a Pokemon in the conga line

Will probably need more complex actions/menus
Would be interesting for size comparisons
Maybe a devolve option should exist as well, I'm not sure

There's a certain UI look I want this to have, contact me for more info if you want to work on this


Error decoding response body: expected value at line 1 column 1

I am trying to use llm-vscode with a locally deployed Text Generation Inference (TGI) server but I keep getting the following error:
Error decoding response body: expected value at line 1 column 1
My setting is the following where  and  correspond to my server path. I tried both with /generate and without it
{
    "editor.accessibilitySupport": "off",
    "workbench.colorTheme": "Default Dark+",
    "git.openRepositoryInParentFolders": "always",
    "diffEditor.codeLens": true,
    "llm.attributionEndpoint": "http://<host>:<port>/generate",
    "llm.configTemplate": "Custom",
    "llm.modelIdOrEndpoint": "http:// <host>:<port>/generate",
    "llm.fillInTheMiddle.enabled": true,
    "llm.fillInTheMiddle.prefix": "<PRE> ",
    "llm.fillInTheMiddle.middle": " <MID>",
    "llm.fillInTheMiddle.suffix": " <SUF>",
    "llm.temperature": 0.2,
    "llm.contextWindow": 4096,
    "llm.tokensToClear": [
        "<EOT>"
    ],
    "llm.enableAutoSuggest": true,
    "llm.documentFilter": {

    },
    "llm.tlsSkipVerifyInsecure": true
}

Unfortunately not yet and I am still waiting for an answer or an update

Hello, did you check the TGI logs? I assume the response body is not formatted correctly, there may be an issue with the way the response is parsed.

The TGI output is fine and can be consumed both by langchain and chat-ui. TGI with codellama-34 can be consumed fine with python requests call.

I'm having the same issue. Is there a good way to debug this?
Possibly related: https://users.rust-lang.org/t/serde-expected-value-at-line-1-column-1/16605


Logo design contribution

I am Md Masud Rana.
Who is a graphics dedsigner ,want to make a logo for this projects feely.if yoy have any requirments or idea then let me know.I will try my best.

hi i make a 3 logo for your project plzz tell me which logo you like. anything change plzz tell me.I will try my best.

First one looks great .. :)

Can you please work on  some more color schemes for the first design?

here is 3 color version which color you need tell me.

Never mind..!! The first one looks better..

plzz check #2


Implementation in C

I've tried the python example codes on my RPi2 and the multithreaded sgemm computation time is really amazing.
I wonder if there is sgemm implementation in C such that it can be used in other applications coded in C that requires matrix computation heavily (e.g. convolution in computer vision)

I'd like that a lot. Unfortunately, I don't have much time.
Please feel free to re-implement my code with other QPU assemblers if you
want.
2016年5月29日(日) 17:19 thomashang<EMAIL_ADDRESS>
I've tried the python example codes on my RPi2 and the multithreaded sgemm
computation time is really amazing.
I wonder if there is sgemm implementation in C such that it can be used in
other applications coded in C that requires matrix computation heavily
(e.g. convolution in computer vision)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/nineties/py-videocore/issues/3, or mute the thread
https://github.com/notifications/unsubscribe/AAKiGieFYXcX071p_qWWN5CcQv5qiq8iks5qGUwPgaJpZM4IpPX9
.

It's here: https://github.com/Terminus-IMRC/qmkl


Migrate listener observed block from redis to db

Description
Requires extra attention: Refactor listener to merge processEventQ with latestQ and historyQ (i.e. add event jobs to workerQ in latestWorker and historyWorker)
Add listener observed block to both redis and db. Read from db only when listener is initialized and read from redis in other cases:

write migrate up & down sql files for a new table to keep track of observed block
write query, controller function, and add route in api/listener
write wrapper api function in core/listener
integrate wrapper api into listener code
test

Implement nodemon for having hot reload running services (listener, worker, reporter):

Note: hot reload in this case means recompile and restart the service

Tests Performed after implementation. All tests have been performed end to end, consumer to service, for both services, VRF and RR:

Single request and read operation ✅
Multiple request and read operations ✅
Kill listener, make multiple requests, start listener ✅
Kill listener, make multiple requests, start listener, throw manual error in latestWorker after processing half of unprocessed blocks (to test historyQ and worker) ✅

Fixes # (issue)
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist before requesting a review

[x] I have performed a self-review of my code.
[ ] If it is a core feature, I have added thorough tests.

Deployment

[ ] Should publish npm package
[x] Should publish Docker image

Merging processEventQ into latestQ and historyQ turned out not an optimal solution.


Native javascript

Hi,
This code is not a native javascript
https://github.com/d3/d3-force/blob/master/src/link.js#L54
It's possible to change that ?
Thx

More precisely, it's not ES5. It's standard ES6.
Duplicate of Currently shipping ES6 syntax #134


A white background at the bottom when set to horizontal scrolling

Hi dear,
Thank you so much for bringing me such a good epub reader. I found a problem when integration it. There is a white background at the bottom in the last page of each chapter when I set to horizontal page mode. You can refer to the picture below
http://chuantu.biz/t5/53/1490613571x2890173854.png
http://chuantu.biz/t5/53/1490614022x2890173854.png
I haven't solved this problem for a whole day. Can you give me some advice?  Thanks again ！

This is kind of a hack solution because of o a bug on webView. If we do not use this it will be black...

@hebertialmeida Yes, I understand your code. If we need to customize the theme, then we need to customize this color. Thank you very much

This is a awkward solution, but for now I don't have a better solution for this...


pundit gem out of date on rubygems

there was some code I was referencing here that I wanted to use, the pundit/version says this codebase is 0.3.0 but the version has been out of date since August and the rubygems has been out of date.

+1

+1

I just release Pundit 1.0.0 to Rubygems. :tada: :balloon: :cake:


Create wac-acp-diff-story.md

A little store to bootstream WAC users to understand ACP

I have written up an issue showing how one can extend WAC with one relation, to get the same results as ACP gets above (without using regexes).
https://github.com/solid/authorization-panel/issues/184
I think that would be even a clearer way to explain the difference between WAC and ACP.

I like this story, as it helps understand what the differences are with how WAC is currently deployed. But if these documents are not just going to be one way conversations, but a way to help grow our common understanding, it should refer to https://github.com/solid/authorization-panel/issues/184 which shows how WAC could do the same. From there we can move on to the next feature of ACP, to see what it brings to the table.

Note: the ShEx would actually work with the :authorization proposal in Issue 184 https://github.com/solid/authorization-panel/issues/184 of one applies it to the ACR graph plus authorization linked graphs with the required simple reasoning.

Per the data interop meeting today, i migrated this to a new file and added a couple properties to WAC's ShEx


Fixes problem with new permissions

SonarQube analysis reported 2 issues

 2 minor

Watch the comments in this conversation to review them.


update migrations and fixtures

@rudolfix should I just add all the products that we have in the our backend mock now?


"ValueError: The HDUCLAS3=RATE keyword in the PHA file is not supported.Please open an issue if this is required."

As the message in title recommends ;)
First of all, thanks a lot for this great piece of software, I'm experimenting using it these days after finding the paper in the arXiv.
I'm dealing with spectra obtained by a likelihood analysis, which have non-integer values for the counts, so they don't comply with the HDUCLAS3=COUNTS specification. If jaxspec supported the RATE format it would be great!

Hi Matteo, thank you very much for your feedback and for trying jaxspec!
Could you detail a bit more about the processes for building these spectra?
The straightforward solution I see would be simply to multiply this spectrum by the exposure, and rounding it to the closest integer so that it could be dropped in a Poisson likelihood. However, if this spectrum is a result of a fit or so, I am not sure that a Poisson statistic would be representative. Does the .pha file has values for STAT_ERR or SYS_ERR ? If not, the previous solution might work, and I'll look forward to implementing it

@renecotyfanboy they're basically covariance spectra, obtained in the time domain. Their error bars are Gaussian, so I'm using STAT_ERR. I'm figuring your software could be really useful for people doing this kind of spectral timing and want a Python-only, robust fitting work flow. If you have time, it would be great!

@matteobachetti I'll start working on it this week. Would it be possible for you to share with me a .pha formatted like this so that I can test the implementation on my own? I could also add it to the HEACIT database that way. (You can directly share it in this conversation or send by mail to sdupourque[at]irap.omp.eu)
Extra question, do you use .pha2 formatted files in time series analysis?  I still have to implement support for .pha2 files in jaxspec

@renecotyfanboy sorry for the slow response, I have two pending deadlines. I'll send you a spectrum early next week