Ugly Plasma System Tray Icon

For some reason the system tray icon of gpmdp looks really ugly on KDE.
It shows as a big orange/white square.

I tried some different Plasma Themes, but can't get a regular looking tray icon.
I'm running KDE Plasma on Manjaro.

This is fixed in master (I think)
It's because KDE doesn't scale the tray images (their fault really 😆 )


github_team --> json: cannot unmarshal object into Go struct field Organization.blog of type string

Terraform Version
Terraform v0.10.2
Affected Resource(s)
Please list the resources as a list, for example:

github_team

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
resource "github_team" "foo" {
  name = "foo"
  description = "The FOO team"
  privacy = "closed"
}

Expected Behavior
Github team Foo should be created and the plan should continue to be applied.
Actual Behavior
Github team Foo is created, but terraform apply throws error and stops:
github_team.foo json: cannot unmarshal object into Go struct field Organization.blog of type string
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:

terraform apply

Important Factoids
This is the first time I have tried to create a new Github team since upgrading to tf 0.10.x. I have created multiple teams with no issues on 0.9.x

Recently upgraded to terraform 10.0.4 and this fixed the issue.

Hi @sclausson! Sorry for this strange error.
I'm pretty confused by this error since it seems to suggest that the GitHub API removed an organization object whose blog attribute was a JSON object, rather than a string as indicated in the API documentation.
It's also strange that upgrading Terraform core would've fixed it, since the code that produced this error is within the github client library, which is within the provider plugin rather than within core.
Do you think it's possible that this was a transient issue on GitHub's end, and was fixed in the mean time? As far as I know, there's no good reason for that blog attribute to be anything other than a string, so all I can think of is that there was temporarily a bug in GitHub that was returning, perhaps, a null blog as an empty object {} instead.
Ideally this Terraform provider wouldn't be sensitive to this issue since it doesn't actually use the organization decoded as part of a team, but this is just something done "for free" by the GitHub client library and so not easy for us to skip over. :confounded:

Hi @apparentlymart I agree that the error is a strange one. As you say, I'm not sure why we would even care about the blog attribute when creating a team, nor why the blog would be anything other than a string. I could try to reproduce by rolling back to 10.0.2 if you think that would be valuable. Otherwise I agree we can chalk it up to a transient error, close, and hope not to see it again.

Hi folks,
I'm going to have close this issue as unreproducible.
I believe there may be some improvements / bug fixing to do in the upstream SDK, but we can't tell exactly how to fix it without having more data.
The provider is capable of logging all HTTP requests and responses when DEBUG mode is enabled. If you happen to hit the same/similar issue, please enable it and attach the log (minus any secret/sensitive data) to a new issue and we can take a look! 😉
Thanks.


Cancellation of GraphQL subscription

Is your feature request related to a problem?
When a transaction is submitted, we can await the completion.
However, the connection is never closed, and consume unnecessary resources.
Describe the solution you'd like
Currently, we are using: withAbsintheSocket.observe and through an observable we can cancel the websocket subscription
Additional context
No response

Hey team! Please add your planning poker estimate with ZenHub @apoorv-2204 @imnik11 @Neylix @prix-uniris

https://github.com/absinthe-graphql/absinthe-socket/tree/master/packages/socket#observe


License of this project and integrating into ESPHome

Hi, first of all thank you for all the hard work you already put into this and the other APS ECU projects! It really got me started with my own project because i could validate the communication with the inverter before getting started and use your implementation as a guide!
I am currently writing my own APS ECU integration for ESPHome (https://esphome.io/). My integration is based on your code for the communication with the zigbee module and the parsing of the responses. For now my project is private but i am thinking about publishing it when it is completed (so others can use and enjoy it too). Since i could not find the license for your project i have to assume it is proprietary.
Therefore i want to ask you: Do you allow me to publish my code on GitHub and maybe even integrate/pull it into the ESPHome project in the future, if it ever gets that far? Ideally I would like to publish my code/project under the MIT or GPL license.
Oh! And of course i would mention you and your project in my README etc. and would never claim it is all my work. Again i am very thankful for all the reverse engineering and other work you and others did.

@derrohrbach  I just added the MIT licence to the project so you can do what you like.
Good luck with your project.

@patience4711 This is great news! Thanks! If you want I'll send you a link to the project.

In case you are interested: This is my project https://github.com/derrohrbach/esphome-apsystems


Incorrect documentation link

[Enter feedback here]

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

ID: df5d17e2-0f83-b115-5bfc-1a1691441dc2
Version Independent ID: df5d17e2-0f83-b115-5bfc-1a1691441dc2
Content: Manage your pipeline with Azure CLI - Azure DevOps
Content Source: docs/pipelines/get-started/manage-pipelines-with-azure-cli.md
Service: azure-devops-pipelines
Sub-service: azure-devops-pipelines-get-started
GitHub Login: @silviuandrica
Microsoft Alias: sandrica

@jeevanions -- thank you for your feedback.  Please clarify the difference between that link's destination, and your expected destination.


Add a method to get the lowest energy structure from a collection of jobs

When creating a workflow it can sometimes be useful to have a method for getting the lowest energy structure of a collection of jobs. For example, if we are sampling a number of coordination modes for some system and then proceed the workflow with the most stable structure.

This should be part of the results module I think since I assume that you will load a bunch of calculations for determining the relative (free) energy


Speed up metrics computation by parallelizing across subjects

This PR is an initial attempt at parallelizing the computation of metrics across subjects using multiprocessing. The usage is similar to that of sct_run_batch -- an additional arg -jobs has been added to process subjects in parallel.
I even tried parallelizing across labels (i.e. nested parallelization with 1st parallelism across subjects and 2nd level of parallelism across labels for each subject). BUT, this resulted in an error AssertionError: daemonic processes are not allowed to have children -- which essentially means that child processes are not allowed to create further child processes.
Hence, in this version, parallelization is only happening at one level. If we want to parallelize the computation across multiple subjects, we should avoid parallelizing within each subject's computation (i.e. no parallelization within the labels).
@valosekj could you please give this PR a try and see if you see some speed ups?

I compared main with your branch on site-003 on romane and I found out that the speed is actually very similar.
parallel processing: nk/faster-metrics-computation `-jobs 11`: 22m13.9s

single CPU processing: main: 18m9.5s


How can I update the async node module in sails?

Sailsjs use async with v0.9.2, But the newest version of async add some new method such as forEachof and so on. This is a very useful method for me, so how can I update it to the newest version?
thanks!

If you'd like to use a different version of async in your Sails application, you can install async in your project and require() it, and disable it in config/globals.js

If you'd like to use a different version of async in your Sails application, you can install async in your project and require() it, and disable it in config/globals.js

:+1: couldn't agree more
npm install async --save

foo: function (req, res) {
  var async = require('async');
  // ...
}

@cage1618 and if you're very fond of the automatic async globalization, follow TJ's instructions and then globalize your own version of async in your config/bootstrap.js file.

@cage1618 good luck :)


The following changes allow this script to work on OpenWRT and othe…

Shell script get_region_and_token.sh

Should fix issue #5  . At least for this particular script.

The following changes allow this script to work on OpenWRT with no loss of functionality.

A few changes to make the script compatible with most shell interpreter implementations.

Not only bash(1).

Furthermore, only use features available on limited shell interpreter implementations such as  the one on OpenWRT

Detailed description follows:

On function printServerLatency:

Replace "${@:3}" with "shift 2"

Feature is not widely available and it can be replaced with shift

Do not spawn 2 sed when a single one will do.
Suggestion:

Add "--max-time $((${MAX_LATENCY} * 2))" to curl: The whole process (from connection to transmission) should not take more than MAX_LATENCY * 2

Remove "export -f printServerLatency"

Function export feature is not widely available and it will not be required due to change on variable bestRegion instantiation

Replace "[[ ... ]]" with widely available "[ ]" from test(1).

Use test(1) syntax for the replaced tests: -lt, -o and -z.

On summarized_region_data:

Make it easier to modify the jq processing string.

Like a construct pattern.

Suggestion:

Add "PIA_NO_GEO" env variable to filter out geo virtual locations.

On bestRegion:

Limitted shell environments (such as on OpenWRT) do not support "xargs -i".
Furthermore, function export feature is not widely available.
Therefore, use a more compatible construct. It also does not spawn a process per line.

Replace
"xargs -i bash -c 'printServerLatency {}'"
with
"{ while read -r LINE ; do printServerLatency ${LINE} ; done }"

Replace "sort" with "sort -n" since we are dealing with numbers.

Add instructions for "PIA_NO_GEO" env variable

I see you made modifications to all scripts. Did you manage to get WG and PF to work on OpenWRT?

I see you made modifications to all scripts. Did you manage to get WG and PF to work on OpenWRT?

port_forwarding.sh script is working.
connect_to_wireguard_with_token.sh requires more work for integrating with OpenWRT. I have a crude hardcoded script but it's not ready for general use.

I think that OpenWRT might require a special folder o a special project altogether. It seems to be a lot different than other distros.
I would also like to merge fixes for OpenWRT when we are sure that all functionality can be enabled. At this point, enabling users to get regions and tokens from OpenWRT doesn't really help them, as they could actually get the region and the token from another machine. I think the main focus should be to enable WireGuard for OpenWRT.

Aside from the "suggestions", the changes made the script more portable. Several of the constructs were bash(1) compatible only: "[[ ]] and  ${@:3}". All changes are retrocompatible. There is no impact on functionality.
Replacing xargs with read was done so that it would be portable even to busybox's sh, csh, tcsh, ksh and FreeBSD (I also use sh BSD variants). Export of function's namespace is highly dependent on a bash feature. Besides, the "read" command is a perfectly portable shell internal function... and it avoids a shell fork per line processed.
The scripts should work fine on every major Linux distribution and others. There have been no OpenWRT specific changes. I've been careful to avoid those. I hope the changes are accepted. All scripts still work as intended.
As per OpenWRT, only connect_to_wireguard_with_token.sh is not "ready" for it. It's just like the OpenVPN LEDE setup, one has to create the connection first then use the script to update/restart the connection. That's how I'm using it without issues. However, you're right: connect_to_wireguard_with_token.sh specifically would benefit from a OpenWRT only version.
Please let me know if I can be of assistance.

I agree to your point about making all the scripts compatible with all platforms. That is something we should focus on. However we currently added a new branch for OpenVPN: https://github.com/pia-foss/manual-connections/tree/testing_openvpn
This new branch must be tested and after we reach stable working scripts that will function OK on most distributions, we can focus on providing a new version that will work on busybox/shell. At this point, accepting this merge would decrease the consistency of the repo. I think we should migrate everything from bash to sh (all scripts that are found in the new branch) when we have time to focus on it.

These changes worked well for the most part for me on FreeBSD.  It seems like there is an issue with MAX_LATENCY defaulting to 0.05 and how freebsd SH handles math expressions with leading zeros.  I ran into this issue: https://lists.freebsd.org/pipermail/freebsd-stable/2012-September/069630.html

