[BUG] crc setup fails on macOS Ventura (Intel & M1)

General information

OS: macOS
Hypervisor: vfkit
Did you run crc setup before starting it (Yes/No)? Yes
Running CRC on: Laptop

CRC version
OpenShift version: 4.11.18
Podman version: 4.2.0

CRC status
DEBU OpenShift version: 4.11.18
DEBU Podman version: 4.2.0
DEBU Running 'crc status'
DEBU Running 'sw_vers -productVersion'
DEBU sending request - Post "https://api.segment.io/v1/batch": dial tcp <IP_ADDRESS>:443: connect: connection refused
DEBU 1 messages dropped because they failed to be sent and the client was closed
crc does not seem to be setup correctly, have you run 'crc setup'?

CRC config

Host Operating System
ProductVersion:		13.1
BuildVersion:		22C65

Steps to reproduce

Install CRC
UI wizard fails
Running crc setup manually does not succeed with the above mentioned error

Expected
crc setup completes with success.
Actual
crc setup fails with error: "Temporary error: daemon is not running yet (x8)"
Logs
Before gather the logs try following if that fix your issue
$ crc delete -f
Machine does not exist. Use 'crc start' to create it
$ crc cleanup
INFO Unloading and removing the daemon plist file
INFO Removing /etc/resolver/testing file
INFO Stopping CRC vfkit process
INFO Removing hosts file records added by CRC
INFO Removing pull secret from the keyring
INFO Removing older logs
INFO Removing CRC Machine Instance directory
INFO Removing crc executable symlink
Cleanup finished

$ crc stetup --log-level debug
DEBU CRC version: 2.12.0+ea98bb41
DEBU OpenShift version: 4.11.18
DEBU Podman version: 4.2.0
DEBU Running 'crc setup'
INFO Using bundle path /Users/jp/.crc/cache/crc_vfkit_4.11.18_arm64.crcbundle
INFO Checking if running as non-root
INFO Checking if crc-admin-helper executable is cached
INFO Checking for obsolete admin-helper executable
DEBU Checking if an older admin-helper executable is installed
DEBU No older admin-helper executable found
INFO Checking if running on a supported CPU architecture
DEBU GOARCH is arm64 GOOS is darwin
INFO Checking minimum RAM requirements
DEBU Total memory of system is<PHONE_NUMBER>4 bytes
INFO Checking if crc executable symlink exists
INFO Checking if running emulated on a M1 CPU
INFO Checking if vfkit is installed
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /Users/jp/.crc/cache/crc_vfkit_4.11.18_arm64.crcbundle exists
DEBU /Users/jp/.crc/cache/crc_vfkit_4.11.18_arm64.crcbundle exists
INFO Checking if old launchd config for tray and/or daemon exists
INFO Checking if crc daemon plist file is present and loaded
DEBU Running 'bash -c launchctl list | grep com.redhat.crc.daemon | awk '{print $1}''
DEBU launchd agent 'com.redhat.crc.daemon' is not running
INFO Adding crc daemon plist file and loading it
DEBU Creating plist for com.redhat.crc.daemon
DEBU Running 'launchctl load -w /Users/jp/Library/LaunchAgents/com.redhat.crc.daemon.plist'
DEBU Running 'launchctl stop com.redhat.crc.daemon'
DEBU Running 'launchctl start com.redhat.crc.daemon'
DEBU retry loop: attempt 0
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 1
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 2
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 3
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 4
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 5
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 6
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU retry loop: attempt 7
DEBU error: Temporary error: daemon is not running yet - sleeping 2s
DEBU RetryAfter timeout after 8 tries
DEBU Running 'sw_vers -productVersion'
DEBU sending request - Post "https://api.segment.io/v1/batch": dial tcp <IP_ADDRESS>:443: connect: connection refused
DEBU 1 messages dropped because they failed to be sent and the client was closed
Temporary error: daemon is not running yet (x8)

