Add constraint to reduce option strategy cost

What are you trying to do?
I am interested in a married put option strategy for my portfolio. However, I would like to keep the option premium at a minimum for my portfolio. How can I add a constraint so that the existing efficient frontier portfolio selection is also taking into account the corresponding put option costs for each ticker?
For example- for my pre-selected strikes, I have downloaded the corresponding put option prices separately for each ticker in 'put_option_prices' pandra core series.
Would something like this work?
ef.add_constraint(lambda w: w @ put_option_prices <= 0.5)
What data are you using?
S&P 500 universe.
Example:
put_option_prices
Out[1]:
AAPL    4.20
GE      0.31
MSFT    5.10
dtype: float64

@linda390 This depends on what exactly your objectives and constraints are.

"I would like to keep the option premium at a minimum for my portfolio"

For example, the above objective is satisfied by not buying any options.
If you have a constraint that no more than x% of the portfolio value is to be spent on options, then the snippet you've provided should work.

Thanks. The 0.5 was just an arbitrary value I selected for the sake of illustration.
My constraint is not that less than x% of the portfolio is to be spent on option. It is that whatever % of the portfolio is spent on options, it also factors in the option price and not just the annual returns.

I apologize for being a bother. Could you kindly assist me in what would be the best way to implement this?
Thank you so very much.

Thanks. Given that I am interested in a married put option strategy, buying the corresponding options is a must.

Indeed, I was just illustrating that minimising the option premium would result in that solution, unless you specified adequate constraints.
I'm happy to have a go at formulating your problem in PyPortfolioOpt, but you need to be very precise in specifying your objective and constraints (preferably with a simple example on a reduced universe of 3-4 stocks).

Sure. Here are my my objectives and constraints:
ef = EfficientFrontier(averageAnnualReturn, covariance)

