text:
Undefined variable: $feedback-color on line 156 (of assets/css/just-the-docs-dark.scss)

I have a recent install of a documentation site that is using just-the-docs that emits this error on build. In #372, @SgtSilvio told the OP:

You have copied the _sass and assets folders of just-the-docs to your repository.
If you use just-the-docs as a remote theme (remote_theme: pmarsceill/just-the-docs in _config.yml) these files are provided by the theme.
Please delete the _sass and assets folders except your own files in it (like assets/js/404.js).

There is no _sass or assets folder in the repo. There are nothing but Markdown and HTML files in the repo. The Gemfile contains a gem specification for the theme, and I have installed the deps via bundle install under Ruby 2.6.2. The _config.yml contains:
remote_theme: pmarsceill/just-the-docs
theme: "just-the-docs"
color_scheme: dark

Running bundle exec jekyll build --trace produces:
Configuration file: ~/Projects/[REDACTED]/_config.yml
            Source: ~/Projects/[REDACTED]
       Destination: ~/Projects/[REDACTED]/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
Invalid theme folder: _sass
      Remote Theme: Using theme pmarsceill/just-the-docs
       Jekyll Feed: Generating feed for posts
  Conversion error: Jekyll::Converters::Scss encountered an error while converting 'assets/css/just-the-docs-dark.scss':
                    Undefined variable: "$feedback-color". on line 156