Had a similar issue during unrelated testing, crc cleanup && crc setup helped in my case, I see this was not helpful for you :(

Checked the daemon was not working, then:
launchctl load -w /Users/jp/Library/LaunchAgents/com.redhat.crc.daemon.plist launchctl list | grep com.redhat.crc.daemon 2829	0	com.redhat.crc.daemon

DEBU CRC version: 2.12.0+ea98bb41
DEBU OpenShift version: 4.11.18
DEBU Podman version: 4.2.0
DEBU Running 'crc daemon'
INFO listening /Users/jp/.crc/tap.sock
INFO listening /Users/jp/.crc/crc-http.sock
0B sent to the VM, 0B received from the VM
0B sent to the VM, 0B received from the VM
0B sent to the VM, 0B received from the VM
0B sent to the VM, 0B received from the VM
0B sent to the VM, 0B received from the VM
0B sent to the VM, 0B received from the VM```

Question is why the installer fails to start the daemon?

It will be hard to retry this now. Perhaps it would be best to describe this as part of a troubleshooting to prevent similar issues for users. Although, a crc cleanup && crc setup would have been cleaner to peform these steps.

@What-Do-I-Know When it fails as part of crc setup can you open the console application and then go to Log Reports and then select launchd.log , check if you find out some more info around why it is failing as part of setup but works when you manually load it.

I've been able to reproduce something similar, but no idea if it's the same as your issue.
I had a pop up open on my mac asking me to unlock a keychain, and this apparently is causing issues with starting the daemon through launchctl. The daemon is running but not answering to requests on its socket, crc start complains with Is 'crc daemon' running? Cannot reach daemon API: Get "http://unix/api/version": dial unix /Users/teuf/.crc/crc-http.sock: connect: connection refused
If I retry crc cleanup && crc setup, the 'keychain unlock' popup shows again, and starting the daemon through launchctl fails again.
As soon as I closed all the keychain unlock popups, crc start proceeded as usual.
This started happening with commit 7a5d10aacd6ae441e5000d0a0914fade7d39f6a3

Ahh :( , the "unlock keychain" pop-up comes from this part of the code, when we are initialising the new secret store https://github.com/crc-org/crc/blob/76d07a985c9a7be95beba9b9c796760b6c258817/pkg/crc/config/secret_config.go#L27-L32
It checks if the keychain can be used/accessible early on when initialising the config by trying to store some value, this was added to handle an error on Linux we observed on the linux CI where the gnome secret-service was not accessible and that resulted in some warning, which is still better as that happens when the crc config set|unset|get commands are ran but the current situation prevents the daemon for running on macOS when the Login keychain is locked.
while on a default macOS installation the Login keychain is unlocked once at login and remains unlocked for the whole session, in your case @cfergeau and also @What-Do-I-Know maybe it gets locked after sometime, and that is the reason the  daemon is not able to start.
another reason that @adrianriobo mentioned on slack is if we are accessing via ssh but the GUI login was not done in that case launchd service does not start or keychain needs to be unlocked manually as the pop-up is only shown when a graphical login session is available.
as a workaround set the following settings (untick the "lock after" or "lock on sleep") for the Login keychain:

or use the commands below if on ssh:
$ security list-keychains # find out the login keychains path
    "/Users/anjan/Library/Keychains/login.keychain-db"
    "/Library/Keychains/System.keychain"
$ security unlock-keychain /Users/anjan/Library/Keychains/login.keychain-db
password to unlock /Users/anjan/Library/Keychains/login.keychain-db:

I'll check if keychainAccessible can be removed or a replacement is needed to make the same check without having to try to store something

@What-Do-I-Know did you try the workaround mentioned in https://github.com/crc-org/crc/issues/3458#issuecomment-1359982769 and does it help? are you running crc setup from an ssh session?


boards: arm: nrf5340_dk_nrf5340: init shared memory to zero on reset

This change ensures that shared memory doesn't hold any pre-reset
values after Soft reset is issued. When the Network Core boots up,
shared memory is always set to zero.
Signed-off-by: Kamil Piszczek<EMAIL_ADDRESS>

@ioannisg, I added static assert to verify if shared memory address is different than zero

btw, since we have renamed the nrf5340 board, you need to do a rebase

@ioannisg, I addressed your comments, please take another look at this PR


Add @outSH to GitHub

@outSH has joined the Cacti maintainers!
Please include:

GitHub ID to add: outSH
Project to be added to: Cacti

One of:

Team1: https://github.com/orgs/hyperledger/teams/cacti-maintainers
Team2: https://github.com/orgs/hyperledger/teams/cacti-security-administration
Role:

Admin

done!


Is depth.get_distance(x,y) a time consuming function on C++?

Required Info

Camera Model
D400

Firmware Version
<IP_ADDRESS>

Operating System & Version
Win 10

Kernel Version (Linux Only)

Platform
PC

SDK Version
2.16.1

Language
C++

Segment
others

Introduction
Hello all again! I have asked a similar question here three weeks ago, but there wasn't any satisfactory answers.
Goal
The x and y columns are (x, y) coordinates respectively, while the last column is the depth column for each corresponding (x, y) coordinate. There are 921,600 data which represents 921,600 pixels from a photo resolution of 1280x720.

Issue
To achieve this, I wrote a for loop that loops for 921,600 times just writing to a CSV format file.
CSV Loop - V1
for (int y = 0; y < 921600; y++) {
	myfile << "x,y,c\n";
}

In my own testing, this loop took ~512ms to complete.
CSV Loop - V2
for (int y = 0; y < 720; y++) {
    for (int x = 0; x < 1280; x++) {
        myfile << x << "," << y << "," << "c\n";
    }
}

In my own testing, this loop took ~8709ms to complete.
CSV Loop - V3
do {
    for (int x = 0; x < 1280; x++) {
        myfile << x << "," << y << "," << "c\n";
    }
    y++;
} while (y < 720);

In my own testing, this loop took ~8317ms to complete.
Implementation Idea (Need Advice)
I am thinking of capturing a single frame using the rosbag rs-record-playback CPP example, then using the depth.get_distance(x,y); CPP function to loop 921,600 times for every pixel. Something like this:
for (int y = 0; y < 720; y++) {
    for (int x = 0; x < 1280; x++) {
        c = depth.get_distance(x,y);
        myfile << x << "," << y << "," << c << "\n";
    }
}

Do you think the function is fast enough to loop? Or will it take very long and is impossible? I have tried taking a look at the rs-pointcloud example.. where Dorodnic has mentioned "the output of pointcloud object is a collection of {x,y,z} coordinates in the real world". Here is a snippet of the pointcloud code from example.hpp:
/* this segment actually prints the pointcloud */
auto vertices = points.get_vertices();              // get vertices
auto tex_coords = points.get_texture_coordinates(); // and texture coordinate
for (int i = 0; i < points.size(); i++)
{
    if (vertices[i].z)
    {
        // upload the point and texture coordinates only for points we have depth data for
	      glVertex3fv(vertices[i]);
        glTexCoord2fv(tex_coords[i]);
    }
}

I know from this segment, points.size() is actually 921,600, so this function does loop 921,600 times in order to draw the pointcloud. However, do you think this can be applied to the function of getting depth for each individual pixel without the function taking too long (ie more than a few minutes)?
Thank you very much.. looking forward to the suggestions or solutions. 😄

Hi @HippoEug
Using get_distance in a loop is not recommended. It is more suitable when you need to check the distance of couple of specific interest points. The main reason for the slowdown is that the compiler has no way to inline the call (since you are passing library boundaries) so instead of just going to the depth value in memory, the compiler is forced to generate a bunch of function calls and exception handling blocks. A better way is to multiply the raw data by the value of RS2_OPTION_DEPTH_UNITS option.

Example: cv-helpers.hpp:43-56

Hello Dorodnic! Thanks for the wonderful insight, I have think I have a rough idea of what you are talking about.
I will take a look at the example you sent, if there are any further questions on this issue I will further clarify again. Thank you!

Hi @HippoEug
Using get_distance in a loop is not recommended. It is more suitable when you need to check the distance of couple of specific interest points. The main reason for the slowdown is that the compiler has no way to inline the call (since you are passing library boundaries) so instead of just going to the depth value in memory, the compiler is forced to generate a bunch of function calls and exception handling blocks. A better way is to multiply the raw data by the value of RS2_OPTION_DEPTH_UNITS option.

Hello @dorodnic and everyone, I read the above and the other thread, Error compiling librealsense/wrappers/opencv/dnn. Having a little difficulty understanding the solutions you mentioned. Anyways, was wondering of alternative solutions while I figure out the solutions you mentioned.
Alternative Solution:
I would like to bring up part of the original question again.. since the rs-pointcloud.cpp or pointclouds in general are made up of (x, y, z) coordinates, why can't we just extract the (x, y, z) coordinates from the function which draws the pointcloud in rs-pointcloud.cpp?
Here is a snippet of the pointcloud code from example.hpp:
/* this segment actually prints the pointcloud */
auto vertices = points.get_vertices();              // get vertices
auto tex_coords = points.get_texture_coordinates(); // and texture coordinate
for (int i = 0; i < points.size(); i++)
{
    if (vertices[i].z)
    {
        // upload the point and texture coordinates only for points we have depth data for
	    glVertex3fv(vertices[i]);
        glTexCoord2fv(tex_coords[i]);
    }
}

The problem I have currently is that I am unable to get any (x, y, z) coodinates from the above function, just do not know where the code is "hiding"!
Thank you for reading! 😃 😄

[Realsense Customer Engineering Team Comment]
Ticket being closed due to inactivity for 30+ days


added length check to keyParts before indexing

Description: checks length of keyParts before accessing

@itscalvinwang this doesn't work at all. variables need declaration outside the loop. CircleCI compiles this for you as well.


youtube_playlist_reverse.js Stopped WorkingGree

Greetings,
Been using this pretty much sense it's inception, & last several months Flawlessly.. As of yesterday, it completely stopped working.. Problems started last week where after many "clearing cache/deleting cookies/F5's/etc" could eventually get script to "catch".. but had to repeatedly do that for EACH applicable Tab.. But as of now, nothing works anymore.. Script seems to be running, button displays, can tweak script button's "inital state" to "false/true/false" & F5 = button responds.. Added 3 seconds to Both "redirectWhenTimeLeft" = No Help.. Using Firefox , tested on versions old to recent = No Help.. No other changes to my system during this time, etc etc etc..
Has YouTube changed something, etc etc? Any other recent known issues / thoughts?.. Please Advise..
Thanks.

Follow-Up Findings.. Been testing last several days, and the script is working Flawlessly once again.. Great Job 👍 / Thanks Again 🤗 !
From: Dragosarus
Sent: Tuesday, October 26, 2021 12:28 AM
Subject: Re: [Dragosarus/Userscripts] youtube_playlist_reverse.js Stopped WorkingGree (#1)
Thanks again for reporting this. I believe you are correct in that the issue is caused by a YT change: it appears to be the same issue described in  https://github.com/Dragosarus/Userscripts/commit/445f9748b1edf10ad8d04c87d9d99ffac6a454f5 445f974 for a different script. A fix has been applied ( https://github.com/Dragosarus/Userscripts/commit/d41afd5c0ab38ec22150aa28f7e7e66921e1fc65 d41afd5) and the script should now function properly.
Looking into it, it appears that YT now stores the playlist sidebar used with the miniplayer before the user enables it (if I recall correctly, this used to be loaded when needed). Notably, this sidebar is initally empty and is not updated until the user enters miniplayer mode; this caused getVidNum() to output [NAN, NAN] which tricked the script into believing the first video in the playlist had not yet been reached (and as a result got stuck in an infinite loop).


lxp-bridge: init at 0.13.0

Description of changes
A bridge to MQTT/InfluxDB/Postgres for communications with LuxPower inverters
https://github.com/celsworth/lxp-bridge/
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[X] Fits CONTRIBUTING.md.

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

Looks like package source repository has been archived.

Thanks @dani0854 for the heads up. I didn't realize this had happened. I will try and see what is going on.

I'm going to close this PR and move the package to my NUR.


Create a "core" package that will contain all major and shared dependencies required for using our design system

As of now, some dependencies are not bundled properly, which leads to potential issues for consumers of these packages

Closing this for now, as it should be handled by both #571 and #572


Create "kitchen sink" sample app

why
We should:

have a live example in the repo for documentation purposes
have an example on which to discuss V2 API changes #1212
improve our test coverage for "core" addons (how??)

what
Modify examples/test-cra to use all core addons with realistic use cases:

[x] actions
[x] centered
[x] events
[ ] graphql
[x] info
[x] knobs
[x] links
[x] notes
[x] options

Good enough for now 😉


Add global flag to set NLL evaluation backend

In case the value is "combine", it will use combines caching NLL classes

In any other case, it will RooFits default createNLL(), setting the RooFit::EvalBackend to the value on the global flag. See: https://root.cern.ch/doc/master/classRooAbsPdf.html#a24b1afec4fd149e08967eac4285800de

Example:
# To use the evaluation backends of RooFit
ROOT.gInterpreter.Declare("#include <HiggsAnalysis/CombinedLimit/interface/Combine.h>")

# Do any of:
ROOT.Combine.nllBackend_ = "combine" # the combine caching NLL
ROOT.Combine.nllBackend_ = "cpu" # the default in RooFit
ROOT.Combine.nllBackend_ = "legacy" # the old backend of RooFit, very slow
ROOT.Combine.nllBackend_ = "codegen" # do the code generation to get analytic gradients


HTTP 204 responses can inappropriately include content

HTTP 204 "No Content" should not respond with content.
The API endpoint health initializes "@response_content" to an empty array. If health is okay as determined by the array still being empty, then it calls the "no_content!" response.
https://github.com/sensu/sensu/blob/master/lib/sensu/api/routes/health.rb#L34
The def for "no_content!" appropriately sets the status code and string (204/No Content) then calls "respond".
https://github.com/sensu/sensu/blob/master/lib/sensu/api/http_handler.rb#L281
The "respond" method does a JSON.dump of "@response_content", which in the case of the health endpoint being healthy, is an empty array, which gets serialized to a response of "[]".
https://github.com/sensu/sensu/blob/master/lib/sensu/api/http_handler.rb#L205
Expected Behavior

If response is 204/No Content, then response should not return any content (including empty arrays).
Current Behavior

Health endpoint responds when healthy with a 204 than includes "[]" in the content.
Possible Solution

PR incoming shortly. In the def for "no_content!" we should nil out @response_content.
Steps to Reproduce (for bugs)

Call /health api endpoint, note that headers look correct, and body include []

Context

Your Environment

Sensu version used: 1.8.0
Active Sensu extensions (e.g. WizardVan 0.1.0):
Operating System and version (e.g. Ubuntu 14.04): Ubuntu 18.04
Transport and runtime versions (e.g. RabbitMQ 3.6.2 on Erlang 18.2):

Closed by #1962


"level" the AHRS

Is there a system level instruction that can be sent to the RY835AI to "level" the AHRS in pitch and roll?
I have mine sitting on a flat surface and it is reading approx 30 degrees of pitch and 1 degree of roll.
I rebooted it and it seems to have leveled. In looking at the code it appears to calibrate for some period of time at each start.
If there is no useful reason to re-level it after start, then this is a non-issue.

Are you referring to the current AHRS implementation in v0.4r2? If so, leave it level for 60 seconds after startup and it will level itself.

OK, that explains what I saw after reboot. I'm not sure why is was wonky before.


S3 DELETE call returns 204, not 200.

According to the S3 API docs, the DELETE call returns code "204 No content"
on success.

I noticed this while testing against the 'ms3' mock S3 server. I haven't verified against real S3, but '204' is correct according to the docs, too.


Locale.ENGLISH must be set for latitude/longitude/radius params

In certain language the '.' is replace by a ',' which will cause invalid parameters on the URL.

@windy1 did you already have a chance to review this ?


Simple gp problem returns wrong answer.

Describe the bug
Simple minimization problem where variables are positive returns unbounded status
To Reproduce
import cvxpy as cp
x = cp.Variable(pos = True)
y = cp.Variable(pos = True)
prob = cp.Problem(cp.Minimize(x*y), [x <= 5, y >= 5])
prob.solve(verbose = True, gp = True) # returns unbounded

Expected behavior
Since x is declared positive, I would expect zero as the answer.
Output
Problem
  Name                   :
  Objective sense        : min
  Type                   : LO (linear optimization problem)
  Constraints            : 2
  Cones                  : 0
  Scalar variables       : 2
  Matrix variables       : 0
  Integer variables      : 0

Optimizer started.
Optimizer terminated. Time: 0.00

MOSEK DUAL INFEASIBILITY REPORT.

Problem status: The problem is dual infeasible

The following constraints are involved in the infeasibility.

Index    Name             Activity         Objective        Lower bound      Upper bound
0                         -1.000000e+00                     NONE             1.609438e+00

The following variables are involved in the infeasibility.

Index    Name             Activity         Objective        Lower bound      Upper bound
0                         -1.000000e+00    1.000000e+00     NONE             NONE

Interior-point solution summary
  Problem status  : DUAL_INFEASIBLE
  Solution status : DUAL_INFEASIBLE_CER
  Primal.  obj: -1.0000000000e+00   nrm: 1e+00    Viol.  con: 0e+00    var: 0e+00

Basic solution summary
  Problem status  : DUAL_INFEASIBLE
  Solution status : DUAL_INFEASIBLE_CER
  Primal.  obj: -1.0000000000e+00   nrm: 1e+00    Viol.  con: 0e+00    var: 0e+00
Out[2]: 0.0

Version

OS:  MacOS 10.15.1
CVXPY Version: 1.0.25

Additional context
None.

Thanks for the minimal example. I can’t debug right now but something stands out to me: MOSEK says it’s a linear problem, and that shouldn’t be the case. We recently had some issues with getting “exponential cone” problems passed correctly to mosek, and this should be one such problem.
Can you attempt with ECOS? That would help isolate if this is a bug in the mosek solver interface, or a bug earlier in problem compilation.
Sent with GitHawk

The output is not wrong. The problem is in fact unbounded, because 0 is not in the feasible set — GPs/LLCPs require variables to be positive, not nonnegative. A variable cannot be zero at a solution.

We could however probably improve the documentation to mention this, as it’s understandably confusing.

Ecos returns the same answerI
Re: Akshay's note. Since I have declared x positive, I'd have thought an answer close to macheps (effectively zero) would be returned. A slight variant that adds a constraint say x >= 1e-10 returns the correct answer

@rileyjmurray , the canonicalized problem is in fact linear, there’s nothing wrong with MOSEK here. (Monomials are log-log affine.)

@akshayka yes I now see why this happened. Trouble is, users (myself included) interpret "unbounded" to mean "the objective is not finite". The user-specified objective is in-fact bounded below.
From the user's perspective, the issue isn't about boundedness or not, it's about attainment of the optimal solution. Since CVXPY is a numerical solver, people get used to the idea that attainment of an optimal solution is never done exactly anyway. For example, this is what happens if someone formulated the same problem doing the log-log transformation manually:
import cvxpy as cp
z = cp.Variable(shape=(2,))
constraints = [cp.exp(z[0]) <= 5, cp.exp(-z[1]) <= 0.2]
objective = cp.Minimize(cp.exp(z[0] + z[1]))
prob = cp.Problem(objective, constraints)
prob.solve(solver='ECOS')  # 1.4437401927291201e-08
x = cp.exp(z).value

What you’ve done is a log transformation, not a log-log transformation. Once you take the log of the objective and both sides of the constraints, you get an LP which is in fact unbounded.
LLCPs are weird because the domain is not closed. The choice of unbounded for this scenario was a deliberate choice. Mathematically, unbounded makes sense — you can make the objective arbitrarily small and positive, hence it’s unbounded.

Ok, that makes sense, now that I understand what 'unbounded' means. Yes, some documentation would help. Thanks.

@akshayka with that in mind, it might be useful to have cvxpy print a message when verbose=True and solving a log-log convex program. Key issues are that under the log-log transformation, the objective value the solver reports at each iteration is not necessarily easily-parsable by the user (for convex programs, the most a user has to do is flip a sign, or add a constant). Also, user-specified solver tolerances will be interpreted in log-domain. If users aren't aware of this, then they might be very confused by the solver output.
I'll also note that since solver tolerances are applied in log-domain, it could be hard for a user to specify a solver tolerance that get's them desired feasibility for the model they specified in cvxpy syntax. This connects to #434.


alsa-firmware: 1.2.1 → 1.2.4

Patch is present on 1.2.4: https://github.com/alsa-project/alsa-firmware/commit/c9e5b369919a956cf56d50a6f0be076e364f7820

Motivation for this change
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

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

[x] Fits CONTRIBUTING.md.

Singular is also seeing this error on aarch64, and the workaround there was to revert some autoconf macro updates: https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/science/math/singular/use-older-ax-prog-cc-for-build.patch


Make unlink action register a change to rich text areas

Fixes #2704

I can confirm this fixes the 'remove link' problem.


fix: upgrade catalog

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

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

@jstrachan: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
02892c96c2c882aea694c74ea133aa553b37b9ec
link
/test gsm

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/retest

/retest


vim won't display utf-8 characters

What steps will reproduce the problem?
1. set showbreak=↪ " character show when wrapping line
2.
3.

What is the expected output? What do you see instead?
Previously i see the "↪" escape character normally, now (since update i
believe) I get error "E595: contains unprintable or wide character:
showbreak=â~Fª"

What version of the product are you using? On what operating system?
Version 7.4. Arch Linux Operating System

Please provide any additional information below.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 26 Sep 2014 at 6:40

The same thing. I think it is something in environment.

Same problem on Windows 64 Bit, Vim 8.1.1

I don't see an answer to @chrisbra 's comment asking for the full output of :version
What is 'encoding' set to?
If you set 'encoding' in your vimrc, the :set showbreak=↪ statement should be placed afterwards.
If your vimrc is in UTF-8 it should contain a :scriptencoding utf-8 statement near the top to avoid misunderstandings.

Best regards,
Tony.


Not working in Laravel 8

Here is the reason
URL: https://laravel.com/docs/8.x/upgrade

same

Hoping to fix this Sunday.
Meanwhile it would be great if someone shares staging/sandbox merchant details in discord
https://discord.gg/DA7XN5

Undefined property: Anand\LaravelPaytmWallet\PaytmWalletManager::$app

Undefined property: Anand\LaravelPaytmWallet\PaytmWalletManager::$app

Shubham replace $this->app with $this->container
Manager $app Property
The previously deprecated $app property of the Illuminate\Support\Manager class has been removed. If you were relying on this property, you should use the $container property instead.

thanx bro it's working
On Mon, 26 Oct 2020 at 16:52, sadique hussain<EMAIL_ADDRESS>wrote:

Undefined property: Anand\LaravelPaytmWallet\PaytmWalletManager::$app
Shubham replace $this->app with $this->container
Manager $app Property
The previously deprecated $app property of the Illuminate\Support\Manager
class has been removed. If you were relying on this property, you should
use the $container property instead.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/anandsiddharth/laravel-paytm-wallet/issues/58#issuecomment-716484522,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGVXRIJKN4SXFKS45N2CU7TSMVLV3ANCNFSM4RXMZOBA
.


PUT /team/{id}/meeting

Path: /team/{id}/meeting
Method: PUT
Description:
Edits one or more meetings of specified team
Auth: MEMBER
Parameters:

id is a String

Payload:
[{
  meeting: Meeting
}]

Response:
{
  name: String,
  members: [{
    member: Member,
    role: ['MEMBER', 'TEAM_LEADER', 'COORDINATOR', 'ADMIN'],
  }],
  meetings: [Meeting]
}

Notes
id corresponds to an _id index of mongodb.
Status codes:

Code
Rule

400
Invalid payload

404
Specific object not found

200
Otherwise

Tests:

No team matching the id
Should return a 404 status code.

Invalid meeting on payload
Should return 400

All good
Should return the team with the new meetings.

This should not exists. This should belong in the /meeting endpoint, creating and adding it to a certain context.


Missing the FCN16.txt

Hello, In the train.py you used
f = open('./FCN16.txt', 'w')

But I cannot find the file in the code. I got the error as below. How can I fix it? Thanks
Traceback (most recent call last):
  File "train.py", line 29, in <module>
    model = FCN16(config)
  File "/home/john/tf_fcn/src/Model.py", line 380, in __init__
    FCN32.__init__(self, config)
  File "/home/john/tf_fcn/src/Model.py", line 300, in __init__
    self.set_up()
  File "/home/john/tf_fcn/src/Model.py", line 386, in set_up
    self.add_loss_op()
  File "/home/john/tf_fcn/src/Model.py", line 355, in add_loss_op
    loss_reshape = tf.nn.sparse_softmax_cross_entropy_with_logits(pred_reshape, gt_reshape)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_ops.py", line 1713, in sparse_softmax_cross_entropy_with_logits
    labels, logits)
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_ops.py", line 1562, in _ensure_xent_args
    "named arguments (labels=..., logits=..., ...)" % name)
ValueError: Only call `sparse_softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=..., ...)

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at<EMAIL_ADDRESS>
You can print a more detailed traceback right now with "%tb", or use "%debug"
to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
    %config Application.verbose_crash=True

