Latency of connaisseur cosign verification is around 2s. Is this normal?

Describe the bug
From the log we observed that log time between starting verification of image and successful verification of image is around 2s for cosign validated request. For auto-approved request it is much faster(around 1ms).
We are concerned that 2s is not a small number which potentially impacts our SLO of pod creation.
Wondering whether is way to find out where the latency comes from(communication with registry, signature verification, connaisseur performance itself, etc)
Optional: To reproduce

Optional: Versions (please complete the following information as relevant):

OS:
Kubernetes Cluster:
Notary Server:
Container registry:
Connaisseur: 3.0.0
Other:

Optional: Additional context

Hi @qx121
yes, that is normal and is usual Cosign behaviour. If you verify an image with Cosign itself (not using Connaisseur), it already takes that time. You can run cosign generate-key-pair to generate some syntactically valid key and then time cosign verify --key cosign.pub securesystemsengineering/testimage:co-signed or similar on any other image.
$ time cosign verify --key cosign.pub securesystemsengineering/testimage:co-signed
Error: no matching signatures: searching log query: [POST /api/v1/log/entries/retrieve][400] searchLogQueryBadRequest  &{Code:400 Message:verifying signature: invalid signature when validating ASN.1 encoded signature}
main.go:69: error during command execution: no matching signatures: searching log query: [POST /api/v1/log/entries/retrieve][400] searchLogQueryBadRequest  &{Code:400 Message:verifying signature: invalid signature when validating ASN.1 encoded signature}

real	0m2,020s
user	0m0,157s
sys	0m0,277s

As you can see, the validation takes around 2s already. This is expected as Cosign needs to retrieve the digest for the tag, the signature for the digest and potentially some related transparency log entries and probably does a bunch more requests (e.g. authenticating to the registry first, to get a token, then doing the actual access requests...), so quite a bit of networking. The actual cryptographic verification itself should be fast. If the 2s are a bottleneck for you, the main criterion to improve that I see is to get Cosign (or in this case Connaisseur) closer to the registry in terms of network latency.
So in terms of Connaisseur, there's nothing we can do about that. As mentioned in #1536, we're implementing a caching in 3.4.0, which will hopefully alleviate some of the pain for repeated validations of the same image.

@Starkteetje thanks for the detailed explanation! Glad that caching feature just got released with 3.4.0, it would help a lot in our case. Also indeed improving registry's locality should help reduce cosign latency.


Dragonsteel Integral Component is too weak

Please bump it to x6 or make config option to do so, 4.5 is silly: Resonant -> Draconic upgrade only improves speed by miserable 12.5%.
For reference, this mod offers x6-x12 upgrade, only reason I dont use that mod is it requires dependency.

fyi thermal endergy is supposed to be OP, my addon is not. i might do 5 or 5.5/6 but nothing more.

when i did the last update, i forgot to change it so it wasn't changed but i did change it for 1.20.1


Factor out Prefixer as a separate project

Hi ,
How about publishing prefixer as its own entity , it'll be useful for other projects ..

Yeah I've thought about it. The prefixer is based on https://github.com/jsstyles/css-vendor, but I've basically rewritten it all and added quite a bit. We actually want to move away from this type of prefixer, and use one based on user agents, see discussion in #201.
Do you have something in mind that you'd like to use it for?

Do you have something in mind that you'd like to use it for?

In my internal scala.js project i am using inline styles, was searching for good a prefixer to use  , found some on internet but they are not active projects.. ,as radium has decent community,it's  safe bet for me!

I also love the idea of creating/using an extern prefixer in general as it really is not a problem styling libraries should worry about.
While creating Look I tried to build some kind of dynamic & hackable stylesheet class which can easily be processed by any kind of processor (basically any object with a process-method). Therefore I've created an Autoprefixer which is based on userAgent information. By now it is not really complex and always uses the same list for every userAgent, but this could get extended heavily.
import Prefixer from 'dss-prefixer';
Prefixer.process(/* styles */);

For server-side rendering there's a Prefixer.setUserAgent(userAgent) which should be called before processing. Optionally you can also pass it within process as Prefixer.process(/*styles*/, userAgent).
If you've thought about a similar approach I would really like to help creating a powerful prefixer module similar to Autoprefixer but in javascript.

@rofrischmann very nice work with react-look! I'd love to add it to our comparision page if you wouldn't mind submitting a PR.
Your work on the prefixer looks like a great start, I've got a very old bookmark with something similar but less comprehensive. Biggest things that need to be added to dss-prefixer are more specific version checking for IE and webkit variants and prefixing/fixing of values as well (looks like some of that is in a separate mixin just for flexbox).

Thanks a lot! I will add it later on for sure.
Maybe I will create a separate repository tomorrow and set up some initial stuff. Thought about something which lets you define minBrowser-versions for all major browser.
A build script should generate a data map Using from caniuse (just as Autoprefixer does).
I'll update you asap :p

@ianobermiller I have set up a prefixer that generates information using caniuse data which is done automatically on install. See inline-style-prefixer.
It generates those info using a searchmap (see repo), which by now does not contain many properties. It would be nice to have some help as I am not sure which props even exist with prefixes. A list of properties would help a lot, but I can barely find one..
Also I have now started implementing some hack polyfill to ensure e.g. Flexbox IE 10 specs get also resolved (ms-flex-align, ...)
I am sure to have a fully running prefixer soon :)

This would be cool. I'd like to have a port of Radium to Mithril. It would be nice to have a separate common module that returns JS objects representing the styles, too. Then would make it easy to make it work with Mithril.

@rofrischmann using caniuse data is the correct approach and i wish Radium did this. is inline-style-prefixer a drop in replacement for Radium's autoprefixer?

My plan is to use inline-style-prefixer when it is mature enough. I think it would be fairly easy to write a drop in replacement plugin for prefixer using inline-style-prefixer, except prefixer is also used by keyframes and the style plugin, and is currently not replaceable.

If this is still useful, let me know and I can resurrect the old prefixer into its own repo, IMO inline-style-prefixer is better anyway :).

@ianobermiller to clarify, do you recommend we use inline-style-prefixer instead of Radium's builtin prefixer? If so, how?

@arush the latest version of Radium uses inline-style-prefixer already.

great


Scheduler multipass

So, the background scheduler was using the same thread and since we are doing long pulling on the BaseSubscription it was blocking new connections.

Codecov Report

Merging #17 into master will decrease coverage by 19.11%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master     #17       +/-   ##
============================================
- Coverage     70.51%   51.4%   -19.12%
  Complexity       19      19
============================================
  Files             6       6
  Lines            78     107       +29
  Branches          7      12        +5
============================================
  Hits             55      55
- Misses           21      50       +29
  Partials          2       2

Impacted Files
Coverage Δ
Complexity Δ

...main/kotlin/com/pusher/platform/AndroidInstance.kt
100% <ø> (ø)
2 <0> (ø)
:arrow_down:

.../src/main/kotlin/com/pusher/platform/schedulers.kt
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

Continue to review full report at Codecov.

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


React project template with ASP.NET Core have some mistake

I follow the Document create app,build and use  dotnet run to run the app.
But the Fetch Data Page doesn't return  json data . The snapshot like:

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

ID: a3154dec-545a-c749-76ac-1f4581c2f922
Version Independent ID: cd33922a-0feb-2a37-4e8e-6d7856617a31
Content: Use the React project template with ASP.NET Core
Content Source: aspnetcore/spa/react.md
Service: unspecified
Product: aspnet-core
GitHub Login: @SteveSandersonMS
Microsoft Alias: scaddie

No problem, I use the wrong port !


Update nonconservative_advection.jl

fix the latex formula. This time it's checked with Documenter.jl:

Thanks :+1: Let's keep fingers crossed our CI will like it, too :crossed_fingers:


Line color

Hello, I wanted to ask you how you made the separator line, since I wanted to change the colors

Hello, I wanted to ask you how you made the separator line, since I wanted to change the colors

you mean this https://camo.githubusercontent.com/6b68754bfe9a1bc4abebfabc34d4701bae4fa96c73172f2788d6a4163b0ce38c/68747470733a2f2f692e696d6775722e636f6d2f644261534b57462e676966 ?

Yes

I did not made it. it is gif image I found


Disable radio button group

Hi,
I'm not sure how I can disable a radio button group. I have a button that submits a form (minus the literal form tags) and normally lock out controls by setting them all to disabled. This isn't working for me with Bootstrap 4 + BNP4.
The disabled class still makes a clickable element as well.
Do you have any recommendations?
Thanks,
Teran

The Button component works with radio inputs, it wasn't developed having other cases or functionality in mind.

Ah, I haven't. I ended up removing the event listener, adding disabled, and a disabled class. Seems to have done the trick but maybe not the cleanest way to do it.
Thanks for getting back to me.

Now I'm a bit stuck trying to figure out how to toggle a button, heh.
I'm sorry, I'm not good at CSS or JS.

@teran-mckinney it's all about design and purpose. The Button component is designed to replace the impossible to style radio input and checkbox input with buttons where you can apply additional styling for various form purposes.
Changing this basic functionality makes little sense.

Gotcha. I guess I can just have buttons and make them exclusive in code. Thanks for the help. I'll close this one out.


Revert "Fix overflow clipping/fading for text"

Reverts flutter/flutter#27892
Breaks internal screenshot tests.

LGTM.  If it's a clean revert, no need to wait for the bots

In general, when landing a revert, I would still wait for the bots unless the thing being reverted is literally the last patch, because it's possible otherwise that an intermediate change depends on the original change and that the revert will break it. Basically, you want to only skip bots if you're returning to a previously known good state.


add war win streak

Added new field "warWinStreak"
see: http://forum.supercell.net/showthread.php/1017616-Clash-of-Clans-developer-website-now-live!/page57?p=6948795#post6948795

thanks!


Unable to Install Plugin

I'm having issues installing the plugin. I don't know if this is an issue with the Stream Deck software itself or the plugin file. Whatever the case I'm just here to report the issue and the steps I took to attempt to solve it.
The issue I run into is the plugin failing to install.

I then tried to install the plugin file manually and that also failed.

I tried addressing it by logging out and back into the Elgato Marketplace and Stream Deck software and that did nothing for me.
Lastly, I tried reinstalling the Stream Deck software all together and that also failed.

Just got around to seeing this and I will look into it.

has there been any update to this? Im also having a similar issue

The latest update for the stream deck application from Elgato should have fixed this issue. As such I will be closing this issue. If it is not fixed on your end, please do open another issue.


Shortcut pinning doesn't work anymore on recent versions of Android