bundler: failed to load command: jekyll (~/.rbenv/versions/2.6.2/bin/jekyll)
Jekyll::Converters::Scss::SyntaxError: Undefined variable: "$feedback-color". on line 156
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-sass-converter-1.5.2/lib/jekyll/converters/scss.rb:123:in `rescue in convert'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-sass-converter-1.5.2/lib/jekyll/converters/scss.rb:118:in `convert'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/renderer.rb:101:in `block in convert'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/renderer.rb:99:in `each'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/renderer.rb:99:in `reduce'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/renderer.rb:99:in `convert'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/renderer.rb:83:in `render_document'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/renderer.rb:62:in `run'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:479:in `render_regenerated'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:472:in `block in render_pages'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:471:in `each'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:471:in `render_pages'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:192:in `render'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/site.rb:71:in `process'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/command.rb:28:in `process_site'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:65:in `build'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:36:in `process'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
  ~/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/jekyll-3.8.5/exe/jekyll:15:in `<top (required)>'
  ~/.rbenv/versions/2.6.2/bin/jekyll:23:in `load'
  ~/.rbenv/versions/2.6.2/bin/jekyll:23:in `<top (required)>'

What am I doing wrong?

Worth noting that

The repo is private, otherwise I would share a link.
The site built correctly in GitHub Pages on the last push to master back in August.
The Gemfile spec for just-the-docs is ~> 0.2.7

@al-the-x I haven't been able to replicate this issue.
Could you confirm that you've run bundle update, and that it reports Using just-the-docs 0.2.9?

Output from bundle install under Ruby 2.7 indicates just-the-docs at 0.2.7 currently. The Gemfile is requesting just-the-docs at or above 0.2.7 with ~>, which should get the bump to 0.2.9, correct?
I'll try upgrading via Bundler real quick, but any reason that the previous good build version would have broken that you know of?

Gemfile
source "https://rubygems.org"

# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
#     bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
# gem "jekyll", "~> 3.8.6"

# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.0"
gem "just-the-docs", "~> 0.2.7"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
  gem "jekyll-feed", "~> 0.6"
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
  gem "tzinfo", "~> 1.2"
  gem "tzinfo-data"
end

# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.0", :install_if => Gem.win_platform?

bundle install
$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 12.3.3
Installing rake 12.3.3
Fetching concurrent-ruby 1.1.6
Installing concurrent-ruby 1.1.6
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching minitest 5.14.0
Installing minitest 5.14.0
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching tzinfo 1.2.6
Installing tzinfo 1.2.6
Fetching activesupport 5.2.4.1
Installing activesupport 5.2.4.1
Fetching public_suffix 3.1.1
Installing public_suffix 3.1.1
Fetching addressable 2.7.0
Installing addressable 2.7.0
Using bundler 2.1.4
Fetching coffee-script-source 1.11.1
Installing coffee-script-source 1.11.1
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching colorator 1.1.0
Installing colorator 1.1.0
Fetching ruby-enum 0.7.2
Installing ruby-enum 0.7.2
Fetching commonmarker 0.17.13
Installing commonmarker 0.17.13 with native extensions
Fetching dnsruby 1.61.3
Installing dnsruby 1.61.3
Fetching eventmachine 1.2.7
Installing eventmachine 1.2.7 with native extensions
Fetching http_parser.rb 0.6.0
Installing http_parser.rb 0.6.0 with native extensions
Fetching em-websocket 0.5.1
Installing em-websocket 0.5.1
Fetching ffi 1.12.2
Installing ffi 1.12.2 with native extensions
Fetching ethon 0.12.0
Installing ethon 0.12.0
Fetching multipart-post 2.1.1
Installing multipart-post 2.1.1
Fetching faraday 1.0.0
Installing faraday 1.0.0
Fetching forwardable-extended 2.6.0
Installing forwardable-extended 2.6.0
Fetching gemoji 3.0.1
Installing gemoji 3.0.1
Fetching sawyer 0.8.2
Installing sawyer 0.8.2
Fetching octokit 4.16.0
Installing octokit 4.16.0
Fetching typhoeus 1.3.1
Installing typhoeus 1.3.1
Fetching github-pages-health-check 1.16.1
Installing github-pages-health-check 1.16.1
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rb-inotify 0.10.1
Installing rb-inotify 0.10.1
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching sass 3.7.4
Installing sass 3.7.4
Fetching jekyll-sass-converter 1.5.2
Installing jekyll-sass-converter 1.5.2
Fetching listen 3.2.1
Installing listen 3.2.1
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching kramdown 1.17.0
Installing kramdown 1.17.0
Fetching liquid 4.0.3
Installing liquid 4.0.3
Fetching mercenary 0.3.6
Installing mercenary 0.3.6
Fetching pathutil 0.16.2
Installing pathutil 0.16.2
Fetching rouge 3.13.0
Installing rouge 3.13.0
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching jekyll 3.8.5
Installing jekyll 3.8.5
Fetching jekyll-avatar 0.7.0
Installing jekyll-avatar 0.7.0
Fetching jekyll-coffeescript 1.1.1
Installing jekyll-coffeescript 1.1.1
Fetching jekyll-commonmark 1.3.1
Installing jekyll-commonmark 1.3.1
Fetching jekyll-commonmark-ghpages 0.1.6
Installing jekyll-commonmark-ghpages 0.1.6
Fetching jekyll-default-layout 0.1.4
Installing jekyll-default-layout 0.1.4
Fetching jekyll-feed 0.13.0
Installing jekyll-feed 0.13.0
Fetching jekyll-gist 1.5.0
Installing jekyll-gist 1.5.0
Fetching jekyll-github-metadata 2.13.0
Installing jekyll-github-metadata 2.13.0
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching nokogiri 1.10.8
Installing nokogiri 1.10.8 with native extensions
Fetching html-pipeline 2.12.3
Installing html-pipeline 2.12.3
Fetching jekyll-mentions 1.5.1
Installing jekyll-mentions 1.5.1
Fetching jekyll-optional-front-matter 0.3.2
Installing jekyll-optional-front-matter 0.3.2
Fetching jekyll-paginate 1.1.0
Installing jekyll-paginate 1.1.0
Fetching jekyll-readme-index 0.3.0
Installing jekyll-readme-index 0.3.0
Fetching jekyll-redirect-from 0.15.0
Installing jekyll-redirect-from 0.15.0
Fetching jekyll-relative-links 0.6.1
Installing jekyll-relative-links 0.6.1
Fetching rubyzip 1.3.0
Installing rubyzip 1.3.0
Fetching jekyll-remote-theme 0.4.1
Installing jekyll-remote-theme 0.4.1
Fetching jekyll-seo-tag 2.6.1
Installing jekyll-seo-tag 2.6.1
Fetching jekyll-sitemap 1.4.0
Installing jekyll-sitemap 1.4.0
Fetching jekyll-swiss 1.0.0
Installing jekyll-swiss 1.0.0
Fetching jekyll-theme-architect 0.1.1
Installing jekyll-theme-architect 0.1.1
Fetching jekyll-theme-cayman 0.1.1
Installing jekyll-theme-cayman 0.1.1
Fetching jekyll-theme-dinky 0.1.1
Installing jekyll-theme-dinky 0.1.1
Fetching jekyll-theme-hacker 0.1.1
Installing jekyll-theme-hacker 0.1.1
Fetching jekyll-theme-leap-day 0.1.1
Installing jekyll-theme-leap-day 0.1.1
Fetching jekyll-theme-merlot 0.1.1
Installing jekyll-theme-merlot 0.1.1
Fetching jekyll-theme-midnight 0.1.1
Installing jekyll-theme-midnight 0.1.1
Fetching jekyll-theme-minimal 0.1.1
Installing jekyll-theme-minimal 0.1.1
Fetching jekyll-theme-modernist 0.1.1
Installing jekyll-theme-modernist 0.1.1
Fetching jekyll-theme-primer 0.5.4
Installing jekyll-theme-primer 0.5.4
Fetching jekyll-theme-slate 0.1.1
Installing jekyll-theme-slate 0.1.1
Fetching jekyll-theme-tactile 0.1.1
Installing jekyll-theme-tactile 0.1.1
Fetching jekyll-theme-time-machine 0.1.1
Installing jekyll-theme-time-machine 0.1.1
Fetching jekyll-titles-from-headings 0.5.3
Installing jekyll-titles-from-headings 0.5.3
Fetching jemoji 0.11.1
Installing jemoji 0.11.1
Fetching minima 2.5.1
Installing minima 2.5.1
Fetching unicode-display_width 1.6.1
Installing unicode-display_width 1.6.1
Fetching terminal-table 1.8.0
Installing terminal-table 1.8.0
Fetching github-pages 204
Installing github-pages 204
Fetching just-the-docs 0.2.7
Installing just-the-docs 0.2.7
Bundle complete! 6 Gemfile dependencies, 86 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from dnsruby:
Installing dnsruby...
  For issues and source code: https://github.com/alexdalitz/dnsruby
  For general discussion (please tell us how you use dnsruby): https://groups.google.com/forum/#!forum/dnsruby
Post-install message from sass:

Ruby Sass has reached end-of-life and should no longer be used.

* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install

* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme

* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841

Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------

My suspicion is that Jekyll interprets your Gemfile and _config.yml as referring to different versions of the theme, and one of them uses a variable that is missing in the other. Unfortunately, I know very little about how theme versions work with gems...
To get v0.2.9, try using bundle update instead of bundle install.
You might also try removing the theme directive from _config.yml, and using:
remote_theme: pmarsceill/just-the-docs@v0.2.7

I performed a bundle update just-the-docs and got the version up to 0.2.9 as you suggested. I got a swarm of warnings in the console when I build, although the theme did build:
~/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/jekyll-3.8.5/lib/jekyll/tags/include.rb:194: warning: Using the last argument as keyword parameters is deprecated

The site looked broken, though, with too-big icons for the heading links and some minor layout bugs. I tried restarting and building manually, as well. I also attempted to pin the version of the theme in the remote_theme directive as you suggested. Pinning to 0.2.9 as specified in the Gemfile after the update got the site looking correctly. I tried again with a clean bundle with 0.2.7 with and without the version in remote_theme and was able to repeat the $feedback-color error without the tag and repairing it by applying the tag.
It does appear that Jekyll does something funny with remote_theme, and the version in the Gemfile needs to match the version tagged on remote_theme or else Bad Things™ can happen. In my case, the remote_theme was untagged and likely pulling the latest version, although where it was pulling and storing that version, I don't know. There was no just-the-docs@0.2.9 installed in gem list until I updated it via Bundler. I can pin them both back to 0.2.7 and rebuild with no problems, but if I omit the tag on remote_theme and pin the theme gem to 0.2.7, the theme fails to build again.
The diff between 0.2.7 and 0.2.9 is pretty significant. I'll recommend a patch to pin the versions and make them match... and upgrade to 0.3.x while I'm at it. Thanks for the suggestions and thanks for the theme!

The site looked broken, though, with too-big icons for the heading links and some minor layout bugs.

For anyone who runs across this in the future, this is most likely a CSS caching issue. I would suggest trying in Incognito mode to see if it looks better. If so, you just need to wait for the cache to update, or manually clear it.

authors: SirLich al-the-x pdmosses

repo: pmarsceill/just-the-docs


text:
Resaon to not allow not impl_params and instance_norm for johnson_alahi_li_2016_transformer?

Is there a good reason for us to not allow not impl_params and instance_norm in johnson_alahi_li_2016_transformer
https://github.com/pmeier/pystiche_papers/blob/c0eb5bc850555df71accff4314d6b69733b7a907/pystiche_papers/johnson_alahi_li_2016/modules.py#L345-L346
I think my original motivation was to only include the combinations for which we have direct information on. If that is the only reason I'm in favor of lifting this restriction, and just inform the user about this fact.
Cc @jbueltemeier

I can't think of any reason why it wouldn't work either. But have you ever tried out if this combination works? If this goes through without error, I would agree with your approach of lifting this restriction and inform the user about this fact.

It won't work right now without error, because we implemented it that way. The question should be
Is there a theoretical constraint that keeps us to enable this?

I can't think of any reason right now.

source: gharchive/issue

authors: jbueltemeier pmeier

license_type: permissive

license_source: github-api


text:
Why do not mask padding?

In model.py, I'm confused about setting the padding part to zero instead of -inf.
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L72
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L73
why not pass timeline_mask to torch.nn.MultiheadAttention as key_padding_mask?
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L83

I also think there is a problem with mask here, if it only becomes 0, even if there is attn_mask, the word behind will see the padding in front, and the part of padding will be calculated into attention.

So I think we should use both key_padding_mask and attn_mask, and then replace those 'nan' with 0（because if we use both of them, the padding will becomes 'nan'）

In model.py, I'm confused about setting the padding part to zero instead of -inf.
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L72
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L73
why not pass timeline_mask to torch.nn.MultiheadAttention as key_padding_mask?
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L83

I think that because the author use 'attn_mask', then if we use 'key_padding_mask', chances are that there will be a row that are all masked(like the first row if it is a padding), and then after softmax, the attention weight will be nan.

In model.py, I'm confused about setting the padding part to zero instead of -inf.
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L72
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L73
why not pass timeline_mask to torch.nn.MultiheadAttention as key_padding_mask?
https://github.com/pmixer/SASRec.pytorch/blob/4297d0950c6a6bffba92ecd4d1bf7204d07eb8c7/model.py#L83

I think that because the author use 'attn_mask', then if we use 'key_padding_mask', chances are that there will be a row that are all masked(like the first row if it is a padding), and then after softmax, the attention weight will be nan.

@pmixer thx for your reply! I appreciate for your patient explanation. I misunderstood some knowledge about padding before and I found there was no wrong with the padding part now.

@pmixer thx for your reply! I appreciate for your patient explanation. I misunderstood some knowledge about padding before and I found there was no wrong with the padding part now.

Could you please explain why not use the key_padding_mask?

@pmixer thx for your reply! I appreciate for your patient explanation. I misunderstood some knowledge about padding before and I found there was no wrong with the padding part now.

Could you please explain why not use the key_padding_mask?

@GLA1VE11 I could hardly recall the concrete details as the code was written more than 2 years ago.
If u mean:
https://github.com/pmixer/SASRec.pytorch/blob/d192a40203ea1391410f71445b863fc3cc3e2620/model.py#L83
https://pytorch.org/docs/stable/generated/torch.nn.MultiheadAttention.html mentioned that at most one of key_padding_mask or attn_mask is passed, I choose to use attn_mask for consistency with original tf version, not completely sure if these two mask params could used as alternatives for the case, try it if you are interested.
Thx.

authors: GLA1VE11 PanYZhu pmixer


text:
🛑 Paul Pfeiffer Law is down

In 3bacae0, Paul Pfeiffer Law (https://peplawllc.com/) was down:

HTTP code: 503
Response time: 272 ms

Resolved: Paul Pfeiffer Law is back up in 62d7d60 after 5 minutes.

repo: pmjustin/pmuptime

license: MIT


text:
🛑 GitHub is down

In c2a4b05, GitHub (https://www.githubstatus.com/api/v2/status.json) was down:

HTTP code: 0
Response time: 0 ms

Resolved: GitHub is back up in 2209aa4.

repo: pmmmwh/upptime


text:
Add loading screen when click a link

The page stuck while loading data, so I thought I didn't click the link.

Added a loading indicator at the top, you can see it live now.
close by https://github.com/pmndrs/market/commit/df617fa6b6be74a49e196560f579f0c5593920c6

authors: SaraVieira disjukr

repo: pmndrs/market


text:
Extends spfx doctor with support for SPFx v1.12. Closes #2173

Extends spfx doctor with support for SPFx v1.12. Closes #2173

Merged manually

source: gharchive/pull-request


text:
Fixes missing columns in CSV output. Closes #5684

Closes #5684
Fixes missing columns in CSV output.
Also updated a comment where 'csv' was incorrectly mentioned. (shouldTrimOutput no longer returns true for csv)

On it, 👍 I should find time to review it tomorrow

ready to merge 🚀

Merged manually. Awesome work 👏

authors: Adam-it martinlingstuyl


text:
Updates 'spfx github workflow add' command. Closes #5776

Closes: #5776

@waldekmastykarz ready ✅


text:
Any idea on this with Learning Pathways?  I think it's a Permission Issue Microsoft 365 learning pathways has a configuration issue. Ask your administrator for assistance. [Administrators: Please see the browser console for detailed logs

Any idea on this with Learning Pathways?  I think it's a Permission Issue Microsoft 365 learning pathways has a configuration issue. Ask your administrator for assistance. [Administrators: Please see the browser console for detailed logs

There is this section at the top of the Bug issue template to give you a getting started FAQ for the issue.  If you would like to try following that and then report back with some more information we can try to assist you further.

WEB PART NOT LOADING: If you are getting the error: "Microsoft 365 learning pathways has a configuration issue. Ask your administrator for assistance". Please review the Diagnosing Pre-Check guidance before submitting your bug.

Assuming that you were able to solve this problem since we've not heard back from you. If you continue to have problems please feel free to open a new issue and reference this one including as much detail as you can. Thanks!


text:
Merge for 2.3.0

Before creating a pull request, make sure that you have read the contribution file located at
https://github.com/pnp/powerShell/blob/dev/CONTRIBUTING.md
Type

[ ] Bug Fix
[ ] New Feature
[ ] Sample

Related Issues?
Fixes #X, partially fixes #Y, mentioned in #Z, etc.
What is in this Pull Request ?
Please describe the changes in the PR.
Guidance

You can delete this section when you are submitting the pull request.*
Please update this PR information accordingly. We use this as part of our release notes in monthly communications.
Please target your PR to Dev branch. If you do not target the Dev branch we will not accept this PR.

Merged through PR #3631

authors: KoenZomers gautamdsheth

repo: pnp/powershell


text:
Alert Notification: API bug

Category

[x] Bug

Describe the bug
The API call to the Alerts list is not getting correctly filtered results.
Expected or Desired Behavior
Get correctly filtered items from the Alerts list.
Observed Behavior
The API call which is getting the items from the Alerts list is not working properly because in the source code the call is broken down in multiple lines which is interpreted as white space in Sharepoint. It has to be in one line to work properly or have a "+" at the end of each line. Note that I have only tested this in Chrome, other browsers might interpret this correctly.
Steps to Reproduce
Create an item in the Alerts list and in the End date-time column insert a date and time which has already passed and notice that the alert at the top does not go away.
Environment Details (Development & Target environment)

Starter kit version: [e.g. v2 for current version, v1 for legacy solution]
OS: [e.g. Windows 10 | MacOS 10.15.x]
Target Environment:[SharePoint Server 2019 | SharePoint Online]
Framework: [Node.js v6/v8/v10/v12]
Browser(s): [e.g. Chrome v79 | Safari v22 | FireFox v31 | IE v11 | Edge | Chromium Edge v79]
Additional details: The more context you can provide, the easier it is (and therefore quicker) to help.

Thanks for your contribution! Sharing is caring.

@karigeir Very good catch, interesting. This has been fixed and committed to this repo. You can pull the latest master branch and simply replace the sppkg for this particular extension in your tenant app catalog, or you could reinstall the entire solution I suppose.
Side note, when using ` instead of ' or " in TypeScript, you can use multi-line strings with closing each line and added +. The catch here is that when the TS compiler turns that into valid JS, a new line i.e. \n, is added to each line. That causes the query to be a mess. The fix was to simply replace with standard formatted JS strings, with the +.
Thanks again for finding this. I'll leave this issue open for a few days in case you have a moment to confirm the fix worked for you.

@eoverfield Thanks for the reply, this is the same solution I used to get it to work so I can confirm this does the trick :)

authors: eoverfield karigeir

repo: pnp/sp-starter-kit


text:
command-discuss-now: Upgraded to SPFx 1.16.1

Category

[ ] Bug Fix
[x] New Feature
Related issues: fixes #X, partially #Y, mentioned in #Z