f = open('./FCN16.txt', 'w')
This actually create a new txt file to record the training loss.
I think the error is caused by the API mismatch between old version and new version of TensorFlow. I will check it later to upgrade the code to latest version.

You are right. I fixed the above error by changing
loss_reshape = tf.nn.sparse_softmax_cross_entropy_with_logits(pred_reshape, gt_reshape)

To
loss_reshape = tf.nn.sparse_softmax_cross_entropy_with_logits(logits=pred_reshape, labels=gt_reshape)

Thanks


Improve prompting for inputs with more details

TL;DR
Create a better developer experience when prompting for inputs.
One thought previously mentioned was to include the description of the input.
Overall, the way the CLI prompts could be clearer and visually more appealing.
Detailed design
No response
Alternatives considered
No response
Additional information
No response

Content added to existing issue #38


composer

Please consider using one of the issue templates (bug report, feature request).
For additional security, you should declare the allow-plugins config with a list of packages names that are allowed to run code

We already do both of these things.


Not listed yet: www.ft.com

The website at this url is unlisted: https://www.ft.com/content/663087c2-77c1-11e9-bbad-7c18c0ea0201

This is an interesting one.
Looks like they need to have this cookie set in order to clear out the permissions but they check another cookie to see if they need to display the dialog.
    {
        domain: "ft.com",
        name: "FTConsent",
        value: "marketingBypost%3Aoff%2CmarketingByemail%3Aoff%2CmarketingByphonecall%3Aoff%2CmarketingByfax%3Aoff%2CmarketingBysms%3Aoff%2CenhancementBypost%3Aoff%2CenhancementByemail%3Aoff%2CenhancementByphonecall%3Aoff%2CenhancementByfax%3Aoff%2CenhancementBysms%3Aoff%2CbehaviouraladsOnsite%3Aoff%2CdemographicadsOnsite%3Aoff%2CrecommendedcontentOnsite%3Aoff%2CprogrammaticadsOnsite%3Aoff%2CcookiesUseraccept%3Aoff%2CcookiesOnsite%3Aoff%2CmembergetmemberByemail%3Aoff",
}

Can we set more than 1 cookie in the config for the same site?  cc @zombie

To set multiple cookies for the same site you can make multiple records in sites.js


AWS RDS RightSizing Recos

Description
Initial Release of AWS RDS RightSizing Recos
Issues Resolved
n/a
Contribution Check List

[x] All tests pass.
[x] New functionality includes testing.
[x] New functionality has been documented in the README if applicable
[x] New functionality has been documented in CHANGELOG.MD

Running example: https://governance.rightscale.com/org/6/projects/7954/applied-policies/5d84d56e57843400a1caac8c


feat(fw): Remove _make_request and replace using it to EthRPC methods

