Document AssetBundle loadString Decoding Behavior

Documents how AssetBundle.loadString behaves in terms of decoding the loaded strings.
Fixes #6723 and also documents the isolate behavior since I figured this would be useful. We can also remove that section if it is too much of an implementation detail.
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt.
[x] All existing and new tests are passing.

@Hixie test-exempt? (:

test-exempt: only affects comments


Optional token?

I'm trying to write a parser for a SemVer string that might or might not end in -SNAPSHOT.
How can I tell Parsus that the token is optional?
Currently I get an exception, because the SNAPSHOT token parser is mandatory.
import me.alllex.parsus.parser.*
import me.alllex.parsus.token.literalToken
import me.alllex.parsus.token.regexToken

fun main() {
  println(SemVerParser.parseEntireOrThrow("1.2.3-SNAPSHOT")) // Success ✅
  // prints: 1.2.3-SNAPSHOT
  println(SemVerParser.parseEntireOrThrow("1.2.3")) // ERROR ❌
  // Exception in thread "main" ParseException(MismatchedToken(expected=LiteralToken('-'), found=TokenMatch(token=Token(EOF), offset=5, length=1)))

}

private object SemVerParser : Grammar<SemVer>() {
  private val dotSeparator by literalToken(".")
  private val dashSeparator by literalToken("-")

  /** Non-negative number that is either 0, or does not start with 0 */
  private val number: Parser<Int> by regexToken("""0|[1-9]\d*""").map { it.text.toInt() }

  private val snapshot: Parser<Boolean> by -dashSeparator * literalToken("""SNAPSHOT""")
    .map { it.text == "SNAPSHOT" }

  override val root: Parser<SemVer> by parser {
    val major = number()
    dotSeparator()
    val minor = number()
    dotSeparator()
    val patch = number()
    val snapshot = snapshot() // how can I make this optional?
    SemVer(
      major = major,
      minor = minor,
      patch = patch,
      snapshot = snapshot,
    )
  }
}

private data class SemVer(
  val major: Int,
  val minor: Int,
  val patch: Int,
  val snapshot: Boolean,
) {
  override fun toString(): String =
    "$major.$minor.$patch" + if (snapshot) "-SNAPSHOT" else ""
}

You can either directly use poll / tryOrNull functions in the root parser:
val snapshot = tryOrNull(snapshot) ?: false

I found it out, there's an optional() function.
private object SemVerParser : Grammar<SemVer>() {
  private val dotSeparator by literalToken(".")
  private val dashSeparator by literalToken("-")

  /** Non-negative number that is either 0, or does not start with 0 */
  private val number: Parser<Int> by regexToken("""0|[1-9]\d*""").map { it.text.toInt() }

  private val metadata by optional(-dashSeparator * regexToken(""".+"""))
    .map { it?.text ?: "" }

  override val root: Parser<SemVer> by parser {
    val major = number()
    dotSeparator()
    val minor = number()
    dotSeparator()
    val patch = number()
    val metadata = metadata()
    SemVer(
      major = major,
      minor = minor,
      patch = patch,
      snapshot = metadata == "SNAPSHOT",
    )
  }
}

An example in the README would be appreciated 🙏

There are many ways you can go about this.
The most concise is to use the unaryPlus on the parser:
val snapshot = +snapshot // returns Boolean

This is a shorthand for the checkPresent(snapshot) function.
You could also use the nullable combinators for optional tokens: poll / tryOrNull
val snapshot = tryOrNull(snapshot) ?: false

And there is also optional combinator that you could you when defining the snapshot parser itself.

Oh, great, you found it already!
I will try to improve the readme in this regard. Thanks for the idea!
Note that the grammar in your last comment would also parse strings like 1.2.3-BLAH. It may depend whether this is something you want to support.


Command failed

Types of Changes
What types of changes does your issue require? Put an x in all the boxes that apply:

[ ] feat: A new feature
[X] fix: A bug fix
[ ] docs: Documentation only changes
[ ] style: Changes that do not affect the meaning of the code
[ ] refactor: A code change that neither fixes a bug or adds a feature
[ ] perf: A code change that improves performance
[ ] test: Adding missing tests
[ ] chore: Changes to the build process or auxiliary tools/libraries

Description
ImageOptim-CLI crashes when attempting to convert PNGs.
i Running ImageOptim...
! Command failed: /Applications/ImageOptim.app/Contents/MacOS/ImageOptim /var/folders/kx/vn33mmld5bn_hf56pzh83zy80000gn/T/imageoptim-cli
! Please raise an issue at https://github.com/JamieMason/ImageOptim-CLI/issues
Error: Command failed: /Applications/ImageOptim.app/Contents/MacOS/ImageOptim /var/folders/kx/vn33mmld5bn_hf56pzh83zy80000gn/T/imageoptim-cli

    at makeError (/usr/local/Cellar/imageoptim-cli/2.0.4/libexec/dist/imageoptim:10248:9)
    at Promise.all.then.arr (/usr/local/Cellar/imageoptim-cli/2.0.4/libexec/dist/imageoptim:10352:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Convert PNGs.

Related Issue

Suggested Solution

Getting similar (Mojave?):
i Running ImageOptim...
! spawn /Applications/ImageOptim.app/Contents/MacOS/ImageOptim ENOENT
Error: spawn /Applications/ImageOptim.app/Contents/MacOS/ImageOptim ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:217:19)
at onErrorNT (internal/child_process.js:394:16)
at process._tickCallback (internal/process/next_tick.js:174:19)

@glosik it looks like you have not installed https://imageoptim.com/mac?
@aforeman I've not been able to reproduce this and optimised a PNG just now without issue. Please could you add more information, such as what options you passed when running imageoptim cli.
$ imageoptim --imagealpha '~/Desktop'
i Running ImageAlpha...
i Running ImageOptim...
✓ /Users/foldleft/Desktop/Screen Shot 2018-12-23 at 17.23.16.png was: 123kB now: 37.1kB saving: 85.5kB (69.77%)
✓ TOTAL was: 123kB now: 37.1kB saving: 85.5kB (69.77%)
✓ Finished


Set a preferred path where to export annotations file

Is your feature request related to a problem? Please describe.
Whenever I export my annotation data as a JSON file, it saves it automatically to my "Downloads" folder.
Describe the solution you'd like
I would like to be able to specify a preferred path where to save it, that LS will remember, and that can be set differently depending on the annotation project, so that I don't have to manually cut and paste the file from "Downloads" afterward. It's not much but it would be really neat.
Describe alternatives you've considered
Manual cut and past from "Downloads".
Additional context
N/A

Hello Antoine,
Currently, Label Studio does not provide an out-of-the-box option to specify a preferred path for saving exported JSON files on a per-project basis. When you download the exported JSON file, it is saved to your browser's default download location, which is typically the "Downloads" folder.
However, you could also change where your browser downloads, that could work for your case.


Convert to libtorch

Require porting to a console program in pure C++
Conversion to torchscript
Test
Demo
Train

Postponing.


contrail-proxy address is None

Contrail deployment failed in contrail-proxy.  Details below.
contrail-haproxy/0            error        idle       21/lxd/2  <IP_ADDRESS>                        hook failed: "reverseproxy-relation-changed"
2019-06-14 04:54:48 INFO juju-log reverseproxy:265: enable_monitoring must be set to true for metrics
2019-06-14 04:54:48 DEBUG reverseproxy-relation-changed [ALERT] 164/045448 (36184) : parsing [/etc/haproxy/haproxy.cfg:31] : 'server contrail-analytics-0' : could not resolve address 'None'.
2019-06-14 04:54:48 DEBUG reverseproxy-relation-changed [ALERT] 164/045448 (36184) : Failed to initialize server(s) addr.
2019-06-14 04:54:48 INFO juju-log reverseproxy:265: HAProxy configuration check failed, exiting.
2019-06-14 04:54:48 ERROR juju.worker.uniter.operation runhook.go:132 hook "reverseproxy-relation-changed" failed: exit status 1

looks the same reason as #72
please provide options from bundle that are related to controller and haproxy.


Client network and/or connection timeout is smaller than requested timeout_s. This may cause unexpected behavior.

Is your feature request related to a problem? Please describe.
i get this warning,can we provide a parameter to slience this warning,really annoying.

Hi, we plan to review codes for such warning and switch to warnings package. This way it can be selectively filtered + if needed still captured by logging.

Hi, we plan to review codes for such warning and switch to warnings package. This way it can be selectively filtered + if needed still captured by logging.

get it


settings.json ignored

Whatever I put inside the settings.json file, it does not change any behaviour of the plugin. Right now I have this at the top of my settings.json file:
{
  "ep_webrtc" : {
   "enabled": false,
    "audio" : {
        "disabled": "none"
    },
    "video" : {
        "disabled": "hard"
    }
},
  /*
   * Name your instance!
   */
  "title": "Etherpad",

But nevertheless the plugin still gets started with both audio and video.
Do I have to put the key into some deeper configuration key?

cc @orblivion

My guess was going to be something about where within the file you put it,
but it works for me at the top of the file.
Did you make sure to restart the etherpad server after changing your
settings file? That's all I can really think of.

Unable to reproduce. There have been some changes to settings processing recently, so if there was a problem it is likely fixed.


vocms0310 and vocms0311 JobTracker

Earlier today:
https://its.cern.ch/jira/projects/CMSCOMPPR/issues/CMSCOMPPR-746?filter=allopenissues
Than just now:
2017-03-21 02:18:59,967:139708978120448:INFO:Harness:>>>Terminating worker threads
2017-03-21 02:19:00,013:139708978120448:ERROR:BaseWorkerThread:Error in event loop (2): <WMComponent.JobTracker.JobTrackerPoller.JobTrackerPoller instance at 0x7f10888b9c68> JobTrackerException
Message: Unknown exception in JobTracker!
(DatabaseError) ORA-01555: snapshot too old: rollback segment number 33 with name "_SYSSMU33_3830921375$" too small
None None
ModuleName : WMComponent.JobTracker.JobTrackerPoller
MethodName : algorithm
ClassInstance : None
FileName : /data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMComponent/JobTracker/JobTrackerPoller.py
ClassName : None
LineNumber : 91
ErrorNr : 0
Traceback:
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMComponent/JobTracker/JobTrackerPoller.py", line 80, in algorithm
self.trackJobs()
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMComponent/JobTracker/JobTrackerPoller.py", line 112, in trackJobs
completeJobs = self.bossAir.getComplete()
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/BossAir/BossAirAPI.py", line 609, in getComplete
completeRunJobs = self._listRunJobs(active=False)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/BossAir/BossAirAPI.py", line 193, in _listRunJobs
transaction=self.existingTransaction())
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/BossAir/MySQL/LoadComplete.py", line 57, in execute
transaction = transaction)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/Database/DBCore.py", line 150, in processData
returnCursor=returnCursor)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/Database/DBCore.py", line 71, in executebinds
result.add(resultProxy)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/Database/ResultSet.py", line 38, in add
for r in resultproxy:
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 549, in iter
row = self.fetchone()
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 826, in fetchone
self.cursor, self.context)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1116, in _handle_dbapi_exception
exc_info
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 189, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 817, in fetchone
row = self._fetchone_impl()
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/result.py", line 734, in _fetchone_impl
return self.cursor.fetchone()
Backtrace:
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/WorkerThreads/BaseWorkerThread.py", line 205, in call
raise ex
2017-03-21 02:19:00,013:139708978120448:INFO:BaseWorkerThread:Worker thread <WMComponent.JobTracker.JobTrackerPoller.JobTrackerPoller instance at 0x7f10888b9c68> terminated