The OpenVPN addition got pushed to master, and there is a new release out. I think we should wait till we have fully working scripts for OpenWRT, before merging any changes that would only partially fix the problem.

Considering bash has only 8MB installed, I think it is worth to make the code easier to read and modify for everybody. We do support the idea of having forks or repos dedicated for specific platforms and specific languages (so not only sh, but also Python and GoLang). All of this would be awesome, but it also requires a lot work both from the PIA and from the community to create and support all of the alternatives.
In the case of OpenWRT, I am starting to think that the best way to do it is to create a separate project, as the differences from other distributions are very big. This sadly seems to also be the case with EdgeOS, OPNsense, PFsense. The only platform that can be supported with minimal changes is FreeBSD, but even for FreeBSD I feel like we should have at least a separate folder, if not a separate project (or a fork).
I do have to close this PR now as master already changed and also it does not fully support all the features of the existing repo, so accepting it would only break the consistency of the scripts. OpenWRT will clearly happen at a certain point, either directly from PIA or from the community. I just think we have to patient and make it official after it's fully working.


Add Ring

The database was upgraded. Please convert to the new format by running this small Rust program located here:
https://github.com/soupslurpr/internal_verification_info_to_new_format_parser
Thanks.


Sync stack. Don't block on NonBlockingThread.

In this PR:

Fixed case where switching back to sync stack would throw on non-blocking thread.
Added log to know about this.

This isn't perfect but better than blowing up.

API change check for com.azure:azure-core
API changes have been detected in com.azure:azure-core. You can review API changes here