🗒 Description
Remove _make_request from RequestManager in cli.gentest.py.
Replace using _make_request to next EthRPC methods: get_block_by_number, get_transaction_by_hash, debug_trace_call.
Add 2 more new methods to EthRPC: get_transaction_by_hash, debug_trace_call.
Extend EthRPC add new methods:

get_transaction_by_hash(self, transaction_hash: str)
debug_trace_call(self, tr: RequestManager.RemoteTransaction)

🔗 Related Issues
Resolve #561
✅ Checklist

[X] All: Set appropriate labels for the changes.
[X] All: Considered squashing commits to improve commit history.
[X] All: Added an entry to CHANGELOG.md.
[X] All: Considered updating the online docs in the ./docs/ directory.

Hello @danceratopz,
please verify changes

@danceratopz
Thank you for the detailed comment!
I agree with you to wait until #576 will be merged
however I'm going to add some fixes from your comment, it looks like there are some work that has to be done

@danceratopz @spencer-tb
Thank you very much for helping me! I was a bit stuck and didn't see where to go.
Anyway @danceratopz thank you for your patient and for refactoring I will certainly examine all changes!
Additional thanks to @spencer-tb, your comments are very useful for me in perspective of improvement of my involvement and contribution in opensource


Next Trip via timing via Service Call has not been working for the last 2 weeks

Next Trip via timing via Service Call
Like in description, worked well until approx 2 weeks ago.

Now, I start the call, but nothing happend.

No new NextTrip Time
No log entry in HA Log

Yes, I startet new all devices, but it's still the same.
I have no idea to fix this issue.
Can anyone help?

Works now after re-downloading HAC and Wattpilot Integration.


Ability to configure the landing page background image

Description
The default image chosen for the landing page is neuroscience specific. While it may not bother an external user, we should allow for configuration of this image so they can customise it to their own usecase/organization.
This should include update to documentation on how to configure this and give graphical guidelines considering the white fonts that overlap the image.

This i implemented but the docs needs updating and we are missing the image size.


Can't find 2.2.2

Hello,
I can't find 2.2.2 binary.
Can you deploy 2.2.2 version to any mvn repository, please?
Thank you

Hi. 2.2.2 is published on jCenter make sure to include the repository dependency jCenter() in the gradle file (app level)

Hi,
jCenter has 2.2.2, but it's id are different.
compile 'StyleableToast:styleabletoast:2.2.2'
and github's comments are implementation 'com.muddzdev:styleabletoast:2.2.2' .
So, it's make an issue for updating to the 2.2.2.
Thanks

Just remove the compile 'StyleableToast:styleabletoast:2.2.2' and paste this implementation 'com.muddzdev:styleabletoast:2.2.2'

I'm still having problem with 'com.muddzdev:styleabletoast:2.2.2'
But, 'com.github.Muddz:StyleableToast:2.2.2' works well.
This is buildscript repositories block in my build.xml of app project.
buildscript {
repositories {
jcenter()
google()
maven { url "https://jitpack.io" }
maven { url "http://maven.jahia.org/maven2/" }
maven { url "http://dl.bintray.com/pnaleks/pnapp/" }
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.4.0'

    // https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
    classpath 'io.fabric.tools:gradle:1.29.0'
}

}
And, can you check this url for checking aar files are uploaded?
https://bintray.com/muddz/maven/StyleableToast/2.2.2#files/com%2Fmuddzdev%2Fstyleabletoast
https://bintray.com/muddz/maven/StyleableToast/2.2.2#files/StyleableToast%2Fstyleabletoast%2F2.2.2
Thanks

Hi. It has been corrected now. There was an error in my dependency "group name". It should work now with  implementation 'com.muddzdev:styleabletoast:2.2.2'

It works well.
Thank you.


Update single-line-log dependency

The single-line-log dependency as required by this module is unlicensed. More recent versions of single-line-log are licensed.
Background: this was discovered upon doing a license audit. The trail was electron -> electron-download -> nugget -> single-line-log (old version). The use of unlicensed code creates legal issues, not just for this module, but also for anyone who depends on this module.
Note: the README for<EMAIL_ADDRESS>states that the license is MIT; however, this file was not published to npm. As a result, the code as distributed lacks license information.
{
  "author": {
    "name": "Tobias Baunbæk",
    "email"<EMAIL_ADDRESS>  },
  "bugs": {
    "url": "https://github.com/freeall/single-line-log/issues"
  },
  "dependencies": {},
  "description": "Keep writing to the same line in the terminal. Very useful when you write progress bars, or a status message during longer operations",
  "devDependencies": {},
  "directories": {},
  "dist": {
    "shasum": "87a55649f749d783ec0dcd804e8140d9873c7cee",
    "tarball": "https://registry.npmjs.org/single-line-log/-/single-line-log-0.4.1.tgz"
  },
  "homepage": "https://github.com/freeall/single-line-log",
  "keywords": [
    "single",
    "line",
    "log",
    "output",
    "overwrite",
    "collapse",
    "stdout",
    "terminal",
    "tty",
    "cli",
    "shell"
  ],
  "maintainers": [
    {
      "name": "freeall",
      "email"<EMAIL_ADDRESS>    }
  ],
  "name": "single-line-log",
  "optionalDependencies": {},
  "readme": "ERROR: No README data found!",
  "repository": {
    "type": "git",
    "url": "git://github.com/freeall/single-line-log.git"
  },
  "version": "0.4.1"
}

fixed in 2.0.1

Thanks @mafintosh !


Update assign-licenses-to-user-accounts-with-microsoft-365-powershell.md

Corrected the copy license assignment cmdlet
Per issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/9686

@JohanFreelancer9 Please copy review

Docs Build status updates of commit 8791b3a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/enterprise/assign-licenses-to-user-accounts-with-microsoft-365-powershell.md
:white_check_mark:Succeeded

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

Docs Build status updates of commit 1e5d9b9:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: RuningBuildFailed] Some unexpected errors happened when running build, please open a ticket in https://aka.ms/SiteHelp and include the error report for our team to troubleshoot

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@msbemba

Docs Build status updates of commit 1e5d9b9:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/enterprise/assign-licenses-to-user-accounts-with-microsoft-365-powershell.md
:white_check_mark:Succeeded

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

@yogkumgit Validation has been passed

@kelleyvice-msft Please merge this PR. Thanks

Learn Build status updates of commit 4fcc655:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

microsoft-365/enterprise/assign-licenses-to-user-accounts-with-microsoft-365-powershell.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Release 0.3.13 has breaking changes and thus breaks hyper.

It seems that the last version bump shouldn't have been a patch version.
Projects depending on hyper (reqwest in my case) seem to be broken now.
Output:
cargo test
   Compiling hyper v0.13.7
   Compiling matrix-sdk-crypto v0.1.0 (/home/poljar/werk/matrix/nio-rust/matrix_sdk_crypto)
   Compiling matrix-sdk-base v0.1.0 (/home/poljar/werk/matrix/nio-rust/matrix_sdk_base)
error[E0599]: no function or associated item named `ipv4` found for struct `socket2::Domain` in the current scope
   --> /home/poljar/local/data/cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.13.6/src/client/connect/http.rs:556:38
    |
556 |         SocketAddr::V4(_) => Domain::ipv4(),
    |                                      ^^^^ function or associated item not found in `socket2::Domain`

error[E0599]: no function or associated item named `ipv6` found for struct `socket2::Domain` in the current scope
   --> /home/poljar/local/data/cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.13.6/src/client/connect/http.rs:557:38
    |
557 |         SocketAddr::V6(_) => Domain::ipv6(),
    |                                      ^^^^ function or associated item not found in `socket2::Domain`

error[E0599]: no function or associated item named `stream` found for struct `socket2::Type` in the current scope
   --> /home/poljar/local/data/cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.13.6/src/client/connect/http.rs:559:44
    |
559 |     let socket = Socket::new(domain, Type::stream(), Some(Protocol::tcp()))?;
    |                                            ^^^^^^ function or associated item not found in `socket2::Type`

error[E0599]: no function or associated item named `tcp` found for struct `socket2::Protocol` in the current scope
   --> /home/poljar/local/data/cargo/registry/src/github.com-1ecc6299db9ec823/hyper-0.13.6/src/client/connect/http.rs:559:69
    |