vocms0311 component log:
ModuleName : WMComponent.JobTracker.JobTrackerPoller
MethodName : algorithm
ClassInstance : None
FileName : /data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMComponent/JobTracker/JobTrackerPoller.py
ClassName : None
LineNumber : 91
ErrorNr : 0

Traceback:
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMComponent/JobTracker/JobTrackerPoller.py", line 80, in algorithm
self.trackJobs()
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMComponent/JobTracker/JobTrackerPoller.py", line 112, in trackJobs
completeJobs = self.bossAir.getComplete()
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/BossAir/BossAirAPI.py", line 609, in getComplete
completeRunJobs = self._listRunJobs(active=False)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/BossAir/BossAirAPI.py", line 193, in _listRunJobs
transaction=self.existingTransaction())
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/BossAir/MySQL/LoadComplete.py", line 57, in execute
transaction = transaction)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/Database/DBCore.py", line 150, in processData
returnCursor=returnCursor)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/Database/DBCore.py", line 63, in executebinds
resultProxy = connection.execute(s)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 719, in execute
return self._execute_text(object, multiparams, params)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 868, in _execute_text
statement, parameters
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 954, in _execute_context
context)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1116, in _handle_dbapi_exception
exc_info
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 189, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 947, in _execute_context
context)
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/external/py2-sqlalchemy/0.9.6-comp3/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 435, in do_execute
cursor.execute(statement, parameters)
Backtrace:
File "/data/srv/wmagent/v1.1.0.patch2/sw/slc6_amd64_gcc493/cms/wmagent/1.1.0.patch2/lib/python2.7/site-packages/WMCore/WorkerThreads/BaseWorkerThread.py", line 205, in call
raise ex
2017-03-21 01:54:57,956:139855399515904:INFO:BaseWorkerThread:Worker thread <WMComponent.JobTracker.JobTrackerPoller.JobTrackerPoller instance at 0x7f32a85fe200> terminated

Sigh, I've never seen this issue before. I wonder if it's related to the oracle cluster move...
Please report if it happens again.

Those nodes don't even exist anymore, and I haven't seen issues with JobTracker for quite some time now. Closing this issue. Scarlet, please reopen it if you have spotted such issues recently.


Fix mountpath for cassandra

/assign @aledbf

/ok-to-test

@idvoretskyi can you please add /ok-to-test. Thanks!

/ok-to-test


Is this repo dead?

Seems like it hasn't been worked on for a while, and compiling fails at the stage of pulling deps even...
Maybe it would be a good idea to archive it with a message re-directing users to another source? Would help to avoid confusion - thanks!
@zhenfeizhang

It is still be used by some earlier version of the scroll prover.
It is no longer maintained as newer version of the prover will use snark-verifier.
Will archive this repo once the old provers are rotated out.

ok thanks! Just out of curiosity, how are you using this code if it's not even finding its dependencies?

you prob want to use https://github.com/scroll-tech/halo2-snark-aggregator/tree/scroll-dev-0220
it compiles on my local machine

Ah gotcha, thanks!

@zhenfeizhang this actually fails locally for me (sorry I only just tried it now). Are you perhaps patching any further dependencies?


Create Nightly GA Action CI pipeline that runs cargo audit (sway)

Closing as this has since been added for the repo.
Find the workflow here:
https://github.com/FuelLabs/sway/blob/master/.github/workflows/nightly-cargo-audit.yml
Find the nightly results here:
https://github.com/FuelLabs/sway/actions/workflows/nightly-cargo-audit.yml


Update packages for 0.12 release

mergin my own PR :smile:

nice, thanks for making this usable! 😃


bug: License not specifying authors and project's information

Did you check docs and existing issues?

[X] I have read all the tokyonight.nvim docs
[X] I have searched the existing issues of tokyonight.nvim
[X] I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)
no need
Operating system/version
no need
Describe the bug
while exploring the project's files i noticed that the License is still the template and does not display the Author nor year.
Steps To Reproduce

Go to LICENSE file
Scroll down
See the APPENDIX

Expected Behavior
Should have changed the info.
Hope that helps
Repro
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/tokyonight.nvim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

And why would this be needed?

Including the name and year of the copyright owner directly in the license text rather than relegating it to an appendix paragraph offers several advantages. Firstly, it enhances legal clarity by explicitly stating the ownership and copyright terms within the core license document, eliminating the need for users to refer to additional sections for this critical information. Secondly, it aligns with standard practices in open-source licensing, contributing to consistency and interoperability across projects. Moreover, it reinforces the copyright assertion, making it easier to enforce copyright claims and deter unauthorized use.
By incorporating these details into the license text itself, the licensing terms become more accessible and transparent, benefiting both the licensor and licensees.

@MorganKryze You really had to ask ChatGPT?

I indeed used ChatGPT to format my response, is that really relevant to you?
Maybe I misunderstood, but it seems to be a good practice to fill the year and author name since GitHub lets you review after choosing a template for example.
I am not experienced so I may totally be wrong, just trying to help here.


[AUTOMATE-2614] Add API documentation for IAM policy

:nut_and_bolt: Description: What code changed, and why?
Added API documentation for policy.proto.
:athletic_shoe: How to Build and Test the Change
cd components/autoamte-chef-io

### if you need to install stuff
brew install hugo
brew tap go-swagger/go-swagger && brew install go-swagger
brew install jq

make sync_swagger_files && make serve

Go to http://localhost:1313/docs/api/#tag/Policies
:white_check_mark: Checklist

[x] I have read the CONTRIBUTING document.
[ ] Tests added/updated?
[x] Docs added/updated?
[x] All commits have been signed-off for the Developer Certification of Origin.

since #2845 merged we will want to make sure the actions are added to this before merging

@susanev @tylercloke I rebased, but the file count looks really off. I have all my changes locally, so it is OK to roll back to a state before any of my commits.

@msorens will add a commit to indicate what fields are required when time allows

@kagarmoe required fields are now labeled, please let us know if you need us to do anything else or if you have any more questions

closing in favor of #2982


[BUG] mkdocs minify plugin is broken after upgrade to mkdocs-static-i18n=="0.30"

Today I've tried to upgrade this plugin from "0.20" to the latest version "0.41" but recognize that afterwards the out styling is back to materials standard settings.
I've found that this behavior started with "0.30" and only if we have the minify-plugin=="0.5.0" enabled (page contain links to the not minified version of css/js files).
I've quickly checked the code changes, but my knowledge ends here.
I've only changed this plugin so I would like to ask here: Did I miss something or is this a bug?

@lasat hi, thanks for reporting this.
It's impossible for me to understand exactly your problem without a way to reproduce it. Is there a public repo I could clone? Could you do before/after screenshots or page code differences maybe?
I'll try to spend 15min on it by myself but I'm not sure to know what I'm looking for exactly sorry.

Hi @ultrabug, sorry for not  being clear enough and waste your time.
Please see https://github.com/lasat/mkdocs-static-i18n_minify where I demonstrate the problem

version 0.44 is out mate, enjoy


Minor Overhaul

I would suggest that the best way to review this is to take a quick look at the diff & then pull it down and run it locally.

Rustdocs should point to substrate.dev/rustdocs
Minor structural changes to reinforce latest DevHub POV

@JoshOrndorff - I don't really think this PR makes the jump of versioning the Knowledge Base, so to speak. The Knowledge Base will still be on a floating version ("the latest released version"), which is just a little more stable than pinning to master. I think in general we should think pretty specifically about only supporting released versions of Substrate.


Ubuntu package on Debian

https://github.com/Graylog2/graylog2-ansible-role/blob/master/defaults/main.yml#L3 defines the Ubuntu package for Debian too.
Correct URL:
https://packages.graylog2.org/repo/packages/graylog-1.0-repository-debian7_latest.deb

Fixed in latest release


multiple grammars for the same language

