[Documentation] How does it work?

Hello,
Do you think it would be possible to briefly explain how it works, internally? E. g. how an image can be turned into sound? A paragraph or two should be fine, no need to write a 20 page article. Just anything to get people going who don't know about it (which so happens to be my case, as I don't know; first time I saw this actually).

Hey @rubyFeedback I'm not the author but I've been messing with this code so I can try to explain what's going on.
A spectrogram works by showing frequency on the vertical axis, time on the horizontal axis.  If a certain frequency is loud at a certain time, it is shown as a bright spot on the spectrogram.
What this program does is it breaks down an image and maps the image height, width, and brightness of each pixel, to the frequency, time, and loudness of an audio tone, respectively.  For example, a pixel at the top of the image will be a tone with a high frequency, and a pixel at the bottom of the image will be a tone with a low frequency.  A pixel toward the left of the image will be earlier in the resulting audio than a pixel toward the right of the image.  If the pixel is bright, it's tone will be louder, and if it's dark, it's tone will be quieter.
The image is processed pixel by pixel and a sine wave audio tone is added at the corresponding frequency, time, and loudness so that the pixel is visible in the spectrogram.  All the sine waves are then added together to create a single waveform.  The reason a sine wave is used is probably because it's a single frequency instead of other waveforms like square or saw which have overtones on many frequencies.  The file that does most of this work is base.py, and the inline comments explain generally whats going on, if you wanna take a look for yourself.  Hope that helps.

Hey @rubyFeedback I'm not the author but I've been messing with this code so I can try to explain what's going on.
A spectrogram works by showing frequency on the vertical axis, time on the horizontal axis.  If a certain frequency is loud at a certain time, it is shown as a bright spot on the spectrogram.
What this program does is it breaks down an image and maps the image height, width, and brightness of each pixel, to the frequency, time, and loudness of an audio tone, respectively.  For example, a pixel at the top of the image will be a tone with a high frequency, and a pixel at the bottom of the image will be a tone with a low frequency.  A pixel toward the left of the image will be earlier in the resulting audio than a pixel toward the right of the image.  If the pixel is bright, it's tone will be louder, and if it's dark, it's tone will be quieter.
The image is processed pixel by pixel and a sine wave audio tone is added at the corresponding frequency, time, and loudness so that the pixel is visible in the spectrogram.  All the sine waves are then added together to create a single waveform.  The reason a sine wave is used is probably because it's a single frequency instead of other waveforms like square or saw which have overtones on many frequencies.  The file that does most of this work is base.py, and the inline comments explain generally whats going on, if you wanna take a look for yourself.  Hope that helps.


failed to fetch map URL certificate error

My Map doesn't load due to certificate verification is there any way to disable it? I found some solution however I don't know how to apply them
here is the solution which I found but I don't know how to use that.
_client = new HttpClient();
_client.badCertificateCallback = (X509Certificate cert, String host, int port) => true;

Error log:
I/flutter (23416): The following FetchFailure was thrown NetworkImageWithRetry failed to load
I/flutter (23416): https://my map url:
I/flutter (23416): FetchFailure(
I/flutter (23416):   attemptCount: 1
I/flutter (23416):   httpStatusCode: null
I/flutter (23416):   totalDuration: 0:00:02.896710
I/flutter (23416):   originalException: HandshakeException: Handshake error in client (OS Error:
I/flutter (23416): 	CERTIFICATE_VERIFY_FAILED: unable to get local issuer certificate(handshake.cc:363))
I/flutter (23416): )

I solve the issue with this issue Override HttpClient globally


Update to Mapbox navigation 2.0 beta 10

Updated to a beta version of Mapbox navigation.
I also noticed M1 mac workaround is no longer needed. So I removed the code used in Cocoapods related files which did this. I tested that it works on arm64 (m1 mac) and x86_64 (intel) architectures.
This is mainly a PR to remove the M1 mac workaround (and warnings), but I also had the mapbox update working yesterday when I was evaluating how hard it would be to update. It seemed quite easy so here it is too.
Closes https://github.com/ably/ably-asset-tracking-cocoa/issues/106

You might see that I removed the error handling, but this is because no error is thrown anymore. It's a little hard to find the response from MapBox, but here it is:


[Best Practise] How to release a product with operator

As a product, I may not able to publish the operator to operatorhub, as I need to customer buy the product first if they want to install.
So any best practice if I want to release a product via operator? Thanks!

@gyliu513 you probably meant to post this against https://github.com/operator-framework/community-operators ?

Thanks @dmesser , opened an issue at https://github.com/operator-framework/community-operators/issues/1508


Visualizations should be semantic out of the box [2]

Semantic web data should be added to every viz without relearning the concepts.

I think we have a better idea of this after the recent releases.


[Checkbox] - receive focus after click

By default, html checkboxes receive focus after being clicked, while SUI checkboxes do not.
I think they should. This is good UX for users (like me) who use kb+mouse for navigation. Like, I can tab to the next control easily, not having to tab through all of the controls from beginning of the page.

I agree, this would replicate the standard feature of a HTML checkbox input.

I think there are arguments on both sides.
See #2567, or check stack overflow issues opened about bootstrap button focus. Adding focus on click is an accessibility feature that often confuses users because it seems like the 'activated' or 'down' state of the element is stuck on.

Well, they are nagging about buttons, not checkboxes)

Yeah, Semantic would benefit quite well in having some more accessibility thrown in.
Here's an example of how it works using the user agent stylesheet: http://codepen.io/Illyism/pen/WvyJpR

Click on Five
Shift+tab to go to Four
Space to check the current box
Tab to go back to Five
Click anywhere to lose focus
Tab to start focusing from the first focusable element
Click anywhere to lose focus
Shift+tab to start focusing from the last focusable element

Example from next with fixed checkbox focus
http://jsfiddle.net/65rgdhdo/

:+1:


Bug: pgsql password containing semicolons

PHP Version
8.2
CodeIgniter4 Version
4.3.3
CodeIgniter4 Installation Method
Composer (as dependency to an existing project)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
PostgreSQL
What happened?
Main connection [Postgre]: pg_connect(): Unable to connect to PostgreSQL server: connection to server at "db-dev-pgbouncer.default.svc.cluster.local" (<IP_ADDRESS>), port 5432 failed: FATAL: SASL authentication failed

Steps to Reproduce
Use a pgsql password with a semicolon
Expected Output
Connection not failing
Anything else?
https://github.com/codeigniter4/framework/blob/master/system/Database/Postgre/Connection.php#L72-L73

Thank you for reporting.
How do you configure app/Config/Database.php?
and how do you fix this bug?


Loading File Crashed

Describe the bug
When I use it preview Hero's vmdl_c and other file. After Loading File stage it is crashed.
I am using MacOS with Parallel's Desktop support.
I can provide further information
Expected behavior
I can use it preview file
Relevant log output or exception with stacktrace

What game does this happen in
source game
Reference file in a Source 2 game
Any file from VPK
Have you tried the latest dev build?
Yes
What version of VRF are you using?
V10.2 and previously version

There's no actionable information here.

Double click vmdl_c it is crashed

Gonna assume it's crashing because of opengl when running under parallels. Gonna close this because I can't think of much that we could do to fix this.

I have searched Parallel installed lower version of  OpenGL. Have to use VRF.exe older version preview contents.


V4 Planning & Ideas

Plyr's getting to the point where the majority of the bugs are due to managing state and the UI. I've wanted to build it using a proper framework such as React. I'm hoping to get some input from others on the most suitable framework. Please vote here:
https://twitter.com/Sam_Potts/status/1276863183051845633?s=20
Whichever path is taken, there would still be an easy way to embed a player without requiring knowledge of the framework.
The aim of v4 would be to fix the majority of remaining bugs plus some improvements:

A proper plugin framework (some work has been started on this in a PR)
Easier restyling of the UI
Lazy loading
Smaller bundle size
Improved UI performance

Joomla Plugin
Keep YouTube support but make it easier to turn off plugin.

There needs to be manual quality selector for HLS.js / dash.js source in v4! It is much needed feature
Thanks :)

I would vote for React and I would like to have a plugin system for plyr.io and I would like a trimmer plugin built-in with plyr.io.

Hello, please, if possible, make the player's bar disappear when you move the mouse cursor away from it.
For example, we are building a drawing - the viewer pauses to see the details, but because of the bar strip, the drawing is not visible.

I have some ideas:

Having multiple VAST tag support, so if one tag didn't fill, the next one would try to.
When playing a live stream, show a sign indicating that this is a live stream.
Having a plugin to support Dailymotion videos.

Adding "start" & "end" options to choose the offset of the media, like the following videojs plugin https://github.com/cladera/videojs-offset.

Vimeo Showcase support please :100:

Good points to consider for a new version! I think that rebuild the player under an specific framework is not the best idea because it won't be available for others. In this way the best option could be to rebuild it as a web component and maybe to use something like stenciljs could simplify the integration with most used frameworks.

I used Plyr in my platform ExamPro because it provides a seamless experience between Youtube and Vimeo and self-serve on-demand videos (I use all those types of sources).
Our platform is built in mithril.js If this video player is rebuilt in React, would I even be able to use this Plyr anymore?
According to React:

React can be used in any web application. It can be embedded in other applications and, with a little care, other applications can be embedded in React.

https://reactjs.org/docs/integrating-with-other-libraries.html
So as long as it works, I don't think it matters what framework you use as long as it has a very small javascript footprint.
If you like React then you'd likely want to look at preact which has a smaller footprint. https://preactjs.com/