559 |     let socket = Socket::new(domain, Type::stream(), Some(Protocol::tcp()))?;
    |                                                                     ^^^ function or associated item not found in `socket2::Protocol`

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper`.

Someone was faster https://github.com/alexcrichton/socket2-rs/issues/93.


Created login and signup pages for your website with google authentication in it the issue number is #152

created a login and signup page for your food ordering website and also added google authentication as u said. the issue number was #152. if there are any changes please let me know so that i can improve them. and sorry as the main css of login and signup page are in the css file the login1 and signup1 outside the file are waste. sorry for inconvinience
Thank u so much for giving me the opportunity to contribute to your project

@NamanJain795 can u also add a button of it in the nav bar?

@khushi-joshi-05 yes i can do it. I will make changes and then add a pull request once again after some time.


add flag to show action code

Is your feature request related to a problem? Please describe.
When using action get, add a flag to show the action's code, when the code is in text form.
Additionally, add a global flag that allows action get to show the full action document as JSON when desirable.
Describe the solution you'd like
I've implemented a patch available here https://github.com/adobe/aio-cli-plugin-runtime/compare/master...rabbah:code?expand=1 and will open a PR if desirable.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hi @rabbah and thank you for the great suggestion!
Let me loop in @sarahxxu and @mcorlan for a feature review.

Hi @rabbah and thank you for the great suggestion!
Let me loop in @sarahxxu and @mcorlan for a feature review.

@rabbah I can see use cases where this could be very helpful! Let's coordinate on the language of the flag to make sure we are consistent. Is the proposed flag --code (-c for short?)
cc @meryllblanchet @mcorlan

@rabbah I can see use cases where this could be very helpful! Let's coordinate on the language of the flag to make sure we are consistent. Is the proposed flag --code (-c for short?)
cc @meryllblanchet @mcorlan

That's why I proposed in https://github.com/adobe/aio-cli-plugin-runtime/compare/master...rabbah:code?expand=1#diff-4a40868c6c94c0bcf8936e9402bf9274a339027961f7234418e806cd51a62506R104-R107.

That's why I proposed in https://github.com/adobe/aio-cli-plugin-runtime/compare/master...rabbah:code?expand=1#diff-4a40868c6c94c0bcf8936e9402bf9274a339027961f7234418e806cd51a62506R104-R107.

👍  lgtm!

👍  lgtm!

@Himavanth or @purplecabbage could you review @rabbah 's PR?

@Himavanth or @purplecabbage could you review @rabbah 's PR?


Set Shared Without Arguments

Currently the Go CLI accepts arguments of yes, or no for the --shared flag. The --shared flag must be changed to no accept arguments. If the flag is present, sent publishing to true. Otherwise, publishing is set to false.
Tests must be updated to handle this change.
See comment here: https://github.com/openwhisk/openwhisk/pull/614#discussion-diff-68318077

@mdeuser, I'm working on this.


Remove extraneous slashes

Remove double slashes noticed in https://github.com/chipsalliance/synlig/pull/2167#pullrequestreview-1752192016

It builds, but installs things in the wrong place. There are hundreds of lines of Makefiles and scripts that assume directories end with / and as such don't insert / when concatenating paths. I don't think it's worth going through all of that for an effectively cosmetic improvement in the output of yosys-config.


Make CGLineCap as property

Hi,
would it be possible to make CGLineCap available to set and make it for example square? I know I should probably make pull request but I am not good at this. I think it's easy to change and I would very much like it.
Thanks

It would be really great to have this option.

Hi @LiborZa, could you give me a usecase, that we need to have this property public ?
Thanks a lot


Support custom database in ConfigEditor

Currently the datasource class does not take the database param from ConfigEditor.
TODO:

use instanceSettings.jsonData.database (saved in ConfigEditor) as the second argument of db client constructor
implement a way of testing certain database when adding new grafana greptime datasource

Okay, we can simply use SELECT 1 to test if grafana can access certain database.

"DESC TABLE" currently has some bug on http db param.
https://github.com/GreptimeTeam/greptimedb/issues/912


Upload releases in parallel

While deploying cf-deployment for the first time, bosh goes and downloads several releases. It does so one at a time. I believe it would be faster to download several releases at once instead.
I've timed deploying cf-deployment on my local machine:
317.94 real         3.27 user         0.73 sys

I then updated the bosh-cli (as a spike) to download 5 releases at a time and deployed to a new local director:
231.51 real         6.07 user         1.70 sys

This comes to ~2 minutes quicker.
I would be happy doing a PR if this is reasonable.

Agreed - closing in favor of #221 and pending PR #229.


During preprocessing image, error reported in "warp_affine_bilinear_and_normalize_plane_kernel"

I get error message :"[yolo.cu:339]: CUDA Runtime error≡ƒÆÑ cudaPeekAtLastError() # too many resources requested for launch, code = cudaErrorLaunchOutOfResources [ 701 ]"
It points to the Kernal function: checkKernel(warp_affine_bilinear_and_normalize_plane_kernel << <grid, block, 0, stream >> > (src, src_line_size, src_width, src_height, dst, dst_width, dst_height, const_value,	matrix_2_3, norm));
There is no problem with the kernal function at simple_yolo.cu (The previous version).

This may be caused by your device being weak and limiting the blockDim to less than 1024. This can be queried via deviceQuery program. You can change 32 to 16 and 31 to 15 in either gridDim or blockDim to reduce the resource requirements.

Hi Shouxieal, Yes, my laptop video card is weak. after modifing the blockDim as you suggested, it works like a charm!


Passing contentstate object instead of sringified value

Checklist

[x] This is not covered in the repository examples.
[x] I am using the package latest version.
[x] This is a bug report or an enhancement proposal.

Description
Currently we provide a value (defaultValue which is a stringified version of the content state). Each time content changes it returns a content states in onChange and if you save it in a state which passes as defaultValue you will have to stringify again.
Suggestion
Allow contentState object as defaultValue or perhaps a separate props contentState

draftEditorProps can be used
<RichTextEditor
	draftEditorProps={{
		editorState,
	}}
/>


Completing with a printable character does not insert the character

If i type something completable and then use a printable character to commit the completion (like a parenthesis () the parenthesis is not printed.

Then I press (

I would expect it to look like:

I can't reproduce it.
https://user-images.githubusercontent.com/629908/132207489-0c6c5e64-2040-438b-bddf-963883564f40.mp4

@CalinLeafshade I think you should upload the minimal config.

I can't reproduce it.
https://user-images.githubusercontent.com/629908/132208475-4dbbcb0d-8165-4433-9678-0b28d54d1306.mp4


Updated devtools-guide-chromium/remote-debugging/windows file

Updated link.

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

File
Status
Preview URL
Details

microsoft-edge/devtools-guide-chromium/remote-debugging/windows.md
:white_check_mark:Succeeded
View

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

#sign-off and merged.


how to run in only GPU mode

What is the issue?
my model sometime run half on cpu half on gpu，when I run ollam ps command it shows 49% on cpu 51% on GPU，how can I   config to run model always only on gpu mode but disable on cpu？
pls help me
OS
Linux
GPU
No response
CPU
No response
Ollama version
No response

How big is your model and how much VRAM do you have?  ollama will normally try to fit it all in GPU, if it's not then ollama's calculation of available VRAM is telling it it needs to spill some to CPU RAM.  What's the output of nvidia-smi?

@janglichao can you clarify "sometimes"?   Are you loading the same model and sometimes it loads 100% GPU and sometimes loads ~50/50 CPU/GPU, or are you loading different models?  We'll try to load as much of the model into GPU as we can, but the amount of VRAM on your GPU will limit how large the models can be before we have to overflow to the CPU.
If you are seeing different behavior when loading the same model, a likely explanation may be you have other applications running that are taking varying amount of VRAM.  You didn't mention what brand of GPU you are using, but if it's nvidia, you can use nvidia-smi to see the other apps running on the GPU.
If that doesn't clear it up, and you think there's a bug, please explain your scenario a little more and share your server log and I'll reopen the issue.

@janglichao can you clarify "sometimes"? Are you loading the same model and sometimes it loads 100% GPU and sometimes loads ~50/50 CPU/GPU, or are you loading different models? We'll try to load as much of the model into GPU as we can, but the amount of VRAM on your GPU will limit how large the models can be before we have to overflow to the CPU.
If you are seeing different behavior when loading the same model, a likely explanation may be you have other applications running that are taking varying amount of VRAM. You didn't mention what brand of GPU you are using, but if it's nvidia, you can use nvidia-smi to see the other apps running on the GPU.
If that doesn't clear it up, and you think there's a bug, please explain your scenario a little more and share your server log and I'll reopen the issue.

my gpu: v100*2,
model cost GPU:42GB
it's enough to load full model on gpu,sometimes it just load only on gpu 100%,but sometimes it just half on cpu and half on gpu,can I disable use cpu that force into run only on gpu?

@janglichao please share a server log when you see it only partially loading so I can see why it was unable to load.

请问可以设置仅用GPU吗，不考虑显存占用的情况，想要完全禁止CPU

ollama will use as much of the GPU as it can.  If you don't want to use CPU, only load models that will fit on the GPU.

@janglichao the behavior you're describing sounds like a bug, but without a server log, I can't tell what exactly is going wrong.
We don't currently offer a mechanism to force GPU only and fail the model load if it wont fit.

We also encountered this problem, where GPU/CPU mixing occurs when we have dual graphics cards. With the same resources and models, the old version of ollama (v0.1.41) is 100% GPU. So we went back to the old version.

0.2.0 introduced parallelism, which can increase resources.  There are settings to manage resource usage.

@rocymp can you share server logs from 0.1.41 and a recent version running the same model on the same system so we can see what the difference is?  If there's a bug we'd like to fix it, but without server logs it's hard to understand what might be wrong.

Is there not just a simple answer to this question?
Who cares if his model fits just how do you disable the CPU feature. I'd rather get an error than it running a test to see if it fit in the GPU or not.

num_gpu=999


UPDATE operation is missing a useful AdapterResponse

Describe the bug
When calling load_result() from a statement block connecting to a bigquery db, if the query is an UPDATE operation, we do not get an AdapterResponse on par with other DML operations.
Seems like it should be included here: https://github.com/dbt-labs/dbt-bigquery/blob/95ca84b5100c2b940751d8a65aaeb914df211ac7/dbt/adapters/bigquery/connections.py#L417
Moreover, what is the reason that SELECT statements do not also get a filled out AdapterResponse?
Steps To Reproduce
{% macro test_response_object() %}
{% call statement('test') %}
... UPDATE STATEMENT ...
{% endcall %}
{% set result = load_result('test') %}
{{ dbt_utils.log_info(result) }}
{% endmacro %}

From the command line:
dbt run-operation test_response_object
Result:
{'response': BigQueryAdapterResponse(_message='OK', code=None, rows_affected=None, bytes_processed=None), 'data': [], 'table': <agate.table.Table object at 0x114f1cd90>}

Expected behavior
BigQueryAdapterResponse field should be populated with values reported by the BigQuery API. Here is an example of what you get when you run a DELETE:
{'response': BigQueryAdapterResponse(_message='DELETE (1.0 rows, 352.5 KB processed)', code='DELETE', rows_affected=1, bytes_processed=360929), 'data': [], 'table': <agate.table.Table object at 0x1065e82b0>}

Screenshots and log output
If applicable, add screenshots or log output to help explain your problem.
System information
The output of dbt --version:
installed version: 0.21.0
   latest version: 0.21.0

Up to date!

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

The operating system you're using:
macOS v 11.6 (20G165)
The output of python --version:
Python 3.8.11

@rjh336 Thanks for opening the issue!
The reason these values are missing for SELECT + UPDATE statements is because we don't have logic to handle those statement types within execute:
https://github.com/dbt-labs/dbt-bigquery/blob/95ca84b5100c2b940751d8a65aaeb914df211ac7/dbt/adapters/bigquery/connections.py#L393-L432
We totally could! From a little poking around, I think:

UPDATE should be a simple addition to the conditional branch that includes ['INSERT', 'DELETE', 'MERGE']
SELECT needs its own new conditional branch, which might look something like:

        elif query_job.statement_type == 'SELECT':
            code = 'SELECT'
            bytes_processed = query_job.total_bytes_processed

            # these are internal properties, so we should be cautious
            # maybe more trouble than it's worth?
            if (
                hasattr(query_job, '_query_results')
                and hasattr(query_job._query_results, '_properties')
                and hasattr(query_job._query_results._properties, 'get')
            ):
                num_rows = query_job._query_results._properties.get('totalRows')

I'm going to mark this a good first issue, and I'd welcome a PR to add those in :)


Refactor build invocation to add new features

Previous implementation didn't allow to:

Run build without configuration (needed by NuGet Restore)
Specify build verbosity

In this commit the build invocation was rewritten to use FAKE function with wider MSBuild configuration. Additionally, now build verbosity and configuration could be configured via build parameters.

Merging this one without code review as per this agreement.


SublimeInfo not found

tests/CoalaCommandTest.py:3: in <module>
    from sublime_plugin_tests import framework
/usr/lib/python3.4/site-packages/sublime_plugin_tests/__init__.py:1: in <module>
    from .framework import TestCase
/usr/lib/python3.4/site-packages/sublime_plugin_tests/framework.py:6: in <module>
    from sublime_plugin_tests_base import Base
/usr/lib/python3.4/site-packages/sublime_plugin_tests_base/__init__.py:1: in <module>
    from .sublime_plugin_tests_base import Base
/usr/lib/python3.4/site-packages/sublime_plugin_tests_base/sublime_plugin_tests_base.py:10: in <module>
    from sublime_harness import Harness
/usr/lib/python3.4/site-packages/sublime_harness/__init__.py:1: in <module>
    from .sublime_harness import Harness
/usr/lib/python3.4/site-packages/sublime_harness/sublime_harness.py:8: in <module>
    import sublime_info
/usr/lib/python3.4/site-packages/sublime_info/__init__.py:2: in <module>
    from sublime_info import SublimeInfo
E   ImportError: cannot import name 'SublimeInfo'

I get the same error when doing import sublime_info  in shell:
$ python -c "import sublime_info"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.4/site-packages/sublime_info/__init__.py", line 2, in <module>
    from sublime_info import SublimeInfo
ImportError: cannot import name 'SublimeInfo'

I can find the class in /usr/lib/python3.4/site-packages/sublime_info/sublime_info.py - so, Im not sure why it's unable to find it. I believe some import mismatch because the directory and file names are same ?

Yea, strange. How did you install the package and what OS are you on?

As a heads up, there is also a framework by randy3k which was developed later and should have better cross platform support:
https://github.com/randy3k/UnitTesting

I installed it using pip and Im on arch linux based (antergos
distribution).
This is on python 3.x - as arch uses that by default
On Sun, Aug 2, 2015 at 12:37 PM, Todd Wolfson<EMAIL_ADDRESS>wrote:

As a heads up, there is also a framework by randy3k which was developed
later and should have better cross platform support:
https://github.com/randy3k/UnitTesting
—
Reply to this email directly or view it on GitHub
https://github.com/twolfson/sublime-plugin-tests/issues/32#issuecomment-126995750
.

Thanks for the info and quick reply =)
It looks like I never dealt with Python 3 support -_-;;
https://github.com/twolfson/sublime-plugin-tests/blob/1.0.4/.travis.yml#L4
Can you try creating a virtualenv on Python 2 and seeing if it works there?

Ah, I see. I'll do that sometime tomorrow and get back to you
-----Original Message-----
From: "Todd Wolfson"<EMAIL_ADDRESS>Sent: 02-08-2015 15:58
To: "twolfson/sublime-plugin-tests"<EMAIL_ADDRESS>Cc: "AbdealiJK"<EMAIL_ADDRESS>Subject: Re: [sublime-plugin-tests] SublimeInfo not found (#32)
Thanks for the info and quick reply =)
It looks like I never dealt with Python 3 support -_-;;
https://github.com/twolfson/sublime-plugin-tests/blob/1.0.4/.travis.yml#L4
Can you try creating a virtualenv on Python 2 and seeing if it works there?
—
Reply to this email directly or view it on GitHub.

Got some time so I tried it.
Yep - works fine in python 2.x
So, this becomes a duplicate of https://github.com/twolfson/sublime-plugin-tests/issues/26
Closing this - thanks :)

Ah, cool. Yea, sorry about the Python 3 support =(


Question: next video button

How can I enable the next video button

The next button is accessible only at the end of the a video. Also in the first press, you will have to grant the player access to the scope of folders you are using as the next button will only work in this scope.

The next button is accessible only at the end of the a video. Also in the first press, you will have to grant the player access to the scope of folders you are using as the next button will only work in this scope.

I think it'd be much more practical if a "next" and a "previous" button appeared when the opened video is in a folder that contains more videos. And they should appear whenever the touchscreen is tapped, not only when the video ends.
P.S. I've also reported an issue with the "delete" button not appearing (#422).

The next button is accessible only at the end of the a video. Also in the first press, you will have to grant the player access to the scope of folders you are using as the next button will only work in this scope.

Can you please tell me how I can give access to the scope of the folder? @moneytoo

Please push an update for the next/previous buttons to appear constantly. It's useless otherwise. Nobody watches the credits waiting for it to appear. The only solution now is to exit and manually open the next video. If not as a default option please enable something like Persistent next/previous buttons in the settings. I don't understand how a button that only appears at the end of the video is in any way functional.

Please update so that the Next/Previous buttons appear permanently. The button that appears at the end has little functionality. Thank you


Add support for batch subscriber updates

My app needs the ability to do batch updates on subscribers, so I took a stab at implementing a method that does this.

Looks good @blangenfeld Thanks!


Create Generic Templates

Create templates with title & text box in order to serve as a place holder for non-existent templates.  You should be able to link files and samples as normal.

Added generic templates for measurements, create samples, transformations and analysis. Also added a description field to all processes.


Relative paths starting with '../' are parsed incorrectly in join()

I'm submitting a bug report

Library Version:
1.1.1

Current behavior:
join('../other/app','/url')
// result: 'other/app/url'

Expected/desired behavior:
join('../other/app','/url')
// result: '../other/app/url'

When using parent path reference, join() removes the previous value from the path array. If the parent reference is at the start of the path, it gets removed and ignored:
https://github.com/aurelia/path/blob/1.1.1/src/index.js#L87-L88
This could be fixed by leaving the parent reference in the path if it is at the start of the path.

As you noted, a very simple fix. I'm not totally sure the implications of this change so plenty of good testing is needed. PRs welcome.

This will be fixed by #35.


Crash on Shield TV

Installed the OpenCommunity APK on a 2017 Shield TV with the latest 5.0.1 update and the application crashes immediately.
01-19 22:19:06.089 25012 25012 W System  : ClassLoader referenced unknown path: /data/app/news.androidtv.tvapprepo-1/lib/arm64
01-19 22:19:06.103 25012 25012 D FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
01-19 22:19:06.107 25012 25012 D FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
01-19 22:19:06.111 25012 25012 I FA      : App measurement is starting up, version: 10084
01-19 22:19:06.111 25012 25012 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
01-19 22:19:06.115 25012 25012 I FA      : To enable faster debug mode event logging run:
01-19 22:19:06.115 25012 25012 I FA      :   adb shell setprop debug.firebase.analytics.app news.androidtv.tvapprepo
01-19 22:19:06.122 25012 25012 I FirebaseInitProvider: FirebaseApp initialization successful
01-19 22:19:06.176 25012 25012 I CrashlyticsCore: Initializing Crashlytics <IP_ADDRESS>
01-19 22:19:06.185 25012 25012 I MainFragment: onCreate
01-19 22:19:06.198 25012 25012 D MainFragment: Get RepoDatabase instance
01-19 22:19:06.206 25012 25042 D NetworkSecurityConfig: No Network Security Config specified, using platform default
01-19 22:19:06.209 25012 25012 I DynamiteModule: Considering local module com.google.android.gms.firebase_database:4 and remote module com.google.android.gms.firebase_database:4
01-19 22:19:06.209 25012 25012 I DynamiteModule: Selected remote version of com.google.android.gms.firebase_database, version >= 4
01-19 22:19:06.214 25012 25012 W System  : ClassLoader referenced unknown path: /data/user/0/com.google.android.gms/app_chimera/m/00000006/n/arm64-v8a
01-19 22:19:06.223 25012 25012 D d       : Create new instance
01-19 22:19:06.269 25012 25012 D MainFragment: [ResolveInfo{e523280 com.nvidia.shield.welcome/.WebViewer m=0x108000}, ResolveInfo{362b0b9 mobi.mgeek.TunnyBrowser/.BrowserActivity m=0x108000}, ResolveInfo{af3ccfe com.android.documentsui/.LauncherActivity m=0x108000}, ResolveInfo{cb7dc5f com.nvidia.blakepairing/.BlakePairingLoadingActivity m=0x108000}, ResolveInfo{fe7f6ac com.nvidia.inputviewer/.MainActivity m=0x108000}, ResolveInfo{7f49f75 com.plexapp.mediaserver.smb/com.plexapp.mediaserver.MainActivity m=0x108000}]
01-19 22:19:06.296 25012 25012 D MainFragment: Get RepoDatabase instance
01-19 22:19:06.344 25012 25012 D MainFragment: [ResolveInfo{b809672 com.nvidia.shield.welcome/.WebViewer m=0x108000}, ResolveInfo{1c2fac3 mobi.mgeek.TunnyBrowser/.BrowserActivity m=0x108000}, ResolveInfo{e3e5f40 com.android.documentsui/.LauncherActivity m=0x108000}, ResolveInfo{d143e79 com.nvidia.blakepairing/.BlakePairingLoadingActivity m=0x108000}, ResolveInfo{73da7be com.nvidia.inputviewer/.MainActivity m=0x108000}, ResolveInfo{950801f com.plexapp.mediaserver.smb/com.plexapp.mediaserver.MainActivity m=0x108000}]
01-19 22:19:06.368 25012 25012 D phs:ipc-binder-client: phs: RegisterClient(): transact returned 0, NO_ERROR=0
01-19 22:19:06.368 25012 25012 D phs:ipc-binder-client: phs: RegisterClient() timeout is 5000
01-19 22:19:06.371   759   774 D RSMouse : mFeatureEnabled=true  mPackageEnabled=false
01-19 22:19:06.412 25012 25068 I OpenGLRenderer: Initialized EGL, version 1.4
01-19 22:19:06.412 25012 25068 D OpenGLRenderer: Swap behavior 2
01-19 22:19:06.417 25012 25012 D e       : ResolveInfo{b809672 com.nvidia.shield.welcome/.WebViewer m=0x108000}
01-19 22:19:06.417 25012 25012 D e       : com.nvidia.shield.welcome.WebViewer
01-19 22:19:06.417 25012 25012 D e       : Device Help
01-19 22:19:06.420 25012 25012 D e       : ResolveInfo{1c2fac3 mobi.mgeek.TunnyBrowser/.BrowserActivity m=0x108000}
01-19 22:19:06.420 25012 25012 D e       : mobi.mgeek.TunnyBrowser.BrowserActivity
01-19 22:19:06.420 25012 25012 D e       : Dolphin
01-19 22:19:06.422 25012 25012 D e       : ResolveInfo{e3e5f40 com.android.documentsui/.LauncherActivity m=0x108000}
01-19 22:19:06.422 25012 25012 D e       : com.android.documentsui.LauncherActivity
01-19 22:19:06.422 25012 25012 D e       : Documents
01-19 22:19:06.425 25012 25012 D e       : ResolveInfo{d143e79 com.nvidia.blakepairing/.BlakePairingLoadingActivity m=0x108000}
01-19 22:19:06.425 25012 25012 D e       : com.nvidia.blakepairing.BlakePairingLoadingActivity
01-19 22:19:06.425 25012 25012 D e       : SHIELD Controller
01-19 22:19:06.428 25012 25012 D e       : ResolveInfo{73da7be com.nvidia.inputviewer/.MainActivity m=0x108000}
01-19 22:19:06.428 25012 25012 D e       : com.nvidia.inputviewer.MainActivity
01-19 22:19:06.428 25012 25012 D e       : Input Viewer
01-19 22:19:06.431 25012 25012 D e       : ResolveInfo{950801f com.plexapp.mediaserver.smb/com.plexapp.mediaserver.MainActivity m=0x108000}
01-19 22:19:06.431 25012 25012 D e       : com.plexapp.mediaserver.MainActivity
01-19 22:19:06.431 25012 25012 D e       : Plex Media Server
01-19 22:19:06.566   693  1416 I WindowManager: Destroying surface Surface(name=com.google.android.leanbacklauncher/com.google.android.leanbacklauncher.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2016 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2087 com.android.server.wm.WindowManagerService.tryStartExitingAnimation:3058 com.android.server.wm.WindowManagerService.relayoutWindow:2938 com.android.server.wm.Session.relayout:216 android.view.IWindowSession$Stub.onTransact:286 com.android.server.wm.Session.onTransact:137
01-19 22:19:06.664   693   713 I ActivityManager: Displayed news.androidtv.tvapprepo/.activities.MainActivity: +606ms
01-19 22:19:06.671  1568  1568 D ViewRootImpl[MainActivity]: changeCanvasOpacity: opaque=false
01-19 22:19:06.672  1568  1568 D ViewRootImpl[MainActivity]: changeCanvasOpacity: opaque=false
01-19 22:19:06.754 25012 25012 D AndroidRuntime: Shutting down VM
01-19 22:19:06.779 25012 25012 E AndroidRuntime: FATAL EXCEPTION: main
01-19 22:19:06.779 25012 25012 E AndroidRuntime: Process: news.androidtv.tvapprepo, PID: 25012
01-19 22:19:06.779 25012 25012 E AndroidRuntime: com.google.firebase.database.c: No properties to serialize found on class news.androidtv.tvapprepo.b.a
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.lk$a.<init>(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.lk.a(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.lk.e(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.lk.b(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.lk.a(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.firebase.database.a.a(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at news.androidtv.tvapprepo.b.d$1.a(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.hy.a(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.iz.b(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.google.android.gms.b.jd$1.run(Unknown Source)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:751)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:95)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:154)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:6120)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
01-19 22:19:06.779 25012 25012 E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
01-19 22:19:06.780   693  1529 W ActivityManager:   Force finishing activity news.androidtv.tvapprepo/.activities.MainActivity```