Bug description
Adding shortcuts to specific hosts to the home screen no longer works in recent Android versions / with recent Android home apps (tested on Android 14 (LineageOS) with default LineageOS launcher).
The problem is the this code in org.connectbot.HostListActivity.onClick(View v):
if (makingShortcut) {
	// create shortcut if requested
	ShortcutIconResource icon = Intent.ShortcutIconResource.fromContext(
			HostListActivity.this, R.mipmap.icon);

	Intent intent = new Intent();
	intent.putExtra(Intent.EXTRA_SHORTCUT_INTENT, contents);
	intent.putExtra(Intent.EXTRA_SHORTCUT_NAME, host.getNickname());
	intent.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, icon);

	setResult(RESULT_OK, intent);
	finish();
} else {

The code uses the now deprecated pre Android O way to pin shortcuts to the home screen, which is no longer supported by most launchers. See https://developer.android.com/develop/ui/views/launch/shortcuts/creating-shortcuts#custom-pinned for the new way to return the result to the launcher.
Steps to reproduce

Go to your launcher (tested with the Lineage OS Trebuchet launcher)
Long press the Connect Bot app icon
Click on Widgets
Drag the icon to your home screen
The Connect Bot app opens with the .HostListActivity
Select one of the hosts from the list
The Connect Bot app closes itself
No shortcut is added to the home screen

Expected behavior
A shortcut should appear on the home screen that connects you directly to the selected host
Android device

Device: Google Pixel 2
OS: LineageOS 21-20240823-NIGHTLY-walleye (Android 14)
ConnectBot Version: 1.9.10-oss (from F-Droid)

Server information
Irrelevant

Dupe of https://github.com/connectbot/connectbot/issues/1333


Custom and transaction_subject must have max_length=256.

From paypal ipn docs https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNIntro/

The length of the custom variable is limited to 256 characters.

Currently this fields have max_length=255.

Patch would be accepted, it will need migrations for Django 1.7+ and for south.

I can work on this actually.

This is fixed in 80a05f6b5a3e7522d19a44d9cef4da8b2d63c417


Remove workaround for older unsupported Djangos

django.utils.encoding.force_text is available on all supported Djangos.
Can remove workaround to simplify the imports.

Coverage increased (+0.3%) to 92.767% when pulling 5180a422a5aea0b0089495e8e1ead4f120b58a71 on jdufresne:all-dj into ec568b5ad9414a300a1c3d99c9ee63c9255ed2e1 on django-import-export:master.

Thanks!


Breaking: fix 'clientSideFilters' argument typo.

I fixed a small typo: clientSitefilters becomes clientSideFilters.
Since this is a change in the optional arguments, this change would break current implementations that use the old argument.
If you merge it, make sure your users know about this change (and perhaps bump the version number by +1.0.0 in accordance to semantic versioning).
EDIT: As of now I've only changed the lib's argument name, but not the README or everywhere else it's used. I'll do so later today (if you're haven't done it by then already at least ;) ).

I fixed it on my main branch with some other changes


{pagetitle} with '/' downloads markdown file in a subfolder

{pagetitle} with '/' downloads markdown file in a subfolder
example url with this problem:
https://www.investopedia.com/terms/p/price-earningsratio.asp which has page title
'Price-to-Earnings Ratio – P/E Ratio'

I have confirmed that this can be reproduced.

Ref: https://github.com/parshap/node-sanitize-filename/blob/master/index.js for how to sanitize filenames.

Just by reading the code, I think the offending line is
https://github.com/deathau/markdownload/blob/3361645257253856e320de494136cbf371d595e2/src/background/background.js#L703
Where it splits the result by / before formatting each segment independently, then joins them all back together with /.
Note: This pattern happens at least 4 places in the code, so they probably all need to be changed.

Ref: https://github.com/parshap/node-sanitize-filename/blob/master/index.js for how to sanitize strings that are destined for filenames. (and to see all the other page titles that will cause issues by not doing sanitization correctly.
ie. illegalRe in generateValidFileName is insufficient???


Broken links in README.md

The landing of PR #1341 moving install content to new file broke several links in the top README.md file.

We updated the README.md also. Will investigate, thanks.

I noticed in the README.md file that both the Installation: and Protocol Specification: link are broken (i.e. result in 404 Response codes).

@bmos299 You're right I added that to my PR.
Thanks.

Thanks for looking at this, folks! (Still new to the git CLI / cloning / syncing process.)


Speed up dashboards stats execution time on Pantheon

#816

Some trivial changes + code relocation.
Self reviewed... Merging...


Version 0.2.2 bug: The table schema cannot be synchronized on each server node after executing ALTER ADD COLUMN query under certain circumstances

ByConity Version: 0.2.2 (and merged the feature that support leader election in storage: https://github.com/ByConity/ByConity/pull/757)
Phenomenon:

Everytime the user create a table, the table will pick a server in the cluster as its host randomly, and we can check "the host of a table" from system.cnch_table_host.
Assume that there are two ByConity servers in our cluster, we call them server A and server B.
Here the user create a table t1, and t1 pick the server A as its host, as following:

Server A :) create table t1 (`id` UInt32, `col` String) engine = CnchMergeTree() order by id;

CREATE TABLE t1
(
    `id` UInt32,
    `col` String
)
ENGINE = CnchMergeTree
ORDER BY id

Ok.

0 rows in set. Elapsed: 0.011 sec.

Server A :) select * from system.cnch_table_host where name = 't1';

SELECT *
FROM system.cnch_table_host
WHERE name = 't1'

┌─database─┬─name─┬─uuid─────────────────────────────────┬─server_vw_name────┬─host────────┬─tcp_port─┬─http_port─┬─rpc_port─┐
│ test     │ t1   │ xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx │ server_vw_default │ Server A    │     xxxx │      xxxx │     xxxx │
└──────────┴──────┴──────────────────────────────────────┴───────────────────┴─────────────┴──────────┴───────────┴──────────┘

1 rows in set. Elapsed: 0.010 sec.

We can check t1's schema on both server A and B, as following:

:) desc t1;

DESCRIBE TABLE  t1

┌─name─┬─type───┬─flags─┬─default_type─┬─default_expression─┬─comment─┬─codec_expression─┬─ttl_expression─┐
│ id   │ UInt32 │       │              │                    │         │                  │                │
│ col  │ String │       │              │                    │         │                  │                │
└──────┴────────┴───────┴──────────────┴────────────────────┴─────────┴──────────────────┴────────────────┘

2 rows in set. Elapsed: 0.003 sec.

Now, the user do ALTER ADD COLUMN on server B (note that t1's host is server A), we can find that the table schema has been changed on server B, as following:

Server B :) alter table t1 add column `col2` String;

ALTER TABLE t1
    ADD COLUMN `col2` String

Ok.

0 rows in set. Elapsed: 0.099 sec.

Server B :) desc t1;

DESCRIBE TABLE  t1

┌─name─┬─type───┬─flags─┬─default_type─┬─default_expression─┬─comment─┬─codec_expression─┬─ttl_expression─┐
│ id   │ UInt32 │       │              │                    │         │                  │                │
│ col  │ String │       │              │                    │         │                  │                │
│ col2 │ String │       │              │                    │         │                  │                │
└──────┴────────┴───────┴──────────────┴────────────────────┴─────────┴──────────────────┴────────────────┘

3 rows in set. Elapsed: 0.039 sec.

Server B :) insert into t1 values (1, 'a', 1);

INSERT INTO t1 VALUES

Ok.

1 rows in set. Elapsed: 0.330 sec.

Server B :) select * from t1;

SELECT *
FROM t1

┌─id─┬─col─┬─col2─┐
│  1 │ a   │ 1    │
└────┴─────┴──────┘

1 rows in set. Elapsed: 0.393 sec.

However, server A cannot be synchronized on this information, as following:

Server A :) desc t1;

DESCRIBE TABLE  t1

┌─name─┬─type───┬─flags─┬─default_type─┬─default_expression─┬─comment─┬─codec_expression─┬─ttl_expression─┐
│ id   │ UInt32 │       │              │                    │         │                  │                │
│ col  │ String │       │              │                    │         │                  │                │
└──────┴────────┴───────┴──────────────┴────────────────────┴─────────┴──────────────────┴────────────────┘

2 rows in set. Elapsed: 0.002 sec.

Server A :) insert into t1 values (1, 'a', 1);

INSERT INTO t1 VALUES

Error on processing query 'insert into t1 values (1, 'a', 1);':
Code: 62, e.displayText() = DB::Exception: Cannot parse expression of type String here: 'a', 1);: While executing ValuesBlockInputFormat: data for INSERT was parsed from query SQLSTATE: 42000, Stack trace (when copying this message, always include the lines below):

0. Poco::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int) @ 0x1ef90459 in /xxx/xx/xxx/clickhouse
1. DB::Exception::Exception(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, int, bool) @ 0xda4ec0d in /xxx/xx/xxx/clickhouse
2. DB::ValuesBlockInputFormat::parseExpression(DB::IColumn&, unsigned long) @ 0x1a2f027e in /xxx/xx/xxx/clickhouse
3. DB::ValuesBlockInputFormat::readRow(std::__1::vector<COW<DB::IColumn>::mutable_ptr<DB::IColumn>, std::__1::allocator<COW<DB::IColumn>::mutable_ptr<DB::IColumn> > >&, unsigned long) @ 0x1a2eecac in /xxx/xx/xxx/clickhouse
4. DB::ValuesBlockInputFormat::generate() @ 0x1a2ee08d in /xxx/xx/xxx/clickhouse
5. DB::ISource::tryGenerate() @ 0x1a196567 in /xxx/xx/xxx/clickhouse
6. DB::ISource::work() @ 0x1a1961ec in /xxx/xx/xxx/clickhouse
7. ? @ 0x1a1d4ae4 in /xxx/xx/xxx/clickhouse
8. DB::PipelineExecutor::executeStepImpl(unsigned long, unsigned long, std::__1::atomic<bool>*) @ 0x1a1d31cf in/xxx/xx/xxx/clickhouse
9. DB::PipelineExecutor::executeSingleThread(unsigned long, unsigned long) @ 0x1a1d3e71 in /xxx/xx/xxx/clickhouse
10. DB::PipelineExecutor::executeImpl(unsigned long) @ 0x1a1d0bd6 in /xxx/xx/xxx/clickhouse
11. DB::PipelineExecutor::execute(unsigned long) @ 0x1a1cfedc in /xxx/xx/xxx/clickhouse
12. ? @ 0x1a1ddeb1 in /xxx/xx/xxx/clickhouse
13. ThreadPoolImpl<std::__1::thread>::worker(std::__1::__list_iterator<std::__1::thread, void*>) @ 0xda8afea in /xxx/xx/xxx/clickhouse
14. ? @ 0xda8fa87 in /xxx/xx/xxx/clickhouse
15. ? @ 0x8f4b in /usr/lib64/libpthread-2.28.so
16. __clone @ 0xf874f in /usr/lib64/libc-2.28.so
 (version <IP_ADDRESS>)

Server A :) select * from t1;

SELECT *
FROM t1

0 rows in set. Elapsed: 0.035 sec.

Received exception from server (version 21.8.7):
Code: 60. DB::Exception: Received from xxx.xxx.xx.xxx:pppp. DB::Exception: Received from xxx.xxx.xx.xxx:pppp. DB::Exception: Table test.t1_446405868043894784 doesn't exist in test, database engine type: Cnch SQLSTATE: 42P01.

@xiaomo728 Thanks for your report. I take a look into this issue.

@xiaomo728 Hi, I cannot reproduce the problem. I am wondering if you using the latest version of ByConity?

@xiaomo728 Hi, I cannot reproduce the problem. I am wondering if you using the latest version of ByConity?

@Andygogo15, as you can see, I have mentioned that the ByConity version is 0.2.2.

@xiaomo728 Oh, I did not notice that. Then I think the problem is clear. You can try with the latest code in master branch. We have fixed the bug. Version 0.2.2 is a little old version. It does has the stroage consistency issue.

https://github.com/ByConity/ByConity/commit/c31635ec346f726ec4da0109c3544cb5f567fa83 should fixed this issue. Would you please try again. If the issue still exists, please let us know.