If you are solving the problem of state then I'd suggest using something like xstate this will easily let you keep state under control and should simplify your logic considerably. It will work with vanilla js or any framework as well.
If you are looking for converting the UI work then my preference is react/preact using functional components. These will be super simple if using xstate to manage the state for you. Though maybe if xstate takes away most of the state issues, you won't need to use UI framework/library.
Some have suggested web components as the most compatible approach, however it could leave react people out of luck since not all of the custom web component events and things are supported by react (though preact does support them well).
I find it hard to justify anything besides functional react/preact components. So easy to create, test and wonderful pre-build components to choose from, active community, scales well.

Build it as a standard web component using Stensil.

Stencil is a toolchain for building reusable, scalable Design Systems. Generate small, blazing fast, and 100% standards based Web Components that run in every browser.

Having worked with angular 1 & 2, ionic, vue2 and vue 3, I would go for Vue3. Vue is just so much more pleasant to work with and easier to get started. Choosing the standalone reactivity API from Vue3 does not limit any other framework's options.
@sampotts get in touch if you'd like to discuss contributing

Please add support for lesser known mobile browsers.
MIUI Browser, Vivo Browser, Opera Mini
Youtube embed of Plyr does not work on these browsers. We're building a non profit org to help Indian rural kids learn online through videos, and Plyr has been a very important player in this.
However, we're stuck! Almost 50% of the students use these low end phones (Mi, Xiaomi, Vivo, Oppo etc) and these have their default browsers (most of them are built upon WebView). Our pilots show that except Chrome, Edge, and other good browsers, the Youtube embed for Plyr "does not" play on those browsers.
Having robust support for Youtube embeds in low end browsers would be a game changer!
And talking about framework, we're using Vue 3 and it's simply amazing.

Any chance #112 is in v4 roadmap?

It would be nice if we could add customization to the settings menu.
What I mean by that is that I want to add an Audio options where the user could choose the audio of the video. I tried doing this with the HTML, but I just noticed that this is one of the current limitations.

overlay text/buttons or something to have the option to add time when to show the function and when to end like this
https://github.com/anuditverma/videojs-overlay-hyperlink#readme

overlay text/buttons or something to have the option to add time when to show the function and when to end like this
https://github.com/anuditverma/videojs-overlay-hyperlink#readme

I think something that is needed in the space at the moment is a rock solid video player for SSR based frameworks (next.js/nuxt.js).
I have attempted to integrated most modern players into a NuxtJS project multiple times, for a UGC live streaming platform, without a lot of luck. Most of them you can get rendering on the page perfectly fine, but anything more advanced, use of plugins or modules etc fail or arent stable enough.
Or alternatively if someone has managed to do this, some useful, walkthroughs, guides, documentation on how would probably benefit a lot of people that are wanting to use video players like Plyr in SSR projects.

Some times I need to crop video and / or force a different aspect ratio dynamically for optimal responsive design. It's a mess involving absolute positions and z-index to cover parts of video and so on. It would be nice if this was built in. (Not only for youtube)

I would vote for web components as it would allow you to use Plyr in any type of framework with small overhead. Using something like Stencil would help with development and browser compatibility.
You'd also get the added benefit of shadow DOM, so no unwanted style inheritance and leaks.

Anything we can do to help with v4?

I would love to see it support svelte js framework

Please add support for lesser known mobile browsers. MIUI Browser, Vivo Browser, Opera Mini
Youtube embed of Plyr does not work on these browsers. We're building a non profit org to help Indian rural kids learn online through videos, and Plyr has been a very important player in this.
However, we're stuck! Almost 50% of the students use these low end phones (Mi, Xiaomi, Vivo, Oppo etc) and these have their default browsers (most of them are built upon WebView). Our pilots show that except Chrome, Edge, and other good browsers, the Youtube embed for Plyr "does not" play on those browsers.
Having robust support for Youtube embeds in low end browsers would be a game changer!
And talking about framework, we're using Vue 3 and it's simply amazing.

@deepansh96 did you know that Plyr does not support quality selectors for youtube? What is your workaround for this.


[Help] What function should I use in c# which equivalent to GetWorld() in c++?

What function should I use in c# which equivalent to GetWorld() in c++?  :(
I can't find this function in c#, and The Function "GetRealTimeSeconds" In c# is under the class "GameplayStatics", but it's under the class UWorld In c++.
Are these correct? Maybe changed some coding habits?

I found that use "this" directly in Actor and pass to any parameters named "worldContextObject" will be works.


Fix 'puppet resource group' issues

Fixed:

Ensure that puppet resource group works properly
Work around issues with Puppet 6.20+ updates to the gpasswd
provider

Changed:

Migrate to GitHub Actions
Remove Puppet 4 support
Add Puppet 7 support

@silug Yeah, the puppet bug is just a bug and is fixed upstream.


Add a collection to the index

Collection name
test
Maintainer name
bamurtaugh
Maintainer contact link (i.e. repo issues link, email)
github.com/bamurtaugh
Repository URL
github.com/bamurtaugh
OCI Reference
github.com/bamurtaugh
I acknowledge that this collection provides new functionality, distinct from the existing dev container collections part of this index

[x] Confirm

#sign-off


Add solution for Best Time to Buy and Sell Stock #77

Added java solution for Buy and sell stocks with maximum profit .

Added java solution for Buy and sell stocks with maximum profit .

Please add problem statement and approach and rename your file as protocol.


Aurora rendering crashes client in Galacticraft space station.

DynamicSurroundings-1.10.2-<IP_ADDRESS>
Forge <IP_ADDRESS>7
https://pastebin.com/qQ20yiSD
Aurora rendering crashing client on Galacricraft space station on login (though how he got there without crashing before i am not sure). Maybe aurora only display sometimes? Did not test just disabling aurora, but removal of dyn surround fixed issue temporarily at least.

Looks like Galacticraft is assuming something about the dimensions sky rendering provider.  Have you reported to the Galacticraft devs?.

I'm going to be putting in code to blacklist the dimension for aurora processing.

Pushed v<IP_ADDRESS> that should block hooking the sky renderer for the orbital dimension.

DynamicSurroundings-1.10.2-<IP_ADDRESS>
GalacticraftCore-1.10.2-<IP_ADDRESS>
ExtraPlanets-0.4.3-Beta-Build
Forge <IP_ADDRESS>7
https://pastebin.com/V7Hy8Ryk
Client crashes on load now, instead of when in orbit dimension. Reverting to DynamicSurroundings-1.10.2-<IP_ADDRESS> stops loading crash.
Turning off the aurora processing in config does not prevent the crash (in <IP_ADDRESS>) either.

Could you post a link to the complete log?  Need to get more of the stack trace that is given in the regular dump.

Try this JAR: https://github.com/OreCruncher/DynamicSurroundings/releases/tag/v<IP_ADDRESS>TEST
I changed things around a little bit.

DynamicSurroundings-1.10.2-<IP_ADDRESS>
GalacticraftCore-1.10.2-<IP_ADDRESS>
ExtraPlanets-0.4.3-Beta-Build
Forge <IP_ADDRESS>7
https://pastebin.com/GxCCF7nn
That build loaded fine, but crashed in orbit dimension again. Posted in support forum of Galacticraft dev and linked to here, maybe they have some ideas. Linked here:
https://forum.micdoodle8.com/index.php?threads/crash-with-dynamic-surroundings-in-orbit-dimension.6740/

Can you post your client log?  There should be additional trace information.

Here is a chunk of it, i don't think there was relevant stuff before that point.
https://pastebin.com/1vNtzvZA