@ikogan
please try the play store version instead...it worked for me on my shield tv.

That does indeed work, but I'm specifically looking to be able to use the Open Community repo that can't be included in the Play Store version.

Stack trace is here. Not too sure why this is happening on some devices, but it's a place to start.
Fatal Exception: com.google.firebase.database.c: No properties to serialize found on class news.androidtv.tvapprepo.b.a
   at com.google.android.gms.internal.zzbqi$zza.(Unknown Source)
   at com.google.android.gms.internal.zzbqi.zzaw(Unknown Source)
   at com.google.android.gms.internal.zzbqi.zzaz(Unknown Source)
   at com.google.android.gms.internal.zzbqi.zza(Unknown Source)
   at com.google.android.gms.internal.zzbqi.zzaw(Unknown Source)
   at com.google.firebase.database.DataSnapshot.getValue(Unknown Source)
   at news.androidtv.tvapprepo.model.RepoDatabase$1.onDataChange(Unknown Source)
   at com.google.android.gms.internal.zzbmz.zza(Unknown Source)
   at com.google.android.gms.internal.zzbnz.zzYj(Unknown Source)
   at com.google.android.gms.internal.zzboc$1.run(Unknown Source)
   at android.os.Handler.handleCallback(Handler.java:742)
   at android.os.Handler.dispatchMessage(Handler.java:97)
   at android.os.Looper.loop(Looper.java:148)
   at android.app.ActivityThread.main(ActivityThread.java:5482)
   at java.lang.reflect.Method.invoke(Method.java)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Clearing data doesn't seem to help. I noticed that when it first starts, it asks for permission to access storage and crashes at the same time. Could the inability to access storage due to permissions have anything to do with it?