Add DFKai-SB to word online

[Enter feedback here]
DFKai-SB, a commonly used fonts in Taiwan and HongKong, is missing in Taiwan.

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

ID: 0000d5f9-43ff-36cf-48ff-453699c439e7
Version Independent ID: ca3d353c-221b-6e5c-09c2-df8afd86ff57
Content: DFKai-SB font family - Typography
Content Source: typographydocs/font-list/dfkai-sb.md
Product: typography
GitHub Login: @alib-ms
Microsoft Alias: alib

This issue is duplicated in #1099, which provides a bit more information. Closing this issue.


.

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
When using the grid system in v5.3 (latest version) the gutters from the using the "col" class can't be removed when there is a button element inside of it. Using g-0 only adjusts the y margin/padding for the gap, but the gutter width makes the col fixed in width with no way to get rid of it. I can adjust <p> elements with the g-0 through g-5 and it sets the x and y gap like it should. Its only buttons that this issue occurs with. I have been trying to find a fix for days now but I cant seem to find an instance online of the issue on more recent versions. I have tried many fixes including switching machines and environments, forcing the gutter to be removed by creating custom classes with margin and padding set to 0 with !important being used. If you could suggest a fix for this or look into it further I would appreciate it.
Reduced test cases
codepen replicating the issue: https://codepen.io/cavdev/pen/NWeNpjL
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v5.3

Hi @ccavanaugh18,
The g-0 class is used in a row, and the gutter is removed from the col as intended. You can verify this by adding a background color to the columns (for example, using bg-primary in col).
The buttons are given a specific width of 250px, which is why there seems to be spacing between them. To eliminate gaps between buttons, apply the w-100 class to the buttons to make them 100% width.

Hi @ccavanaugh18,
The g-0 class is used in a row, and the gutter is removed from the col as intended. You can verify this by adding a background color to the columns (for example, using bg-primary in col).
The buttons are given a specific width of 250px, which is why there seems to be spacing between them. To eliminate gaps between buttons, apply the w-100 class to the buttons to make them 100% width.

Thanks for your reply. Setting the width to 100% does make the button stretch to the width of the column. Since these buttons need to stay true to that size, I adjusted the main container's max width until the buttons occupied ~250px in width.

Closing it since the title and description have been removed by OP.


docs: use useDisclosure in alert AlertDialog example

📝 Description
Use the useDisclosure hook in first AlertDialog examle instead of useState.
⛳ Current behavior (updates)
The current first example for the Alert Dialog uses useState to determine whether the component should be visible or not. All other examples use the custom useDisclosure hook.
🚀 New behavior
The first example now uses the useDisclosure hook, too.
💣 Is this a breaking change (Yes/No):
No

Good catch, @feliskio! Congratulations on merging your first PR 💚


Provide support to link to artifacts referenced in repositories report

It would be helpful to link to the documents directly in the checklist section.

If a document or license is marked ✅, clicking through to the file could be helpful.

Hi @nate-double-u 👋
This would be a nice addition, thanks! We've just done it for the license scanning check along with some other improvements. We'll do it for the rest of the checks soon 🙂

Thanks so much!


fixture will be repeated with the case use pytest.mark.parametrize

`import pytest
@pytest.fixture(scope='module')
def a():
a = 'nihao'
print('初始化')
return a
@pytest.mark.parametrize('data',['a','b','c'])
def test_001(a,data):
print(a,data)`
this code ,the fixture will be used three times when I use the pytest-parallel
if i don't use pytest-parallel,only once.

This is not a bug. Kindly proceed to pytest documentation -> https://pytest.readthedocs.io/en/2.8.7/parametrize.html

This is not a bug. Kindly proceed to pytest documentation -> https://pytest.readthedocs.io/en/2.8.7/parametrize.html

I went over the link and did not see how does it answer the question? Can you be more specific as to why fixtire scope is not honoured when using pytest-parallel?


Mass hallucinations event

About the PR

Media

Changelog

:cl:

add: added mass hallucinations event that temporarily makes everyone on station hear random sounds (paracusia)

what if you already have paracusia does it remove it after event ends

Uhhh won't this give borgs and AI paracusia.

uh oh I forgot to remove MassHallucinations component from entites on event end, shouldn't break anything, but still


Bundling assets from within node_modules

I am trying to use an external ui library which has transpiled .js linking to local .css modules (css files for each js component module). Previously, with a simple webpack build, we allowed webpack to control how to bundle these things. This does not seem to work with next.js since node_modules is always ignored.
How can I consume such a UI library?
Bundling the entire library into single consumables is not an option as the importing library may only use 10% of the dependency.
Expected Behavior
I can let webpack/babel parse/transform certain dependencies within node_modules
Current Behavior
I cannot (or don't know how to!)
Steps to Reproduce (for bugs)

Import a js module from node_modules which references a local css file
See error similar to following:

Module parse failed<EMAIL_ADDRESS>Unexpected token (1:0)
You may need an appropriate loader to handle this file type.

Ah just come across https://github.com/zeit/next.js/issues/706
Looking forward to that!


Use room control to skip specific structures until desired

Doesn’t construct containers until PRL3 or roads until PRL4.
resolves #200

This Pull Request has been merged by GitConsensus.
Vote Totals

Yes
No
Abstain
Voters

3
0
0
3

Vote Breakdown

User
Yes
No
Abstain

dragoonreas
✔

tedivm
✔

apemanzilla
✔

Vote Results

Criteria
Result

Has Quorum
True

Has Votes
True


Question: Which rule is the plugin using when it choose the k8s node for the agent?

I'm asking this because all my agent pods are always scheduled on the same worker node.
If I run a pipeline which has a stage with 10 jobs, 10 agent are scheduled on the same worker.

@faxioman - GoCD Kubernetes Elastic Agent, by default, does not apply any logic when it comes to scheduling elastic agent pod on the cluster nodes. Internally, kube-scheduler would be using the Kubernetes default pod scheduling algorithm to schedule the elastic agent pods.
There are various factors that might be causing the pod to be scheduled on the same node:

Taints and Tolerations
Node Affinity and anti-affinity
Node Selector

As most of these are cluster configurations (specifically, node configurations), it's tough to answer why the pods are scheduled on the same worker node.
We suggest you to take a look at the Kube-Scheduler logs residing at /var/log/kube-scheduler.log (on the master node), to understand why the same worker node is always picked to schedule the elastic agent pods.
I'll be closing this ticket for now. Do let us know if you've any further questions.

@GaneshSPatil solved adding request limits to elastic agent profile definition. Could it be useful to add default request limits in pod template?


Issue with user mover and raster data

During #4960, we discovered the following issue withg pg_restore and rasters: http://trac.osgeo.org/postgis/ticket/2485
It was solved in postgis 2.3.0 (changelog), but in postgis 2.2.2 (changelog) there is a hacky script to fix this, see section 10.1 in http://postgis.net/docs/manual-2.2/RT_FAQ.html#faq_raster_data_not_restore- #3426, failing POINT EMPTY tests on fun architectures
For the migration, I ran the following script after creating the database and extension, but before importing the data:
ALTER FUNCTION _raster_constraint_pixel_types(raster) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _raster_constraint_nodata_values(raster) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _raster_constraint_out_db(raster) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _raster_constraint_info_regular_blocking(name, name, name) SET search_path=pg_catalog,public,postgis;
ALTER FUNCTION _overview_constraint(raster, integer, name, name, name) SET search_path=pg_catalog,public,postgis;

Although this works, it would be great if we could use the official script.

For the https://github.com/CartoDB/tech-ops/issues/252 issue, I just waited till' the importer created the user database and in that moment I loaded the script postgis says in their FAQ:
cartodb_user_c0d3271d-5dce-49c3-9c9f-04bc09543a5c_db=# \i /usr/share/postgresql/9.5/contrib/postgis-2.2/rtpostgis_proc_set_search_path.sql
DO

This happened again: CartoDB/tech-ops/issues/292
@skgsergio , did you just monitor the log and when the database was created you connected to it in order to run the script, or did you run the steps manually?

This was already solved


Adding bootstrap-scss with bower leads to non-resolution of icon font paths

Hey, I'm guessing this could be a problem somewhere else but after adding bootstrap-scss with bower the glyphicon fonts aren't being served because of path resolution issues.  My suspicion is this could be something to do with the bundling code not correctly bundling the fonts, however I'm not experienced enough with gulp to know for sure so thought I should try filing an issue to see if it's something simple.
Thanks.

You have to import it in your main.scss, using relative path. You can see an example in the feature/bootstrap branch.

The fonts are the reason I haven't yet added bootstrap. For development you can simply do as @pistolero77 stated however for building you will need to add steps that will copy the fonts to the dist folder and update the sass variable to point to the location in the dist folder.
I will include this in the next update.

Cool, explicitly setting the path worked.  Thankfully we're a bit away from deploying so will cross that bridge when I get to it.  Thanks guys.


Instagram URL signature expired

When embedding an instagram post (photo or video), the plugin works great and I can see the images pulling through. However, after a while the images stop appearing on my site and I get 403 error message. When loading the URL of the image directly, I get URL signature expired message.
If I embed the post again, the images pull through fine.
Any suggestions?

Any movement on providing a solution for this?

Hi @djrees and @craigliggins,
Seems to be related to the changes Instagram has made. Re-adding the post will generate a new signature but it's not a good long term solution (since the signature will expire and you'll have to add it again).
If it's only 1 image, you could try using the url with the size parameter e.g https://www.instagram.com/p/B3kwCXrA8xt/media/?size=l when templating. It should generate the image with the correct signature.
I'll look into implementing a function that'll allow embedded assets regenerate the file instead of re-adding it.
PS: if possible, can you attach the problem json file.

@pvldigital  that seems to be the solution that works across the board. Any chance of this being implemented soon. Regenerating existing embeds would be amazing as well.

@23d1 thanks for the file!
I'm currently implementing a replace button specifically for embedded assets which should make it easier to reupload the file.
After that's done i'll have a more in depth look on how to automatically regenerate the file if it's expired.

Facing this issue as well. Looking forward to your solution. If I can help test or provide additional data, let me know.

I've made some changes for Instagram on this branch https://github.com/spicywebau/craft-embedded-assets/tree/feature/instagram-auto-refresh for the issue.
If the date difference is more than 13 days and if the image doesn't return 200 then it'll automatically replace the file with a new one that has an updated signature.
It's not ready for release as I'm currently testing but I'll keep you all updated.

We released a fix for this issue. Feel free to reopen this if you have any more problems.

/media?size=l works great for posts, what's the alternative for Instagram reels?

@pushp1997 were you able to find the similar approach for reels?

@pushp1997 were you able to find the similar approach for reels?

Nope, couldn't find any solution!


Add parenthesis to score expression

Closes #10

@bunny-therapist Do you mind checking against the sample on their website?
http://yake.inesctec.pt/demo.html?doc=Sample1#

You are right about there being a mathematical issue though. Their scores have one as the highest score.  The scores in this repo are basically the opposite. The lower the score the better.

@bunny-therapist Do you have a discord we can discuss this on? I'm looking at this. The scores look better with this version but the actual results seem slightly worse. There seems to be an increase of results with adjectives and I don't think that's what we want.