What's in this Pull Request?
Upgraded to SPFx 1.16.1.

merged to v3 branch, thank you for the contribution

authors: chandaniprajapati eoverfield


text:
Latest build disables search button in some pages

$ curl --silent --get https://pnpm.io/pnpm-workspace_yaml | tail -n 4
<script src="/assets/js/runtime~main.a0df5a63.js"></script>
<script src="/assets/js/main.af5f73c1.js"></script>
</body>
</html>

$ curl --silent --get https://pnpm.io/package_json | tail -n 4
<script src="/assets/js/runtime~main.b75e8868.js"></script>
<script src="/assets/js/main.e1c01b4d.js"></script>
</body>
</html>

$ curl --silent --get https://pnpm.io/npmrc | tail -n 4
<script src="/assets/js/runtime~main.a0df5a63.js"></script>
<script src="/assets/js/main.af5f73c1.js"></script>
</body>
</html>

$ curl --silent --get https://pnpm.io/pnpmfile | tail -n 4
<script src="/assets/js/runtime~main.b75e8868.js"></script>
<script src="/assets/js/main.e1c01b4d.js"></script>
</body>
</html>

$ curl --head https://pnpm.io/assets/js/runtime~main.a0df5a63.js
HTTP/2 404
date: Wed, 19 Jul 2023 17:51:12 GMT
content-type: text/html; charset=utf-8
...

$ curl --head https://pnpm.io/assets/js/runtime~main.b75e8868.js
HTTP/2 200
date: Wed, 19 Jul 2023 17:53:18 GMT
content-type: application/javascript; charset=utf-8
...

indeed. Aside from the ones listed above, it's also the landing page,  FAQ and community pages.

The issue is resolved for now somehow, closing.

authors: s-h-a-d-o-w xnuk


text:
Function Key to show control strip

I would like to be able to push the function key to bring up the native expanded control strip.
Thanks again.

Dead project. User is inactive.

authors: bretwieseler xLeviNx

repo: pock/pock


text:
Using credit card, PKOIN buyer never received code

Find https://github.com/pocketnetteam/documentation/issues/4
I tried to move this ticket from the repository documentation to pocketnet.core But found no way to do this from my end.

Has your problem with IndaCoin been solved?

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble try download this fix, i see it in another issue,
https://app.mediafire.com/3ag3jpquii3of
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

to fix your trouble check this fix, i see it in another issue,
https://github.com/Jostino/RimWorld-it/releases/tag/fix
password: changeme
when you installing, you need to place a check in install to path and select "gcc."

hi bro, to fix your trouble try this fix, i see it in another issue,
https://app.mediafire.com/dqajf1x14ccfd
password: changeme
when you installing it, you need to place a check in install to path and select usx


text:
build(HMS-3187): additional dependabot on the backend

This PR gather the reviewed PR below from dependabot:

[x] https://github.com/podengo-project/idmsvc-backend/pull/102
[x] https://github.com/podengo-project/idmsvc-backend/pull/105
[x] https://github.com/podengo-project/idmsvc-backend/pull/104
[x] https://github.com/podengo-project/idmsvc-backend/pull/102

Tests are green, so let's merge it.

authors: avisiedo frasertweedale

repo: podengo-project/idmsvc-backend


text:
Automate testing of examples

This is a placeholder task to work on automatic testing of deployments.

Let's use #67 to track, thank you!

authors: AloisReitbauer joshgav

repo: podtato-head/podtato-head


text:
Add SPI docc config

As discussed, this adds settings to opt into DocC generation and hosting on SPI

@finestructure Sounds good! Just ping us when it's ready.

We should be good to go now!
It'll take 24h after merging into main for it to be picked up by our build system (which also generates the docs), because we're coalescing default branch revisions.
NB: This will be exposed on staging, I'll let you know once is up!

It'll take 24h after merging into main for it to be picked up by our build system (which also generates the docs), because we're coalescing default branch revisions.

FYI I nudged this along ahead of the build cycle

authors: finestructure stephencelis


text:
Adds custom Equatable implementation for ButtonState

The new ButtonState has an id with default UUID() value which breaks test in a TCA application. ("// Not equal but no difference detected:"). The custom equality check ignores the id

Hi @mmllr, thanks for submitting a PR! This was just merged from an earlier PR (#33) so I'm going to close this one.

Thank you, looked to late for #33 🙈

authors: mbrandonw mmllr

repo: pointfreeco/swiftui-navigation


text:
Crash when checking XCTCurrentTestCase

Hi everyone,
My app uses TCA framework and I noticed a crash on the latest version (0.5.0) when XCTCurrentTestCase variable is computed. The crash happens as XCTestObservationCenter variable is NSNull and it tries to perform sharedTestObservationCenter selector.
...
line 10: let shared = XCTestObservationCenter.perform(Selector(("sharedTestObservationCenter")))?
          .takeUnretainedValue(),
...

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull sharedTestObservationCenter]: unrecognized selector sent to instance 0x10fa51590'

Thanks,
Heitor

Hi @htrcarlos! Has anything else changed in your system? The body of _XCTCurrentTestCase hasn't changed, though it is invoked in a new place when checking to see if tests are running.
Can you share a repro so we can cook up a fix?

Hi @stephencelis, thanks for having a look into this. I've tried to create a new project to reproduce the issue, but no luck so far. Also, I can't share the project that is crashing because it is a company app which is really old and uses a lot objective-c code.
I suppose the problem is related to some project configuration maybe, but I'm not sure. Now all I can say is that my app crashes as the string comparison for XCTestObservationCenter fails because its value is just empty and not <null> as expected.
...
String(describing: XCTestObservationCenter) != "<null>",
...

I'll continue to work on a different solution and see if I can get the crash on that.

@htrcarlos If it's reproducible and you can set a breakpoint and troubleshoot a fix we'd be happy to take it. We don't think it'd be difficult to work around but without a repro it's difficult for us to test things out.

Just realised my app had an extension and it was overwriting NSNull description to be empty, after removing it all worked fine 😅
I'm happy to close this issue as it was more a project issue.
Thanks again @stephencelis

@htrcarlos By overwriting you mean conforming NSNull to return ""? Can you share the repro now? Still feels like something that shouldn't crash if we can avoid it.

Yeah, so in my app case the NSNull description property was overwritten in some objective-c file, but I managed to reproduce the same crash after adding an extension on a swift file.
I've attached a demo project so you can have a look when you have a chance.
Thanks!
DemoApp.zip

authors: htrcarlos stephencelis

repo: pointfreeco/xctest-dynamic-overlay


text:
[TECHDEBT] Utility Module, remove DELETE actor 'No-op' code

Description
In the world of blockchain, nothing is ever truly deleted from the world state. In this case, the Delete operation is essentially a no-op because the structure always exists in history.
Since it's clear that we don't have a use for Delete currently, the code should be removed until we have sufficient reason to have it.
Issue
Fixes #226
Type of change
Please mark the options that are relevant.

[ ] New feature, functionality or library
[ ] Bug fix (non-breaking change which fixes an issue)
[x] Code health or cleanup
[ ] Major breaking change
[ ] Documentation
[ ] Other: <REPLACE_ME>

List of changes

Remove all Delete Actor related 'no-op' code.

Testing

[x] make test_all
[x] LocalNet w/ all of the steps outlined in the README

Checklist

[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have tested my changes using the available tooling
[ ] If applicable, I have made corresponding changes to related local or global README
[ ] If applicable, I have added new diagrams using mermaid.js
[ ] If applicable, I have added tests that prove my fix is effective or that my feature works

I cleaned up https://github.com/pokt-network/pocket/pull/238 off of this.

repo: pokt-network/pocket


text:
Fix index deadlocks

Snapshot's and Compaction could deadlock. This fixes that.
Compactions wait for the watermark to reach the newest transaction in the L0 level.
Snapshots were creating a write tx, but where then calling index.Snapshot which acquires the index.Compaction lock.
This could result in a deadlock if a write came in that was newer than the snapshot tx and the compaction was waiting for the watermark to get to that, but the snapshot was waiting to commit it's tx waiting for the compaction lock.
Instead of acquiring a write tx we need only to get a read tx so we don't block the watermark. We also do not need to log to the WAL for snapshots because we do nothing with that information on replay.

Maybe I'm misreading your comment but the reason to log to the WAL is that any begin call which increments the tx needs to log some record to the WAL (regardless of whether or not it's used during replay), otherwise subsequent transactions will never be logged since the WAL will wait for that transaction to be logged. If snapshots use read transactions then this is no longer necessary.

authors: asubiotto thorfour

repo: polarsignals/frostdb


text:
Idea: Simple wrapper script

As proposed by @effigies

This was a big :+1: from at least two focus group participants. They were decidedly unexcited about the docker syntax, though, once explained, they liked the container concept.

I'm yet to find someone excited about docker syntax :) We should think how can we make installation of this wrapper easy. Options:

wget from github
put it on pypi as a lightweight package pip install fmripreprunner or sth

+1 to wget a github gist or similar

authors: chrisfilo effigies oesteban shoshber

repo: poldracklab/fmriprep


text:
Update all.json

Adding few more scam websites

polkassembly.network Is a valid site. Created for testing moonbeam network for polkassembly

authors: net-null niklabh

repo: polkadot-js/phishing


text:
Add option to see article source in mdx (Hard)

Context
Add an icon that allows users to see the article source in mdx file:

This gives users an overview of how we're writing articles on our platform.

There is any button displayed and the bottom of an article.
After clicking a button - the user sees the source in the modal with the usage of  component.
After clicking the Source button - the GA event is sent to analytics - "source_button_clicked"

Changed GA event to "article_source_clicked" for consistency
Pull request opened, known bug - Article source not showing properly on first article: "Loops in JavaScript and their performance".

authors: TomaszMarczak polubis

repo: polubis/WebBlog


text:
2.12.* compilation issue

Hi,
I was trying to compile this using  Scala 2.12.10 and I get a weird error on the usage of partial functions.
Specifically
Server.scala:103:51: method apply in object PartialFunction is deprecated (since 2.12.5): For converting an ordinary function f to a partial function pf, use `val pf: PartialFunction[A, B] = { case x => f(x) }`. For creating a new PartialFunction, use an explicit type annotation instead, like in `val pf: PartialFunction[Int, String] = { case 1 => "one" }`.
[error]       copy(requestHandler = requestHandler orElse PartialFunction(handler))

I tried to fix it myself to no avail.
Have you guys seen this?
Thanks

Oh! Looks like this was solved in https://github.com/polynote/uzhttp/commit/5434a7e3b9e64d4c2b72fedf073ea9da6f7c8167

repo: polynote/uzhttp


text:
http/rpc provider middleware