Note that when I grant those permissions and open the app again, it keeps crashing.

@Fleker
Until I get my PC fixed...cant really helped at all...(Im using my shield TV & using google chrome dev)...whats the database used for?

Firebase stores the apps that can be sideloaded. It is easier to do that remotely than hardcoding the list.
As the feature is only in the community version, this is never called in the Play Store version.

@Fleker
You might want to look into null values trying to be parse in your code...so I will suggest to check your database & java code for any errors.

It has seemed to work on my devices, so there may be some caching happening on my end

I ran this in debug mode from Studio and it worked fine. Then I generated both an opencommunity and a "release" build. The opencommunity build crashes, the "release" build seems to work fine and gives me a list of installable apps.

Yes that is consistent with what others have reported.
On Jan 22, 2017 10:16 PM, "Ilya Kogan"<EMAIL_ADDRESS>wrote:

I ran this in debug mode from Studio and it worked fine. Then I generated
both an opencommunity and a "release" build. The opencommunity build
crashes, the "release" build seems to work fine and gives me a list of
installable apps.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ITVlab/TvAppRepo/issues/42#issuecomment-274389831,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADI58wuzzK5d994GkNc6aO8l9EIVSASkks5rVBumgaJpZM4Lo4OH
.

I cannot reproduce this error, so I don't know how to fix it

http://stackoverflow.com/questions/37743661/firebase-no-properties-to-serialize-found-on-class
Based on that, I'm still unsure. My POJOs have public getters/setters. One possible issue could be proguard deleting things, so I will apply the @Keep annotation and see whether that works in the next version (going up tonight)

Had worked perfectly on my shield tv, but hasn't since the android update to 7.0

@s2law which version are you using? Can you say what you were doing when the crash happens?

Just launching the app using the latest version from the playstore
On 25 Feb 2017 00:47, "Nick"<EMAIL_ADDRESS>wrote:

@s2law https://github.com/s2law which version are you using? Can you
say what you were doing when the crash happens?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ITVlab/TvAppRepo/issues/42#issuecomment-282444117,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AXk2bRSKq47aZ2XvwXnr-rO4PlrXNWRdks5rf3orgaJpZM4Lo4OH
.

Version code 6
Version name 1.0.3-playstore
I literally just launched the app and on every occasion it just crashes.

@s2law your app is out of date. It's received several fixes since. I have also fixed a few bugs this evening.

Shield TV with latest update (5.1) + TvAppRepo v1.0.6 = Still crashes
Even tried uninstalling the whole app, then install. Crashes right after it asks for permissions.

I got some intel that might help you iron out this bug: I think it's the youtuve phone app that crashes it, at least on my nVidia Shield TV. Here is what I did:

I uninstalled all shortcuts made by TVAppRepo and the TVAppRepo app.
Install latest latest TVAppRepo from play store.
Then I opened TVAppRepo, did not crash.
I started adding new shortcuts. Everything is cool, new shortcuts keep poppin' up.
Then I add youtube, the phone version. TVAppRepo crashes.
I remove youtube shortcut created by TVAppRepo. TVAppRepo does not crash anymore.

Does the app crash when you generate the shortcut, open the TV app repo, or
when you open the YouTube shortcut?
On Mon, Apr 3, 2017, 11:23 AM Olav Rønnestad Birkeland <
<EMAIL_ADDRESS>wrote:

I got some intel that might help you iron out this bug: I think it's the
youtuve phone app that crashes it, at least on my nVidia Shield TV. Here is
what I did:

I uninstalled all shortcuts made by TVAppRepo and the TVAppRepo app.
Install latest latest TVAppRepo from play store.
Then I opened TVAppRepo, did not crash.
I started adding new shortcuts. Everything is cool, new shortcuts
keep poppin' up.
Then I add youtube, the phone version. TVAppRepo crashes.
I remove youtube shortcut created by TVAppRepo. TVAppRepo does not
crash anymore.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ITVlab/TvAppRepo/issues/42#issuecomment-291176972,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADI58_v1W9Ixshoy7jdZwRZdGzB_8Ksxks5rsQ7ugaJpZM4Lo4OH
.

Just when youtube shortcut is generated it crashes, and will never open again.
MVH: Olav R. Birkeland