I am running it against their sample, but I am not getting the same results with either this PR or the pre-existing yake-rust code.
I am trying to create python binding for yake-rust so we can replace LIAAD/yake in our projects. For this reason, I am running tests comparing the yake-rust results to LIAAD/yake - that is how I am finding these issues.
Even with this PR, I am not getting the same as LIAAD/yake nor the homepage. However, I believe that is because there are more issues here. I think this PR fixes one issue, but I still think there are issues related to relatedness and frequency (when I am comparing LIAAD/yake and yake-rust, the discrepancies appear to be coming from those two).

I am pretty sure this is also a bug: https://github.com/quesurifn/yake-rust/issues/12
But I think there may be more.

Do we expect agreement with the yake homepage? Because in that case we should just use their scores for the tests in the future.

@bunny-therapist Do you have a discord we can discuss this on? I'm looking at this. The scores look better with this version but the actual results seem slightly worse. There seems to be an increase of results with adjectives and I don't think that's what we want.
I'm thinking this could be a scenario where the fix you've posted is uncovering a deficiency somewhere else but I'm not sure.

No I do not have a discord. I have only used the discords of others to discuss their projects. I am not a very experienced discord user.

If I do the changes from #12 together with these changes, we get
        let results: Results = vec![
            ResultItem { raw: "data science".to_owned(), keyword: "data science".to_owned(), score: 0.0599 },
            ResultItem { raw: "Google Cloud Platform".to_owned(), keyword: "google cloud platform".to_owned(), score: 0.0656 },
            ResultItem { raw: "acquiring data science".to_owned(), keyword: "acquiring data science".to_owned(), score: 0.0735 },
            ResultItem { raw: "science community Kaggle".to_owned(), keyword: "science community kaggle".to_owned(), score: 0.0804 },
            ResultItem { raw: "acquiring Kaggle".to_owned(), keyword: "acquiring kaggle".to_owned(), score: 0.0924 },
            ResultItem { raw: "CEO Anthony Goldbloom".to_owned(), keyword: "ceo anthony goldbloom".to_owned(), score: 0.096 },
            ResultItem { raw: "Google Cloud".to_owned(), keyword: "google cloud".to_owned(), score: 0.1085 },
            ResultItem { raw: "Kaggle".to_owned(), keyword: "kaggle".to_owned(), score: 0.1178 },
            ResultItem { raw: "Google".to_owned(), keyword: "google".to_owned(), score: 0.1357 },
            ResultItem { raw: "machine learning".to_owned(), keyword: "machine learning".to_owned(), score: 0.1513 },
        ];

@bunny-therapist I can't. I'm going based on what I'd expect so not objective by any measure. For me though the science community kaggle and acquiring kaggle results shouldn't be in that top 10 list. Everything else looks okay.
When I originally released this I remember noticing the issue but thinking the results were close enough.
To answer your question, yes I think we should shoot for their scores.

I think the play here is to branch off of main, maybe create a "v1.0.0" branch to work towards 1:1 scores with that. That way if we start going the wrong direction we can easily just keep whats in main because I think it works well enough if we can't get to 1:1 scoring.

To work toward their scores, that sounds like a good idea. But we are merging this and looking into the other bug, right?
Or do you mean to do that as part of that branch?

@bunny-therapist I'll create a v1.0.0-alpha branch and release this as that.

I can post more about the other bugs I reported and what scores we get tomorrow. I have to stop for today since it is getting late here.

Thanks for your help. I'll release this today sometime.


add list shards handler

PR Description
Type of change

[x] New feature

Summary of the change and which issue is fixed
Main changes:

Add list shard handler

Checklist

I have run format.sh under script
I have commented my code, particularly in hard-to-understand areas
New and existing unit tests pass locally with my changes

proto update https://github.com/hstreamdb/protocol/pull/11


#56509 fix : Update code example to use double quotes for JavaScript strings

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #56509

This change updates the code example to use double quotes instead of single quotes, ensuring consistency with the project's JavaScript style conventions.

you have a lot of extraneous files in this PR, you also need to remove those before the PR can be reviewed

@ilenia-magoni Would you be please more specific about the extra files ?

Hey @Bhavneet-singh,
take a look at the Files changed tab. There's 17 files modified, while only the one related to linked issue should be changed.


Question: Created resources at related paths.

Is it acceptable to create a resource at a related link to associate immediately?
For example: POST /posts/1/comments

I say yes, but the spec has always left this open/undefined, so the other editors may think differently.

The spec doesn't have an opinion here, so feel free to do what works best for you. This is an application level concern.


ISPN-7363 Fix Runnable inject for disexec.

Test case for it is added as well.

The DistributedTaskLifecycleService methods are all intended to work with Callable. And Callable is run in the cluster instead of their own node. Then DistributedExecuteCommand have to be modified as well because it's intended to work with Callable as well. If so, then a lot of code need to be modified. And also to mention, the injecting occurs in the running node instead of the submit node. It's the minimum code I to modify for fix it I think. That's why I implement like that.
If you don't want to add any reference to RunnableAdapter in the DistributedExecuteCommand, DistributedTaskLifeCycleService, DelegatingDistributedTaskLifecycle or DistributedTaskLifeCycleService. Then you have to add Runnable field in DistributedExecuteCommand. And add Runnable methods to DistributedTaskLifecycle, DelegatingDistributedTaskLifecycle and DistributedTaskLifeCycleService.

Adding @wburns and @tristantarrant to the loop...

I don't like to change any accessing level as well. That's why I messaged slaskawi via IRC and said it may be not easy to fix.
The code can be implemented beautifully with a lot of code modified.
I was originally ask for CDI support for ClusterExecutor instead of DistributedExecutorService. But after I write some test. I found that Runnable for DES is not working as well.
Wanna see a more beautiful fix for this as well.

I think I understand fully the problem now...
If we submit a Callable instance with @Inject @Input Cache c; field, then CDI is able to find it (using field scanning) and do proper injection (here a proper code snippet).
However, if we submit a Runnable, the DefaultExecutorService will wrap it up into a RunnableAdapter (see here). The problem is that we lose the information about the fields. The DelegatingDistributedTaskLifecycle class just receives a RunnableAdapter with no fields (or with no fields annotated using @Inject @Input) and CDI can not help us any way.
I believe we have at least a couple of choices here:

Implement Runnable support directly into DefaultExecutorService. No wrapping, we need pure support. This will solve all the issues but possibly will cause a lot of refactoring, just as @SetoKaiba mentioned.
We can allow tight coupling between CDI Extension (DelegatingDistributedTaskLifecycle) and DefaultExecutorService. This effectively means accepting @SetoKaiba 's PR as is.
We can ban submitting Runnables. This way the user will have to wrap it to Callable himself. This actually makes a lot of sense, since you normally expect a result when submitting anything.
We can remove the RunnableAdapter and use Lambdas to wrap Runnables (the code will look like this: (Callable<Void>) () -> { task.run(); return null; }). Then in CDI extension I can scan all fields (together with all superclasses) and inject necessary caches. Note, with this approach we don't entirely lose information about the fields.

I would vote for the 3rd option (but first I need to write a quick and dirty POC to check if this can be done this way).
Any thoughts? @vblagoje @wburns

Hi. I just read your comment. Maybe the 4th won't work as well. Since the Lambda is with no difference between a RunnableAdapter. Because the Callable/Runnable submitted by user is not a managed bean. Then it won't inject fields for it. That's why we need DelegatingDistributedTaskLifecycle. If you're using lambda, the task is still not a managed bean. The fields in task won't be injected as well.
Ban the Runnable would be an option. Because Callable can achieve the same thing. Anyway, without result is understandable, because the task maybe used to make changes to data in the cache, not for a result. Because the cache is distributed. The result is actually there for nodes.

Yes, I've just noticed you are right @SetoKaiba. Wrapping into Lambda won't help us. That means that option no 4 is off the table.
In that case I would vote for option no 2 but with small changes. I would advise extracting RunnableAdapter to a separate class (IMO this will look much better than relying on static inner class) and I would also like to add a comment that any RunnableAdapter refactoring might break CDI.

Made some changes based on slaskai's commit.

Formatted code and add the call of future.get();

We're having some issues with the build completing, but in the tests run so far, some timeouts are appearing around DistributedExecutorCDITest and other DistributedExecutorTest classes. @SetoKaiba can you confirm whether these failures are related to your changes?

@slaskawi Could you please confirm the issue? I can't still make infinispan test case running on my project. I can't start the test. But it still uses the old classes from the repo instead of the local files.

@galderz My test case can be run in my environment now. I don't know why it uses the local changes now. But I can see the test is run successfully without any exception or timeout.

@galderz Please verify this patch. I run the test successfully with the patch. No timeout.

Looking...

Squashed as d5b8f888ceae78390205746413d011103c74e765 and integrated into master branch.
Thanks a lot @SetoKaiba!

@slaskawi @SetoKaiba could this be causing DistributedExecutionCompletionTest.testBasicInvocationWithRunnable to hang? E.g. http://ci.infinispan.org/viewLog.html?buildId=49851&tab=buildResultsDiv&buildTypeId=bt9

@danberindei yes it is. I'm testing a fix and I'll do a PR soon.

Fix here: https://github.com/infinispan/infinispan/pull/4857

@danberindei Hanging tests should be fixed by https://github.com/infinispan/infinispan/pull/4858


Run Kale on separate Kubernetes cluster from Kubeflow

My team has an existing Jupyterhub cluster we use for our org-wide notebooks. We also have a separate Kubeflow instance. Is it possible to run Kale in our Jupyterhub images, but have them send their jobs over to the Kubeflow cluster, even if they're not running within it?

@riordan I successfully setup a system like that. You should modify your Jupyterhub docker file to include kale launcher.

How did the jupyterlab environment "know" how to connect to the Kubeflow cluster? Do you set it up to share a Kubectl config?

I am using Google Cloud AI Pipelines so I would be interested in how to setup a configuration like that.

Thank you, @yaliqin! How did the jupyterlab environment "know" how to connect to the Kubeflow cluster? Do you set it up to share a Kubectl config?

Sorry, I missed your message. After we install the Kale related library in JupyterLab,  Kale can generate .py file as the pipeline file. I set up a shared storage with persistent volumes pointing to same nfs path in JupyterLab and Kubeflow, you can do that with volume snapshot as well. With that, the pipeline file will be uploaded to the storage of  Kubeflow namespace. And you can open it in Kubeflow. In my implementation, I reuse the istio-ingress service configured with Kubeflow, add some path branches. By doing that, you can open your pipeline file which is uploaded to Kubeflow by Kale directly to Kubeflow pipeline platform.

I am using Google Cloud AI Pipelines so I would be interested in how to setup a configuration to connect to an external Kubeflow cluster.

I haven't tried that. But I remember Google Cloud AI platform run pipeline with Kubeflow or Tensorflow by default.


Fix for cloning the FB repo

Fixed an issue with cloning the FlyBase repo from within the Alliance repo action.

@jogoodma Can we merge this?

@nuin Yes, this is good to merge.


Infinite mods list everywhere

Geode Version
V4.X.X
Related Problem
No response
Your Solution
I would really like it if you made it so that you make the mods lists in featured, download, recent, and others be infinite as well as installed.
Additional Information
No response

did you know that this is actually already added. In geode settings, the option is called "expand installed mods list"

Oh makes sense andriodd would explode if you did that


Userspace gas metering

