feat(amplify-auth-simulator): add auth mock sim

Add auth mock
Creates a server to connect to, repoints cognito-js and then crafts appropriate return messages

#10831

Description of how you validated changes
Checklist

[X] Add sim
[X] Add mock auth to commands/help
[x] Update frontend config to set aws_cognito_endpoint when in testMode
[x] PR for amplify-js to pickup aws_cognito_endpoint
[ ] Determine what Auth.signIn sends to server, and what needs to be returned

[ ] PR description included
[ ] yarn test passes
[ ] Tests are changed or added
[ ] Relevant documentation is changed or added (and PR referenced)
[x] New AWS SDK calls or CloudFormation actions have been added to relevant test and service IAM policies

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Would love some feedback on how to repoint the Cognito endpoints...

I've added aws_cognito_endpoint:"https://localhost:20009/" to frontend when testMode=true...will now try to get the frontend to use this as endpoint...

Codecov Report

Merging #10861 (2f27789) into dev (9100adf) will decrease coverage by 0.14%.
The diff coverage is 20.94%.

@@            Coverage Diff             @@
##              dev   #10861      +/-   ##
==========================================
- Coverage   47.43%   47.28%   -0.15%
==========================================
  Files         673      679       +6
  Lines       33274    33461     +187
  Branches     6724     6747      +23
==========================================
+ Hits        15782    15823      +41
- Misses      15803    15931     +128
- Partials     1689     1707      +18

Impacted Files
Coverage Δ

...ackages/amplify-auth-simulator/src/server/utils.ts
0.00% <0.00%> (ø)

packages/amplify-util-mock/src/auth/auth.ts
0.00% <0.00%> (ø)

packages/amplify-util-mock/src/auth/index.ts
0.00% <0.00%> (ø)

...ckages/amplify-util-mock/src/commands/mock/auth.ts
0.00% <0.00%> (ø)

...ckages/amplify-util-mock/src/commands/mock/help.ts
0.00% <0.00%> (ø)

packages/amplify-util-mock/src/mockAll.ts
0.00% <0.00%> (ø)

...es/amplify-auth-simulator/src/server/authserver.ts
70.00% <70.00%> (ø)

packages/amplify-auth-simulator/src/index.ts
75.00% <75.00%> (ø)

...ages/amplify-storage-simulator/src/server/utils.ts
54.16% <0.00%> (ø)