Scheme: syntaxcomplete after quote (') character causes error

Describe the bug
When editing a Scheme file, and the omnifunc is syntaxcomplete#Complete, attempting to use omni completion after a quote character (') causes an error:
Error detected while processing function syntaxcomplete#Complete:
line   63:
E15: Invalid expression: *'

To Reproduce

Open a Scheme file using Vim (e.g. vim myprog.scm)
Set the omnifunc to syntaxcomplete#Complete: :set omnifunc=syntaxcomplete#Complete
Type a single quote character (')
Omni complete: CtrlxCtrlo
Resulting error:

Error detected while processing function syntaxcomplete#Complete:
line   63:
E15: Invalid expression: *'

Expected behavior
A list of Omni complete suggestions should have appeared.
Environment (please complete the following information):

Vim version: 8.0.1453
OS: Ubuntu 18.04
Terminal: GNOME Terminal

Additional context
The problem is probably caused by:
https://github.com/vim/vim/blob/7a9bd7c1e0ce1baf5a02daf36eeae3638aa315c7/runtime/autoload/syntaxcomplete.vim#L202-L205
When base contains single quotes, they are not escaped, resulting in an invalid expr passed to filter.
Note that quotes in Common Lisp files do not cause the same error.
@evhan (maintainer of the Scheme syntax file)

Hi @flux77, thanks, I can reproduce this (but don't know enough about omni completion or syntaxcomplete to say more than that just now).

please contact the maintainer of the syntaxcomplete file.

@chrisbra Email sent.

This error appears when using the older version of the Scheme syntax file (dated: 2016 May 23). In that older version, the problem can be solved by removing one line: setlocal iskeyword=33,35-39,42-58,60-90,94,95,97-122,126,_.
The current version of the Scheme syntax file does not cause this error.


Build failure on RN0.47.0

Due to breaking change of RN0.47.0, the build on Android fails.

The best solution is to be this one: https://github.com/facebook/react-native-fbsdk/commit/f0523e7f62ad82b8c1d83275c51d70a93aa594cd

I just submitted a pull request. This issue will be resolved shortly.

@zmxv @benvium You have your choice of PRs, ha!

@hellogerard I just closed pull request because your submission is a precedent to mine. Thanks for your effort! I'm very happy that this repo is well-managed because we are using it on production :)

@hellogerard you are referring to #239?

@trepidity Yessir!

I am not upgrading RN because of this issue!

@trepidity The pull request #239 definitely resolves this issue. Lots of 3rd party libraries have already done the same patch all around.

As of version 0.10.3, this is still an issue (code is fixed but not released on npm!)
Can you please do a release of the new version which has the fix?

@mo-solnet 0.10.4 released :)

Thank you @trepidity 🥂


render_many doesn't work right with Slim

Steps to reproduce
# app/components/foo_component.rb
class FooComponent < ViewComponent::Base
  include ViewComponent::SlotableV2

  renders_many :bars, BarComponent
end

# app/components/foo_component.html.slim
- bars.each do |bar|
    = bar

# app/components/foo_component.html.slim
class BarComponent < ViewComponent::Base
end

# app/components/foo_component.html.slim
= content

# app/views/whatever.html.slim
= render FooComponent.new do |c|
  - c.bar do
    p Something with HTML formatting

Expected behavior
When the HTML is rendered, the text "Something with HTML formatting" should be formatted correctly.
Actual behavior
The HTML is escaped and rendered in the page so the end-user sees the HTML tags instead of the formatting.
System configuration
Rails version:
<IP_ADDRESS>
Ruby version:
2.7.2p137
Gem version:
2.24.0

@dkniffin thank you for the bug report! Would you be willing to open a PR with a failing test?

@dkniffin thank you for the bug report! Would you be willing to open a PR with a failing test?

@joelhawksley Yeah, I can try and do that tomorrow

@joelhawksley Yeah, I can try and do that tomorrow

@manuelpuyol I think I tried that and it didn't work, but it's been a few weeks now. I started on a failing test but haven't gotten around to finishing it.

@manuelpuyol I think I tried that and it didn't work, but it's been a few weeks now. I started on a failing test but haven't gotten around to finishing it.

@dkniffin @joelhawksley I think I've found the issue!
Looking at the render stacktrace here:
 "/Users/manuelpuyol/github/view_component/lib/view_component/slot_v2.rb:26:in `to_s'",
 "/Library/Ruby/Gems/2.6.0/gems/temple-0.8.2/lib/temple/utils.rb:38:in `escape_html'",
 "/Library/Ruby/Gems/2.6.0/gems/temple-0.8.2/lib/temple/utils.rb:21:in `escape_html_safe'",
 "/Users/manuelpuyol/github/view_component/test/app/components/slim_renders_many_component.html.slim:3:in `block in call'",
 "/Users/manuelpuyol/github/view_component/test/app/components/slim_renders_many_component.html.slim:1:in `each'",
 "/Users/manuelpuyol/github/view_component/test/app/components/slim_renders_many_component.html.slim:1:in `call'",
 "(eval):3:in `render_template_for'",
 "/Users/manuelpuyol/github/view_component/lib/view_component/base.rb:79:in `render_in'",

When rendering the component, we have to go through temple to render the slim template. There, we have this check:
html.html_safe? ? html : escape_html(html)

Since ViewComponent::SlotV2 is technically html unsafe, temple is escaping the rendered component and causing the issue.
To verify this, I tried adding
def html_safe?
  true
end

to ViewComponent::SlotV2 and the component rendered correctly

@dkniffin @joelhawksley I think I've found the issue!
Looking at the render stacktrace here:
 "/Users/manuelpuyol/github/view_component/lib/view_component/slot_v2.rb:26:in `to_s'",
 "/Library/Ruby/Gems/2.6.0/gems/temple-0.8.2/lib/temple/utils.rb:38:in `escape_html'",
 "/Library/Ruby/Gems/2.6.0/gems/temple-0.8.2/lib/temple/utils.rb:21:in `escape_html_safe'",
 "/Users/manuelpuyol/github/view_component/test/app/components/slim_renders_many_component.html.slim:3:in `block in call'",
 "/Users/manuelpuyol/github/view_component/test/app/components/slim_renders_many_component.html.slim:1:in `each'",
 "/Users/manuelpuyol/github/view_component/test/app/components/slim_renders_many_component.html.slim:1:in `call'",
 "(eval):3:in `render_template_for'",
 "/Users/manuelpuyol/github/view_component/lib/view_component/base.rb:79:in `render_in'",

When rendering the component, we have to go through temple to render the slim template. There, we have this check:
html.html_safe? ? html : escape_html(html)

Since ViewComponent::SlotV2 is technically html unsafe, temple is escaping the rendered component and causing the issue.
To verify this, I tried adding
def html_safe?
  true
end

to ViewComponent::SlotV2 and the component rendered correctly

Nice! I see you also created a failing test for this 🎉
Is defining html_safe? like that the right solution? 🤔

Nice! I see you also created a failing test for this 🎉
Is defining html_safe? like that the right solution? 🤔

I'm not sure, that looks kinda dangerous to me since it will always assume that all of the content is safe, but that may not be the case if we are rendering inputs from users

I'm not sure, that looks kinda dangerous to me since it will always assume that all of the content is safe, but that may not be the case if we are rendering inputs from users

I agree that I don't think we want to assume safety. I think we could set an @html_safe ivar on SlotV2 that's references the html_safe? value of the string returned from to_s.

I agree that I don't think we want to assume safety. I think we could set an @html_safe ivar on SlotV2 that's references the html_safe? value of the string returned from to_s.

problem is that html_safe? always returns false unless you explicitly call .html_safe on the object/string

problem is that html_safe? always returns false unless you explicitly call .html_safe on the object/string

I was kind of imagining something like this, which would be almost like delegating html_safe? to the underlying template.
class SlotV2
  def html_safe?
    @html_safe if defined?(@html_safe)
  end

  def to_s
    # some existing code
    content = capture do
      # more existing code
    end

    @html_safe = content.html_safe
    content
  end
end

Could something like that work?

I was kind of imagining something like this, which would be almost like delegating html_safe? to the underlying template.
class SlotV2
  def html_safe?
    @html_safe if defined?(@html_safe)
  end

  def to_s
    # some existing code
    content = capture do
      # more existing code
    end

    @html_safe = content.html_safe
    content
  end
end

Could something like that work?

I can see that working, will test it out in my PR

I can see that working, will test it out in my PR

Well, actually checking the stack I commented before, to_s is called after the safety check 😬
maybe we could have def html_safe? already capture the content and check safety and to_s use the previously calculated content. wdyt?

Well, actually checking the stack I commented before, to_s is called after the safety check 😬
maybe we could have def html_safe? already capture the content and check safety and to_s use the previously calculated content. wdyt?

Well, actually checking the stack I commented before, to_s is called after the safety check 😬
maybe we could have def html_safe? already capture the content and check safety and to_s use the previously calculated content. wdyt?

😭 that's unfortunate. I think that could work, but we'd probably want to run the performance benchmarks afterwards to ensure we aren't introducing any performance regressions.

Well, actually checking the stack I commented before, to_s is called after the safety check 😬
maybe we could have def html_safe? already capture the content and check safety and to_s use the previously calculated content. wdyt?

😭 that's unfortunate. I think that could work, but we'd probably want to run the performance benchmarks afterwards to ensure we aren't introducing any performance regressions.

I have this draft going with the fix https://github.com/github/view_component/pull/594
would you mind helping me with the performance benchmarks?

I have this draft going with the fix https://github.com/github/view_component/pull/594
would you mind helping me with the performance benchmarks?

sure thing!
The benchmarks have rake tasks here, https://github.com/github/view_component/blob/main/Rakefile#L13-L18
so you should be able to run bin/rake benchmark and bin/rake slotable_benchmark to see the results that you can compare against main.

sure thing!
The benchmarks have rake tasks here, https://github.com/github/view_component/blob/main/Rakefile#L13-L18
so you should be able to run bin/rake benchmark and bin/rake slotable_benchmark to see the results that you can compare against main.


[Ready] SoundComponent

Requires https://github.com/space-wizards/space-station-14/pull/768

[x] Play sounds
[x] SoundSchedules actually work
[x] Send sound to specific users
[x] Make existing components use SoundComponent
[x] Add ScheduledSounds from prototypes
[x] Add Play methods equivalent to those of AudioSystem.
[x] Document most code.

I made it like this so one can make ambient noises with prototypes, since those will most likely be "global" sounds, and not follow the entity. I made an "ambientsound" prototype before, maybe I could add it here too.

I don't think entities should be managing something that isn't related to themselves. It's fine for code to invoke directly into the audio system for "fire and forget" type code IMO.
Really I want a sound component for ability to stop/start sounds and thing such as ambience, mostly.

Alright, I made it so you can't play sounds following other entities. Please tell me if you think I should change something else!

I still do think playing sounds at other positions and playing it globally should not be part of this sound component.

I can remove the ability to play sounds at other positions, but playing sounds globally is required for most ambience sounds.

Ambient sounds played by entities should always be local to the entity though. Things like generator hums. Playing ambience globally should be a completely different system IMO.

Ah, I see now! I understood "ambience sounds" as something similar to the ambience sounds that play on SS13 from time to time. In that case, tomorrow I will remove all SoundTypes except for Entity.

I made the changes. Should be good now, I think.


GLTF Exporter incorrect rendering

Hello,
I'm experiencing issues with the glTF Exporter (https://doc.babylonjs.com/extensions/gltfexporter).
My current project is running 3.3.0,
here's how the scene looks like vs the .glb file exported (viewed via babylon sandbox)

The surrounding box that is isVisible = false in the code doesn't seems to match the gltf

Even after i hide the box the model doesn't looks correct. I assume UV/Texture match are wrong?

To run a test I upgraded my whole project to 4.1.0. The glb file exported is smaller compared to 3.3.0 (21mb vs 36mb) and apparently it's missing a texture,

If I ignore this and open on blender, i can still see that uv/textures are wrong:

Unfortunately the project is a bit complex to provide a small contained jsfiddle to replicate this, but you can see the project live at https://www.mobitec.be/fr/configurateur/chaise/pure-c08?department=&upholstery=simili&data={"1"%3A694,"2"%3A48}
Is this is a known bug, any advice/pitfall or something to avoid when using glTF exporter?

Thanks for the report,
Currently visibility is not supported in glTF, we currently export all nodes in scene regardless of whether they are enabled/disabled. Adding @bghgary, do you think this is correct behavior, or should we rather omit exporting disabled nodes?
regarding the improper UV mapping, and texture issues, we've definitely made a number of changes to the glTF exporter since 3.3.0, and since 4.1.0, can you reproduce any of this behavior in a playground? Its a bit hard to reproduce this only from description without any sample asset or process to round-trip through Babylon.js

do you think this is correct behavior, or should we rather omit exporting disabled nodes?

We have a callback function that allows people to add code to determine what is exported. This callback can be used to filter out the invisible or disabled nodes. It might be okay to do this by default, but there should be a way to opt-out. It is a bit difficult to determine what should be exported or not since every scenario is different.

Thanks @Drigax , I will try to provide a small playground to replicate this.

Hello @Drigax.
I just created a small playground around this: https://github.com/luruke/test-babylon-export-gltf
Basically at export, a texture is missing. Depending on the n.of meshes , the missing texture may vary (maybe something due texture uniform index?).

Hello @Drigax , wondering if you were able to replicate this, and if I can help you somehow.

Hi @luruke, can you make your loading logic work via: playround.babylonjs.com?

@deltakosh, can you take a look at this instead? this environment is a bit unusual, I'm strugging to actually debug it.

@luruke can you share the PG code even if it is not working?

@deltakosh  / @Drigax the repo contains exactly that:
https://github.com/luruke/test-babylon-export-gltf/blob/master/index.html#L66
It's a local copy of the playground
You can just download the index.html and run it on a web server

yes but we need it inside the PG to remove all other error inducing sources

@deltakosh , https://playground.babylonjs.com/#7T1HBH

Here's what I get when running the PG in my local repo (I have just synced my repo with the master, so it is up to date):

However, I do also have this error with the PG online:

Here is the fix of the PG:
https://playground.babylonjs.com/#7T1HBH#1
See line #214 where I set up the gltf extension

Ah great, thank you @deltakosh.
I have added the generation of the glb on the PG:
https://playground.babylonjs.com/#7T1HBH#2

                document.addEventListener('click', () => {
                    BABYLON.GLTF2Export.GLBAsync(scene, "file").then((glb) => {
                        glb.downloadFiles();
                    });
                })

Once the scene is loaded, click anywhere to download the glb file
Verify that the glb has incorrect texture

@Drigax interested in taking from here?

Hello @deltakosh / @Drigax , any info on this?
happy to help if you need more information

Pinging @Popov72 to see if he can quickly check

I will have a look asap.

For some reason, disabling the occlusion texture for the two materials that you recreate from an external json file make it work (line 243 and 258):
https://playground.babylonjs.com/#7T1HBH#19
Those materials are created as PBRMetallicRoughnessMaterial, contrary to the other materials that are PBRMaterial.
Still investigating...
Note: that even when it works, the texture is not tiled as it is in the PG, but I think it's another issue.

So, your occlusion texture is not right:
https://playground.babylonjs.com/#7T1HBH#21
By default, the occlusion map is not applied for direct lighting (intensity=0). When using a PBRMetallicRoughnessMaterial, you can't change this property in a clean way because it is not exposed. However, you can directly change _ambientTextureImpactOnAnalyticalLights that exists on PBRBaseMaterial. That's what I did in the PG above.
As you can see, you get the same display than in the sandbox.
You will also get the same display in the PG by using an environment texture instead of a direct light:
https://playground.babylonjs.com/#7T1HBH#22
There's still a problem with some invalid textures being generated: it seems the bug does not show up when disposing of the previous material before replacing it for the feet / upholstery meshes:
https://playground.babylonjs.com/#7T1HBH#23
This PG does work and does not generate invalid picture files when creating the .glb
Still investigating this problem.

Fixed by #8824

Thanks @Popov72 !
Will try to use latest nightly and let you know, but indeed seems fixed 👍

Fixed!


Add us-gov-west-1 to config defaults for S3

Is this a publicly available region?

Yes it is. https://aws.amazon.com/govcloud-us/

Thanks!


helm: Allow socket linger timeout to be set to zero

Before this commit, if one explicitly wanted to set the linger timeout to 0 (which is a valid value), our Helm chart skipped the ConfigMap entry, thereby ignoring the user-specified value of 0 and falling back on the default value in the agent (which is 10).
This commit fixes that by using checking if the Helm value is nil or unset. I have manually tested this.
Fixes: f534200249da ("helm: expose socket linger timeout helm option")

/test


Main branch deleted after git sync

Description of the bug
I get an error (warning?) that the main branch could not be found every time I git sync after landing a change. I'm left on a detached HEAD (possibly this is expected?) and git sl fails (definitely not expected!). If I then explicitly checkout master I get back to a working state.
Expected behavior
git sync and git sl work without an error.
Actual behavior
$ git fetch
origin: Extents updated: 1283 transactions
origin: Updating from https://git.twitter.biz/source/objects/journals/32.bin
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  307k  100  307k    0     0   739k      0 --:--:-- --:--:-- --:--:--  739k
Replaying transactions: 100% (1283/1283), done.
cannot delete non-empty directory: reference-transaction.d

$ git branch
* master

$ git sync
Attempting rebase in-memory...
[1/1] Skipped commit (was already applied upstream): a618c8d3 TNB. Move overnight build to early morning
branchless: processing 1 rewritten commit
The application panicked (crashed).
Message:  A fatal error occurred:
   0: Could not find repository main branch
Location:
   /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-lib-0.3.12/src/git/repo.rs:404
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   0: branchless::git::repo::get_main_branch_oid with self=<Git repository at: "/Users/mleewilliams/workspace/source/.git/">
      at /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-lib-0.3.12/src/git/repo.rs:412
   1: branchless::core::rewrite::rewrite_hooks::warn_abandoned with effects=<Output fancy=false> repo=<Git repository at: "/Users/mleewilliams/workspace/source/.git/"> conn=Connection { path: Some("/Users/mleewilliams/workspace/source/.git/branchless/db.sqlite3") } event_log_db=<EventLogDb>
      at /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-lib-0.3.12/src/core/rewrite/rewrite_hooks.rs:193
   2: branchless::core::rewrite::rewrite_hooks::hook_post_rewrite with effects=<Output fancy=false> git_run_info=<GitRunInfo path_to_git="git" working_directory="/Users/mleewilliams/workspace/source" env=not shown> rewrite_type="rebase"
      at /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-lib-0.3.12/src/core/rewrite/rewrite_hooks.rs:105
Suggestion:
The main branch "master" could not be found in your repository
at path: "/Users/mleewilliams/workspace/source/.git/".
These branches exist: []
Either create it, or update the main branch setting by running:
    git config branchless.core.mainBranch <branch>
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Location: /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-0.3.12/src/commands/mod.rs:298
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
branchless: running command: git checkout 10cacf4f994e837bf97e25f9d99760f9c2be49e9
⠖ Syncing commit stacks (5.0s)                                                                                ░░░░░░░░░░░░░░░░░░░░ 0/1
Previous HEAD position was a618c8d3e49a4 TNB. Move overnight build to early morning
HEAD is now at 10cacf4f994e8 Docbird: Edit 12086 applied automatically from browser, without review. AUTOMATED_COMMIT=true
branchless: processing checkout
In-memory rebase succeeded.
Synced a618c8d3 TNB. Move overnight build to early morning
(HEAD detached at 10cacf4f994e8)

$ git sl
The application panicked (crashed).
Message:  A fatal error occurred:
   0: Could not find repository main branch
Location:
   /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-lib-0.3.12/src/git/repo.rs:404
  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   0: branchless::git::repo::get_main_branch_oid with self=<Git repository at: "/Users/mleewilliams/workspace/source/.git/">
      at /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-lib-0.3.12/src/git/repo.rs:412
   1: git_branchless::commands::smartlog::smartlog with effects=<Output fancy=true> git_run_info=<GitRunInfo path_to_git="git" working_directory="/Users/mleewilliams/workspace/source" env=not shown> options=SmartlogOptions { show_hidden_commits: false, only_show_branches: false }
      at /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-0.3.12/src/commands/smartlog.rs:533
Suggestion:
The main branch "master" could not be found in your repository
at path: "/Users/mleewilliams/workspace/source/.git/".
These branches exist: []
Either create it, or update the main branch setting by running:
    git config branchless.core.mainBranch <branch>
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Location: /Users/mleewilliams/.cargo/registry/src/github.com-1ecc6299db9ec823/git-branchless-0.3.12/src/commands/mod.rs:298
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
(HEAD detached at 10cacf4f994e8)

$ git checkout master
Branch 'master' set up to track remote branch 'master' from 'origin'.
Switched to a new branch 'master'
Your branch is up to date with 'origin/master'.
branchless: processing checkout

$ git sl
⋮
◆ 10cacf4 2m (remote origin/master, ᐅ master) Docbird: Edit 12086 applied automatically from browser, without review. AUTOMATED_COMMIT=true

Version of rustc
rustc 1.59.0
Automated bug report
#### Software version

git-branchless 0.3.12

#### Operating system

macOS 12.5 (Darwin 21.6.0)

#### Command-line

```bash
/Users/mleewilliams/.cargo/bin/git-branchless bug-report

Environment variables
SHELL=/bin/bash
EDITOR=nvim

Git version
> git version
git version <IP_ADDRESS>3.g5575ef6-twtrsrc

Events

Show 5 events
Event ID: 451, transaction ID: 475

RefUpdateEvent { timestamp:<PHONE_NUMBER>.970999, event_tx_id: EventTransactionId(475), ref_name: "HEAD", old_oid: 10cacf4f994e837bf97e25f9d99760f9c2be49e9, new_oid: 10cacf4f994e837bf97e25f9d99760f9c2be49e9, message: None }

:
@ 10cacf4 24m (redacted-ref-0) xxxxxxxx xxxx xxxxx xxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxx
:
O 3d197ce 3m (remote origin/master) xxxxxxxxxxxxxxxxxx xxx xxxx xxxxx xxxxxxxx

Event ID: 449, transaction ID: 474

RewriteEvent { timestamp:<PHONE_NUMBER>.51185, event_tx_id: EventTransactionId(474), old_commit_oid: a618c8d3e49a48df84c072281958c4059ce820d6, new_commit_oid:<PHONE_NUMBER>000000000000000000000000000000 }
RefUpdateEvent { timestamp:<PHONE_NUMBER>.124385, event_tx_id: EventTransactionId(474), ref_name: "HEAD", old_oid: a618c8d3e49a48df84c072281958c4059ce820d6, new_oid: 10cacf4f994e837bf97e25f9d99760f9c2be49e9, message: None }

:
@ 10cacf4 24m (redacted-ref-0) xxxxxxxx xxxx xxxxx xxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxx
:
O 3d197ce 3m (remote origin/master) xxxxxxxxxxxxxxxxxx xxx xxxx xxxxx xxxxxxxx

Event ID: 448, transaction ID: 472

RewriteEvent { timestamp:<PHONE_NUMBER>.534632, event_tx_id: EventTransactionId(472), old_commit_oid: 2b250d3c4fd0fcf156cc8eaf5f4b95814c9fcc22, new_commit_oid: a618c8d3e49a48df84c072281958c4059ce820d6 }

:
@ 10cacf4 24m (redacted-ref-0) xxxxxxxx xxxx xxxxx xxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxx
:
O 3d197ce 3m (remote origin/master) xxxxxxxxxxxxxxxxxx xxx xxxx xxxxx xxxxxxxx

Event ID: 447, transaction ID: 471

CommitEvent { timestamp:<PHONE_NUMBER>.0, event_tx_id: EventTransactionId(471), commit_oid: NonZeroOid(a618c8d3e49a48df84c072281958c4059ce820d6) }

:
@ 10cacf4 24m (redacted-ref-0) xxxxxxxx xxxx xxxxx xxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxx
:
O 3d197ce 3m (remote origin/master) xxxxxxxxxxxxxxxxxx xxx xxxx xxxxx xxxxxxxx

Event ID: 446, transaction ID: 470

CommitEvent { timestamp:<PHONE_NUMBER>.0, event_tx_id: EventTransactionId(470), commit_oid: NonZeroOid(2b250d3c4fd0fcf156cc8eaf5f4b95814c9fcc22) }

:
@ 10cacf4 24m (redacted-ref-0) xxxxxxxx xxxx xxxxx xxxxxxx xxxxxxxxxxxxx xxxx xxxxxxxx xxxxxxx xxxxxxx xxxxxxxxxxxxxxxxxxxxx
:
O 3d197ce 3m (remote origin/master) xxxxxxxxxxxxxxxxxx xxx xxxx xxxxx xxxxxxxx

```
Version of git-branchless
No response
Version of git
No response

Hi @mikepqr, thanks for reporting! I was able to reproduce the issue and put up a fix in https://github.com/arxanas/git-branchless/pull/485. Can you test it out (instructions) and confirm that it resolves the bug?

Awesome! Happy to test but I'm afraid I need a little basic cargo support to unblock:
$ cargo install --locked --git https://github.com/arxanas/git-branchless --branch arxanas/sync git-branchless --force
    Updating git repository `https://github.com/arxanas/git-branchless`
  Installing git-branchless v0.3.12 (https://github.com/arxanas/git-branchless?branch=arxanas/sync#e3ccc646)
    Updating crates.io index
error: failed to select a version for the requirement `libgit2-sys = "^0.14.0"`
candidate versions found which didn't match: 0.13.2+1.4.2, 0.13.1+1.4.2, 0.13.0+1.4.1, ...
location searched: crates.io index
required by package `git2 v0.15.0`
    ... which satisfies dependency `git2 = "^0.15.0"` (locked to 0.15.0) of package `git-branchless-lib v0.3.12 (/Users/mleewilliams/.cargo/git/checkouts/git-branchless-f6bbbe393421e02f/e3ccc64/git-branchless-lib)`
    ... which satisfies path dependency `lib` (locked to 0.3.12) of package `git-branchless v0.3.12 (/Users/mleewilliams/.cargo/git/checkouts/git-branchless-f6bbbe393421e02f/e3ccc64/git-branchless)`

@mikepqr sorry about that, the error message is quite bad here. You need to update your version of Rust/Cargo. cargo in an older version can't resolve these dependencies properly, which produces this error message. git-branchless is marked as requiring Rust 1.61.0 or later, but cargo tries to resolve dependencies before it can check for this. I'll add a note to this Troubleshooting section too.

By the way, as a workaround, you can try committing to branches other than master, or try not committing to master at all and using a branchless strategy (i.e. run git checkout --detach before committing). This seems to be happening when you make changes to master and then apply them upstream and run git sync.

Thanks! I've upgraded to #485 and will let you know how I get on.

Closed in #593.


Need VBuilder for the Struct type

Such validating builder is needed for aggregates that may want to base its state on the standard Protobuf type Struct.

If such a need really arises, it is possible to wrap a custom type around Struct.


tail: write error: Broken pipe

Hi，Olga.
I got some error while running 3D-DNA pipeline as fellow:
The runing command: run-asm-pipeline.sh --mode  diploid  draft.fasta merged_nodups.txt. The FINAL fasta is more fragmented than draft.fasta.
:( Some pairwise alignments are in conflict. Skipping merge block +utg5995_SmadenR5:::fragment_2 -utg1600_SmadenR5:::fragment_2 +utg1732_SmadenR5:::fragment_2 -utg82_SmadenR5:::fragment_2 +utg5995_SmadenR5:::fragment_4 +utg17_SmadenR5:::fragment_2 +utg1732_SmadenR5:::fragment_4 +utg82_SmadenR5:::fragment_2 +utg1600_SmadenR5:::fragment_4 -utg202_SmadenR5:::fragment_2 +utg1600_SmadenR5:::fragment_2 -utg1732_SmadenR5:::fragment_4 -utg5995_SmadenR5:::fragment_4 +utg202_SmadenR5:::fragment_2 -utg1600_SmadenR5:::fragment_4 -utg17_SmadenR5:::fragment_2!
tail: write error: Broken pipe
tail: write error ...
...
...
...
...
Any ideas to figure out it?
Many thanks!
Lu

Hello, I met the same error when I ran the run-asm-pipeline.sh and I don't how to fix it.
Some of the error information:
:| Warning: No input for label1 was provided. Default for label1 is ":::fragment_"
:| Warning: No input for label2 was provided. Default for label2 is ":::debris"
tail: error writing 'standard output': Broken pipe
tail: error writing 'standard output': Broken pipe

Hi Lu and ershuowang,
There are two typical reasons for the tail: write error. One is the bash version, it needs to be >=4 to support associative arrays, and another one is associated with SIGPIPE:
https://superuser.com/questions/554855/how-can-i-fix-a-broken-pipe-error
Since this is a common source of issue for people we'll be changing this bit of code to a more robust one, but it is not yet done as of right now.
(The other messages re "alignments are in conflict" and "no input label are provided" are warnings and have no baring on the result. Lu, please note that one wants to run diploid only if very certain that you need to deal with undercollapsed heterozygosity, and want to make sure you have everthing else in good shape before you move to merge.)
Hope this helps,
Olga

P.S.: see also this, more specifically re suggestion on sigpipe:
https://github.com/theaidenlab/3d-dna/issues/29#issuecomment-437713884

Hi Olga：
Thank you for you careful interpretation，I'm also somewhat mystified at the suggestion on #29 (comment) about trying dd insertion into lines 62 and 64 of 3d-dna/finalize/construct-fasta-from-asm.sh; which position to typing "dd" at the line?  what's means here "dd" for the bash script? or you mean to deleate these two lines?
Best.
Lu

hi,
I got the same error , does this have an impact on the final result? Thank you very much!

Hi,
If you are experiencing the same error than either you are using a review assembly file that is mismatched with the fasta, or you have issues with carriage return characters in either fasta or assembly file.
Best,
Olga

On Oct 10, 2020, at 2:51 AM, linshengnan2020<EMAIL_ADDRESS>wrote:

hi,
I got the same error , does this have an impact on the final result? Thank you very much!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

sorry, I don't quite understand what you mean. Isn't the assembly file generated by the program and we just  offer the fasta file.


only consider visible headings in 'exactly one main heading'

Hey @greenc05 - this fixes https://github.com/cucumber-ltd/bbc-a11y/issues/74

Great thank you @joshski


project not maintained

@nigma @msaizar @metakermit are you guys interested in supporting this project?
Many people are waiting for a new version supporting django 3.0.
I may be interested to give continuity to this, feel free to give me access here and on pypi (dom.dinicola)

Check my fresh fork, maybe it`s help you

Check my fresh fork, maybe it`s help you

@olksndrdevhub do you release packages on pypi?

@olksndrdevhub do you release packages on pypi?

@olksndrdevhub do you release packages on pypi?

No, I only today make fork
but you can put it in your requirements.txt as
-e git://github.com/olksndrdevhub/django-easy-pdf.git#egg=django-easy-pdf

@olksndrdevhub do you release packages on pypi?

No, I only today make fork
but you can put it in your requirements.txt as
-e git://github.com/olksndrdevhub/django-easy-pdf.git#egg=django-easy-pdf

thanks.. but I prefere to have stable packages released, where I can pin version and be sure what I'm running.
Thanks for forking hope you can do some work and maybe release the package with a new (similar) way.
In that case I would be very happy to support you!

thanks.. but I prefere to have stable packages released, where I can pin version and be sure what I'm running.
Thanks for forking hope you can do some work and maybe release the package with a new (similar) way.
In that case I would be very happy to support you!

@olksndrdevhub do you release packages on pypi?

No, I only today make fork
but you can put it in your requirements.txt as
-e git://github.com/olksndrdevhub/django-easy-pdf.git#egg=django-easy-pdf

thanks.. but I prefere to have stable packages released, where I can pin version and be sure what I'm running.
Thanks for forking hope you can do some work and maybe release the package with a new (similar) way.
In that case I would be very happy to support you!

@olksndrdevhub do you release packages on pypi?

No, I only today make fork
but you can put it in your requirements.txt as
-e git://github.com/olksndrdevhub/django-easy-pdf.git#egg=django-easy-pdf

thanks.. but I prefere to have stable packages released, where I can pin version and be sure what I'm running.
Thanks for forking hope you can do some work and maybe release the package with a new (similar) way.
In that case I would be very happy to support you!

@olksndrdevhub do you release packages on pypi?

No, I only today make fork
but you can put it in your requirements.txt as
-e git://github.com/olksndrdevhub/django-easy-pdf.git#egg=django-easy-pdf

thanks.. but I prefere to have stable packages released, where I can pin version and be sure what I'm running.
Thanks for forking hope you can do some work and maybe release the package with a new (similar) way.
In that case I would be very happy to support you!

Yeah, maybe I will think about release at Pypi

@olksndrdevhub do you release packages on pypi?

No, I only today make fork
but you can put it in your requirements.txt as
-e git://github.com/olksndrdevhub/django-easy-pdf.git#egg=django-easy-pdf

thanks.. but I prefere to have stable packages released, where I can pin version and be sure what I'm running.
Thanks for forking hope you can do some work and maybe release the package with a new (similar) way.
In that case I would be very happy to support you!

Yeah, maybe I will think about release at Pypi

@domdinicola hi there!
I release my fork at PyPI now!
Check it, here.
It's perfectly work in my project, with Django 3.0.* and Wagtail 2.11.3, I hope it's will work for you too.

Thanks so much!

Yesssss thanks a lot for this great job! Fed up with errors like:

ImportError: cannot import name 'urlquote' from 'django.utils.http'
ModuleNotFoundError: No module named 'django.utils.six'

@openHBP please, check my fork, it must work pretty well
django-easy-pdf3
pypi: django-easy-pdf3

That's what I did and it works perfect! Thanks :-)

There are a lot of forks for this project, but none was working for me: I needed Django 3+ and static images to work way better (base64 encoding was NOT working).
I just changed to https://github.com/fdemmer/django-weasyprint very easily and painlessly, just leaving it as a suggestion for other people.


⚠ Text Filter API Endpoint has degraded performance

In b2a0cd2, Text Filter API Endpoint (http://textfilter.roblox.com/) experienced degraded performance:

HTTP code: 200
Response time: 5106 ms

Resolved: Text Filter API Endpoint performance has improved in 391f414.


Allow static compilation.

We still default to a shared library, but you can use the
"cmake -DBUILD_SHARED_LIBS=off" option to build a static library instead.

See https://github.com/greenplum-db/gporca/pull/70, for the same change to gporca. This is just the same for gpos.

LGTM

Hi Heikki,
This seems to be toggling between shared vs static library. Won't that litter the user's system with inconsistent libraries? Say libgpos.a is newer than libgpos.dylib / libgpos.so, then the user is at the mercy of the linker to prefer one over the other when all that was specified was -lgpos, no?
Jesse and Haisheng

On 07/13/2016 12:41 AM, Haisheng Yuan wrote:

Hi Heikki, This seems to be toggling between shared vs static
library. Won't that litter the user's system with inconsistent
libraries? Say libgpos.a is newer than libgpos.dylib /
libgpos.so, then the user is at the mercy of the linker to prefer
one over the other when all that was specified was -lgpos, no?

So, that would happen, for example, if you used to build shared
libraries, and later re-run cmake with BUILD_SHARED_LIBS=off, to build
static libraries instead. At that point, you should also do "make
uninstall", or "rm -rf" the installation directory, to purge the old libs.
This is no different from any other change in configuration, or even the
code itself: you should always clean the installation directory to make
sure there are no old cruft lying around. For example, if you pull a
commit that deletes a header file, and you don't clean the install
directory before compiling and installing, the old header file will
still be there in the install/include directory.

Heikki

Pushed, thanks!


Solution: HTTP Service time-out - WebsocketPP Fix (Linux Kernel > 4.4)

I fired up a dedibox follow all requirements and preferred systems so I expected a smooth sailing seeing so many running nodes already.
However then I discovered the webservice / http service was not able to respond and timed out after a while. I noticed that whenever I turned of nodeos that the http service would immediately respond with unavailable, whilst when the nodeos was running it was just 'connecting' for a while (30 secs or so) before idling out.
When I was browsing the source at https://github.com/EOSIO/eos/blob/d8db1d3a05e768f5459b46ace8d2bba92aab89d9/plugins/http_plugin/http_plugin.cpp#L218
It slowly started to remind me about a fix I found for the steem/graphene dreaded 'Timer Expired' error when trying to connect to localhost RPC for the wallet. https://github.com/steemit/steem/issues/35#issuecomment-315463930
This appeared to only happen on Kernels bigger then 4.4 .
So I manually adjusted the file libraries/fc/vendor/websocketpp/websocketpp/transport/asio/endpoint.hpp to reflect the fix of the websocketpp source (this is a fix taken from the 'dev version of websocketpp which is not the default included submodule version).
L37 ADD:
#include <websocketpp/common/asio.hpp>
L95 (OR SOMEWHERE) REPLACE:
, m_listen_backlog(0)
with
, m_listen_backlog(lib::asio::socket_base::max_connections)
This fixes the timeouts occuring with the HTTP Service on kernels > 4.4
I think you can also Cherry Pick the fix as summarized by Abit for Bitshares:
https://github.com/bitshares/bitshares-core/issues/701

Listen backlog is only an issue when there's very high traffic to a single listening port, causing queuing of inbound connections in the kernel.  A single connection is not queued.  System administrators deploying nodeos should set listen queue depth to an appropriate value themselves.  Applications should not attempt to override that value.  We anticipate that very busy nodes will deploy traditional http load balancers, obviating much of the need to set higher queue depths on machines running nodeos instances.
The comment in http_plugin.cpp you reference is currently spurious.  The http_plugin is using an application-wide instance of boost::io_context (formerly known as boost::io_service), which does not stop running until the application exits, assuming at least one of net_plugin or http_plugin are configured.

i found that my http service would not run on my node which also used to have Timer.expired errors in the past. By modifying the code as per above it does work.
This is only for Kernel > 4.4. Please see this comment in the websocketpp fix commit:

After a change in Linux Kernel 4.4 the value of 0 causes all
connections to be rejected rather than the default value being used.
The default is now the asio::socket_base::max_connections value instead
(which is the default asio uses when no value is provided).

https://github.com/zaphoyd/websocketpp/commit/0bb33e4bca4ccc42a36aa2321e4fb97f2562e519

I've been running nodeos/eosiod/eosd on a post-4.4 kernel since August and it never times out either net_plugin or http_plugin.  Currently running on 4.13 with no issues.  I suggest investigating your hosting provider's settings.  For instance, I have
$ cat /proc/sys/net/ipv4/tcp_max_syn_backlog 1024
Your provider is defaulting to needlessly aggressive (and arguably wrong) settings if you're experiencing spurious SYN flooding warnings in the log and dropped packets.

so you can reach the API endpoints when visiting?

On 3 Apr 2018, at 01:46, jgiszczak<EMAIL_ADDRESS>wrote:
I've been running nodeos/eosiod/eosd on a post-4.4 kernel since August and it never times out either net_plugin or http_plugin. Currently running on 4.13 with no issues. I suggest investigating your hosting provider's settings. For instance, I have
$ cat /proc/sys/net/ipv4/tcp_max_syn_backlog 1024
Your provider is defaulting to needlessly aggressive (and arguably wrong) settings if you're experiencing spurious SYN flooding warnings in the log and dropped packets.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/2016#issuecomment-378083014, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPJALjBABdWBb6D9u9jgL7qbwhoehFEks5tkrhtgaJpZM4TC68-.

these ones I mean: http://mowgli.jungle3.eos.roelandp.nl:8765/v1/chain/get_info http://mowgli.jungle3.eos.roelandp.nl:8765/v1/chain/get_info

On 3 Apr 2018, at 01:47, RoelandP Lanparty<EMAIL_ADDRESS>wrote:
so you can reach the API endpoints when visiting?

On 3 Apr 2018, at 01:46, jgiszczak<EMAIL_ADDRESS><EMAIL_ADDRESS>wrote:
I've been running nodeos/eosiod/eosd on a post-4.4 kernel since August and it never times out either net_plugin or http_plugin. Currently running on 4.13 with no issues. I suggest investigating your hosting provider's settings. For instance, I have
$ cat /proc/sys/net/ipv4/tcp_max_syn_backlog 1024
Your provider is defaulting to needlessly aggressive (and arguably wrong) settings if you're experiencing spurious SYN flooding warnings in the log and dropped packets.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://github.com/EOSIO/eos/issues/2016#issuecomment-378083014, or mute the thread https://github.com/notifications/unsubscribe-auth/AAPJALjBABdWBb6D9u9jgL7qbwhoehFEks5tkrhtgaJpZM4TC68-.

@jgiszczak it is not about SYN flooding warnings and dropped packets.
I have the same output for tcp_max_syn_backlog
I don't want to go into endless discussion really. I think the commit in the official next version of Websocketpp is pretty self explanatory. https://github.com/zaphoyd/websocketpp/commit/0bb33e4bca4ccc42a36aa2321e4fb97f2562e519
Maybe I am mistakenly mixing up http service and the RPC API endpoint and is it not the same thing?
In my case the http api was not responding and idling out after by the 'browser timeout' When implementing the above fix it worked instantly.
I am talking about the  NODEIP:NODEPORT/v1/chain/get_info - apis
💤

Lastly here another discussion about it:
https://github.com/zaphoyd/websocketpp/issues/623
Afai understand from your comments you are way deeper into this, but I hope you can give it a shot help me understand how I should revert back to m_listen_backlog(0) and what I alternatively I should change on my box. I still feel it is the correct fix as the maintainer of websocketpp admits the error and it is also updated in websocket 0.8 dev branch (EOS uses current latest release 0.7 (2016))
the m_listen_backlog(0) instructs apparently to use the default setting, but some kernels / boxes interpret it not to go 'default' but drop all. As this is kinda unpredictable they changed it in 0.8 dev branch to a new default in the code: max_connections, at least that is what I understand.
I left my comment here as sometimes this pops up with people I had seen in the past with other graphene chains, and it really is a pretty annoying bug which is unresolved in many cases because it is so deeply hidden in a submodule's library.

ATC passes

thanks


Password reset died with ConnectionError at /profile/reset/%, Error while reading from socket: (‘Connection closed by server.’,)

Password reset died with ConnectionError at /profile/reset/NTM4OQ/53l-a98d7a03102a74a512f7/ Error while reading from socket: (‘Connection closed by server.’,)

Please provide a stack trace the next time you see this.

I think this is still happening sometimes.

Hiredis should fix this. If it happens again we'll make a new issue


Remote Reset

Enhancement:
Add a reset page / button or link to remotely reboot or at least reset High and Low

Should be able to reboot each device from the URL with reboot
http://DigiTemp/reboot


displaying service name

When I pulled your branch in to test it, I realized we could just get ride of the variable entirely so I committed it up. I guess Select.svelte handles which list item component is selected internally.

makes sense on why there is no documentation on how to access the value, if it does it automagically


[SEARCHBAR] Add a searchbar for components

✖ USAGE QUESTIONS → Use these dedicated resources:
Docs - http://www.semantic-ui.com
Chat - https://gitter.im/Semantic-Org/Semantic-UI
SO - https://stackoverflow.com/questions/tagged/semantic-ui?sort=votes
✔ Enhancements → Be specific. Assume backwards compatibility is a necessity. Suggest implementation when possible.
✔ BUGS → ❤❤❤. Keep in mind some bugs may not be immediately fixable due to backwards compatibility or CSS limitations.
Title (Put in field above)
Use the format: [Component] Component Should Do X
i.e. [Checkbox] onChange Should Fire When Update Triggered via DOM
Steps

target all of the elements of sidebar
create a seachbar for inputting values
make a search in loaded components

Expected Result
A searchbar should be added
Actual Result
There's no searchbar as of now
Version
x.y.z
Testcase

Can I work on this issue? Waiting for a reply. Thank you.

@aryatalathi Heya, I don't have access to assign issues, please ask maintainers

Can i work on this issue?

Can i work on this issue?

Hi, I can't assign you this issue here, but we are having a project and we're in need to add something similar.
https://github.com/rupali-codes/LinksHub/issues/112
Here's the link, you can ask to assign you,  if you want to :)


How can I fire this up without clicking on input field?

I want to have show the datetime picker dialog when a custom button is clicked. How can I do that?

add ref to v-datetime-picker component:
<v-datetime-picker ref="dateTimePicker"
and in function use this:
this.$refs.dateTimePicker.display = true


Components with same name but different bom-ref

Hi there,
I noticed that if there are 2 components in the SBOM with the same name and version, the SBOM-parser only creates one dict for the second package and the first one doesn't show up. I'm not sure if this was intentional behavior or not but thought I'd bring it up here.
The reason I would need these to be different packages is because they have different dependencies. It is odd that they have the exact same properties, so perhaps this is more an issue with my SBOM generation method, but to handle this edge-case after the fact, it would still be useful for both packages to be present in the parser (at least for me, again I'm not sure if this was intentional behavior or not).
I've attached my SBOM, and the packages of interest are pkg:maven/org.pitest/pitest-maven@dev-SNAPSHOT?type=maven-plugin and pkg:maven/org.pitest/pitest-maven@dev-SNAPSHOT?type=jar. Only pkg:maven/org.pitest/pitest-maven@dev-SNAPSHOT?type=jar gets a dict created for it in sbom_packages when I run:
sbom_parser = SBOMParser()
sbom_parser.parse_file("../json sboms/pitest_bom_modified.json")
sbom = sbom_parser.get_sbom()
sbom_packages = sbom_parser.get_packages()
pitest_bom.json

@howellx Multiple versions of the same package are handled. The package name and version are used and not the bom-ref. In your example the only difference is in the bom-ref (a different type plugin or jar) as the name and version are the same. In the case of a clash, the latest version of the package will be retained when parsing the SBOM.
The approach chosen is for consistency between SPDX and CycloneDX SBOMs. One way to resolve your example would be to use the PURL identifier (which in your example is also the bom-ref) but the majority of SBOMs do not specify a purl for the component.
As a workaround, ff you use the PURL identifier as the package name, the parser should then retain both packages.
I will consider enhancing the differentiation of packages as a future enhancement

Okay that makes sense, thank you for the clarification

Updated README to explain that multiple instances of a component with the same name and version are not preserved.


Is there a way/query to detect a Influxdb 2.0 comared to a 1.x?

I maintain a plugin for influxdb for the smart home system ioBroker and I think about preparing comatibility. We already noticed that several command like SHOW DATABASES are not availabel in influxdb-1-compatibility-mode.
So the question is: How can I detect that a influxdb 2.0 is "on the other side" when I connect to it? Is there a "query command" where I can get a versionnumber? Or is it basically "SHOW DATABASE delivers an error" (but that could also be other reasons ...
Any idea?

Hi @Apollon77, the response body of the /health endpoint includes version information, I think it would be helpful for your use-case.
For example, if I curl the endpoint when running v2.0.1 locally, I get back:
{"name":"influxdb", "message":"ready for queries and writes", "status":"pass", "checks":[], "version": "2.0.1", "commit": "37cc047133"}

It should work for 1.x as well, if I curl a local 1.8.3 I see:
{"checks":[],"message":"ready for queries and writes","name":"influxdb","status":"pass","version":"1.8.3"}

I think this can help a lot.


Fix error on accessing a constant list defined in a module

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues.

Fixes #41901
Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

[x] Read the Contributing Guide
[ ] Updated Change Log
[ ] Checked Tooling Support (#)
[ ] Added necessary tests

[ ] Unit Tests
[ ] Spec Conformance Tests
[ ] Integration Tests
[ ] Ballerina By Example Tests

[ ] Increased Test Coverage
[ ] Added necessary documentation

[ ] API documentation
[ ] Module documentation in Module.md files
[ ] Ballerina By Examples

In the current implementation, symbol accessibility is verified using the type symbol((https://github.com/ballerina-platform/ballerina-lang/blob/788e1426310fcba84176d93f34b6933ec8ecaf58/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/semantics/analyzer/CodeAnalyzer.java#L3538)). IMO, this approach is not correct, we should use the symbol of that node, rather than using the symbol of the type linked to that node. @MaryamZi WDYT?


Create a gradle plugin providing needed ods specific configuration and tasks

Instead of users have to copy snippets for the repository configuration and binding of specific tasks provide a plugin doing that.

@oalyman I think you finished this, right? Rf https://plugins.gradle.org/plugin/org.opendevstack.gradle.conventions


[BEAM-10178] Improved error messages when option is not set

The error messages emit from bigquery io:

For Java SDK, updated error message when tempLocation is not set.
For Python SDK, updated error message when neither gcs_location nor
temp_location is set.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

R: @pabloem
PTAL, thx!

retest this please

retest this please

LGTM. I'll merge after tests pass.

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Run Java PreCommit

Thanks Pablo!

Run Java PreCommit


Server UPnP fix

Not sure why UPnP wasn't working, but this fixed it.  Now starting the server/stopping the server will add/remove port maps each time.

Thanks!

@MaxXor, I'm working on another fix for UPnP.  For some reason, after starting the listen server and UPnP mapping the port, leaving the server run for a few minutes then closing the server application won't properly remove the port.  I'm close to a fix!

That's strange... how long do you keep the server running?

Just for a few minutes.  I'm looking through Mono.NAT on github to see what is happening, but from debugging I have an idea why it is happening.  The checks for if the port is mapped or not is falling through/being skipped after a period of time.  For example, if the port is already forwarded and UPnP lists it as forwarded, the GetSpecificMapping method will return -1 which is documented as "Port not being mapped".  It will try map the port anyways even though it is already mapped.

Hm... for me it's correctely removing the port after ~10mins.

Yeah I don't think the length of time it is running was the problem, I found that the library doesn't probe the router to check ports.. checking for the PublicPort property as its instanced.  I think I've fixed it though :D


Update request: edgedb 5.2.3 -> 5.3.0

Package name: edgedb
Latest released version: 5.3

Current version on the unstable channel: 4.1.1
Current version on the stable/release channel: 5.2.3

[x] Checked the nixpkgs pull requests

Notify maintainers

@ahirner @kirillrdy

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

https://github.com/edgedb/edgedb-cli/releases/tag/v5.3.0

I'll try to handle this.


Cython differs from CPython: unexpected integer overflow

The following purely Python code produces different answers in CPython and Cython:
def countingsort(list_to_sort):
    help = [10 ** _ for _ in range(0, 30)]
    with open('output.txt', 'wt') as ttt:
        ttt.write(str(sum(help)))

def main():
    countingsort([1])

main()

CPython produces the expected answer,<PHONE_NUMBER>11111111111111111111. However Cython produces a different answer: 119304647 on Windows (where long is a 32-bit type) and<PHONE_NUMBER>1395841479 on Linux (with a 64-bit long).
The problem is supposedly in the list generator, where 10 is not promoted to a big integer before raising to a very large power.
Relevant software versions:

Cython version 0.29.5
Python 3.7.2
gcc (GCC) 8.2.1 20181127

Note that with Python 2 this problem is not reproduced.

Thanks for the report. IIRC, ** is already considered an unsafe integer operation that defaults to Python object operations if no types are provided, so maybe this goes wrong due to the integer range loop. Maybe the integer range-loop optimision should only be handled in type inference and not enforced anywhere else.

I cannot reproduce the described behavior with cython 3.0.0a10 on windows, python 3.9.0
This probably can be considered fixed


Accelerometry file size too big

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

I am doing a research on the impact of shift work on food choices, physical activity and sleep in adults.  I am trying to analyze raw data files from GENEActive Accelerometry from Activinsights, each data file is between 700-750 mb, I am not able to analyze it in the R using GGIR package. Do you have any idea about this? Any kind of help will be really appreciated.
P.S. I am total newbie to R.

Your post is not specific and you ignored the issue template. You cannot expect us to reply to this.
If you want to be trained in using GGIR then you may want to consider signing up for our training courses on R and GGIR: https://www.accelting.com/ggir-training/


Investigate PDF as an output format

See this tweet:
https://twitter.com/ThatPandaDev/status/1172342347213881344

i miss downloadable docs :( prepping to write code on the plane and i shouldn't need to clone the whole @semanticui and @GoHugoIO repos, then figure out their doc build process... where'd "download as HTML" or PDF ever go to?

I totally agree with the above Tweet.  "download as HTML"  should be possible as-is if you're building using relativeURLs=true and have your URLs in order, so to speak. That could be something we also could investigate so we could do a static build as part of the release. But a simple PDF with an index would be nice ...

It would be a big dependency, but Pandoc is quite capable of starting from Markdown and ending up at PDF, in its case via LaTeX.

@vielmetti unless Go has its own LaTeX library, I think thats a bad idea. At
least on my system, LaTeX requires over 100 packages and 73 MB, and thats
compressed.

Maybe a css based approach is useful to achieve this: https://www.smashingmagazine.com/2019/06/create-pdf-web-application/

unless Go has its own LaTeX library, I think thats a bad idea. At least on my system, LaTeX requires over 100 packages and 73 MB, and thats compressed.

@cup, AFAIK most (if not all) of this kind of static generators that produce PDF output do so through LaTeX. I'm familiar with Sphinx and pandoc.
Sphinx provides very useful cross-ref features that produce nice results with either html or latex outputs. Unfortunately, although some hooks are provided to slightly customize some parts, it is not possible to provide custom templates for the latex output. However, latex sources are generated in a separate step, so it is possible to manually tweak them. Regarding inclusion of markdown sources in Sphinx projects, although possible, cross-ref features seem not to work so well.
Pandoc, on the other hand, allows to provide custom templates to generate latex output. Unfortunately, features to build the document hierarchy (tocs or minitocs) and for cross-refs from markdown sources are not so rich. Unlike Sphinx, it allows to provide markdown sources along with a Latex template and generate a pdf output directly. Nonetheless, I believe it would be possible to do it in separate steps.
Alternatives for MkDocs seem to also involve using pandoc and/or LaTex (see mkdocs/mkdocs#374).
Overall, although it is possible to overload the print feature of CSS (#6627), IMHO proper PDF support in hugo should involve generating LaTeX output (wither with a fixed template, as Sphinx, or supporting custom templates, as pandoc).
This summary is not casual. I have tried to migrate several projects from Sphinx (readthedocs) to hugo, with little success. Not being able to provide a PDF version is a real stopper.

I use this... https://weasyprint.org/start/ with a custom Hugo theme to add pages in the right places etc.
the output is pretty much spot on, but I've not got it in a pipeline to generate the pages as yet.

Hey folks!
just wanted to tell you that our pagedjs.org website is up, all hugo, and it’s amazing.
If you check the article and docs, you have a button top right that launch paged.js so you can make a book out of the page (it’s an experimental feature right now, but we’re getting there).
I will try to make a theme with just that option (same as the matomo plug-in).
Then you’ll be able to make a book out of any of your web page.
Then, i’ll see how we can have Pagedjs-cli running. It’s a node package, and i’ve no idea what would be the best way to interface this with hugo, nor what should we set up to define with page should be rendered. Anyway, i’ll keep coming to you for that if i have question.

Hey folks, I made a small implementation of paged.js for www.pagedjs.org so you can have a look at it and tell me how it works for you.
Still pretty experimental, but i’d love to have your thoughts.
https://gitlab.pagedmedia.org/julientaq/pagedjs-hugo
If you follow the readme, you’ll get a print button that you can add to any page as part of the template. next step is to add a configurable option in the front matter to show it or not :)

I made a small implementation of paged.js for www.pagedjs.org so you can have a look at it and tell me how it works for you.

Sorry to say, but for me this doesn't work. I want Hugo to generate a ready PDF that I can then share with my followers or offer as a bonus for email signups.
I don't want to tell website visitors to go to print, choose the right output format, verify the advanced settings, and then save it to PDF themselves, as the docs specify.
I'm afraid that's just too cumbersome for non-technical people. (Plus Firefox doesn't have a 'print to pdf' feature it seems, so it only targets Chrome?)

(That being said, there are of course countless other people for which this approach works fine! 🙂 )

🙇

I'm afraid that's just too cumbersome for non-technical people. (Plus Firefox doesn't have a 'print to pdf' feature it seems, so it only targets Chrome?)

It is not a solution for everyone indeed. Firefox has a Save as pdf that is triggered when you hit print, and same for Chrome or Safari (i don’t remember exactly about Edge, but Edgium being blink powered, it will definitely offers the option).
I wonder if i could bypass the print dialog to just ask for the download location as a way to ease our user life.

I want Hugo to generate a ready PDF that I can then share with my followers or offer as a bonus for email signups.

Since Paged.js can also runs as a command line interface, i need to see what would be the best way to run it when Hugo finishes its build. For now, if you install pagedjs-cli in a Node environment, you can run the script and it will transforms some HTML into a PDF ready for download.
My first idea is to see how and if we could set it up the same way postcss is used inside Hugo, but i havent got into it that knowledge yet.

if you install pagedjs-cli in a Node environment, you can run the script and it will transforms some HTML into a PDF ready for download.
This is really interesting. Thanks for this comment.

Good luck with the pagedjs project! :slightly_smiling_face:

I get pretty good looking results with this mkdocs plugin https://github.com/comwes/mkpdfs-mkdocs-plugin

I think this lies beyond hugos goals as I see it as a HTML focused solution with its strengths exactly there. Instead I think such problems should be solved by providing proper CSS styles for the print media type (i.e. hiding menus etc.). Afterwards if one wants to print the page they can do it from their browser or - if they want to automate it - can use something like Puppeteer or Selenium to print them. Including a pdf library or generator like LaTeX would be annoying to maintain and finding a fitting solution for everybody very hard. Furthermore the project linked above also seems like a great alternative

I think this lies beyond hugos goals as I see it as a HTML focused solution with its strengths exactly there.

That's not Hugo's own perception. From the custom output docs:

Hugo can output content in multiple formats, including calendar events, e-book formats, Google AMP, and JSON search indexes, or any custom text format.

Hugo's primary output is indeed HTML, but Hugo already moved away from solely focusing on HTML a time ago.

That is a fair point though the section you cited also states or any custom text format. Binary formats like PDF or similar lie outside of this scope as they are not template based but instead need an extra processing step which is relatively performance heavy in comparison

We're using hugo to make s website for documentation of a application, and PDF of the entire site is an absolute must-have. For now, I'm trying to do this as a theme, where the home page index template finds all the pages, then renders them into on single page. I then use weasyprint to make a PDF. You can see the template, which is very much in progress, here: https://gitlab.com/pixlsus/hugo-pdf-theme
I'd love any pointers on how to better do this, as of now, images and links don't work, because they use a relative path.

@paperdigits my experimentations in https://github.com/maelle/testbook might be close to what you're doing (the Netlify config does two website builds, one with the "website" configuration, one with a configuration that puts everything on a page.) I haven't tried images but it uses pagedjs-cli which might deal better with that? cc @julientaq

@maelle thanks for sharing, but this is less about the specific PDF formatter (there are several PDF formatters, weasyprint, wkhtmltopdf, pagedjs) and more about the hugo templates. Your code works well if you have a flat page hierarchy, like a blog, but doesn't work if you have hugo bundles and pages that have child pages.
If you take a look at my code, I get the first pages in the hierarchy, ranked by weight, then loop through and check if that page has children, then if the child page has children, and recurse all the way down, keeping the structure. My index file calls the template content_gen.html which then calls content_recursive.html to find all the children.
That is what I'm wondering if I can do better.

What about generating an epub?

I already use this lib on a project that I made that gives me value often.
The hardest part is to bundle the assets inside the book and fix the links. Each page can be a chapter and you will need to simplify the stuff to put in the generated book. The required data is basically all available for the book metadata and it's mobile-friendly to read. If you want you can try to convert to PDF using calibre.

@lucasew See https://discourse.gohugo.io/t/generate-hugo-website-as-e-book-epub/29559.

Still pretty experimental, but i’d love to have your thoughts.
gitlab.pagedmedia.org/julientaq/pagedjs-hugo

hello @julientaq it seems your page is 404. Do you have a working link ?? Thanks.

Hi @divinerites sorry, i just got back from a couple of days out.
Glad you found the repo. Tell me if you need any help setting it up, must be a bit old now.

Hi @divinerites sorry, i just got back from a couple of days out.
Glad you found the repo. Tell me if you need any help setting it up, must be a bit old now.

yes i opened an issue on your repo. let's keep talk there.

Maybe md-to-pdf can help here, which can convert markdown and html to pdf. You can also pipe via stdin and stdout.

I needed this for my portfolio and I got it to work in a hacky way. I basically rely on the PagedJS CLI and then have it run as a resources.PostProcess task builds the PDF and replaces the HTML page with the PDF.
Would love to see if some neater alternatives exist for this.


Issue #1319: Majority Element

Related Issue

The problem is given an array you have to print the majority element. A majority element in an array A[] of size n is an element that appears more than n/2 times.(#1319  )
Added the code implementation of Majority Element.
Added the explanation of Majority Element Problem in the README.md file.

Proposed Changes

Added the code of Majority Element Problem.
Added README.md file of Majority Element Problem with time complexity.

Additional Info

This is one of the commonly asked interview questions and the concept of this question helps us to solve many more problems.
This code solves an open issue #1319
I have tested these changes on VS code using multiple inputs and matched the output with the expected output.
This change will not affect or create conflict with any other code.
Time complexity: O(N*N)

Checklist

[x] ✅ My code follows the code style of this project.
[x] 📝 My change requires a change to the README.
[x] 🎀 I have updated the README accordingly.
[x] 👀 I have read the CONTRIBUTING document.
[x] ✨ I have added tests to cover my changes.
[x] 🚩 All new and existing tests passed.
[x] 🌟 ed the repo

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

Output Screenshots

Screenshot #1
Screenshot #2

Code Snippet
Readme Snippet

@Mrjoy832 plz review this pr

Done @Mrjoy832 please review the pr again @Mrjoy832

Done @Mrjoy832

LGTM🌟

@Lakhankumawat please review the pr. Also can you please assign this pr as level 3 as I have already 6 merged pr's in this repo.
https://github.com/Lakhankumawat/LearnCPP/pull/1309
https://github.com/Lakhankumawat/LearnCPP/pull/1286
https://github.com/Lakhankumawat/LearnCPP/pull/1275
https://github.com/Lakhankumawat/LearnCPP/pull/490
https://github.com/Lakhankumawat/LearnCPP/pull/465
https://github.com/Lakhankumawat/LearnCPP/pull/369


update dependencies and devDependencies

try to update dependencies and devDependencies.

@EragonJ,  I already down to pouchdb version.
please check thank you. :+1:

hope there is nothing wrong ! thanks


Add algorithms to EncryptionAlgorithm for Key Vault

For Key Vault 7.2-preview, to EncryptionAlgorithm (in swagger, the KeyOperationsParameters model), add the following algorithms:

A128GCM
A192GCM
A256GCM
A128KW
A192KW
A256KW
A128CBC
A192CBC
A256CBC
A128CBCPAD
A192CBCPAD
A256CBCPAD

As many of these as possible should be supported locally without writing our own cryptography.
Also add the following properties:

Iv (model property: iv)
AdditionalAuthenticatedData (model property: aad)
Tag (model property: tag)

These will likely need to be in a new options type/parameter passed to Encrypt and Decrypt.
See the service version 7.1 -> 7.2-preview diff 🔒 for details.

@sadasant Can we split the above list to algorithms supported by the service vs the ones that need local implementation?
We can then log a separate issue for the former, target it sooner and keep this issue to do further investigation on the latter.

To avoid editing the description of this issue (it seemed rude to me), I made a new issue for the remote only changes: https://github.com/Azure/azure-sdk-for-js/issues/11260, it's a copy of this one, without As many of these as possible should be supported locally without writing our own cryptography. in the description.
Since the goal is to have as many algorithms working locally as possible, I made another issue to investigate what algorithms, from all the algorithms that Key Vault Keys offer, can be implemented locally in Node 8: https://github.com/Azure/azure-sdk-for-js/issues/11261 , and I gave it an estimate of 5.
I made another issue to implement the local algorithms in Key Vault Keys: https://github.com/Azure/azure-sdk-for-js/issues/11262 , and I gave it an estimate of 3.
I'll close this issue and we can follow up in those three others.


fix: preview modal not displaying pictures

This PR fixes the modal previews not loading. ComfyUI updated their front end which made the fetchApi function now prepend "/api/" to the requested link. The setup_tooltips function was removed as it was causing issues with the tooltip rendering when the modal previews were turned off.
Fixed by fetching the "photo_data.json" file directly.
Fixes: #23 #22 #20
Before:

After:

update: Seems like the root cause is comfyUI removing the api.fetchApi() function.
https://github.com/comfyanonymous/ComfyUI/blob/latest/web/scripts/api.js


Allow for decompressing of files in LabCAS (sierra request)

will follow up w/ Sierra on what she means by this


restore chef 11 support?

It looks like 0.4.2 breaks chef-11 support. It would be nice to keep this support for a little while longer, if it's an easy change (looks like it might be).
  ================================================================================
  Recipe Compile Error in /opt/pantheon/infrastructure/cookbooks/onebox/recipes/default.rb
  ================================================================================

  NoMethodError
  -------------
  undefined method `compile_time' for Chef::Resource::ChefGem

  Cookbook Trace:
  ---------------
    /opt/pantheon/infrastructure/cookbooks/route53/recipes/default.rb:24:in `block in from_file'
    /opt/pantheon/infrastructure/cookbooks/route53/recipes/default.rb:22:in `from_file'
    /opt/pantheon/infrastructure/cookbooks/onebox/recipes/route53.rb:5:in `from_file'
    /opt/pantheon/infrastructure/cookbooks/onebox/recipes/base.rb:7:in `from_file'
    /opt/pantheon/infrastructure/cookbooks/onebox/recipes/default.rb:3:in `from_file'

  Relevant File Content:
  ----------------------
  /opt/pantheon/infrastructure/cookbooks/route53/recipes/default.rb:

   17:  # limitations under the License.
   18:  #
   19:
   20:  include_recipe 'xml::ruby'
   21:
   22:  chef_gem "fog" do
   23:    action :install
   24>>   compile_time false
   25:    version node['route53']['fog_version']
   26:  end
   27:

+1 on this please! we could really benefit from getting this fixed all of our custom cookbooks in OpsWorks AWS (which uses chef 11) are broken and new instances can't be launched :(

Great. Thanks for #90 I'll try and cut a release this weekend.


How to express always-pass-a-copy?

Really enjoyed the talk.
However, is the intent to (eventually) require one of the new in/inout/out/move/forward parameter flags (otherwise, you'd just move the older way into the "multiple ways of doing things" wedge)?
If so, how do you write copy_from() then?
If I understood correctly, all of the 5 flags shown avoid copying. Would you need a 6th flag (like copy) to express the intent of copying?
Now, I agree that this might not be a case you want often, but that's all the more reason to make you have to write copy to make that intent explicit (as opposed to potentially accidentally copying).

Also relevant in this discussion: #4

@Zastai Thanks! This is a good question... we might learn we need a copy option, this is on my things-to-validate list.
I'll add something like the following to the in section of the 708.pdf paper, which will be in there the next time I push it, probably in the next few days:
First, if the function body is going to copy to somewhere else anyway, this is mostly moot since the copy will occur then. I think the real question here is whether a local use of the parameter within the function is guaranteed to have a separate identity from the argument, such as if you care about aliasing (as in #4)..
In the current proposal without copy, you can get the nearly identical effect now by passing as in and then just copying into a local variable and using that. That "nearly" has three parts:
- If `in` is going to copy already, this results in two copies. However, both will be trivial/cheap copies, and appear to be regularly optimized away at -O1, as in [this example](https://godbolt.org/z/3shebv).

- If `in` is going to pass by reference already, this results in exactly one copy. However, it also adds a pointer to the space/time overhead of calling the function, and this appears to be regularly optimized away at -O1 by GCC but not optimized at all by Clang even at -O3, as in [this example](https://godbolt.org/z/r6j3vd).

- It's an idiom, which doesn't directly express intent. If this turns out to be relatively common, that would be an argument for language support.

As noted this is related to #4.
Thanks again!


Unexpected date conversion output

let dateString = "2019-12-30 00:00:00"
let dateInCurrentRegion = DateInRegion.init(date, format: "YYYY-MM-dd HH:mm:ss", region: .current)
When I print it like:
print(dateInCurrentRegion?.toFormat("YYYY-MM-dd HH:mm:ss"))
The output is: 2021-12-30 00:00:00
But I am expecting it to be:  2019-12-30 00:00:00

so why does this not work then?

let challengeStartDate = "02-10-2020".toDate("MM-dd-yyyy")
let dateFormatterPrint = DateFormatter()
dateFormatterPrint.dateFormat = "MM-dd-yyyy"
Retult string is	"02-09-2020"

Hi, I am facing the same issue on 'SwiftDate', '6.1.0':
I was expected  31 12 2020 but it returned 31 12 2021
(lldb) po DateInRegion("2020-12-31T12:37:34.000Z")?.toFormat("dd MM YYYY")
▿ Optional

some : "31 12 2021"

But it returned correct for year and date is smaller or equal 27:
`(lldb) po DateInRegion("2020-12-31T12:37:34.000Z")?.year
▿ Optional

some : 2020`

`(lldb) po DateInRegion("2020-12-27T12:37:34.000Z")?.toFormat("dd MM YYYY")
▿ Optional

some : "27 12 2020"Here is my current region:(lldb) po Region.current
▿ {calendar='gregorian', timezone='Asia/Kuala_Lumpur', locale='en_VN'}
▿ calendar : gregorian (autoupdatingCurrent)

identifier : gregorian
kind : "autoupdatingCurrent"
▿ locale : Optional
▿ some : en_VN (autoupdatingCurrent)

identifier : "en_VN"
kind : "autoupdatingCurrent"
▿ timeZone : Asia/Kuala_Lumpur (autoupdatingCurrent)
identifier : "Asia/Kuala_Lumpur"
kind : "autoupdatingCurrent"
▿ abbreviation : Optional

some : "GMT+8"

secondsFromGMT : 28800
isDaylightSavingTime : false

firstWeekday : 2
minimumDaysInFirstWeek : 1`

YYYY and yyyy are different and the output depends of your calendar type. On Non-Gregorian calendar value may be different.
The Y* parameter:

Year in “Week of Year” based calendars in which the year transition occurs on a week boundary; may differ from calendar year ‘y’ near a year transition. This numeric year designation is used in conjunction with pattern character ‘w’ in the ISO year-week calendar as defined by ISO 8601, but can be used in non-Gregorian based calendar systems where week date processing is desired. The field length is interpreted in the same was as for ‘y’; that is, “yy” specifies use of the two low-order year digits, while any other field length specifies a minimum number of digits to display.

The y* parameter:

Calendar year (numeric). In most cases the length of the y field specifies the minimum number of digits to display, zero-padded as necessary; more digits will be displayed if needed to show the full year. However, “yy” requests just the two low-order digits of the year, zero-padded as necessary. For most use cases, “y” or “yy” should be adequate.

More:
https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table


Fix abs/strings/numbers compilation on Win/MSVS.

There is no x86intrin.h on Win/MSVS.
Use intrin.h instead.

@googlebot I signed it!


Union operation on shapes is not commutative

Given the code:
pub mod local_scope(LocalScope) {
    ensogl_core::cached_shape! {
        size = (SIZE, SIZE);
        alignment = center;
        (style: Style) {
            let dull_alpha: Var<f32> = style.get_number(dull_color_alpha).into();
            let dull_color = &VIVID_COLOR * &dull_alpha;
            let dot = Circle(3.0.px());
            let dot = dot.fill(VIVID_COLOR.glsl());
            let outer = Circle(8.0.px()) - Circle(5.0.px());
            let outer = outer.fill(dull_color.glsl());
            let shape = outer + dot;
            let shape = shape.shrink(SHRINK_AMOUNT.px());
            shape.into()
        }
    }
}

It produces this image (middle shape):

But swapping outer and dot on the line let shape = outed + dot produces a different image:

No longer relevant in GUI2


LFS-473 / LFS-476: As an administrator I can specify a limit for the number of forms per subject in the Questionnaire designer

This PR allows the administrator to add or change the maxPerSubject field of the questionnaire in the UI. However, the functionality for actually limiting the forms based on this field (LFS-473) is not complete. Therefore, changing this field will currently not affect the forms. This PR is based on LFS-172.
Jira Link

I can define the number of forms per subject, however whenever I create a new for I do not get prompted to select/create subject.

tested;  I was able to define the maximum number of forms per subject
The maximum number of forms will get enforced by LFS-473 / LFS-474, LFS-475, LFS-477, LFS-478 PR.


DWP: Tag Keys should be limited based on previous selections

Delete With Predicate: Tag-Key value pairs should behave like in the query builder, where selecting previous keys should limit the next filterable keys.
Currently, the keys are available based on the bucket name that is selected. We should revise our key availability based on the results of the previous key selected

my PRhttps://github.com/influxdata/influxdb/pull/16130 breaks tag key and value setting, I did not fix it because it will be refactored here.

When implementing this, if it's feasible to create a utility or engine function that the UI can use to remain consistent, I think that would be much preferable to similar / copy pasta logic in multiple places

Closing this since there doesn't seem to be any progress on this feature


Fix issue #57 (Card-width issue)

Fixes #57
Changed the CSS properties so that the cards the same width in all pages.

Nevermind, this one does not bode well with different screen sizes. I will try a different fix.


Fixed text in theme variations diagram

The diagram had the word "Breadcrumps" but it's crumbs.

Wow, thanks for spotting that!

Thank you for putting in all that work!