Right now instruction gas metering calls into the supervisor for every basic block in order to report some consumption from the gas meter. This is slow because calling imported functions is a heavy operation.
Another way to handle this is the following: Inject a global variable that represents the consumed gas and have the injected code update this variable for every basic block and trap if all gas is consumed. The contract cannot access this global because it is added only later by instrumentation so it should be safe.
The challenge is how to sync this counter with the gas consumed outside of the contract: Every time a contract calls an imported function we consume some gas for this function call depending on the arguments inside the pallet-contracts. We have now two locations where gas is tracked:

pallet-contracts
Global variable within the contract

The idea is to wrap all imported function calls in a contract with one additional parameter and one additional return value that are used to sync the global variable. This wouldn't require any support from the execution engine. The drawbacks are that it increases the contract size and that it would require multi value support to allow additional return values. We would need to enable the multi-value feature of parity-wasm dependency. I don't think this is a problem.
So that the instrumentation does would be to:

Inject a new global that tracks gas left
Inject code into the start function which initializes the counter from seal_gas_left.
Inject a new internal function which is called instead of the external gas function and which decrements the gas meter internally (from the global). It calls out_of_gas (to be added) if it runs out of gas. Only emitting unreachable wouldn't tell us the reason why the execution trapped.
Wrap all imported function calls with an additional parameter and return value which is used to sync the global between pallet-contracts and the contract.

Updated the issue with more details.


Files URL hardcoded in database interfere with ip or domain change

flagrow/upload extension version: <0.5.7>
flarum version: 0.1.0-beta.7
Upload adapter causing issues: image url hardcoded with servername

Hello! Thanks for this great extension!
After changing server IP I have noted that no image was showing up.
So I looked in database table for uploaded files and saw that the complete URL is saved, for example: http://<IP_ADDRESS>/flarum/assets/files/2017-11-02/1509651602-0-rufusuefi.png
I think this could be better if only date and filename where saved. So the script assemble the complete URL with the server URL and the image directory variable, preconfigured by UI.
Thanks!

Sadly that is impossible because this extension allows for multiple upload adapters. In order to understand where the image has to be included from it stores the url when uploading. A good example of this is imgur, without saving the url there would be no way to know where the file was uploaded.
Instead you could easily replace all values in your database, see: https://github.com/flagrow/upload/issues/115#issuecomment-337151912


Backspace is troublesome with suffixes

add a field with a suffix
focus it and type away. All good.
go to the next field or whatnot
get back to it, click the end of the input, and try to backspace it
:boom: you can't backspace because the suffix is unremovable. It should, actually, backspace the last digit on the mask.

Good catch,  I'll look into a fix over the weekend.

That was my client catch, not mine! I'm so used to masks being troublesome that this issue just slipped over my reviews hahah
Thanks for the quick response, sir :)

I've spent a little time on this, and would like your opinion on something.  Not only is the bug you describe happening, there is a related scenario where if you change a digit somewhere else in the field, the cursor jumps to the end.
To solve these issues, I'm thinking of adding code that would force the cursor to always remain after the last digit and before any suffix.   Alternatively, it could move the cursor to after that last digit if it finds the cursor is located in the suffix but otherwise store and then restore the cursor location after render.  Might also have to take selections into account for both scenarios.  Thoughts?

on the cursor position: what makes the most sense to me is to avoid the
cursor to be placed after the suffix, as if the suffix didn't make part of
the input. Forcing it to stay in a fixed place doesn't feel right, as
you'll be reducing the user's possibilities. And I'm not sure it's needed
to store the cursor position? Might just be my outside view, tho.
Selections: doesn't seem like an issue right now; my workaround when I
wanted to erase the entire box with the suffix blocking me was, exactly,
Ctrl+A + Delete, instead of repeatedly hitting backspace.

Igor Santos
Desenvolvedor web @ Toptal - the top 3% of freelancer talent
http://www.toptal.com/#obtain-only-eye-opening-coders-now
igorsantos.com.br http://www.igorsantos.com.br
On Wed, Mar 8, 2017 at 4:27 PM, Joe Sillitoe<EMAIL_ADDRESS>wrote:

I've spent a little time on this, and would like your opinion on
something. Not only is the bug you describe happening, there is a related
scenario where if you change a digit somewhere else in the field, the
cursor jumps to the end.
To solve these issues, I'm thinking of adding code that would force the
cursor to always remain after the last digit and before any suffix.
Alternatively, it could move the cursor to after that last digit if it
finds the cursor is located in the suffix but otherwise store and then
restore the cursor location after render. Might also have to take
selections into account for both scenarios. Thoughts?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jsillitoe/react-currency-input/issues/16#issuecomment-285142131,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgfS9wAX3W1yCz5ALTOfZZA4YWBFIemks5rjwEEgaJpZM4MSiWA
.

I think I've made progress on this, but I'm not sure it's perfect.  Any chance you can download and check out the examples.  Let me know if this will work for you and your client.  If so, I'll publish the release to npmjs.

Hi, I'm interested in a fix for this bug too. I tried the example, and noticed a few strange things:

If you focus 'example 1' and type in 4 numbers, eg '11.11' it then selects the first 4 characters eg '11.1' instead of the full number '11.11' - if you then move out of the text input and come back, it seems to work correctly (reload the page and it'll fail again)

In these examples the inputs are restricted in length but I didn't see any configuration for that - eg  example 1 only allows <2>.<2> - what is limiting it to smaller than 100?

Thanks.

I can see you made some work on this, but it still doesn't quite solve the issues on dealing with a suffix. See if the following gif helps understanding its behavior: backspace after the suffix does nothing, and now it jumps to the end of text whenever I change the actual numbers. It's very easy to stay after the suffix as it's the "clear area" on the field and "safer" to click with the mouse.

I'm interested in this issue too, having the same problem here :/


sam deploy --guided doesn't seem to respect additional CLI args

Steps to reproduce
Both invoke
a) sam deploy --guided --capabilities CAPABILITY_AUTO_EXPAND
b) sam deploy                 --capabilities CAPABILITY_AUTO_EXPAND
Observed result
a) Deployment process is invoked with capabilities = "CAPABILITY_IAM"
b) Deployment process is invoked with capabilities = "CAPABILITY_AUTO_EXPAND"
Expected result
Should be CAPABILITY_AUTO_EXPAND also in case a).
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)

OS: Mac
sam --version: SAM CLI, version 0.48.0

Add --debug flag to command you are running

Guided is currently a walkthrough process and you cant explicitly set those arguments that will be asked as questions during the walkthough process. However, this is a good request and I definitely see the value add. Marking it as a request.

It would be helpful if the guided mode gave you an option to pick the type of capability you needed. In that wizard because it will just use CAPABILITY_IAM by default.

Reopening since the PR is merged but not released.

Patched in 0.53.0 release, closing


Azure CLI vs Go SDK generates different result for Compute Disk

Bug Report

Import package: github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v4
SDK Version:  v4.0.0
Go version being used: 1.19.3
Azure CLI version used to compare data: 2.44.1

Description

We have our automation fromework dependent on Azure CLI. We compare the Azure CLI response with the Azure Go SDK response.
We created a VM which resulted in implicit Disk creation as well. But when we are trying to fetch the resourceId information from the CLI, that is different from the information provided by SDK. Eg:
CLI response for resourceId:
/subscriptions/8e3f6178-c684-46e2-a023-52168f1aeaee/resourceGroups/QA-AZ-WIN-DD/providers/Microsoft.Compute/disks/qa-az-windows10-1_OsDisk_1_984dbf8db66c4e70b4dc0b005831b672
SDK response for resourceId:
/subscriptions/8e3f6178-c684-46e2-a023-52168f1aeaee/resourceGroups/QA-AZ-WIN-DD/providers/Microsoft.Compute/disks/qa-az-windows10-1OsDisk1984dbf8db66c4e70b4dc0b005831b672

in the above examples, the resourceId output is completely different.

In many cases we have seen that even the resourceGroup information for Compute Disk is different for CLI vs SDK.

Expectation?

The expectation was to have similar output pattern in case of CLI and SDK

Steps to reproduce?

Create a VM with Disk.
Run the CLI command to get the Disk information
Run the Go-SDK to get the same Disk information
Tally the output response.

@djuneja-uptycs Which SDK operation did you use and which property you used to get disk id? From my test, the SDK return of managedDisk id of osDisk is the same with the CLI.


injection: remove attempted legacy injection template support

I originally added this in an attempt to support reading 1.8 template by
1.9 istiod. This is not something we have backwards compatibility
guarantees, and its something we have broken almost every release.
I later realized its not feasible to support this, and since its not
even very useful (it mostly helps when someone accidentally uses the
latest image but release charts - which is good to fail fast). So this
PR cleans it up.
[ ] Configuration Infrastructure
[ ] Docs
[ ] Installation
[ ] Networking
[ ] Performance and Scalability
[ ] Policies and Telemetry
[ ] Security
[ ] Test and Release
[ ] User Experience
[ ] Developer Infrastructure
Pull Request Attributes
Please check any characteristics that apply to this pull request.
[ ] Does not have any changes that may affect Istio users.

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

unit-tests_istio
03a0270dd0f324412c6d2edd7b3fc1c6a3e80361
link
/test unit-tests_istio

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


Enable analysis summary v2 and sub-language file coverage information on GHES

This PR:

Enables analysis summary v2 on GHES 3.9 and later (since the new summary currently links to the status page unconditionally).
Enables sub-language file coverage information on the upcoming GHES 3.12 and later.
Cleans up the feature flag for exporting failed SARIF.

Merge / deployment checklist

[x] Confirm this change is backwards compatible with existing workflows.
[x] Confirm the readme has been updated if necessary.
[x] Confirm the changelog has been updated if necessary.

Now I get an opportunity to use #1971 :)

Well, I'm not too surprised that didn't work.  Pushing a fix.

Ah.. I'd also thought that it'd check out the current branch by default, but it does make sense that the checkout action isn't aware of the current branch ref.

Ah.. I'd also thought that it'd check out the current branch by default, but it does make sense that the checkout action isn't aware of the current branch ref.

I think it checks out the synthetic merge commit vs the head of the branch, and the latter is what we want to push to.


Might need to explicitly form DataFrame instead of Series to avoid KeyError: True

I was trying out this_works_1_18.ipynb. When I specified single stock instead of DOW30, it gave me KeyError: true:

I guess the culprit was line:
trunc_df = self.df.loc[date]

which returns pandas.Series when there is a single stock. I guess it should be double brackets to make it consistently return DataFrame:
trunc_df = self.df.loc[[date]]

KeyError error vanished after this change. So I guess same will apply to StockTradingEnvCashpenalty line 165, right?
However, while continuing to run the notebook, I encountered following error on model.load() call :
/home/mahesha999/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/common/callbacks.py:327: UserWarning: Training and eval env are not of the same type<stable_baselines3.common.vec_env.subproc_vec_env.SubprocVecEnv object at 0x7fcd16a74e20> != <stable_baselines3.common.vec_env.dummy_vec_env.DummyVecEnv object at 0x7fcd16c15ca0>
  warnings.warn("Training and eval env are not of the same type" f"{self.training_env} != {self.eval_env}")