I just got this error when I created a station using creative mode:
[15:10:57] [Server thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.event.entity.living.LivingEvent$LivingUpdateEvent@b675ba0:
java.lang.ArithmeticException: / by zero
	at micdoodle8.mods.galacticraft.core.world.gen.dungeon.MapGenDungeon.directionToNearestDungeon(MapGenDungeon.java:99) ~[MapGenDungeon.class:?]
	at micdoodle8.mods.galacticraft.core.entities.player.GCPlayerHandler.sendDungeonDirectionPacket(GCPlayerHandler.java:1170) ~[GCPlayerHandler.class:?]
	at micdoodle8.mods.galacticraft.core.entities.player.GCPlayerHandler.onPlayerUpdate(GCPlayerHandler.java:1343) ~[GCPlayerHandler.class:?]

What I am looking for is "Aurora provider blacklist detected" or "Aurora provider unable to blacklist" in the log.

Top part:
https://pastebin.com/tPHXDi6N

[16:21:02] [Client thread/INFO]: Aurora provider blacklist detected [micdoodle8.mods.galacticraft.core.client.SkyProviderOrbit]

All other mentions of Aurora are in the worlds themselves, most of which are aurora:true and then the errors. Strange that some of the planets are aurora:false, but not all? I assume that means you are blacklisting them with the above but some of the planets (including the space station dim) are not obeying anyway?

The blacklist is working - but there may be some circumstances where things fall apart (there may be sequencing issues).  I have been working on Galacticraft specific config changes based on the work Ezer'Arch has done.  I cannot repro this issue using *.105 version of GC with these configs.  I will pull together and post another test JAR later today for you to try.

@Gorgok Check out an updated release: https://github.com/OreCruncher/DynamicSurroundings/releases/tag/v<IP_ADDRESS>TEST2
It seems to work in my local sandbox.  Let me know how it goes.

DynamicSurroundings-1.10.2-<IP_ADDRESS> (test2)
GalacticraftCore-1.10.2-<IP_ADDRESS>
ExtraPlanets-0.4.3-Beta-Build
Forge <IP_ADDRESS>7
https://pastebin.com/TYFsMXs0
It looks like the blacklist is hitting all the galacticraft dimensions now, but not the extra planets ones, and maybe extra planets is messing with the galacticraft space station dim preventing it hitting that one? Moon, Venus, Mars, and asteroids are all aurora:false, space station is true.
Trying without extra planets just to see if it indeed is messing with the station, and if it goes aurora:false without it but no luck. Extra planets removed left the station dimensions aurora:true.
Not sure if its by ID or name that you are blacklisting them, but stations can be made multiple times and end up at multiple IDs, mine seem to be 4 and 79 so far.

It does appear that they are named Space Station each time.
Is that config something internal? I didn't see a blacklist in the configs when i looked for it initially (thinking that would have been the quick fix).

The galacticraft config files I am adding are internal in the JAR, but new ones can be added externally.  By providing them internally I can have "out of the box" compatibility with mods.  You can find the file I am tweaking here.

OK - made another JAR that uses the dimension names instead of IDs for config matching.  You can find it here: https://github.com/OreCruncher/DynamicSurroundings/releases/tag/v<IP_ADDRESS>TEST3

hey guys, I've been notified of this
@OreCruncher thank you so much for building in compatibility
Yes, you definitely should blacklist our space dimensions from the AuroraRenderer, we need to have control of our own SkyProvider for each dimension.
Is there any reason why AuroraRenderer needs to run on Moon, Mars, Venus, etc?  If not then the easiest approach for you could be to blacklist / disable the AuroraRenderer on any dimension whose WorldProvider is an instanceof IGalacticraftWorldProvider
It's not safe to use dimension ID numbers, as those can change - they can be configured differently in configs, and for space stations they are generated dynamically.
You could use the unlocalised names of the dimensions (which will be OK for us but could conflict with another mod with the same names, for example moon), I can give you a list of those but it won't cover planets added in future by us or by Galacticraft add-ons.
You could detect the WorldProvider class, but again that won't be future-proof if we or add-ons create new planets with new WorldProvider classes in future.
The safest is to check if the WorldProvider class is an instanceof IGalacticraftWorldProvider, that should be future-proof.  (We haven't changed the name or location of that API interface in over 3 years, and it's unlikely that we will in future, as other mods might be referencing it.)

The current set of DS configs for Galacticraft use the dimension names instead of IDs.  But yes, there is a risk of having name collisions between mods.  I spent some time to see if there was a ResourceLocation associated with a dimension but there isn't. :\  This would be a good Forge enhancement.
Dynamic Surroundings does some fancy footwork with the sky rendering hook.  I have made several attempts to get aurora rendering into the mod with max compatibility but kept running into rendering issues with OptiFine, Stellar Sky, or some other mod that wants to some fancy rendering.  The current approach hooks sky rendering, remembering the existing sky render hook.  During the render phase the aurora rendering will automatically invoke the previous sky rendering hook so it can do it's thing, and then the aurora renderer will do what it wants.  This hook check occurs every render pass (which isn't too efficient) but it allows me to work around some mod compatibility issues.  Unfortunately GC became the latest victim. :)
Prior to all these changes DS would always hook the sky renderer, and then apply rules as to whether aurora rendering should take place.  With the current changes I am hammering out it checks the configuration first before any hooking.
An issue that I have with the blacklist is that someone may decide that it would be cool to have an aurora for a planet.  The blacklist would prevent that from happening.  I am not to familiar with the player base for GC or what percentage of them uses Dynamic Surroundings, so I am not sure how much this is a real worry or some made up straw man.  In general I try to provide the most flexibility to allow a modpack author to do what they want to deliver on their theme.
Another thing I am considering is having things like Aurora and Weather off by default for a dimension, and require config to turn on rather than having them depend on "getHasSky".

If you can link to some lines or show me example code to access the previous sky renderer using that hook you mentioned, I can add a compat feature into Galacticraft for that for those times when we need to access our sky renderer...
I hear you on what people may decide - we have at least 7 different devs making add-ons for Galacticraft which add new planets - sometimes specific to one modpack - and I think some of them want to make "earthlike" planets so yes, I guess someone out there might want auroras!
My preferred solution:
We could add an IGalacticraftWorldProvider method, boolean hasAurora() which you can poll.  It will do nothing if DynamicSurroundings is not present.  Then the add-on makers can set that for their planets as needed, or even make it configurable I guess ... we are slowly moving towards a future where Galacticraft planet data will be configurable in jsons or something so that servers and modpacks can change stuff.
I don't know how many players play both our mods together.  We only just launched for 1.11.2 so it's kind of early days to judge player numbers.  For 1.7.10 I'd guess approx 20% of the mod-playing userbase played our mod (or at least had Galacticraft in an installed modpack), comparing our own mod download numbers with "essential" mods like NEI.  On that basis at a rough guess it could be 20% of your userbase have both mods together.

Let me think a bit on the hook thing.  For the immediate need I decided I will turn off auroras/weather for dimensions as a default.  This shouldn't cause most of the existing DS users an issue and avoids throwing a design together quickly just so I can get my mod released.  Part of me thinks that the hook provided by Forge should be reworked into a plugin based system where multiple mods can provide various aspects to sky rendering.

@Gorgok Try out TEST4.  I changed the default behavior of dimensions and cleaned things up.  This should do the trick.

DynamicSurroundings-1.10.2-<IP_ADDRESS> (test4)
GalacticraftCore-1.10.2-<IP_ADDRESS>
ExtraPlanets-0.4.3-Beta-Build
Forge <IP_ADDRESS>7
Good stuff, just tested test 4 and did not crash. Logs stilll show the aurora as true, but i suppose that is because you are avoiding the problem with the design change instead.

Can you post the snip from the log where you see it as true?

Snipped out all the dimensions that get listed for me, Space Station occurs twice near the bottom.
https://pastebin.com/1xw0yTk9

[15:31:57] [Server thread/INFO]: 79/Space Station: seaLevel:63 cloudH:128 skyH:256 haze:true aurora:true weather:true fog:false
[15:31:57] [Server thread/INFO]: 4/Space Station: seaLevel:63 cloudH:128 skyH:256 haze:true aurora:true weather:true fog:false

You wouldn't happen to have external config files for Dynamic Surroundings?

Do you mean the .minecraft\config\dsurround\dsurround.cfg file? It had been edited originally and left as is for all tests, but i tried deleting it just now.
I saw the external config thing in the config when checking for differences. It is blank, so no external config.

Hmmm....ok.  Reason I ask is because the "Space Station" dimension should all be false as a default, but somehow haze, aurora, and weather got set true without any config to drive it. Gonna get my pickaxe and shovel and start digging...

Part of me thinks that the hook provided by Forge should be reworked into a plugin based system where multiple mods can provide various aspects to sky rendering.

It's doubtful that anything Forge can come up with would be usable by Galacticraft, as we make widespread changes to the SkyProvider for multiple effects, it's easier for us to replace the whole thing!

different sun appearance and size; different sun movement in some cases
different celestial bodies in sky depending on dimension - and I guess some could even have two suns :)
large celestial bodies below the player, if it's an orbital dimension
stars visible in daytime in airless dimensions
a range of different fog, color, and horizon effects
effects when the player is above height 256, he sees the world falling away below him
gradual change of color and star visibility depending on player height
the entire skybox rotates, if the Space Station is spinning


New namespace in conflict with other nuget