Does this issue occur when all extensions are disabled?: N/A. It is an issue with the VSCode API
There are a few languages (within the set of extensions that ship with VSCode by default) that define multiple grammars (with different scopeName) for the same languageId. Examples include the cpp and php extensions.
https://github.com/microsoft/vscode/blob/3718ef05565efeb27e7ee29e50ee77fc82458bb0/extensions/cpp/package.json#L72-L81
https://github.com/microsoft/vscode/blob/3718ef05565efeb27e7ee29e50ee77fc82458bb0/extensions/php/package.json#L34-L42
In this case, it is not clear which grammar file would win. I could not find any errors/warnings related to it either.
For example, if a document is matched to the cpp language (based on uri extension), which scopeName would be used to colorize?

Is it by precedence? doesn't look like it, as the two examples are in different order.
Is it a different logic? does the matching to a specific scope name happen via a different look up?
Is it a bug? happy to help fix, but would love to confirm that is the case first.

Is it a different logic? does the matching to a specific scope name happen via a different look up?

My understanding is that this is that the matching happens via a different lookup. Example:
For php files VS Code sets the scope to be source.php. This is probably what you would expect.
In HTML files, the HTML grammar has some places where it sets the scope to text.html.php.


2.4 brew deployment not working under Sequoia 15.0.1

Version 2.4, installed via brew, doesn’t seems to be working with Sequoia 15.0.1.
I’m pretty sure it was working under Sequoia 15.0.
Tried uninstalling and reinstalling via brew (brew install --cask webviewscreensaver --no-quarantine), but no change.
Symptoms are:
It can be configured and appears to function in all ways except for actually rendering any page when activated via system screensaver or via the ‘eye’/preview button to the left of the URL in the options field.
Here’s a copy of my .plist:
{
  "kScreenSaverFetchURLs" => 0
  "kScreenSaverURLList" => [
    0 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "https://ground.news"
    }
    1 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOm51bGwsImNlbnRlciI6Wy05NSwzN10sImxvY2F0aW9uIjpudWxsLCJ6b29tIjo0fSwiYW5pbWF0aW5nIjp0cnVlLCJiYXNlIjoic3RhbmRhcmQiLCJhcnRjYyI6ZmFsc2UsImNvdW50eSI6ZmFsc2UsImN3YSI6ZmFsc2UsInJmYyI6ZmFsc2UsInN0YXRlIjpmYWxzZSwibWVudSI6dHJ1ZSwic2hvcnRGdXNlZE9ubHkiOmZhbHNlLCJvcGFjaXR5Ijp7ImFsZXJ0cyI6MC44LCJsb2NhbCI6MC42LCJsb2NhbFN0YXRpb25zIjowLjgsIm5hdGlvbmFsIjowLjZ9fQ%3D%3D"
    }
    2 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOiJ3ZWF0aGVyIiwiY2VudGVyIjpbLTg3Ljc2OCw0MS45MzhdLCJsb2NhdGlvbiI6Wy04Ny43NjgsNDEuOTM4XSwiem9vbSI6NywibGF5ZXIiOiJicmVmX3FjZCJ9LCJhbmltYXRpbmciOmZhbHNlLCJiYXNlIjoic3RhbmRhcmQiLCJhcnRjYyI6ZmFsc2UsImNvdW50eSI6ZmFsc2UsImN3YSI6ZmFsc2UsInJmYyI6ZmFsc2UsInN0YXRlIjpmYWxzZSwibWVudSI6dHJ1ZSwic2hvcnRGdXNlZE9ubHkiOmZhbHNlLCJvcGFjaXR5Ijp7ImFsZXJ0cyI6MC44LCJsb2NhbCI6MC42LCJsb2NhbFN0YXRpb25zIjowLjgsIm5hdGlvbmFsIjowLjZ9fQ%3D%3D"
    }
    3 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "https://www.weather.gov/erh/ghwo?wfo=lot"
    }
    4 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "https://radar.weather.gov/?settings=v1_eyJhZ2VuZGEiOnsiaWQiOiJsb2NhbCIsImNlbnRlciI6Wy04OC4yNCwzMC42NzldLCJsb2NhdGlvbiI6bnVsbCwiem9vbSI6NywiZmlsdGVyIjoiV1NSLTg4RCIsImxheWVyIjoic3JfYnJlZiIsInN0YXRpb24iOiJLTU9CIn0sImFuaW1hdGluZyI6dHJ1ZSwiYmFzZSI6InN0YW5kYXJkIiwiYXJ0Y2MiOmZhbHNlLCJjb3VudHkiOmZhbHNlLCJjd2EiOmZhbHNlLCJyZmMiOmZhbHNlLCJzdGF0ZSI6ZmFsc2UsIm1lbnUiOnRydWUsInNob3J0RnVzZWRPbmx5Ijp0cnVlLCJvcGFjaXR5Ijp7ImFsZXJ0cyI6MC44LCJsb2NhbCI6MC42LCJsb2NhbFN0YXRpb25zIjowLjgsIm5hdGlvbmFsIjowLjZ9fQ%3D%3D"
    }
    5 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "/Users/joechap/scripts/SWPC-solar.html"
    }
    6 => {
      "kScreenSaverTime" => 90
      "kScreenSaverURL" => "https://nasstatus.faa.gov/list"
    }
  ]
}

No issues on my end running 15.0.1 or M3.
Can you open Console.app and look for Crash Reports and/or do a log filter WebViewScreenSaver while trying this out.
See if anything stands out?


Release v1.0.18

Part of release process.

checked only the Windows build and besides the remaining doubts (asked on Slack), the basic functions work well. Also VirusTotal clear for Win


Generics not detected in framework code

I can't seem to get generics working in my framework project which pulls a dependency on Bolts.
The following error keeps coming up while compiling:
”Error:(17, 35) cannot specialize non-generic type 'BFTask'”
I've tried setting the iOS Deployment Target to iOS to ensure generics are supported in the minimum SDK level but still no luck. Any thoughts?
Note this seems to work just fine in the application project, it's only the framework project (which is a seperate .xcworkspace) that has this issue.

Huh, this is strange, as it should be supported everywhere.
Are you using class-forwarding aka @class BFTask; by any chance?
If yes - please note that forwarding should also include a generic declaration.
Something like @class BFTask<BFGenericType>;

Using pure Swift not Obj-C, so no @class forwarding involved.

Swift and objective-c generics are not compatible with each other, and so generic objective-c types are imported as normal types in swift (you can verify this by looking at NSArray).

In this case can you please open up the initial request for a Swift library for Bolts here: https://github.com/BoltsFramework/Bolts-iOS/issues/61
And what's the team's plans on implementing this?
Kind thanks.

The rough answer is 'soon'. We do have eventual plans for it. But trying to come up with an API that allows easy swift & objc interop while maintaining feature compatibility between the two languages has proved difficult.

Thanks for the update Richard. I imagine trying to reconcile both is going to be difficult indeed.
Perhaps maintaining two separate API's, the exiting one and a clean-cut Swift-only API which also supports the new ErrorTypes conventions instead of NSError might be the way to go.


Jest-electron-runner hangs on simple test

When using jest-electron-runner on a simple test: it starts running the test, launches electron process and then hangs without making a progress.
Removing jest-electron-runner makes the test run without issues.
Jest config:
module.exports = {
    "transform": {
        "^.+\\.tsx?$": "ts-jest"
    },
    "globals": {
        "ts-jest": {
            "tsConfig": "./tsconfig.json"
        }
    },
    "moduleFileExtensions": [
        "ts",
        "tsx",
        "js",
        "json",
        "node"
    ],
    "runner": "@jest-runner/electron/main",
    "testEnvironment": "node",
    "testMatch": ["**/test/**/*.(spec|test).ts"]
};

Test file:
describe("calculate", () => {
  it("add", () => {
    const result = 5 + 2;
    expect(result).toBe(7);
  });
});

Package.json dependencies versions:
{
    "devDependencies": {
        "@jest-runner/electron": "2.0.2",
        "@types/jest": "24.0.21",
        "@types/react": "16.9.11",
        "@types/react-dom": "16.9.3",
        "electron": "7.0.0",
        "fancy-log": "1.3.3",
        "gulp": "4.0.2",
        "gulp-changed": "4.0.2",
        "jest": "24.9.0",
        "ts-jest": "24.1.0",
        "tslint": "5.20.0",
        "typescript": "3.6.4"
    },
    "dependencies": {
        "react": "16.11.0",
        "react-dom": "16.11.0"
    }
}

After debugging through the runner got the issue narrowed down to the problem in the latest release of Electron:
https://github.com/electron/electron/issues/20931
Tests are running fine on electron version '5.0.11'. Closing the issue.


WCAG: That a link take you out of the app (external) are only communicated trough an icon

Description of the bug
When using links that go out of the app it is common to have an arrow icon on the end of the link to indicate that you are leaving the page you are currently on if you use the link. But this information should also be communicated to screen readers.
This is handled on Altinn.no today and should be handled in similar way for Altinn 3 apps.
Example from Altinn.no:

Steps To Reproduce
Use a screen reader on an external link in an application
There should be no indication that you are leaving the area you are in.
Additional Information
No response

Could no recreate this bug. Putting it in the analyze epic to double check if this is a bug.

There was a problem where the arrow icon did not display correctly when using a local app-frontend (using the docker image or yarn start), but that is fixed in #893. With that said, we should decide if we want this arrow to show up on external links (or links that open in a new window, or both, or never) - as also discussed in #893.


added twilio authentication check

So the "Text Me" hides on the front end, but when I add Twilio keys, it doesn't appear when I refresh. I can't tell if this is an issue with @katiejiang's form for adding Twilio Keys or the Jinja


Last Week in Pony - August 15, 2021

Indexing site https://ponyhub.org was updated to version 0.4.0 on 2021-08-10. PonyHub indexes GitHub repositories that are marked with ponylang or pony-language tags as well as manually entered projects. The requirement is a corral.json in the top-level location. Indexes are backed by ElasticSearch. Written in Java (grrr!), suggestions, bug reports and other feedback is most welcome. Source code.