ef.add_sector_constraints(sector_mapper, sector_lower, sector_upper)
ef.add_constraint(lambda w: w @ mu_other >= 0.10) <[Feature Request # 159]:(https://github.com/robertmartin8/PyPortfolioOpt/issues/159)>

ef.efficient_risk(target_volatility=0.14);

ef.clean_weights()

I have downloaded the options prices per contract separately in 'put_option_prices' panda series separately. Example:
put_option_prices
Out[1]:
AAPL    4.20
GE      0.31
MSFT    5.10
...

I would like to include an additional constraint so that when assigning weightage within the efficient frontier, I'm also taking into account the corresponding put option price for each ticker. The net weightage that is assigned should not only maximize the expected annual return, it should also attempt to minimize the cost that would be associated if I were to buy the corresponding number of put options for each ticker.
(For the sake of this example, you can assume that the weightage that is assigned is already either 100 or in multiples of 100, so there is no mismatch between the assigned allocations and the number of option contract underlying shares required.)

taking into account the corresponding put option price for each ticker.

This is the part that you needs to be stated mathematically.

it should also attempt to minimize the cost that would be associated if I were to buy the corresponding number of put options

What is the "corresponding number of put options"?

@linda390 Interesting problem. If you don't mind, I have some questions about the general idea and assumptions of the optimization.
I don't have much experience with married put strategies, but it seems a married put is very similar to an ATM call (minus pricing, stock ownership, taxation, ... differences). Could it be modeled in that way?
The returns of such an option are (by definition) asymmetric. Do you think mean-variance is enough to accurately describe the return distribution? I think adding options to classical mean-variance optimization is quite tricky in general.
Quite possibly, just using the expected returns of the underlying and later "adding" the puts will not result in an "ideal" portfolio. If you have any resources, it would be awesome if you could share them.

@robertmartin8 -
x = total amount of funds to be allocated
x = A*[Ticker1] + B*[Ticker2] + C*[Ticker3] + ....
where A, B, C are the quantities assigned to Ticker1, Ticker2, Ticker3, respectively.
expected annual return of x = max(expected annual returns of x for given volatility) - min(ATicker1OptionPrice  + BTicker2OptionPrice + C*Ticker3OptionPrice + ...)
Ticker1OptionPrice, Ticker2OptionPrice, Ticker3OptionPrice are picked up from 'put_option_prices' panda series, where each ticker is assigned a price per 100 contracts.
I apologize if this isn't clear enough in mathematical terms.

it seems a married put is very similar to an ATM call (minus pricing, stock ownership, taxation, ... differences). Could it be modeled in that way?
Correct.

The returns of such an option are (by definition) asymmetric. Do you think mean-variance is enough to accurately describe the return distribution?
I do.

I think adding options to classical mean-variance optimization is quite tricky in general.
I agree.

If you have any resources, it would be awesome if you could share them.
Unfortunately, don't have additional resources. This is a strategy I've come up with.

Thank you

@linda390
I apologise if I'm misunderstanding, but you should just be able to ef.add_objective with a dot product between the weights and the option prices.
Inputs
> mu
AAPL    0.273617
AMZN    0.319276
MSFT    0.179663

> S
                AAPL	   AMZN 	             MSFT
AAPL	0.206056	0.046379	0.054299
AMZN	0.046379	0.202369	0.042293
MSFT	0.054299	0.042293	0.101783

I'm going to assume that you are providing the option prices per dollar allocation to a security. e.g below, for every $100 allocated to AAPL, you need to spend $41 on options:
> option_prices

AAPL    0.41
AMZN    0.26
MSFT    0.29
dtype: float64

Optimising option cost
We now define a function to calculate the total cost of options given a portfolio value (e.g $10000 allocation)
def option_cost(w, option_prices, portfolio_value, k=1):
    """
    w - weights
    option_prices - pd.series of prices
    portfolio_value - float
    k - scaling parameter (float). Needed if calling this as an objective
    """
    return k* portfolio_value * (w @ option_prices)

First run an optimisation for a $10k portfolio and calculate option cost:
ef = EfficientFrontier(mu, S)
ef.efficient_risk(0.35)
option_cost(ef.weights, option_prices, 10000)  # 3187

This allocation cost us $3187 in options. Let's say we only have a $3000 budget for options. We can add this as a constraint:
ef = EfficientFrontier(mu, S)
ef.add_constraint(lambda w: option_cost(w, option_prices, 10000) <= 3000)
ef.efficient_risk(0.35)

option_cost(ef.weights, option_prices, 10000) # 3000

Alternatively, you can add this as an objective term (like you specified in your last message), though you will have to experiment with different scalings since option cost is measured in dollars while expected returns/risks are measured in percentages.
ef = EfficientFrontier(mu, S)
ef.add_objective(option_cost, option_prices=option_prices, portfolio_value=10000, k=1/10000)
ef.efficient_risk(0.35)

option_cost(ef.weights, option_prices, 10000) # 2696

Hope this helps!

@robertmartin8
This was very helpful, and it has gotten me very close!
(I'm actually providing the option prices per contract- for example if the strike for AAPL is 121, I'm providing a put option price of 2.3, which would then be multiplied by 100 because each options contract must cover 100 shares. But I can work with your solution).

ef = EfficientFrontier(mu, S)
ef.add_constraint(lambda w: option_cost(w, option_prices, 10000) <= 3000)
ef.efficient_risk(0.35)

option_cost(ef.weights, option_prices, 10000) # 3000

Apologies  if I didn't understand this clearly- when using the constraint for the option_cost function, I can pass in the weights ('w') before I have set the target volatility I want?

@linda390
Yup, you add constraints before you call the optimisation method (e.g min_volatility, efficient_risk etc).
These are passed as anonymous (lambda) functions, so actually w is just a dummy variable representing the vector of weights (but it isn't actually the vector of weights).
In effect, you are telling the optimiser that "when you compute my weights, make sure they satisfy this function".
Two illustrations of this anonymous function behaviour:
ef = EfficientFrontier(mu, S)
# Can use a different variable name: it's just a placeholder
ef.add_constraint(lambda x: x[0] <= 0.1)  # 0th weight has to be less than 0.1
ef.min_volatility()

# Or you can define a function and pass the function
def my_constraint(weight_vector):
    return weight_vector[1] + weight_vector[2] <= 0.4

ef = EfficientFrontier(mu, S)
ef.add_constraint(my_constraint)
ef.efficient_risk(0.3)

Best,
Robert

@robertmartin8
Hmm. I'm not sure if this is working quite the way I want it to.
A couple of things might be causing issues:

It is impossible for me to have a put option for every single allocation in my portfolio (given constraints on a minimum of 100 underlying shares required for each options contract). Therefore, I can not know in advance how much of my portfolio will be spent on options and cannot specify an exact portfolio_value in option_cost. Put options are meant as insurance for your portfolio to protect your downside risk, and I can only hope that I get at least 90% insurance coverage for my portfolio (with the residual 'uninsured' percentage being shares that did not meet minimum 100 shares criteria).

Because not all of my portfolio will be spent on options, I cannot specify the option_prices in option_cost for the 'ineligible tickers. This will cause a mismatch when applying the efficient frontier constraint because the size of the tickers in the efficient frontier and option_prices are not aligned. To get around this, I have put in an option_prices value of 0 for tickers which will not be spent on options, but not sure if that is the correct way to do it.

@linda390 It sounds like quite a complex problem, and I'm not sure I'm able to help much more beyond what I've suggested. Here are some misc comments:

You will be able to optimise this as long as you can define a (convex) my_constraint function(s) in the example above, that accepts weights and returns the constraint. I tend to believe that writing your precise constraints in plain English is a good first step before translating it into python.
Dealing with the minimum 100 lots thing is very difficult, because you enter the world of mixed-integer programs (i.e there is a discrete yes or no condition involved). It is possible to solve these using PyPortfolioOpt/cvxpy, but it tends to require non-obvious variable substitutions. You may be able to adapt the code from this issue.
Regarding your second point, I would probably do what you did. However, you can also hard-code indices if you'd prefer:

def option_cost(w, option_prices, portfolio_value):
    return portfolio_value * (w[0] * option_prices[0] + w[9] * option_prices[1] * w[5] + option_prices[2])
    ```

That's fair. I will keep chipping away. I may have separate related questions (on convex constraints, etc.) as I work through it that I may branch off into separate threads.
Thank you again for your excellent work on this module, and the time that you put in to answer my questions.


Issue no- #193 - Create maximum_area_histogram.cpp

No description provided.

add issue number to pr heading

Yeah Done!

pull request merged, now please close the issue :)
follow for more such repo to contribute
note- only 2 pr are accepted per day on a same repo


Specify the needs for satellite pages

If we decide to go with the multiple instances approach, we need to make all languages dynamic in both our web app and studio. Languages could be added from either the Studio itself (sounds more complicated but editors could add support to new languages themselves), or as an environment variable (sounds less complicated to start with but requires a dev to add/remove new languages)
I could list the following files as containing any sort of reference to hardcoded langs that would need refactoring:
Web app

Studio

I've been promised a document 😄 Where can I find it? Perhaps link to this issue @adneforslund @fernandolucchesi

https://github.com/equinor/energyvision/blob/main/multisite.md


Add configurable Livy session timeout by passing metadata

Problem:
While doing long running jobs on Dataproc cluster a session is being halted after one hour (default Livy session timeout)
Solution:
Add configurable Livy session timeout by adding timeout value by passing it in metadata values. Default value stays the same (1h)

Thank you for the contribution!


UAV flying but falling through ground

@faithfaf How did you launch the new drone to fly it around? (i.e. not the old quadcopter)  On each of the levels, when I hit play, it still was the airsim quadcopter

@Cybower I have a FaithFlyingMap (or similar name) that I used. I switch out the StaticMesh for our UAV and it works.


Grpc change for network options in service spec

Service command is being updated to accept network
specfic options like name,alias and driver options.The
commit contains changes to grpc service api and adopting
the same in task attachment
Signed-off-by: Abhinandan Prativadi<EMAIL_ADDRESS>

I see that some unrelated generated .pb.go files are being changed. Are you running Go 1.7.x? I think other versions of go generate these files differently.

@aaronlehmann I believe the changes are due to the ripple effect due to the changes in the NetworkAttachmentConfig since its being used in other messages directly or embedded via another message ? I am using go1.8

We're using Go 1.7 right now, but we'll probably switch to Go 1.8 within a day or two when Docker switches over. If the PR can wait until then, the problem with inconsistent protobuf generation should go away.

@aaronlehmann generated from a vm with go1.7. PTAL

@abhinandanpb: Thanks.

@aaronlehmann @abhinandanpb moby/moby is updated to go1.8.1. Can you please get this PR reviewed ? This PR is the base dependency on https://github.com/moby/moby/pull/33130 and https://github.com/docker/cli/pull/62

LGTM
I was hoping to get "Driver options" in the comment changed to DriverOpts to be consistent with the other comments, and to remove the tabs on empty lines, but I don't want to hold this up over that.

@aaronlehmann addressed all comments. PTAL.

Still LGTM, thanks

ping @aluzzardi @stevvooe @aboch PTAL

LGTM

How will consumers of this field no which driver these options are valid for?

Effectively, I think that the DriverOpts need to be namespaced by driver or included with a driver structure.
It also needs to be clarified that this is parameterizing the attachment to a network and not the network itself.

@stevvooe this field is used in conjunction with network (https://github.com/docker/cli/pull/62) and is not an independent field. Each network is backed by one and  only driver and hence the driver-opt for a given service is that network/driver specific.
am not sure if that answers your question. Please let me know.

@mavenugo Are they parameterizing the creation of a network or the attachment to a network? Right now, from the field documentation on the protobuf, this is not clear in the way these are intended to be used.

okay. I found the documentation okay because // Map of all the driver options for this network was written inside of NetworkAttachment object and hence contextually it can make sense. But if you think we should better comment it, I will let @abhinandanpb make it more descriptive.

@mavenugo That comment is misleading. They are the options for attaching to the network. The network is already created and the options are already specified when it was created. In that sense, it doesn't really make sense contextually, as these cannot parameterize a driver because it has already been created.
Should these be called DriverAttachmentOpts or something like that?

@stevvooe yes. the DriverAttachmentOpts makes it clear.
@abhinandanpb wdyt ?


yarn: 1.0.1 -> 1.2.1

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[x] Fits CONTRIBUTING.md.

As far as I can tell yarn is already at 1.2.1 in master. Is the changed node parameter necessary for 1.2.1?

I must've missed it. I guess it's safe to close this PR in that case. The
nodejs change must not be necessary as it's not in master which I suppose
works anyways. My mistake.
On Thu, Oct 19, 2017 at 4:26 PM, Robert Helgesson<EMAIL_ADDRESS>wrote:

As far as I can tell yarn is already at 1.2.1 in master. Is the changed
node parameter necessary for 1.2.1?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/30578#issuecomment-337924663, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAUeLhoMQQu6Ei3Ho-3SHaanDyBZMCZUks5st1wEgaJpZM4P_Lr_
.

Ok no problems, I'll close this PR :-)


zod schemas

const dbTables = {
...
}

export const db = orchidORM(database, dbTables)

export function getSchema<N extends keyof typeof dbTables>(name: N) {
  const table = dbTables[name] as typeof dbTables[N]
  const inputSchema = (table).inputSchema()

  return {
    input: inputSchema,
    query: inputSchema.partial().partial().optional(),
    update: inputSchema.partial(),
  }
}

I'm doing this,
as where input is for create,
update is for update,
query is for "where".
All the type hints are correct.
but I'm getting runtime error
 ERROR  [nitro] [uncaughtException] Cannot read properties of undefined (reading 'optional')

  at node_modules/zod/lib/index.mjs:2626:45
  at Array.forEach (<anonymous>)
  at ZodObject.partial (node_modules/zod/lib/index.mjs:2620:37)
  at <anonymous> (server/trpc/routers/design/category.ts:7:51)
  at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
  at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
  at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)

I guess it's no longer relevant after solving https://github.com/romeerez/orchid-orm/issues/305?

If this still bothers, feel free to re-open with more details.


Global variables are not detected

The global variables are not detected, whereas they are detected by the Epitech norme.

Added in the version 1.21.


Wrapping of classes and structs

Although there is no documented example of a class being wrapped (only structs are used for some reason), I found that it's possible to do the same to classes.
For example, the class below works fine.
Is there any reason for the overt preference for structs in the documentation?

class PyPoint {
private:
    float x;
    float y;

public:
    PY_CLASS(PyPoint, test, PyPoint)

    PyPoint(float x, float y) : x(x), y(y) {}

    static void _register(VM* vm, PyObject* mod, PyObject* type){
        vm->bind_constructor<3>(type, [](VM* vm, ArgsView args){
            float x = CAST_F(args[1]);
            float y = CAST_F(args[2]);
            return VAR_T(PyPoint, x, y);
        });
        vm->bind_method<0>(type, "__repr__", [](VM* vm, ArgsView args){
            PyPoint& self = CAST(PyPoint&, args[0]);
            std::stringstream ss;
            ss << "PyPoint(" << self.x << ", " << self.y << ")";
            return VAR(ss.str());
        });
    }
};

In c++, class and struct are the same except for the default visibility settings.

In c++, class and struct are the same except for the default visibility settings.

Thanks, yes I was aware of that, but was just curious why there were no examples of classes being wrapped.


"LNK1107 invalid or corrupt file" error when running example

Hello. I've been wrestling with FFmpeg for a while now. There seems to be little documentation, tutorials, or examples. So this addon looks very helpful.
Trying to run the example, I get the following linker error:
Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK1107	invalid or corrupt file: cannot read at 0x3D8	ofxAvCodecExample	D:\oF\of_v0.9.8_vs_release\addons\ofxAvCodec\libs\avcodec\lib\vs\Win32\avcodec-57.dll	1
I'm using the downloaded binaries from this repo. I'm not sure how to fix the error. Do the binaries need to be rebuilt?
Thanks.

is it possible you're linking to the dll files instead of the lib files?

Ah, yes. You're correct. The downloaded binaries have both the DLL and lib files in them, so the oF Project Generator added the DLLs to Linker->Input->Additional Dependencies. It works now.
Thanks for putting in the effort on this.

glad you got it to work :)


typo in view.fit

view.fit had a typo where the variable geometry was used instead of geometryOrExtent.

@DaniEll-AT  Extents have already been identified by if (Array.isArray(geometryOrExtent)) { so geometryOrExtent in the else block will always be a geometry.


Integration with Cucumber?

I tried using formulaic in my Cucumber steps:
fill_form(:resume, FactoryGirl.attributes_for(:resume))
Getting
undefined method `fill_form' for #Cucumber::Rails::World:0x007f8351584630 (NoMethodError)
Is Cucumber supported at all? If not, will it be supported?

You probably need to include Formulaic::Dsl in World.


Electron debugging doesn't work anymore since the new update

Today I have run the new update of visual studio code and since then the debugger of electron does not work any more and get the same error message I got before installing Version 1.17. Version 1.17 solved that issue but now 1.18 brought it again. It is a disaster!! Can't I downgrade my version of visual studio code?

VSCode Version: Code 1.18.1 (929bacba01ef658b873545e26034d1a8067445e9, 2017-11-16T18:32:36.023Z)
OS Version: Windows_NT x64 6.3.9600
Extensions:

Extension
Author (truncated)
Version

MagicPython
mag
1.0.12

python
ms-
0.8.0

debugger-for-chrome
msj
3.5.0

python
tht
0.2.3

python-extended-snippets
tus
0.0.1

Steps to Reproduce:

Reproduces without extensions: Yes/No

@MbProg How does your launch.json config look and what Electron version are you trying to target?
You seen our Electron debugging recipe? https://github.com/Microsoft/vscode-recipes/tree/master/Electron

Thanks for the quick answer. I am using exactly the same launch.json that is used in the link you sent.
Now I am getting the following error message:
Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED <IP_ADDRESS>:48793).

What version of Electron are you using?
And please see https://github.com/Microsoft/vscode/issues/30105

Thanks. Now it works. I had to change the launch.json which was in the link and set the "protocol" attribute to "legacy" instead of "inspector" as described in this thread.
But thanks. Now it is working.

Glad to you it working, and thanks for opening an issue.


Killing Hyprland v0.25.0 makes it SEGFAULT

$sbj. Unfortunately, I can't follow the issue guidelines at the moment, but I figured that it's better to record at least something instead of procrastinating on it…
STR
For me, it is triggered by a killall Hyprland, done from Kitty running under Hyprland. Hyprland itself was invoked from a TTY (by just invoking /usr/bin/Hyprland without going through a dbus session), so I wasn't able to make a proper screenshot. I'm still evaluating this software and can't switch from my normal setup to testing it often. But I did notice that the last lines post crash seemed like libseat/seatd errors.
Expected outcome
No segfault, graceful termination in response to SIGTERM.
Observation
SIGSEGV happens.
Other notes
There's a crash entry in coredumpctl but no log under ~/.hyprland for that PID. It's not compiled in debug mode, so no coredump either :( I'll figure out how to set that up in the future, hopefully.
My copy of Hyprland is coming from a Gentoo ebuild that is available in the portage tree: https://gitweb.gentoo.org/repo/gentoo.git/tree/gui-wm/hyprland/hyprland-0.25.0.ebuild. It doesn't apply any patches with the USE-flags I have selected, but obviously is not a build from the main branch. Specifically, this is how it's installed:
$ eix -I gui-wm/hyprland
[I] gui-wm/hyprland
     Available versions:  (~)0.25.0 {X legacy-renderer systemd VIDEO_CARDS="nvidia"}
     Installed versions:  0.25.0(01:32:07 AM 05/17/2023)(X systemd -legacy-renderer VIDEO_CARDS="-nvidia")
     Homepage:            https://github.com/hyprwm/Hyprland/releases
     Description:         A dynamic tiling Wayland compositor that doesn't sacrifice on its looks

P.S. Apparently, there's a wiki page now — https://wiki.gentoo.org/wiki/Hyprland, but it doesn't mention this problem.

I get segfault with this log on another trial I don't know if it's related:
--------------------------------------------
   Hyprland Crash Report
--------------------------------------------
I hope you didn't have any unsaved progress.

Hyprland received signal 11 (Segmentation fault)

Version: a2bb95fc60c717c873eff273f5ee035e622565d0

System info:
	System name: Linux
	Node name: arch
	Release: 6.3.4-arch1-1
	Version: #1 SMP PREEMPT_DYNAMIC Wed, 24 May 2023 17:44:00 +0000

GPU:
	03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [1002:1636] (rev c1) (prog-if 00 [VGA controller])

os-release:
	NAME="Arch Linux"
	PRETTY_NAME="Arch Linux"
	ID=arch
	BUILD_ID=rolling
	ANSI_COLOR="38;2;23;147;209"
	HOME_URL="https://archlinux.org/"
	DOCUMENTATION_URL="https://wiki.archlinux.org/"
	SUPPORT_URL="https://bbs.archlinux.org/"
	BUG_REPORT_URL="https://bugs.archlinux.org/"
	PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
	LOGO=archlinux-logo

Backtrace:
	#0 | Hyprland(_ZN13CrashReporter18createAndSaveCrashEi+0x7e4) [0x55b3736f1834]
		??
		??:0
	#1 | Hyprland(_Z25handleUnrecoverableSignali+0x44) [0x55b3736873c4]
		??
		??:0
	#2 | /usr/lib/libc.so.6(+0x39ab0) [0x7ffb9a62aab0]
		??
		??:0
	#3 | Hyprland(_ZN13CHyprRenderer28renderAllClientsForWorkspaceEP8CMonitorP10CWorkspaceP8timespecRK8Vector2DRKf+0xc3) [0x55b3737b2d43]
		??
		??:0
	#4 | Hyprland(_ZN13CHyprRenderer15renderWorkspaceEP8CMonitorP10CWorkspaceP8timespecRK7wlr_box+0x10c) [0x55b3737b3b0c]
		??
		??:0
	#5 | Hyprland(_ZN13CHyprRenderer13renderMonitorEP8CMonitor+0x52f) [0x55b3737b408f]
		??
		??:0
	#6 | Hyprland(_Z13handleWrappedP11wl_listenerPv+0x40) [0x55b37372fe50]
		??
		??:0
	#7 | /usr/lib/libwayland-server.so.0(wl_signal_emit_mutable+0x7e) [0x7ffb9af0001e]
		??
		??:0
	#8 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch_idle+0x23) [0x7ffb9af01a23]
		??
		??:0
	#9 | /usr/lib/libwayland-server.so.0(wl_event_loop_dispatch+0xfd) [0x7ffb9af01b3d]
		??
		??:0
	#10 | /usr/lib/libwayland-server.so.0(wl_display_run+0x27) [0x7ffb9af022d7]
		??
		??:0
	#11 | Hyprland(main+0x4cf) [0x55b37367750f]
		??
		??:0
	#12 | /usr/lib/libc.so.6(+0x23850) [0x7ffb9a614850]
		??
		??:0
	#13 | /usr/lib/libc.so.6(__libc_start_main+0x8a) [0x7ffb9a61490a]
		??
		??:0
	#14 | Hyprland(_start+0x25) [0x55b373687265]
		??
		??:0

Log tail:
[LOG] Callback 55b375bb0e68 -> 55b375bb0e60, XDG Window Late removed.
[LOG] Callback 55b375bb0e00 -> 55b375bb0df8, XDG Window Late removed.
[LOG] Callback 55b375bb0d98 -> 55b375bb0d90, XDG Window Late removed.
[LOG] Callback 55b375bb0cc8 -> 55b375bb0cc0, XDG Window Late removed.
[LOG] Callback 55b375bb0c60 -> 55b375bb0c58, XDG Window removed.
[LOG] Callback 55b375bb0bf8 -> 55b375bb0bf0, CWindow removed.
[LOG] Callback 55b375bb0b90 -> 55b375bb0b88, XDG Window removed.
[LOG] Callback 55b375bb0b28 -> 55b375bb0b20, XDG Window Late removed.
[LOG] Monitor eDP-1 -> destroyed all render data
[LOG] LayerSurface 55b375c8a650 unmapped
[WARN] Suppressed (ignoreevents true / shutting down) event of type closelayer, content: waybar
[WARN] Layersurface unmapping on invalid monitor (removed?) ignoring.
[LOG] LayerSurface 55b375c8a650 destroyed
[WARN] Layersurface destroyed on an invalid monitor (removed?)
[LOG] Callback 55b375c8a9f8 -> 55b375c8a9f0, layerSurface removed.
[LOG] Callback 55b375c8a8c0 -> 55b375c8a8b8, layerSurface removed.
[LOG] Callback 55b375c8a928 -> 55b375c8a920, layerSurface removed.
[LOG] Callback 55b375c8a990 -> 55b375c8a988, layerSurface removed.
[LOG] Callback 55b375c8aa60 -> 55b375c8aa58, layerSurface removed.
[LOG] Callback 55b375c8a840 -> 55b375c8a838, CWLSurface removed.
[LOG] CWLSurface 55b375c8a810 called destroy()
[LOG] Callback 55b37525e788 -> 55b37525e780, IMERelay removed.
[LOG] Callback 55b37525e720 -> 55b37525e718, IMERelay removed.
[LOG] Callback 55b37525e7f0 -> 55b37525e7e8, IMERelay removed.
[LOG] Callback 55b37525e858 -> 55b37525e850, IMERelay removed.
[LOG] Callback 55b375bffbc8 -> 55b375bffbc0, IME Keyboard Grab removed.
[LOG] IME Destroy
[LOG] Registered signal for owner 55b375d02440: 55b375cd11f8 -> 55b375d025f8 (owner: TextInput)
[LOG] Callback 55b375c1a538 -> 55b375c1a530, Keyboard removed.
[LOG] Callback 55b375c1a400 -> 55b375c1a3f8, Keyboard removed.
[LOG] Callback 55b375c1a468 -> 55b375c1a460, Keyboard removed.
[LOG] Callback 55b375c1a4d0 -> 55b375c1a4c8, Keyboard removed.
[LOG] Destroyed keyboard 55b375c1a3d0
[LOG] Subsurface Node 55b375cfb2b0 destroyed
[LOG] Callback 55b375cfb3b8 -> 55b375cfb3b0, SurfaceTreeNode removed.
[LOG] Callback 55b375cfb350 -> 55b375cfb348, SurfaceTreeNode removed.
[LOG] Callback 55b375cfb420 -> 55b375cfb418, SurfaceTreeNode removed.
[LOG] Callback 55b375d02620 -> 55b375d02618, TextInput removed.
[LOG] Subsurface Node 55b375bdd9f0 destroyed
[LOG] Callback 55b375bddaf8 -> 55b375bddaf0, SurfaceTreeNode removed.
[LOG] Callback 55b375bdda90 -> 55b375bdda88, SurfaceTreeNode removed.
[LOG] Callback 55b375bddb60 -> 55b375bddb58, SurfaceTreeNode removed.
[LOG] Fading out a non-existent LS??
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Framebuffer created, status 36053
[LOG] Allocated texture for BGTex
[LOG] Background created for monitor eDP-1
[LOG] Shaders initialized successfully.

@glyh on killall or just randomly?

random.

I also encountered this problem

is this still a thing ??

I haven't had a chance to check again in a while, but last time I did, the issue still existed, I think.

I'm marking this as stale for the time being. Please verify if this issue persists on the latest release/commit and let me know, and I'll update hte labels.

closing, stale


Model: Run user callbacks before history and logger

This allows user callbacks to generate and store extra accuracy statistics on the validation set, like MRR/MAP for ranking tasks.
I'm not sure if this is the best solution, even though it doesn't seem to break anything here.

This is in conflict with https://github.com/fchollet/keras/pull/1683/files
Thoughts on which we should merge (if any)?

Adding custom metrics/statistics with callbacks is needed, but having an average loss metric available at on_epoch_end() (not just val_loss) is also useful. I haven't stumbled upon this, because I was using an alternative history-like callback CSVHistory (closed PR #1684).
Solutions for both:

History callback should be split into two parts, one for computing average metrics on_epoch_end() (before user callbacks) and the other for keeping track of history and totals metrics on_batch_*() (after user callbacks)
models.py should handle computing average metrics generated per batch by Keras (loss, acc), this means moving the totals computation out of History callback and into models.py

I'm not actually using the History for anything but my custom metrics, but it makes sense to me that it's probably not necessary to enforce the current structure of the History callback and I like the outlined solution.
So, perhaps the smoothest option would be to merge this and update #1683 to rather move the averages computation outside of the callbacks.  But I don't want to forcefully preempt this :) - @gw0, would that make sense to you?

@pasky, sure. @fchollet which variant do you prefer - split History callback into two parts or average computation in models.py?

This is fixed by moving metrics averages computation to BaseLogger, and moving History and ProgbarLogger to the end of the callbacks list.


lang: put init_if_needed behind feature flag

actually, seems like theres still some discussion on this in the discord so this should not be implemented yet

discussed offline. We are going to put this behind a flag


Inconsistent Examples

The examples have the operator as -OperationId. The Parameters has it as -Identity. Using the latest pre-release of the module seems to have neither as accepted.

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

ID: 44ec2119-d178-b9f8-3199-481ecd84eea3
Version Independent ID: 6e814ba4-7680-12b5-10ee-f7c71865cd71
Content: Get-CsBatchPolicyAssignmentOperation (MicrosoftTeamsPowerShell)
Content Source: teams/teams-ps/teams/Get-CsBatchPolicyAssignmentOperation.md
Service: teams-powershell
GitHub Login: @tomkau
Microsoft Alias: tomkau

Hello @JAK1047 how are you? Hope you are doing ok
OperationId is an alias of Identity, that is detailed in the parameter for -Identity
I could verify what you say that in 1.1.11-preview both parameters have been removed, however, the documentation will reflect the behavior of the General Availability module, once this change is merged into the GA version we will update the article.
Thank you!

Ok so the documentation is more for what it will reflect in final release rather than the current state?

Ok so the documentation is more for what it will reflect in final release rather than the current state?

The GA module still uses Identity (and OperationId), the General availability module is the current production-ready module of Teams PowerShell, for more information on the difference see here https://docs.microsoft.com/en-us/microsoftteams/teams-powershell-overview please.


Mention that custom not managed API is needed

For the process in this page to work important to mention that Managed Identity is only available for non Managed API at the moment, otherwise its very confusing.

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

ID: 02967960-dd13-28be-5b9b-2896a9f8dda9
Version Independent ID: 41c26d0b-3508-edde-cbde-1650355e57dd
Content: Securing authentication secrets in Azure Key Vault
Content Source: articles/static-web-apps/key-vault-secrets.md
Service: static-web-apps
GitHub Login: @craigshoemaker
Microsoft Alias: cshoe

@lenisha Thanks for your feedback! We will investigate and update as appropriate.

@lenisha Thanks again for the feedback! Could you please elaborate your query, If you are receiving any error? To help you better on this.

@lenisha Since we didn't here from you. We will close this out but if you feel you need more information please just let us know.


Integration was working fine, but suddenly stopped working.

Hello there,
I'm building a connection between my Rails app and Notion. I finished it 2 days ago and it worked as intended for ~24h... then stopped working:

I can successfully establish a new Notion API client with client = Notion::Client.new(token: '<secret Notion API token>')
Yes, my API key is fresh, Yes, my workspace is connected, Yes the database is shared.
When I call a Notion page NOTION_CLIENT.page(page_id: NOTION_ARTICLE_ID) the process just start buts blocks. I have no response, no error, and it never times out.
I tried creating another Integration, with fresh api key, etc., but no changes
Notion API status says it's all fine.
Does anyone has any idea of what I could be doing wrong?

Hello Jules, I unfortunately have no idea what could be the cause here—the fact that it worked, and then didn’t, is puzzling.
Here are a few experiments that could help zero in on the root cause:

If you use the same API token and page ID in a separate environment (the bin/console command in this repo, or an online environment like Replit), does it work?
If you restart the Rails server, does it work again? And if so, does it stop working again after some time?
Is the Rails app successfully making 3rd party API calls when the Notion ones fail?

I’d be happy to pair on this if that helps—you know where to reach out!


Narrowing unions of interfaces with intradependent property types

Bug Report
Type narrowing doesn't behave as I expect it would for a union of interfaces where one property type is mapped directly to another property type. If this is not a bug, I would love to understand how I can better type this use case because it appears valid to me.
🔎 Search Terms
enum, union, type, interface, property, never, error, validation, gating, narrowing, 4.7.4, strict
🕗 Version & Regression Information
Bug appears in v4.7.4 (used in my context) through latest next version today.
⏯ Playground Link
Playground link with relevant code
💻 Code
enum FooKeys {
  BAR = 'bar',
  BAZ = 'baz'
}

interface Bar {
  key: FooKeys.BAR;
  value: string;
}

interface Baz {
  key: FooKeys.BAZ;
  value: number;
}

type Foo = Bar | Baz;

interface FooBar {
  bar: Bar['value'],
  baz: Baz['value'],
  opts: Foo[]
}

class FooBar implements FooBar {
  bar = 'abc';
  baz = 123;
  opts: Foo[] = [{
    key: FooKeys.BAR,
    value: 'def'
  },
  {
    key: FooKeys.BAZ,
    value: 456
  }
  ];

  constructor(){ }

  foobar(): void {
    this.opts.forEach(({ key, value }) => {
      // Throws error:
      // Type 'string | number' is not assignable to type 'never'.
      // Type 'string' is not assignable to type 'never'.
      this[key] = value;
    });
  }
}

🙁 Actual behavior
The Foo properties of value and key are not narrowed relative to each other despite being constituents of discrete types where they are directly related.
🙂 Expected behavior
I would expect that typing an object as Foo would enforce the relationship between the key and value properties. This is because the Foo union is not an any to any relationship of its constituent interfaces' properties. Each interface has a type for the key which maps directly to a type for the value. These relationships are enforced at the time of initializing opts: Foo[] but that same reasoning seems to not apply when narrowing and gating the Foo objects.

Duplicate of #35873 and/or #30581.

I've a similar usecase where a boolean property directly determines whether or not another property is either a valid enum value or null:
TS-Playground
enum InvalidReason {
  ERROR_1,
  ERROR_2,
}

interface EvaluatedDayBase {
  day: string;
  isValid: boolean;
  invalidReason: InvalidReason | null;
}

interface ValidEvaluatedDay extends EvaluatedDayBase {
  isValid: true;
  invalidReason: null;
}

interface InvalidEvaluatedDay extends EvaluatedDayBase {
  isValid: false;
  invalidReason: InvalidReason;
}

type EvaluatedDay = ValidEvaluatedDay | InvalidEvaluatedDay;

function getEvaluatedDay(): EvaluatedDay {
  let error: InvalidReason | null = null;

  // Types of property 'isValid' are incompatible. Type 'boolean' is not assignable to type 'false'.(2322)
  // with isValid = true and invalidReason = null, I would expect Typescript to see this as `ValidEvaluatedDay`
  return {
    day: '2022-10-31',
    isValid: error === null,
    invalidReason: error,
  };

  // below code works as expected though
  /* return {
    day: '2022-10-31',
    ...(error === null ? { isValid: true, invalidReason: null } : { isValid: false, invalidReason: error }),
  }; */
}


Update zio to 1.0.0-RC11

Updates dev.zio:zio from 1.0.0-RC8-4 to 1.0.0-RC11.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention @scala-steward in the comments below.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [{ groupId = "dev.zio", artifactId = "zio" }]

labels: semver-pre-release

Superseded by #234


Show HDD stats in UI

Hi,
due to the fact that Config-Ui-X is the central point ...
Would it be possible to add also HDD like RAM in the overview? Total Used Free?
Thanks!

Thanks for the suggestion. This has been raised here: https://github.com/oznu/homebridge-config-ui-x/issues/199


parse note flags from headers

analog to #14 but for note headers

I don't know if genanki even supports flags, the Note ctor does not mention them

I don't know if genanki even supports flags, the Note ctor does not mention them

I don't know if genanki even supports flags, the Note ctor does not mention them

I don't know if genanki even supports flags, the Note ctor does not mention them


Welcome Page

As an unauthenticated user, I would like to be greeted and prompted to sign in.
AC:

Upon navigating to wombats.io as an unauthenticated user, display welcome page to the user (according to designs)
The only clickable element is the CTA prompting the user to sign-in
Clicking "Start Playing Now" triggers the Github auth workflow
Successful authentication returns the user to the "My Wombats" screen
Background is a video of the arena (provided by Jesse)

Zeplin:
https://zpl.io/ZfEFBw
Out of Scope:
Onboarding experience will go into v2 (or v3)

Hey @BinLiuWTA, figured I'd assign this to you. Feel free to update the ticket with any progress/questions!

Thanks !
On Feb 10, 2017 9:01 AM, "C.P. Dehli"<EMAIL_ADDRESS>wrote:

Hey @BinLiuWTA https://github.com/BinLiuWTA, figured I'd assign this to
you. Feel free to update the ticket with any progress/questions!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/willowtreeapps/wombats-web-client/issues/98#issuecomment-278948484,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV_RMDRDRG966lk_ha5hzPzGZGfkRwrHks5rbG3GgaJpZM4L7ZDt
.

Note - @jesseprehodick requested that the background be a video - @BinLiuWTA  will need a video asset (.png or .mpg sequence) in order to complete this ticket. Updating AC accordingly.

Hey @BinLiuWTA we'd like to ultimately have a dynamic background, but if you are working on this now, a placeholder static image should be fine. Let me know if you need  more information.
@dehli eventually could help you hook in the actual arena to display that in the background to make sure it always matches the latest design.

Hi Morgan,
I didn't do much last week on this ticket, barely have env setup for it. I
have a high priority ticket for marketing related to willowtree website
today, I will dive in more tonight on this issue. Will that be OK? Sorry
about the slow progress!!!
Bin
On Mon, Feb 13, 2017 at 1:39 PM, Morgan Edmonds<EMAIL_ADDRESS>wrote:

Hey @BinLiuWTA https://github.com/BinLiuWTA we'd like to ultimately
have a dynamic background, but if you are working on this now, a
placeholder static image should be fine. Let me know if you need more
information.
@dehli https://github.com/dehli eventually could help you hook in the
actual arena to display that in the background to make sure it always
matches the latest design.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/willowtreeapps/wombats-web-client/issues/98#issuecomment-279481659,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV_RMCkD5JU_d2_TsAUMEM5a-IRTx9exks5rcKNegaJpZM4L7ZDt
.

Hey @BinLiuWTA, ya that's fine! Feel free to work on this whenever you get around to it. If you'd like some help getting stuff setup make sure you reach out to one of us!

Thanks! CP!!
Bin
On Mon, Feb 13, 2017 at 2:21 PM, C.P. Dehli<EMAIL_ADDRESS>wrote:

Hey @BinLiuWTA https://github.com/BinLiuWTA, ya that's fine! Feel free
to work on this whenever you get around to it. If you'd like some help
getting stuff setup make sure you reach out to one of us!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/willowtreeapps/wombats-web-client/issues/98#issuecomment-279493891,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AV_RMAWXTLTZkQT7yrmZim2FGZyu-QArks5rcK0rgaJpZM4L7ZDt
.

@BinLiuWTA @emilyseibert I'm not seeing the landing page in QA, should I be?

it's on my qa, weird

@emilyseibert hmmm ok i'm seeing it in incognito, i'll do some more testing and see if i can figure out a pattern.

@morganedmonds auth bug - i have a fix and will get that into qa

Ok update - I had to clear my browsing data in Chrome to see it, even after logging out of Github and restarting my browser.
@emilyseibert thanks!


fix: update to eye v10.30.9

fix: update to eye v10.30.9

:tada: This PR is included in version 17.0.7 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v17.0.7

Your semantic-release bot :package::rocket:


Add magic for signed Ubiquiti end headers

More modern Ubiquiti devices use signed firmware with a different end header.
This PR adds support for the new signed end headers.
The new header start with the string "ENDS" which is followed by a 2048 bit
RSA sha1 signature.

@TobleMiner can you please provide link to a firmware image with this signature in it? Thanks.

@eacmen Here you go https://dl.ubnt.com/firmwares/XC-fw/v8.5.0/WA.v<IP_ADDRESS>727.180118.1314.bin

@TobleMiner thanks for the link. Also thank you for the PR!


JEI cannot find wireless grid model

Issue description:
When I tried to make an addon to RS, JEI is giving me this error:
[JEI]: Couldn't get ItemModel for Refined Storage itemStack 1xitem.refinedstorage:wireless_grid@0 refinedstorage:wireless_grid
What happens:
When I run the runClient task on my gradlew I get this error:
[JEI]: Couldn't get ItemModel for Refined Storage itemStack 1xitem.refinedstorage:wireless_grid@0 refinedstorage:wireless_grid
What you expected to happen:
No errors with anything
Steps to reproduce:

Create new forge project
Add RS, JEI, and MCMultiPart as mods, and RS as a dependency
Run the runClient task on gradlew
Open the inventory

Version (Make sure you are on the latest version before reporting):

Minecraft: 1.10.2
Forge: <IP_ADDRESS>1
Refined Storage: 0.9.4

Does this issue occur on a server? N/A
If a (crash)log is relevant for this issue, link it here:
N/A

UPDATE: I found, when you scroll down in any inventory to see the Wireless Grid, the client crashes. I have a crashlog here: Link. The steps to reproduce are the same, but you just scroll down in the RS creative inventory tab. My versions for forge are the latest version(Not recommended anymore), and the RS version is 1.0(I compiled it myself)

Can't reproduce, you probably did something wrong while setting up an RS instance


add casb_findings to allowed list of logpush datasets

The casb_findings logpush dataset is not currently supported by the cloudflare_logpush_job resource. This PR adds support for this dataset type.
The console support this, and I have also tested with the /client/v4/accounts/{account_identifier}/logpush/jobs endpoint to double check the API supports this
Docs about this logpush dataset can be found here: https://developers.cloudflare.com/logs/reference/log-fields/account/casb_findings/
I have not raised an issue for this, as it seems fairly minor - happy to do so if requested.

LGTM, thanks!


Neuvector can't scan JFrog container Registry (OpenSource).

Environment
Platform: OpenShift 4.8.39
Kubernetes/Platform Version(s): v1.21.8+ed4d8fd
Describe the bug
I have setup our JFrog Container Registry on the OpenShift platform. I have provided credentials to our JFrog Container Registry.
When I click on "Test Setting" and "Start Test", In the step_content "manifests", neuvector reads all the manifests from repository.catalog but when reading each manifest individually failing.
I'm attaching the partial output of the errors to the issue.
To Reproduce
Steps to reproduce the behavior:

Setup JFrog Container Registry in Neuvector.
Click on "Test Setting"
Click on "Start Test"
Scroll down to see the error.

Expected behavior
The images should be queued and scanned.
Instead of looking for manifests in https:///v2///manifests/, it should be looking at https:///v2////manifest.json.
Screenshots
N/A
UI Issue
Desktop (please complete the following information):**

OS: Windows 10
Browser Chrome
Version [e.g. 22]

Additional context
Add any other context about the problem here.
neuvector-jfrog-scan-error.txt

I think I'm seeing the same thing – the tests seem to work but all scans are failing. I'm using Harbor as the registry.


Fix advanced host and port config issues in Docker and change email configuration

Improve flexibility frontend port for Docker, fix issue #1605, streamlined app configuration.

Great teamwork! Thanks!
Closes #1605


admin role removed

I know that this problem was discussed before and I tried several solutions but none worked for me. This problem occurs every time I edit my admin profile and like the other the role_id is set to NULL, so each time I edit the profile, I have to go change the id_role in phpMyadmin.
So is there a fix ?
Thanks.

This should be an issue, not a PR... also, this has already been fixed (#3014) and is pending a new release


Sensors sequence received by fusion module is uncertain.

System information

OS Platform and Distribution (e.g., Linux Ubuntu 18.04):Linux Ubuntu 18.04
Apollo installed from (source or binary):source
Apollo version (3.5, 5.0, 5.5, 6.0):3.5

Steps to reproduce the issue:
When I run "cyber_recorder play", I print the timestamp of sensors which send message to perception fusion modules. I noticed that the sequence of sensors is uncertain. Why it occurs? How to ensure "cyber _recorder play" can replay the same sequence as "cyber _recorder record"?
(Sensors timestamp sequences comparing after running two times)
Supporting materials (screenshots, command lines, code/script snippets):

At the beginning of  ObstacleMultiSensorFusion::Process()add code:
std::ofstream outfile("/apollo/data/timestamp", std::ios::app);
outfile << frame->sensor_info.name <<": " << std::to_string(frame->timestamp) << std::endl;
outfile.close();

Yes, the problem is that order is wrong.

It seems to be related to the coroutine scheduling, not sure whether it can be kept in order

It's not a problem. The replayer can't guarentee that the consumers can received the right data at the right time. so, you can put the every input sensor sample data when you cooking these data and put them into the resulat data's header. when you replay , you can found what the real data be fiiled at that time.

In general, we can't fully control the timing, which is related to the system scheduling, but this may not have a great impact because the time is short


Chapters reorganization

Hi @0ptim, I made first proposal of grouping the chapters (pages) to more logical scheme, but it is just from my point of view. So let me know what do you think about it. The recently discussed split of Invest & Trade page is included and I think, that it was a good idea ;-).   Looking forward to your feedback!

Hi @Honzan9
I very much like it. Way better than before.
Great work! Is it ready for merge?

Hi @0ptim, I'm glad you like it. I think there remains some work before merge. At least make only one page for DEX. I wana go through each group now and if it will be possible I wana add/remove pages, that I think that should be or not in current state of content.

Great! So, will mark your Pull Request as draft.
You can create PRs as draft to let other people look at what you did and get feedback, but clearly communicate that it is not yet ready to be merged.
=> https://www.youtube.com/watch?v=l0Lw_zPX4TA

Ok, I will do it next time like a draft ;-)

Hi @Honzan9 I very much like it. Way better than before.
I think Investing_Trading.md is no longer needed, right? Attention: The page is linked from other pages:

Yes, as we agreed that the split version of I&T page is better, it is no longer needed. I'll remove it in the next commit and also will adjust the links.

Hey @0ptim, I went through the content and there is a lot of work yet :-D I think that the right way now is to update the pages one by one in each of main groups/chapters. I've already started on the DEX content (new PR).
So the current state of this PR (after my last commit) is IMO ready to review and merge.

Hey @Honzan9
Great! I'll take a look as soon as I get time. In the meantime, I'll convert this draft PR to a normal PR. For the next time you can do this too to signal me, that the PR is ready to be reviewed and merged. 😊

Hi @0ptim, "package.json" corrected.


Add workaround for D line shuttle diversions

Asana Ticket: Shuttles | Manually adjust data for Green Line weekday shuttles
This may look like it's doing more work than it needs to, but the idea was to make TripsHack a clean drop-in replacement for V3Api.Trips, making it as easy as possible to delete it later, even if the rest of the code changes in the meantime.
Tagging @handorff for optional review 🙂

Testing this with just ["Green"] as a route ID (causing all green line routes to be requested), and a date that is one of the dates_to_correct, I get these shapes:
Riverside - Newton Highlands
Newton Highlands - Kenmore
Kenmore - Government Center
Government Center - Kenmore
Kenmore - Newton Highlands
Newton Highlands - Riverside

Boston College - Park Street
Park Street - Boston College

Cleveland Circle - Lechmere
Cleveland Circle - North Station
Lechmere - Cleveland Circle
North Station - Cleveland Circle

Heath Street - Lechmere
Lechmere - Heath Street
Government Center - Heath Street

This appears to correctly include the normal shapes for the B, C, and E lines, and the diverted shapes for the D line. (I admittedly wasn't expecting more than two shapes for each of the non-diverted lines, but this should work fine with our map anyway)


forms.tsx in Example: Next.js on AWS with SST

In this demo, I was getting an error with the linter. It was working fine in local dev, but I was getting an issue with the deployment to production using this line:
npx sst deploy --stage production
Error:
./components/form.tsx
12:22  Error: Optional chain expressions can return undefined by design - using a non-null assertion is unsafe and wrong.  @typescript-eslint/no-non-null-asserted-optional-chain

info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
node:internal/errors:984
  const err = new Error(message);

I updated the form.tsx with a few file checks to fix that issue to be able to djeploy:
"use client";

import styles from "./form.module.css";

export default function Form({ url }: { url: string }) {
  return (
    <form
      className={styles.form}
      onSubmit={async (e) => {
        e.preventDefault();

        const fileInput = (e.target as HTMLFormElement).file;
        const file = fileInput.files?.[0];

        if (!file) {
          alert("No file selected");
          return;
        }

        const image = await fetch(url, {
          body: file,
          method: "PUT",
          headers: {
            "Content-Type": file.type,
            "Content-Disposition": `attachment; filename="${file.name}"`,
          },
        });

        window.location.href = image.url.split("?")[0];
      }}
    >
      <input name="file" type="file" accept="image/png, image/jpeg" />
      <button type="submit">Upload</button>
    </form>
  );
}

I think the example I created uses the default and that did not include ESLint. Did you happen to enable it?

I followed the guide pretty closely and accepted the defaults as instructed.
ESLint is selected as the default in the current create-next-app
Perhaps the default values have changed (or changed in the version I'm using)?

npx create-next-app@latest aws-nextjs
Need to install the following packages:
<EMAIL_ADDRESS>Ok to proceed? (y) y

? Would you like to use TypeScript? » No / Yes
? Would you like to use ESLint? » No / Yes
√ Would you like to use Tailwind CSS? ... No / Yes
√ Would you like to use src/ directory? ... No / Yes
√ Would you like to use App Router? (recommended) ... No / Yes
√ Would you like to customize the default import alias (@/*)? ... No / Yes
Creating a new Next.js app in C:\Users...
Using npm.
Initializing project with template: app-tw
Installing dependencies:
Installing devDependencies:
Anyway, it's just minor install frictions - hoping to make it easier for others. Thanks for responding and really appreciate the work you guys do.

I fixed the lint warning.
Though when I run create next app, it doesn't show me ESLint as a default.


missing uuid in esp_gatt_defs.h (IDFGH-1014)

I think you missed Automation IO service UUID 0x1815 https://www.bluetooth.com/specifications/gatt/services I can't find it in file it would be very good if it's added there
Thanks

@mohamed-elsabagh ,  I will add it ! Thanks for your reminder.

Thanks so much, I really appreciate your hard work and amazing esp32 keep up the good work


add additional logos

added additional icons/logos to data

Great! I'm thinking of making a separate folder that is not uploaded with the data folder. That way I can include all user-made logos in the repository but not have them all uploaded to the SPIFFS by default. For now it is not a lot of data, but it the future it might become too much. Also the list of logos will become pretty big.

That is a lot! Nice. I however don't think I can add all of those to the repository. Might run in to licensing issues. Or I should say, I do not want to run in to issues. I have to check how I can include them or maybe otherwise just link to them somewhere...


Does LLaMA-Factory support TGI(Text Generation Inference) framework for inference

Reminder

[X] I have read the README and searched the existing issues.

Reproduction
请问微调后的模型支持tgi推理吗
Expected behavior
No response
System Info
No response
Others
No response

合并 LoRA 后可以放入 TGI 内推理


Unable to open winafl.sln

how to Open the Solution in Visual Studio Navigate to your build directory and open winafl.sln.

WinAFL.sln won't be generated unless DynamoRIO_DIR is specified. Please see the README for build instructions.
Note: winafl can work without DynamoRIO, but then one of the other modes (e.g. -DTINYINST=1) needs to be specified during build. In that case also WinAFL.sln won't be generated, but afl-fuzz.sln (or whatever .sln file is generated) can be used instead.

@ifratric I was trying to get bin32 and bin 64 for winAFL and got this error. Your guidance on this will be highly appreciated.


Revert "Downgrade tj-actions/changed-files from v45 to v44 for temporary fix"

Reverts ProjectPythia/cookbook-actions#119
Since this wasn't the culprit, we might want to change it back to the original version?

dependabot was faster than us and created the PR #121 to do this yesterday, which I've already merged. You can close this PR.


OSD-12750 Set security group ID in status

Observed a bug where the security group ID was never getting populated in the CR's status if the controller didn't create the security group (possible during operator upgrades when a CR gets handed off from one controller to the next).
Also adding a log line for an improved debugging experience when viewing the controller logs.

Codecov Report

Merging #41 (e18a5f2) into main (dbc5c64) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
- Coverage   38.00%   37.91%   -0.09%
==========================================
  Files          20       20
  Lines         921      923       +2
==========================================
  Hits          350      350
- Misses        537      539       +2
  Partials       34       34

Impacted Files
Coverage Δ

controllers/vpcendpoint/validation.go
0.00% <0.00%> (ø)

/lgtm


Transition from dc elements to dc terms namespace

Wim originally chose the (more constrained) dc elements namespace for formalisation of bibliographic properties in the CE schema. We are now bumping into the limitations of the 15 elements included therein; e.g. there exists a way to capture a generic "date", but not to differentiate between a "date created", a "date submitted", or a "date modified", which is emerging as a requirement.
Given that the 15 elements are mirrored in the terms namespace, I propose a wholesale shift to dc terms from dc elements to avoid confusion. N.b. this comes with a side effect of greater semantic precision (dc terms specifies ranges for its descriptors), which also means that we would have to associate some additionalTypes with base schema.org classes -- e.g., schema:Persons will need to have additionalType dcterms:Agent to fulfil the requirements of dcterms:creator and dcterms:contributor.
For now, I propose that we shift the existing 15 elements to their terms equivalents, and introduce dcterms:created, dcterms:dateSubmitted, and dcterms:modified into the CE schema. We can then add additional dcterms if and when they are required by specific use cases.
For background see https://dublincore.org/specifications/dublin-core/dcmi-terms/#section-1, particularly:

The /terms/ namespace was originally created in 2001 for identifying new terms coined outside of the original fifteen-element Dublin Core. In 2008, in the context of defining formal semantic constraints for DCMI metadata terms in support of RDF applications, the original fifteen elements themselves were mirrored in the /terms/ namespace. As a result, there exists both a dc:date (http://purl.org/dc/elements/1.1/date) with no formal range and a corresponding dcterms:date (http://purl.org/terms/date) with a formal range of "literal". While these distinctions are significant for creators of RDF applications, most users can safely treat the fifteen parallel properties as equivalent. The most useful properties and classes of DCMI Metadata Terms have now been published as ISO 15836-2:2019 [ISO 15836-2:2019]. While the /elements/1.1/ namespace will be supported indefinitely, DCMI gently encourages use of the /terms/ namespace.

Fixed with #121


How to upload build dependencies too?

I have a package A which has other packages (e.g. B) as build dependencies. Package B is not available as a binary package. When I build A with build_policy set to missing package B is build from source as well.
At the end the new package for A is uploaded to my repo. Is it possible to automatically upload the new package for B as well?

Not currently.

Hah, while my first instinct is that it's better to have a dedicated job to build B separately, while thinking about it, I definitely noticed the temptation. As bincrafters, we could define one job "boost_all" with build missing, and let the whole boost tree be built (and now uploaded) recursively.  I still don't think it's a good idea in our case, but now I can see it being worthwhile in some cases. For example, if you are setting up CPT for your new project, and building a few unique combination of settings/options for which there are no binaries in conan center, and use an OSS package which has 10 dependencies.  It would be tedious to have to setup a CI job to build each separately.

I know how you feel ... I have a bunch of projects and sometimes I need to build a specific configuration, but the transitive dependency raises an error when I want to build just the top of level. It's really boring waste minutes, maybe an hour, building all chain of dependencies.

We also need this feature. I might be able to contribute it but need some advice on how to implement it. Would you envision this as an option of the conan upload command? If so, wouldn't we need two options: (1) upload transitive runtime dependencies and (2) upload transitive build dependencies?

I wrote some lines of code regarding this issue. Since there is already an open PR I will not create a second one.
@uilianries feel free to use my code for your PR ;) Would be cool to see this feature in one of the next versions..


Misaligned pairings of labels and scores?

Hi, thanks for your helpful package!
Trying your example code https://github.com/Pandora-Intelligence/classy-classification#spacy-embeddings, I noticed two things: First, the output format seems to be different; instead of the list of dictionaries in your example code I get a single dictionary (not a big deal).
Second, and perhaps more importantly, it seems that the labels do not match the scores in a reasonable way. For example, print(nlp("I am looking for fridge, stove and oven appliances.")._.cats) returns {'furniture': 0.7210517551092989, 'kitchen': 0.27894824489070125}. While the scores seem somewhat reasonable, they should rather favor the 'kitchen' class in this example, shouldn't they? I could reproduce this with other examples and data, and on a different machine with a fresh Python (3.9.15), spacy (3.3.1) and classy_classification (0.6.1) installation.
Thank you very much for taking at look at this in advance!

Could it be that the order of the training examples given in the training data dict matters? If you put them in alphabetical order in the training data (furniture before kitchen, etc.) does this improve the results?

The issue seems to appear when the labels in the training data is not in alphabetical order.
If you order them alphabetically,  the outputs will be as expected.
I spent hours trying to figure out why the predictions were wrong.

@rasmusab could you share your code please? Then I can have a bit more in-depth look.

@joel-odlund thanks for looking into this.

@reneschneider thank you for raising this. I just updated the docs

@Masboes @rdeheer2 this is a huge issue, which you could start investigating and tackling.

Thanks David, will add it to this sprint.

This was fixed in version '0.6.3.' @reneschneider . Thanks for bringing this up.


Update dev-tr branch - merge main

Describe your changes
Related issue number or link (ex: resolves #issue-number)
Checklist before opening this PR (put x in the checkboxes)

[ ] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[ ] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO. If you are working locally, you could add an alias to your gitconfig by running git config --global alias.ci "commit -s".

/close
Going to create a new one.


Can't launch app due to missing .dll file.

When i start eva, i get this error message:

Where can i download libggml.dll? Help me, please.

maybe your computer does not support Vulkan or does not have a graphics card, Can you tell me your computer configuration? And you can try eva-b3600-cpu.exe.

I can't run cpu version either. When i try to do that, i get the same error message:

I hadn't any problems with previous versions of eva. Both builds (cpu and vulkan) worked without errors. My laptop configuration: Ryzen 7 4700u, igpu Vega 7, 16gb ram, Windows 11. Do you know kobold.cpp app? It is like eva: it can run llms on cpu or on Vulkan. It works fine on my laptop. So my hardware is Vulkan compatible.

Maybe your computer does not support Vulkan or does not have a graphics card, Can you tell me your computer configuration? And you can try eva-b3600-cpu.exe.😀

I can't run cpu version either. When i try to do that, i get the same error message:

I hadn't any problems with previous versions of eva. Both builds (cpu and vulkan) worked without errors. My laptop configuration: Ryzen 7 4700u, igpu Vega 7, 16gb ram, Windows 11. Do you know kobold.cpp app (https://github.com/LostRuins/koboldcpp)? It is like eva: it can run llms on cpu or on Vulkan. It works fine on my laptop. So my hardware is Vulkan compatible.

I found that the libgomp-1.dll library is missing, and now I have uploaded a new eva, you can download and try again. Thank you for your feedback~

I found that the libgomp-1.dll library is missing, and now I have uploaded a new eva, you can download and try again. Thank you for your feedback~

The problem is fixed. Thank you very much.


Use the Proper SLE15 SP2 JeOS GM image for testing on OpenStack

Why is this PR needed?
The business case this fixes is that the CI is using the final SP2 image that we ship to customers rather than something older and unsupported.
As such it brings more relevance to what we test and how we test and that is considered a good thing.
What does this PR do?
It fixes the Image configuration to point to the right image.
Anything else a reviewer needs to know?
There is no manual testing needed.
Info for QA
There is no QA needed. if CI passes its good.
Related info
This PR can be merged independently.
Status BEFORE applying the patch
The wrong image is used.
Status AFTER applying the patch
The SLE15 SP2 GM JeOS image for OpenStack is being used for OpenStack testing.
Docs
The docs need to refer to the same image.
Merge restrictions
(Please do not edit this)
We are in v4-maintenance phase, so we will restrict what can be merged to prevent unexpected surprises:
What can be merged (merge criteria):
    2 approvals:
        1 developer: code is fine
        1 QA: QA is fine
    there is a PR for updating documentation (or a statement that this is not needed)

I am already using those images (but not the reboot fix), and that works for me. :+1:

I think this should be placed on Z squad's radar. What do you think @jordimassaguerpla ?

There seem to be two unrelated changes in the PR: the image and the reboot logic. If you drop the second commit from this PR we can take the update of the image and test it in the CI.
The reboot logic, we prefer not to changed in the SAME PR unless it is broken, which is not the case as far as we know and JP reports.

@pablochacin I removed the 2nd commit. I already tested it, and so did JP. I think a review would be enough.

Interesting that the pr-head chokes on a id_shared file... Should we edit the authorized_keys var to add the appropriate ci pubkey into ci/infra/openstack/terraform.tfvars.json.ci.example ? I suppose there is something else in our CI tooling dealing with this...

Interesting that the pr-head chokes on a id_shared file... Should we edit the authorized_keys var to add the appropriate ci pubkey into ci/infra/openstack/terraform.tfvars.json.ci.example ? I suppose there is something else in our CI tooling dealing with this...

I observed this same error in PR #1205 The problem seems to be related to the changes in PR #1168 (the location of files change) I'm looking at it.

potentially this required a rebase. I've rebased on top of master.

I run an e2e test job with the PR and the cluster was deployed correctly. The deployment failed with an unrelated issue related to the image repository. So from my perspective, the new image solves the ssh issue.
I'm still investigating why the PR tests are failing. It also seems to be unrelated, as I mentioned in a previous comment.

I'm still investigating why the PR tests are failing. It also seems to be unrelated, as I mentioned in a previous comment.

Effectively, it is due to a problem with PR #1168

https://github.com/SUSE/avant-garde/issues/1739#issuecomment-651289097 - let's get this merged.


Add auto pearl abuse please

how would it work + add it yourself

Spam pearls every time someone hits and give only milisecond delay after hit

lol true i could code the angle and have a gui to change the millisecond
On Wed, Mar 22, 2023 at 7:01 PM Big Boy @.***> wrote:

Spam pearls every time someone hits and give only milisecond delay after
hit
—
Reply to this email directly, view it on GitHub
https://github.com/AnkerFung/Skligga-Hack/issues/12#issuecomment-1480108319,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZ73DD4KLZKHGSHYNRNIIR3W5ND77ANCNFSM6AAAAAASZDGDOU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Post registration - My assessment page is missing the questions

After registration, user is re-directed to My assessments page (see the screenshot)
The link, download assessment questions, do not work.

@ldodds - do you have the full list of assessment questions that can be used? If not, we should take this out, or change this to 'Download assessment grid'?

I'll remove this now. For the beta I suggest we add a page where we list questions for each activity, we can generate them as a web page (might be tricky as a PDF)


Package request: mongodb 3.6.x

Issue description
Current mongodb package 3.4.10 has so many subtle patches so I am afraid to do a blind update of it.
cc maintainers @bluescreen303 @offline @wkennington @cstrahan

might be backported from triton https://github.com/triton/triton/commit/bfde713b13ca5761f1b8f44d4865b848c91e8e5b#diff-975cb07012e4b21e46f17a518e61c8f1

this seems fixed


A few cases of wrong parsing

Following https://github.com/stevemao/get-pkg-repo/issues/7#issuecomment-260355022.
These repo urls seem to parse incorrectly:
git@gitlab.foocorp-dev.local:retail/some-project.git # because of git@
https://gitlab.foocorp-dev.local/retail.store/some-project.git # because of . in user
https://gitlab.foocorp-dev.local/retail/someproject.git # because of . in project
git@gitlab.foocorp-dev.local:retail.store/some.project.git # a mix of things

Steps to reproduce:
sudo npm i -g get-pkg-repo
get-pkg-repo
# copy each of the above urls one by one

Both user and project are undefined in all above cases; domain is sometimes missing too.

This issue blocks https://gitlab.com/hyper-expanse/semantic-release-gitlab/issues/10

Ping @stevemao :–)

CC @bahmutov , @kachkaev PR welcome :)

@kachkaev I ran your first example through get-pkg-repo to determine where the failure happens. Turns out it's parse-github-repo-url that fails to extract the username and project.
var parse = require('parse-github-repo-url')
parse('git@gitlab.foocorp-dev.local:retail/some-project.git')
# false

If you change your URL to git@gitlab.foocorp-dev.com:retail/some-project.git, it works. Notice I changed local to com. It seems parse-github-repo-url only supports .com domains.
Would you mind filing an issue against that repo, and provide an example of that package failing for a domain that does not end with .com?

Good point @hbetts, done!

I think repo-utils/parse-github-repo-url#6 fixes part of the issue here.

@stevemao Can you update package.json to use parse-github-repo-url v1.4.0?

@sebastien-prudhomme can you run npm update?

@kachkaev is this still a problem?

Hi @stevemao. Haven't tried the newer versions of the package, but I'm happy with the fix as long as your new are green in the situations mentioned above.

https://github.com/repo-utils/parse-github-repo-url/issues/5
Seems like the PR hasn't been made @kachkaev

I believe repo-utils/parse-github-repo-url#5 is the last item from the original comment above that hasn't been addressed upstream.
@kachkaev would you be up for submitting a pull request against parse-github-repo-url to correct issue repo-utils/parse-github-repo-url#5?

Hi @hbetts I'm not sure I'll be able to submit a PR in the near future and will be happy to see my line of code added to a commit by someone else.

A pull request is pending with a fix by @kobik - https://github.com/repo-utils/parse-github-repo-url/pull/10

To address the issue covered by the pull request filed by @kobik in repo-utils/parse-github-repo-url#10 I have created a replacement package called @hbetts/parse-repository-url.
I have released version 4.0.1 of get-pkg-repo that contains a test I believe covers the needs of this issue.
If that turns out to not be true, please file a new issue and we can work through what more is needed.


Minor changes on our end + one new option

This is a migration of https://github.com/segmentio/analytics.js-integrations/pull/634
It is dependent on: https://github.com/segmentio/facade/pull/76
And there is still this outstanding question: How do I go about getting the new stream option added under the advanced options section on the Segment site?

@DingoEatingFuzz could you describe what the new 'stream' option is? e.g. here's what we have for the existing options: (we'd need at least a description, label and type)
"apiKey": {
      "default": "",
      "description": "Your API key should be a series of numbers and letters, like `3daDLlqb4ANg7l0rf4cfl6xF`.",
      "label": "API Key",
      "type": "string",
      "validators": [
        [
          "regexp",
          "^\\w{10,30}$",
          "Double-check your API Key. It should be a series of numbers and letters, like `3daDLlqb4ANg7l0rf4cfl6xF`."
        ]
      ]
    },
    "cid": {
      "default": "",
      "description": "Your CID should be a series of numbers, like `9289`.",
      "label": "CID",
      "type": "string",
      "validators": [
        [
          "required",
          "Please enter your Lytics CID."
        ],
        [
          "regexp",
          "^\\d+$",
          "Double-check your CID. It should be a series of numbers, like `9289`."
        ]
      ]
    }

@f2prateek how does this look?
"stream": {
  "default": "default",
  "description": "A brief, but informative name for organizating your data in Lytics. Only necessary when you are tracking multiple websites.",
  "label": "Stream",
  "type": "string",
  "validators": [
    [
      "regexp",
      "^[-_\\w]{3,50}$",
      "Double-check your stream. It must be alpha-numeric with no spaces (hyphens and underscores are fine)."
    ]
  ]
}

Thanks!

@DingoEatingFuzz sorry jumped the gun on this, mind reopening the PR?

Todos (for Segment):

[ ] https://github.com/segmentio/facade/pull/76
[ ] Update Metadata (provided in this conversation
[ ] Merge PR
[ ] Deploy

@f2prateek There is no option to reopen a PR, but I opened #3, which has the same diff.


Support for writing textual metadata

Add support for textual metadata in the INFO chunk i.e. description, artist-name, title etc. This would be of a lot of use to me in a project I'm doing. I could potentially also do a PR for this at some point if it's desired :+1:

This should be possible. Do you know of a program that runs on Linux that can actually read those, to test compatibility?

ffprobe can read it, it's in the metadata section. Example output:
Input #0, wav, from 'file_example_WAV_1MG.wav':
  Metadata:
    title           : Impact Moderato
    album           : YouTube Audio Library
    artist          : Kevin MacLeod
    genre           : Cinematic
  Duration: 00:00:33.53, bitrate: 256 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 2 channels, s16, 256 kb/s


Create var isProduction in order to prevent repeat code

What does this Pull Request Do?
Create a var isProduction in order to prevent repeat code.

Before I can accept this pull request, you will need to sign the CLA: https://developers.google.com/open-source/cla/individual
If you decide to sign it, please let me know and I can merge the pull request. Thanks!

I thought this particular expression was special cased to be removable? Is
the new version still naively DCRable?
On Fri, Jul 10, 2015 at 9:48 AM Sepand Parhami<EMAIL_ADDRESS>wrote:

Before I can accept this pull request, you will need to sign the CLA:
https://developers.google.com/open-source/cla/individual
If you decide to sign it, please let me know and I can merge the pull
request. Thanks!
—
Reply to this email directly or view it on GitHub
https://github.com/google/incremental-dom/pull/35#issuecomment-120456744
.

I think the sequence of what happens is:

Replace production.env.NODE_ENV with "production" (currently using envify)
Do constant propagation (by Uglify or Closure compiler)
Do DCR

I didn't realize Uglify did constant propagation. Closure compiler certainly does. Cool.

@sparhami done!

One last request: could you use git rebase to squish your commits together?

@sparhami sure, done!

Thanks!


:set guioptions+=v ignored in GTK3 GVIM

Describe the bug
The GTK3 GVIM does not honor the request to use a vertical button layout for dialogs (:set guioptions+=v), and always renders the buttons horizontally, which (when there are many and/or long choices) can lead to ugliness (in a horizontal multi-monitor setup, the dialog spans multiple monitors) or even inaccessibility (the dialog gets truncated and some buttons are now visible).
This affects the default vim-gtk3-2:8.1.2269-1ubuntu5 package that ships with Ubuntu 20.04 LTS, as well as a self-compiled (--enable-gui=gtk3) latest version 8.2.2406.
The GTK2 variant (vim-gnome package, latest version compiled with --enable-gui=gtk2) is showing the vertical button layout just fine.
To Reproduce

Run gvim --clean --cmd 'set guioptions+=v' -c 'call confirm("Test", "one\ntwo\nthree")'

Expected behavior
I have plugins that present a lot of long options and therefore basically only are usable with a vertical button layout; the only fallback would be to use text-based dialogs via :set go+=c.
:help confirm() mentions:

confirm()		tries to put the buttons in one horizontal line.  If they		don't fit, a vertical layout is used anyway.  For some systems		the horizontal layout is always used.

Even if (I'm guessing) GTK3 doesn't allow a vertical layout simply by setting a flag, a custom dialog (basically a modal window with a label, icon, and some buttons) surely could be implemented for it.
Screenshots

Environment (please complete the following information):

Vim version 8.1.2269, 8.2.2406
OS: Ubuntu 16.04, 20.04
GTK3 GUI

This proves to be tougher than it seems at first sight. GtkDialog does not support that kind of option and forcefully packs its buttons into hbox (aka action-area). In Gtk2 Vim does the trick by replacing action-area with a new vbox. This is in src/gui_gtk.c:
    // Check 'v' flag in 'guioptions': vertical button placement.
    if (vim_strchr(p_go, GO_VERTICAL) != NULL)
    {
# if GTK_CHECK_VERSION(3,0,0)
    // Add GTK+ 3 code if necessary.
    // N.B. GTK+ 3 doesn't allow you to access vbox and action_area via
    // the C API.
# else
    GtkWidget   *vbutton_box;

    vbutton_box = gtk_vbutton_box_new();
    gtk_widget_show(vbutton_box);
    gtk_box_pack_end(GTK_BOX(GTK_DIALOG(dialog)->vbox),
                         vbutton_box, TRUE, FALSE, 0);
    // Overrule the "action_area" value, hopefully this works...
    GTK_DIALOG(dialog)->action_area = vbutton_box;
# endif
    }

However, Gtk3 closes this backdoor by hiding action_area inside a private structure (pimpl-alike). So the "vertical" option was never implemented in Gtk3 and it seems there's no easy way to implement it.

So we should then at least add a short comment at options.txt mentioning that GTK3 does not allow this I think.

I'll add a note.  So we close this as "infeasible".


[TV app] Update application launcher attribute name

Problem
Application launcher attribute name list does not match the spec catalog list
Proposed Solution
Update it to application-launcher-catalog-list

Proposed solution, doesn't make sense. All attributes name should match the ones in the spec, word by word, letter by letter. I'm closing this.


Chattiness Slider/Respond to Bots setting in Discord

Is your feature request related to a problem? Please describe.

Bots will dump tokens responding to each other and/or be annoyingly chatty sometimes
Describe the solution you'd like
-- I think it might be useful to have a setting where a bot will 'wait' X amount of time before responding to a message, or a way to weight boredom higher in a series of rapid-fire back and forths. Maybe an if chars = 250+ and responsetime>1000ms then multiply normal boredom by X (or however fast humans aren't able to write) + some manual sliders on chattiness levels if we want one that's more shy vs outgoing

When interacting with another bot, or set as anxious/shy/quiet, response volume is reduced by ~50%
Describe alternatives you've considered
none, just had the thought

Additional context

<EMAIL_ADDRESS>an existing implementation in a different framework in python; since they have the app identifier, it should be fairly straightforward, i think

We can do this with a provider or hardcode it.
The boredom module should prevent this but needs to be tuned.

We added prompt template overrides per character


feat (chart): Add startup probe option, expand probes adjustments.

I've noticed on a big dataset (100gb+) when a sudden crash happens (with a single replica install), we get into a state where it takes long time to recover from *.wal files (last took ~30minutes), and existing livenessProbe settings put statefulSet into endless restart cycle. I would expect MTTR to grow simultaneously with a dataset. Kubernetes 1.18 introduced startupProbe that allows us to wait longer for the pod to become available before the application of the readiness/liveness routines.
It's disabled by default not to confuse users setting up fresh instance with slow start, but can be enabled for more loaded case, also expanded probes adjustments.

I agree with the CLA.

@freakst Thank you very much, this will be part of the next release.


where is the "open in a new window" ?

Hello;
In the previous version I use (it was 4.0.48 I believe) there was "open in a new window" choice when we right click on the graph. It was so useful for me because I was able to enlarge the graph. Now I updated in to 4.1.11 and saw that It was removed.
Could you add it back in future revisions ?
Thank you.
Screenshot from 4.0.48 demo

screenshot from 4.1.11

Hi @ademkaya, thanks for noting this! This was an oversight in the transition from ScottPlot 4.0 to 4.1. I'll add this to the triage list #716 and fix it before I remove the "beta" tag from this new version

Thanks for the quick fix @bclehmann! For some reason I thought this would be a lot more complex. A true/deep fix means solving #819, but this is a strong improvement as it is so thanks!


Build proxy module error with freerdp

Hi
I need to connect to my centos 7.7 from a windows 10. The problem is that I need to use a proxy to do that lets say:  proxy.world.com:8080
(If I connect directly to the centos machine it works like charm)
I'm following this documentation (https://github.com/neutrinolabs/xrdp/wiki/NeutrinoRDP-proxy-module-for-xrdp) but sadly it fails when I try to launch this command:
./configure --enable-neutrinordp
Error log:

I installed freerdp again but it doesn't seems to solve the problem.
yum -y install freerdp
Is something that I am missing? Should I follow another step before that is not in the documentation?
ERROR MESSAGE:
`checking for FREERDP... no
configure: error: Package requirements (freerdp >= 1.0.0) were not met:
No package 'freerdp' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables FREERDP_CFLAGS
and FREERDP_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
`

First you need to clone neutrinolabs/NeutrinoRDP and build and install
That should but NeutrinoRDP in /usr/local
The configure xrdp with --enable-neutrinordp
If it still does not find FREERDP, set the PKG_CONFIG_PATH.

hi @jsorg71
I've already installed NeutrinoRDP following this documentation (https://github.com/neutrinolabs/xrdp/wiki/Building-on-CentOS-(or-Red-Hat-based-distributions)) and installed it in home/user1/NeutrinoRDP. Is it also allowed to do that?
When you said "The configure xrdp with --enable-neutrinordp" you mean execute the command:
./configure --enable-neutrinord
in the directory /usr/local right?
What value should PKG_CONFIG_PATH take?

PKG_CONFIG_PATH should be set to wherever NeutrioRDP is installed.
must likely
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig

Hi,
Sorry for letting this thread unattended. In my case what I find is:

does it make sense or is something missing? (I'm asking it because I don't see a file called neutrinordp)

Hi @mrpotatoserver . I can't help you with the use of the proxy itself (I've never used it), but I might be able to help you get it built.
You say that neutrinordp is installed in /home/user1/NeutrinoRDP. What happens if you execute this:-
find /home/user1/NeutrinoRDP -type f -name \*.pc

That should tell you where PKG_CONFIG_PATH needs to point

Hi @matt335672
I've executed the command and I get a large list of files that ends with *.pc. I think that the file I was looking for was:
/home/user1/NeutrinoRDP/freerdp.pc
As I told in this thread after changing the value of the variable to:
export PKG_CONFIG_PATH=/home/user1/NeutrinoRDP
and executing the command:
./configure --enable-neutrinordp
It seemed to have been installed but I'm not sure if I'm missing something?

Hi @mrpotatoserver.
I'm looking at your screendump above, and I think you're missing a 'make' and a 'make install'
If you look back at https://github.com/neutrinolabs/xrdp/wiki/NeutrinoRDP-proxy-module-for-xrdp you'll see the instructions read:-

Build neutrinordp. That's done
Build xrdp using neutrinordp to provide the libraries for the proxy module.

You've already build xrdp and got it working, but you need to rebuild it to get the libxrdpneutrinordp.so module.
To do the rebuild:-

Set PKG_CONFIG_PATH to pickup neutrinordp
configure --enable-neutrinordp (plus any other switches you need)
make
make install

As far as building xrdp goes, you've configured the build (by using --enable-neutrinordp and setting PKG_CONFIG_PATH), but you have actually made it yet using 'make' and installed it with 'make install'.
Or have I misunderstood your screendumps?

Hi @matt335672
Actually you are right but as you pointed out in the following documentation (https://github.com/neutrinolabs/xrdp/wiki/NeutrinoRDP-proxy-module-for-xrdp), there is another step (step Z explained bellow) that I think it may be taken before executing step 3. make and step 4. make install.
STEP Z:
Here I think that I have to go through configuring the linker (
echo /usr/local/lib >> /etc/ld.so.conf.d/neutrinordp.conf   ldconfig
) and also  the cd /etc/xrdp/xrdp.ini file where the parameters must be configured in order to resolve the proxy, Am I wrong?

Taking both of those in turn:-

I believe the linker configuration is required at run-time. When you built neutrinordp and installed it, part of it is a lib directory, which should be at /home/user1/NeutrinoRDP/lib based on the conversation. At run-time, libxrdpneutrino.so needs to find libraries in this area. So for you, you'd be using echo /home/user1/NeutrinoRDP/lib >/etc/ld.so.conf.d/neutrinorep.conf ; ldconfig. I don't think you need this setting to rebuild xrdp, but in any case just try it and see.
xrdp.ini is purely used at run-time.

As I've already said, I can't help you get this running - just building. I've re-read this thread a few times, and I'm still not entirely sure on exactly what you're trying to achieve, or even whether this is the right software for the problem you're trying to solve.

I managed to solve this issue taking a walkaround using putty as ssh tunnel. What I've done in putty is the following:

Ip: <IP_ADDRESS>
port:22
proxy settings:
proxy host name: proxy.world.corporate.com
port: 8080
and of course my credentials for the proxy log-in
Expand SSH section and click in Tunnels to add a forwarded port:
Source port: 5389 (or any other port that's not busy, don't use 3389 because it fails)
Destination: localhost:3389
Mark check buttons: Local, Auto
I hope it helps.

Well that's useful information - thanks.
Tunnelling over ssh won't be the highest performance solution, but (assuming you're not using just a password) is going to be pretty secure.

Alternatively, I have a plan to introduce FreeRDP 2 support to replace NeutrinoRDP.  I know most people want RDP proxy, not NeutrinoRDP itself. FreeRDP should be easier to install and build (sometimes NeutrinoRDP conflicts with FreeRDP).
There's no progress so far. Just FYI.


ApiError when trying to  setLightState on fresh bridge paired light

Hi
I'm contributor to open-source project GladysAssistant
We use this lib in our Philips Hue services ( in version 4.0.9 ). Thank you BTW !
We have some weird behavior, newly bridge paired light can't be controlled without a restart.
See gladys log
2021-05-07T10:12:53+0200 <debug> light.setValue.js:17 (PhilipsHueLightHandler.setValue) Changing state of light philips-hue-light:001788286ece:10 with value = 0
2021-05-07T10:12:53+0200 <warn> scene.executeActions.js:37 (executeAction) ApiError: Light with id:10 was not found on this bridge
    at /home/vonox/repos/Gladys/server/services/philips-hue/node_modules/node-hue-api/lib/api/Lights.js:121:17
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async PhilipsHueLightHandler.setValue (/home/vonox/repos/Gladys/server/services/philips-hue/lib/light/light.setValue.js:38:3)

Like I said, restarting the app and the problem is gone.
For reference: https://github.com/GladysAssistant/Gladys/blob/master/server/services/philips-hue/lib/light/light.setValue.js
I've no clue about that, what do you think ?
Thank you

Hi Peter, sorry for delay
Light is paired with official Philips Hue application then listed via this library, unfortunately the light can't be controlled.
Thank you for feedback

Ok, so that explains it for me :bow:
The library only refreshes the cache on initial connection, or any activity that it performs with respect to pairing a new light (at least it should do as there is code to support the calling of the refresh code).
This means that if an external tool/system like the hue application is used to add a new light, the library needs to be prompted to update the cache of the lights that it retrieves upon first connection to the bridge (which is what it does when connecting for the first time).
You mention you were using 4.x version, so this call on the Api; https://github.com/peter-murray/node-hue-api/blob/4.x/lib/api/Api.js#L154 will re-sync with the bridge and pick up any new lights that were added between starting your application and then. The timestamp available from this function; https://github.com/peter-murray/node-hue-api/blob/4.x/lib/api/Api.js#L147 will indicate the last time that the api successfully performed a sync with the bridge.
This is a heavy weight call, and will not be needed unless there is external activities that are modifying the lights outside of the library.

@VonOx does the above details ☝ explain why this is happening for you and match your use case? Can you issue the resync call via your integration when you need to?


REST - investigate /eth/v1/beacon/headers parameter parent_root

https://ethereum.github.io/eth2.0-APIs/#/Beacon/getBlockHeaders
The query parameter parent_root for /eth/v1/beacon/headers endpoint is currently not supported, we need to investigate the implementation, potentially it's something we won't be able to support at all except for canonical blocks.

this relates to #2760 - it's the outstanding portion of the beacon headers implementation, the rest was implemented.

We've no plans to implement this at this stage due to a number of implementation limits that make this a very expensive operation. Closing for now, can open a new issue if we ever change our minds.


docs: Glossary and Groups guide

Revise glossary entries.
Add glossary entry.
Add Groups guide content.

@cedoor:

I can't add you as a reviewer in this new repo.
Do you think glossary should go under /technical-reference or stay where it is?
I think glossary entries should reflect their use in Semaphore to provide additional value. For example, Merkle trees - if we can provide specific context in Semaphore or zk proofs/protocols then that adds value in addition to the Wikipedia entry.
I need to work on a style guide a bit later, but glossary entry intros can be as short and to-the-point as possible--a rare case where a complete sentence isn't necessary.

@0xorbus

I just invited you in a Github docs team, you should more permissions
I feel like it should be more visible. What do you think?
I agree! It makes a lot of sense
👍🏽

@cedoor Resolved conflicts.


Add async retries

Related to infinyon/fluvio#2361.
This PR adds a generic retry mechanism in the async context.
An async operation that needs to be retried must be represented in the FnMut -> Future form. Essentially, it means that need to provide a factory of futures.
Control over the number of retries and timings is done by Iterator<Item=Duration>.
Also, added timeout method that transforms a future into a time-limited future.

bors r+


Mobile group view

Currently, looking at a group member list only shows the member name and their "role" in the group:

You currently can't scroll horizontally to view more data, so all you can see is those two things unless you rotate your phone (which doesn't work if you've opened Wise Old Man through Discord.) It would be more relevant to show each member's overall xp or level in each skill instead of their role. It would also be nice if the table could be scrolled through horizontally, with the usernames staying pinned so they are always viewable.

@psikoi i'll take this


[WIP] Migrate to tokio 0.2

Currently, it's unclear how to get HttpInfo from underlying Http service and return it as an extra part of Connected from connected fn in Conn implementation. HttpInfo is already Clone, so I think making the extra field public, or provide the accessor in hyper should work.

Another issue is with tokio-executor - it seems like these structs are no longer exposed from tokio?

Could you say a little more about the tokio-executor stuff that is now missing?

Sure, tokio-executor is used here https://github.com/seanmonstar/reqwest/blob/master/src/blocking/wait.rs#L7 There is no stable version of tokio-executor now, and it seems like all this structs/traits are now inside the tokio crate.

I've fixed the executor stuff here if you want to merge: https://github.com/seanmonstar/reqwest/tree/pr/731

Done

I've also just now updated that branch with a fix to propagate the HttpInfo value.

And again, a new commit to fix the blocking support server panic.

tests are now passing

Fantastic work, thanks!