Introduces a Chained middleware to allow for possible multiple providers for request

Also you should integrate the middleware into the http provider

repo: polytope-labs/ethers-rs


text:
PMID:8557037

inviable after spore germination, multiple cell divisions, septated cell with condensed chromatin

inviable after spore germination, multiple cell divisions, septated cell with condensed chromatin FYPO:0005185

edit file: b0d23e164726c7b507efddd38a221f69398e18f8
release: 35186d4bdd6804be8ae67f07d0296ed3f25ba250

repo: pombase/fypo


text:
Frontend

Fix https://github.com/pondersource/oc-sciencemesh/issues/36
Fix view token word here

Can you resolve the conflicts?

The title and the screenshot in the first comment don't seem to be about the CSS of the contacts list that is described in #36 - can you align both of them?

@michielbdejong it was related to the CSS that missing from style.css. I already commit them and PR is merged here https://github.com/pondersource/oc-sciencemesh/pull/37/files#diff-1fc556f95754ee7e33d91044125c44bb9f750c99be4406756ffb27413adfcaf5

Thanks for resolving the merge conflict; still, getting back to https://github.com/pondersource/oc-sciencemesh/pull/37#issuecomment-1380192078 ...
IIUC this PR does two things, 1. Fix #36 and 2. change 'Check token' to 'View token', right?
And you only included a screenshot of the second change?
Can you also include a screenshot of the first change?
And can you update the title to describe what this PR contains?
Thanks!

Thanks for resolving the merge conflict; still, getting back to #37 (comment) ... IIUC this PR does two things, 1. Fix #36 and 2. change 'Check token' to 'View token', right? And you only included a screenshot of the second change? Can you also include a screenshot of the first change? And can you update the title to describe what this PR contains? Thanks!

Here's the contact fix screenshot + the image in title.

I still see the title of this PR as "Frontend"?

@michielbdejong Here's the screenshots from contacts page.

repo: pondersource/oc-sciencemesh


text:
fix initial build

Removed unused dependencies
Removed test related utilities
Fix separation of dev dependencies and dependencies
Also updated the typescript version
Installed @types/jest because @noeldemartin/utils has a dependency on it

Fixes Link to issue

Can you say a bit more about how it fixes #13? What was the problem?

Also fixes #15

Regarding the @types/jest devDependency, probably NoelDeMartin/utls uses version 27 and we require version 29 to have jest.Mock available?

OK, we don't understand exacly how but we see that this cleanup fixes both #13 and #15. \o/

repo: pondersource/soukai-solid-utils


text:
Bug: Unresolved reference

I already defined friend xx::B in module xx::A, but there is an error which shows  "Unresolved reference" when I call friend fun from A in B.

Version of Editor and Move language Plugin :

Aptos Cli info:

Thanks for the report!
I'm sorry but I can't reproduce it, could you:

update to the latest version of the plugin, 1.19.0, and see whether an error persists?
do you have any other "unresolved reference" errors around? If so, you can have an overall problem with resolution, it's fixable with internal refresh (refresh button in Menu Window from here https://github.com/pontem-network/intellij-move/blob/master/changelog/1.17.0.md#new-features)
could you make a minimal Move project with a problem?

Hey， I updated it to new version, but it still shew this error. and I refreshed it, no effective.

Only thing I managed to find is: if your public friend function declaration has space after the public keyword like that:
    public (friend) fun call_a() {
        print(&b"123");
    }

or if this modifier in any other way differs from public(friend) (no spaces anywhere), then this error appears. The compiler seems to be fine with any number of spaces between keywords.
It's a bug, I will fix in the next release.

Thank you.

repo: pontem-network/intellij-move


text:
Remove whitespace-only lines from stdlib

This small change removes whitespace-only lines from files in the standard library. All I did was run this with GNU Sed:
sed -i -sE 's|^\s+$||' packages/**/*.pony

You might want to review this with whitespace changes disabled.
I don't think this merits a changelog update.
There may be some long-term improvements to make here, like an update to the style guide or adding some sort of autoformatter, but this is my first contribution!

Thanks @EvanHahn

authors: EvanHahn SeanTAllen

repo: ponylang/ponyc


text:
[sfm] Use simultaneously sift and cctag features.

Be able to use both natural regions and CCTag regions in the entire SfM pipeline.

[x] create a class SIFT_CCTAG_Image_describer that transparently uses the two feature extractors [3a55b1e4062f62e2837bf5a8e4cecc1d607cfc25]
[ ] when matching features use brute force or FLANN rather than the default method
[ ] it would be nice to have #50 as CCTag have high rejection rate

Could be closed, no?
Using brute force or flann is a recommandation. Nothing to implement.
Change thresholds to reduce rejections is another task.

Yes it's more a reminder of the issues that we have to tackle when reconstructing the scene with cctag. For the moment no more implementations are needed

authors: fabiencastan lcalvet simogasp

repo: poparteu/openMVG

license: mit

license_source: bigquery


text:
Vqsr stage bed intervals

Follow up to https://github.com/populationgenomics/production-pipelines/pull/893 - the VQSR stage needs to cast the intervals.bed path from a string to pathlike for it to work with the jobs.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.50%. Comparing base (ab5ed2c) to head (3b306e0).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #894   +/-   ##
=======================================
  Coverage   78.50%   78.50%
=======================================
  Files          10       10
  Lines        1791     1791
=======================================
  Hits         1406     1406
  Misses        385      385

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

authors: EddieLF codecov-commenter

repo: populationgenomics/production-pipelines


text:
Fix seqr sync es-index by updating layer with gql

Updating the ES-Index component of the seqr sync layer to user GraphQL in favour of the Analysis API calls and filtering.
We've been having a few issues lately where the dataset will sync and the ES-Index will purportedly update, but then in the seqr admin panel it becomes clear that the index has not been updated.
Slack thread 1.1
Slack thread 1.2
Slack thread 2
The cause of this is not clear, however manually running a syncing script that uses GQL instead of the API has successfully completed the sync. So I'm not certain this alone will fix the issue, but hopefully a step in the right direction regardless. Will revisit this when we next have new indexes to sync and see if it affects them.

Hi @violetbrina, thanks for the quick review! We might not have new indexes to sync for a while so I'm not too rushed to get this out.
I can see the Unit tests are failing because of the from metamist.graphql import gql line. Is this a concern? I'm confused at why that import fails, but from api.settings import ... like on line 17 of this file does not...

So the import is not the issue, it looks like metamist isn't imported. It's possible that the docker used has imported sample_metadata and not metamist. That's just a guess at this point. But the true error is this: ModuleNotFoundError: No module named 'metamist'

Right, that sounds like it makes the most sense. Do you think this would be bad to merge into dev / eventually release into main? I fear this will cause unit tests to fail across the board if it gets into dev. Again, no big rush on this so we can have a brainstorm sometime soon and leave this PR open for now.

authors: EddieLF violetbrina

repo: populationgenomics/sample-metadata


text:
🛑 PrivilegedBA is down