There's a new public calendar for the Pony Virtual Users' Group meetings.
You can subscribe via the ical link at https://calendar.google.com/calendar/ical/042ceam97bfg4eseqt3sagq1rk%40group.calendar.google.com/public/basic.ics

Upcoming Pony Virtual Users' Group meeting...
On August 18th at 15:00 US Eastern, Sean T. Allen will be "presenting" at the Pony VUG. You can join us on Zoom to attend.
Sean will be walking through the GitHub REST API that is currently in progress. The walk through is less to discuss the API and more to spark conversations about Pony. Feel free to review the code before the meeting and come with questions like:

Why did you decide to do X instead of Y?
How does Z work?
What's going on here?

Additionally, Sean will be demonstrating the new flatten_next functionality that was added the Promise in the standard library with the 0.43.1 Pony release. flatten_next was directly inspired by work he was doing on the GitHub REST API.
The GitHub repository is ponylang/github_rest_api. Work is currently being done on the initial branch.

A gist has been created that shows how to integrate VSCode and lldb for UI-based debugging of pony code, including:

breakpoints in the UI (including conditional ones)
watch statements
variable inspection with pretty printed Strings and Arrays (rather than just pointers)
lldb REPL/console
a debug target that pre-compiles a ponyc --debug before launching


ValueError: gptq quantization is not supported for AutoModel

System Info
GPU: T4
Information

[X] Docker
[ ] The CLI directly

Tasks

[X] An officially supported command
[ ] My own modifications

Reproduction

model=csdc-atl/Baichuan2-7B-Chat-GPTQ-Int4
volume=$PWD/data
docker run --gpus all  -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-inference:1.0.3 --model-id $model --trust-remote-code --quantize gptq

I got a log:
(python3) sh-4.2$ docker run --gpus all  -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-infer.3 --model-id /data/$model --trust-remote-code --quantize gptq
2023-09-25T06:23:05.806032Z  INFO text_generation_launcher: Args { model_id: "/data/Baichuan2-7B-Chat-GPTQ-Int4", revision: None, validation_workers: 2, sharded: None, num_shard: None, quantize: Some(Gptq), dtype: None, trust_remote_code: true, max_concurrent_requests: 128, max_best_of: 2, max_stop_sequences: 4, max_top_n_tokens: 5, max_input_length: 1024, max_total_tokens: 2048, waiting_served_ratio: 1.2, max_batch_prefill_tokens: 4096, max_batch_total_tokens: None, max_waiting_tokens: 20, hostname: "632143116f1d", port: 80, shard_uds_path: "/tmp/text-generation-server", master_addr: "localhost", master_port: 29500, huggingface_hub_cache: Some("/data"), weights_cache_override: None, disable_custom_kernels: false, cuda_memory_fraction: 1.0, rope_scaling: None, rope_factor: None, json_output: false, otlp_endpoint: None, cors_allow_origin: [], watermark_gamma: None, watermark_delta: None, ngrok: false, ngrok_authtoken: None, ngrok_edge: None, env: false }
2023-09-25T06:23:05.806062Z  WARN text_generation_launcher: `trust_remote_code` is set. Trusting that model `/data/Baichuan2-7B-Chat-GPTQ-Int4` do not contain malicious code.
2023-09-25T06:23:05.806160Z  INFO download: text_generation_launcher: Starting download process.
2023-09-25T06:23:08.643467Z  INFO text_generation_launcher: Files are already present on the host. Skipping download.

2023-09-25T06:23:09.109102Z  INFO download: text_generation_launcher: Successfully downloaded weights.
2023-09-25T06:23:09.109321Z  INFO shard-manager: text_generation_launcher: Starting shard rank=0
2023-09-25T06:23:12.028987Z  WARN text_generation_launcher: Unable to use Flash Attention V2: GPU with CUDA capability 7 5 is not supported for Flash Attention V2