/home/mahesha999/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/common/evaluation.py:65: UserWarning: Evaluation environment is not wrapped with a ``Monitor`` wrapper. This may result in reporting modified episode lengths and rewards, if other wrappers happen to modify these. Consider wrapping environment first with ``Monitor`` wrapper.
  warnings.warn(

EPISODE|STEPS|TERMINAL_REASON|TOT_ASSETS|TERMINAL_REWARD_unsc|CASH_PCT
   1| 491|Last Date      |$1001153  |0.00024%  |99.58%
Eval num_timesteps=1500, episode_reward=0.00 +/- 0.00
Episode length: 492.00 +/- 0.00
New best mean reward!
   3| 491|Last Date      |$1000000  |0.00000%  |100.00%
Eval num_timesteps=3000, episode_reward=0.00 +/- 0.00
Episode length: 492.00 +/- 0.00
   5| 491|Last Date      |$1000000  |0.00000%  |100.00%
Eval num_timesteps=4500, episode_reward=0.00 +/- 0.00
Episode length: 492.00 +/- 0.00

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-94-53a21a75c23f> in <module>
----> 1 model.learn(total_timesteps = 20000,
      2             eval_env = env_trade,
      3             eval_freq = 250,
      4             log_interval = 1,
      5             tb_log_name = '1_18_lastrun',

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/ppo/ppo.py in learn(self, total_timesteps, callback, log_interval, eval_env, eval_freq, n_eval_episodes, tb_log_name, eval_log_path, reset_num_timesteps)
    278     ) -> "PPO":
    279
--> 280         return super(PPO, self).learn(
    281             total_timesteps=total_timesteps,
    282             callback=callback,

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/common/on_policy_algorithm.py in learn(self, total_timesteps, callback, log_interval, eval_env, eval_freq, n_eval_episodes, tb_log_name, eval_log_path, reset_num_timesteps)
    245                 logger.dump(step=self.num_timesteps)
    246
--> 247             self.train()
    248
    249         callback.on_training_end()

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/ppo/ppo.py in train(self)
    189                     self.policy.reset_noise(self.batch_size)
    190
--> 191                 values, log_prob, entropy = self.policy.evaluate_actions(rollout_data.observations, actions)
    192                 values = values.flatten()
    193                 # Normalize advantage

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/common/policies.py in evaluate_actions(self, obs, actions)
    619         """
    620         latent_pi, latent_vf, latent_sde = self._get_latent(obs)
--> 621         distribution = self._get_action_dist_from_latent(latent_pi, latent_sde)
    622         log_prob = distribution.log_prob(actions)
    623         values = self.value_net(latent_vf)

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/common/policies.py in _get_action_dist_from_latent(self, latent_pi, latent_sde)
    581
    582         if isinstance(self.action_dist, DiagGaussianDistribution):
--> 583             return self.action_dist.proba_distribution(mean_actions, self.log_std)
    584         elif isinstance(self.action_dist, CategoricalDistribution):
    585             # Here mean_actions are the logits before the softmax

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/stable_baselines3/common/distributions.py in proba_distribution(self, mean_actions, log_std)
    150         """
    151         action_std = th.ones_like(mean_actions) * log_std.exp()
--> 152         self.distribution = Normal(mean_actions, action_std)
    153         return self
    154

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/torch/distributions/normal.py in __init__(self, loc, scale, validate_args)
     48         else:
     49             batch_shape = self.loc.size()
---> 50         super(Normal, self).__init__(batch_shape, validate_args=validate_args)
     51
     52     def expand(self, batch_shape, _instance=None):

~/.local/share/virtualenvs/stockpipjup-LcEfOh15/lib/python3.8/site-packages/torch/distributions/distribution.py in __init__(self, batch_shape, event_shape, validate_args)
     51                     continue  # skip checking lazily-constructed args
     52                 if not constraint.check(getattr(self, param)).all():
---> 53                     raise ValueError("The parameter {} has invalid values".format(param))
     54         super(Distribution, self).__init__()
     55

ValueError: The parameter loc has invalid values

Any help? Is this resolved in StockTradingEnvCashpenalty? Note that I was able to run the notebook fully successfully with DOW30. I added single stock TCS.NS instead of DOW30 and I started getting above errors.

@Mahesha999 Thx. Would like to pull a request to fix it?

Hello,
I am running Multiple Stock Trading Using Ensemble Strategy.ipynb and came across the same "ValueError: The parameter loc has invalid values" problem.
When i debug the error, my understandings are as follows:
We try to develop a policy which is a probability distribution(in our case Normal distribution). In order to come to this point, we train DNN to produce logits which is then converted to probability distribution via Softmax to normalize. There is a restriction for Mean of distr. to be Real which is violated for some reason through this -tensor to distribution- conversion hence producing this error.
I just wonder how Mean of distr. to be non-Real value through this conversion? Any idea on that?
Here is the error & tensorboard log:
============Start Ensemble Strategy============
nan
turbulence_threshold:<PHONE_NUMBER>37278
======Model training from:  2000-01-01 to  2019-01-02
======A2C Training========
{'n_steps': 5, 'ent_coef': 0.01, 'learning_rate': 0.0005}
Using cpu device
Logging to tensorboard_log/a2c\a2c_126_10
| time/                 |          |
|    fps                | 58       |
|    iterations         | 100      |
|    time_elapsed       | 8        |
|    total_timesteps    | 500      |
| train/                |          |
|    entropy_loss       | -35.6    |
|    explained_variance | -0.0519  |
|    learning_rate      | 0.0005   |
|    n_updates          | 99       |
|    policy_loss        | 26.2     |
|    std                | 1        |
|    value_loss         | 3.39     |

| time/                 |          |
|    fps                | 58       |
|    iterations         | 200      |
|    time_elapsed       | 17       |
|    total_timesteps    | 1000     |
| train/                |          |
|    entropy_loss       | -35.6    |
|    explained_variance | -0.287   |
|    learning_rate      | 0.0005   |
|    n_updates          | 199      |
|    policy_loss        | 25       |
|    std                | 1.01     |
|    value_loss         | 0.938    |

| time/                 |          |
|    fps                | 57       |
|    iterations         | 300      |
|    time_elapsed       | 25       |
|    total_timesteps    | 1500     |
| train/                |          |
|    entropy_loss       | -35.6    |
|    explained_variance | 0        |
|    learning_rate      | 0.0005   |
|    n_updates          | 299      |
|    policy_loss        | 124      |
|    std                | 1        |
|    value_loss         | 24.4     |

ValueError                                Traceback (most recent call last)
 in
2                                                  PPO_model_kwargs,
3                                                  DDPG_model_kwargs,
----> 4                                                  timesteps_dict)
~\Downloads\FinRL-Library-master\FinRL-Library-master\finrl\model\models.py in run_ensemble_strategy(self, A2C_model_kwargs, PPO_model_kwargs, DDPG_model_kwargs, timesteps_dict)
337             print("======A2C Training========")
338             model_a2c = self.get_model("a2c",self.train_env,policy="MlpPolicy",model_kwargs=A2C_model_kwargs)
--> 339             model_a2c = self.train_model(model_a2c, "a2c", tb_log_name="a2c_{}".format(i), iter_num = i, total_timesteps=timesteps_dict['a2c']) #100_000
340
341             print("======A2C Validation from: ", validation_start_date, "to ",validation_end_date)
~\Downloads\FinRL-Library-master\FinRL-Library-master\finrl\model\models.py in train_model(model, model_name, tb_log_name, iter_num, total_timesteps)
161     @staticmethod
162     def train_model(model, model_name, tb_log_name, iter_num, total_timesteps=5000):
--> 163         model = model.learn(total_timesteps=total_timesteps, tb_log_name=tb_log_name)
164         model.save(f"{config.TRAINED_MODEL_DIR}/{model_name.upper()}{total_timesteps//1000}k{iter_num}")
165         return model
~\Anaconda3\envs\FinRL\lib\site-packages\stable_baselines3\a2c\a2c.py in learn(self, total_timesteps, callback, log_interval, eval_env, eval_freq, n_eval_episodes, tb_log_name, eval_log_path, reset_num_timesteps)
197             tb_log_name=tb_log_name,
198             eval_log_path=eval_log_path,
--> 199             reset_num_timesteps=reset_num_timesteps,
200         )
~\Anaconda3\envs\FinRL\lib\site-packages\stable_baselines3\common\on_policy_algorithm.py in learn(self, total_timesteps, callback, log_interval, eval_env, eval_freq, n_eval_episodes, tb_log_name, eval_log_path, reset_num_timesteps)
225         while self.num_timesteps < total_timesteps:
226
--> 227             continue_training = self.collect_rollouts(self.env, callback, self.rollout_buffer, n_rollout_steps=self.n_steps)
228
229             if continue_training is False:
~\Anaconda3\envs\FinRL\lib\site-packages\stable_baselines3\common\on_policy_algorithm.py in collect_rollouts(self, env, callback, rollout_buffer, n_rollout_steps)
157                 # Convert to pytorch tensor
158                 obs_tensor = th.as_tensor(self._last_obs).to(self.device)
--> 159                 actions, values, log_probs = self.policy.forward(obs_tensor)
160             actions = actions.cpu().numpy()
161
~\Anaconda3\envs\FinRL\lib\site-packages\stable_baselines3\common\policies.py in forward(self, obs, deterministic)
535         # Evaluate the values for the given observations
536         values = self.value_net(latent_vf)
--> 537         distribution = self._get_action_dist_from_latent(latent_pi, latent_sde=latent_sde)
538         actions = distribution.get_actions(deterministic=deterministic)
539         log_prob = distribution.log_prob(actions)
~\Anaconda3\envs\FinRL\lib\site-packages\stable_baselines3\common\policies.py in _get_action_dist_from_latent(self, latent_pi, latent_sde)
570
571         if isinstance(self.action_dist, DiagGaussianDistribution):
--> 572             return self.action_dist.proba_distribution(mean_actions, self.log_std)
573         elif isinstance(self.action_dist, CategoricalDistribution):
574             # Here mean_actions are the logits before the softmax
~\Anaconda3\envs\FinRL\lib\site-packages\stable_baselines3\common\distributions.py in proba_distribution(self, mean_actions, log_std)
150         """
151         action_std = th.ones_like(mean_actions) * log_std.exp()
--> 152         self.distribution = Normal(mean_actions, action_std)
153         return self
154
~\Anaconda3\envs\FinRL\lib\site-packages\torch\distributions\normal.py in init(self, loc, scale, validate_args)
48         else:
49             batch_shape = self.loc.size()
---> 50         super(Normal, self).init(batch_shape, validate_args=validate_args)
51
52     def expand(self, batch_shape, _instance=None):
~\Anaconda3\envs\FinRL\lib\site-packages\torch\distributions\distribution.py in init(self, batch_shape, event_shape, validate_args)
51                     continue  # skip checking lazily-constructed args
52                 if not constraint.check(getattr(self, param)).all():
---> 53                     raise ValueError("The parameter {} has invalid values".format(param))
54         super(Distribution, self).init()
55
ValueError: The parameter loc has invalid values
events.out.tfevents.1616274336.DESKTOP-G9ABSN0.4956.zip

@Busy2045 This may help. You can use VecCheckNan to trace where is the issue.
and further you can refer this also and specifically for VecCheckNan example.
In my case after using VecCheckNan it show me that my reward was returning inf due to bug in reward calculation.


Error in eval pillarnet+multi_head: KeyError:  cls_preds, label_preds = torch.max(cls_preds, dim=-1) TypeError: max() received an invalid combination of arguments - got (list, dim=int), but expected one of:''

when i eval pillarnet+multihead, there is a error
TypeError: max() received an invalid combination of arguments - got (list, dim=int), but expected one of:''

(Tensor input, *, Tensor out)
(Tensor input, Tensor other, *, Tensor out)
(Tensor input, int dim, bool keepdim, *, tuple of Tensors out)
(Tensor input, name dim, bool keepdim, *, tuple of Tensors out)
how can i fix it
Thank you very much

If I have already the post-processing function in the pillarnet.py file commented out
`from .detector3d_template import Detector3DTemplate

just comment out the following in pillarnet.py in detectors directory when using anchor head single
`
# def post_processing(self, batch_dict):
#     post_process_cfg = self.model_cfg.POST_PROCESSING
#     batch_size = batch_dict['batch_size']
#     final_pred_dict = batch_dict['final_box_dicts']
#     recall_dict = {}
#     for index in range(batch_size):
#         pred_boxes = final_pred_dict[index]['pred_boxes']

#         recall_dict = self.generate_recall_record(
#             box_preds=pred_boxes,
#             recall_dict=recall_dict, batch_index=index, data_dict=batch_dict,
#             thresh_list=post_process_cfg.RECALL_THRESH_LIST
#         )

#     return final_pred_dict, recall_dict

`

Thank you for your reply,but I still have a question.I do not comment out the following in pillarnet.py in detectors.
when i eval pillarnet+multihead, there is a error
final_pred_dict = batch_dict['final_box_dicts']
KeyError: 'final_box_dicts'


fix(ws): try to fix result set drop stuck

Relates to TS-4626

Codecov Report
Attention: Patch coverage is 93.33333% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 70.82%.  Consider uploading reports for the commit 7f5ef0e to get more accurate results

Files
Patch %
Lines

taos-ws/src/query/asyn.rs
93.33%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #329      +/-   ##
==========================================
- Coverage   70.83%   70.82%   -0.01%
==========================================
  Files         114      114
  Lines       36532    36544      +12
==========================================
+ Hits        25877    25884       +7
- Misses      10655    10660       +5

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


RFC: Detached state

Hi,
just wanted to discuss how to solve one use case with ui-router.
Problem:

Open modal dialog (base of solution as in FAQ)
Modal background should be last state
Then going to modal state (url) directly it should have default state in background

To solve this issue, added few things in ui-router core:

detached option
needState option

Usage:
    $stateProvider.state('modal', {
      url: '/modal',
      detached: true,
      needsState: true,
      needsStateDefault: 'defaultStateName',
      onEnter: ['$state', '$modal', function ($state, $modal) {
        var modal = $state.modal = $modal.open({
          template: '
Modal with state in background
'
        });

        modal.result.then(null, function () {
          $state.modal = null;
          return $state.transitionTo($state.$detached || 'defaultStateName', $state.$detachedStateParams);
        });
      }],
      onExit: ['$state', function ($state) {
        if ($state.modal) {
          $state.modal.close();
        }
      }]
    });

Changes (no tests yet):
https://github.com/sarunas/ui-router/compare/detached-states-pr
What stuff o I need to make in order these features to be part of ui-router?

https://gist.github.com/eddiemonge/f6a58169c2846731a1eb


#225 - bug fix , App crash on adding new trip keeping fields blank

Description
Added condition that Trip info cant be left blank
if fields left blank Snakbar generates
Fixes #225
Type of change
Just put an x in the [] which are valid.

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes.

[ ] ./gradlew assembleDebug assembleRelease
[x] ./gradlew checkstyle

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings

I am facing one problem with this:
start typing trip name. Click on Add Trip. Nothing is happening.
(What's happening is snackbar is being displayed behind the keyboard & as the keyboard is open,user is not able to view that snackbar. You should hide the keyboard when Add Trip is pressed.

okk i will get it done

@f71uday You can use this function to hide the keyboard : https://github.com/project-travel-mate/Travel-Mate/blob/59004203fe01da11f4c80f49cde655cd20fce74f/Android/app/src/main/java/utils/Utils.java#L57

@f71uday Any updates?

Yes i started woking today . I was on a holiday break.


Bootstrap repository

Initial bootstrapping of the repository using kubebuilder. Introduces a barebones Input API, and a CI pipeline that runs sanity/unit test checks.

asdf


[Accessibility]A11y_VSCode_KeyboardShortcuts_Screenreader: Voiceover is not reading the keyboard shortcuts table.

Environment Details:
VSCode Version : 1.24.0
OS Version : MAC OS HighSierra10.13.5
Additional Details:
Screenreader,Voiceover,MAS1.3.1
Repro Steps:

Launch VS Code while VOICEOVER is ON.
Navigate to Settings icon in Activity Bar->Press Enter->Select "Keyboard Shortcuts" from dropdown.
3.Using keyboard key such as "tab" navigate to "Keyboard shortcuts" table data.
4.Observed that VOICEOVER is not reading table.

Actual:
While reading through the screen reader such as VOICEOVER,voiceover is not reading the table as well as the provided shortcuts for reading table such as "control-option-shift-down Arrow" is not working.
Expected:
While reading through the voicover, voiceover should reads the table as well as provided keyboard shortcuts should be worked.
Recommendations:
Refer below link which is repository of bug fixes code snippets:
https://microsoft.sharepoint.com/teams/msenable/mas/Pages/browse-fixes.aspx
User Impact:
User will not able to see where the current keyboard focus is.
MAS Reference:
MAS1.3.1: https://microsoft.sharepoint.com/:w:/r/teams/msenable/_layouts/15/WopiFrame.aspx?sourcedoc={54f28d1f-a2d1-4dcd-84e1-5c9b87e8aba4}
Attachment For Reference:
[Accessibility]A11y_VSCode_KeyboardShortcuts_Screenreader.pptx
Does this issue occur when all extensions are disabled?: Yes

Feels like a duplicate of https://github.com/Microsoft/vscode/issues/52154
Will rename that one


Optimise diagrams with a "central" element, i.e., an element with many, many outgoing and incoming connections

All ideas are based on a defined "threshold" on the number of connections:
Idea 1:  Increase the size of this central element?
Idea 2: Somehow reduce the number of connections (remove trivial dependencies)?
Idea 3: Fold all connections together that point to elements in the same package, so that the connections become a single connection to the entire package (the parent)?
Idea 4:  Switch to showing only outgoing links?
Idea 5: Stack elements to form a single "multi node" whenever this is possible without loss of information (or accept some loss of information)?
@jdonnert What do you think?

Now implemented lossless stacking (idea 5)

New ideas will be based on concrete examples (now with lossless stacking first).


jam out a new version of the website

because well it is a bit empty yeah

color it up!

c810c4151326ecb103b4fc332ec4f85aafb712a5 changed some stuff


How to run standalone?

Any way to run standalone without composer, just by loading it into apache?

Composer installation dependency is required


Copyq menu issues with hyprland scaling on search

Regression?
No
System Info and Version
 System/Version info
Hyprland, built from branch  at commit f642fb97df5c69267a03452533de383ff8023570  ().
Date: 2024-07-20
Tag: , commits: f642fb97df5c69267a03452533de383ff8023570

flags: (if any)

System Information:
System name: Linux
Node name: nixos
Release: 6.6.40
Version: #1-NixOS SMP PREEMPT_DYNAMIC Mon Jul 15 07:24:53 UTC 2024

GPU information:
09:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev ef) (prog-if 00 [VGA controller])

os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.05.20240717.c716603"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.05 (Uakari)"
SUPPORT_END="2024-12-31"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.05 (Uakari)"
VERSION_CODENAME=uakari
VERSION_ID="24.05"

plugins:

======Config-Start======

Config File: /home/bajic/.config/hypr/hyprland.conf: Read Succeeded
exec-once = /nix/store/nn54yahdasinv9hyk1hjwpakw8sqqyq0-dbus-1.14.10/bin/dbus-update-activation-environment --systemd DISPLAY HYPRLAND_INSTANCE_SIGNATURE WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && systemctl --user stop hyprland-session.target && systemctl --user start hyprland-session.target
animations {
  bezier=myBezier, 0.05, 0.9, 0.1, 1.05
  animation=windows, 1, 7, myBezier
  animation=windowsOut, 1, 7, default, popin 80%
  animation=border, 1, 10, default
  animation=borderangle, 1, 8, default
  animation=fade, 1, 7, default
  animation=workspaces, 1, 6, default
  enabled=yes
}

binds {
  allow_workspace_cycles=true
}

cursor {
  hotspot_padding=1
}

decoration {
  blur {
    enabled=true
    new_optimizations=on
    passes=1
    size=3
  }
  col.shadow=rgba(1a1a1aee)
  drop_shadow=yes
  rounding=10
  shadow_range=4
  shadow_render_power=3
}

dwindle {
  preserve_split=yes
  pseudotile=yes
}

general {
  border_size=2
  col.active_border=rgba(33ccffee) rgba(00ff99ee) 45deg
  col.inactive_border=rgba(595959aa)
  gaps_in=5
  gaps_out=10
  layout=dwindle
  resize_on_border=true
}

gestures {
  workspace_swipe=false
}

input {
  touchpad {
    disable_while_typing=true
    drag_lock=true
    natural_scroll=no
  }
  follow_mouse=1
  kb_layout=us
  numlock_by_default=true
  sensitivity=0
}

misc {
  disable_hyprland_logo=false
  disable_splash_rendering=true
  force_default_wallpaper=0
}

plugin {
  hyprbars {
    buttons {
      button_size=0
      col.close=rgba(ff111133)
      col.maximize=rgba(ffffff11)
    }
    bar_color=rgb(2a2a2a)
    bar_height=28
    bar_text_font=Ubuntu Nerd Font
    bar_text_size=11
    col_text=rgba(ffffffdd)
  }
}

xwayland {
  force_zero_scaling=true
}
bind=SUPER, C, exec, brave
bind=SUPER SHIFT, I, exec, brave --incognito
bind=SUPER, T, exec, terminator
bind=SUPER, E, exec, nautilus
bind=SUPER, V, exec, copyq toggle
bind=SUPER, Print, exec, screenshot
bind=SUPER SHIFT, S, exec, screenshot 1
bind=SUPER SHIFT, R, exec, ags quit; AGS_SKIP_V_CHECK=true ags
bind=SUPER, space, exec, ags -t applauncher
bind=ALT, space, exec, ags -t applauncher
bind=,Print, exec, ags -r 'recorder.screenshot()'
bind=SHIFT,Print, exec, ags -r 'recorder.screenshot(true)'
bind=SUPER, L, exec, ags -t powermenu
bind=SUPER, N, exec, ags -t weather
bind=SUPER, S, exec, ags -t quicksettings
bind=CTRL ALT, Delete, exec, xterm -e powermenu t
bind=SUPER SHIFT, Delete, exec, xterm -e powermenu t
bind=SUPER, Page_Up, exec, wpctl set-default $(wpctl status | grep "Digital Stereo (HDMI" | grep "\d+" -Po | head -n 1) && notify-send "Audio Output changed to HDMI"
bind=SUPER, Page_Down, exec, wpctl set-default $(wpctl status | grep "SteelSeries Arctis 7 Game" | grep "\d+" -Po | head -n 1) && notify-send "Audio Output changed to Headset"
bind=SUPER SHIFT, escape, exec, playerctl --all-players stop
bind=CTRL ALT, BackSpace, exit
bind=SUPER SHIFT, L, exit
bind=SUPER, Q, killactive
bind=SUPER, F, togglefloating
bind=SUPER, M, fullscreen
bind=SUPER SHIFT, M, fakefullscreen
bind=SUPER, J, togglesplit
bind=SUPER, P, pseudo
bind=SUPER SHIFT, P, workspaceopt, allpseudo
bind=SUPER SHIFT, F, workspaceopt, allfloat
bind=SUPER, 0, workspace, 10
bind=SUPER SHIFT, 0, movetoworkspace, 10
bind=SUPER, up, movefocus, u
bind=SUPER, down, movefocus, d
bind=SUPER, right, movefocus, r
bind=SUPER, left, movefocus, l
bind=SUPER, mouse_up, workspace, e-1
bind=SUPER, mouse_down, workspace, e+1
bind=SUPER ALT, left, moveactive, -20 0
bind=SUPER ALT, right, moveactive, 20 0
bind=SUPER ALT, down, moveactive, 0 20
bind=SUPER ALT, up, moveactive, 0 -20
bind=SUPER SHIFT, up, movewindow, u
bind=SUPER SHIFT, down, movewindow, d
bind=SUPER SHIFT, right, movewindow, r
bind=SUPER SHIFT, left, movewindow, l
bind=SUPER ALT, up, swapwindow, u
bind=SUPER ALT, down, swapwindow, d
bind=SUPER ALT, right, swapwindow, r
bind=SUPER ALT, left, swapwindow, l
bind=SUPER, 1, workspace, 1
bind=SUPER, 2, workspace, 2
bind=SUPER, 3, workspace, 3
bind=SUPER, 4, workspace, 4
bind=SUPER, 5, workspace, 5
bind=SUPER, 6, workspace, 6
bind=SUPER, 7, workspace, 7
bind=SUPER, 8, workspace, 8
bind=SUPER, 9, workspace, 9
bind=SUPER SHIFT, 1, movetoworkspace, 1
bind=SUPER SHIFT, 2, movetoworkspace, 2
bind=SUPER SHIFT, 3, movetoworkspace, 3
bind=SUPER SHIFT, 4, movetoworkspace, 4
bind=SUPER SHIFT, 5, movetoworkspace, 5
bind=SUPER SHIFT, 6, movetoworkspace, 6
bind=SUPER SHIFT, 7, movetoworkspace, 7
bind=SUPER SHIFT, 8, movetoworkspace, 8
bind=SUPER SHIFT, 9, movetoworkspace, 9
binde=SUPER CTRL, right, resizeactive, 100 0
binde=SUPER CTRL, left, resizeactive, -100 0
binde=SUPER CTRL, up, resizeactive, 0 -100
binde=SUPER CTRL, down, resizeactive, 0 100
binde=SUPER SHIFT CTRL, right, resizeactive, 10 0
binde=SUPER SHIFT CTRL, left, resizeactive, -10 0
binde=SUPER SHIFT CTRL, up, resizeactive, 0 -10
binde=SUPER SHIFT CTRL, down, resizeactive, 0 10
bindl=,XF86AudioMicMute, exec, ags -r 'audio.microphone.isMuted = !audio.microphone.isMuted'
bindl=,XF86AudioPlay, exec, playerctl play-pause
bindl=,XF86AudioStop, exec, playerctl stop
bindl=,XF86AudioPause, exec, playerctl pause
bindl=,XF86AudioPrev, exec, playerctl previous
bindl=,XF86AudioNext, exec, playerctl next
bindl=SUPER, BackSpace, exec, pkill -SIGUSR1 hyprlock && hyprlock --immediate
bindle=,XF86KbdBrightnessUp, exec, ags -r 'brightness.kbd++; indicator.kbd()'
bindle=,XF86KbdBrightnessDown, exec, ags -r 'brightness.kbd--; indicator.kbd()'
bindle=,XF86AudioLowerVolume, exec, pamixer -d 1
bindle=,XF86AudioRaiseVolume, exec, pamixer -i 1
bindle=,XF86AudioMute, exec, pamixer -t
bindle=SUPER, Tab, cyclenext
bindle=ALT, Tab, cyclenext
bindle=SUPER SHIFT, Tab, cyclenext, prev
bindle=ALT SHIFT, Tab, cyclenext, prev
bindm=SUPER, mouse:273, resizewindow
bindm=SUPER, mouse:272, movewindow
env=QT_QPA_PLATFORM, wayland
env=QT_QPA_PLATFORMTHEME, qt5ct
env=GTK_THEME, Orchis-Dark
env=XCURSOR_THEME, macOS-Monterey
env=XCURSOR_SIZE, 24
env=HYPRCURSOR_SIZE, 24
exec-once=startup
exec-once=hyprctl setcursor macOS-Monterey 24
layerrule=blur,rofi
monitor=DP-3, 3840x2160, 0x0, 1
windowrule=float, ^(org.gnome.Calculator)$
windowrule=float, ^(pavucontrol)$
windowrule=float, ^(nm-connection-editor)$
windowrule=float, ^(blueberry.py)$
windowrule=float, ^(org.gnome.Settings)$
windowrule=float, ^(org.gnome.design.Palette)$
windowrule=float, ^(Color Picker)$
windowrule=float, ^(xdg-desktop-portal)$
windowrule=float, ^(xdg-desktop-portal-gnome)$
windowrule=float, ^(transmission-gtk)$
windowrule=float, ^(com.github.Aylur.ags)$
windowrule=float, ^(com.github.hluk.copyq)$
windowrule=float, ^(copyq)$
windowrule=float, ^(jetbrains-phpstorm)$
windowrule=float,Rofi
windowrule=opacity 0.85,terminator
windowrule=move cursor -50% -20%,^(com.github.hluk.copyq)$
windowrule=move cursor -50% -20%,^(copyq)$
windowrule=size 350 200,^(com.github.hluk.copyq)$
windowrule=size 350 200,^(copyq)$
windowrulev2=stayfocused,class:com.github.hluk.copyq
windowrulev2=stayfocused,class:copyq
windowrulev2=stayfocused,class:Rofi

======Config-End========

Description
The issue is when I open command:
copyq menu

I get weird outlines / glitch of the program when doing some search screenshot attached.
I'm starting copyq like so:
QT_QPA_PLATFORM=wayland copyq --start-server

If I start it with QT_QPA_PLATFORM=xcb copyq
I can not search for anything as it does not focus for me on hyprland.
I'm installing copyq via home-manager.
How to reproduce
Run command:
copyq menu

Type anything to search trough clipboard history.
Crash reports, logs, images, videos

Yeah, here is how copyq menu with $QT_QPA_PLATFORM=wayland;xcb looks for me on e728e56cbc6af0a9be1276b2cf8e019a894016e7
https://github.com/user-attachments/assets/3dfd9f5a-8cea-41d0-ad13-d6b3d52e1165
In a meantime:
windowrulev2 = float,class:copyq

# works fine
bind = SUPER SHIFT, c, exec, copyq show

I prefer my https://gist.github.com/MahouShoujoMivutilde/7113baadb13208d91f4271a28debc58b with dmenu replaced with tofi --fuzzy-match true (tofi)
Src

In a meantime:
windowrulev2 = float,class:copyq

# works fine
bind = SUPER SHIFT, c, exec, copyq show

Yeah, unfortunatly this leaves me with my current setup, though I have toggle instead of show as a workaround for now which works fine.
exec, copyq toggle

Thanks for the script, if this issue does not get resolved I'll have to implement something cusom like that for my config.

Yeah, here is how copyq menu with $QT_QPA_PLATFORM=wayland;xcb looks for me on e728e56
04.52.Sunday.21.Jul.2024.mp4
In a meantime:
windowrulev2 = float,class:copyq

# works fine
bind = SUPER SHIFT, c, exec, copyq show

Although I prefer my https://gist.github.com/MahouShoujoMivutilde/7113baadb13208d91f4271a28debc58b with dmenu replaced with tofi --fuzzy-match true (tofi)
Src

I believe the class name should be com.github.hluk.copyq?

I'm on arch too, and apparently it now is. Huh. Well, both work because it doesn't need to match the full string unless between ^ and $.


Unable to use it with reflect

This library has an impressive collection of methods.
Unfortunately, having all methods defined at top level without being able to instantiate a generator value forbids the use of reflect to inspect this package (ie templates, generators).
Think of a template filter with name "fakeit" and arguments method, args...
Or a tag on a struct field like fakeit:"email".
The only way to implement something like this right now is to write a huge switch statement and painstakingly map all function names manually.
Any plans of providing such an API?

I hear where you are coming from. Right now i dont have a good reason to add this given most individuals usage specifically call the function they need to use.
Maybe you can give me a better use case for this that i can grasp its importance to add.
Thanks.


Bug 1993002: domainPatterns is required

+required and MinLength=1 is not enough, need to use +kubebuilder:validation:Required

/retest

/lgtm

/bugzilla refresh

/bugzilla refresh

/approve

/refresh


How to run it with Android Instrumentation Tests

I've been trying to run mockk with androi instrumentation test but no success.
I've added     testCompile "io.mockk:mockk:1.7.10"
To my build.gradle
And I was able to run it perfectly as a unit test.
But if I try to run as an Instrumentation Test, I get a unresolved reference in io.mockk.*
If I add :
androidTestCompile "io.mockk:mockk:1.7.10"
I was able to build it, doesnt get the unresolved reference anymore, but when I run the test I got:
java.lang.NoClassDefFoundError: Failed resolution of: Ljava/lang/instrument/ClassFileTransformer;
Is there something I'm doing wrong, I really wish to use mockk it with android instrumentation tests.
Here is my Test section in my build.gradle
`
testCompile 'org.mockito:mockito-core:2.7.22'

androidTestCompile 'org.mockito:mockito-android:2.7.22'

androidTestCompile 'io.mockk:mockk:1.7.10'

testCompile 'com.nhaarman:mockito-kotlin-kt1.1:1.5.0'

testImplementation 'org.hamcrest:hamcrest-library:1.3'

testImplementation "com.squareup.retrofit2:retrofit-mock:${retrofitLibVersion}"

testImplementation 'org.mockito:mockito-inline:2.13.0'

testCompile ('org.threeten:threetenbp:1.3.2'){
    exclude group:'com.jakewharton.threetenabp', module:'threetenabp'
}
testCompile 'junit:junit:4.12'
testCompile "io.mockk:mockk:1.7.10"

`

Same thing as here: https://github.com/oleksiyp/mockk/issues/39

Closing as duplicate #39. Soon to be resolved


lag in game after update

ive been playing overwatch through crossover using this tutorial https://www.youtube.com/watch?v=AxKK3ctISnk after the recent game update it's giving me 10 fps in game no matter what :(
i know i should update the patch but im not sure how to go about it and dont want to mess it up, my bandwidth is very limited i cant just reinstall everything

ok i just redid the steps and it seems ok, infact running way better than before… i dont think i had esync on last time, should i keep it on?

Yes, I would leave ESync enabled.


Uninstalling osmedeus

Hi, it would be helpful if you also have a script/guide to uninstall osmedeus

you can run rm -rf ~/.osmedeus ~/osmedeus-base to remove osmedeus