Hey,
unfortunately after upgrading the gem to 5.0.2 I have a conflict with James nuget. (https://github.com/jamesmontemagno/DeviceInfoPlugin)
Was there a special reason why you choose the same namespace?

It was a consistency thing for my work.


How to combine nvgBezier with nvgLineTo?

I need to create some shape using nvgBezier and nvgLineTo and fill that shape with some color. I try to do it this way:
nvgFillColor( vg, nvgRGBA( 0, 0, 255, 255 ) );
nvgStrokeColor( vg, nvgRGBA( 0, 255, 255, 255 ) );
nvgStrokeWidth( vg, 2.0f );

nvgBeginPath( vg );
nvgMoveTo( vg, 100, 500 );
nvgBezierTo( vg, 100, 430, 600, 430, 600, 500 );
nvgLineTo( vg, 650, 525 );
nvgBezierTo( vg, 600, 550, 100, 550, 100, 500 );
nvgFill( vg );
nvgStroke( vg );

And I get that result. I was expected that it fill the body of this shape but it's not:
http://oi63.tinypic.com/2qv4n5z.jpg
Did I miss something or they cannot be combined together?

It is still the same stencil problem as in the other issue.


We should check in Cargo.lock files

Requested feature
We should check in Cargo.lock files to enable repeatable builds
Motivation
We've had a number of problems arise because dependencies were updated that broke our build process. Checking in the Cargo.lock files would lock us to specific versions, which should get rid of these problems.
Additional context
This isn't really a problem with the dependencies, per se. The dependencies should check for compatibility unless they are incrementing a major release number. However, we are stuck running on a fairly old nightly build. Unless we are able to update to a more recent stable build, it's unreasonable to expect our dependencies to check against our compiler version before releasing.
Thus, checking in our Cargo.lock files feels like the right move. It's possible that, if we ever get on a stable build version, we could change our minds on this.

Just an FYI if anyone else sees this error during compilation in the crate value-bag:
error[E0658]: `match` is not allowed in a `const`

This seems to be a nightly/stable versioning issue thing that can be worked around by using Cargo.lock files from a build on another version. I haven't been able to narrow it down further yet.
This proposal would fix this specific build issue.

Ah! Narrowed it down to the change from log v0.4.11 -> log v0.4.14
Anyways I'll get a PR with Cargo.lock files up shortly

Hmm, I can push up the Cargo.lock files, but what would the real fix be? Fixing the log dependency to "=v0.4.11"?

Wait a second, does checking in Cargo.lock files work with different configurations? It looks like the different platforms (SGX/Trustzone/Nitro) have different dependencies, and different Cargo.lock files.

That does create a problem.
Even after we complete #81, sinaloa-test and veracruz-test will have different configurations (unless we want to create platform-specific tests - which we don't). I could see us hacking something together with fancy linking instead of build-time-configuration, but that's the type of thing that ends up being a lot of maintenance.

Another idea, after poking around with this value-bag issue, could we instead specify all dependencies as absolute versions ("=v0.4.11")? It would make specifying dependencies a bit more annoying but should in theory give us a repeatable build.

That works for our direct dependencies, but not our vicarious dependencies. If our direct dependencies are not specific in what they depend on, we could still have problems.
Doing that would be better than our current situation, though.

Even after we complete #81, sinaloa-test and veracruz-test will have different configurations (unless we want to create platform-specific tests - which we don't).

Hmm, you could put the tests inside a macro, and then expand that macro based on which platform is configured. That would avoid duplication but also let us build for all platforms at once (and create a full set of Cargo.locks)?

Macros are... icky. Especially large macros like that would end up being.

That works for our direct dependencies, but not our vicarious dependencies. If our direct dependencies are not specific in what they depend on, we could still have problems.
Doing that would be better than our current situation, though.

Yeah, all of our recent build problems have been related to transitive dependencies fairly deep inside our tree of dependencies that silently update and break compatibility with the version of rustc that we are using.  This feels like a missing feature in cargo, namely the ability to pin to a specific compiler version (and crates advertise which compiler versions they work with).
Does anybody have an alternative to @geky's macro idea?  I agree that macros are problematic (they slow down compilation times, IDEs struggle with them, etc.) but is there an alternative?  This issue is becoming annoying enough that we need to come up with a fix...

Another solution (not great, but ?maybe? I like it more than the macro idea): Check in a different Cargo.lock file for each platform(Cargo.lock.sgx, Cargo.lock.tz, Cargo.lock.nitro). Have the Makefile copy the platformCargo.lock.*file to Cargo.lock before starting.

I think that's a good pragmatic approach for the time being, @dreemkiller.  Does anybody have any objections?

To go too far: Symlink Cargo.locks through a directory that is symlinked to the correct set of Cargo.locks?

I'm for this, it's a kludge but I don't see a solution that's not a kludge.
The main difference between multiple locks vs macros in tests is we'd not be compiling everything all the time. This would improve compile times but also push those sort of cross-platform compile errors into CI results.

Another thought, Cargo.lock tracks dependencies not features. So if we remove the feature-configured dependencies we should get back to one set of Cargo.locks.
The main culprit seems to be the sgx libraries. Is this something we can compile cross-platform?
https://github.com/veracruz-project/veracruz/blob/b9d3aaa8ae0b5fa0c82d6718790466842d3399d2/sinaloa-test/Cargo.toml#L50-L53


(do not merge) spike: puppet full-integration tests

spike on POC full-integration puppet tests.
⚠  caution! this WILL alter your system just like running puppet apply on your system.
this loads and enables most of puppet and runs a given manifest.
it needs work:
as shown with the report example, this does not setup reporting, and i'm sure some other stuff.
this is strangely slow on my osx 1011 laptop.
please comment with thoughts, ways to make it better.  should we do this at all?
benefits of moving tests from beaker to rspec:

closer to devs
easier to run
will be run more often before commit/PR

problems:

not any faster (in run time)
might not run exactly the same way as beaker en-SUT (installed)

reporting may be able to be added with something like:
Puppet::Transaction::Report.new("apply", nil, Puppet[:environment], transaction_uuid)
but i could not get it to work the way i'm creating the apply command here. :man_shrugging:

runtime comparison: (rspec on centos7 slice small box) (beaker SUT is rhel7)
✓ erict@erict ~/projects/puppet
 (spike/master/do_not_merge-puppet_full_integration_tests *$%=)$ time be rspec --color spec/integration/apply/test1.
rb

Finished in 1.09 seconds (files took 0.62942 seconds to load)
1 example, 0 failures

real    0m2.550s
user    0m2.300s
sys     0m0.229s

✓ erict@erict ~/projects/puppet/acceptance
 (spike/master/do_not_merge-puppet_full_integration_tests *$%=)$ be bea^Cr --preserve-hosts --hosts log/latest/hosts
_preserved.yml --color --tests tests/lookup/eyaml_backend.rb
 (spike/master/do_not_merge-puppet_full_integration_tests *$%=)$ time be beaker --preserve-hosts --hosts log/latest/hosts_preserved.yml --color --tests tests/apply/notify.rb

[...]
vpaqbz2hj3xii6q.delivery.puppetlabs.net (vpaqbz2hj3xii6q.delivery.puppetlabs.net) 23:47:19$ puppet apply --verbose /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/apply_manifest.pp.XXXXXX.dTLKWW4w
  Notice: Compiled catalog for vpaqbz2hj3xii6q.delivery.puppetlabs.net in environment production in 0.06 seconds
  Info: Applying configuration version '1497397643'
  Notice: it werks!
  Notice: /Stage[main]/Main/Notify[it werks!]/message: defined 'message' as 'it werks!'
  Notice: Applied catalog in 0.04 seconds

vpaqbz2hj3xii6q.delivery.puppetlabs.net (vpaqbz2hj3xii6q.delivery.puppetlabs.net) executed in 3.96 seconds
Begin teardown
End teardown
tests/apply/notify.rb passed in 3.99 seconds
      Test Suite: tests @ 2017-06-13 23:47:19 +0000

      - Host Configuration Summary -

              - Test Case Summary for suite 'tests' -
       Total Suite Time: 3.99 seconds
      Average Test Time: 3.99 seconds
              Attempted: 1
                 Passed: 1
                 Failed: 0
                Errored: 0
                Skipped: 0
                Pending: 0
                  Total: 1

      - Specific Test Case Status -

Failed Tests Cases:
Errored Tests Cases:
Skipped Tests Cases:
Pending Tests Cases:

No tests to run for suite 'post_suite'
No tests to run for suite 'pre_cleanup'

You can reproduce this run with:
/home/erict/.rvm/gems/ruby-2.3.1/bin/beaker --preserve-hosts --hosts log/latest/hosts_preserved.yml --color --tests tests/apply/notify.rb

You can re-run commands against the already provisioned SUT(s) with:
/home/erict/.rvm/gems/ruby-2.3.1/bin/beaker --preserve-hosts --hosts log/redhat7-64m-osx1011-64a-932bdaf4-5abb-4f30-8523-e60b1aaa0be1.yaml/2017-06-13_23_47_19/hosts_preserved.yml --color --tests tests/apply/notify.rb

Important ENV variables that may have affected your run:
    BUNDLE_BIN          .bundle/bin
    GEM_HOME            /home/erict/.rvm/gems/ruby-2.3.1
    GEM_PATH
    RUBYLIB             /home/erict/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.4/lib
    PATH                /home/erict/.rvm/gems/ruby-2.3.1/bin:/home/erict/.rvm/gems/ruby-2.3.1@global/bin:/home/erict/.rvm/rubies/ruby-2.3.1/bin:/home/erict/.rvm/bin:/opt/local/bin:/opt/local/sbin:/home/erict/bin:/home/erict/bin/local:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
    home                /home/erict
Beaker completed successfully, thanks.

real    0m6.147s
user    0m1.221s
sys     0m0.159s

oops, this needed [skip ci]

⚠ i just noticed the expects in the spec tests here do nothing, as the described_object is not doing the outputting.  the logger is.  will need to fix

comparison of the report test.
TL;DR:
rspec: real    0m2.429s
beaker: real    0m5.909s
✗ erict@erict ~/projects/puppet
 (spike/master/do_not_merge-puppet_full_integration_tests *$%=)$ time be rspec --color spec/integration/apply/report.rb
Notice: Compiled catalog for erict.rfc1918.puppetlabs.net in environment *root* in 0.02 seconds
Notice: Local environment: 'production' doesn't match server specified environment '*root*', restarting agent run with environment '*root*'
Notice: Compiled catalog for erict.rfc1918.puppetlabs.net in environment *root* in 0.01 seconds
Error: Found 1 dependency cycle:
(Notify[bar] => Notify[foo] => Notify[bar])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz
Error: Failed to apply catalog: One or more resource dependency cycles detected in graph

Finished in 1.06 seconds (files took 0.59753 seconds to load)
1 example, 0 failures

real    0m2.429s
user    0m2.153s
sys     0m0.257s

✗ erict@erict ~/projects/puppet/acceptance
 (spike/master/do_not_merge-puppet_full_integration_tests *$%=)$ time be beaker --preserve-hosts --hosts log/latest/hosts_preserved.yml --color --tests tests/apply/report.rb
Hypervisor for rtpr5vtotfahn2u.delivery.puppetlabs.net is vmpooler

[...]

              - Test Case Summary for suite 'tests' -
       Total Suite Time: 3.77 seconds
      Average Test Time: 3.77 seconds
              Attempted: 1
                 Passed: 0
                 Failed: 0
                Errored: 1
                Skipped: 0
                Pending: 0
                  Total: 1

      - Specific Test Case Status -

Failed Tests Cases:
Errored Tests Cases:
  Test Case tests/apply/report.rb reported: #<Beaker::Host::CommandFailure: Host 'vpaqbz2hj3xii6q.delivery.puppetlabs.net' exited with 1 running:
 puppet apply --verbose /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/apply_manifest.pp.XXXXXX.NndLVtHE
Last 10 lines of output were:
        Notice: Compiled catalog for vpaqbz2hj3xii6q.delivery.puppetlabs.net in environment production in 0.07 seconds
        Info: Applying configuration version '1497398690'
        Error: Failed to apply catalog: Found 1 dependency cycle:
        (Notify[bar] => Notify[foo] => Notify[bar])
        Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz>
    Test line: tests/apply/report.rb:7:in `block (2 levels) in run_test'
Skipped Tests Cases:
Pending Tests Cases:

Failed: errored in TestSuite: report_and_raise_on_failure
#<RuntimeError: Failed while running the tests suite>
No tests to run for suite 'post_suite'
No tests to run for suite 'pre_cleanup'

You can reproduce this run with:
/home/erict/.rvm/gems/ruby-2.3.1/bin/beaker --preserve-hosts --hosts log/latest/hosts_preserved.yml --color --tests tests/apply/report.rb

You can re-run commands against the already provisioned SUT(s) with:
/home/erict/.rvm/gems/ruby-2.3.1/bin/beaker --preserve-hosts --hosts log/redhat7-64m-osx1011-64a-932bdaf4-5abb-4f30-8523-e60b1aaa0be1.yaml/2017-06-14_00_04_45/hosts_preserved.yml --color --tests tests/apply/report.rb

Important ENV variables that may have affected your run:
    BUNDLE_BIN          .bundle/bin
    GEM_HOME            /home/erict/.rvm/gems/ruby-2.3.1
    GEM_PATH
    RUBYLIB             /home/erict/.rvm/gems/ruby-2.3.1/gems/bundler-1.14.4/lib
    PATH                /home/erict/.rvm/gems/ruby-2.3.1/bin:/home/erict/.rvm/gems/ruby-2.3.1@global/bin:/home/erict/.rvm/rubies/ruby-2.3.1/bin:/home/erict/.rvm/bin:/opt/local/bin:/opt/local/sbin:/home/erict/bin:/home/erict/bin/local
:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
    home                /home/erict
Failed running the test suite.

real    0m5.909s
user    0m1.121s
sys     0m0.147s

@johnduarte @branan @joshcooper FYI

@er0ck is this still actively in development? Currently triaging puppet prs to get the list down. Can you close if not?


Unique constraint violates "exp_history_ledgers_id_idx" when reingesting state

What version are you using?
Horizon 0.24.1 RC.
What did you do?
Horizon 0.24.1 RC (fb5f489) fixes a bug in expingest so expingest.CurrentVersion was incremented. This made Horizon to reingest state.
What did you expect to see?
No errors.
What did you see instead?
Processor DatabaseProcessor (All) errored: Could not insert ledger: exec failed: pq: duplicate key value violates unique constraint \"exp_history_ledgers_id_idx\"

What happened?
Horizon always reingests state using the latest checkpoint ledger and in most cases the sequence of this ledger will be smaller than the latest ingested ledger. Because of this Horizon will attempt to insert old ledgers into exp_history_ledger again. It seems that the quick fix that should be included in 0.24.1 is to remove all ledgers with the sequence higher than the checkpoint ledger. The longterm fix is #1969.

fixed in https://github.com/stellar/go/pull/2055


The sourcedata portion needs tested.

In: https://github.com/nih-fmrif/abcd-dicom2bids/blob/feature/data-subset/src/subset_data.py

Tested successfully!


TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/103292

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/119868


Make Sphinx Documentation for version 1.0

Sphinx is a documentation generator tool that can help us make neatly presented documentation for the 11.2.1 Public Transport project.
Pages we might want to create in the documentation include:

Introduction to the project, including background, aims etc (like the current README)
Developer documentation, including:

how to set up an environment and run the code (part of the current README)
what each function does

Method/Calculation write up

Requirements for this ticket:

[x] Using output of #158 use Sphinx to create technical documentation
[x] Split up the existing README to make the intro page of the user documentation and technical documentation
[x] Create holding (lorem ipsum type) pages for anything we don't have content for right now
[x] Work out a way to display these pages like our readme is currently.

There is a branch for this already: https://github.com/ONSdigital/SDG_11.2.1/tree/sphinx_docs_%23118

Currently waiting for docstrings to be updated. A holding page for methodology write up has also been created. Focusing on #194 to get the page hosted on github.

I think this is done. @nkshaw23 would you agree? If so, please close the issue.

Agree - closing.


[FEATURE]Windows Server 2016/2019 GUI

Is your feature request related to a problem? Please describe.
We are required to provide an environment to train on Windows Server 2016/2019 with a GUI front-end.  We require this capability in order to meet training objectives that are directly related to performing tasks on through the GUI interface for server management.
Describe the solution you'd like
Images available for Windows Server 2016 and 2019 with the GUI front end ready to deploy on the range.
Describe alternatives you've considered
N/A
Additional context
Add any other context or screenshots about the feature request here.

Closing this - applies to pillar, not core.
https://github.com/GeorgiaCyber/kinetic-pillar/issues/2


resample raster

one of the issues i believe is that the source data is too large. please write a one-off gdal script to resample the data by majority from a 100m pixel grid to a 30km grid

To resample your source data from a 100m pixel grid to a 30km grid, you can use the gdalwarp utility. Here's a Python script that uses the gdal package to perform the resampling using the majority resampling method:
import os
from osgeo import gdal

def resample_raster(input_file, output_file, resolution):
    print(f"Resampling {input_file} to {output_file} with {resolution}m resolution using majority resampling method...")

    # Open input raster
    src_ds = gdal.Open(input_file)

    # Calculate new dimensions based on the target resolution
    src_gt = src_ds.GetGeoTransform()
    width = int((src_gt[1] * src_ds.RasterXSize) / resolution)
    height = int((src_gt[5] * src_ds.RasterYSize) / abs(resolution))

    # Resample raster using majority resampling method
    resampling_method = gdal.GRA_Mode
    resampled_ds = gdal.Warp(output_file, src_ds,
                             width=width,
                             height=height,
                             resampleAlg=resampling_method,
                             options=["COMPRESS=LZW"])

    # Close datasets
    resampled_ds = None
    src_ds = None

    print("Resampling complete.")

input_file = "path/to/your/input/raster.tif"
output_file = "path/to/your/output/resampled_raster.tif"
resolution = 30000  # 30km resolution

resample_raster(input_file, output_file, resolution)

This script will create a new raster file at the specified resolution using the majority resampling method. Make sure to replace the input and output file paths with the appropriate paths on your system.
Please let me know if this works for you or if you have any other questions.

that worked! However, the file ballooned from 1.9 GB to 50GB. Can you write a one-time script to compress the 30km file?

Sure, you can use the gdal_translate utility to compress the file using the LZW compression algorithm. Here's a Python script to perform this compression:
import os
from osgeo import gdal

def compress_raster(input_file, output_file):
    print(f"Compressing {input_file} to {output_file} using LZW compression...")

    # Open input raster
    src_ds = gdal.Open(input_file)

    # Compress raster using LZW compression
    compressed_ds = gdal.Translate(output_file, src_ds,
                                   options=gdal.TranslateOptions(creationOptions=["COMPRESS=LZW"]))

    # Close datasets
    compressed_ds = None
    src_ds = None

    print("Compression complete.")

input_file = "path/to/your/input/raster_30km.tif"
output_file = "path/to/your/output/compressed_raster_30km.tif"

compress_raster(input_file, output_file)

This script will create a new compressed raster file using the LZW compression algorithm. Make sure to replace the input and output file paths with the appropriate paths on your system.
Please let me know if this works for you or if you have any other questions.

I was noticing that the resample step didn't actually reduce the cell size of the raster. do you know why that could be?

It's possible that the resampling step didn't update the cell size or the geo-transform of the output raster correctly. Let's review the resampling function and update it to properly adjust the cell size:
import os
from osgeo import gdal

def resample_raster(input_file, output_file, target_resolution):
    input_ds = gdal.Open(input_file)
    input_gt = input_ds.GetGeoTransform()

    # Calculate the new dimensions of the raster
    new_xsize = int(round(input_ds.RasterXSize * input_gt[1] / target_resolution))
    new_ysize = int(round(input_ds.RasterYSize * input_gt[5] / -target_resolution))

    # Create a new raster with the target resolution
    driver = gdal.GetDriverByName('GTiff')
    output_ds = driver.Create(output_file, new_xsize, new_ysize, 1, gdal.GDT_Byte, options=["COMPRESS=LZW", "TILED=YES"])

    # Set the new geo-transform based on the target resolution
    output_gt = (input_gt[0], target_resolution, input_gt[2], input_gt[3], input_gt[4], -target_resolution)
    output_ds.SetGeoTransform(output_gt)
    output_ds.SetProjection(input_ds.GetProjection())

    # Perform the resampling
    resampling_method = gdal.GRA_Mode
    gdal.ReprojectImage(input_ds, output_ds, input_ds.GetProjection(), input_ds.GetProjection(), resampling_method)

    output_ds.FlushCache()
    output_ds = None
    input_ds = None

input_file = "path/to/your/input_raster.tif"
output_file = "path/to/your/output_raster.tif"
target_resolution = 30000  # 30km
resample_raster(input_file, output_file, target_resolution)

The updated script calculates the new dimensions of the raster based on the target resolution and updates the geo-transform accordingly. Also, I've added LZW compression and tiling options to reduce the output file size. Please try running this updated script and let me know if it works as expected.

ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero.

I apologize for the confusion. It seems there is an issue with the new raster dimensions calculation. Let's fix this by calculating the scale factor and using it to compute the new raster dimensions.
Please try the updated script below:
import os
from osgeo import gdal

def resample_raster(input_file, output_file, target_resolution):
    input_ds = gdal.Open(input_file)
    input_gt = input_ds.GetGeoTransform()

    # Calculate the scale factor based on the target resolution
    scale_factor = target_resolution / input_gt[1]

    # Calculate the new dimensions of the raster
    new_xsize = int(input_ds.RasterXSize * scale_factor)
    new_ysize = int(input_ds.RasterYSize * scale_factor)

    # Create a new raster with the target resolution
    driver = gdal.GetDriverByName('GTiff')
    output_ds = driver.Create(output_file, new_xsize, new_ysize, 1, gdal.GDT_Byte, options=["COMPRESS=LZW", "TILED=YES"])

    # Set the new geo-transform based on the target resolution
    output_gt = (input_gt[0], target_resolution, input_gt[2], input_gt[3], input_gt[4], -target_resolution)
    output_ds.SetGeoTransform(output_gt)
    output_ds.SetProjection(input_ds.GetProjection())

    # Perform the resampling
    resampling_method = gdal.GRA_Mode
    gdal.ReprojectImage(input_ds, output_ds, input_ds.GetProjection(), input_ds.GetProjection(), resampling_method)

    output_ds.FlushCache()
    output_ds = None
    input_ds = None

input_file = "path/to/your/input_raster.tif"
output_file = "path/to/your/output_raster.tif"
target_resolution = 30000  # 30km
resample_raster(input_file, output_file, target_resolution)

I've added a scale factor calculation based on the target resolution and the original resolution, and then used it to compute the new raster dimensions. This should fix the issue with creating an empty raster. Please try running this updated script and let me know if it works as expected.

OverflowError: in method 'Driver_Create', argument 3 of type 'int'


no jQuery completion in document ready when using function($)

no jQuery completion when use:
jQuery(document).ready(function($) {
$(element).

in other ways work OK:
jQuery.noConflict();
jQuery(document).ready(function() {
$(element).

$(document).ready(function() {
$(element).

If I'm not mistaken, this commit in Tern should address the issue. @marijnh can you confirm?

It does -- it was supposed to refer to this issue, but I got the issue reference in the commit message wrong


Possible a memory leak in netkvm

Hi,
I think have found a memory leak in netkvm.
I do the following test:

Launch up a window 2008r2 guest "vm1" with one virtio nic.
Add a virtio nic online for vm1, then remove this nic online after 2 seconds.
Repeat step 2 for 2 hours.

Use poolmon.exe to monitor mdl allocation and free. We found that memory of mdl tag is allocated 2492040 times, but it is only freed 176 times. Windows 2008r2 used memory is changed from 700MB to 1.11GB。
Netkvm uses ParaNdis_BindRxBufferToPacket to allocate some mdls when rx queue is initialing. But these mdls are not free after virtio ethernet adapter removed from windows. Maybe ParaNdis_UnbindRxBufferFromPacket is not called. Please check this.
Windows 2012 also hits this bug.
Free mdl in ParaNdis_FreeRxBufferDescriptor using ParaNdis_UnbindRxBufferFromPacket, the patch is as following:
`
--- a/kvm-guest-drivers-windows-master/NetKVM/Common/ParaNdis-Common.cpp
+++ b/kvm-guest-drivers-windows-master/NetKVM/Common/ParaNdis-Common.cpp
@@ -785,6 +785,9 @@ NDIS_STATUS ParaNdis_InitializeContext(
void ParaNdis_FreeRxBufferDescriptor(PARANDIS_ADAPTER *pContext, pRxNetDescriptor p)
{
ULONG i;
+

ParaNdis_UnbindRxBufferFromPacket(p);
for(i = 0; i < p->PagesAllocated; i++)
{
ParaNdis_FreePhysicalMemory(pContext, &p->PhysicalPages[i]);
`
After apply the above patch, we test for 2 hours, and poolmon.exe report that:
Tag  Type               Allocs            Frees               Diff                        Bytes                 Per Alloc
Mdl  Nonp             5020358            5001856             18502        3893584              210

The old report with memory leak  is:
Tag  Type               Allocs            Frees               Diff                   Bytes                 Per Alloc
Mdl  Nonp             3290806<PHONE_NUMBER>      684492112              208

Thank you for the report.
When you say "2. Add a virtio nic online for vm1, then remove this nic
online after 2 seconds" - how do you do it? Disable\enable in device
manager? Hot plug unplug in QEMU? Toggling link state?
Thanks,
Yan.
On Fri, Jul 29, 2016 at 7:57 AM, David Yang<EMAIL_ADDRESS>wrote:

Hi,
I think have found a memory leak in netkvm.
I do the following test:

Launch up a window 2008r2 guest "vm1" with one virtio nic.
Add a virtio nic online for vm1, then remove this nic online after 2
seconds.
Repeat step 2 for 2 hours.

Use poolmon.exe to monitor mdl allocation and free. We found that memory
of mdl tag is allocated 2492040 times, but it is only freed 176 times.
Windows 2008r2 used memory is changed from 700MB to 1.11GB。
Netkvm uses ParaNdis_BindRxBufferToPacket to allocate some mdls when rx
queue is initialing. But these mdls are not free after virtio ethernet
adapter removed from windows. Maybe ParaNdis_UnbindRxBufferFromPacket is
not called. Please check this.
Windows 2012 also hits this bug.
Free mdl in ParaNdis_FreeRxBufferDescriptor using
ParaNdis_UnbindRxBufferFromPacket, the patch is as following:
`
--- a/kvm-guest-drivers-windows-master/NetKVM/Common/ParaNdis-Common.cpp
+++ b/kvm-guest-drivers-windows-master/NetKVM/Common/ParaNdis-Common.cpp
@@ -785,6 +785,9 @@ NDIS_STATUS ParaNdis_InitializeContext(
void ParaNdis_FreeRxBufferDescriptor(PARANDIS_ADAPTER *pContext,
pRxNetDescriptor p)
{
ULONG i;
+

ParaNdis_UnbindRxBufferFromPacket(p);

for(i = 0; i < p->PagesAllocated; i++) {
ParaNdis_FreePhysicalMemory(pContext, &p->PhysicalPages[i]); ` After apply
the above patch, we test for 2 hours, and poolmon.exe report that:
Tag Type Allocs Frees Diff Bytes Per Alloc Mdl Nonp 5020358 5001856
18502 3893584 210
The old report with memory leak is:
Tag Type Allocs Frees Diff Bytes Per Alloc
Mdl Nonp 3290806<PHONE_NUMBER> 684492112 208
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/73,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDkWE-XTlY7-H3bZ7ak3cznFrR-UZe8ks5qaYg2gaJpZM4JX3-Q
.

--
Daynix Computing LTD
Yan Vugenfirer, CEO
Email<EMAIL_ADDRESS>Phone (Israel): +972-54-4758084
Phone (USA): +1-7204776716
Phone (UK): +44-2070482938
Web: www.daynix.com

I use libvirt to do plug and unplug device(Hot plug unplug in QEMU).
Commands:

virsh attach-device vm1 VIF1.xml
sleep 2
virsh detach-device vm2 VIF1.xml

VIF1.xml:

I also found that  ParaNdis_BindRxBufferToPacket is also called when disable\enable in device manager.
So disable\enable device repeatedly in device manager will also trigger memory leak.

Thanks!
On Fri, Jul 29, 2016 at 11:56 AM, David Yang<EMAIL_ADDRESS>wrote:

I use libvirt to do plug and unplug device(Hot plug unplug in QEMU).
Commands:

virsh attach-device vm1 VIF1.xml
sleep 2
virsh detach-device vm2 VIF1.xml

VIF1.xml:
I also found that ParaNdis_BindRxBufferToPacket is also called when
disable\enable in device manager.
So disable\enable device repeatedly in device manager will also trigger
memory leak.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/YanVugenfirer/kvm-guest-drivers-windows/issues/73#issuecomment-236129519,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABDkWPAiN0BYe6movdqd6t-hOCg8Q5ivks5qacBEgaJpZM4JX3-Q
.

--
Daynix Computing LTD
Yan Vugenfirer, CEO
Email<EMAIL_ADDRESS>Phone (Israel): +972-54-4758084
Phone (USA): +1-7204776716
Phone (UK): +44-2070482938
Web: www.daynix.com

Thanks for the fix. Adding to master.

Fixed by d1da14f92b4140cbed0bbf024b35e6acc15b2071
Thanks!


GDScript 2.0: Lambda attempts to set the actual member

Godot version
4.0.dev (99b46a261)
System information
5.15.12-1-MANJARO
Issue description
The following causes a runtime error: Cannot access member without instance.
var member = 1
func _ready():
	var lambda = func():
		member = 2 # runtime error here: "Cannot access member without instance."
	lambda.call()

Expected behavior: Modify the captured copy rather than attempting to modify the member.
Steps to reproduce
var member = 1
func _ready():
	var local = 2
	var lambda = func():
		local = 3 # modifies the captured copy (as expected)
		print(member) # prints "1" (as expected)
		member = 4 # runtime error here
	lambda.call()
	print(member) # not modified (as expected)
	print(local) # not modified (as expected)

Minimal reproduction project
No response

Tried the "steps to reproduce" code, and it fails with the same error on my machine.
Though trying to refer to self.member fails at parse time too : Parser Error: Cannot use "self" inside a lambda.
So, I'm not sure how closure works in godot, maybe they are read-only by default?


Misleading: "unsafely update root"

Currently, tuf/client/updater.py refers to the "unsafe" updating of root in two scenarios:

the current root file is expired, but will still be used to validate a new root file
a new snapshot file could not be validated, and root will be updated even though we don't have snapshot's data about a root metadata file)

I haven't checked the logic in the code regarding scenario 1.
Scenario 2, however, is misleading. This is not unsafe, as snapshot's vouching for the root file is not of real security import - which is why we're okay with removing the root listing in snapshot (as a peripheral part of TAP 5).
It would be best, I think, to clean up the optional arguments, debug messages, and code comments to not leave this misleading impression.
(The unsafely_update... argument is also used to prevent an infinite loop of root checks - it's the mechanism used to try-again only once.)

I think updating Root "unsafely" is currently misleading mainly because of the changes made to the update procedure, where  (1) new versions of Root must be updated in order (1.root.json -> 2.root.json, etc.) (2) Root must be updated before any of the other top-level roles, and (3) a new Root must be signed by a threshold of trusted keys set by the previous version.

Just so things are clear in case someone's assigned to deal with this:

I don't think that (1) and (2) impacted the safety of skipping snapshot-based validation of a root file. IIUC, in their absence, it remains as safe to try to update root as long as you are validating based on the trusted root information (which occurs even with unsafely_update... set). That is, I don't think there's much if any security impact to checking the root hash in snapshot whether you're trying to go from root v1 to v6 directly or v1 to v2. v1 to v6 directly may fail if keys+threshold has changed too much, but the existence of a root hash in snapshot doesn't impact that.
I don't think (3) resulted from a change, unless it was from well before I was around, long before any TAPs. (3) is absolutely critical and not having it at any point would demolish security guarantees. (TBC, it remains the case whether or not the unsafely flag is on.)

The ask here is to clarify this segment of code, renaming the argument and adjusting comments so that it does not confuse implementers / maintainers, and IIRC probably restructuring it so that the try-twice root validation doesn't occur.

closing:

root has not been part of snapshot for a while now so the core issue does not exist
ngclient also does not use the misleading naming "unsafe update"


Update TypeTestingAndConversionOperators.cs

Fixed code snippet for array casting example.

Now it works in browser.
Summary
Checking the code in the browser raised an error.
I'm happy to help Microsoft!

Dear team!
I think you need unit tests for code samples.

closing and reopening for a fresh CI build.

Dear team! I think you need unit tests for code samples.

We know. It's a harder problem than it appears at first.
Most importantly, we don't want the introduction of unit tests to make the reader's experience worse. For example, it's easy to copy / paste / modify samples that use Console.WriteLine to experiment with an API or a concept. Those are hard to unit test, and brittle when you do. We're working on some technology that would enable us to "replay" the steps for code in an article and verify the results. Those show promise, but aren't perfect yet.
In the meantime, we have a CI system to (at least) catch compiler errors.


Configure SheetJS

[ ] Create a simple SheetJS table
[ ] Pull data from Github API into SheetJS table
[ ] Sort SheetJS table by least recent
[ ] Repeat for all pods and repos that need work

Table structure:

User
Reviewer
Podname
Created_at
Upated_at

yahengsu
wlawt
0.2.2 Javascript Jellies
some time
some time after


Fixed broken link to chart components

this is currently pointing to https://developer.newrelic.com/intro-to-sdk which gives a 404 and I think it should point to https://developer.newrelic.com/explore-docs/intro-to-sdk right?
Description
PR to fix a currently broken link
Reviewer Notes
Check query and store data page and link within page guide to chart components points to /intro-to-sdk but should be /explore-docs/intro-to-sdk
Use Conventional Commits
Please help the maintainers by leveraging the following conventional commit
standards in your pull request title and commit messages.
Use chore

for minor changes / additions / corrections to content.
for minor changes / additions / corrections to images.
for minor non-functional changes / additions to github actions, github templates, package or config updates, etc

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Hey @gspncr great find! Thanks so much for the contribution!


CI not able to authenticate platform.sh host

@subhojit777, many of the hosts you are adding are already present in the known_hosts file. Why add them again?
All possible hosts are found with this script but it fails keyscan for certain hosts. If -t rsa is working, maybe we should add that to the script and see if it works for all the hosts. If it does, we don't need to manually run it during build.

@hussainweb The workflow is working with the latest main. Can you please create a release, and let me know. I would like to point the action to a fixed release, rather than the latest commit.
// @skippednote

@hussainweb The workflow is working with the latest main. Can you please create a release, and let me know. I would like to point the action to a fixed release, rather than the latest commit.
// @skippednote


Philips 279C9 not working

Checklist

[ ] I have searched for existing issues
[ ] I have looked through the wiki
[ ] I have updated MonitorControl to the latest version

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Environment Information (please complete the following information):

macOS version:
MonitorControl version:
Monitor(s):

Hi, does ddctl or m1ddc work with the display?
https://github.com/MonitorControl/MonitorControl/wiki/Advanced-Preferences
If so, MC should have no problem controlling the display. Please let me know if you have this issue still and can provide this info. I'll close the issue until that time. Thank you and sorry for responding so late!

Hi @waydabber, I have the same monitor and facing this issue as well.
My results with m1ddc:

Can control brightness: ./m1ddc set b 0 ./m1ddc set b 100 works correct. But ./m1ddc get b always returns -118;
As for volume, I can control only 'mute on/off', volume increasing/decreasing is not working. ./m1ddc get v always returns -118, ./m1ddc max b returns -85

Hi, can you control the brightness with MonitorControl? If you have issues with initial ddc read on startup, you can press Shift during startup for safe mode, enable Advanced... in General preferences and then set Polling to None under Displays.

Hi, can you control the brightness with MonitorControl? If you have issues with initial ddc read on startup, you can press Shift during startup for safe mode, enable Advanced... in General preferences and then set Polling to None under Displays.

Yes. I tried every 'Polling' setting, but volume control still not working :( But brightness works correct

Well, this is probably an issue with the display I am afraid then and probably can't be fixed on the software side. It's strange since Philips displays mostly support DDC-CI properly.

这是来自QQ邮箱的假期自动回复邮件。

您好，我最近正在休假中，无法亲自回复您的邮件。我将在假期结束后，尽快给您回复。


[#215] gradle and library updates

Description
gradle and library updates
Resolves #215
Pull Request Checklist

[x] I have read the guidelines for contributing
[x] I have tested the app before creating this PR
[x] PR title starts with [#ISSUE_ID]
[x] I have added a valid description, and replaced Resolves: #ISSUE_ID with a valid issue number

Codecov Report

Merging #216 (9a6ad56) into develop (1f44162) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop     #216   +/-   ##
========================================
  Coverage    70.84%   70.84%
========================================
  Files           37       37
  Lines         1252     1252
  Branches       244      244
========================================
  Hits           887      887
  Misses         361      361
  Partials         4        4


 IF YOU DO NOT FOLLOW THE FORMAT OR MAKE A GENERIC TOKEN REQUEST YOUR ISSUE WILL BE DELETED WITHOUT COMMENT
YOUR JUSTLIST MUST FOLLOW THE JSON SPECIFICATION
https://github.com/justswaporg/justlists/example.justlists.ts
Checklist

[ ] I understand that this is not the place to request a token listing.
[ ] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[ ] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL:
JustList Name:
Link to the official homepage of the JustList manager:

I need money

Sorry, your issue will be closed as you did not submit your information in the correct format.


Long click on our near non-draggable marker not working

Hi there, this is a multi part issue in a way.
Recently we updated to use compose maps throughout our application and I must first say how absolutely amazing it is to use compose for maps. Sooooo much better than the xml way, so thank you for all the effort on this.
The first issue we came across was that we were encountering an ANR when switching between screens with compose maps. After doing some profiling and trying to figure out what the cause was it seems like it ended up being ground overlays. I am no expert in debugging ANRs but from the trace it seemed like that was the cause. I was able to reproduce pretty consistently by going back and forth between screens with maps that had ground overlays.
When we encountered this issue we were still using the legacy renderer, switching to the latest renderer seems to have fixed the issue above, awesome! The new renderer also seems to render much smoother, also awesome! 🙂
However, there is one issue. Our map is displaying a disc golf course, similar to that of a ball golf course, it has a tee pad a target a fairway etc. So we use a combination of markers, ground overlays, poly lines, etc. to display this.

One feature we supply is allowing the user to map where their throws land by long pressing on the map.
https://user-images.githubusercontent.com/14790910/212941085-23e19708-ad06-4cac-a19b-b340157b995e.mp4
The issue is that when long pressing on or very close to a marker the long click is never registered in the listener. This marker is not draggable and has no listeners setup.
https://user-images.githubusercontent.com/14790910/212941586-e7b5176d-b266-4900-a6be-165c2094d83b.mp4
The long click on top of markers worked fine in the previous renderer.
Any help with this would be greatly appreciated.

@tSquaredd Thank you for opening this issue. 🙏
Please check out these other resources that might help you get to a resolution in the meantime:

Support Console - If you have a support contract.
Discord - chat with other developers
StackOverflow - use the google-maps tag
Google Maps Platform issue trackers

This is an automated message, feel free to ignore.

Here is a google map sdk report about long click on a marker with the new render
https://issuetracker.google.com/issues/285920123


fix 909

this simply removes @Deprecated stuff that I have touched and know about, some tests are changed also because of that

not for myself, this drops deprecated things from :

commons
fabric8 autoconfig/config
k8s-native autoconfig/config


Links to biorxiv trigger a DOI fetch error

Description
MyST version 1.1.56
A link to a biorxiv paper is interpreted as a DOI, but versioning messes it up. For example:
https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>4968v2
gives the error:
Could not find DOI "https://doi.org/10.1101/2<IP_ADDRESS>4968v2" from doi.org as doi:10.1101/2<IP_ADDRESS>4968v2
Proposed solution
You could either remove the v2 at the end, or modify the DOI search pattern so it doesn't pick this up.
Additional notes

Fix will be released soon!


Atmosphereblob

Minecraft Version:
1.12.2
Forge Version:
2601
Advanced Rocketry Version:
1.2.6-50
LibVulpes Version:
0.2.7-25
Part of the FTB revelation 1.4.0 pack

Crash Report:
https://pastebin.com/HvXYP9Cy
Explain issue in detail:
So my friend made the first space station on the server. He told me that right befor the crash he had thrown a few carbon cartridge in the co2 scrubber and turned on his oxygen vent and then a few minute latter the server crashed.
edit: here is the dimention that cause trouble :
https://www.dropbox.com/s/qcelf553c9gn1c1/DIM-2.rar?dl=0

see #1129

thanks


Plugin path resolve problem on Windows platform

Environment
Nuxi 3.0.0

RootDir: C:/Users/User/works/Web/frontend
Nuxt project info:

------------------------------
- Operating System: `Windows_NT`
- Node Version:     `v18.12.1`
- Nuxt Version:     `3.0.0`
- Nitro Version:    `1.0.0`
- Package Manager<EMAIL_ADDRESS>- Builder:          `vite`
- User Config:      `modules`, `ssr`, `proxy`, `css`, `vite`
- Runtime Modules:  `<EMAIL_ADDRESS>`()`
- Build Modules:    `-`
------------------------------

Reproduction
See @nuxtjs-alt/proxy/src/module.ts
Describe the bug
Under Nuxt 3.0, Nitro will generate a script at .nuxt/dev/index.mjs before server up:
//...
import { toRouteMatcher, createRouter } from 'file://C:/Users/User/works/Web/frontend/node_modules/radix3/dist/index.mjs';
import _ROuXHMtK6R from 'C:/Users/User/works/Web/frontend/.nuxt/nitro-fetch.mjs';
import { createProxyServer } from<EMAIL_ADDRESS>//...

Then node complains:
ERROR  [worker reload] [worker init] Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

Additional context
In my openion
C:/foo/bar.js
/foo/bar

should both be corrected to:
file://C:/foo/bar.js
file:///foo/bar

Please check my workaround discussion here.
Logs
ERROR  [worker reload] [worker init] Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

  at new NodeError (node:internal/errors:387:5)
  at throwIfUnsupportedURLScheme (node:internal/modules/esm/resolve:1017:11)
  at defaultResolve (node:internal/modules/esm/resolve:1097:3)
  at nextResolve (node:internal/modules/esm/loader:163:28)
  at ESMLoader.resolve (node:internal/modules/esm/loader:837:30)
  at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)
  at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
  at link (node:internal/modules/esm/module_job:75:36)

seems to be fixed here: https://github.com/unjs/nitro/pull/732

Thus, closing here ☺


Unexpected  re-rendering

I wanted to document some findings around dash-renderer and the possibly unnecessary re-rendering I think it sometimes does.
I've noticed that the TreeContainer's shouldComponentUpdate method does not do what we think it does - even when returning false it still renders. Logging the result of the logic in shouldComponentUpdate and logging in render() looks like this:

I have also noticed that the callbacks are being called twice upon initializing, as demonstrated in this test: https://github.com/plotly/dash-core-components/blob/62e90491c67a79edcfb0bdbdf2f5fa134efd791e/test/test_integration.py#L898
which could also be caused by unexpected re-rendering behaviour.

I had a problem of callbacks being called twice even after initializing.
When I click a button, there is a first call to the callback, and after some seconds, a second call to the callback is triggered.
However, n_clicks = 1

Not sure if this is still an issue, but moving it to dash so we don't lose it.


Update join testnet instructions

Motivation
The instructions on how to join any testnet and TweedleDee in the readme were wrong. Now they are correct.
Changes
Just readme instructions change.
Test Plan
Tested joining TweedeleDee with the updated instructions.
TODO

[x] Explain motivation or link existing issue(s)
[x] Test changes and document test plan
[x] Update documentation as needed

bors try

bors try

bors merge

bors merge


Configurable WAL for PostgreSQL

Our team would like to replicate WAL for backups/restores. This PR makes the following configurable in attributes for the postgresql.conf template:
wal_level
archive_mode
archive_command
archive_timeout
The default values are those for PostgreSQL.

:+1:

:+1:  looks good now

I'm +1 on getting this merged in as well.

This has been merged here: https://github.com/chef/opscode-omnibus/commit/054c7ebef98c24ad15947064abf63ddc5da76d50
Thank you for this contribution!


Example for how to format modelPath with optional models

Can you please provide an example on how to include an optional model such as GEAR?
In my front end app I cannot seem to get the modelPath correct.
The relevant portion of my config is like this:
const config = {
  face: {
    gear: {
      enabled: true,
      modelPath: '../what/goes/here/human-models/models/gear.json',
    },
  },
};

I have spent all after noon looking through the wiki with no luck.
I have both human and human-models installed in my node-modules

Closing this because of a misunderstanding on my end. I needed to copy the models to the public directory in my project


Ks

Phillis.  What do you think?  Good?

@kyleaschmitt we need to update the packer file to compile the newer version of squid?

Details details details... and yes.  I'll update that today.
On Wed, Jul 12, 2017 at 8:48 PM, Yajing Tang<EMAIL_ADDRESS>wrote:

@kyleaschmitt https://github.com/kyleaschmitt we need to update the
packer file to compile the newer version of squid?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/uc-cdis/images/pull/12#issuecomment-314946434, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AH6NKuupEe18svBg5r8u56-JZG_q6dAIks5sNXdtgaJpZM4OWF3y
.


Fixing typo in engine comments

Signed-off-by: Paul Brousseau<EMAIL_ADDRESS>What this PR does / why we need it:
Fixes a typo in the engine.Engine struct
Special notes for your reviewer:
If applicable:

[ ] this PR contains documentation
[ ] this PR contains unit tests
[ ] this PR has been tested for backwards compatibility

removing this from the milestone. It's just a to fix for a doc comment. It doesn't actually "fix" anything. :)


Wire up database backups

Users need to be able to backup their metastore data and the shard data.
There should be something in the query language to back up the metastore do a given file. And to backup each shard to a given file. When executed, it would save that file on the server that received the query.

This seems like it should be configurable, or at least restricted to administrators to prevent a DoS by filling up filesystems that the user may not even have access to.

Added in RC16


tdx-enc-handler: add support for saving the encryption key in the disk partition

On systems with secure boot enabled and an encrypted data partition, there is no place to store the encryption key blob, since the rootfs will be read-only (because of dm-verity) and one cannot use the data partition to store the key required to decrypt itself.
To solve this issue, let's make it possible to save the encryption key blob inside the disk partition to be encrypted, but in a reserved block outside the dm-crypt partition.
This feature can be enabled by setting the TDX_ENC_KEY_LOCATION variable to 'partition'.
When enabled, at least one block from the partition is reserved to store the encryption key blob. In case one wants more blocks to be reserved for other purposes, the number of blocks to be reserved can be configured via the TDX_ENC_STORAGE_RESERVE variable.
The key is stored in the partition as a list of null-terminated strings in the format key=value:
keyname=tdxenc
keydata=e2204090ffee9159ebaff4e322590c4a4f44f203f84c3411b73a6788c6ae1... keycsum=29d6ef285d4ea17b0ccf1d94c9fe3957058b2b7733459d33c3ed12f9d031408f
The default behavior is still to save the key as a file in the filesystem (TDX_ENC_KEY_LOCATION set to 'filesystem'), so this feature will not break systems that are currently using encryption.

This PR is just a cherry-pick from kirkstone into scarthgap.


Update "Learn more" links in UI to latest OpenShift version 4.5

Updated the "Learn more" links in UI's cost model wizard to latest OpenShift version 4.5
https://issues.redhat.com/browse/COST-403

Codecov Report

Merging #1631 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1631   +/-   ##
=======================================
  Coverage   78.65%   78.65%
=======================================
  Files         240      240
  Lines        3926     3926
  Branches      718      718
=======================================
  Hits         3088     3088
  Misses        740      740
  Partials       98       98

Continue to review full report at Codecov.

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


Error on npm run dev

Hi,
I wanted to build kube-forwarder on my own and maybe fix the static windows size bug on linux.
I followed exactly your instructions, but I have no luck. When I run npm run dev, I get this error
  ERROR in Template execution failed: ReferenceError: process is not defined
  ERROR in   ReferenceError: process is not defined

    - index.ejs:773
      /home/user/kube-forwarder/src/index.ejs:773:7

    - index.ejs:763 exports
      /home/user/kube-forwarder/src/index.ejs:763:179

    - index.js:284
      [kube-forwarder]/[html-webpack-plugin]/index.js:284:18

    - task_queues.js:93 process.processTicksAndRejections
      internal/process/task_queues.js:93:5

I'm using Ubuntu 64Bit 18.04, nodejs 10.19.0, npm 6.13.4. If you need more details, please ask.
I did also try to npm run web and npm run build but they all fail.
I tried with the master and the release branch, both showed exactly the same error message.
Am I missing something?

I had the same issue.
I have a fix for it here:
https://github.com/pixel-point/kube-forwarder/pull/56