2023-09-25T06:23:12.105201Z ERROR text_generation_launcher: Error when initializing model
Traceback (most recent call last):
  File "/opt/conda/bin/text-generation-server", line 8, in <module>
    sys.exit(app())
  File "/opt/conda/lib/python3.9/site-packages/typer/main.py", line 311, in __call__
    return get_command(self)(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/typer/core.py", line 778, in main
    return _main(
  File "/opt/conda/lib/python3.9/site-packages/typer/core.py", line 216, in _main
    rv = self.invoke(ctx)
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/conda/lib/python3.9/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/opt/conda/lib/python3.9/site-packages/typer/main.py", line 683, in wrapper
    return callback(**use_params)  # type: ignore
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/cli.py", line 81, in serve
    server.serve(
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/server.py", line 195, in serve
    asyncio.run(
  File "/opt/conda/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 634, in run_until_complete
    self.run_forever()
  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 601, in run_forever
    self._run_once()
  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 1905, in _run_once
    handle._run()
  File "/opt/conda/lib/python3.9/asyncio/events.py", line 80, in _run
    self._context.run(self._callback, *self._args)
> File "/opt/conda/lib/python3.9/site-packages/text_generation_server/server.py", line 147, in serve_inner
    model = get_model(
  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/models/__init__.py", line 268, in get_model
    raise ValueError(
ValueError: gptq quantization is not supported for AutoModel, you can try to quantize it with `text-generation-server quantize ORIGINAL_MODEL_ID NEW_MODEL_ID`

2023-09-25T06:23:12.612666Z ERROR shard-manager: text_generation_launcher: Shard complete standard error output:

The argument `trust_remote_code` is to be used with Auto classes. It has no effect here and is ignored.
Traceback (most recent call last):

  File "/opt/conda/bin/text-generation-server", line 8, in <module>
    sys.exit(app())

  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/cli.py", line 81, in serve
    server.serve(

  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/server.py", line 195, in serve
    asyncio.run(

  File "/opt/conda/lib/python3.9/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)

  File "/opt/conda/lib/python3.9/asyncio/base_events.py", line 647, in run_until_complete
    return future.result()

  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/server.py", line 147, in serve_inner
    model = get_model(

  File "/opt/conda/lib/python3.9/site-packages/text_generation_server/models/__init__.py", line 268, in get_model
    raise ValueError(

ValueError: gptq quantization is not supported for AutoModel, you can try to quantize it with `text-generation-server quantize ORIGINAL_MODEL_ID NEW_MODEL_ID`
 rank=0
2023-09-25T06:23:12.711767Z ERROR text_generation_launcher: Shard 0 failed to start
2023-09-25T06:23:12.711800Z  INFO text_generation_launcher: Shutting down shards

Expected behavior
Can you help me ? @Narsil @OlivierDehaene

@aresa7796: GPT-Q is not supported for AutoModel, but only for specific models such as Llama, Falcon, MPT, etc. If your model is not one of those, then you can't use GPT-Q.

At least until/if there's support in transformers directly through optimum that is correct.

But it's odd, since Baichuan should be supported.
On Compute 7.5 you need to install Flash V1 (not v2, it cannot be run on such cards)

I am getting this error when running the TGI container on Sagemaker. To my understanding, it should be able to work after selecting the appropriate model and setting the quantize flag. Am I missing something - or could this be Sagemaker specific?

On Compute 7.5 you need to install Flash V1 (not v2, it cannot be run on such cards)
@Narsil what dou you mean "install Flash V1"? isn't it bundled already within the TGI-Docker-Image?


export IGNORE_CLASS from the module

instead of remembering the special className: 'ignore-react-onclickoutside' for ignoring click outside. It would be a better source truth if it was exported from the module and/or have an option to config your own className

can you show how you would see that used?

maybe something like this for an option to specify your own className
clickOutsideMixin = require('react-onclickoutside').mixin('ignore-clickoutside');
component = React.createClass({
  mixins: [require('react-onclickoutside').]
  ...
})

and now the className is 'ignore-clickoutside'
for the case of simply exporting IGNORE_CLASS:
ignoreClickoutsideClassName =  require('react-onclickoutside').IGNORE_CLASS

closing this issue, as the ignore class can be specified by devs who need that level of control.


Add DP-2.4 test code

Add DP-2.4 test code for police traffic on input interface matching all packets for ARISTA/CISCO.

Pull Request Functional Test Report for #3654 / 2893fe4fbd8a436df95e2e96a07c45b2201f4168
Virtual Devices

Device
Test
Test Documentation
Job
Raw Log

Arista cEOS

DP-1.9: WRR traffic test
bbe52249
Log

Cisco 8000E

DP-1.9: WRR traffic test
ec77844b
Log

Cisco XRd

DP-1.9: WRR traffic test
5e008162
Log

Juniper ncPTX

DP-1.9: WRR traffic test
55d35500
Log

Nokia SR Linux

DP-1.9: WRR traffic test
9796ff22
Log

Openconfig Lemming

DP-1.9: WRR traffic test
9b6cfac8
Log

Hardware Devices

Device
Test
Test Documentation
Raw Log

Arista 7808

DP-1.9: WRR traffic test

Cisco 8808

DP-1.9: WRR traffic test

Juniper PTX10008

DP-1.9: WRR traffic test

Nokia 7250 IXR-10e

DP-1.9: WRR traffic test

Help

Pull Request Test Coverage Report for Build<PHONE_NUMBER>8
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 55.268%

Totals

Change from base Build<PHONE_NUMBER>4:
0.0%

Covered Lines:
1983

Relevant Lines:
3588

💛  - Coveralls

/fptest virtual

Please resolve the conflict to fix the build error:
# github.com/openconfig/featureprofiles/internal/deviations
Error: internal/deviations/deviations.go:1270:34: lookupDUTDeviations(dut).GetGribiEncapHeaderUnsupported undefined (type *metadata_go_proto.Metadata_Deviations has no field or method GetGribiEncapHeaderUnsupported)


Creating a redirection host with a preserve path option prepends a forward slash to the redirected URL

It looks like this within the generated conf file:
return 302 https://some.tld/asdf$request_uri;

This resolves to the following when accessed and the request_uri is empty:
https://some.tld/asdf/

In some cases, the prepended forward-slash breaks the expected functionality and the following may be expected:
https://some.tld/asdf

I'm having the same issue, I've tried both with and without the preserve path option enabled.

same issue here

bump


CLI: random-data

@SferaDev great catch! I've fixed it in https://github.com/xataio/client-ts/pull/263/commits/875dee650d0dbdbb9824c60653a60b74e5710601
However for the shell I haven't been able to reproduce it.


how to make tooltip initially open with uncontrolled state

If this is a bug or a Feature request reported using this template, we will close this issue, for those, please use the correct template.
This will be handled as a Question.
your docs are half usable, so many props that don't exist are listed there, we have need a system for menu tooltips  to be loaded when their trigger is clicked for performance reasons. is there a prop for thatbecause setting isOpen to true disables things like the tooltip disappearing after click outside and after scroll

Hi @alondon17.
All of the props for the v5 have a description listed on our docs page here, and we also have examples for a bunch of the most useful ones here.
You might be looking at the legacy v4 docs, which we have listed since it still used by a lot of people (more than v5 even).

we have need a system for menu tooltips to be loaded when their trigger is clicked

Try using openOnClick.

i know about that prop, i meant we would like having an option for an initial state, while being uncontrolled, currently we had to replicate the click outside ourselves because the built in doesn't work with isOpen true

I'll close the issue for now, but let us know if there's anything else.


signing method (alg) is unavailable.

Today I tried to run queries which were working for couple of months on EOS network in my code and they all throw error:
signing method (alg) is unavailable.
Example query which generates this error:
    const dfuseClient = createDfuseClient({
      network: "eos.dfuse.eosnation.io",
      apiKey: "<web api key here>",
      streamClientOptions: {
        socketOptions: {
          onClose: (data) => {
            console.log(data);
          },
          onError: (data) => {
            console.log(data);
          }
        }
      }
    });

    const graphQLSubscriptionForAllIncomingTransactionsToEosioToken = `
              subscription($cursor: String!) {
                searchTransactionsForward(query: "receiver:eosio.token action:transfer -data.quantity:'0.0001 EOS'", irreversibleOnly: false) {
                  cursor
                  undo
                  trace {
                    matchingActions { json }
                  }
                }
              }
            `;

     // error is thrown exactly by below instruction
    const stream = await dfuseClient.graphql(graphQLSubscriptionForAllIncomingTransactionsToEosioToken, (message) => {
      if (message.type === "data") {
        console.log(message.data);
        console.log(message.data.searchTransactionsForward.undo);
      } else {
        console.log(message);
      }
    });

You'll have to generate an API key through the EOS Nation key generation endpoint: https://auth.eosnation.io
To keep up with any changes, or get support for the EOS Nation endpoints, you'll be best served in the Telegram channel: https://t.me/dfusece


Connect storage to external AWS S3 bucket

Improve documentation
Link
https://github.com/supabase/storage-api
Describe the problem
We want to help everybody who wants to hosting their own storage module. In our case, we need to connect a k8s self hosted supabase deployment with an AWS S3 bucket. When we surfing the documentation, we facing at a link to how we can create a IAM User to access through aws-cli or aws-sdk, but we never read about how we can configure the storage container.
We take a look at the code searching for something like AWS_ACCESS_ID, or SECRET_ID but nothing comes up. After that, I understand that we have to "upload" a credentials file to the container in order to authenticate aws-sdk commands.
And finally, we found the solution!
Describe the improvement
You have to save a credentials file at /root/.aws in the storage container to be authenticated.
You have to upload a file at /root/.aws/credentials with:
[default]
aws_access_key_id = xxxxxxxxxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Additional context

Can we also choose our own endpoint?

Hey,
What's about the AWS CLI?
Shoul I go manually inside the container to download it and set the credentials ? I think this method isn't the best ...

You can use any mechanism supported by the aws sdk, which are documented at https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/configuring-the-jssdk.html
In this specific scenario, you could use e.g. environment variables on your container definition. Or if you're using EKS, you can use https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html as well.

Improve documentation
Link
https://github.com/supabase/storage-api
Describe the problem
We want to help everybody who wants to hosting their own storage module. In our case, we need to connect a k8s self hosted supabase deployment with an AWS S3 bucket. When we surfing the documentation, we facing at a link to how we can create a IAM User to access through aws-cli or aws-sdk, but we never read about how we can configure the storage container.
We take a look at the code searching for something like AWS_ACCESS_ID, or SECRET_ID but nothing comes up. After that, I understand that we have to "upload" a credentials file to the container in order to authenticate aws-sdk commands.
And finally, we found the solution!
Describe the improvement
You have to save a credentials file at /root/.aws in the storage container to be authenticated. You have to upload a file at /root/.aws/credentials with:
[default]
aws_access_key_id = xxxxxxxxxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Additional context

Thank you! this wasn't documented anywhere that I could find. I never would have figured this out.
Why does it seem they are removing self-hosting documentation? I can find less about self-hosting now than I could a few months ago.

Improve documentation
Link
https://github.com/supabase/storage-api
Describe the problem
We want to help everybody who wants to hosting their own storage module. In our case, we need to connect a k8s self hosted supabase deployment with an AWS S3 bucket. When we surfing the documentation, we facing at a link to how we can create a IAM User to access through aws-cli or aws-sdk, but we never read about how we can configure the storage container.
We take a look at the code searching for something like AWS_ACCESS_ID, or SECRET_ID but nothing comes up. After that, I understand that we have to "upload" a credentials file to the container in order to authenticate aws-sdk commands.
And finally, we found the solution!
Describe the improvement
You have to save a credentials file at /root/.aws in the storage container to be authenticated. You have to upload a file at /root/.aws/credentials with:
[default]
aws_access_key_id = xxxxxxxxxxxxxxxxxxxxx
aws_secret_access_key = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Additional context

Thank you! this wasn't documented anywhere that I could find. I never would have figured this out.
Why does it seem they are removing self-hosting documentation? I can find less about self-hosting now than I could a few months ago.

money. they're launching. they probaply don't want stakeholders asking questions about people leaving the platform and not paying them :D

We rebuilt the docs website from ground up recently. Appreciate the feedback, will share with the team that the self hosting docs aren't discoverable in the new site.
We encourage folks to self host if the hosted platform doesn't meet their requirements. We recently added storage to the self hosted dashboard and even new features like the image transformations feature are already available in the self hosted version. In fact, there are features like rate limiting and webhooks support for storage where the platform version lags the self hosted version.

Let's make the self-hosting docs more visible ⚡ We're going to move all the self-hosting docs into their own top-level section on the Docs website and start adding all the relevant information there.

Started the move https://github.com/supabase/supabase/pull/11098

Awesome! Didn't expect to get any sort of response. The new Docs site does look great!

Thank you!


Update Columbia County, PA:

update URL for map service and fields
add contact information

This county has a proxy running on their ArcGIS Server environment.  I thought maybe it would work, but it appears not.
It was worth a shot.


Added util::fix_broken_serialization() which fixes common serialization ...

...problems.
There are four primary reasons PHP serialize() will break:
0. A developer edits a serialized string and forgets to change (or incorrectly changes) the string length value.

CharacterSet mismatches (e.g., PHP running in ISO-8859-1 [default pre-5.4] and
the database running in UTF-8, and higher-than-ASCII characters being used.
Improper escaping by userland code or the database.
Accidentally truncated data (think: DB column data type is too small for the data).

This function fixes all of those, by introspecting each string in the serialized data,
including key names, class property names, and values, and recalculating their now-current
sizes.
I have found this method essential in running foreign language sites, when faced with many
misconfigured browsers forcing wrong charactersets on the website.

Coverage increased (+0.17%) to 68.15% when pulling 1e648e5f5346e6bf7ea9f1de53799e55346caa3d on hopeseekr:master into 95ffee30d88b0662f0a15e4e4758891d65766ecf on brandonwamboldt:master.

Hmm... This test does fail on HHVM, because HHVM's error message does not contain enough data for the specific-failure test to actually work:
[errstr] => Unable to unserialize: [a:2:{i:0;s:6:"Normal";i:1;s:23:"High-value Char: ▒a-va?";}]. Expected '"' but got 'a'.
I also cannot even tell if HHVM even handled the higher-than-ASCII character at ALL! Going to run the fixed serialized string in HHVM and will report back...

Coverage increased (+0.17%) to 68.15% when pulling 06a5a8ba07f33de46c0ffe4da84dc2c0aa573cb2 on hopeseekr:master into 95ffee30d88b0662f0a15e4e4758891d65766ecf on brandonwamboldt:master.

Coverage increased (+0.17%) to 68.15% when pulling c262c52909716fa50612499511e2f286e6052dd9 on hopeseekr:master into 95ffee30d88b0662f0a15e4e4758891d65766ecf on brandonwamboldt:master.

It's now official! This unit test uncovered a potentially serious HHVM [un]serialize() bug with high-value non-UTF-8 characters! Hurray!
HHVM serialize() unceremoniously drops high-ASCII characters from strings without warning. https://github.com/facebook/hhvm/issues/4700

Nice work!
Does this fix a situation where somebody manually changes a serialized value without updating the string length?

Yes it would also fix that.

Thanks for this, it looks super useful :)

Woohoo!


Remove Workaround

We need to remove the workaround that provides the method once upstream yaramo contains the method

Blocked by: simulate-digital-rail/yaramo#32


[Philemon]v1.5 UG page breaks

Coverage remained the same at 82.848% when pulling 890a984a5297bf567e8c7c44ecdbf2e3b9a2421e on philemontan:v1.5ugpagebreak into eb9da692a6625696ae2d67f21c5036d5bbc9608d on CS2103AUG2017-T11-B1:master.


Use Jaeger in-memory store for testing if badger is the problem

Let's use the memory storage for now, to see if we still have problems with that.
/cc @jpkrohling @kakkoyun @squat @brancz @bwplotka

we can close this, we have moved this stuff to another repo


remove descriptor of a deprecated library

Let's remove it :) It seems that first it should be removed here, then i need to run some task in jupyter kernel repo and also update this file after that
https://github.com/Kotlin/kotlin-jupyter/blob/673bd2629503f6b696ab640bb18d7b8c56a55536/src/test/kotlin/org/jetbrains/kotlinx/jupyter/test/repl/ReplWithStandardResolverTests.kt#L150

@koperagen you need to run gradlew generateReadme in kernel repo, would be nice if you do it

https://github.com/Kotlin/kotlin-jupyter/pull/439


Create API documentation and build using Sphinx

What about DRF Docs

Looks promising! And very young. When I last looked for something like this (in October), this project didn't exist yet.

Yes.
It is a port of an older project, but comes recommended from the DRF core team.


Multiple checkboxes

There's a use-case for multiple checkboxes (using both isMultipleElement and isCheckboxElement): see an example here that it's a valid use-case (taken from the component library I'm using). The resulting effect is somewhat like a multi-select, but with individual checkboxes (I've actually used such a construct a few times in past projects)
Pretty much this would boil down to:
<Field isCheckboxElement isMultipleElement><Checkbox name="languagesSpoken" value="en" /></Field>
<Field isCheckboxElement isMultipleElement><Checkbox name="languagesSpoken" value="ro" /></Field>
<Field isCheckboxElement isMultipleElement><Checkbox name="languagesSpoken" value="pt" /></Field>

I've encountered 2 issues with implementing this use-case, both in useField.js's return statement:

value: if a value isn't set in the default form values for this field, it will actually overwrite the values in the child checkboxes with [], so changing the expression to something like:

{ value: isMultipleElement && value === '' && (inputValue == null || inputValue === '') ? [] : inputValue || value }

isChecked: the conditions don't work for checkbox+multiple. I suggest using:

{
isChecked: isCheckboxElement
  ? (isMultipleElement
      ? value?.includes(inputValue)
      : Boolean(value))
  : value === inputValue
      ? value
      : false
}

I've looked through the stories and seen the MultiPicker one, but tbh that's a bit convoluted when it could be easily fixed to "just work" and look more like one would implement radio buttons.

The actual issue is that you're not supposed to pass isCheckboxElement and isMultipleElement at the same time. If you remove isMultipleElement, the multi-checkbox input works fine.
isMultipleElement is for multi-select for when you put the multiple attribute on a <select>. The only other place you'd use multiple is on <input type="file" />.
I originally needed a way to check if someone was using a checkbox because the logic in useField is pretty different. I was trying to infer it from the event (which I could), but I couldn't infer it in Field from the wrapped element.
Then I remembered multi-select was a thing and worked on that, but I added another boolean.

The correct fix is to convert these booleans into a finite state machine:
const fieldTypes = {
  checkbox: 'checkbox',
  multiSelect: 'multiSelect',
  standard: 'standard',
}

Then I'd expect someone to pass in a single string instead of a single boolean.
This is a breaking change that needs a deprecation warning. Another helpful fix is using TypeScript types to restrict it to either boolean, but not both.
This change would need to happen in both Field and useField since many projects (like the one I have at work) will most-likely be creating their own Field components either directly through useField or with translateProps.
It's my fault for setting a bad standard in the first place, but at least, we don't have to hack-fix it either :).

The actual issue is that you're not supposed to pass isCheckboxElement and isMultipleElement at the same time. If you remove isMultipleElement, the multi-checkbox input works fine.
HTML multiple attribute
I intended isMultipleElement to only be used for <select multiple> and <input type="file" />. That's why it defaults to []. It's actually the intended behavior based on the way input events also return arrays for those field types.
isMultipleElement
isMultipleElement expects there to be a single parent element with multiple child elements that OneForm doesn't control. Field only wraps the parent element and doesn't know what's in there.
The MultiPicker example you pointed out is the same issue. It controls children and OneForm has no control over the inputs inside.
Prior Art
I've actually run into the same issue at work where a parent element is looping children and adding its own onChange and value. OneForm doesn't have control over those children even if I wrap them in Field.
In the same component, checkboxes can be radio buttons when it's single-select mode. In that case, passing no booleans makes it work as-expected. It only works because the picker component is handling its own internal state.
Subfield
What you're wanting are Subfield and useSubfield.
I used them to wrap individual checkboxes and options for multi-select in the past, but I eventually found a way to do it all in useField and remove the need for Subfield altogether.
The files have been sitting there waiting for a use case. To update these components, Subfield would need translateProps function (more like translateProp 😆) similar to Field.
The FieldContext.Provider wrapping children in Field is what Subfield uses. Thing is, this context isn't using observables like everything else mainly because it was an experiment. For a real version of Subfield, we'll want getValue, setValue, and subscribeToValue passed to FieldContext rather than value.
I added a story using Subfield: edf0126a09a25575a0caa6b8b34c335ca3e4a899.
Other Thoughts
I like how your solution "just works" because you can wrap each checkbox in Field; although, most situations like this, OneForm wouldn't have control over children; specifically in the case where you'd be using isMultipleElement.
Subfield was designed to solve your particular problem, but it still requires having a parent Field element and isn't as simple to implement not to mention it adds more code and probably isn't how people would assume this works.
Having to only rely on Field instead of Subfield is a better option.
My Thoughts
NOTE: These are my original thoughts before reading your post.
I'm thinking the correct fix is to convert these booleans into a finite state machine:
const fieldTypes = {
  checkbox: 'checkbox',
  multiSelect: 'multiSelect',
  standard: 'standard',
}

Then I'd expect someone to pass in a single string instead of a single boolean.
This is a breaking change that needs a deprecation warning. Another helpful fix is using TypeScript types to restrict it to either boolean, but not both.
This change would need to happen in both Field and useField since many projects (like the one I have at work) will most-likely be creating their own Field components either directly through useField or with translateProps.
It's my fault for setting a bad standard in the first place, but at least, we don't have to hack-fix it in useField either :).
Comparison

Field
Subfield

One component to worry about.
Still requires a Field parent wrapper, but Subfield component makes your intent clear. The issue is either passing name to Field or putting it on a div.

Less things to worry about when creating custom Field components with useField.
Using the native Field element is fine. No need to use FieldContext when making custom Field components.

Requires code changes.
Already part of OneForm.

Requires no API changes.
Requires some way of restricting using both isCheckboxElement and isMultipleElement or simply changing them into a finite state machine.

Muddies up Field logic in a way that makes it harder to understand and might break in some edge cases.
Extra logic to worry about in Field along with yet another context consumer. This would definitely add some unnecessary bundle bloat.

Your thoughts?
After seeing these side-by-side, I'm leaning on "let's add it to Field".
What do you think?

Radio groups and checkbox groups are the same UX-wise as selects and select multiples. So I really think that the way you use OneForm with them should be the same between radio groups and checkbox groups (and the added isMultipleElement from radio groups to checkbox groups would mirror the added one from select to select multiple).
I think for this particular use case it's the most obvious and natural way to use it. (It's kind of like why checked/indeterminate isn't a single value, but two different ones).
I'm really not sure about Subfield to be honest. It seems redundant (and extraneous code). A Field with a isCheckbox and isMultiple and a translateProps to set selected: isChecked would do just as well without the extra context and such. Though in that case isCheckbox would be weird naming 😁.

I'm cool with the changes in #14, and I'll eventually remove Subfield and useSubfield. They were only experimental, and it's great to finally get rid of them for Field-only solution.
I also agree that selected probably shouldn't be a default prop because it's only useful for <select multiple>, and that one works natively with a single Field wrapper anyway.


Add search to emoji category keyboard

After adding search to Emoji, we can now implement search in EmojiCategoryKeyboard.
However, we need to solve how the emoji keyboard should switch between the emoji keyboard and the search keyboard, and how it should route key presses to the embedded test field, which can be done with the KeyboardTextField.

I will do this after redesigning the keyboard.

Emoji search has now been added to the EmojiKeyboard 🎉
https://github.com/user-attachments/assets/1877d856-0dc3-475f-87af-bd415eb425df
This feature uses other Pro features, like the KeyboardTextField and orchestrates state between the KeyboardView and the EmojiKeyboard to properly handle focus state, text routing, and keyboard type.
Besides this, KeyboardKit 9 improves the emoji keyboard a great deal. Users will be able to scroll between sections, instead of having to tap. The keyboard updates the selection and title and restores the last section when the emoji keyboard is shown the next time. Also, iPad rendering now uses the standard hi-res style to avoid blurring 🙂

This has been added to the v9 branch. You will be able to test it when the RC1 is released next week.


UI Issues: Skip button and Forgot Password Buttons are overlapping

Actual Behaviour
The Skip and Forgot Password buttons are overlapping
Expected Behaviour
The buttons should not overlap
Steps to reproduce it
Open the sign in screen.
LogCat for the issue
N/A
Screenshots of the issue

Would you like to work on the issue?
No

fixed in https://github.com/fossasia/susi_iOS/pull/138


Kubeadm init command failing due to conntrack issues

Description
Kubeadm init command failing due to conntrack issues
Impact
Unable to initialize a kubernetes cluster using "kubeadm init command
Environment and steps to reproduce

Set-up: Flatcar Container Linux by Kinvolk 2345.3.1 (Rhyolite) running in EC2 on AWS

Task: Ran the "kubeadm init --v=11" command. I have kubeadm, kubelet and kubectl on version 1.18.0
3.Action(s): kubeadm init --v=11

Error: ip-10-50-1-171 configs # kubeadm init  --v=11 I0408 15:51:53.955454   24457 initconfiguration.go:103] detected and using CRI socket: /var/run/dockershim.sock I0408 15:51:53.955663   24457 interface.go:400] Looking for default routes with IPv4 addresses I0408 15:51:53.955680   24457 interface.go:405] Default route transits interface "eth0" I0408 15:51:53.955810   24457 interface.go:208] Interface eth0 is up I0408 15:51:53.955876   24457 interface.go:256] Interface "eth0" has 2 addresses :[<IP_ADDRESS>/24 fe80::8b9:3ff:fe10:44e9/64]. I0408 15:51:53.955901   24457 interface.go:223] Checking addr  <IP_ADDRESS>/24. I0408 15:51:53.955918   24457 interface.go:230] IP found <IP_ADDRESS> I0408 15:51:53.955931   24457 interface.go:262] Found valid IPv4 address <IP_ADDRESS> for interface "eth0". I0408 15:51:53.955942   24457 interface.go:411] Found active IP <IP_ADDRESS> I0408 15:51:53.955987   24457 version.go:183] fetching Kubernetes version from URL: https://dl.k8s.io/release/stable-1.txt W0408 15:51:54.190575   24457 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io] [init] Using Kubernetes version: v1.18.0 [preflight] Running pre-flight checks I0408 15:51:54.190809   24457 checks.go:577] validating Kubernetes and kubeadm version I0408 15:51:54.190833   24457 checks.go:166] validating if the firewall is enabled and active I0408 15:51:54.206831   24457 checks.go:201] validating availability of port 6443 I0408 15:51:54.207010   24457 checks.go:201] validating availability of port 10259 I0408 15:51:54.207051   24457 checks.go:201] validating availability of port 10257 I0408 15:51:54.207113   24457 checks.go:286] validating the existence of file /etc/kubernetes/manifests/kube-apiserver.yaml I0408 15:51:54.207133   24457 checks.go:286] validating the existence of file /etc/kubernetes/manifests/kube-controller-manager.yaml I0408 15:51:54.207146   24457 checks.go:286] validating the existence of file /etc/kubernetes/manifests/kube-scheduler.yaml I0408 15:51:54.207155   24457 checks.go:286] validating the existence of file /etc/kubernetes/manifests/etcd.yaml I0408 15:51:54.207172   24457 checks.go:432] validating if the connectivity type is via proxy or direct I0408 15:51:54.207203   24457 checks.go:471] validating http connectivity to first IP address in the CIDR I0408 15:51:54.207232   24457 checks.go:471] validating http connectivity to first IP address in the CIDR I0408 15:51:54.207254   24457 checks.go:102] validating the container runtime I0408 15:51:54.306428   24457 checks.go:128] validating if the service is enabled and active      [WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service'      [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/ I0408 15:51:54.395562   24457 checks.go:335] validating the contents of file /proc/sys/net/bridge/bridge-nf-call-iptables I0408 15:51:54.395620   24457 checks.go:335] validating the contents of file /proc/sys/net/ipv4/ip_forward I0408 15:51:54.395651   24457 checks.go:649] validating whether swap is enabled or not I0408 15:51:54.395685   24457 checks.go:376] validating the presence of executable conntrack I0408 15:51:54.395724   24457 checks.go:376] validating the presence of executable ip I0408 15:51:54.395746   24457 checks.go:376] validating the presence of executable iptables I0408 15:51:54.395765   24457 checks.go:376] validating the presence of executable mount I0408 15:51:54.395785   24457 checks.go:376] validating the presence of executable nsenter I0408 15:51:54.395809   24457 checks.go:376] validating the presence of executable ebtables I0408 15:51:54.395827   24457 checks.go:376] validating the presence of executable ethtool I0408 15:51:54.395844   24457 checks.go:376] validating the presence of executable socat I0408 15:51:54.395862   24457 checks.go:376] validating the presence of executable tc I0408 15:51:54.395879   24457 checks.go:376] validating the presence of executable touch I0408 15:51:54.395899   24457 checks.go:520] running all checks I0408 15:51:54.475812   24457 checks.go:406] checking whether the given node name is reachable using net.LookupHost I0408 15:51:54.475845   24457 checks.go:618] validating kubelet version I0408 15:51:54.531625   24457 checks.go:128] validating if the service is enabled and active I0408 15:51:54.544345   24457 checks.go:201] validating availability of port 10250 I0408 15:51:54.544424   24457 checks.go:201] validating availability of port 2379 I0408 15:51:54.544463   24457 checks.go:201] validating availability of port 2380 I0408 15:51:54.544505   24457 checks.go:249] validating the existence and emptiness of directory /var/lib/etcd [preflight] Some fatal errors occurred:      [ERROR FileExisting-conntrack]: conntrack not found in system path [preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=... error execution phase preflight k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:235 k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:422 k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:207 k8s.io/kubernetes/cmd/kubeadm/app/cmd.NewCmdInit.func1      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/init.go:147 k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).execute      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:826 k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).ExecuteC      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:914 k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).Execute      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:864 k8s.io/kubernetes/cmd/kubeadm/app.Run      /workspace/anago-v1.18.0-rc.1.21+8be33caaf953ac/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/kubeadm.go:50 main.main      _output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/kubeadm.go:25 runtime.main      /usr/local/go/src/runtime/proc.go:203 runtime.goexit      /usr/local/go/src/runtime/asm_amd64.s:1357

Expected behavior
The command should initialize the Kubernetes cluster on the node
Additional information
I noticed that the main error is [ERROR FileExisting-conntrack]: conntrack not found in system path" which I found to be a new feature/bug fix for v1.18.0 (see below)
During initialization phase (preflight), kubeadm now verifies the presence of the conntrack executable (#85857, @hnanni) [SIG Cluster Lifecycle]
So the question is that does Flatcar OS have the conntrack installed/initialized. and if not, how do I install/initialize it . Any pointer will be highly appreciated

We have included the conntrack user space binary with our new Alpha release 2466.0.0 and will track stabilisation to Beta and Stable in the respective feature request in https://github.com/flatcar-linux/Flatcar/issues/78 . Please consider following the feature request for updates.
I'll close this bug report in favour of #78 ; please feel free to re-open if you continue experiencing this issue.

Thanks @t-lo
I'll test out the feature in the next alpha release and get back to you


[Feature Request]: Refactor user-assigned identity implementation to support arrays instead of objects

Description
MIs are not passed down to child or across to cross-referenced resources
BICEP Schema:
managedIdentities= {
  systemAssigned: true
  userAssigned: [
    'RID1'
    'RID2'
  ]
}

Reason for differences in User Assigned type:

We do not see the point in making consumers specify an empty value of an object {} for user assigned identities and do not believe this will ever be used by an RP for anything, so have decided to make an array in bicep for input simplicity.

Closing as since been migrated to AVM specs and updated by @krbar


PinPoint For SpringBoot,Use Redis Lua:io.lettuce.core.RedisCommandExecutionException: NOSCRIPT No matching script. Please use EVAL.

Error Can Be Filter When Use PinPoint? This Error is try catch by spring code.

I don't quite understand what you mean

Sorry, my description may not be clear, I hope that the Pinpoint r can support the filtering special exception, when I use the PINPOINT R for APM monitoring, if the A method calls The B method, The B method throws the exception, but the A method has the exception capture, then the request Pinpoint r will be considered as the exception.

Hello, @koudaiDemon
Currently, http status code is captured.
I'm not sure if I've understood you correctly, I think with #7254 merged, pinpoint will be able to capture what you're trying to say.
To be sure...
What do you mean by Pinpoint R? We don't have Pinpoint R-agent yet.

Thanks, ”PinPoint R“  is faulty by translation software，I think #7254 has solved my problem。


Text data preparation

Hello.
First of all, thank you for your great work.
Unfortunately, I have some issues on the preparation of the text data for the pre-training and the ASR finetuning.
I have followed the introduction provided, but I cannot figure out how should I preprocess text data using SPM and fairseq.
How can i create the text_train.tsv/text_valid.tsv?
and also i have some difficulties of creating the label data of the text data, what format should i use?
can you provide more details or examples of the manifest for the text?

Hi,
Thanks for your attention. For preparing the text data, you can follow these steps:

Get the raw text, like LibriSpeech-LM corpus, and convert the text to lower cases.
Use SPM model to process the text by spm_encode (The output_format is piece).
Use fairseq-preprocess to generate the bin and idx files. For example, the script can be:

TEXT=
DEST_DIR=
DICT=
fairseq-preprocess \
    --only-source \
    --trainpref $TEXT/train.txt \
    --validpref $TEXT/valid.txt \
    --destdir ${DEST_DIR} \
    --srcdict ${DICT} \
    --workers 20

You can use the transcription of LibriSpeech dev-clean and dev-other as the valid set for the text data. And please change the arguments accordingly.
Finally, you will get the bin and idx file for train and valid set. Please note that there is no manifest file for text.
You can save the manifest of speech and idx/bin files of text in one directory. Then it should be OK for the data preparation part.

Hi,
Thanks for your attention. For preparing the text data, you can follow these steps:

Get the raw text, like LibriSpeech-LM corpus, and convert the text to lower cases.
Use SPM model to process the text by spm_encode (The output_format is piece).
Use fairseq-preprocess to generate the bin and idx files. For example, the script can be:

TEXT=
DEST_DIR=
DICT=
fairseq-preprocess \
    --only-source \
    --trainpref $TEXT/train.txt \
    --validpref $TEXT/valid.txt \
    --destdir ${DEST_DIR} \
    --srcdict ${DICT} \
    --workers 20

You can use the transcription of LibriSpeech dev-clean and dev-other as the valid set for the text data. And please change the arguments accordingly.
Finally, you will get the bin and idx file for train and valid set. Please note that there is no manifest file for text.
You can save the manifest of speech and idx/bin files of text in one directory. Then it should be OK for the data preparation part.

Hello, I wonder if there is a restrict in the process of getting idx/bin files or not. Because when I use those files to fairseq-train and get this
Traceback (most recent call last):
File "/data/zqr/anaconda3/envs/python3.10.0/bin/fairseq-train", line 8, in
sys.exit(cli_main())
File "/data/zqr/anaconda3/envs/python3.10.0/lib/python3.10/site-packages/fairseq_cli/train.py", line 557, in cli_main
distributed_utils.call_main(cfg, main)
File "/data/zqr/anaconda3/envs/python3.10.0/lib/python3.10/site-packages/fairseq/distributed/utils.py", line 369, in call_main
main(cfg, **kwargs)
File "/data/zqr/anaconda3/envs/python3.10.0/lib/python3.10/site-packages/fairseq_cli/train.py", line 164, in main
extra_state, epoch_itr = checkpoint_utils.load_checkpoint(
File "/data/zqr/anaconda3/envs/python3.10.0/lib/python3.10/site-packages/fairseq/checkpoint_utils.py", line 272, in load_checkpoint
epoch_itr = trainer.get_train_iterator(
File "/data/zqr/anaconda3/envs/python3.10.0/lib/python3.10/site-packages/fairseq/trainer.py", line 695, in get_train_iterator
batch_iterator = self.task.get_batch_iterator(
File "/data/zqr/anaconda3/envs/python3.10.0/lib/python3.10/site-packages/fairseq/tasks/fairseq_task.py", line 295, in get_batch_iterator
batch_sampler = dataset.batch_by_size(
File "/data/zqr/tmp/pycharm_project_2/speecht5_raw/SpeechT5/SpeechT5/speecht5/data/multitask_dataset.py", line 207, in batch_by_size
batch_sampler = np.array(batch_sampler)
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (371,) + inhomogeneous part.

Hi
I had the same problem. I changed my numpy version to 1.23.5 and it worked


Add prefresh example to finch

In finch razzle seems to have a bug where it hard-requires React so the Preact example is broken, due to this bug I temp added React as a dependency. The odd one out is that the HMR-runtime used inside of razzle seems broken since it can never find the generated hot-update file.

Do you know where React is hard required? Does HMR work in this example?

HMR seems broken works on the original PR not on this one, will investigate later but not familiar with razzle-core yet.

Seems to work correctly now, can't figure out what's hard-requiring React though.

If you squash this into one commit and make the commit message "example: add preact prefresh example" i will merge it :)


Set forum to read only, redirect links to Github discussions, update site

Forum is read only. Website redirect to github discussions


Cannot run CellFishing

After the installation, I tried to run CellFishing with the command below.
% julia -e 'using Pkg; Pkg.test("CellFishing")'

I came across the error. Below is the error message.
I'm using macOS10.13.6 with Julia Version 1.0.1 (2018-09-29).
Test Summary: | Pass  Error  Total
CellIndex     |    7      1      8
ERROR: LoadError: Some tests did not pass: 7 passed, 0 failed, 1 errored, 0 broken.
in expression starting at /Users/bono/.julia/packages/CellFishing/gilgp/test/runtests.jl:107
ERROR: Package CellFishing errored during testing
Stacktrace:
 [1] pkgerror(::String, ::Vararg{String,N} where N) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Types.jl:120
 [2] macro expansion at ./logging.jl:313 [inlined]
 [3] #test#61(::Bool, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/Operations.jl:1284
 [4] #test at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:0 [inlined]
 [5] #test#42(::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:273
 [6] test at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:258 [inlined]
 [7] #test#41 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:255 [inlined]
 [8] test at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:255 [inlined]
 [9] #test#40 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:254 [inlined]
 [10] test at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:254 [inlined]
 [11] #test#39 at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:253 [inlined]
 [12] test(::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:253
 [13] top-level scope at none:0

I think this line (https://github.com/bicycle1885/CellFishing.jl/blob/1952d04b166e83d014317ca8510eaa21bbd21ab7/test/runtests.jl#L126) fails because it depends on the zstd command. The easiest solution to pass all the tests would be install zstd, but this is an optional feature and will be removed in the next version. So, if you don't care, this is not problematic in practice.

After install zstd, all tests were passed! Thanks for your comment.


ParquetSerializer - Simple, first attempt at a Parquet serializer for PxWeb

Apache Parquet support for PxWeb (https://parquet.apache.org).
Added integration tests for ParquetSerializer that uses DynamicData to run through all the test-files.
Added more test file.
Parquet-serialization uses three datatypes: DateTime for TIMEVALs, double for data and string for other variables.
Keeps the original TimeValue in a separate column in addition to a parsed DateTime column.
Handles NPM in separate columns for each content variable. Replaces values in the value-column with a double.NaN.
Slight fix of the ConsoleTestApp (might be a good idea to re-write it to be a proper console-app?).

@likp: Should be fairly complete by now. I haven't done anything in the PxWeb/PxApi code to support this, as I thought it would be prudent to wait for a check from you guys. Give me a hint as to how you guys would prefer NPM to be handled. It should be fairly straight forward to handle if the only requirement is to add it as a separate column.

Ok. Now I promise it's complete.


Feature Request: Options to temporarily hide GET entries and count.

since most GETs are harmless, most of the time people will expand an entry looking for POSTs

Maybe something like that filter bar from the other issue would be good here

just thought of, they can still pass information to server with a GET url, so still have to check both😂


Fullscreen does not show custom control bar

The custom control bar does not appear in fullscreen.
I believe this would be a fairly trivial fix. In order to get the control bar to appear in full screen you just need to call requestFullScreen on the container instead of the video element.
For example in https://github.com/mderrick/react-html5video/blob/master/src/components/video/Video.js#L155 you could use videoEl.parentElement to accomplish this.
I can submit a pull request for this.

Thanks for the issue, this indeed is a nice feature. I'm currently working on a v2 branch and have implemented it there.
I wasn't planning on adding new features to v1 anymore. Do you require this in v1?

@mderrick Awesome! I have no need to update v1 I actually had to customize the fullscreen code to do some additional things so I have my own fullscreen implementation. Looking forward to v2, thanks!


Configurable setup of arguments to pass to SUMO executable

Feature Description
Please provide:
flow.core.kernel.simulation.traci.TraCISimulation has start_simulation method that spawns a SUMO instance. The configuration of arguments passed to the sumo instance is not exposed to the developer, and we need to go and change library code, which is not a good practice IMHO. Just like:
            # command used to start sumo
            sumo_call = [
                sumo_binary, "-c", scenario.cfg,
                "--remote-port", str(sim_params.port),
                "--num-clients", str(sim_params.num_clients),
                "--step-length", str(sim_params.sim_step)
            ]

I suggest movinga any and all SUMO executable parameters to some default configuration class (SimParams would be a good candidate) and expose it to users.
Thanks!

Oh yeah, this is a good idea!

Anyone working on that? Is there any expected timeframe?


Comparing objects with cycles

var isEqual = require("is-equal");

var a = {};
var b = {};
a.x = {y: a};
b.x = {y: b};

console.log(isEqual(a, b));

I get RangeError: Maximum call stack size exceeded

Preventing against this in all cases involves maintaining an array (or a Set in newer browsers, but we'd have to have the array fallback) of all seen objects. Currently, we support one-level recursion, but your example here is 3-4 levels. Although your example's cycle includes the root object, you can easily see how you'd construct an example where the cycle did not include the root object.
I'll leave this open because I'm interested in solving the problem, but I don't want to prohibitively slow down the common use case to support an edge case, if I can avoid it.

You can avoid slowing down if you provide a flag indicating if given object may contain cycles longer than one. For example isEqual(a, b, true) will mean that a and b may contain cycles and a slower and heavier algorithm should be used. Your choice is is which case will be default.

That's not a bad idea - enabling deep cycle detection via a flag. I'll think on that.

It's a common pattern in many utility libraries. For example http://underscorejs.org/#uniq you can say that your array is sorted which will allow faster algorithm.


Support for other platforms than Android

First of all: the solution is a nice approach to get control over the soft keyboard in Android. Thanks for that, I am using it in a project that I am working on.
Rright now the solution only works for Android, but fails to build for other platforms. I fixed it with directives, so that the extended keyboard functionalities are relevant for Android only.
Do you have any idea/plans to extend compatibilty to other platforms?

@hsteinmaurer the version that's up now should work for iOS

Thanks a lot for considering my input in the update!


chore: add devcontainer

This add devcontainer so contributors using vscode can have a dockerized environment with deno pre-installed

I don't use VSCode so I'm not in a great position to test this but it looks like it could have some value


Collapse patch docs dirs into minor version while highlighting commands based on patch ver

Description:
Re: #1357 the release guide currently instructs you to generate the new docs directory only using the major and minor version (ex: make docs-release TAG=v{MAJOR}.{MINOR}). While generating the docs however; it causes all the pages that reference the image tag or URL to contain the wrong version (ex: v0.4 instead of v0.4.0).
I would be +1 for only having one docs directory per minor release. I don't think we need to keep making separate docs directories for each patch release. If we do want to move forward with this approach, then the docs-release make target will need to be updated to take input such as make docs-release TAG=v0.5.0 and use the directory name and patch version separately where needed.

we currently have 1 doc per minor release, closing this one


Control Zoom on Azure Kinect Camera

Is there a way to Zoom in using the camera or is there any support in the Kinect DK to add Zoom controls?

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

ID: cdf6aaae-43da-9f8d-961d-61fef5bbacd1
Version Independent ID: b7ad1780-2502-0f7b-fcef-36654ef50efd
Content: Azure Kinect Viewer
Content Source: articles/kinect-dk/azure-kinect-viewer.md
Product: kinect-dk
GitHub Login: @tesych
Microsoft Alias: tesych

@gregdegruy Thank you for your query . We will investigate and update the thread.

There is no support for zoom of RGB or depth cameras in the Azure Kinect DK.

@qm13 Thanks for an update.
@gregdegruy We hope that address your query.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.