...li/src/domain/amplify-usageData/getUsageDataUrl.ts
100.00% <0.00%> (+12.50%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

Status update: it is able to connect the JS to the mocked server when in test mode. To get it to work you must also be using the frontend PR to pick up the config changes (it's only one line of code change, so you can just modify the file directly instead of creating a whole local install). Mocks are currently hard-coded as I figure out what actually needs to be returned from each API call...I suspect I'll get into some complicated issues with getting it to work correctly in conjunction with the graphql/owner fields...been a bit busy lately so haven't had a bunch of time to work on the next few pieces.

It would be nice to get this merged 🤞

I've marked it as ready for review, but I don't believe it fully works...if anyone wants to make some changes to get it fully working please go ahead...

any updates here?

Suggest if someone wants this they create a branch and work on it, I don't need it anymore...it's not fully working, but it got past a few of the major blockers...

Hey there, @GeorgeBellTMH 👋. In an effort to be transparent and assess our outstanding externally submitted PR’s, we wanted to follow up on this. Both this and the associated PR on the JS repo are related to mocking Auth, which is not something we’re looking to prioritize or implement at this point. As such, we close both out for the time being.
As we move forward towards a cloud-based sandbox experience with the upcoming launch of our Gen 2 Developer Experience of Amplify, it should address the workflow of testing with Auth and API categories in isolated environments. Note that Gen 2 is currently in developer preview, but our focus is getting it launched for General Availability soon!


Pixel Art

Completeness: 4
Comfort: 3
I need to study more.

If you're having trouble with an assignment, I strongly encourage you to include questions with your pull request comment. That way we can work together to figure out what you need to work on.

Yeah, I'm having trouble. I'll include questions.
On Fri, Oct 23, 2015 at 3:08 PM Adrian Maseda<EMAIL_ADDRESS>wrote:

If you're having trouble with an assignment, I strongly encourage you
to include questions with your pull request comment. That way we can work
together to figure out what you need to work on.
—
Reply to this email directly or view it on GitHub
https://github.com/ga-dc/pixart_js/pull/136#issuecomment-150665794.

--
TC

Looks like your submitted code is the same as one of the solutions. Strongly encourage you not to submit a solution as your assignment. Doesn't tell me much about where you're at with the subject matter. Would much prefer you submit your own code that doesn't work.
That being said, let me know if you're still having trouble with anything covered here. Happy to sit down and talk about it!
:+1:


options for this plugins should be detect when deoplete-clang2 is loaded.

@tweekmonster
I have this config in my vimrc, but my deoplete is lazy loaded on Insert mode event. so when I open a cpp file, :Neomake clang still get errors about use of undeclared identifier 'nullptr', after I go into insert mode, :Neomake clang will not show issues, so I think the options below is detect when deoplete is loaded.
let g:deoplete#sources#clang#flags = ['--std=c++11']
let g:deoplete#sources#clang#autofill_neomake = 1

@wsdjeg This is a problem I'm working on.  All of the logic for gathering the flags are in the deoplete source.  It needs to be moved to a reusable Python module, or ported to VimL and passed in via deoplete's context var.
Right now, the workaround is to first trigger InsertEnter.

hi @tweekmonster ,can you solve the this problem?


SMAAPass on a render target

Hello. Thanks a lot for this amazing library!
I am creating a tool to export high resolution images for prints from Three.js, like 16K x 16K pixels. It works well: i'm rendering on a large render target and then creating a PNG from there. Only problem: I learnt that rendering on a render target disables the antialisasing.
So the only way to get it, is by using something like SMAAPass. All the other filters work perfectly and i can export the PNG with those effects. But with SMAAPass I have an error in the console: THREE.WebGLRenderer: Texture marked for update but image is incomplete Texture. This happens with low resolution exports, any size, consistently.
Here is what i'm doing:
const composer = new EffectComposer(renderer)
composer.addPass(new RenderPass(scene, camera))
const pass = new SMAAPass(window.Image)
composer.addPass(pass)
composer.render()

const rtt = this.composer.writeBuffer
renderer.readRenderTargetPixels( rtt, 0, 0, size.width, size.height, array )
// and here i convert the array to PNG

The result is a png perfectly rendered but with no antialias and the error in the console. Do you think there could be a way to solve this?

Hi,
thanks for the issue report!
This could actually be a Chrome bug; the images that are supposedly incomplete are immediately available in the form of base64 strings, but Chrome seems to not create the Image instances properly.
I created a testbed for this issue and was able to replicate the error messages. However, after re-running the fiddle a few times (Ctrl + Return), the errors disappear. Furthermore, the errors don't show up at all in Microsoft Edge. I haven't tried Firefox, but I don't think that's necessary at this point.
I'll try to create a minimal replication of the error for a Chrome bug report.
Apart from that, I suggest creating a custom Pass for your use-case as shown in the fiddle. That way, you don't have to access the private internal read or write buffer of the EffectComposer and you'll always be able to find the result of the previous pass in the readBuffer that is passed into your Pass's render method.

After some more testing and reading I can now say that it's not a Chrome bug. Loading images is apparently always asynchronous, even if the src property is set to a base64 data string. The following example illustrates this behaviour:
// Define the image data.
const imgData = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII=";

// Create a new image.
const img = new Image();

// This logs true, see https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement
console.log("no src defined, complete:", img.complete);

// Verify that complete is true on load.
img.addEventListener("load", function() {

	console.log("image data has been loaded, complete:", this.complete);

});

// Set the data.
img.src = imgData;

// Immediately check complete.
console.log("src has been set, complete:", img.complete);

// Output:
//  > no src defined, complete: true
//  > src has been set, complete: false
//  > image data has been loaded, complete: true

The images that are used in the SMAAPass should be loaded asynchronously, but I'll first need to find a good way to do that. Suggestions are welcome.

Thanks for your reply. Actually I noticed the problem on Edge too and today after repeating the operation several times i think the AA was applied to one of my generated PNGs. So the async problem could explain that inconsistent behaviour (even if rare, as i could never replicate it that again).
I know nothing about AA algorithms and have still little understanding of the architecture of your library, but what is the image actually used for and could it be avoided?
You could load the image synchronously by using a dreaded sync XHR call (which could be acceptable here since the code is already in memory, not a real call to a remote server):
var request = new XMLHttpRequest();
request.open('GET', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII=', false);  // `false` makes the request synchronous
request.send(null);

if (request.status === 200) {
  console.log(request);
}

Fiddle: https://jsfiddle.net/rj350y4k/
Info: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Synchronous_and_Asynchronous_Requests

what is the image actually used for and could it be avoided?

The Subpixel Morphological Antialiasing technique uses two textures (look-up-tables) to detect specific patterns (weighted color-edges).
Since the intention behind the current code was to load the image synchronously, a synchronous XHR call seems feasible. However, I'd like to avoid the use of browser-specific constructors inside this library.
There's an alternative that requires a bit more time to implement: the original SMAA repository contains scripts for the generation of the look-up-tables. I'll port these scripts to JavaScript and integrate them into the SMAAPass. The images can then be created synchronously using the Canvas API when the pass is added to the composer. This could also reduce the file size of the SMAAPass class because no image data needs to be stored anymore. Let's hope this works out 😇
Until then, you could use the following hacky (and asynchronous) workaround to ensure that the images are loaded before you start rendering:
/**
 * Creates a new SMAAPass and ensures that images are fully loaded.
 *
 * @param {Function} done - A callback. The new SMAAPass will be passed to this function.
 */

function createSMAAPass(done) {

	const smaaPass = new SMAAPass(Image);

	const areaTexture = smaaPass.weightsMaterial.uniforms.tArea.value;
	const searchTexture = smaaPass.weightsMaterial.uniforms.tSearch.value;

	areaTexture.image.addEventListener("load", function() {

		if(searchTexture.image.complete) {

			done(smaaPass);

		}

	});

	searchTexture.image.addEventListener("load", function() {

		if(areaTexture.image.complete) {

			done(smaaPass);

		}

	});

	// Reload.
	areaTexture.image.src = smaaPass.weightsMaterial.areaImage;
	searchTexture.image.src = smaaPass.weightsMaterial.searchImage;

}

I encountered no errors with this setup.

Well, to be fair, the Canvas API is also browser-specific, but there's no way around that one 😅

I was actually thinking if the image element could be replaced by the canvas api. Your solution sounds reasonable. Passing an empty Image element to the constructor feels very mysterious. Anyway your hack is hacky but it works great!! My high resolution images look amazing, thanks :)
I now need to find out how to change the parameters of the SMAA pass. Will dig again into your code. Cheers

I got good results but the current implementation of the SMAA pass breaks something at high resolutions. I can get renderings up to 16K x 16K (based on gpu MAX_TEXTURE_SIZE) without post-processing, but when i add the SMAA pass images beyond a certain size fail (result is an empty image, but i'm not sure if that happens during post-processing or later in the process).
Is there any limitation with the image sizes used by the SMAA pass? I'm afraid that browser implementations of the canvas element might also put some limits there.

Is there any limitation with the image sizes used by the SMAA pass? I'm afraid that browser implementations of the canvas element might also put some limits there.

The postprocessing library imposes no artificial limitation on the size of render targets. Most of the included passes create their internal render targets based on the main render size of the renderer.
The only theoretical limitation in this regard is gl.MAX_TEXTURE_SIZE which you've already mentioned. This constant "returns the maximum dimension the GPU can address" -gman. However, this doesn't mean that it's safe to create several frame buffers of this size; the amount of available physical VRAM is still the hard limit.
If you set the render size to gl.MAX_TEXTURE_SIZE and use a simple RenderPass to render a scene, you'll already generate a lot of data. Assuming that a query for gl.MAX_TEXTURE_SIZE returns 16384 for most GPUs, a single RGB render operation will create 16384 x 16384 x 3 (RGB Format)  x 8 (Unsigned Byte Type) = 805.31Mb of data on the GPU. This is fine as long as you have that much VRAM available, but post processing often involves the creation of several off-screen frame buffers to store computed per-pixel information. The SMAAPass needs two additional render targets that must both be of the same size as the input texture. Together, these three textures are used to render the result to a fourth render target (the screen). This amounts to roughly 3.22Gb.
How much VRAM do you have?

I just noticed that one of the render targets created by the SMAAPass uses the RGBA format, so we end up at 3 x (16384 x 16384 x 3 x 8) + (16384 x 16384 x 4 x 8) = 3.49Gb.

That makes sense. The limit is the VRAM. I'm working on a computer with 2Gb only. So it's probably ok when it uses a single render target of 16x16K (no AA), but no more.
I just tested half max size: 8K x 8K (took 84 seconds) but it worked with SMAA and the quality is very nice. I should probably force a 50% safe limit or see if there is a workaround for my use case: i don't need realtime performance anyway so doesn't matter if it's slow. I'll open source something when it'll be more stable.

Alright, good luck with your work!
Meanwhile, I found some weird inconsistencies in the SMAA WebGL port from the three.js examples.
The search texture that is currently being used is completely black and doesn't seem to be cropped properly. I ported the search texture generation script and produced the correct image.
This is how it should look like (Y-flipped):

Unfortunately, the area texture generation procedure seems much more complex. The bad thing is that the script is poorly optimised and supposedly takes minutes to generate the texture. I'll port it anyway and see if that's true. Alternatively, I could try to port the script to GLSL and generate that texture on the GPU. Another decent option is to store the image data as an array in a source file. Creating an image from that data would be fast and synchronous, but the data would inflate the file size just like the base64 strings.
Furthermore, the current SMAA shaders differ quite a lot from the original reference implementation. I'll attempt to revise the shaders, too.

Whew, porting the python scripts took me a little longer than expected. Pesty bugs 🐛
Now to the results:
Generating the SMAA search image takes around 1 millisecond.
Generating the SMAA area image takes around 1 second.
While the area image generation doesn't take minutes to finish, it still takes too long for my taste. It wouldn't feel right to perform this complex generation step in the SMAAPass after all.
I'll include the ported scripts in the library for future reference, but they won't play an active role in the SMAAPass. The search and area images will be integrated in the form of raw image data instead of base64 encoded data strings. It's easy and fast to create a canvas from this data which can then be used as a texture.
I haven't looked at the SMAA shaders yet, but that's next on my list.

It turns out that my plans were too optimistic.
The raw image data takes up a lot of space: ~310Kb for the area image and ~3.5Kb for the search image. Storing the data as base64-encoded strings results in ~65Kb and 0.4Kb. That's much better, but decoding this data is not easy because it's also PNG-compressed. The best way to decode the pixel data is to create an Image and load the data asynchronously which would bring us back to square one.
Our options are as follows:

Include the full, uncompressed raw image data in the source.
Generate the images in the SMAAPass synchronously despite the computational complexity.
Expose the base64-encoded, PNG-compressed images to the user and let him/her take care of loading the images beforehand. The loaded images would then be passed to the constructor of the SMAAPass.

The first option considerably inflates the bundle size of every project that depends on this library while the second option turns the SMAAPass into a clunky pass that blocks the main thread.
The last option doesn't try to hide the image loading and allows the user to consider the images during a dedicated loading process (LoadingManager from three.js). It grants the most freedom and seems like the best way forward.
If there are no objections or alternative ideas, I'll just go ahead and implement that last option.

Sounds totally reasonable. After all async operations are normal in web applications and this solution gives the user a lot of flexibility. Should be documented though :)

Fixed in<EMAIL_ADDRESS>Some notes:
I messed around with the SMAA shaders and tried some things out, but with little success. The shaders are actually missing some key features such as advanced diagonal pattern detection and corner rounding. Porting these capabilities to WebGL requires a more in-depth understanding of the algorithms. Unfortunately, I don't have the time to work on this, so I'll leave it as is for now.
I replaced the previous area image as it was not the same as the one found in the official SMAA prepository. This should have a positive effect, although barely noticeable.
The search image was actually fine. I thought it was completely black, but the color values are simply not scaled up so they appear almost black.


Error during neovim startup

On neovim startup lsp_signature gives an error message:
Error executing vim.schedule lua callback: .../plugged/lsp_signature.nvim/lua/lsp_signature_helper.lua:173: attempt to index global '_NgConfigValues' (a nil value)
While it still shows signature and works as expected, the error message shows up continuously upon usage. And it isn't specific to any language server.

Seems to be a duplicate of https://github.com/ray-x/lsp_signature.nvim/issues/73 reported by me on the same minute :smile:

Thanks for reporting.  I used incorrect global var. Should have been fixed.


Is it possible to mount OneDrive with goofys?

Is it possible to mount OneDrive with goofys?

No, one drive is not supported. What is your use case? Which OS do you use?

Thank for reply! Data exchange with OneDrive (uploading) is really slow and i'm looking for best possible solution. Especially, that cost of OneDrive is much less than S3 solutions. I'm using Ubuntu 20 LTS

onedrive isn't supported


3.1.2 audio comes out of earphone on Android 10

I just updated to version 3.1.2 and I am getting testers reporting calls between iOS and Android 10 outputs audio to the earphone rather than the speakerphone on the Android side. Android to Android is fine.
I have also tried setting the default output with no luck.
setDefaultAudioRoutetoSpeakerphone(true)
Can you confirm this on your end?

This is a known problem, will be fixed in 3.2.0

Is there a workaround for this issue? It's difficult to do public testing without audio during call.

you can use LiveBroadcasting mode first.
setChannelProfile(ChannelProfile.LiveBroadcasting);
setClientRole(ClientRole.Broadcaster);


Please support Chakma language as supported language

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
There are about 550,000 people who are Chakma in the world.
We support many languages using your locale features l10n directory as described in the tutorials.
English, Myanmar, Sinhala, Vietnamese, Chinese, Hindi, Bengali
We make a tool for reading the Theravada Buddhist Language called Pāḷi and need to support asian languages.
It would be easier if you added this to a supported locale.
Then we could just add the ccp (chakma) locale tag as normal with other language locales.
We have a request to support Chakma language, but it is not on the supported list so I followed the instructions below for Norwegian and changed a few things.
https://github.com/flutter/website/tree/main/examples/internationalization/add_language
I got it to work, but I'm getting warnings which doesn't affect usage, but affects peace of mind.  We have over 2000 users in Android and 300+ windows and also ship on Apple.
The error in the Debug Output is this for mac ios or windows (and probably android too).

════════ Exception caught by widgets ═══════════════════════════════════════════
The following message was thrown:
Warning: This application's locale, ccp, is not supported by all of its localization delegates.

• A CupertinoLocalizations delegate that supports the ccp locale was not found.

If the application is built using GlobalMaterialLocalizations.delegate, consider using GlobalMaterialLocalizations.delegates (plural) instead, as that will automatically declare the appropriate Cupertino localizations.
2

The declared supported locales for this app are: en, my, si, zh, vi, hi, ru, bn, ccp

See https://flutter.dev/tutorials/internationalization/ for more information about configuring an app's locale, supportedLocales, and localizationsDelegates parameters.
════════════════════════════════════════════════════════════════════════════════

I have added quite a few attempts to fix this,
such as creating the custom class and adding it.
              localizationsDelegates: const [
                CcpMaterialLocalizations.delegate,
                AppLocalizations.delegate,
                ...GlobalMaterialLocalizations.delegates,
                GlobalWidgetsLocalizations.delegate,
                GlobalCupertinoLocalizations.delegate,
              ],

and also implementing CupertinoLocalizations as suggested from chatgpt (bard is still not so smart)
class CcpMaterialLocalizations extends GlobalMaterialLocalizations
implements CupertinoLocalizations {
const CcpMaterialLocalizations({
Our app is functional with all of this stuff.
Our app correctly Renders Chakma
There are about 550,000 people who are Chakma in the world.
It would be easier if you added this to a supported locale.  Therefore we request it.
Then we could just add the ccp locale tag as normal with other language locales.
Proposal
If you support ccp Chakma locale life would be easier for us and other developers that specialize in Asian languages or Buddhist texts.   Tipitaka Pali Reader
Below is a picture of implemented Chakma
The error/warning message does not crash on Mac or iOS but shows up when Chakma Language is invoked.

Hello and thank you for the request. Sadly, we do not have resources to maintain languages that are not officially supported by Google.

Sure


Sync original repository

Try a see if we can merge changes from the original repository.

Can't seem to solve the conflicts due to confusing instructions.


Extract Header Component into a Resuable Component

Is your feature request related to a problem? Please describe.
The header component is similar across different screens. This will result in repetition of code, violating the DRY principle
Describe the solution you'd like
Extract the code into a reusable component, such that any change or improvement will be done from one place
Describe alternatives you've considered
N/A
Additional context
N/A

@brianwachira I'd like to take up this issue and run with it

Alright, all the best!


Input select

https://twitter.com/stelian/status/720913927639560194

does not work on Firefox, NodeList is not an Array


[Bug] llama3 支持

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.
[ ] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
params.llama3_alpha = params_.original_max_position_embeddings / 2 * PI * inv_diff_freq_factor;
不应该在 2*PI 加一个括号吗？
Reproduction
--
Environment
--

Error traceback
--

OMG, you are absolutely right. I missed the parentheses.

OMG, you are absolutely right. I missed the parentheses.

May we release a hot fix version v0.5.2.post1?

Yes, working on it.
It's wired that 0.5.2 passes the model evaluation test.

The needle in a haystack experiment failed in v0.5.2. Now it works in v0.5.2.post1


Live Preview seems not working with color field

Issue description:
Hi @aristath , I am trying to include a color field type for a element to set background color & it's working perfectly (successfully saved).
But the live preview in the customizer is not working, I tried to figure it out but failed. Could you please take a look at the config code what I am doing wrong?
Version used:
(Did you try using the develop branch from github? There's a chance your issue has already been adressed there)
2.3.5
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
	tcsupport_Kirki::add_field( 'tcsupport_header_bg_color_option', array(
		'type'        => 'color',
		'settings'    => 'tcsupport_header_bg_color_option',
		'label'       => __( 'Change header background color', 'tcsupport' ),
		'section'     => 'tcsupport_header_style_section',
		'default'     => '#2196f3',
		'priority'    => 10,
		'alpha'       => true,
		'transport'   => 'postMessage',
	    'js_vars'     => array(
	        array(
	            'element'  => '#tc-header',
	            'function' => 'css',
	            'property' => 'background-color',
	        ),
	    ),
	) );

Note: When I change the function css to html it shows the HEX value in real-time (while changing through the color picker) . See: http://prntscr.com/bs9tnc
Thanks for your help.

Try using this code instead and let me know if that fixes your issue:
    tcsupport_Kirki::add_field( 'tcsupport_header_bg_color_option', array(
        'type'        => 'color',
        'settings'    => 'tcsupport_header_bg_color_option',
        'label'       => __( 'Change header background color', 'tcsupport' ),
        'section'     => 'tcsupport_header_style_section',
        'default'     => '#2196f3',
        'priority'    => 10,
        'alpha'       => true,
        'transport'   => 'auto',
        'output'      => array(
            array(
                'element'  => '#tc-header',
                'property' => 'background-color',
            ),
        ),
    ) );

Hi @aristath ,
Sorry for late reply, was out of city.
Thanks it's working now with your code.
Could you give me any suggestion about this https://github.com/aristath/kirki/issues/1058 ?
I saw your suggested code https://github.com/aristath/kirki/blob/2.3.5/includes/output/field/class-kirki-output-field-typography.php#L44-L56 & it's working fine in the customizer preview. But can't find any way to get the variant value separately (font-weight, font-style) for displaying in frontend when selected italic form.
https://kirki.org/docs/controls/typography.html .


Create an issue template with common debugging information

Things like:

Truststore version
OS variant and version
Python version
OpenSSL version
verify paths
Public URL if applicable

Maybe more?

@sethmlarson how about making python -m truststore.debug print all of this out?

@davisagli You read my mind! ✨


Update tsc-dyn-get to download platform-specific binaries

This fixes #88.

Thank you for this one!  I think it might close the M1 issue.


Scopes and artifacts in sbt

Steps:
Small repro can be found here: https://github.com/romanowski/sbt-problems/tree/artifact-resolve-problem
Problem:
// following lines cannot be resolved
libraryDependencies += "a" % "b" % "1.0.0" % "compile->runtime" artifacts(Artifact("b1", "jar", "jar"))

libraryDependencies += "a" % "b" % "1.0.0" % "test->runtime" artifacts(Artifact("b1", "jar", "jar"))

// however changing this to code below fixes problem
libraryDependencies += "a" % "b" % "1.0.0" % "compile,test->runtime" artifacts(Artifact("b1", "jar", "jar"))

This happens only when artifacts are present. For some reason sbt tries to download "b.jar" (in general "[module].jar"
Output:
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] 	[FAILED     ] a#b;1.0.0!b.jar:  (0ms)
[warn] ==== local: tried
[warn]   /home/krzysiek/.ivy2/local/a/b/1.0.0/jars/b.jar
[warn] ==== public: tried
[warn]   http://repo1.maven.org/maven2/a/b/1.0.0/b-1.0.0.jar
[warn] ==== buggy: tried
[warn]   /home/krzysiek/ivy-repo/repo/a/b/1.0.0/b.jar
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::              FAILED DOWNLOADS            ::
[warn] 	:: ^ see resolution messages for details  ^ ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: a#b;1.0.0!b.jar

Expectations
Sbt should handle both ways of configuring scopes (in case of artifacts are present)

Fixed in #2500


[BUG] Sometimes explorer will show an addition toolbar when I switch back to Win11 explorer

Can I remove [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Toolbar] directly?

I think you have to set the "locked" value to 1. I'll check when I'm back at my computer.

I had check the source, when switch to Win10, it set value to ITBar7Layout. But I can't found any code about delete it while switch back to Win11. So I doubt it needs to be deleted.
https://github.com/LesFerch/SwitchExplorer/blob/6b8b1964776f84a8d4114d8cf2f853d017caac1f/Program.cs#L281-L283

The ITBar7Layout setting changes one byte to 1 so that the Windows 10 Explorer remembers its windows size and position. That byte does not need to be changed back to 0 for the Windows 11 Explorer. I don't think the ITBar7Layout registry entry is related to the issue.
What is your current setting for the Locked dword value within the key HKCU\Software\Microsoft\Internet Explorer\Toolbar?
If it's currently 0, set it to 1 and see if that clears up the problem.

The toolbar randomly appear, so I can't be sure is it works.

Version 2.0.3 includes those registry settings and is now available to download.


WRKLDS-1292: Bump k8s dependencies to 1.30.1 and go to 1.22

This PR bumps k8s dependencies to 1.30.1 in addition to go version to 1.22.

/hold
until https://github.com/openshift/cli-manager-operator/pull/12 is merged. Because this PR is a good opportunity to test the image update.

/lgtm

/hold cancel


Switch from Babel to Bublé

Description of the pull request:
Some of you know that last week I wrote an ES2015 compiler called Bublé. This PR switches our build process over to use it instead of Babel.
Fixes the following issues:
Build performance. On this machine, npm start took over 15 seconds for the initial build (44 seconds with npm2, because Babel is rather slow to start up if you install it with npm2); it now takes around 6 seconds with Bublé.
The resulting build is also slightly leaner, shaving 4kb off the full minified build (24kb off the unminified build). Bublé doesn't rewrite any code that it doesn't need to, so the end result also reflects the original source code more closely.
Is breaking:
No

:+1: :tada: Another fun stat that has dropped significantly: Travis lost a full 2 minutes of build time. Though old node apparently isn't a fan of Bublé at this point.

Though old node apparently isn't a fan of Bublé at this point.

Ah, whoops! Looks like there's an array.find(...) in there (and possibly some other stuff) which isn't supported. Will fix that after lunch

:+1: I'm all in on this one since Ractive doesn't use the funny things from ES6+

It just occurred to me, isn't Buble targetting ES5? What about the legacy build? (unless we'll start to drop those).

Wanted to try this, but getting error fetch failed https://registry.npmjs.org/buble/-/buble-0.4.19.tgz on npm install

@MartinKolarik Weird – seems like npm lost the file. Have bumped version, try now – seems to be working
@fskreuz Bublé is doing the same job Babel was, i.e. converting arrow functions and classes and the like (and rewriting promise.catch(...) to promise['catch'](...). It's orthogonal to the question of legacy builds

It may actually be a good bit better for legacy builds because babel's helpers aren't particularly es3ish friendly... and they get peppered everywhere.

@Rich-Harris works now, and seems to be about 50% faster, so :+1: from me.


Importing <nixos-hardware/dell/xps/15-9500/nvidia> fails

System: Nixos 20.03
Output when importing this configuration:
building Nix...
building the system configuration...
error: The option `hardware.nvidia.prime' defined in `/nix/var/nix/profiles/per-user/root/channels/nixos-hardware/common/gpu/nvidia.nix' does not exist.
(use '--show-trace' to show detailed location information)

<nixos-hardware/dell/xps/15-9500> works well

That option does not exists yet in 20.03. We have it in nixos-unstable though.
cc @bahaynes

oh ok. It seems that hardware.nvidia.optimus_prime does exist. Is that an alternative?
I'm pretty new to NixOS. Would it be safe for me to upgrade to 20.09?

oh ok. It seems that hardware.nvidia.optimus_prime does exist. Is that an alternative?
I'm pretty new to NixOS. Would it be safe for me to upgrade to 20.09?

I have not checked if it provides equivalent features. You can try to upgrade to unstable and if it not works out just roll-back to 20.03. We don't have released 20.09 yet.

Thank you!
(should I just close this or keep it for potential compatibility with 20.03?)

oh ok. It seems that hardware.nvidia.optimus_prime does exist. Is that an alternative?
I'm pretty new to NixOS. Would it be safe for me to upgrade to 20.09?

That should work, it may give deprication warnings. Before upgrading to unstable I was just using the NVIDIA sync (there is an example in the 9560 folder), but it has worse battery performance.

Thanks @bahaynes

Should we keep this open?

Should we keep this open?

I'm not sure how we'd handle alternate configuration for 20.03 (is there a way to detect that?). It also will be deprecated when 20.09 is released. I could just update the readme to point to the 9560 profile, which is set up to use sync.

Should we keep this open?

I'm not sure how we'd handle alternate configuration for 20.03 (is there a way to detect that?). It also will be deprecated when 20.09 is released. I could just update the readme to point to the 9560 profile, which is set up to use sync.

Right now have some version checks for some option, but testing on stable is not very good. I hope I can improve the situation here a bit more: https://github.com/NixOS/rfcs/pull/70

Should be no longer an issue.


BUG: href.js doesn't trigger callback in IE

Clicking on an anchor element in IE doesn't trigger the callback passed to href to be called. I believe this is because the logic for finding the anchor node containing the href doesn't work properly in IE, specifically line 24, which checks if the found anchor points to the same host as the current window, because the host property of anchor elements is not available on IE (nor Safari, for that matter).

Uh oh, that's no good. Any suggestions on how to fix this?
On Sat, Feb 25, 2017, 23:01 Owen Derby<EMAIL_ADDRESS>wrote:

Clicking on an anchor element in IE doesn't trigger the callback passed to
href to be called. I believe this is because the logic for finding the
anchor node containing the href doesn't work properly in IE, specifically line
24 https://github.com/yoshuawuyts/sheet-router/blob/master/href.js#L24,
which checks if the found anchor points to the same host as the current
window, because the host property of anchor elements is not available on
IE
https://developer.mozilla.org/en-US/docs/Web/API/HTMLHyperlinkElementUtils/host
(nor Safari, for that matter).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/yoshuawuyts/sheet-router/issues/82, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ACWlenT__bIzT39FLOqFiQipD-WPtBpXks5rgKS2gaJpZM4MMJ0s
.

I'd be surprised if someone hasn't already written the logic to simulate/polyfill the host property - afterall, it should be deterministic given the href, right? I'm sure there are some corner cases, but you should be able to just pull in the bits you need, if you don't want the bloat of adding a whole library to do it.


Local File Support.

Hey Kyle, I was wondering if you're planning to add local file support in the future so we can load soundings from EOL Projects such as VORTEX and PERILS. Sharppy does a good job at displaying everything needed for it but at the same time not everyone can seem to get Sharppy to work due to script errors, plus the sounderpy layout is just very easy on the eyes.

Hey @CocoasColas! Thanks for the idea.
Can you attach a sample file or two that I can work with? I might be able to add something to make this possible.
Are these files usually formatted consistently?

Yeah, I'll send a bit of the files from TORUS-2019 in the C Plains, specifically 5/20/19. I'll also add the readme from EOL. They are formatted in .csv which I didn't expect and it's a lot of data since they did it at quite the high frequencies.
Far_Field_MW41_output_20190520_165957.csv
Far_Field_MW41_output_20190520_192909.csv
Far_Field_MW41_output_20190520_203418.csv
Far_Field_MW41_output_20190520_214246.csv
Far_Field_MW41_output_20190520_224224.csv
LIDAR_1_MW41_output_20190520_205240.csv
LIDAR_1_MW41_output_20190520_220607.csv
LIDAR_1_MW41_output_20190520_232343.csv
Probe_1_MW41_output_20190520_124207.csv
Probe_1_MW41_output_20190520_160048.csv
Probe_1_MW41_output_20190520_181720.csv
README_NSSLsonde_TORUS_2019.pdf

Ok so I sat down and wrote this up really quickly so you'll have a spot to get started from if you'd like to use this soon. I tested it on a single file but if they are the same then this should work for each.
# imports software
import pandas as pd
from metpy.units import units
import metpy.calc as mpcalc
import sounderpy as spy

# declare file
file = 'Far_Field_MW41_output_20190520_165957.csv'

# parse CSV into pandas df
obs_df  = pd.read_csv(file, skiprows=2)
info_df = pd.read_csv(file)

# parse needed df values into a SounderPy `clean_data` dict of values
old_keys = ['Filtered Pressure (mb)', 'Filtered Altitude (m)', 'Filtered Temperature (K)', 'Filtered Dewpoint (K)']
new_keys = ['p', 'z', 'T', 'Td']
units_list = ['hPa', 'meter', 'K', 'K']

clean_data = {}
for old_key, new_key, unit in zip(old_keys, new_keys, units_list):
    clean_data[new_key] = (obs_df[old_key].values)*units(unit)

clean_data['u'], clean_data['v'] = mpcalc.wind_components(((obs_df['Filtered Wind Spd (m/s)'].values)*1.94384)*units('kts'),
                                                          (obs_df['Filtered Wind Dir'].values)*units.deg)

# create dict of "site info" data -- I just quickly made this part up and it can be changed
clean_data['site_info'] = {
            'site-id'   : info_df.iloc[0][0],
            'site-name' : 'Far_Field_MW41',
            'site-lctn' : 'none',
            'site-latlon' : [obs_df['Filtered Longitude'][0],
                             obs_df['Filtered Latitude'][0]],
            'site-elv'  : obs_df['Filtered Altitude (m)'][0],
            'source'    : 'TORUS-2019 FIELD CAMPAIGN OBSERVED PROFILE',
            'model'     : 'none',
            'fcst-hour' : f'none',
            'run-time'  : ['none', 'none', 'none', 'none'],
            'valid-time': [info_df.iloc[2][0][1:5], info_df.iloc[2][0][6:8], info_df.iloc[2][0][9:11], info_df.iloc[2][0][12:17]]}

spy.metpy_sounding(clean_data)

Ope, quick note: I lat/lon backwards above.
It should be:
'site-latlon' : [obs_df['Filtered Latitude'][0],
                 obs_df['Filtered Longitude'][0]],

Thanks Kyle!


Doesn't compile in Swift 2.0

There were numerous issue that Im currently trying to fix...

Please use swift-2.0.

Didn't see that - thanks


fix: Native dependencies and babel plugins resolution issues

Description
This PR fixes fixes issues with native dependencies and babel plugins resolution (tested with react-native-reanimated and its babel plugin). It also fixes resolution of dependencies added as the library dependencies (the bare project wasn't linking them properly).

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


feat: Add support for Ordering Keys.

Needs system tests.

cc @kamalaboulhosn

friendly ping @kamalaboulhosn @dwsupplee

After discussing with @dwsupplee I'm working on improving the way we handle multiple ordering key batches in the batch publisher. Should be available next week.


chore(deps): update ci dependencies

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper
require
patch
v1.23.13 -> v1.23.14

terraform-ibm-modules/common-pipeline-assets
action
patch
v1.18.1 -> v1.18.2

Release Notes

terraform-ibm-modules/ibmcloud-terratest-wrapper (github.com/terraform-ibm-modules/ibmcloud-terratest-wrapper)
v1.23.14
Compare Source
Bug Fixes

deps: update gomod (#687) (01a6c0c)

terraform-ibm-modules/common-pipeline-assets (terraform-ibm-modules/common-pipeline-assets)
v1.18.2
Compare Source
Bug Fixes

fix notify bug (#580) (171179c)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

:tada: This PR is included in version 1.2.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Add OpenDistro SQL plugin to logs-db image

Checklist

[x] Affected Issues have been mentioned in the Closing issues section
[ ] Documentation has been written/updated
[x] PR title is ready for changelog and subsystem label(s) applied

This PR aims to try and solve being able to export data from Kibana using the SQL plugin in CSV format.
Using a query like this in the Dev Tools section of Kibana.
POST _opendistro/_sql?format=csv
{
"query": "SELECT * FROM lagoon-logs-* LIMIT 2"
}

More information on it here https://github.com/opendistro-for-elasticsearch/sql

Closing issues
Closes #1624

will need updating to 1.3.0 when #1580 gets merged

@shreddedbacon I didn't see anything explicit in the documentation - this integrates with the security plugin, right? e.g. you can't access the indices of other tenants via the SQL interface?

@smlx I tested it locally with a user with access to one project only and wasn't able to access indexes outside of that project/user role.


Fix typo

Coverage remained the same at 100.0% when pulling ad9671f60d43faa503d26444c7ebe4868ee45734 on einomi:patch-1 into b261bfed627bab459f41b549c51c48801c8f6aed on agraboso:master.

👍


[C++][R][Packaging] r-binary-packages macOS High Sierra failed by BMI2 related error

Describe the bug, including details regarding any error messages, version, and platform.
The last success nightly build (2023-07-19): https://github.com/ursacomputing/crossbow/actions/runs/5596846018/job/15162699322
The first failed nightly build (2023-07-20): https://github.com/ursacomputing/crossbow/actions/runs/5608731289/job/15196725675#step:13:7156
/Users/voltrondata/tmp/hbtmp/apache-arrow-20230720-60391-l8lhul/cpp/src/arrow/compute/key_map_avx2.cc:132:30: error: always_inline function '_pext_u32' requires target feature 'bmi2', but would be inlined into function 'early_filter_imp_avx2_x8' that is compiled without support for 'bmi2'
    out_match_bitvector[i] = _pext_u32(_mm256_movemask_epi8(vmatch_found),
                             ^

I think that #36662 is related.
Component(s)
C++, Packaging, R

CC @pitrou

Hmm, do we use BMI2 instructions in AVX2-optimized routines? That seems wrong.
@westonpace @felipecrv

Hmm, do we use BMI2 instructions in AVX2-optimized routines? That seems wrong. @westonpace @felipecrv

The use of _pext_u32 in key_map_vx2.cc dates back to 2021. Given that both AVX2 and BMI2 were introduced at the same time (Haswell), would it be a problem to also enable BMI2 when we enable AVX2 in the build?

I think this is the cause of #37596; any idea what we should do here @pitrou ?

@thisisnic I can try to fix the issue on the C++ side.

Hmm, actually, we already seem to consider that compilers supporting AVX2 also support BMI2. That leaves the issue of adding the proper compile flags, and also of fixing runtime dispatch.

By the way, is there a reason the macOS package builds in r-binary-packages depends on the windows-cpp build here? https://github.com/apache/arrow/blob/48cc2abe29fb261317d676090931b245e82f136e/dev/tasks/r/github.packages.yml#L138
@assignUser

@pitrou that step is a matrix job that builds the r package for mac and windows, as there are no prebuild mac binaries (at the moment at least^^) we need to wait for the windows step. There is no real lost time here though as we need to wait for both steps to finish before we can upload the packages so :shrug: it's not worth the duplicated code to  split it into two jobs. (well if I have to test mac only changes repeatedly, as you are here, I sometimes remove the windows part of the  job to speed up test times)


feat(DIA-203): adjust Artist header image ratio and minor font and spacing values

This PR resolves DIA-203
Description
Changes on the Artist page:

Adjust the Artist's image size to a shorter one
Adjust the font size of the Artist description
Bring back the Artworks counter to the Artist's Artwork grid

Artist without verified representation

Artist with verified representation

PR Checklist

[x] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

feat: artist screen changes including image ratio, artwork counter, font spacing, and spaces adjusts - araujobarret

iOS user-facing changes

Android user-facing changes

Dev changes

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Cross-platform user-facing changes (feat: artist screen changes including image ratio, artwork counter, font spacing, and spaces adjusts - araujobarret)

  Generated by :no_entry_sign: dangerJS against 14785a79cd33f4f9f31a80b69be7a0869b76273e


Tasmota: Advise not to use tasmota-minimal.bin

This PR adds some comments to advise not to use tasmota-minimal.bin as this will brick devices.

Great, thanks @barbudor!


I'm lost. A working example, please?

I love the project. But I fail to install any of the examples as the events/the data is simply never shown.
Could someone please provide a simple, archived version* of the html, the css, the .js and everything else needed to simply unpack-and-run an example? I'd be very grateful. Thanks!
*) no crud, nothing around the calendar, just a plain calendar view with two or three example events.

You can follow up #136 there are other issue and an example codide attached
This can be closed as a duplicate


getting error exit status<PHONE_NUMBER>

hi
i've tried the code but getting response "exit status<PHONE_NUMBER>" i did some research and found it's related to client library. btw where can i find below libs?cannot find them in current installation folder.
/opt/tibco/ems/ems841/ems/8.4/lib/libtibems64.dylib /usr/local/lib/.
/opt/tibco/ems/ems841/ems/8.4/lib/64/libssl.1.0.0.dylib /usr/local/lib/.
/opt/tibco/ems/ems841/ems/8.4/lib/64/libcrypto.1.0.0.dylib /usr/local/lib/.
thank you anw for your code.

You need to have EMS 8.x installed on your machine as i'm using dynamic linking to the EMS client libraries.

Code was built and testing on Mac. It's also been tested with EMS on Linux. What architecture are you using?

i built my code in windows 10.
go version go1.13 windows/amd64
below is the response i got
C:\Users\gustafh\go\src\emstest\ems>go test
exit status<PHONE_NUMBER>
FAIL    emstest/ems     3.296s
can you help elaborate more about dynamic linking. i cannot find this file "libtibems64.dylib" in ems 8.4 library.
thank you


Replace libdparse with DMD in HasPublicExampleCheck

This check warns for public and documented declarations that do not have a documented unit test attached. This check is fairly modest, as a documented unit test "attaches" only to the previous declaration (so there's a possibility that there's a unit test that doesn't test a declaration, and it won't warn).
In libdparse version, I've noticed a few things:

the module is not visited, however it's declarations are directly checked; this was not identically possible in DMD;
old check only looks for a few declarations: classes, interfaces, structs, unions, functions and templates;
because of the check's behavior and libdparse Module ASTNode, conditional declarations are completely ignored (such as a module-level 'version' block) - I've kept the same behavior in DMD version;
the check's DDoc mentions that enums are not checked, however enum checking does appear in code; on further inspections (and testing it against enums in phobos), I've noticed that enums are in fact NOT checked, due to libdparse Module ASTNode; I've kept the same behaviour;
the visitor intends to skip non-public declarations, however in the actual code only non-private, non-protected or non-package declarations are checked (that means 'export' declarations are also checked) - kept the same behavior, but should this be intended?

Mind the conflict.


Docs: Add a Tools Page

I think it will be great if the core team made some special tools with bootstrap the same thing already exists in MDB but I prefer to use bootstrap without material design.
Reference: https://mdbootstrap.com/docs/standard/tools/

@devhoussam do you mean a page with general bootstrap related tools, similar to an awesome list, or do you want a page with tools built by the bootstrap team for bootstrap 5/6?
Both seem like doable, though the later might be out of scope for the main bootstrap docs/ framework, maybe a dedicated site, similar to bootstrap themes, might be a good place for this instead.

Happy to see a PR here if there's a list somewhere we could pull from, but I'm not too keen on maintaining and organizing that kind of list in our main docs :).


Go 1.16 Bump

Signed-off-by: Ken Sipe<EMAIL_ADDRESS>Bump to Go 1.16
with a go mod verify and tidy

this will be replaced with 1.17 at some point


export GoferParam interface

Something like this should appear in fm-gofer.d.ts
export interface GoferParam {
    parameter?: any;
    callbackName: string;
    promiseID: string;
}

The point is so that in projects that use fm-gofer and fm-mock together, you can type the params passed to your mock functions. If you're not using fm-mock, it doesn't matter because no JS functions will receive the input of FMGofer, only the FM script called will.
This is more for me than anyone else.

https://github.com/jwillinghalpern/fm-gofer/commit/4ba9ad82da0dfc3630d7bf4d3095831aed736674


Real-time plot of requests for Linux (and other) terminals

Proposal
I would like to have real-time plotting (aka chart, graph, ..) for request latencies on a Linux terminal.
The README already includes an example for iTerm (MacOS), but none for other OS. I propose adding instructions on how to have real-time analysis on Linux, e.g. by using feedgnuplot.
Background
I'm currently testing my Connexion Example REST service with Kubernetes and want to test its behavior (including rolling updates and failures) under load.
Workarounds
I'm currently trying  vegeta dump -dumper=csv and feedgnuplot. This seems to work. I would make a PR to include instructions on how to use it.

My current approach looks like:
echo "GET http://localhost:8080/pets" | vegeta attack | vegeta dump -dumper csv | awk -F, '{ printf "%f %.2f %d\n", $1/(1000**3),$3/(1000**2),$2}' | feedgnuplot --stream --domain --lines --exit --y2 1 --title "Request Latencies" --timefmt "%s" --y2min 0 --y2max 600 --ylabel "Latency [ms]" --y2label "HTTP Status Code"

Cool! Can you make a screen capture and post it here? I'd love to see it in action.

My current command with "dumb" (ugly) terminal output:
echo "GET $url/pets" | vegeta attack -rate 8 | vegeta dump -dumper csv | awk -F, '{ printf "%f %.2f %d\nreplot\n", $1/(1000**3),$3/(1000**2),$2; fflush()}' | feedgnuplot --stream trigger --domain --lines --exit --y2 1 --title "Request Latencies" --timefmt "%s" --y2min 0 --y2max 600 --ylabel "Latency [ms]" --y2label "HTTP Status Code"  --terminal "dumb 270 62" --monotonic 2>/dev/null

@tsenart sure, I already had the video, but was busy on a conference (PyConWeb), so here finally the uploaded MP4 (could not make the conversation to GIF work): https://drive.google.com/open?id=1StqY0ZO66yyqejkNhCXqJsqZsJNUNcLx

Alright, PR welcome!

Did this go anywhere?

Hey @sandobits , I don't know if this is still relevant to you but since the deprecation of vegeta dump in favor of vegeta encode & the addition of the plot subcommand, you can achieve a comparable result with only vegeta command:
echo "GET $url/pets" | vegeta attack -rate 8 -name=8qps | > results.8qps.bin && cat results.8qps.bin | vegeta plot > plot.8qps.html && open plot.8qps.html.
Leaving this here as it might be useful for oneliner lovers that happen to see this issue 🙂


Exclude FREE users from overquota calculations

Fixes https://github.com/CartoDB/cartodb-platform/issues/3073
Acceptance: Run this manually in staging. You may need to do some usage of quota services beforehand in order to test that this works.

Hah, tests are failing, back to dev.

Rerunning tests, but it only failed in that random shp_spec that sometimes decides to randomly explode.

Acceptance is 🍏 , but let's wait until the discussions are over before deploy.


Remove unnecessary abstractions

Remove all the unnecessary classes and files and simplify backend code into fewer entities because currently it's a maze of classes and files that get called only once!

I'd say this has been fixed, code is cleaner and more inlined, there are less files and less classes and functions that are used only once. Closing!


Inconsistent class qualification: Practical return type \Stash\Pool | null does not match signature Stash\Pool | null

These should be the same and so not produce an error

Fixed by sharing name qualification code


Operation types labels not displayed

Some operation types labels appear to be missing in the dropdown:

When using Cozy in french, some localization errors are displayed in the client console:
Missing translation key for "t.unknown" main.js:90:9
Missing translation key for "t.order" main.js:90:9
Missing translation key for "t.transfer" main.js:90:9
Missing translation key for "t.check" main.js:90:9
Missing translation key for "t.deposit"

However, using Cozy in english did not fix the issue since there are still some blank options in the dropdown (there are no localization errors though).
I erased my browser cache but that did not help.
Same problem on Firefox desktop (40.0.3) and Chrome (all the blank fields appear on top in Chrome though).

Hi @nicofrand ,
could you give a look to the databrowser for doc types "operationtype" and checke that all the "name" field are like :
"type.toto" and not "t.toto".
And stop an start kresus if this fixes the problem.
Thanks.

No, they are not correctly named:
t.unknown	0
t.order	2
t.transfer	1
type.card	7
type.withdrawal	6
t.check	3
type.payback	5
t.deposit	4
type.bankfee	9
type.cash_deposit

Is there any way I can renamed them as wanted (there is not "edit" icon in the databrowser) ?

Cool. I knew i shouldn't have updated the names of operation types. This takes time to update them. @bnjbvr is this the race condition you feared?

Yes, that's probably it. The right way to fix this on the server is to break all races in a sequential fashion, at startup. I'll take care of it for the next version.


update to mosaic v0.12.2

Note: In the playground now: https://mosaic-playground.netlify.app/
The specs include new specs only supported by v0.12 (fetched dynamically) - notably density-groups but they don't work because v0.11.0 is bundled

LGTM, thanks!


data: Add Profile

Hey there! Exciting news! I've created an open source project called "devFind" where you can add your profile and others can search by skills. Join in and contribute to make it better!
You can start with adding your profile. Check the Readme file if you are a beginner

Hey @shyamtawli  i'm interested in taking up this enhancement feature can you assign it to me

Hello, I appreciate your work, I will look forward to this,
assign me this under hacktoberfest 2023 : )

Hey @bhalerao-2002 You can open a PR. It just add your profile and get familiar with codebase.


[release 1.8] Renew expired certs for TestCertOptionsAndRetrieveID (#32442)

manually cherrypick of https://github.com/istio/istio/pull/32442

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

Test name
Commit
Details
Rerun command

release-notes_istio_release-1.8
bb64e84eec99e753f42e1b5ae19923f97598add0
link
/test release-notes_istio_release-1.8

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.

/retest


RHBPMS-4220: Updated SSO configuration docs for using remote GIT services.

Thanks @csadilek , applying updates now, but meanwhile.. not even sure if adding this new stuff in a new section called "Securing workbench's file system services via Keycloak", because as you can see basically it says to change the login modules configuration of the security domain, which as far as I know, it's used by the FS services ( JAAS ), but probably am I missing other services that could be using it? So probably better adding this new configurations in a more global section? Thanks in advance!

@romartin seems ok to me as it's a sibling to "Securing workbench remote services via Keylcoak", so "Securing workbench file system services..." definitely fits there. IMO, it would be good to link to this chapter from "Configuration" as it also handles the more generic access restrictions...

Hi @csadilek , new commit with the fixes added. Thanks!

thanks!


Question on KSWIN drift detection

Hi!
I'm trying to use scikit-multiflow for drift detection. Looking through the code for KSWIN detector I see that description for method add_element doesn't match the code. As I understand it, new data is added after detection
https://github.com/scikit-multiflow/scikit-multiflow/blob/612c6cd623c2417217e361844dd14c5d2561c7b1/src/skmultiflow/drift_detection/kswin.py#L99-L128
Maybe I'm wrong, I would like to understand this issue,
Thank you!

Pinging @ChristophRaab for confirmation on this.

Hey @server-izetov.
Thank you for your question, and sorry for the late response.
This seems to be true and line 128
self.window = np.concatenate([self.window, [input_value]])
should be after line 111:
self.n += 1.
However, assuming an input sample size of one, the detection accuracy should not be changed dramatically.
@jacobmontiel how do we proceed? Seems to be an bug.


Updating to angular RC4

I just updated to Angular RC4 and when I'm trying to run my app with angular-cli I have ti error :
Unhandled Promise rejection: Error: Invalid provider - only instances of Provider and Type are allowed, got: [object Object]
Do you guys could know where is it coming from ?
Thanks a lot.

+1

from which version?

from which version? I think your can ref fuel-ui-cli-quickstart

+1
Generated a blank project using angular-cli, got the same error after integrating ng2-translate.

Ok, for me it was something else. I only added bundles/ng2-translate to vendor. When I added the whole ng2-translate package, everything is working fine. Ignore my comment above then. No issue with a fresh project created using angular-cli and Angular 2 RC4.

I get npm ERR! peerinvalid Peer<EMAIL_ADDRESS>wants<EMAIL_ADDRESS>

are you using an old npm version? < 3.x
because the peer dependencies ain't handled well before 3.x

Indeed I am using 2.15.8. but I thought that npm3 was still in beta.

it's been at least 6 months since it's been stable :)


Feature: Extract Entry into in-memory buffer

I am only interested in performing some in-memory operation (deserialisation) on one particular entry only, so I'd like a new API in Entry that extracts the content of the file to Vec.

NVM, Entry already implements trait Read.


[BUG] Investigate: object NoneType can't be used in 'await' expression

Context
As mentioned by @krassowski here: https://github.com/nebari-dev/jhub-apps/pull/220#pullrequestreview-1988770197
Quoting him:

This is not directly related to this PR as it also happens on runs with older JupyterHub, but what is a bit concerning is that the CI passes with green status when there are JupyterHub errors, so if there is a more severe issue in the future it may get by unnoticed.

I have been seeing this for a while, but haven't had the chance to investigate or fix it. It doesn't have any impact on functionality, but CI going green on this error is an issue. I have so far ignored is as this is coming from jhsingle_native_proxy, which will be replaced eventually with out custom proxy using oauth2proxy (to be created).
Value and/or benefit

More confidence in the CI
No noise in the logs

Anything else?
No response

This error shows up on every app deployment - even ones that are successful. I've learned to ignore it, but it would be good to get it resolved. Here is a recent deployment log:
2024-05-24 08:23:39 | [D 240524 08:23:39 auth:578] HubAuth cache miss: token:46c1ec774b254eeab818bb94a1b53979:01d5ed589b2d8f3ca45a9f6b602ff93899474db696fceeb55319ceecc461a522
-- | --
  |   | 2024-05-24 08:23:38 | TypeError: object NoneType can't be used in 'await' expression
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | return await self.oauth_proxy(port, path)
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/proxyhandlers.py", line 843, in proxy
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | return await self.proxy(self.port, path)
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/proxyhandlers.py", line 849, in http_get
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | return await self.http_get(*args, **kwargs)
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/websocket.py", line 102, in get
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | result = await result
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
  |   | 2024-05-24 08:23:38 | Traceback (most recent call last):
  |   | 2024-05-24 08:23:38 | HTTPServerRequest(protocol='http', host='nebari.quansight.dev', method='GET'<EMAIL_ADDRESS>version='HTTP/1.1', remote_ip='<IP_ADDRESS>')
  |   | 2024-05-24 08:23:38 | [E 240524 08:23:38 web:1875] Uncaught exception GET<EMAIL_ADDRESS>(<IP_ADDRESS>)
  |   | 2024-05-24 08:23:38 | [D 240524 08:23:38 auth:1398] Redirecting to login url: /hub/api/oauth2/authorize?client_id=jupyterhub-user-kcpevey%2540quansight.com-test-cf9b8f6&redirect_uri=%2Fuser%2Fkcpevey%40quansight.com%2Ftest-cf9b8f6%2Foauth_callback&response_type=code
  |   | 2024-05-24 08:23:38 | [D 240524 08:23:38 auth:835] No user identified
  |   | 2024-05-24 08:23:38 | [I 240524 08:23:38 proxyhandlers:848] SuperviseAndProxyHandler http_get 34841
  |   | 2024-05-24 08:23:38 | TypeError: object NoneType can't be used in 'await' expression
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | return await self.oauth_proxy(port, path)
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/proxyhandlers.py", line 843, in proxy
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | return await self.proxy(self.port, path)
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/proxyhandlers.py", line 849, in http_get
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | return await self.http_get(*args, **kwargs)
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/jhsingle_native_proxy/websocket.py", line 102, in get
  |   | 2024-05-24 08:23:38 | ^^^^^^^^^^^^
  |   | 2024-05-24 08:23:38 | result = await result
  |   | 2024-05-24 08:23:38 | File "/opt/conda/envs/default/lib/python3.11/site-packages/tornado/web.py", line 1790, in _execute
  |   | 2024-05-24 08:23:38 | Traceback (most recent call last):
  |   | 2024-05-24 08:23:38 | HTTPServerRequest(protocol='http', host='<IP_ADDRESS>:8888', method='GET'<EMAIL_ADDRESS>version='HTTP/1.1', remote_ip='<IP_ADDRESS>')
  |   | 2024-05-24 08:23:38 | [E 240524 08:23:38 web:1875] Uncaught exception GET<EMAIL_ADDRESS>(<IP_ADDRESS>)
  |   | 2024-05-24 08:23:38 | [D 240524 08:23:38 auth:1398] Redirecting to login url: /hub/api/oauth2/authorize?client_id=jupyterhub-user-kcpevey%2540quansight.com-test-cf9b8f6&redirect_uri=%2Fuser%2Fkcpevey%40quansight.com%2Ftest-cf9b8f6%2Foauth_callback&response_type=code
  |   | 2024-05-24 08:23:38 | [D 240524 08:23:38 auth:835] No user identified
  |   | 2024-05-24 08:23:38 | [I 240524 08:23:38 proxyhandlers:848] SuperviseAndProxyHandler http_get 34841 api


TraceLoggerAdapter is private within NuGet package

Describe the bug
Nuget provided dll has private TraceLoggerAdapter. When I look in source code, I see it as protected
I expect to be able to access TraceLoggerAdapter within PackageTemplateBase
Actually I notice that github, 3 yrs old code even checks RunninOnAzureDevOps whereas when I look at provided package .dll from Visual Studio, I don't see that.

I changed/downgraded to version 0.3.22 and everything is fine. I can access the properties I wanted and it is in line with what I see in source code.
Perhaps initially there were nuget packages published with higher version number than afterwards?

Hi @janis-veinbergs.
Apologies for this - I've just had a look and yes, we have a number of unlisted packages starting 3.x.x.
It's likely because came from the https://www.nuget.org/packages/Capgemini.Xrm.Deployment.PackageDeployer package. We made the decision to reset the version rather than starting at 3.x.x, but we must have already published several 'old' package versions before doing that.


Temperature Discrepancy Between FGLair and Homekit

Describe The Bug:

Fujitu heat pump is set to Cool 75.  Homekit displays "Cool to 74".
I'm sure this is related to a rounding or converting issue, as I have seen similar issues with Ecobee in the past.
To Reproduce:

Expected behavior:

Logs:
Show the Homebridge logs here, remove any sensitive information.

Plugin Config:
Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

Plugin Version:
Homebridge Version:
Node.js Version:
NPM Version:
Operating System:

I just installed Eve, and it displays it as 74.5

That is really interesting, it is a conversion / rounding issue for sure.
I'm in Canada, so my Heatpump and HomeKit are set up for Celsius which displays both the set point and current temperature with a decimal point.
I should be able to get that sorted out for Fahrenheit though. Can you get a couple of pieces of information for me to help troubleshoot?
In your FGLair app can you click the little button at the top to refresh the current temperature and tell me if it displays a decimal or just a whole number?
It would also be super helpful if you could start Homebridge with debug logging turned on and post a log here so I can see what the raw data from the heat pump looks like when it's configured for Fahrenheit.

So I tried putting my app in Fahrenheit, and its interesting, it seems that my heat pump at least, expects all the setpoints to still be in Celsius. So I think Homekit is doing the conversion in this case. I wonder if just having a setting to reduce the decimal place might fix the issue you are seeing.

@danhvos I pushed up a new version of this plugin v1.1.0. It has a new config option temperature_unit, if you set this to fahrenheit, I believe you should then see the values in homekit reflecting the values in the fglair app accurately.
Let me know if this fixes the discrepancy for you!


viz=False does not work

I don't really understand the visualizations tbh, so I wanted to turn them off, but viz=False, leads to the following error:
---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
[<ipython-input-44-e13ba08403d2>](https://ucrqhfq45wo-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240403-060136_RC00_621473488#) in <cell line: 28>()
     26     tl.store(z_ptr + n0_range + n1_range * N0, z, mask)
     27
---> 28 test(add_vec_block_kernel, add_vec_block_spec, nelem={"N0": 100, "N1": 90}, viz=False)

[<ipython-input-3-91403af2aaed>](https://ucrqhfq45wo-496ff2e9c6d22116-0-colab.googleusercontent.com/outputframe.html?vrz=colab_20240403-060136_RC00_621473488#) in test(puzzle, puzzle_spec, nelem, B, viz)
     40     if viz:
     41         failures = triton_viz.launch()
---> 42     if not match or failures:
     43         print("Invalid Access:", failures)
     44         print("Yours:", z)

UnboundLocalError: local variable 'failures' referenced before assignment

changing the test code a bit to something like this in the relevant lines worked for me:
failures=None
if viz:
    failures = triton_viz.launch()
if not match or failures:
    if failures:
        print("Invalid Access:", failures)

Can you let us know what is unclear about the visualizations? I think that would be useful for us.


Allow usage of the JSDoc @example caption

What this pull request contains

full lint/test compliance
implementation (here)

What this pull request impacts

runtime of the parsing process will increase per tagLine (@anyTag occurences) by one if-condition, evaluating strict string equality (tagName === "example")

if an @example is met, a RegEx-replacement will be executed on the whole line (line.replace(/<\/?caption>/g, "")).

What this pull request does
Strip

 tags from @example headings (inside the comment convertor factory).
My use-case and motivation as follows.
So, I'm brewing my own small TypeScript library to season my JavaScript client with. And, of course, I want to document the exposed API to give hints inline and on some nice kitchen table like home-brewed-soup.github.io. As I'm trying to conform to standards, I choose the adequate *doc format, which turns out to be TSDoc. Then I look for a nice tool to extract some nice kitchen table-ready HTML from my TSDoc comments and here I am (thank You! :heart:). As time files by, I'm getting ready to actually enrich my documentation with some nitty-gritty @examples (recipes) and immediately hit the VSCode vs. TSDoc wall regarding the @example (block) formatting:

https://github.com/microsoft/TypeScript-TmLanguage/issues/693
https://github.com/microsoft/tsdoc/issues/147
https://github.com/mjbvz/vscode-jsdoc-markdown-highlighting/issues/2

To demonstrate what I'm refering to, here's what happenes when applying a title to an @example block in VSCode (v1.59.1#3866c35):

Dissapointing inline-experience. But typedoc does render this correctly, so no issue there. Still, I want the VSCode inline-experience to be tasty. So I looked around, ate some more soup, and found out, that JSDoc (in contrast to TSDoc) forbits the usage of captions in @example headings. Unless! One may use the

 tags, to specify the @example caption. Opened VSCode, tried this out, et voila:

Very nice VSCode inline-experience, right there. And then I gave typedoc a go:

Damn, the markdown isn't rendered (:-(). I did not dig through all Your code, but as I can see the

 tags being rendered 1:1 into the HTML output, I'd guess strings enclosed in HTML tags are considered to be pre-rendered and therefore aren't piped through the markdown parser? Which seems correnct, in any other case. But nevermind, I did dig through Your code enough to be able to provide this tiny pull request, which just adds an if-clause at the right place to strip

 tags from @example tagLines. After applying the patch:

Yummy! :-)

JSDoc's decision here seems completely inappropriate to me.
 is a well defined HTML element. Repurposing it is.. awful.
Incidentally, that's why you don't see markdown being parsed here. It isn't parsed because
 isn't a span-level element.

Note that Markdown formatting syntax is not processed within block-level HTML tags. E.g., you can’t use Markdown-style *emphasis* inside an HTML block.
...
Unlike block-level HTML tags, Markdown syntax is processed within span-level tags.
https://daringfireball.net/projects/markdown/syntax#html

That said, TypeDoc tries to be flexible enough to generate reasonable docs for projects which do a lot of things... so I'm leaning towards that we should handle this. This really should be an update at the VSCode level to properly... I might take a look at trying to get them to accept a PR to properly handle your first example before merging this.

https://github.com/microsoft/vscode/pull/132821

This is awesome and I cound't have done it. Thank You very much. :pray:

Having thought about this a bit more, I think we should go ahead and strip
 from example tags, even though it's a horrible use, this will improve interoperability with projects which are coming from JSDoc.


Cloud events are not published by the server

What happened:
Cloud events are not published by the server, resulting in all event-based activities to fail.
This is due to the fact that, by default, we have been using a webhook.site endpoint which breaks after a certain amount of time and/or requests.
The default sink should be replaced with something a bit more reliable (such as pipedream.net), and means to configure it should be added.
What you expected to happen:
Cloud events are published as expected.
How to reproduce it:
Deploy a workflow on Synapse, for example. You will then be able to observe publishing errors in the server's logs

Fixed by  7343d0f1058e39bff7963cd9d39370f811c3f442

Fixed by 7343d0f1058e39bff7963cd9d39370f811c3f442


Add Support for different TLS Stores

Welcome!

[X] Yes, I've searched similar issues on GitHub and didn't find any.
[X] Yes, I've searched similar issues on the Traefik community forum and didn't find any.

What did you expect to see?
Currently the only way to store TLS certificates in the Open Source version of traefik is to store them on disk/as files. However for me personally this complicates the setup in my homelab as I need to synchronise these files across servers.
I would initially propose an S3 based certificate store, as that could potentially map relatively easily onto S3 coming from the files.
I do recognise that this could pose a security risk when using a publicly accessible S3 instance, but considering that more platforms support S3 compatible APIs for internal data storage, I think there is at least some use case for this.
This would NOT include support for multiple traefik instances running at the same time, as the storage would act basically the same as the current file storage and provide no extra synchronization, the only benefit would be that it becomes easier to move the traefik instances between nodes.

Duplicate of #4756

Although I see the similarity, does the other issue also cover different types of TLS Stores? All I can see in that discussion is the intend to have multiple stores, but those still use the file system for actually storing the certificates itself


MTURK Engine breaking after short use

Issue summary

As of today, MTURK engine will occasionally break after a very short period of time. The page will show text from the element I attempted to click (e.g. "Adding to queue") with a small bar under the text. After a few more seconds the page goes completely white, requiring a refresh.

Expected behavior

MTURK engine typically would allow me to use it without breaking. Adding HITs to queue, watchers, etc. Basically all the normal functionality of the program.

Actual behavior

Page displays an element of text somewhat relevant to what MTURK engine was doing at the time ("Adding to queue", "Adding watcher", etc.)

Steps to Reproduce the Problem

I haven't been able to find a way to reliably reproduce the problem. It sometimes happens after 30 minutes of use, and sometimes immediately after refresh.

Specifications

Mturk Engine version: 1.3.2
Are you using the Lite version? : No
Browser: Firefox

Here's a screenshot of the described problem.

Doing some spring cleaning. I'm assuming this was caused by watcher's not being read from browser storage properly, causing the crash. This was fixed in 1.3.0, I believe, so I'm closing this for now. If the issue shows up again, feel free to post a new issue and I'll look at it.


Convert FERC1 -> EIA 860/923 glue table test to Dagster

Background
The annual plant and utility id mapping process uses a mini-ETL run from test/integration/glue_test.py as described in #2293. It seems this requires a PUDL engine, and raw FERC XBRL/DBF engines, which can all be produced via dagster. Currently, however, it is still using the old XBRL/DBF extract functions, and should likely be using dagster assets.
Approach

[ ] Convert src/pudl/glue/ferc1_eia.py to use dagster assets where applicable
[ ] Create job for the get_missing_ids pipeline
[ ] Verify that tests are passing on new configuration
[ ] Verify that tox -e get_unmapped_ids works

This approach sounds good to me , @zschira do you think this can be worked on independently of the other integration test work you're doing?

(And should we change this issue to "Convert FERC1 -> EIA 860/923 glue tables to Dagster"?)

do you think this can be worked on independently of the other integration test work you're doing?

I think so. glue_test.py is using some fixtures that I've updated, but I think you could start converting src/pudl/glue/ferc1_eia.py to use assets and create a job. Then, hopefully my work will be in the dagster-asset-etl branch by the time you need those fixtures, so you'd be able to merge and get the tests working.

Some ideas

get_util_ids_ferc1_raw_xbrl

pulls in identification_001_duration table and does some pandas manipulation.
We could convert this to an asset that pulls in the id table using the FercXBRLSQLiteIOManager. However, the FercXBRLSQLiteIOManager currently merges the requested table with the id table. We’d have to add some bespoke logic for loading just the id table.
Could also keep the code as is and feed it the ferc1_engine_xbrl fixture.

get_util_ids_ferc1_raw_dbf

Create a source asset for f1_respondent_id then create an asset that depends on f1_respondent_id to do some pandas manipulation.
Could also keep the code as is and feed it the ferc1_engine_xbrl fixture.

get_plants_ferc1_raw

Convert to a collection of assets?
Where would these glue assets live? In a separate definition or in pudl.etl definitions? We don’t want to run this during the regular ETL though so I think we should create a separate definition.
We could also do a semi janky solution of creating an extract function that materializes the raw the source assets and returns a dictionary of data frames. We have to pass the dataset_settings config.

I think the best option is to just convert the get_plants_ferc1_raw function to a collection of assets. Each table in the plant_tables list will have a transform asset that reads in the raw tables from the SourceAssets created by pudl.extract.ferc1.create_raw_ferc1_assets(). We'll then need another asset that concats all of the transformed tables together and does the last bit of pandas operations. The glue_test_dfs will have to construct and execute a get_plants_ferc1_raw job using the assets and required resources.
The easiest option is to just keep the extract_dbf and extract_xbrl around and handle this in a future PR.

The easiest option is to just keep the extract_dbf and extract_xbrl around and handle this in a future PR.

I agree that we should keep our eyes on the prize of "integration tests pass and we can start trying to merge dev into dagster-asset-etl

I think the best option is to just convert the get_plants_ferc1_raw function to a collection of assets.

Agreed - tt'd be nice to convert all this "output glue mismatches" code into dagster one day, but that day doesn't have to be today.


backport AppDeployIntegrationTest fixes and mark stable

@jeschkies I don't think we should fix the log line in this pull request as it is a back port. I think the optimal procedure would be to fix on master, and then back port again. Does this sound good to you?

@timcharper sure. Go ahead.


Duplicate player UI in a programatic setup

Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.3.0
Can you reproduce the issue with our latest release version?
Yes
Can you reproduce the issue with the latest code from master?
Not sure
Are you using the demo app or your own custom app?
Custom
If custom app, can you reproduce the issue using our demo app?
No
What browser and OS are you using?
Brave on Linux
What are the manifest and license server URIs?
N/A - all

What configuration are you using?  What is the output of player.getConfiguration()?
This shouldn't be affected by it.

What did you do?
Load shaka-player through an import() statement

What did you expect to happen?
Not have 2 UIs when using a programmatic setup.
What actually happened?
There are 2 sets of controls visible when seeking - also seen in https://github.com/TeamPiped/Piped/issues/755
This can be fixed/worked around by removing all div elements inside shaka's container like so: this.$refs.container.querySelectorAll("div").forEach(node => node.remove());
The bug is visible on https://7ff4d18c.piped.pages.dev/watch?v=zs9QpPKDw74
I feel that the reason this is happening is that shaka is being loaded when a video element is already present in the document, thus causing issues when initializing the UI again.

@FireMasterK, we need more information.  Are you setting the controls attribute on the <video> element?  Are you using the data-shaka-player attributes and auto-setup, or are you creating shaka.ui.Overlay explicitly, or both?
Can you share the parts of your application that load Shaka and interact with the UI?


Google Speech API

Does this library always work? I've seen that the Google Speech API can be requested only 50 times a day, so can this be used as much as wanted even if it is using the google speech API? Also do I need to use my API key? or can I use the default one?
Thanks

Hi @csal3,

If you specify a key, the API quota is 50 requests per day.
If you don't specify a key, there is no quota. However, this may stop working at any time in the future - it is only meant for development/testing purposes.

Hi,
Thanks for your reply!
What do you mean by it may stop working in the future? Do you mean the library couldn’t be used anymore? Or that if it stops working one needs to use their API key? And in the future, do you mean in the near future?
Sorry for bothering you but I am currently working on my final year project and it involves speech recognition. I was thinking of using the google speech API as a recogniser in order to avoid training data. Thus I am trying to figure if I can use such libraries.
Thanks

On 04 Nov 2015, at 15:09, Anthony Zhang<EMAIL_ADDRESS>wrote:
Hi @csal3 https://github.com/csal3,
If you specify a key, the API quota is 50 requests per day.
If you don't specify a key, there is no quota. However, this may stop working at any time in the future - it is only meant for development/testing purposes.
—
Reply to this email directly or view it on GitHub https://github.com/Uberi/speech_recognition/issues/63#issuecomment-153730088.

If Google decides to change their Chrome Speech API key, the default key will no longer work, though everything else will continue to function as normal. This would not affect you if you use an API key.
As far as I can tell, this won't be happening any time soon. Since this library uses the same mechanism as Google Chrome, if they drop support for it, they also break speech functionality in current versions of Chrome.
This library works with more than just the Google Speech API. The Wit.ai API, in particular, gives very good results.
API keys are usually free. I have not paid for access to any of these in my development and testing of this library.
None of the supported APIs require training data! However, support will be added in the next major version for CMU Sphinx, which will allow you to specify your own training data if you need to.

Thanks a lot for the information!


Configuring Overload manager

Title: Unclear on how to properly configure overload manager
Description:
I have been looking into how to add overload manager to our bootstrap config. I'm using the docs at https://www.envoyproxy.io/docs/envoy/latest/configuration/operations/overload_manager/overload_manager#statistics as a reference. Currently I'm just interested in adding the built-in resource monitor so that related stats are emitted (no actions/thresholds yet), so I've added
overload_manager:
  refresh_interval:
    seconds: 0
    nanos: 250000000
  resource_monitors:
    - name: "envoy.resource_monitors.fixed_heap"
      config:
        max_heap_size_bytes:<PHONE_NUMBER>

to the config from the example in the docs.
However, this leads to an error during validation [2019-10-01 00:45:38.709][7212][critical][main] [external/envoy/source/server/config_validation/server.cc:60] error initializing configuration '<my config filename here>': Didn't find a registered implementation for name: 'envoy.resource_monitors.fixed_heap' make: *** [validation_server] Error 1. What additional steps do I need to take?
[optional Relevant Links:]

Any extra documentation required to understand the issue.

Bug Template
Title: One line description
Description:

What issue is being seen? Describe what should be happening instead of
the bug, for example: Envoy should not crash, the expected value isn't
returned, etc.

Repro steps:

Include sample requests, environment, etc. All data and inputs
required to reproduce the bug.

Note: The Envoy_collect tool
gathers a tarball with debug logs, config and the following admin
endpoints: /stats, /clusters and /server_info. Please note if there are
privacy concerns, sanitize the data prior to sharing the tarball/pasting.

Admin and Stats Output:

Include the admin output for the following endpoints: /stats,
/clusters, /routes, /server_info. For more information, refer to the
admin endpoint documentation.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Config:

Include the config used to configure Envoy.

Logs:

Include the access logs and the Envoy logs.

Note: If there are privacy concerns, sanitize the data prior to
sharing.

Call Stack:

If the Envoy binary is crashing, a call stack is required.
Please refer to the Bazel Stack trace documentation.

You need to add the extensions to your build config:
https://github.com/envoyproxy/envoy/blob/2d2c9a5fe1614715a98ba9d93a057c3f37c33590/source/extensions/extensions_build_config.bzl#L95-L100

Got it, thank you!


Add Codecov.io to trusted badge providers

From @JimiC on June 27, 2017 14:35
Please consider adding Codecov.io to trusted badge provider.
Copied from original issue: Microsoft/vscode-docs#1055

codecov.io has been down so far every time we tried to verify what it does. As long as it is not verified we won't add it to the while list.

@kieferrm Not sure what you mean by has been down. Haven't noticed any downtimes since we started using it. It's been working fine for us for some time now.

@JimiC I have been getting application errors, broken badges, etc. pretty much every time I tried for the last 7 days. For example, your codecov.io badges were always broken:

Today, however, it seems to work, at least their website.

@kieferrm The badge is deliberately not working on our repo because we were forced to break the link due to the restriction vsce introduced. In @robertohuertasm attempt to publish using v1.27.0 we had to sacrifice the codecov.io badge. That's actually the reason for this issue.
Proof that it works:

Now, "application errors" I have not yet seen with codecov.io but they are common for issuestats. Could it be you are confusing it with that?

Resolved in https://github.com/Microsoft/vscode-vsce/pull/185


Detour based code

As you said:

I'm merging this as-is, but I do have a few questions about the detouring method.
Namely, how does it deal with local variables? are they unable to be used, or is there some way to access the variables from the class getting its functions replaced?

Private fields of the class are accessed through System.Reflection. Private methods are also accessed through it although for some method overrides you to specify the types of the arguments that they take.

I'm having trouble building this. Says
"'DefaultTool' does not contain a definition for 'FindSecondarySegment'"

I think you're talking about Line 289:
flag2 = DefaultTool.FindSecondarySegment(num) != 0;
Are your references to AssemblyCSharp.dll and all other assemblies working? That might be it.

Crash Report! Seems that the following code is error-prone.
NetTool netTool = UnityEngine.Object.FindObjectOfType<ToolController>().gameObject.GetComponent<NetTool>();
000000013F573E16 (Cities) Scripting::ScriptingWrapperFor
0000000004C5487C (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Object:FindObjectsOfType (System.Type)
0000000004C5479D (Mono JIT Code) UnityEngine.Object:FindObjectOfType (System.Type)
0000000041454599 (Mono JIT Code) UnityEngine.Object:FindObjectOfType ()
0000000071F03DB5 (Mono JIT Code) FineRoadHeights.FakeNetTool:GetElevation (NetInfo)
000000000EA00920 (Mono JIT Code) NetTool:SimulationStep ()
0000000071EF1800 (Mono JIT Code) ToolManager:SimulationStepImpl (int)
0000000071EF171D (Mono JIT Code) SimulationManagerBase`2<object, object>:SimulationStep (int)
0000000071EF1695 (Mono JIT Code) ToolManager:ISimulationManager.SimulationStep (int)
0000000004CF0514 (Mono JIT Code) SimulationManager:SimulationStep ()
0000000004CD236B (Mono JIT Code) SimulationManager:SimulationThread ()
0000000004C18BBB (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
000007FEE8823DF7 (mono) mono_set_defaults
000007FEE87782A1 (mono) mono_runtime_invoke
000007FEE87A1647 (mono) mono_thread_interruption_request_flag
000007FEE885676D (mono) unity_mono_method_is_generic
00000000772059CD (kernel32) BaseThreadInitThunk
000000007733B891 (ntdll) RtlUserThreadStart


PS5 fails to build unless the TSubclassOf header is included into MDViewModel.h

Issue only happening on PS5 for some reason, all other platforms built without hitting the error.
Adding #include "Templates/SubclassOf.h" into MDViewModelBase.h fixed the issue.

oh nice find, I hit this the other day but added the include where I was including MDViewModelBase.h


Update cvpr-2019.md

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

File
Status
Preview URL
Details

mixed-reality-docs/cvpr-2019.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


:any => true performance issue

Hi there,
I'm trying to use the gem to filter out a list of customer which could have any of the given tag. The built in query from the gem provide this query result:
MetaCustomer.tagged_with(preferred_brands, :on => :preferred_brands, any: true).to_sql
SELECT `meta_customers`.* FROM `meta_customers` WHERE EXISTS (
	SELECT * FROM `taggings` WHERE `taggings`.`taggable_id` = `meta_customers`.`id` AND
								   `taggings`.`taggable_type` = 'MetaCustomer' AND
								   `taggings`.`tag_id` IN (
								   		SELECT `tags`.`id` FROM `tags` WHERE (`tags`.`name` LIKE 'nike' ESCAPE '!' OR `tags`.`name` LIKE 'adidas' ESCAPE '!')) AND
								   `taggings`.`context` = 'preferred_brands' limit 1
)

This is really slow (~12 secs) has we have more than a million of customers. I'm not really familiar with EXISTS but running EXPLAIN showcase that no index is then used on the MetaCustomer where query

I did a small tweak so the subquery return ids instead to avoid using exist and rely on the primary key index. The result run in 78ms for the same result.
Is anyone having the same issue? Am I missing an index ?

migration issue