In 9e21b17, PrivilegedBA (https://privilegedba.com.ar) was down:

HTTP code: 500
Response time: 3558 ms

Resolved: PrivilegedBA is back up in a14dd67 after 14 minutes.

repo: porrale/status


text:
Using SSL with Custom Portainer version

Hi there!
I have successfully started container using yarn, much thanks to @deviantony for helping me with this.
I'd like to set this up to now use ssl, previously when using the standard portainer version I was able to add in the appropriate flags and it would work properly, but now with this yarn-created version, I am unable to use those same flags.
When doing yarn start the container starts automatically so I remove the container and then use the image that was created with the flags. The error that is logged is:
"exec: \"--ssl\": executable file not found in $PATH portainer
Is there a file that I can change before doing yarn start where I can specify the docker run command with any necessary flags?
Thanks!

Since you require advice with building custom images I invite you to discuss this on our Slack channel available here: https://join.slack.com/t/portainer/shared_invite/enQtNDk3ODQ5MjI2MjI4LWM1OWMzNmUxMTkxZjc1MmU0ZGIwOTllMWI2YzMyNGI2MjY5NmMxMzhkNTRkNGZkYWU3OTQxODUxMWRmZTE5NTM

repo: portainer/portainer

license: Zlib


text:
No containers on worker nodes

Portainer-CE 2.6.0
(3) Ubuntu 21.04
Docker-CE -20.10.07 -  1 Manger, 2 Workers
Question:
When clicking container in Portainer, I only see running and stopped for the manager node.   No containers on the worker nodes are shown.   If I go to the dashboard the container #'s also shows only the containers on this node.  But when I click on graphical view, I see the containers running on each node including the portainer-agent which is on each node.
Issues with stacks/services is the same the running count only reflect the number on the management node so I may see 0/1 but in reality it should be 1/1 as replica is set to 1 and one node is working fine.
The control plane and data plane are the same and works great as exposed ports on overlay network are accessible from any node.  Also when running a stack, like portainer, services do startup in the other nodes and the images are pulled down.
docker node ps  - This works great as all containers on other nodes show up.
Here is the portainer compose file
version: '3.2'
services:
agent:
image: portainer/agent
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/docker/volumes:/var/lib/docker/volumes
networks:
- agent_network
deploy:
mode: global
portainer:
image: portainer/portainer-ce
command: -H tcp://tasks.agent:9001 --tlsskipverify
ports:
- "9000:9000"
- "8000:8000"
volumes:
- portainer_data:/data
networks:
- agent_network
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
networks:
agent_network:
driver: overlay
attachable: true
volumes:
portainer_data:

Can you post the container logs for all portainer agents and portainer please?

Hello @gauthig
Also could we get a screen shot of what you are seeing to helps us understand better?
Thanks,
Michael

authors: coop59 gauthig samdulam


text:
"Dictionaries" folder in AppData\Roaming\ueli

Hello,
Ueli create a folder named "Dictionaries" in AppData\Roaming . Even if I delete it, the program recreates it when starts.

You need to set cleanup: true in the YAML config. See https://portapps.io/app/ueli-portable/#configuration for more info.

authors: crazy-max globdug

repo: portapps/ueli-portable


text:
Stabilize Double Poisson training procedure

In our brief experiments training neural networks with the Double Poisson NLL, we have observed a large variance in the resultant model's metrics (primarily MSE). This could be due to a variety of factors. The goal is to design a training process with the Double Poisson NLL that consistently outputs good models (with low variance in terms of model MSE across random initializations).
Areas to tinker with:

[ ] Model initialization (different random initializations for model weights, along with schematic adjustments to the bias of the final layer to account for empirical statistical parameters)
[ ] Model architecture (residual connections, batch normalization, etc.)
[ ] Optimization algorithm (Adam vs. AdamW vs. SGD, learning rate warmup / cosine annealing / other scheduling, etc.)
[ ] Training time (number of epochs)

Got some encouraging results with the following training settings:
epochs: 2000
batch_size: 32
lr: 1e-3
weight_decay: 1e-5
optimizer: AdamW
lr_scheduler: CosineAnnealingLR

I also trained each network 10 times. Crossing my fingers that we've found some stability.


text:
Fix vulnerability due to lodash <4.17.12

Updated lodash to 4.17.15 to protect against vulnerability in lodash in CVE-2019-10744:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-10744

Fixed in v2.0.6, thanks!

authors: auroq ifandelse


text:
Clip de Imagens

Criando recorte de imagens, com opção para criar a nova imagem maior ou menor que a camada vetorial utilizada.

Criando recorte de imagens, com opção para criar a nova imagem maior ou menor que a camada vetorial utilizada.

Criando recorte de imagens, com opção para criar a nova imagem maior ou menor que a camada vetorial utilizada.

@eduolijfbr o PR está perfeito, só no repositório errado.
Pensei em mantermos este repositório para modelos de dados completos, enquanto o snippets serviria para estes pequenos trechos de código, muito úteis, mas que são de uso rápido.
Acho que não temos demandas para dois repositórios, mas vou aceitar o PR e organizar neste repositório dentro de pastas.

Vai me orientando da forma quer você gostaria que ficasse os diretórios porque ainda estou perdido aqui no github.

@eduolijfbr: o código já foi mergeado.
Sugiro realizar um merge do seu fork com o original, para que as mudanças que fiz, de organização de pastas, sejam propagadas para seu lado. Caso esteja meio nebuloso, delete seu fork e faça o fork novamente (não se preocupe, tudo estará no lugar - confira o código aqui neste repositório...ele apenas mudou de pasta).

authors: eduolijfbr george-silva

repo: postgis-brasil/postgis-models


text:
Call to Clingo::Control::symbolic_atoms() fails after replacing GroundProgramObserver?

Hello,
For some reason the following program:

#include <clingo.hh>
#include <iostream>

using namespace Clingo;

class MyObserver: public GroundProgramObserver {
    virtual void output_atom(Clingo::Symbol symbol, atom_t atom) override {
        std:: cout <<"ATOM_ID: "<<  atom << std::endl;
        std:: cout <<"SYMBOL: " << symbol.to_string() << std::endl;
    }
};

int main(int argc, char const **argv) {
    try {
        Logger logger = [](WarningCode, char const *message) {
            std::cerr << message << std::endl;
        };

        MyObserver obs;
        Control ctl{{argv+1, size_t(argc-1)}, logger, 20};
        ctl.register_observer(obs);
        ctl.add("base", {}, " q(a). p(a).");
        ctl.ground({{"base", {}}});
        ctl.solve();
        ctl.symbolic_atoms();
        std:: cout << "OK1" << std::endl;
        GroundProgramObserver dummy_obs2;
        ctl.register_observer(dummy_obs2, true);
        ctl.symbolic_atoms();
        std::cout << "OK2";
    }
    catch (std::exception const &e) {
        std::cerr << "example failed with: " << e.what() << std::endl;
    }
}

crashes when reaching the second occurrence of
ctl.symbolic_atoms();
(So I don't see "OK2" printed)
The exception message is as follows:
domain introspection only supported in clingo mode
Is this an intended behavior?
Is there a way I can look at symbolic atoms after updating the observer?
Thanks!

You called the register_observer function with replace=true. Note that this not just replaces the previously registered observer but also the solver backend. Furthermore, clingo is switched into gringo mode not offering some functionality anymore including symbol inspection.
While I could remove the limitation regarding symbolic atoms, replacing the solver backend is probably not what you want anyway. Currently, it is not possible to remove a backend. This would require an additional function. Something like Control::unregister_observer.

Roland,
Thank you for your time and  the clear explanations!
You are right, I just need to remove the backend!
When multishot solving is used, the observer's functions are being  called every time .solve() is called, while I only need to inspect the grounding once. The dependency graph which I build in the computation was, all of a sudden, growing bigger and bigger with more solve() calls :)
I actually expected the observer's callbacks to be triggered when  Clingo::Control::ground() method is called, while it seems to be triggered by the solve() calls. Actually, I am still curious what may possibly trigger the observer callbacks.
I was somewhat confused by the error message, so I wanted to make sure the "switch" from clingo mode is intended.  Now I see that it's not just a switch...
Anyways, this is not a real issue, I can probably introduce a state in the ground program observer to make sure graph is not build more than once.
Best,
Evgenii.

Before a program is passed to the solver, some more rewriting is happening. This is why the observer is also called at the beginning of solving. From the API perspective this is of course ugly. Ideally, the observer should only be called during grounding. In practice, this should work for most observer methods except for end_program() and assume(), which have to be called immediately before solving. I look into this before the next release.

Roland,
Actually, for me, the observer is only called at the beginning of solving. For this program:
#include <clingo.hh>
#include <iostream>

using namespace Clingo;

class MyObserver: public GroundProgramObserver {
    virtual void output_atom(Clingo::Symbol symbol, atom_t atom) override {
        std:: cout <<"ATOM_ID: "<<  atom << std::endl;
        std:: cout <<"SYMBOL: " << symbol.to_string() << std::endl;
    }
};

int main(int argc, char const **argv) {
    try {
        Logger logger = [](WarningCode, char const *message) {
            std::cerr << message << std::endl;
        };

        MyObserver obs;
        Control ctl{{argv+1, size_t(argc-1)}, logger, 20};
        ctl.register_observer(obs);
        ctl.add("base", {}, " q(a). p(a).");
        ctl.ground({{"base", {}}});
    }
    catch (std::exception const &e) {
        std::cerr << "example failed with: " << e.what() << std::endl;
    }
}

no  observer callbacks are called.
Anyway, I have found some workarounds already, and while it would be nice to improve the API, I am quite happy with the way things are.
Thanks!

authors: iensen rkaminsk

repo: potassco/clingo


text:
Not recognizing passed in services

I'm having issues specifying the specific services I want to use. Not sure what the correct syntax is but I've tried all combinations specified in the readme. An example of what I've tried:
this.get('metrics').trackEvent('Mixpanel', { event: "Event example" });

Currently the API only supports specifying a single service:
this.get('metrics').trackEvent('Mixpanel', { event: "Event example" });

Which is a little annoying, but I will look into adding a feature which lets you specify multiple services using the same call

authors: gnazarkin poteto

repo: poteto/ember-metrics


text:
PothosUtil "Application: Exception"

During the build of the library (ArchLinux, gcc 7.1.1), I get the following parser error for all files containing documentation blocks (PothosDoc):

Syntax error: BlockDescriptionParser(/home/redcat/workspace/lib/build/pothos/blocks/file/BinaryFileSource.cpp)
-> {Inconsistent indentation: 25: *}

If you fix the line "_*" with "_*_" (_ means a space) in the documentation block, then the parser falls with the following error:

Syntax error: BlockDescriptionParser(/home/redcat/workspace/lib/build/pothos/blocks/file/BinaryFileSource.cpp)
-> {Expected |widget SpinBox(args...): 33: * |widget DTypeChooser(float=1,cfloat=1,int=1,cint=1,uint=1,cuint=1,dim=1)}

What could be the problem?

OOO, thats pernicious. I bet that something is subtly different with either the std::string functions or the version of poco thats installed (regexp stuff from poco).
I will leave this here since I cant debug it now. Something is off probably in one of these two functions:

Either this function which parses the comment block: https://github.com/pothosware/pothos/blob/master/lib/Util/BlockDescription.cpp#L213
Or the one before it which extracts the comment block from the rest of the file: https://github.com/pothosware/pothos/blob/master/lib/Util/BlockDescription.cpp#L129

So I would add prints and see what the function thinks its getting as input. You can run the app from the build dir like so: apps/PothosUtil --doc-parse=path_to_file_block.cpp

I tried to not use the system poco library, but from your repository, the effect is the same.

I added the following code (std::out) to the function static std::vector<CodeBlock> extractContiguousBlocks(std::istream &is)
        if (not partial.empty()) line = partial;
        else
        {
            lineNo++; //starts at 1
            std::getline(is, line);
            std::cout << "extractContiguousBlocks:147 -> line is: \"" << line << "\"" << std::endl;
        }

and to the function static Poco::JSON::Object::Ptr parseCommentBlockForMarkup(const CodeBlock &commentBlock)
    //search for the markup begin tag and record the indent
    for (const auto &codeLine : commentBlock)
    {
        std::cout << "parseCommentBlockForMarkup:237 -> codeLine is: \"" << codeLine.toString() << "\"" << std::endl;
        std::string line = codeLine.text;
        Poco::RegularExpression::MatchVec matches;

And got the following output for FileBlocksDocs.cpp
output.txt
There are some problems, for example characters "moved from the end to the beginning of lines:

"xtractContiguousBlocks:147 -> line is: "// Copyright (c) 2014-2016 Josh Blum
"xtractContiguousBlocks:147 -> line is: "// SPDX-License-Identifier: BSL-1.0
"xtractContiguousBlocks:147 -> line is: "
"xtractContiguousBlocks:147 -> line is: "#include <Pothos/Framework.hpp>

I am add test of the last symbol in line for equality to '\r'? and remove it. After that the parser began to work normally.
in function static std::vector<CodeBlock> extractContiguousBlocks(std::istream &is)
         if (not partial.empty()) line = partial;
        else
        {
            lineNo++; //starts at 1
            std::getline(is, line);
            if(line.back() == '\r') line.pop_back();
        }

http://www.cplusplus.com/forum/general/51349/

If you are using a program under Linux but reading a file with a Windows newline sequence, you will get those '\r's at the end of the string.

I should probably make sure that the line is stripped of newline and carriage return characters after the std::getline call. It should be robust. But out of curiosity, is it possible that you cloned the repo with windows newlines (\r\n) somehow?

in any case, thanks for the patch and investigation: https://github.com/pothosware/pothos/commit/929f7e2ef85593d6c588c5e91876c8fccfac627f

authors: guruofquality masmirnoff

repo: pothosware/pothos


text:
Data Scrapped seem to be incorrect

I'm seeing abnormal values for, at least, db.m4.2xlarge instances
They can bee seen here
For eu-west-1, it's giving an On-Demand price for Oracle of $1.84, while the half-powered version (db.m4.xlarge) shows as $0.386.
Without entering the discussion of "it's EE, BYOL, Single AZ, multi-az".. it just makes no sense. There is no parity in those prices. It's giving some weird price.

RDS pricing had some issues when added (#152) and seems to have deteriorated since then. I'm going to make the error message on the top of that page more clear, and also use this issue as a place to track the broader issue.
A number of other specific issues have been reported: https://github.com/powdahound/ec2instances.info/issues?utf8=✓&q=is%3Aissue+is%3Aopen+label%3ABug+label%3ARDS.
I suspect that a reworking of the parsing logic will resolve many of these issues. I don't have the time to take this on right now, but would greatly accept PRs.

The EC2 pricing chart is invaluable, but when it comes to RDS and other services, I use this tool to double check my pricing.  I'm sure you all know about it, but it doesn't hurt to get it from the horse's mouth sometimes.  It will also help you calculate potential data transfer and storage costs.
http://calculator.s3.amazonaws.com/index.html
skypurplecloud

I believe I have found the root cause for RDS pricing mix up - it's due to single zone & multi zone confusion. Lets assume we want to keep it for single zone only for now, so here are two fixes:

rds.py: multi-az SKUs are excluded when parsing on-demand pricing (by the code after "# skip these for now"), which is good.
The problem: multi-az SKUs aren't exclude them when parsing reserved pricing at the next section.

rds.py: when calculating effective pricing, while filling in "reserved_prices" it's assumed that all collected upfront costs are for multi zone & are therefore divided by 2. After fixing #1 this assumption is no longer valid - the division by 2 should be dropped.

The above is the reason for the wrong displayed RDS costs, either higher or lower than the real pricing - that's due to the location of a the single zone & multi zone SKUs within the data file - their order of appearance within the file determined which price was displayed, for which payment option.

#333 addresses this

authors: ofersapir6 powdahound skypurplecloud syquus


text:
0.9-ppc64le DinD image for build and tests

A Docker image was built using https://github.com/ppc64le-cloud/docker-ce-build/compare/main...AshwinHIBM:docker-ce-build:0.9-ppc64le?expand=1#diff-c21b6a06ad8e557007d6d6b5d01fa16331d6d42b8cece38b90d15cf05b3c18d1 and tagged 0.9-ppc64le. Update the Dockerfile here for keeping a record. Also propagate the same updates across the test Dockerfiles.
Also change CONTAINERD_BUILD to 1 so we can build Docker and containerd in one go.

LGTM
Can you add a note in the commit message about why you changed the containerd build var to 1?

LGTM Can you add a note in the commit message about why you changed the containerd build var to 1?

Thanks, added.

Rebased to include Docker build 27.1.0 and containerd v1.7.19. Hence the only changes are in the env.list file which can be seen using the Compare button above.

authors: AshwinHIBM clnperez


text:
feat: contains operator

Closes #534
This PR adds the contains operator to the list of operators. This corresponds to ArrayIncludes.
Perhaps the name contains is incorrect? maybe includes or something similar would be better. Open to feedback.

Documented the changes and made sure they build. This should be OK now?

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

Just an important note as I bumped into this just now: the minimum version of TypeORM necessary to use this functionality is 0.3.0, anything less and $contains will map to undefined instead of a function.
Perhaps this should be indicated in the readme or package.json somehow?

authors: ppetzold zkldi

repo: ppetzold/nestjs-paginate


text:
是否有人曾提过类似的问题？
否（No）
你觉得APP有什么不足之处？
建议转发模板可以加设备电量，这样就不用单独监控电量了。
你觉得该怎么去完善会比较好？【非必答】
No response

看看wiki先？
https://github.com/pppscn/SmsForwarder/wiki/附录3：自定义模板可用变量

https://github.com/pppscn/SmsForwarder/releases/tag/v3.3.0-alpha

repo: pppscn/SmsForwarder


text:
SDL prevents game launch on ubuntu 20.04

Running dotnet run -p osu.Desktop without --tk just logs
[verbose]: Unhandled exception has been denied .
and then hangs.
performance.log
runtime.log
database.log

Mind providing any more info at all? Short of trying to install 20.04 on my own and seeing if this reproduces I can do nothing at all with this report.

This was one of the platforms I was actively testing on. osu.Framework.Tests started correctly and worked as expected, so there's likely more to this.

Paused execution while it hangs, it stops on this line:
https://github.com/ppy/osu/blob/76035718bbad5e403dde85b21c74f2f721abef4b/osu.Desktop/Program.cs#L55
and the exception is
{System.DllNotFoundException: Unable to load shared library 'SDL2' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: libSDL2: cannot open shared object file: No such file or directory
   at SDL2.SDL.SDL_Init(UInt32 flags)
   at osu.Framework.Platform.SDL2DesktopWindow..ctor()
   at osu.Framework.Platform.Linux.LinuxGameHost.CreateWindow()
   at osu.Framework.Platform.GameHost.Run(Game game)
   at osu.Desktop.Program.Main(String[] args) in /home/nathan/dev/osu/osu.Desktop/Program.cs:line 55}

Setting LD_DEBUG to libs gives this as (the last part of) the output before it hangs:
     10106:     /usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.9/System.Globalization.Native.so: error: symbol lookup error: undefined symbol: GlobalizationNative_GetLocaleInfoIntW (fatal)
     10106:     /usr/share/dotnet/shared/Microsoft.NETCore.App/3.1.9/System.Globalization.Native.so: error: symbol lookup error: undefined symbol: GlobalizationNative_GetLocaleInfoGroupingSizesW (fatal)
     10106:     find library=SDL2.so [0]; searching
     10106:      search cache=/etc/ld.so.cache
     10106:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
     10106:       trying file=/lib/x86_64-linux-gnu/SDL2.so
     10106:       trying file=/usr/lib/x86_64-linux-gnu/SDL2.so
     10106:       trying file=/lib/SDL2.so
     10106:       trying file=/usr/lib/SDL2.so
     10106:
     10106:     find library=libSDL2.so [0]; searching
     10106:      search cache=/etc/ld.so.cache
     10106:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
     10106:       trying file=/lib/x86_64-linux-gnu/libSDL2.so
     10106:       trying file=/usr/lib/x86_64-linux-gnu/libSDL2.so
     10106:       trying file=/lib/libSDL2.so
     10106:       trying file=/usr/lib/libSDL2.so
     10106:
     10106:     find library=SDL2 [0]; searching
     10106:      search cache=/etc/ld.so.cache
     10106:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
     10106:       trying file=/lib/x86_64-linux-gnu/SDL2
     10106:       trying file=/usr/lib/x86_64-linux-gnu/SDL2
     10106:       trying file=/lib/SDL2
     10106:       trying file=/usr/lib/SDL2
     10106:
     10106:     find library=libSDL2 [0]; searching
     10106:      search cache=/etc/ld.so.cache
     10106:      search path=/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib              (system search path)
     10106:       trying file=/lib/x86_64-linux-gnu/libSDL2
     10106:       trying file=/usr/lib/x86_64-linux-gnu/libSDL2
     10106:       trying file=/lib/libSDL2
     10106:       trying file=/usr/lib/libSDL2

I shouldn't need to install SDL or anything right?

The binaries are bundled in SDL2-CS. Question is why is that not being picked up (native library dependencies are not transitive?)

Appears that it doesn't even search in the runtimes folder based on the LD_DEBUG log

Does libSDL2.so even have a chance to land in the runtimes folder with the current setup, though? That might be the root issue here.

Doesn't seem like it, /osu.Desktop/bin/Debug/netcoreapp3.1/runtimes/linux-x64/native only contains
libbass_fx.so  libbass.so  libe_sqlite3.so  libstbi.so

@nbvdkamp does moving the file into that path resolve your issue?

Yep, works fine after manually copying it in there.

Fixed via #4064.

authors: InfinityGhost bdach nbvdkamp peppy

repo: ppy/osu-framework


text:
Unable to build on MacOS M2

Hi, I tried to build the project on a MacBook M2 and the --release build failed. Interestingly enough, the regular cargo build works. I'm not sure what the problem is.
How to reproduce:

git clone ... the project
cargo build --release

Output:
   Compiling proc-macro2 v1.0.66
   Compiling libc v0.2.154
   Compiling unicode-ident v1.0.11
   Compiling once_cell v1.18.0
   Compiling autocfg v1.1.0
   Compiling cfg-if v1.0.0
   Compiling parking_lot_core v0.9.8
   Compiling serde v1.0.186
   Compiling lazy_static v1.4.0
   Compiling utf8parse v0.2.1
   Compiling smallvec v1.11.0
   Compiling anstyle-parse v0.2.1
error: failed to run custom build command for `parking_lot_core v0.9.8`

Caused by:
  process didn't exit successfully: `[redacted]/ra-multiplex/target/release/build/parking_lot_core-0b7f71150f9e05ed/build-script-build` (signal: 9, SIGKILL: kill)
warning: build failed, waiting for other jobs to finish...

I can't find any relevant issue in the parking_lot crate, but our version (0.9.8) is over a year old and can be upgraded. Can you try if cargo update -p parking_lot_core helps?

Could not reproduce this issue in latest ra-multiplex (0.2.5). I'd like to recommend closing the issue.

authors: pr2502 simnalamburt stanle-cs


text:
fix: Zorak Bot #161 - Bug in verification

A for loop was slowing down the command, which, when a person clicks the button 2 times fast... will throw an error.

https://github.com/practical-python-org/ZorakBot/issues/161

repo: practical-python-org/ZorakBot


text:
Is ListView implemeted?

Hello! I'm new to this wonderful project and I'm playing about to see what works and what does not.
For now, I've put this XAML:
  <ListView ItemsSource="{Binding People}" >
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <TextCell Text="{Binding Name}" />
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>

But nothing is rendered in the web browser.
I think that ListView isn't supported yet. Otherwise, how do I use it? Thank you!

It is not, see: https://github.com/praeclarum/Ooui/tree/master/Ooui.Forms/Renderers

authors: SuperJMN jamesmontemagno

repo: praeclarum/Ooui


text:
Fix publisher exchange setup

When we changed how dynamic publishers work, we somehow lost the durable=True that was applied to the exchange creation. This wasn't caught in tests because FakeAMQP ignores the durable param on exchanges.

:+1: when Travis is happy.

authors: hodgestar jerith

repo: praekelt/vumi


text:
Upstream fixes

docker-library/python#121
docker-library/python#125

:+1:, although we'll need another review if you make the change I mentioned in the comment.

repo: praekeltfoundation/docker-alpine-python


text:
Publish to group (private channel) does not work

We have a public team channel and a private group with some developers in it.
Publishing to the team channel works but publishing to the group does not.
In Slack settings on the bitbucket site I have changed the channel config from '#team-channel' to 'team-private'.
we do not get any updates to the group.

We have Bitbucket Server 4.11 and Stash2Slack 2.0.7.  We can publish to a private channel if it is the only destination specified.  If a public and private channel is specified, the message will be delivered to the public channel but not the private one.


text:
[ADD]: SINGLE PAGE RESTAURENT WEBSITE💡

Describe the project you want to add with tech stack

This project is about Restaurent Website which is an single page application.
Build with JavaScript Modules, and bundled all of them with Webpack module bundler.
Uses npm as a package manager.
This project is fully responsive for all types of devices

Screenshots (optional)

Please assign this issue to me @MohitGupta121, @pranjay-poddar, @Saurabh-kumar09.

repo: pranjay-poddar/Dev-Geeks


text:
Relaxer App

Describe the project you want to add with tech stack
This app helps to relax by telling you when to breathe in, hold and breathe out.
Used Technologies:
HTML5
CSS3
JavaScript
Expected behavior

Screenshots (optional)

Additional context (optional )

@MohitGupta121 Please assign this issue to me under GSSoC'23

@TusharKesarwani Please assign this issue to me under GSSOC'23


text:
Create  a cafe menu page

Describe the project you want to add with tech stack
I will create a menu page for a cafe using html and css.
Expected behavior
It will contain list of coffee and desserts.
Screenshots (optional)
.
Additional context (optional )

@pranjay-poddar can u please assign me this issue.


text:
Added page scroll animation

Title and Issue number

#3092

Close #3092

Video
Page Scroll.webm
Checklist:

[x] I have mentioned the issue number in my Pull Request.
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have created a helpful and easy to understand README.md

@MohitGupta121 Please review and merge


text:
[anime pics] Card styling

Anime card styling

Close #4242

Checklist:

[✅] I have mentioned the issue number in my Pull Request.
[✅] I have commented my code, particularly in hard-to-understand areas
[✅] I have created a helpful and easy to understand README.md

Before

After

@MohitGupta121  Kindly, review this please


text:
Migrate your impacted OAuth out-of-band flow to an alternative method before Oct. 3, 2022

I received an email from Google saying I "have OAuth clients that used the OAuth OOB flow in the past."
Is this something that has been or can be fixed in gdrive?

See https://github.com/msfjarvis/gdrive  or https://github.com/carstentrink/gdrive

@carstentrink Thanks for the suggestion!
I managed to compile and install https://github.com/msfjarvis/gdrive. When I run gdrive it asks to authorize by visiting a Google URL (I suppose my old .gdrive/token_v2.json doesn't work anymore). Visiting the URL I get:
Authorization Error
Error 400: invalid_request
Missing required parameter: client_id

In msfjarvis/gdrive you need to place the json file with clientId and clientSecret from https://console.cloud.google.com/ in some place (I also do not know which location to place it). Either way it will NOT work as it is NOT in production.
self advertising
Just see the README in https://github.com/carstentrink/gdrive

You need to edit the clientId and clientSecret in the file handlers_drive.go.
Then compile.

@carstentrink THANK YOU! 🙌🏻
For other dummies like myself, here's what I did:

Followed these instructions to install the latest Go (min. 1.17 required) on Ubuntu 20.04
Downloaded https://github.com/carstentrink/gdrive/archive/refs/heads/main.zip
Edited handlers_drive.go to include my credentials, as instructed in README
Executed go build
Moved the generated gdrive binary to /usr/local/bin/
Executed gdrive version for the first time to get a Verification URL and Authorization Code prompt
Visited the verification URL. Accepted the fact that gdrive isn't a 'Google approved' app. Pasted the provided Authorization Code to the prompt

@carstentrink
Please clarify. I was looking at
https://developers.google.com/identity/protocols/oauth2/resources/oob-migration#inspect-your-application-code
but the 'RedirectURL' line in auth/oauth.go is still type 'oob'.
As far as I understood this type will stop working after 3 days.
Thanks

As long as your are in Testing all is good. Do not make it to production.

See (3) in the section https://github.com/carstentrink/gdrive#important
Alternatively, you can compile https://github.com/msfjarvis/gdrive that already uses Add support for OAuth callback flow

One small change to hansgv's comment. In step 6 I executed gdrive about for the Verification URL.

Someone messed with @carstentrink code and we can't compile now.
# github.com/msfjarvis/gdrive
./handlers_drive.go:369:74: undefined: auth.AuthCodeHTTP

Please try again. I have fixed it. I am using go1.19.1 version.

Hi, I'm using a headless linux box but can't sign in to google with my user using browsh.
I tried compiling on MacOS without any errors, but got the following when trying to run the ./gdrive about command:
Failed to get about: Get "https://www.googleapis.com/drive/v3/about?alt=json&fields=maxImportSizes%2CmaxUploadSize%2CstorageQuota%2Cuser&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}

Any ideas on how to sign in?
I would like to use this in a CI system, but I think the token will keep expiring…

@juliusspencer
Do it locally then copy both linux binary and .config/gdrive/something.jsonto the remote box.

Thanks, yeah I did just that, I just need to update the variable that stores the token as it updates as the docker container overwrites it. I'm almost there.

May be this repo has some actions that are useful. https://github.com/marufshidiq/gdrive-cli-builder/blob/master/.github/workflows/build.yml

This is great, and everything works, except ~/.config/gdrive/USERNAME_v2.json is not created. I created the folder structure ~/.config/gdrive/ and then the file USERNAME_v2.json was created correctly.

authors: carstentrink hansgv jfronza juliusspencer likid olyair11

repo: prasmussen/gdrive


text:
🛑 Bangalore - Realtime Weather Stats is down

In 2820472, Bangalore - Realtime Weather Stats (https://bangalore-weather-stats.onrender.com/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Bangalore - Realtime Weather Stats is back up in 3ad32a3 after 45 minutes.

repo: prateekralhan/status


text:
scrape all hacktoberfest 2020 events

Feature ✅
Description
The script should scrape all the events from the Hacktoberfest event's website and stores them in a .CSV file.
LINK
Checklist:

[X] I have read the project guidelines.
[X] I have checked all the existing projects, before submitting a new project issue.
[X] This issue will be meaningful for the project.
[X] I will contribute more in future

I am up for this. Please assign me this task :)

@Anshul275 Mention the language

Python

@pratik-choudhari
Where to upload - in python directory or projects directory??
I am also attaching the generated csv file and screenshot of generated csv file.

@Anshul275 Place it under Projects and do not attach the CSV file it will increase the size of repo. A screenshot is enough!

repo: pratik-choudhari/AlgoCode


text:
[Issue-343] Inclusive vs. Exclusive Watermarks

Change log description

Change the code of LowerBoundAssigner so that it doesn't subtract one from the lower bound to determine the watermark
Change the test code corresponding to LowerBoundAssigner

Purpose of the change
Fix #343
What the code does
Flink treats the watermark in an inclusive manner, so the -1 subtraction should be removed to comply with that expectation.
How to verify it
./gradlew clean build should pass

The change looks good, but one question I have is with respect to documentation. Are we documenting anywhere how to use our watermarking support with Flink jobs? I ask because the important change here is the semantic one, not the code change itself, and we would need to reflect this semantic change somewhere.

Yes, we have the documentation here:
https://github.com/pravega/flink-connectors/blob/master/documentation/src/docs/streaming.md#timestamp-extraction-watermark-emission
https://github.com/pravega/flink-connectors/blob/master/documentation/src/docs/streaming.md#watermark

authors: Guangfeng-Xu crazyzhou fpj

repo: pravega/flink-connectors


text:
[core] support conditional storage

Sometimes we need to use a path to determine whether another path needs to be persisted, so I suggest to expanding the options.paths
type CheckStateProp = (store: PiniaPluginContext['store']) => boolean
type PropPath = string | [string, CheckStateProp]

...
// when use
paths: ['a', ['b', (store) => store.a === true]]

if a is true, b will persisted, otherwise not persisted b

it's all right. but I don't think it is good way. for example:
persist: [
{
  path: 'a',
  beforeRestore: () => {},
  afterRestore: () => {},
  serializer: {
    serialize: JSON.stringify,
    deserialize: JSON.parse,
  }
},
{
  path: 'b',
  persist: (store) => store.a === true,
  beforeRestore: () => {},
  afterRestore: () => {},
  serializer: {
    serialize: JSON.stringify,
    deserialize: JSON.parse,
  }
}
]

i need to pass other properties in every item.
zhuzhengshou want to to separate state values to localstorage and sessionstorage at  the same time when state change.

it's all right. but I don't think it is good way. for example:
persist: [
{
  path: 'a',
  beforeRestore: () => {},
  afterRestore: () => {},
  serializer: {
    serialize: JSON.stringify,
    deserialize: JSON.parse,
  }
},
{
  path: 'b',
  persist: (store) => store.a === true,
  beforeRestore: () => {},
  afterRestore: () => {},
  serializer: {
    serialize: JSON.stringify,
    deserialize: JSON.parse,
  }
}
]

i need to pass other properties in every item.
zhuzhengshou want to to separate state values to localstorage and sessionstorage at  the same time when state change.

hmm i see what you mean, i kinda saw a good opportunity as both feature ideas are linked to per-path config

ok i may have an exampls that could help you?
    persist: {
      serializer: {
        deserialize: JSON.parse,
        serialize: (state) => {
          const { a, b } = state
          const toStore = a ? { a, b } : { a }
          return JSON.stringify(toStore)
        }
      }
    },

You can use the serializer to define conditions for elements to be persisted or not. I think that's the best way to do it without adding "too much" to the plugin :)
Let me know if that helped

ok i may have an exampls that could help you?
    persist: {
      serializer: {
        deserialize: JSON.parse,
        serialize: (state) => {
          const { a, b } = state
          const toStore = a ? { a, b } : { a }
          return JSON.stringify(toStore)
        }
      }
    },

You can use the serializer to define conditions for elements to be persisted or not. I think that's the best way to do it without adding "too much" to the plugin :)
Let me know if that helped

yes, it works. but if i need to use custom serializer to do some complex questions, I prefer write a local pinia plugin to do this.

You can always define an external function that returns the state to store from the current state, and have concerns separated this way.

Closing this as it has a workaround, and probably won't see an implementation in the current situation. Feel free to propose new stuff :)

authors: prazdevs wxhccc

repo: prazdevs/pinia-plugin-persistedstate


text:
Needs better documentation

Great tool but the documentation is too thin. Better documentation would help more developers use this tool more easily. Specifically, instead of just listing all the props and values returned by TransformWrapper, it'd be much more helpful to explain them and their proper usage, with example code. Another complete example app, with lots of commenting, would also help.
Thank you!

I second this. An example is something like positionX or defaultPositionX. if I set that to 0, where am I being positioned?

Yeah, basic things like how to call zoomIn() or setTransform() from outside of the TransformWrapper really need to be documented

@InfamousStarFox
Hi, do you know how to address blow issue?
https://github.com/prc5/react-zoom-pan-pinch/issues/182
I am facing the problem you mentioned in your comment and I asked if you know how.

authors: InfamousStarFox JamesTheBald cdutson gu-ru


text:
Consider implementing untrack or allow value updates without subscribing

Since accessing .value of a signal subscribes to any future updates, this can cause some unwanted rerunning of effects/infinite render loops.
I think it would be a good idea to implement a way to read and update the value without triggering a subscription. One way to solve this would be with something like untrack. This would be a function similar to effect:
effect(() => {
  const value = signal1.value                      // Triggers reactivity when signal1 changes
  untrack(() => signal2.value += value)     // Updates signal2, but does not trigger when signal2 changes
})

The other way I can think of is by adding a update function to a signal:
effect(() => {
  signal2.update((s2) => s2 + signal1.value) // signal1 triggers effect, but signal2 doesn't
})

Would .peek() help here? https://github.com/preactjs/signals#signalpeek

@jviide peek is used for reading a signals value without subscribing to it. I'm proposing a way to update a signals value without subscribing to it.

Ah, right. Effects shouldn't subscribe to signals whose values are only set inside the effect - so for example in this example the effect does subscribe to a but not b:
const a = signal(0);
const b = signal(0);

effect(() => {
  b.value = a.value;
});

However, there are some patterns that kinda look like only updates, but actually access the value too. I've been bit several times by the fact that the effect does subscribe to a here:
const a = signal(0);

effect(() => {
  a.value++; // equal to a.value = a.value + 1, so the `a.value` is also read and therefore subscribed
});

@jviide You were right. That did indeed fix the issue I was having. I guess that's what I get for just skimming through the docs.

Awesome that it got solved 👍

authors: dminikm jviide

repo: preactjs/signals


text:
Unmounting throws in SSR

When used with preact-render-to-string and unmounting a vnode it throws here: https://github.com/preactjs/signals/blob/322371b58af4519f3e0a3c8d3896566543acee85/packages/preact/src/index.ts#L255 because __e is null.
Noticed that another hook checks to see if it exists: https://github.com/preactjs/signals/blob/322371b58af4519f3e0a3c8d3896566543acee85/packages/preact/src/index.ts#L175
So I'm guessing the problem is just with the unmount hook?

@matthewp Thanks for reporting this issue. We'll cut a new release in a bit.

@matthewp Alright, fix is published as @preact/signals v1.1.1

Thank you @marvinhagemeister and @JoviDeCroock !

authors: marvinhagemeister matthewp


text:
Question on "package-lock.json"

Hello,
Shouldn't this file be added to .gitignore?
I can take care of the pull request if needed, just like https://github.com/prebid/prebid.github.io/pull/3203!
Cheers,
Flo

Hi @FlorentDancy
So we do want to make sure and have this file included in our repo because it allows for fine-grained dependency adjustments. Node kinda handles dependencies in a unique way by duplicating the entire dependency tree for each package even if they rely on the same package. So we update that file with things like dependeny based vulnerability warnings and other dependency of a dependency things.

Thanks for the explanation @ChrisHuie!
I was asking because the file was updated when I ran npm install on my machine, and I didn't want to include it in my commit, so I figured I wasn't the first to experience this.
Adding package_lock.json to .gitignore wouldn't remove the file from the repo though, it would just prevent folks running npm install to have to deal with diffs on this specific file while they actually wanted to work on something else.
Plus, even when a file is in the .gitignore, edits can be performed thanks to commands like git add --force my/ignore/file.foo, which could be run by the person who is actually working on this file.
What do you think?

@FlorentDancy So in the prebid.js repo we actually recommend using npm ci instead of install. The difference is install builds the package-lock file off of the package.json. However, using npm ci actually builds off of that package-lock file that is uploaded.

Oh OK, I didn't know about this command and what it does exactly, thanks Chris!
It makes sense then because when running npm ci your package-lock.json isn't updated, so nothing changes from a git standpoint.
For info I had run npm install because I followed the instructions in the README.md: https://github.com/prebid/prebid.github.io/blob/master/README.md#prerequisites
Should we make more explicit there that one should use npm ci instead?

@FlorentDancy if you think npm ci vs npm install could be more clear would appreciate a pr :) I think the only place that exists is in the readme file so there could probably be a doc update somewhere that would help.

@ChrisHuie I just created the PR, is that OK for you? :)

authors: ChrisHuie FlorentDancy


text:
Question - It's possible to extract pages and text from the pdf?

Hello, I am trying your library buy I can't extract text from the pdf pages.
With python pypdf and same pdf I can extract the text.
Is this function possible with the current version of the library?
Thanks!

This library is only for getting metadata with regex out of PDFs.
This is useful if the parsing of the PDF failed with other tools, or if you want to see all historic metadata
due to multiple updates to the PDF.
You need to use other tools to get text out of the pages.

Thanks @preciz !

authors: JuanjoA preciz


text:
Main branch hardcoded in the action

Motivation
The action should not have the "main" branch hardcoded in the action, instead it should use the "default" branch of the repository.
Acceptance criteria

[ ] The default branch is obtained and used to create the PR

Tested here https://github.com/prefapp/test-action/actions/runs/4144572520

repo: prefapp/action-state-repo-update-image


text:
Multiple conflicting documentation on cache

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
Documentation issue.
Issue description
The cache of packages is described in two places, and they seem to contain contradicting informations:

https://pixi.sh/latest/advanced/explain_info_command/#cache-dir  (That is what you find as first result if you look for cache in the search bar, at least for me)
https://pixi.sh/latest/environment/#caching (third result, even if it also specify the env variables to set to re-configure it)

Expected behavior
I would expect the default location of the directory be consistent across the docs, and eventually have a cross-link among the related docs. I thought of doing that myself in a PR, but I was not super sure about the best way to proceed.

I also noticed that at least for me on Windows with pixi 0.18, the default cache dir is not the documented one:
C:\Users\straversaro>pixi info
      Pixi version: 0.16.1
          Platform: win-64
  Virtual packages: __win=0=0
                  : __cuda=12.3=0
                  : __archspec=1=x86_64
         Cache dir: C:\Users\straversaro\AppData\Local\rattler/cache
      Auth storage: C:\Users\straversaro\.rattler\credentials.json

C:\Users\straversaro>echo %APPDATA%\rattler
C:\Users\straversaro\AppData\Roaming\rattler

repo: prefix-dev/pixi


text:
Allow disambiguation when packages are present in multiple channels

Problem description
It can happen that the same package name is available in multiple channels. Example: tsv-utils is in both conda-forge and bioconda.
Is there a way to tell pixi which one to use? I tried "bioconda::tsv-utils" which conda supports but doesn't seem to work here:
    ╭─[pixi.toml:13:1]
 12 │ cowpy = ">=1.1.5,<1.2"
 13 │ "bioconda::tsv-utils" = ">=2.2.0,<2.3"
    · ──────────┬──────────
    ·           ╰── 'bioconda::tsv-utils' is not a valid package name. Package names can only contain 0-9, a-z, A-Z, -, _, or .
 14 │
    ╰────

Is there a different way?
It seems that you use strict channel priority and don't allow a way to override it for individual packages?

Yes, you can specify channels for individual packages. To make it work, the new channel also must be added to the channels list.
[project]
channels = ["conda-forge", "bioconda"]

[dependencies]
cowpy = ">=1.1.5,<1.2"
tsv-utils" = {version = ">=2.2.0,<2.3", channel = "bioconda"}

More info here: https://pixi.sh/latest/advanced/channel_priority/ (in particular, see the example).

For those finding this Issue, @Yura52 is correct!
You can do this through the cli with:
pixi project channel add bioconda
pixi add bioconda::tsv-utlils

Excellent, thanks for explaining how to do this @Yura52 and @ruben-arts!

authors: Yura52 corneliusroemer ruben-arts


text:
Cannot run pixi shell in a Gitlab CI

Checks

[X] I have checked that this issue has not already been reported.

[X] I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example
pixi shell

or
pixi shell --color never --no-progress

Issue description
Trying to run pixi shell in a shell runner of a GitLab CI instance I get this error:
Error starting shell: Not a tty (os error 25)

I"m trying to replace conda activate ... which always worked fine here.
What is the proper way to run pixi in a CI type environment?
Expected behavior
Would like to be able to activate a pixi environment in a CI environment (i.e., what is the replacement for conda activate that works here).

I though maybe:
pixi run --environment ./my_env ./script_i_want_to_run.sh

might do it. But I get:
could not find pixi.toml or pyproject.toml which is configured to use pixi

So I guess that only works after calling pixi shell? That's not clear from the documentation.

So I would need:
pixi run --environment ./my_env --manifest-path ./my_env/pixi.toml ./script_i_want_to_run.sh

Does --environment not imply that's the environment I want to use?

I dont think you need to specify --environment unless you have alternative environments setup in you pixi.toml

Thanks! This works:
pixi run --manifest-path ./my_env/pixi.toml ./script_i_want_to_run.sh

I was confused by the environment flag. Although, honestly, I think a user coming from conda would expect that --environment ./my_env would do what I was expecting...

I also encountered the Error starting shell: Not a tty (os error 25) issue when starting pixi shell in an HPC job to start a jupyterlab instance! I was also confused by the --environment flag and didn't know what to do until I found this issue...
Luckily, using the --manifest-path flag resolved things on my end to run jupyter in my project! Thanks @jacobwilliams!
However, I'm still confused as to why the pixi.toml or pyproject.toml files can't be recognized after running pixi shell within my job? Things do work properly in interactive jobs versus sbatch scripts.

In a non interactive way you should be able to run something like eval $(pixi shell-hook) to make the environment activated in your current shell. Does that work @mragsac?

In a non interactive way you should be able to run something like eval $(pixi shell-hook) to make the environment activated in your current shell. Does that work @mragsac?

Whoops! Yes, using eval $(pixi shell-hook) works for me! Thanks so much!

authors: baszalmstra jacobwilliams mragsac wolfv


text:
Basic ltree query support

Added support for quering ltree columns.
closes #554

@arxdsilva
I'm trying to run the tests with
go test -v ./adapters/postgres -run TestWhereByRequest

But I'm getting:
go test -v ./adapters/postgres -run TestWhereByRequest
2022/12/27 22:15:33 [error] pq: SSL is not enabled on the server
FAIL	github.com/prest/prest/adapters/postgres	0.008s
FAIL

Not sure if the [error] is fatal or if it's hiding what is going on...

Appreciate any tips to run the tests locally.

Found it. It's clear that I'm not a strong reader https://github.com/prest/prest#run-locally :joy:

These are the simplest operators regarding ltrees, probably the others are better implemented using custom queries.

LGTM! 😉

Done. Added the parameters to the docs.
Let me know if there is something else to add...

Thanks @diasbruno

authors: avelino diasbruno vmesel

repo: prest/prest