From: Nick<EMAIL_ADDRESS>Sent: Monday, April 3, 2017 6:06:43 PM
To: ITVlab/TvAppRepo
Cc: Olav Rønnestad Birkeland; Comment
Subject: Re: [ITVlab/TvAppRepo] Crash on Shield TV (#42)
Does the app crash when you generate the shortcut, open the TV app repo, or
when you open the YouTube shortcut?
On Mon, Apr 3, 2017, 11:23 AM Olav Rønnestad Birkeland <
<EMAIL_ADDRESS>wrote:

I got some intel that might help you iron out this bug: I think it's the
youtuve phone app that crashes it, at least on my nVidia Shield TV. Here is
what I did:

I uninstalled all shortcuts made by TVAppRepo and the TVAppRepo app.
Install latest latest TVAppRepo from play store.
Then I opened TVAppRepo, did not crash.
I started adding new shortcuts. Everything is cool, new shortcuts
keep poppin' up.
Then I add youtube, the phone version. TVAppRepo crashes.
I remove youtube shortcut created by TVAppRepo. TVAppRepo does not
crash anymore.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ITVlab/TvAppRepo/issues/42#issuecomment-291176972,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADI58_v1W9Ixshoy7jdZwRZdGzB_8Ksxks5rsQ7ugaJpZM4Lo4OH
.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/ITVlab/TvAppRepo/issues/42#issuecomment-291190127, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AGJriBJnWe65w8lK5-gHZJqYIK1kOQp6ks5rsRkTgaJpZM4Lo4OH.

I'll take a look at why that's happening.


[#1472][part-2] fix(server): Reuse ByteBuf when decoding shuffle blocks instead of reallocating it

What changes were proposed in this pull request?
Reuse ByteBuf when decoding shuffle blocks instead of reallocating it
Why are the changes needed?
A sub PR for: https://github.com/apache/incubator-uniffle/pull/1519
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing UTs.

After stress testing the shuffle server without this PR, we will easily encounter OutOfDirectMemoryError, which means this PR is necessary.
[epollEventLoopGroup-3-45] [WARN] TransportChannelHandler.exceptionCaught - Exception in connection from /<IP_ADDRESS>:58767
io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 4194304 byte(s) of direct memory (used:<PHONE_NUMBER>00, max:<PHONE_NUMBER>00)
at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:843)
at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:772)
at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:710)
at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:685)
at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:212)
at io.netty.buffer.PoolArena.tcacheAllocateNormal(PoolArena.java:194)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:136)
at io.netty.buffer.PoolArena.allocate(PoolArena.java:126)
at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:397)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188)
at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179)
at org.apache.uniffle.common.netty.protocol.Decoders.decodeShuffleBlockInfo(Decoders.java:50)
at org.apache.uniffle.common.netty.protocol.SendShuffleDataRequest.decodePartitionData(SendShuffleDataRequest.java:95)
at org.apache.uniffle.common.netty.protocol.SendShuffleDataRequest.decode(SendShuffleDataRequest.java:107)
at org.apache.uniffle.common.netty.protocol.Message.decode(Message.java:145)
at org.apache.uniffle.common.netty.TransportFrameDecoder.channelRead(TransportFrameDecoder.java:77)
We can see that each time an out-of-direct-memory error occurs, it is caused by the code org.apache.uniffle.common.netty.protocol.Decoders.decodeShuffleBlockInfo(Decoders.java:50). This is the most direct trigger for insufficient direct memory.
Because when a large number of requests arrive simultaneously, there might be a brief period (before the TransportFrameDecoder has a chance to release) during which the shuffle server has double the created ByteBuf. This means, for a very short time, the direct memory usage is doubled, which is extremely uncontrollable.
That is why it is very easy to cause an out-of-direct-memory error without this PR.
So, we need this PR anyway. We might slow down the flushing process a little bit(from the results of my tests, there doesn't seem to be any impact on performance.), but the shuffle server will at least remain available during the whole stress test.
Maybe we should prioritize ensuring availability first, and then consider deeper performance optimization later on?
WDYT? @jerqi

I reopened this PR.
After stress testing the shuffle server without this PR, we will easily encounter OutOfDirectMemoryError, which means this PR is necessary.
[epollEventLoopGroup-3-45] [WARN] TransportChannelHandler.exceptionCaught - Exception in connection from /<IP_ADDRESS>:58767 io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 4194304 byte(s) of direct memory (used:<PHONE_NUMBER>00, max:<PHONE_NUMBER>00) at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:843) at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:772) at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:710) at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:685) at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:212) at io.netty.buffer.PoolArena.tcacheAllocateNormal(PoolArena.java:194) at io.netty.buffer.PoolArena.allocate(PoolArena.java:136) at io.netty.buffer.PoolArena.allocate(PoolArena.java:126) at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:397) at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188) at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179) at org.apache.uniffle.common.netty.protocol.Decoders.decodeShuffleBlockInfo(Decoders.java:50) at org.apache.uniffle.common.netty.protocol.SendShuffleDataRequest.decodePartitionData(SendShuffleDataRequest.java:95) at org.apache.uniffle.common.netty.protocol.SendShuffleDataRequest.decode(SendShuffleDataRequest.java:107) at org.apache.uniffle.common.netty.protocol.Message.decode(Message.java:145) at org.apache.uniffle.common.netty.TransportFrameDecoder.channelRead(TransportFrameDecoder.java:77)
We can see that each time an out-of-direct-memory error occurs, it is caused by the code org.apache.uniffle.common.netty.protocol.Decoders.decodeShuffleBlockInfo(Decoders.java:50), which is ByteBuf data = NettyUtils.getNettyBufferAllocator().directBuffer(dataLength). This is the most direct trigger for insufficient direct memory.
Because when a large number of requests arrive simultaneously, there might be a brief period (before the TransportFrameDecoder has a chance to release the ByteBuf) during which the shuffle server has double the created ByteBuf. This means, for a very short time, the direct memory usage is doubled, which is extremely uncontrollable. That is why it is very easy to cause an out-of-direct-memory error without this PR.
So, we need this PR anyway. It might slow down the flushing process a little bit, but the shuffle server will at least remain available during the whole stress test.
From the results of my stress tests, there doesn't seem to be any impact on performance. In fact, it may even be faster, as it can speed up the decoding process by not reallocating new ByteBufs on the other hand. There have been no anomalies or performance issues caused by the slowing down of the flushing process. Eventually, all these buffers will be flushed, and all ByteBufs will be successfully released, with no memory leaks.
PTAL @jerqi

Maybe we should modify our flush strategy, too. Now we will flush a larger reduce partition. But if the map partition contains a smaller reduce partition. The memory won't be released, too.

I prefer add a config option for this improvement.

I prefer adding a config option for this improvement.

I reopened this PR.
After stress testing the shuffle server without this PR, we will easily encounter OutOfDirectMemoryError, which means this PR is necessary.
[epollEventLoopGroup-3-45] [WARN] TransportChannelHandler.exceptionCaught - Exception in connection from /<IP_ADDRESS>:58767 io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 4194304 byte(s) of direct memory (used:<PHONE_NUMBER>00, max:<PHONE_NUMBER>00) at io.netty.util.internal.PlatformDependent.incrementMemoryCounter(PlatformDependent.java:843) at io.netty.util.internal.PlatformDependent.allocateDirectNoCleaner(PlatformDependent.java:772) at io.netty.buffer.PoolArena$DirectArena.allocateDirect(PoolArena.java:710) at io.netty.buffer.PoolArena$DirectArena.newChunk(PoolArena.java:685) at io.netty.buffer.PoolArena.allocateNormal(PoolArena.java:212) at io.netty.buffer.PoolArena.tcacheAllocateNormal(PoolArena.java:194) at io.netty.buffer.PoolArena.allocate(PoolArena.java:136) at io.netty.buffer.PoolArena.allocate(PoolArena.java:126) at io.netty.buffer.PooledByteBufAllocator.newDirectBuffer(PooledByteBufAllocator.java:397) at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:188) at io.netty.buffer.AbstractByteBufAllocator.directBuffer(AbstractByteBufAllocator.java:179) at org.apache.uniffle.common.netty.protocol.Decoders.decodeShuffleBlockInfo(Decoders.java:50) at org.apache.uniffle.common.netty.protocol.SendShuffleDataRequest.decodePartitionData(SendShuffleDataRequest.java:95) at org.apache.uniffle.common.netty.protocol.SendShuffleDataRequest.decode(SendShuffleDataRequest.java:107) at org.apache.uniffle.common.netty.protocol.Message.decode(Message.java:145) at org.apache.uniffle.common.netty.TransportFrameDecoder.channelRead(TransportFrameDecoder.java:77)
We can see that each time an out-of-direct-memory error occurs, it is caused by the code org.apache.uniffle.common.netty.protocol.Decoders.decodeShuffleBlockInfo(Decoders.java:50), which is ByteBuf data = NettyUtils.getNettyBufferAllocator().directBuffer(dataLength). This is the most direct trigger for insufficient direct memory.
Because when a large number of requests arrive simultaneously, there might be a brief period (before the TransportFrameDecoder has a chance to release the ByteBuf) during which the shuffle server has double the created ByteBuf. This means, for a very short time, the direct memory usage is doubled, which is extremely uncontrollable. That is why it is very easy to cause an out-of-direct-memory error without this PR.
So, we need this PR anyway. It might slow down the flushing process a little bit, but the shuffle server will at least remain available during the whole stress test.
From the results of my stress tests, there doesn't seem to be any impact on performance. In fact, it may even be faster, as it can speed up the decoding process by not reallocating new ByteBufs on the other hand. There have been no anomalies or performance issues caused by the slowing down of the flushing process. Eventually, all these buffers will be flushed, and all ByteBufs will be successfully released, with no memory leaks.
PTAL @jerqi

Maybe we should modify our flush strategy, too. Now we will flush a larger reduce partition. But if the map partition contains a smaller reduce partition. The memory won't be released, too.

Flushing strategy will be changed in the final PR.

I prefer adding a config option for this improvement.

This is not an improvement, it is actually a bug. Because the shuffle server won't be available during stress testing.
If it is an improvement, I think we may need a config?


[Feature]: Support import.meta.resolve + Node Specific Meta Values

What problem does this feature solve?
Node recently added support for the following (currently in RC status):

import.meta.dirname (https://nodejs.org/api/esm.html#importmetadirname)
import.meta.filename (https://nodejs.org/api/esm.html#importmetafilename)
import.meta.resolve (https://nodejs.org/api/esm.html#importmetaresolvespecifier)

As webpack + rspack already handle import.meta.url, I feel like it wouldn't be too much of a stretch to support these?
Currently in rspack:

import.meta.dirname is replaced by /* unsupported import.meta.dirname */ undefined
import.meta.filename is replaced by /* unsupported import.meta.filename */ undefined
import.meta.resolve is replaced by ({}).resolve

I'm not sure how webpack handles this today, but it might be worth aligning with the webpack team regardless? And even if we can't support these (in the short term or long term), should the built no error/warn if these are encountered?
What does the proposed API of configuration look like?
I guess maybe node.__filename and node.__dirname could impact these (see https://rspack.dev/config/node), or new options could be added (either generic node.filename and node.dirname properties that handle both CJS and ESM, or a new node.import property just for ESM)?

Bump


Fix file names

The file names are atrocious! There is a lot of misleading stuff like "OldPlayer.png", when it's actually the image being currently used. There needs to be a coherent file structure and naming system!

Commit baec6c670285ec77e41aeb123e06bea13981df90 is a first step toward fixing this issue.

With commits a1a4818c9e19ad113e66099355242cd9d5ceee95 and baec6c670285ec77e41aeb123e06bea13981df90, this issue has been fixed to a satisfactory degree.


Text doesn't  get highlighted when pasting in erb

Description
text highlight doesn't work when pasting.
I encounter this when I edit erb file.
Steps to Reproduce

copy this text (<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>)
(I don't know why this code affect. other code using erb syntax e.g <%= link_to ...> doesn't seem to matter)
paste it to some erb file.(e.g application.html.erb)
the paseted text doesn't get highlighted.(still remains light-gray)

Expected behavior:
the pasted text get highlighted.
Actual behavior:
remains plain gray text.
Reproduces how often:
always.
Versions

Atom    : 1.47.0
Electron: 5.0.13
Chrome  : 73.0.3683.121
Node    : 12.0.0
apm  2.4.5
npm  6.2.0
node 10.2.1 x64
atom 1.47.0
python 2.7.16
git 2.26.2
mac OS Catalina 10.15.4
Additional Information
This was reproduced in atom safe mode, and in addition, when I reload the buffer with revert-buffer package(  in state that the problem is happening), the whole text get gray-plain.
If I turn the tree-sitter-parser off in settings, these problems disappear, but I use it in other file. Thanks.

I've had the same sort of problem with the Multi-Highlight-Selected Package since 1.48.0. It will now only highlight one word as opposed to multiple. I am certain this has to do with the multiple cursors disabled feature being added. Because it never affected it before that.