Reserved tag robot:skip does not work when set via variable

I try to use a variable in the second test so that the resulting tag is robot:skip:
*** Variables ***
${SKIP_FLAG}    skip

*** Test Cases ***
Test One
    Log  Test One was executed.
    VAR  ${SKIP_FLAG}  skip  scope=suite

Test two
    [Tags]  robot:${SKIP_FLAG}
    Log  Test Two was executed.

My expectation was that I can conditionally skip other tests completely.
The tag gets set correctly, but the test still gets executed.
https://robotframework.org/code/?codeProject=N4IgdghgtgpiBcIDCBXAzgFwPZRAGhABMY0BjAJwEsAHDSrMBEfEAM0oBsSEBtUdrgDlocRABUSGAMopKGGADpyWAEZYMLUg3lgNiADpgAVCYAEANQhUIKrmlMmjhgCTApAaQCSABQD6AMQAZAEEAcQBfUyjTNABrGkNDR1MJTFMkCDQSBxNDVIxTAHkwGENo00CsAHMo-KKS0wB3TNMYAA8YUhR5QgUy6PNggCUo1w8fAJCIqLiaGa1qGABeNFl5RLA6jEasfqieMQgqtABdKOU1DHgxrz8gsPC9iurayRSdppb2zu6YXpBwicCMQqAA3P7eZQAK06egw5BQMAIF3U5hg5DQ9EYiAA7AoAIwElgojDBcjHBDAcLImAAR1k5BgsF0aF4J3CQA

This is due to the code looking for the robot:skip tag from the data object that contains the original tag. It should be looked from the result object where variables are resolved. This is easy to fix, but there are two problems:

Detecting are all tests skipped or excluded when a suite starts isn't possible (#4571). I guess that's fine in this case.
We need to check how other special tags behave in this regard. That is a somewhat big task so better to do all this in RF 7.3.

I took a quick look at other related tags and they already support variables (i.e. look at the tags of the result object). For example, the behavior of the following tests depends on do you run them with -v skip, -v continue or -v exit.
*** Test Cases ***
First
    [Tags]    robot:${what}-on-failure
    Fail    xxx
    Fail    yyy

Second
    Log    xxx

Based on the above finding, it makes sense to change the behavior of robot:skip and robot:exclude. It's so easy, and the current inconsistency so annoying, that I'll do that still in RF 7.2. It probably makes sense to explicitly document that tags are looked from the result object in case someone wants to modify them dynamically using a listener.

Also tags matched against --skip have this same problem and that's easy to fix when fixing robot:skip.
Also --include and --exclude are affected, but because they are handled before execution even starts, fixing them is harder. In practice we needed to look them again before each test starts. It wouldn't be that complicated and shouldn't in practice have performance effects, but it's nevertheless too big a task for RF 7.2. robot:exclude being fixed as part of this issue also makes it possible to use tags when excluding tests.

It turned out that robot:continue-on-failure and related tags worked with variables when used with tests but not when used with user keywords. robot:skip-on-failure, robot:exit-on-failure and robot:flatten worked fine. I fixed all cases where variables didn't work and added tests also for those tags that didn't need fixes. See the above commit for details.


Added write!() to Image

I realized for my my usage of win32screenshot, there were many occasions where overwriting my existing files made sense. I added a write!() method to support that.

I have updated the commit with your feedback. Honestly, I looked at your style, design, and feedback to other pull requests and rolled the dice as to which method you'd like the most, and the one that would make you the happiest. I chose poorly. :) Regardless, I have made the suggested change and agree with you. How does that look?

Tried to merge changes in, but I'm seeing failing spec:
Failures:

  1) Win32::Screenshot::Image saving the image to the disk allowing to overwrite existing files when desired #write!
     Failure/Error: File.size(file_path).should != content.size
     RuntimeError:
       RSpec does not support `should != expected`.  Use `should_not == expected` instead.
     # ./spec/win32/screenshot/image_spec.rb:68:in `block (4 levels) in <top (required)>'

Is this spec passing for you? Did you run specs with bundle exec rake spec command instead of using a global (possibly different) version of rspec command?

I had to fix that specific spec, change some other specs as well (using notepad instead of a calculator, which is not working really well under Windows 10), upgrade bundled ImageMagick to even newer version because I did have some warnings otherwise/images not captured correctly (spec/tmp had only black images). I've also updated mini_magick dependency. Anyway, thanks for your initial work, which has now been merged and released. Let me know if you're still seeing any problems.


Improving doc strings

Porting this conversation from slack:
It seems like the basic setup of autodoc using sphinx will just pick up the one-line doc string that we’re using for the python-c connection, e.g. here https://github.com/Quansight/numpy-threading-extensions/blob/main/src/fast_numpy_loops/module_init.cpp#L40
A bit of googling tells me there is a way to use the c docs with sphinx using doxygen and breathe . Is that worth doing? Or do we want to write api docs “by hand”? How do other c-extension packages handle this?
From @mattip :

We should write better docstrings for the python functions like newinit. I have an idea how to refactor them out into other files. Breathe and doxygen are better for pure c functions

@mattip What is your idea?

We should either

do what numpy/pytorch do and expose a _add_docs() c-function that is exposed via the module, this is used by a python-level function after the module is imported to mangle the empty tp_doc pointer (which is a hack but others do it) or
add a python function that takes docstring snippets, converts them into C strings and creates a large header file that is then baked into the module at build time.

I am starting the second option on a branch today.

docstrings are now generated via the _add_newdocs.py file.


Add geek-cookbook

A redo of #347, much cleaner, with signoff ;)

Hey guys,
I'm migrating charts from the funkypenguin repo to the geek-cookbook (a GitHub org) repo.
All charts are linted and tested with chart-tester, which forces versions to be immutable. Charts are each sourced from their own repositories, and consolidated to the charts repository to keep it tidy.

The Artifact Hub is another place you can list your repos. To do that, you login (or create an account), create an organization, and list your repository. You can link it to a user or organization.


Shouldn't lint dist and coverage files

Currently they're linted and most of the time will raise jshint issue.
Let's make sure they're removed from our linting target.
I think the smartest thing to do here is to consume the .gitignore file content and exclude these files from the linting process. That way we only have a single place to define them.

Ok, made a very simple version in our code base. Let's normalize and package that pattern in it's own module. Probably just extending gulp-ignore.

Now open source as a plugin https://github.com/SBoudrias/gulp-exclude-gitignore


[Question] sh ./bin/linkis-cli -engineType flink-1.12.2 -codeType sql -code "show tables"

Before asking

[X] I have read the How to ask for help (我已阅读如何寻求帮助指引文档).

Your environment

Linkis version used: 1.1.1
Environment name and version:

hive-2.1.1
spark-3.2.1
scala-2.12.2
jdk 1.8.0_121
flink 1.12.2
DataSphere Studio 1.1.0
Streamis 0.2.0
....

Describe your questions

Q1.  在Linkis中部署Streamis后，执行任务报异常
1、报错如下：
`=====Java Start Command=====
exec /home/hadoop/apps/java/bin/java -server -Xms32m -Xmx2048m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/home/hadoop/apps/dss/liniks/logs/linkis-cli -XX:ErrorFile=/home/hadoop/apps/dss/liniks/logs/linkis-cli/ps_err_pid%p.log -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=80 -XX:+DisableExplicitGC    -classpath /home/hadoop/apps/dss/liniks/conf/linkis-cli:/home/hadoop/apps/dss/liniks/lib/linkis-computation-governance/linkis-client/linkis-cli/:/home/hadoop/apps/dss/liniks/lib/linkis-commons/public-module/:.:/home/hadoop/apps/java/lib/dt.jar:/home/hadoop/apps/java/lib/tools.jar:/home/hadoop/apps/java/jre/lib: -Dconf.root=/home/hadoop/apps/dss/liniks/conf/linkis-cli -Dconf.file=linkis-cli.properties -Dlog.path=/home/hadoop/apps/dss/liniks/logs/linkis-cli -Dlog.file=linkis-client.hadoop.log.20220809144040914034870  org.apache.linkis.cli.application.LinkisClientApplication '-engineType flink-1.12.2 -codeType sql -code show tables'
[INFO] LogFile path: /home/hadoop/apps/dss/liniks/logs/linkis-cli/linkis-client.hadoop.log.20220809144040914034870
[INFO] User does not provide usr-configuration file. Will use default config
[INFO] user does not specify submit-user, will use current Linux user "hadoop" by default.
[INFO] user does not specify proxy-user, will use current submit-user "hadoop" by default.
[INFO] connecting to linkis gateway:http://<IP_ADDRESS>:9001
JobId:161
TaskId:161
ExecId:exec_id018011linkis-cg-entrancepnode3:9104LINKISCLI_hadoop_flink_1
[INFO] Job is successfully submitted!
2022-08-09 14:40:42.040 INFO Program is substituting variables for you
2022-08-09 14:40:43.040 INFO Variables substitution ended successfully
2022-08-09 14:40:43.040 WARN The code you submit will not be limited by the limit
Job with jobId : LINKISCLI_hadoop_flink_1 and execID : LINKISCLI_hadoop_flink_1 submitted
2022-08-09 14:40:43.040 INFO You have submitted a new job, script code (after variable substitution) is
SCRIPT CODE
show tables
SCRIPT CODE
2022-08-09 14:40:43.040 INFO Your job is accepted,  jobID is LINKISCLI_hadoop_flink_1 and jobReqId is 161 in ServiceInstance(linkis-cg-entrance, pnode3:9104). Please wait it to be scheduled
job is scheduled.
2022-08-09 14:40:43.040 INFO Your job is Scheduled. Please wait it to run.
Your job is being scheduled by orchestrator.
2022-08-09 14:40:43.040 INFO job is running.
2022-08-09 14:40:43.040 INFO Your job is Running now. Please wait it to complete.
2022-08-09 14:40:43.040 INFO Job with jobGroupId : 161 and subJobId : 161 was submitted to Orchestrator.
2022-08-09 14:40:43.040 INFO Background is starting a new engine for you,execId astJob_1_codeExec_1 mark id is mark_1, it may take several seconds, please wait
2022-08-09 14:40:44.040 ERROR Job with execId-LINKISCLI_hadoop_flink_1 + subJobId : 161  execute failed,21304, Task is Failed,errorMsg: errCode: 12003 ,desc: pnode3:9101_1 Failed  to async get EngineNode AMErrorException: errCode: 30001 ,desc: Failed to createEngine ask em ServiceInstance(linkis-cg-engineconnmanager, pnode3:9102) ,ip: pnode3 ,port: 9101 ,serviceKind: linkis-cg-linkismanager ,ip: pnode3 ,port: 9104 ,serviceKind: linkis-cg-entrance
2022-08-09 14:40:44.040 INFO job is completed.
2022-08-09 14:40:44.040 INFO Task creation time(任务创建时间): 2022-08-09 14:40:42, Task scheduling time(任务调度时间): 2022-08-09 14:40:43, Task start time(任务开始时间): 2022-08-09 14:40:43, Mission end time(任务结束时间): 2022-08-09 14:40:44
2022-08-09 14:40:44.040 INFO Your mission(您的任务) 161 The total time spent is(总耗时时间为): 1.1 秒
2022-08-09 14:40:44.040 INFO Sorry. Your job completed with a status Failed. You can view logs for the reason.
[INFO] Job status is not success but 'FAILED'. Will not try to retrieve any Result
[INFO] Job failed! Will not try get execute result.
============Result:================
TaskId:161
ExecId: exec_id018011linkis-cg-entrancepnode3:9104LINKISCLI_hadoop_flink_1
User:hadoop
Current job status:FAILED
extraMsg:
errDesc: 21304, Task is Failed,errorMsg: errCode: 12003 ,desc: pnode3:9101_1 Failed  to async get EngineNode AMErrorException: errCode: 30001 ,desc: Failed to createEngine ask em ServiceInstance(linkis-cg-engineconnmanager, pnode3:9102) ,ip: pnode3 ,port: 9101 ,ser
[INFO] JobStatus is not 'success'. Will not retrieve result-set.
############Execute Error!!!########
`
Eureka service list

Some logs info or acctch file

您好，已收到您的邮件

hi,it is convenient to provide the error log files of the following services when an error occurs:
linkis-cg-entrance
linkis-cg-engineconnmanager
linkis-cg-engineplugin
你好,方便提供下当时发生错误的时候,下列这些服务的错误日志:
linkis-cg-entrance
linkis-cg-engineconnmanager
linkis-cg-engineplugin

Uploading linkis-cg-engineconnmanager.log…

Linkis log file
linkis的log文件
linkis logs.zip

see https://linkis.apache.org/zh-CN/docs/1.1.1/engine_usage/flink.

你的log显示你缺少相关的环境变量配置


feat: not enforce KO_DOCKER_REPO with push=false

Hi everyone,
This PR fixes #590 and was good for me to get used with the codebase of ko.

Codecov Report

Merging #604 (21e76c3) into main (eb2597f) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #604   +/-   ##
=======================================
  Coverage   48.51%   48.51%
=======================================
  Files          43       43
  Lines        2259     2259
=======================================
  Hits         1096     1096
  Misses        978      978
  Partials      185      185

Impacted Files
Coverage Δ

pkg/commands/resolver.go
30.41% <0.00%> (ø)

Continue to review full report at Codecov.

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

Nice! Thanks for this contribution!


New nav bar

#106  #88

It's still not there...

It's still not there...

@frypan01 Delete your fork repo, your local repo. Then, fork my repo again, make only the required changes in your local repo and open the PR once again. That's the best option I could think of.
Please make only the required changes.

Ok, but I need some time ...I have exam tomorrow

Ok, but I need some time ...I have exam tomorrow

Ok @frypan01 . Do the work when you are free.


selection.merge(transition…)?

d3-selection@2 release notes mention:

selection.merge(transition) now throws an error to make it more obvious when you attempt to merge a selection with something that’s not, say because you mistakenly returned a transition from your selection.join’s update function.

However thanks to https://github.com/d3/d3-selection/pull/248 selection.merge could call transition|selection.selection() before merging.
This would simplify a lot the examples in https://observablehq.com/@d3/selection-join.
svg.selectAll("text")
      .data(randomLetters(), d => d)
      .join(
        enter => enter.append("text")
            .attr("fill", "green")
            .attr("x", (d, i) => i * 16)
            .attr("y", -30)
            .text(d => d)
          .transition(t)
            .attr("y", 0), // 🧨
        update => update
            .attr("fill", "black")
            .attr("y", 0)
          .transition(t)
            .attr("x", (d, i) => i * 16), // 🧨
        exit => exit
            .attr("fill", "brown")
           .transition(t)
            .attr("y", 30)
            .remove()
      );

Note that we can already do:
svg.selectAll("text")
      .data(randomLetters(), d => d)
      .join(
        enter => enter.append("text")
            .attr("fill", "green")
            .attr("x", (d, i) => i * 16)
            .attr("y", -30)
            .text(d => d)
          .transition(t)
            .attr("y", 0)
          .selection(), // 🤘
        update => update
            .attr("fill", "black")
            .attr("y", 0)
          .transition(t)
            .attr("x", (d, i) => i * 16)
          .selection(), // 🤘
        exit => exit
            .attr("fill", "brown")
           .transition(t)
            .attr("y", 30)
            .remove()
      );

I like this line of thinking.
Currently the de facto reference example does the following:
    svg.selectAll("text")
      .data(randomLetters(), d => d)
      .join(
        enter => enter.append("text")
            .attr("fill", "green")
            .attr("x", (d, i) => i * 16)
            .attr("y", -30)
            .text(d => d)
          .call(enter => enter.transition(t)
            .attr("y", 0)),
        update => update
            .attr("fill", "black")
            .attr("y", 0)
          .call(update => update.transition(t)
            .attr("x", (d, i) => i * 16)),
        exit => exit
            .attr("fill", "brown")
          .call(exit => exit.transition(t)
            .attr("y", 30)
            .remove())
      );

I think it does not matter what is returned by exit, so that can already be simplified to:
    svg.selectAll("text")
      .data(randomLetters(), d => d)
      .join(
        enter => enter.append("text")
            .attr("fill", "green")
            .attr("x", (d, i) => i * 16)
            .attr("y", -30)
            .text(d => d)
          .call(enter => enter.transition(t)
            .attr("y", 0)),
        update => update
            .attr("fill", "black")
            .attr("y", 0)
          .call(update => update.transition(t)
            .attr("x", (d, i) => i * 16)),
        exit => exit
            .attr("fill", "brown")
          .transition(t)
            .attr("y", 30)
            .remove()
      );

If selection.merge(transition) did what you suggest here (use the underlying selection), then the example could be simplified to:
    svg.selectAll("text")
      .data(randomLetters(), d => d)
      .join(
        enter => enter.append("text")
            .attr("fill", "green")
            .attr("x", (d, i) => i * 16)
            .attr("y", -30)
            .text(d => d)
          .transition(t)
            .attr("y", 0),
        update => update
            .attr("fill", "black")
            .attr("y", 0)
          .transition(t)
            .attr("x", (d, i) => i * 16),
        exit => exit
            .attr("fill", "brown")
          .transition(t)
            .attr("y", 30)
            .remove()
      );

This would be quite nice.

Here's a starting point for a PR that adds this https://github.com/d3/d3-selection/pull/285

Here's an alternative idea that enables the same simplification to usage of .join, but does not touch .merge: https://github.com/d3/d3-selection/pull/286


pallet-swap-action: Change BalanceSwapAction signature

Instead of requiring T: Trait in BalanceSwapAction, we directly
depend on AccountId. This fixes a compilation error on wasm, where
Runtime does not implement Debug, but BalanceSwapAction required it.

@bkchr I just realized that the suggested way I said will not work as its about the T: Debug trait on BalanceSwapAction.
Do you have the code I can reproduce the bug? As I see it doesn't seem like appearing in tests right now.

The problem was that Runtime did not implement Debug in no_std. Leading to this error. This is now fixed, however it is also cleaner to not put Debug bound on T.
This error was not happening in tests, because the tests are not compiled for no_std.

Ping @sorpaas

Sorry I missed this!


Use static values for Python Version and Operating System filters

Description
Follow up from slack discussion: https://chanzuckerbergteam.slack.com/archives/C01NES8FB27/p1621979369047400

@codemonkey800 I don't think the slack discussion is publicly available. Could you summarize it here?


easy-taxonomy for contigs

Not sure if this is a bug or if I am missing a flag that would make this all work as expected.
Expected Behavior
I wish to taxonomically annotate contigs using the mmseqs easy-taxonomy workflow.
I see from your documentation (https://github.com/soedinglab/MMseqs2/wiki#taxonomy-output-and-tsv) that it is possible to calculate the LCA of a contig predicted ORFs. With the output file produced listing the contig_name along with the total number of predicted ORFs and the number of those ORFs with top hits that agree with the assigned LCA of the contig.
Current Behavior
When I run the following command:
mmseqs easy-taxonomy contigs.fasta swissprotDB tax tmp

I get the following results files:
tax_lca.tsv
tax_report
tax_tophit_aln
tax_tophit_report

None of which contain the expected output described in the documentation.
I have had a look at using aggregatetax command, but run into problem with the createtsv command not reassigning the contig names correctly.
mmseqs createdb contigs.fasta contigsDb
mmseqs extractorfs contigsDb orfsAaDb --translate 1
mmseqs taxonomy orfsAaDb swissprotDB taxPerOrf tmp --tax-output-mode 2
mmseqs aggregatetaxweights swissprotDB orfsAaDb_h taxPerOrf taxPerOrf_aln taxPerContig --majority 0.5
mmseqs createtsv orfsAaDb contigsDb taxPerContig aggregatetaxResult.tsv

Your Environment
MMseqs2 Version: 113e3212c137d026e297c7540e1fcd039f6812b1
Pre-compiled binary

Thanks for your help in advance.
Cheers,
Tim.

easy-taxonomy does already what you want
here is the output of one contig of tax_lca.tsv with an added header:
CONTIG_NAME TAX_ID TAX_RANK NAME TOTAL_FRAGS ASSIGNED_FRAGS FRAGS_AGREEMENT
query  3702    species Arabidopsis thaliana    2       2       2       1.000

From what I understand, the last few numbers is what you want right?

So, your results are exactly what I am looking for, however, when I run mmseqs easy-taxonomy bin.1.fa NR bin.1.tax tmp --threads 24, I get the following output.
$ head -n 4 bin.1.tax_lca.tsv
scaffold00022005	2590670	species	Aestuariibacter sp. GS-14
scaffold00022061	1046	family	Chromatiaceae
scaffold00022138	2590670	species	Aestuariibacter sp. GS-14
scaffold00022216	2590670	species	Aestuariibacter sp. GS-14

For some reason, the 'FRAGS' columns are missing from my results file.

Can you post the first few lines of bin.1.fa please?

>scaffold00000068
CTGACGATCAGGCCGGCCGGATCATCGGCGCCGCGGTTGATCCGCAGGCCGGTCGCGAGG
CGCTGGAGGCGGGTGGAGAGGTCGGTGTTCGAGCGGTTCAGGTTGTTCTGCGCAATGAGC
GACGGAACATTCGTATTGATGCGAGCCATGGCAATCCTCCTTGATTGAGAGGCCCTTCGC
GGGAGCAGTCGTCAGGCGGTCTCGCGCCTGGAAGTCGGATTCGCCGCAAGTCGCGCGGCT
GCAGGCAGGACCGTCCCGCCCGGAGTGGCCTTCGCGCCGCGCGAACTCCCGCGCGGGCGG
AGTGAACCAAGCTCGCCACGGAACGCCGCGGCCTGCTGGTTCTCGTTCCTGATGGCGTCG
TACACCTCCTTGCGGTGCACCGCCACGGTTGCCGGCGCCTTGATGCCGATTCGCACCTTG
TCGCCGCGGATATCGACGATCGTGAGTTCGACGTCGTCGCCGATCATGATCGTCTCGTCG
ATCTGTCGTGAGAGCACCAGCATGTGCGGGCTCCTTTCTTGCGGGCATCCATGCCCGGTG

I just looked up when the commit you listed (113e3212c137d026e297c7540e1fcd039f6812b1) is is from and its ancient. please update to the latest release and everything should work fine.

Updating to the most recent version fixed the issue. My apologies, I didn't realize how old my version had gotten.


Implement simple InfluxDB client

Adds a simple InfluxDB client as described in #6. It's important to note that the current implementation does not escape the parameters to the query, so it should not be used with untrusted input.

@wcoenraads Is this waiting on Suvayu's return?

These comments/notifications completely passed me by - apologies! I'll address your comments and update the PR this afternoon.
As for testing, I'm also unsure. Downstream tests relying on these APIs could use mock data, but the influx client should really be tested against the InfluxDB API as that's the thing it interacts with. We could create a setup with a development DB to test against, but that feels like a lot of effort for little gain at the moment.

* Could you wrap the client in a module so that everything InfluxDB is in its own namespace?
  ```julia
  module InfluxDB
  # current contents of influx.jl
  end # module InfluxDB
  ```

* With the above change, maybe it is best to rename `InfluxClient` to just `Client`

Good point on the module!
I've renamed InfluxClient to InfluxDBClient to stay consistent with the official API. I'm also not super familiar with the conventional way to do imports in Julia, but I assume using InfluxDBClient instead of just Client should also help prevent conflicts when importing it.

PS: I think the nightly test failure is due to an upstream packaging issue, ignore for now.

I think it would be more consistent if the file was called influxdb.jl.

Yep, good point - changed!

I can think of two approaches:
[....]

The first approach could work, but seems limited and fragile: tests that can't be run in CI are much less likely to be adhered to, and they would depend on the specifics of an internal DB we only have limited control over.
The second approach is solid, but indeed more work. It might also be beneficial in tests for later components, where we can do end-to-end tests without mocks in between. But that's a concern for later.

Thanks! I merged this, we can workout the tests in a separate PR.

Closes #6


type object 'RetrievalQA' has no attribute 'from_chaintype'

I don't know why I am getting this error I am new to this please help me.

Issue was fixed by something i did. I forgot exactly what I did though


Breaking Inheritance

Hello,
the example in https://github.com/gitlabform/gitlabform/blob/main/docs/reference/index.md#breaking-inheritance states that key_a will be deployed.
I would expect key_b to be deployed. Why else should I break the inheritance? For me, breaking inheritance means to not have key_a in my project.

I believe you're right. It looks like a docs typo.

Thanks for your check, but what is implemented in the code?

#536 should fix the documentation (I realised and tested this feature earlier this week)
The behaviour works as expected, just the documentation needs an update.

Thanks for reporting the issue, @felsgaertner! Documentation is fixed now with @RajasGujarathi's PR. 👍


youtube-dl: 2021.01.16 -> 2<IP_ADDRESS>

https://github.com/ytdl-org/youtube-dl/releases/tag/2<IP_ADDRESS>

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

20.09: 564f4fbd074f4bcd6738bb4151d1e2876a9ec349

20.09: 564f4fbd074f4bcd6738bb4151d1e2876a9ec349


Sidebar Menu not wrapping horizontally after changes for Bootstrap 5.2

Describe the bug
A clear and concise description of what the bug is.
Since the commit https://github.com/railsadminteam/rails_admin/commit/d7abba4e8a2e380b4d7f8fb3b37302300af63de5 the sidebar of rails_admin within my app is broken as it does not add scrolling but the ul list extends horizontally when all the models are extended (i.e., on load of the rails admin dashboard page).
This Image shows the effect.

when i remove the "flex-colum" class that was added in the mentioned commit all looks fine again.

Reproduction steps
Expected behavior
Sidebar show add vertical scrolling
Additional context

rails version: 6.1.7
rails_admin version: 3.1.2
rails_admin npm package version: 3.1.2

I use webpacker to bundle assets and stylesheets. i checked that bootstrap 5.2.2 was used in the rails admin bundle.  The rest of my app is still using bootstrap 4.6 but that is not included in the rails_admin pack.
Add any other context about the problem here.
Any hints why this happens ?

That's my bad, fixed in the master branch 🙇


fix(Button): fix mouse active state

Manually managing the state was unnecessary as we already inject the pseudoClass style for active and cause some bugs like doing a right-click on the button.

Good fix....


nargo_cli: support user defined .nargo location for prover backends

Problem
Currently the nargo_cli automatically defines a path in the user's machine where it stores a .nargo directory. Whenever Nargo is used for building proofs it fetches a Barrentenberg binary and saves it to the .nargo directory.
However, the location of the .nargo directory is defined by an environment variable in nargo_cli making it impossible for the user to redefine it, unless they recompile the cli.
Happy Case
Ideally a command would be supplied in the CLI to define the location of the .nargo package:
nargo configure backend_directory ~/something/.nargo

Project Impact
Nice-to-have
Impact Context
I am building a prove bulding server, that is based on SGX enabled machines to allow faster server side proof generation without compromising user privacy.
SGX's configuration requires us to package all files in a directory so that it can be cryptographicaly signed. As the .nargo location cannot be changed it is outside of this file and SGX cannot sign to attest its version.
Workaround
Yes
Workaround Description
Currently remapping the signature structure in gramine to support different signed file location
Additional Context
No response
Would you like to submit a PR for this Issue?
Maybe
Support Needs
Documentation on building nargo_cli locally to test changes

We actually support using a backend at a custom path by using the NARGO_BACKEND_PATH environment variable.
https://github.com/noir-lang/noir/blob/cb4c1c5264b95d01f69d99f916ced71ad9cdc9d1/tooling/backend_interface/src/lib.rs#L65
You would have to download/move the backend binary into the directory you're loading into SGX yourself but this is possible currently.


Update Zipkin toDomain to handle 128bit traceId and ipv6

clean-up of #342

Coverage remained the same at 100.0% when pulling 018e58c3574d4eb6825ce52ebd3f55c7ac727d43 on zipkin-map-high-traceId-and-ipv6 into 84f1a689cc8a0533da88c653c6c1b013a2199c0e on master.


Update answerkeys.js

There was no 7th april shift 1. 7th april was a sunday, the next two shifts were on 8th april.

Sorry bro
Sent from Outlook for Androidhttps://aka.ms/AAb9ysg

From: timepassuser @.>
Sent: Friday, December 6, 2024 9:11:21 PM
To: timepassuser/Jee-Mains-Marks-Calculator @.>
Cc: Samarth2615 @.>; Author @.>
Subject: Re: [timepassuser/Jee-Mains-Marks-Calculator] Update answerkeys.js (PR #16)
There was no 7th april shift 1. 7th april was a sunday, the next two shifts were on 8th april.
—
Reply to this email directly, view it on GitHubhttps://github.com/timepassuser/Jee-Mains-Marks-Calculator/pull/16#issuecomment-2523522394, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHJ22DOCS2N3YHHZOA3ZEWL2EHASDAVCNFSM6AAAAABS6GSDZOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMRTGUZDEMZZGQ.
You are receiving this because you authored the thread.Message ID: @.***>


sema: diagnose @_spi_available on all platforms

@_spi_available should only be used when the symbol is publically available in some deployment platforms, otherwise, we should use @_spi.

@swift-ci please smoke test

@swift-ci please smoke test

I think this diagnostic overall makes sense, and perhaps this is an edge case, but a missing availability annotation for a specific platform is expected in some circumstances, like for the standard library or any other library that is available at the start of a platform. Therefore enumerating all explicit annotations doesn't really answer the question of whether a declarations is SPI available on all platforms relevant to the module, since declarations are implicitly always available on platforms without annotations. So this diagnostic may be misleading in a small set of scenarios.


Pretty command

Like the minify command but send --pretty to SVGO instead of minifying plugins.

Implemented, published in next release


Nuxt Docs seem broken

Environment
Public nuxt website
Reproduction
Go to https://nuxt.com/docs/getting-started/installation or any other page of the docs
Describe the bug
The public docs seem to be broken currently, I get a 500 on any page:

Additional context
No response
Logs
No response

Facing the same issue here. On one browser I get the 500 error, and on another I get the base paragraph about the topic, but the subtopics flash in for a brief second before disappearing.

No adblockers or such scripts are up, so there's no external interference.

Same issue  :
Chrome:

Firefox:

I was having this issue earlier today but it seems to be working now. I was getting a 500 error on the Firefox for iOS.

I confirm that it is working now, but only partially (personally I can access it  in Edge / Firefox)

However, the problem still persists in Chrome

It seems to have been fixed, I thunk we can close this issue.


[Bug] Error (Xcode): could not compile (various)

Describe the bug
Followed the tutorial (checked and double checked) and I am trying to run flutter run -d {ios_device} on a simple hello world function. Keeps returning the following error when trying to run iOS
Xcode build done.                                           18.3s
Failed to build iOS app
Error (Xcode): cannot find macro `stringify` in this scope
Error (Xcode): cannot find attribute `derive` in this scope
Error (Xcode): cannot find macro `cfg` in this scope
Error (Xcode): cannot find macro `write` in this scope
Error (Xcode): cannot find macro `panic` in this scope
Error (Xcode): cannot find macro `assert` in this scope
Error (Xcode): cannot find macro `debug_assert` in this scope
Error (Xcode): cannot find attribute `test` in this scope
Error (Xcode): cannot find macro `assert_eq` in this scope
Error (Xcode): cannot determine resolution for the macro `vec`
Error (Xcode): cannot find derive macro `Debug` in this scope
Error (Xcode): could not compile `cfg-if` due to 2 previous errors
Error (Xcode): could not compile `atomic` due to 68 previous errors
Error (Xcode): could not compile `libc` due to 3 previous errors
Error (Xcode): requires `sized` lang_item
Error (Xcode): could not compile `dart-sys` due to 346 previous errors
Error (Xcode): could not compile `smallvec` due to 140 previous errors
Error (Xcode): cannot determine resolution for the macro `ptr::addr_of`
Error (Xcode): cannot find macro `format_args` in this scope
Error (Xcode): could not compile `scopeguard` due to 16 previous errors
Error (Xcode): cannot find macro `writeln` in this scope
Error (Xcode): could not compile `num-traits` due to 617 previous errors
Error (Xcode): could not compile `core-foundation-sys` due to 48 previous errors
Error (Xcode): could not compile `anyhow` due to 277 previous errors
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.

Codegen logs with RUST_LOG=debug environment variable
2023/02/14 23:39:26 [INFO] Picked config: Opts { rust_input_path: "/Users/lyledean/flutter/rust_video/rs_devices/src/api.rs", dart_output_path: "/Users/lyledean/flutter/rust_video/lib/bridge_generated.dart", dart_decl_output_path: None, c_output_path: ["/Users/lyledean/flutter/rust_video/ios/Runner/bridge_generated.h"], rust_crate_dir: "/Users/lyledean/flutter/rust_video/rs_devices", rust_output_path: "/Users/lyledean/flutter/rust_video/rs_devices/src/bridge_generated.rs", class_name: "RsDevices", dart_format_line_length: 80, skip_add_mod_to_lib: false, llvm_path: ["/opt/homebrew/opt/llvm", "/usr/local/opt/llvm", "/usr/lib/llvm-9", "/usr/lib/llvm-10", "/usr/lib/llvm-11", "/usr/lib/llvm-12", "/usr/lib/llvm-13", "/usr/lib/llvm-14", "/usr/lib/", "/usr/lib64/", "C:/Program Files/llvm", "C:/msys64/mingw64"], llvm_compiler_opts: "", manifest_path: "/Users/lyledean/flutter/rust_video/rs_devices/Cargo.toml", dart_root: Some("/Users/lyledean/flutter/rust_video"), build_runner: true, block_index: BlockIndex(0), skip_deps_check: false, wasm_enabled: false, inline_rust: false }
2023/02/14 23:39:26 [INFO] Phase: Parse source code to AST, then to IR
2023/02/14 23:39:26 [WARN] Skipping unresolvable module io (tried /Users/lyledean/flutter/rust_video/rs_devices/src/io.rs, /Users/lyledean/flutter/rust_video/rs_devices/src/io/mod.rs, /Users/lyledean/flutter/rust_video/rs_devices/src/bridge_generated/io.rs, /Users/lyledean/flutter/rust_video/rs_devices/src/bridge_generated/io/mod.rs, )
2023/02/14 23:39:26 [INFO] Phase: Transform IR
2023/02/14 23:39:26 [INFO] Phase: Generate Rust code
2023/02/14 23:39:26 [INFO] Phase: Generate Dart code
2023/02/14 23:39:26 [INFO] Phase: Generating Dart bindings for Rust
Running in Directory: '/Users/lyledean/flutter/rust_video'
Input Headers: [/var/folders/9s/5pq0sl5507d8xzd3shmht_8h0000gn/T/.tmpMpfm4L.h]
[SEVERE] : Header /var/folders/9s/5pq0sl5507d8xzd3shmht_8h0000gn/T/.tmpMpfm4L.h: Total errors/warnings: 180.

Finished, Bindings generated in /var/folders/9s/5pq0sl5507d8xzd3shmht_8h0000gn/T/.tmp2wHXQC
the path is "/Users/lyledean/flutter/rust_video/ios/Runner/bridge_generated.h"
2023/02/14 23:39:27 [INFO] Phase: Running build_runner
2023/02/14 23:39:27 [INFO] Phase: Formatting Dart code
Formatted /Users/lyledean/flutter/rust_video/lib/bridge_generated.dart
Formatted 1 file (1 changed) in 0.10 seconds.
2023/02/14 23:39:27 [INFO] Success!
2023/02/14 23:39:27 [INFO] Now go and use it :)

To Reproduce
flutter run -d {ios_device}
Expected behavior
No response
Generated binding code
// AUTO GENERATED FILE, DO NOT EDIT.
// Generated by `flutter_rust_bridge`@ 1.63.1.
// ignore_for_file: non_constant_identifier_names, unused_element, duplicate_ignore, directives_ordering, curly_braces_in_flow_control_structures, unnecessary_lambdas, slash_for_doc_comments, prefer_const_literals_to_create_immutables, implicit_dynamic_list_literal, duplicate_import, unused_import, unnecessary_import, prefer_single_quotes, prefer_const_constructors, use_super_parameters, always_use_package_imports, annotate_overrides, invalid_use_of_protected_member, constant_identifier_names, invalid_use_of_internal_member

import 'dart:convert';
import 'dart:async';
import 'package:meta/meta.dart';
import 'package:flutter_rust_bridge/flutter_rust_bridge.dart';

import 'dart:ffi' as ffi;

abstract class RsDevices {
  Future<void> helloWorld({dynamic hint});

  FlutterRustBridgeTaskConstMeta get kHelloWorldConstMeta;
}

class RsDevicesImpl implements RsDevices {
  final RsDevicesPlatform _platform;
  factory RsDevicesImpl(ExternalLibrary dylib) =>
      RsDevicesImpl.raw(RsDevicesPlatform(dylib));

  /// Only valid on web/WASM platforms.
  factory RsDevicesImpl.wasm(FutureOr<WasmModule> module) =>
      RsDevicesImpl(module as ExternalLibrary);
  RsDevicesImpl.raw(this._platform);
  Future<void> helloWorld({dynamic hint}) {
    return _platform.executeNormal(FlutterRustBridgeTask(
      callFfi: (port_) => _platform.inner.wire_hello_world(port_),
      parseSuccessData: _wire2api_unit,
      constMeta: kHelloWorldConstMeta,
      argValues: [],
      hint: hint,
    ));
  }

  FlutterRustBridgeTaskConstMeta get kHelloWorldConstMeta =>
      const FlutterRustBridgeTaskConstMeta(
        debugName: "hello_world",
        argNames: [],
      );

  void dispose() {
    _platform.dispose();
  }
// Section: wire2api

  void _wire2api_unit(dynamic raw) {
    return;
  }
}

// Section: api2wire

// Section: finalizer

class RsDevicesPlatform extends FlutterRustBridgeBase<RsDevicesWire> {
  RsDevicesPlatform(ffi.DynamicLibrary dylib) : super(RsDevicesWire(dylib));

// Section: api2wire

// Section: finalizer

// Section: api_fill_to_wire

}

// ignore_for_file: camel_case_types, non_constant_identifier_names, avoid_positional_boolean_parameters, annotate_overrides, constant_identifier_names

// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.

/// generated by flutter_rust_bridge
class RsDevicesWire implements FlutterRustBridgeWireBase {
  @internal
  late final dartApi = DartApiDl(init_frb_dart_api_dl);

  /// Holds the symbol lookup function.
  final ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
      _lookup;

  /// The symbols are looked up in [dynamicLibrary].
  RsDevicesWire(ffi.DynamicLibrary dynamicLibrary)
      : _lookup = dynamicLibrary.lookup;

  /// The symbols are looked up with [lookup].
  RsDevicesWire.fromLookup(
      ffi.Pointer<T> Function<T extends ffi.NativeType>(String symbolName)
          lookup)
      : _lookup = lookup;

  void store_dart_post_cobject(
    DartPostCObjectFnType ptr,
  ) {
    return _store_dart_post_cobject(
      ptr,
    );
  }

  late final _store_dart_post_cobjectPtr =
      _lookup<ffi.NativeFunction<ffi.Void Function(DartPostCObjectFnType)>>(
          'store_dart_post_cobject');
  late final _store_dart_post_cobject = _store_dart_post_cobjectPtr
      .asFunction<void Function(DartPostCObjectFnType)>();

  Object get_dart_object(
    int ptr,
  ) {
    return _get_dart_object(
      ptr,
    );
  }

  late final _get_dart_objectPtr =
      _lookup<ffi.NativeFunction<ffi.Handle Function(uintptr_t)>>(
          'get_dart_object');
  late final _get_dart_object =
      _get_dart_objectPtr.asFunction<Object Function(int)>();

  void drop_dart_object(
    int ptr,
  ) {
    return _drop_dart_object(
      ptr,
    );
  }

  late final _drop_dart_objectPtr =
      _lookup<ffi.NativeFunction<ffi.Void Function(uintptr_t)>>(
          'drop_dart_object');
  late final _drop_dart_object =
      _drop_dart_objectPtr.asFunction<void Function(int)>();

  int new_dart_opaque(
    Object handle,
  ) {
    return _new_dart_opaque(
      handle,
    );
  }

  late final _new_dart_opaquePtr =
      _lookup<ffi.NativeFunction<uintptr_t Function(ffi.Handle)>>(
          'new_dart_opaque');
  late final _new_dart_opaque =
      _new_dart_opaquePtr.asFunction<int Function(Object)>();

  int init_frb_dart_api_dl(
    ffi.Pointer<ffi.Void> obj,
  ) {
    return _init_frb_dart_api_dl(
      obj,
    );
  }

  late final _init_frb_dart_api_dlPtr =
      _lookup<ffi.NativeFunction<ffi.IntPtr Function(ffi.Pointer<ffi.Void>)>>(
          'init_frb_dart_api_dl');
  late final _init_frb_dart_api_dl = _init_frb_dart_api_dlPtr
      .asFunction<int Function(ffi.Pointer<ffi.Void>)>();

  void wire_hello_world(
    int port_,
  ) {
    return _wire_hello_world(
      port_,
    );
  }

  late final _wire_hello_worldPtr =
      _lookup<ffi.NativeFunction<ffi.Void Function(ffi.Int64)>>(
          'wire_hello_world');
  late final _wire_hello_world =
      _wire_hello_worldPtr.asFunction<void Function(int)>();

  void free_WireSyncReturn(
    WireSyncReturn ptr,
  ) {
    return _free_WireSyncReturn(
      ptr,
    );
  }

  late final _free_WireSyncReturnPtr =
      _lookup<ffi.NativeFunction<ffi.Void Function(WireSyncReturn)>>(
          'free_WireSyncReturn');
  late final _free_WireSyncReturn =
      _free_WireSyncReturnPtr.asFunction<void Function(WireSyncReturn)>();
}

class _Dart_Handle extends ffi.Opaque {}

typedef DartPostCObjectFnType = ffi.Pointer<
    ffi.NativeFunction<ffi.Bool Function(DartPort, ffi.Pointer<ffi.Void>)>>;
typedef DartPort = ffi.Int64;
typedef uintptr_t = ffi.UnsignedLong;

OS
MacOS M1
Version of flutter_rust_bridge_codegen
1.62.1
Flutter info
[!] Flutter (Channel stable, 3.7.3, on macOS 13.0 22A380 darwin-arm64, locale en-GB)
    • Flutter version 3.7.3 on channel stable at /Users/lyledean/development/flutter
    ! Warning: `dart` on your path resolves to /opt/homebrew/Cellar/dart/2.18.7/libexec/bin/dart, which is not inside your current Flutter SDK checkout at
      /Users/lyledean/development/flutter. Consider adding /Users/lyledean/development/flutter/bin to the front of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision<PHONE_NUMBER> (6 days ago), 2023-02-08 15:46:04 -0800
    • Engine revision 248290d6d5
    • Dart version 2.19.2
    • DevTools version 2.20.1
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
   [Can ignore since I've not set this up and not using Android at the moment]

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14C18
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.64.2)
    • VS Code at /Users/lyledean/Downloads/archive_04072022/Visual Studio Code.app/Contents
    • Flutter extension version 3.58.0

[✓] VS Code (version 1.68.1)
    • VS Code at /Users/lyledean/Downloads/archive_04072022/Visual Studio Code-2.app/Contents
    • Flutter extension version 3.58.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • B8BD71E5-4C6D-4426-998F-738D9E225EA9 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
    • macOS (desktop)            • macos                                • darwin-arm64   • macOS 13.0 22A380 darwin-arm64
    • Chrome (web)               • chrome                               • web-javascript • Google Chrome 110.0.5481.100

[✓] HTTP Host Availability
    • All required HTTP hosts are available

Version of clang++
15.0.7
Version of ffigen
6.1.1
Additional context

Hmm can you compile the rust program itself? Or maybe follow the tutorial and/or the template

I ran cargo build inside the rust folder which worked fine, also cleaned the folder, and tried different versions flutter_rust_bridge_codegen
With the tutorial I ran through the iOS set up methodically a few times and made sure I didn't miss anything
Imagine from the error it's something to do with the linking?
I also tried running the example app and had a basic app that I was running in August (version 1.41.1) that didn't work either today

Hmm maybe need more logs for e.g. Error (Xcode): cannot find macro stringify in this scope

And maybe try the template

Thanks for all the help @fzyzcjy and quick response. I did a bit of digging after using flutter run -d {id} --verbose and turns out there was an issue with the rustup targets for the ios arch. I realised I had two rust versions installed, one with brew and one with the rust script - essentially just uninstalled the brew version and then it was pointing to the correct rust (and the one with the targets)! So this is working now.
Also awesome library 🚀 🙇 !

You are welcome and happy to see the problem is solved!


MultinomialClassifier does not seem consistent

Hello,
I'm currently trying to use the LogisticClassifier in a multiclass setting. If I'm correct, using a synthetic dataset with a softmax, the model should be able to retrieve the correct coefficients is that right? If so, this does not seem to be the case. Moreover, the result returned by fitted_params only returns the n-1 coefficients vectors even when fit_intercept is set to false. Below is a sample code to reproduce the issue. Let me know if there is anything wrong with either my understanding or the use case.
Thanks
using MLJ
using StatsBase
using StableRNGs

LogisticClassifier = @load LogisticClassifier pkg=MLJLinearModels

rng = StableRNG(123)

# Dataset sampled according to a softmax
n = 10000
X = rand(rng, n, 3)
θ = [ 1 2 -3 4;
     2 -3 2 -2;
     -1 3 -1 2]
M = exp.(X*θ)
mu = M  ./ sum(M, dims=2)
y = categorical([sample(rng, [1, 2, 3, 4], Weights(mu[i, :])) for i in 1:n])

# Fitting
mach = machine(LogisticClassifier(fit_intercept=false, lambda=0, gamma=0), MLJ.table(X), y)
fit!(mach)
fp = fitted_params(mach)

# Inspection
# Only 8 params
fp.coefs
# Here 12 params but don't seem to match the truth while the model is correctly specified
mach.fitresult[1]

Ok I think there's a few issues with your example, below some code that is purely MLJLM to make things simpler and less confusing.
One main issue you have in your code is that your dimensions don't match what's expected. The model in the package is that X is n x p where n is the number of points and p the number of classes. Correspondingly, the parameters (when there's no intercept) are p x c where c is the number of classes.
There's a mixup in your code with 3s and 4s as far as I can see.
The code below does a fit of something like your example:
Generate points
I don't use StatsBase just so that we remove confounding factors
using StableRNGs, MLJLinearModels
rng = StableRNG(123)

n = 10_000
p = 4           # number of features
c = 3           # number of classes
X = rand(rng, n, p)
θ = permutedims([ 1 2 -3 4;
      2 -3 2 -2;
     -1 3 -1 2])          # this is now p * c, note the permutedims
M = exp.(X * θ)
Mn = M ./ sum(M, dims=2)

# basic sampling from a multinomial (you can ignore that if you want)
be = reshape(rand(rng, n * c), n, c)
y  = zeros(Int, n)
@inbounds for i in eachindex(y)
    rp = 1.0
    for k in 1:c-1
        if (be[i, k] < Mn[i, k] / rp)
            y[i] = k
            break
        end
        rp -= Mn[i, k]
    end
end
y[y .== 0] .= c

Fit stuff and compute the objective
λ = 1

mnr = MultinomialRegression(λ; fit_intercept=false)
J = objective(mnr, X, y; c=c)
θ̂ = fit(mnr, X, y)

@show J(reshape(θ, p*c))
@show J(θ̂)

θ̂_reshaped = reshape(θ̂, p, c)

the last item has dimensions p x c with the same meaning as the generating theta. the J(...) computes the objective function corresponding to the classifier
Running this I get that the objective for the generating parameter is 7331.75 and that for the fitted parameters is 7322.00 (i.e., slightly less, but that doesn't matter much, what matters is that they're close, so in terms of ML we're doing a good job).
Are the parameters close? no. Should they be? not really no. The only thing that matters is the objective function and finding a set of parameters that minimises it. You might see a convergence if you generate huge quantities of points but I think there'll be numerical issues before you see what you hope to see.
Maybe I'm not credible, how about scikit learn?
Scikit Learn is a pretty mature package, maybe that we can check what they get and see whether that looks more reasonable than what MLJLM gives, maybe that can act as some form of credible arbiter

# using Conda
# Conda.add("scikit-learn")

using PyCall
SKLEARN_LM = pyimport("sklearn.linear_model")

mnr_sk = SKLEARN_LM.LogisticRegression(
            C=1, multi_class="multinomial", fit_intercept=false,
            random_state=555)
mnr_sk.fit(X, y)

θ_sk = vec(mnr_sk.coef_')
@show J(θ_sk)

θ_sk_reshaped = reshape(θ_sk, p, c)

maximum(abs.(θ̂_reshaped - θ_sk_reshaped) / maximum(θ_sk_reshaped)) * 100

if you run this, the last command will give you something under 5% indicating that the relative difference between what MLJLM gives and what SKL finds is pretty close. Are any of those close to the generating theta? still no.
What about the objective?

MLJLM is 7322.00 as before
SKL gives 7322.00 i.e. exactly the same

So if you're inclined to believe SKL then basically MLJLM does something very similar. I'm not saying MLJLM is perfect (and if anything having better docs might have prevented your mixup of dimensions) but I think that for the basic case it's doing an ok job.
I hope this clarifies stuff a bit!

Hi Thibault and thank you for your quick answer!
Obviously there is something I misundertstand about the multinomial regression. Maybe you can clarify it further, that would be much appreciated.

Fitted_params

I don't understand why you say there is a mismatch in dimensions: I intended X to be (n,3) and y from 4 categories. With that in mind I expect the coefficients to be represented by a (3, 4) matrix, or (4,3) depending on how you represent it (considering that I set fit_intercept=false). But the fitted_params function only returns 8 in the example I provide (while the fitresult[1] has 12 as I would have expected).

The fitted parameters are not equal to the truth

My belief is that we are doing maximum likelihood estimation, so if the model is correctly specified (not overly parameterized with an intercept for instance), the estimator should be consistent and converge to the truth. As you show, It seems not to be the case. I don't really understand why this is the case, maybe the loss function used is not the negative loglikelihood?
Thanks for your help!

It might have been me getting confused by your code. Using p=3 and c=4 is perfectly fine of course, you can run the same code as I provided and just remove permutedims, everything else will hold.
In terms of dimensions, with fit_intercept = false you'll get a vector of 12 elements which is p * c, you reshape it as reshape(theta, p, c). if you do fit_intercept=true you'll get a vector of 16 elements which is (p+1) * c.
In terms of the fit, I think we're probably talking past each other. If you use a super simple model (like a linear regression with two parameters), and you use a huge number of points with a centred distribution then eventually yes, you will get a convergence to the generating parameters. This is what the theory tells you. But in practice you never really get to that regime as soon as the dimensionality of the problem starts increasing. This doesn't mean that anything is "wrong", it's just that the objective function guides you to anything that has a good error metric, and as I was hoping to show above it's often the case that your generating parameters give a worse objective than the fitted parameters when you have finitely many points.
Maybe I could have made my point simpler by just saying: if you want to check whether a package is doing something reasonable, the only thing you can effectively check is whether the objective function is minimised. Checking whether the recovered parameters are close to the generating ones is generally not. This is why I showed you the comparison with the objective function you get from here and from sklearn to show that you get an identical objective.
PS: yes the loss function is the negative log likelihood, you can inspect this here if you'd like: https://github.com/JuliaAI/MLJLinearModels.jl/blob/6d4b4886ba0494793de8d256c1ecdabef0c8beaa/src/loss-penalty/standard.jl#L95-L129

Sorry, I realize  the title of my issue might sound aggressive, it is not intended as so and I don't mean that the package is broken in any way. That being said:

Regarding the fitted_params for the MLJ interface function: looking at this line shouldn't W be passed instead of W[1:end-1, :] when fit_intercept=false?

Regarding the convergence to the truth: I think you are right, and I don't conclude that the package is doing anything wrong. You are reasoning in terms of ML while I'm interested in asymptotic statistical behavior. I just conclude that either I miss some theoretical thing or the package (or simply multinomial regression) is not exactly doing what I thought it would. To illustrate, the following code shows that there is indeed some convergence in the limit of N but the estimate is biased. I need to investigate this further.

using MLJ
using StatsBase
using StableRNGs
using MLJLinearModels
using Plots

LogisticClassifier = @load LogisticClassifier pkg=MLJLinearModels

rng = StableRNG(123)

θ = [ 1 2 -3 4;
     2 -3 2 -2;
     -1 3 -1 2]

all_fitted_params = []
ns = convert(Vector{Int}, [1e3, 1e4, 1e5, 1e6, 1e7])

for n in ns
    # Data generation
    X = rand(rng, n, 3)
    M = exp.(X*θ)
    mu = M  ./ sum(M, dims=2)
    y = categorical([sample(rng, [1, 2, 3, 4], Weights(mu[i, :])) for i in 1:n])
    # Fitting
    mach = machine(LogisticClassifier(fit_intercept=false, lambda=0, gamma=0), MLJ.table(X), y)
    fit!(mach)
    # Parameter extraction
    params = mach.fitresult[1]
    push!(all_fitted_params, params)
end

distance(θ₁, θ₂) = maximum(abs.(θ₁ - θ₂) / maximum(θ₂)) * 100

distances_to_asymptotic = [distance(p, all_fitted_params[end]) for p in all_fitted_params]

distances_to_truth = [distance(reshape(p, :, 4), θ) for p in all_fitted_params]

plot(ns, distances_to_asymptotic, label="Distance to the asymptotic limit")
plot!(ns, distances_to_truth, label="Distance to the truth")

Sorry, I realize the title of my issue might sound aggressive, it is not intended as so and I don't mean that the package is broken in any way. That being said:

no worries at all, I didn't take it as such, sorry if I was sounding too defensive

Regarding the fitted_params for the MLJ interface function: looking at this line shouldn't W be passed instead of W[1:end-1, :] when fit_intercept=false?

Yes! thanks I got sidetracked in the discussion and should have also checked the interface was correct there. Thanks for this, fix on its way.


Incorrect error moment.min() -> moment.min

Currently the errors read like this:

Deprecation warning: moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/

This error should read:

Deprecation warning: moment().max is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/

The functionality changed; actually the docs are correct. https://github.com/moment/moment/issues/3389


ES6 destructuring on import throws an error

In the project I'm working on, we're using ES6 imports. tslint 2.2.0-beta is throwing an error attempting to parse it. For instance:
import { foo } from 'bar';

Produces the following backtrace:
/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/build/rules/noUnusedVariableRule.js:52
                this.validateReferencesForVariable(name.text, name.getStart())
                                                       ^
TypeError: Cannot read property 'text' of undefined
    at NoUnusedVariablesWalker.visitImportDeclaration (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/build/rules/noUnusedVariableRule.js:52:56)
    at NoUnusedVariablesWalker.SyntaxWalker.visitNode (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:41611:26)
    at /Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:41707:67
    at visitEachNode (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:5928:30)
    at Object.forEachChild (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:6070:24)
    at NoUnusedVariablesWalker.SyntaxWalker.walkChildren (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:41707:16)
    at NoUnusedVariablesWalker.SyntaxWalker.visitSourceFile (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:41495:18)
    at NoUnusedVariablesWalker.SyntaxWalker.visitNode (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:41671:26)
    at NoUnusedVariablesWalker.SyntaxWalker.walk (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:41348:18)
    at Rule.AbstractRule.applyWithWalker (/Users/bryan/Projects/dojo/dojo2/dojo-core/node_modules/tslint/bin/tslint-cli.js:42358:24)

This effectively makes the latest version of tslint useless for projects using the new ES6 module syntax.

+1, This bug is present at least in:

noUnusedVariableRule
noUseBeforeDeclareRule
whitespaceRule

+1

+1

+1

+1

+1

+1

Any progress in this area? It's becoming a major inconvenience in our stack.

@Dynom you can see the progress here :  #411.
Also as a temporary fix you can delete the three rules mentioned above.

@Dynom yep, we're working on it!
#411, which should fix this problem for the no-unused-variable rule, has merged.
I just opened #420, which updates no-use-before-declare for the new module syntax.

Thanks for the feedback guys, I've muted the situation by adding a few additional checks in the linter until it's properly fixed. I greatly appreciate all the hard work!

It looks like we can close this. I just tried the example with the most up-to-date version and there are no problems.

@leeavital What version exactly? Just curious. I'm on tslint 2.2.0-beta + gulp-tslint ^3.0.1-beta + typescript ^1.5.0-beta and I'm still having this issue. Not aware of anything more up-to-date.
I can lint if I remove whitespace and no-use-before-declare rules.

@areologist I'm should have mentioned I'm running from source.  This will be fixed in version 2.3.0.

Awsome. Thank you @leeavital.


Unable to respawn

Using player-roles-1.4.0
Unable to re-spawn after dieing.
In the console during this time:
java.lang.NullPointerException: player roles were not initialized
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:787) ~[fabric-server-launch.jar:?]
        at net.minecraft.class_3222.getPlayerRoleSet(class_3222.java:1715) ~[intermediary-server.jar:?]
        at net.minecraft.class_3222.handler$zze000$copyFrom(class_3222.java:1727) ~[intermediary-server.jar:?]
        at net.minecraft.class_3222.method_14203(class_3222.java) ~[intermediary-server.jar:?]
        at net.minecraft.class_3324.method_14556(class_3324.java:471) ~[intermediary-server.jar:?]
        at net.minecraft.class_3244.method_12068(class_3244.java:1374) ~[intermediary-server.jar:?]
        at net.minecraft.class_2799.method_12120(class_2799.java:24) ~[intermediary-server.jar:?]
        at net.minecraft.class_2799.method_11054(class_2799.java:6) ~[intermediary-server.jar:?]
        at net.minecraft.class_2600.method_11072(class_2600.java:21) ~[intermediary-server.jar:?]
        at net.minecraft.class_3738.run(class_3738.java:18) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_18859(class_1255.java:151) ~[intermediary-server.jar:?]
        at net.minecraft.class_4093.method_18859(class_4093.java:23) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_24306(MinecraftServer.java:783) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_18859(MinecraftServer.java:167) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_16075(class_1255.java:125) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_20415(MinecraftServer.java:765) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_16075(MinecraftServer.java:759) ~[intermediary-server.jar:?]
        at net.minecraft.class_1255.method_18857(class_1255.java:134) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_16208(MinecraftServer.java:744) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.handler$zkm000$modifiedRunLoop(MinecraftServer.java:5402) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) ~[intermediary-server.jar:?]
        at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:274) ~[intermediary-server.jar:?]
        at java.lang.Thread.run(Thread.java:831) [?:?]

this happens to me as well.

#32 was a similar issue, which I think Gegy fixed soon after. Try re-downloading the mod from the releases page, you might be having an older version of Player Roles 1.4.0.
(What I can't figure out is how/why it was preventing players to respawn; I don't think there's a feature/command which can stop players from respawning ¯_(ツ)/¯)_

Yes I had seen your report.  I grabbed this, https://github.com/Gegy/player-roles/releases/download/v1.4.0/player-roles-1.4.0.jar
Fwiw, I died before doing any kind of configuration.

Pushed a release to fix this: https://github.com/Gegy/player-roles/releases/tag/v1.4.1 🙂


Pay pay

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

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

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

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]
Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Thanks for your interest in PayPay's SDKs.
I'm going to close this issue because it looks like it has been opened by mistake.
If you have a problem or question to raise, feel free to open a new issue.


Site nav enhancements

This makes tabbing through the site a little easier. Currently when you visit the home page you have to tab through each til, any links in it, all the buttons, etc. Now when you visit the site and tab navigate, you should tab right through the navigation first.
There was also an issue with the search, currently it was just width 0, which allowed you tab into it, but you couldn't see what you were doing. Now you can choose to open it (return), or keep tabbing to the next nav item.
Fixes #641

Coverage remained the same at 84.01% when pulling 86e6088462af9415ab90994808ccb1676b010dec on tmock12/site-nav-enhancements into 15f2f23eda3e8e5daaf80bb00c05fcd99bfcdb7c on master.

Great UX / a11y improvement; thanks very much @tmock12!


dispatch notifications on the main thread

#trivial
cc @ashfurrow - The changes you requested to prevent eigen ui updates from running off the main thread.

Fails

:no_entry_sign:

This PR includes changes to the Emission Pod's native code but does not have a package.json
change for the update to the "native-code-version". If this is fine, add #native_no_changes to your PR message.

  Generated by :no_entry_sign: dangerJS


Display Arrangement by Physical Screen Size

This feature would allow for users to arrange their displays based on their actual screen size (physical dimensions) rather than by resolution (which is how Windows handles it by default).
What is the expected behavior of the proposed feature?  What is the scenario this would be used?
By default, the way Windows determines how big a display is for how you can arrange your displays is determined by the resolution of your displays. This feature would allow for users to specify a physical size for their displays arrange their displays so that they can align them better.
To give an example, if you have a 4k monitor that is the same size as a 1080p monitor, you can't align the two without reducing the 4k monitor's resolution. If you have a massive 720p CRT next to a smaller 1080p monitor, that 720p CRT will not be scaled right in comparison to the 1080p monitor.

If you'd like to see this feature implemented, add a 👍 reaction to this post.

@Dogs777
can you explain what is the user scenario that requires this functionality?

If you have a 4k monitor and a 1080p monitor, even if all of their screens are the same size physically, due to how Windows by default determines display size (by resolution), it is impossible to align them correctly without reducing the 4k monitor's resolution. This is because the default scaling method makes it so that a 1080p monitor is 50% of the 4k monitor's size. In practice, if two 1080p monitors (even if the same size as a 4k monitor) are side by side horizontally or vertically, they would both together be the same size as the 4k monitor horizontally or vertically respectively according to the software, making window alignment without reducing the 4k resolution impossible.
This feature would allow for users to specify physical screen sizes with dimensions and make it so that the monitors are aligned accurately, resolution independent.

@Dogs777
it's very unclear what you mean with:

it is impossible to align them correctly

A user scenario means: what the user is trying to do, not how to obtain the feature.
You are describing how the feature should be obtained, but it's still very unclear what is the purpose to obtain what you described.
Example: I want to be able to zoom a window so it covers both monitors.

Sorry for my poor explanation. It's hard to describe this scenario as it directly ties into the problem at hand. If somebody thinks they can do a better explanation they're more than welcome to try explaining this.
To try describing it better, let's say a user has a user has a 4k monitor, a 1080p monitor over top of that 4k monitor, and a 1080p monitor to the right of the first 1080p monitor, all the same size. If the user wants to move from the left of the 4k monitor to the left of the topmost 1080p monitor, they can't do that without aligning the 1080p monitor in the display settings to the left. While this would let them move from the left on the 4k monitor to the left on the 1080p monit, this in turn makes it so that they can't move from the right of the 4k monitor to the right of the 1080p monitor or vise versa. Every other place the user tries moving their cursor to on that window is also not aligned so only the far left goes from point a to point b accurately.
I can tell just by trying to write it out that it is still very confusing so I made illustration of what the physical layout is and how it should be laid out in the display settings for the cursor to transition smoothly between monitors (left). On the right is an illustration of how the windows are seen in the software (right):

This is what I mean when I say "it is impossible to align them correctly without reducing the 4k monitor's resolution." You literally need to reduce the resolution in order to align them correctly.
Essentially, even though the displays are all the same size physically, a user cannot arrange them as they are physically in the software. That is why a PowerToy for setting a screen's physical dimensions would be extremely useful. It would allow for a user to smoothly transition their cursor between displays of differing resolutions without issues relating to window alignment.

@Dogs777
OK thanks for the explanation, now it's clear what the scenario is and it is particular case of what has ben asked in https://github.com/microsoft/PowerToys/issues/1226
Feel free to add there the illustration you made, since it's a special case that needs to be addressed as well.
I'll close this issue.
Thanks!


autofocus is not working as expected

autofocus is not working as expected. Has been reported as a bug in November 2015 but was closed as unfixable: https://github.com/emberjs/ember.js/issues/12589 Should we address this in ember-bootstrap?
HTML5 spec only addresses handling of autofocus on document load:

Note: This handles the automatic focusing during document load.
https://www.w3.org/TR/html5/forms.html#autofocusing-a-form-control:-the-autofocus-attribute

I see three possibilities:

Just add this to docs.
Remove not working autofocus property.
Add a work-a-round to fix it.

A possible work-a-round would be (not tested yet):
// in ember-bootstrap/addon/components/bs-input.js
autofocus: on('didInsertElement', function() {
  if (this.get('autofocus')) {
    this.$().focus();
  }
});

You are certainly right about this. Actually this property was introduced in a different context, for the bs-modal component, by https://github.com/kaliber5/ember-bootstrap/pull/60. I guess adding this to the documentation makes sense. I am not so sure about adding a work-around, introducing a different behavior that what the specs say...

I had a similar issue, and in addition to this work-around I had to specify the class name within "this.$().focus()" to get it to work:
this.$('input').focus();

Closing this as there is no global bs-input anymore


Feature request: performance improvements

This issue aims to centralize all concerns related to performance and what actions Sandpack is taking to solve them.
How to skip the transpiled step? Or how to load pre-transpiled code?
We have already addressed an internal solution for it, which aims to cache all compiled files and share them between sandboxes with the same dependencies.
Why codesandbox.io loads faster than Sandpack?
We use the exact same bundler in codesandbox as is published with the sandpack package, so actual bundling/transformation speed should be identical. However, on CodeSandbox we have a server-side redis cache which makes initial loads almost instant as it does not need to transpile anything initially. Again, we have some things planned to make this better for all sandpack users (a cache that isn't tied to a sandbox and some other improvements).
Related https://github.com/codesandbox/sandpack/issues/292, https://github.com/codesandbox/sandpack/issues/271, https://github.com/codesandbox/sandpack/discussions/259

This is sounding really promising!
In the meantime, I've hacked together a working solution for loading pre-transpiled code here:
https://github.com/christian-schulze/codesandbox-client/commit/c5330188ae4477961339490cc94416ab7bef716a
Looking forward to making use of the official feature when its ready :gift:

I'm thrilled to hear you're working on this 💯
In my own usecase, I have a "fullscreen" button that transfers to a new Sandpack in a Portal. Right now, there's a really noticeable transpile step as the component has to start from scratch:
https://user-images.githubusercontent.com/6692932/150875286-46f3abe5-dff1-42ed-94d8-53e549afc194.mp4
If I only have to pay that transpile cost when the page first loads, it would greatly improve the user experience.
Thanks so much for your work on this project!

@danilowoz Could you provide a time frame when the cache feature could be released? Are we talking weeks or months?

@danilowoz Will TypeScript be supported?

Is this already available in #375?

ok, let's make it official, please read https://github.com/codesandbox/sandpack/discussions/416
😄

@joshwcomeau I'm curious to know if you gave the new bundler a try. We made some significant improvements and progress toward removing dependencies and transpile overhead. Feel free to direct me on Twitter or discord to discuss more about it, I'm looking forward to understanding how we can help you.


[IN] New Version Testing Issue - different failure modes

Catalysts-POSCARs-brokenExtension.zip

Catalysts-POSCARs-brokenPOSCAR.zip


PreComp crashed on big file (ERROR: 3)

PreComp 0.46 (64 bit), Win 10 x64.
Files in dir after crash (file starting with D5803 - source):
~temp00000000.dat (0 B)
~temp000000000.dat (16382 B)
~temp000000001.dat (1735 MB)
~temp000000001.dat_ (2241 MB)
D5803 23.5.A.1.291 Customized RU 1289-0445 R3D (by skapunkcsd90@4pda).ftf (1616 MB)
precomp.exe (1515 KB)
Command line:
precomp.exe -cn -intense -brute "D5803 23.5.A.1.291 Customized RU 1289-0445 R3D (by skapunkcsd90@4pda).ftf"
(and with compression, -cl, - same thing)
94.04% -
ERROR 3: There is not enough space on disk
Even other PC and OS - same position (94.04%) and same error 3. Other similar FTF files >1GB size - same issue (other pos). But for 700 MB file works fine.
Path to folder - C:\PreComp. Disk C is NTFS, 652 GB free.

The temporary file with an underscore is recursion input, so recursion might have problems with streams >2 GB. There are several things you can try:

Run with "-cn -intense -brute -d0" - might resolve the error if it is due to recursion.
Run with "-cn -intense -brute -v" - this will enable verbose mode so you should see more information before the error occurs. If you do this, you can post the last messages here, it might help me fixing the bug.
Upload one of the files where the error occurs somewhere so I can reproduce the problem.

This file - https://cloud.mail.ru/public/Ju55/8e5Z3UZGo
Log with -v:
`(82.37%) Possible zLib-Stream in multiPNG found at position<PHONE_NUMBER>, windowbits = 15
Compressed size: 188859
Can be decompressed to 1920800 bytes
No matches
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 3284
uncompressed size: 3284
file name length: 32
extra field length: 0
(82.38%) Possible zLib-Stream in PNG found at position<PHONE_NUMBER>, windowbits = 14
Compressed size: 3221
Can be decompressed to 12352 bytes
No matches
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 5993
uncompressed size: 5993
file name length: 31
extra field length: 3
(82.38%) Possible zLib-Stream in PNG found at position<PHONE_NUMBER>, windowbits = 14
Compressed size: 5930
Can be decompressed to 12352 bytes
No matches
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 594
uncompressed size: 594
file name length: 36
extra field length: 1
(82.38%) Possible zLib-Stream in PNG found at position<PHONE_NUMBER>, windowbits = 9
Compressed size: 162
Can be decompressed to 272 bytes
Identical recompressed bytes: 162 of 162
Identical decompressed bytes: 272 of 272
Best match with level combination 98: 162 bytes, decompressed to 272 bytes
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 4303
uncompressed size: 4303
file name length: 37
extra field length: 3
(82.38%) Possible zLib-Stream in PNG found at position<PHONE_NUMBER>, windowbits = 14
Compressed size: 4240
Can be decompressed to 12352 bytes
No matches
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 30716
uncompressed size: 30716
file name length: 41
extra field length: 2
(82.38%) Possible zLib-Stream in multiPNG found at position<PHONE_NUMBER>, windowbits = 15
Compressed size: 30617
Can be decompressed to 97380 bytes
No matches
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 10650
uncompressed size: 10650
file name length: 30
extra field length: 0
(82.38%) Possible zLib-Stream in multiPNG found at position<PHONE_NUMBER>, windowbits = 15
Compressed size: 10575
Can be decompressed to 36960 bytes
No matches
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 257
uncompressed size: 520
file name length: 19
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 257
Can be decompressed to 520 bytes
Identical recompressed bytes: 257 of 257
Identical decompressed bytes: 520 of 520
Best match with level combination 98, windowbits = 15: 257 bytes, decompressed to 520 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 57
uncompressed size: 69
file name length: 22
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 57
Can be decompressed to 69 bytes
Identical recompressed bytes: 57 of 57
Identical decompressed bytes: 69 of 69
Best match with level combination 98, windowbits = 15: 57 bytes, decompressed to 69 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 250
uncompressed size: 537
file name length: 22
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 250
Can be decompressed to 537 bytes
Identical recompressed bytes: 250 of 250
Identical decompressed bytes: 537 of 537
Best match with level combination 98, windowbits = 15: 250 bytes, decompressed to 537 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 4500
uncompressed size: 5284
file name length: 17
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 4500
Can be decompressed to 5284 bytes
Identical recompressed bytes: 4500 of 4500
Identical decompressed bytes: 5284 of 5284
Best match with level combination 98, windowbits = 15: 4500 bytes, decompressed to 5284 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 109
uncompressed size: 156
file name length: 26
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 109
Can be decompressed to 156 bytes
Identical recompressed bytes: 109 of 109
Identical decompressed bytes: 156 of 156
Best match with level combination 98, windowbits = 15: 109 bytes, decompressed to 156 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 267
uncompressed size: 589
file name length: 26
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 267
Can be decompressed to 589 bytes
Identical recompressed bytes: 267 of 267
Identical decompressed bytes: 589 of 589
Best match with level combination 98, windowbits = 15: 267 bytes, decompressed to 589 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 124
uncompressed size: 206
file name length: 26
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 124
Can be decompressed to 206 bytes
Identical recompressed bytes: 124 of 124
Identical decompressed bytes: 206 of 206
Best match with level combination 98, windowbits = 15: 124 bytes, decompressed to 206 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 143
uncompressed size: 277
file name length: 26
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 143
Can be decompressed to 277 bytes
Identical recompressed bytes: 143 of 143
Identical decompressed bytes: 277 of 277
Best match with level combination 98, windowbits = 15: 143 bytes, decompressed to 277 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 189
uncompressed size: 316
file name length: 21
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 189
Can be decompressed to 316 bytes
Identical recompressed bytes: 189 of 189
Identical decompressed bytes: 316 of 316
Best match with level combination 98, windowbits = 15: 189 bytes, decompressed to 316 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 10912
uncompressed size: 10912
file name length: 14
extra field length: 3
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 669
uncompressed size: 1481
file name length: 20
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 669
Can be decompressed to 1481 bytes
Identical recompressed bytes: 669 of 669
Identical decompressed bytes: 1481 of 1481
Best match with level combination 68, windowbits = 15: 669 bytes, decompressed to 1481 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 697
uncompressed size: 1534
file name length: 54
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 697
Can be decompressed to 1534 bytes
Identical recompressed bytes: 697 of 697
Identical decompressed bytes: 1534 of 1534
Best match with level combination 68, windowbits = 15: 697 bytes, decompressed to 1534 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
ZIP header detected
(82.38%) ZIP header detected at position<PHONE_NUMBER>
compressed size: 1138
uncompressed size: 1373
file name length: 55
extra field length: 0
(82.38%) Possible zLib-Stream in ZIP found at position<PHONE_NUMBER>
Compressed size: 1138
Can be decompressed to 1373 bytes
Identical recompressed bytes: 1138 of 1138
Identical decompressed bytes: 1373 of 1373
Best match with level combination 98, windowbits = 15: 1138 bytes, decompressed to 1373 bytes
Recursion start - new recursion depth 2
No recursion streams found
Recursion end - back to recursion depth 1
Recursion streams found
Recursion end - back to recursion depth 0
ERROR 3: There is not enough space on disk`

But if I use -d0 - precomp poduces smaller (more compressed) file...

Yes, using -d0 is just one possible workaround to get the file processed until the bug is fixed. Thanks for the feedback and the file, I'm looking into it.

Yes, -d0 helps.

The crash (disk full error) is fixed with the commit above (22e5f2b), but I'll leave the issue open to fix another thing that I recognized:
Brute mode detects a part of the big stream inside the ZIP, but it should already be handled by the ZIP parser without brute mode. None of the zlib parsers, however, does process streams above 2 GB correctly. So the crash could be fixed, but fixing the other zlib parser issues will improve compression ratio for such files and brute mode won't be necessary here anymore.

Completely fixed with the commit series 24d4378 ... 27053a4. Now, even without brute or even intense mode, the ZIP stream is recognized and processed:

Description
resulting file size in bytes (-cn)
resulting file size in bytes (-cl)

Before
1,945,185,430
1,639,140,905

Before, -intense -brute
2,965,380,085
1,471,676,589

After
3,385,832,046
1,417,452,005


Fix nested parent issue

CLA signed.

@adam-codeberg: do you know who @abyssusj is? he/she appears as "co-commiter" on some of your changes. See: https://github.com/brandicted/nefertari/pull/125/commits
I think that's why it does not pass CLA check. Can @abyssusj sign as well?

I've also signed it.

👍


add gearman-status

What's the use case here?  We don't want to encourage people docker exec'ing on slave boxes.

My use case is that I docker exec on slave boxes to check gearman-status (are my workers actually attached? did jobs submit correctly? how many jobs are running?)

But why can't you do that remotely (for example, https://gist.github.com/dfuentes/8f33374ae76c9ea79380)?

Because I didn't know about that script. Thanks :)

closing in favor of the script.


fix: Fixed Typo in homeBanner.js

closes #1150
👷🏻 Changes made

Fixed the typo of Tomorrow spelling in home screen
📸 Screenshots

@tamalCodes Can you please review this PR which closes #1150 issue


Re-generate VSCode marketplace token because GitHub Actions are going to break us

@alygin
[check if VSCODE_MARKETPLACE_TOKEN is set in github secrets](https://github.com/tlaplus/vscode-tlaplus/actions/runs/3252287934/jobs/5338328786#step:2:9)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Related: https://github.com/tlaplus/vscode-tlaplus/issues/318

Done


Flutter application is not considering Dart 2.0

Steps to Reproduce
When I run my application through 'flutter run' command I am getting the following error. I have removed my code with 'new' and 'const' keyword based on the new Dart features. But this is not considered it seems.
Logs
Built build\app\outputs\apk\debug\app-debug.apk (26.9
MB).
I/FlutterActivityDelegate(19986): onResume setting cu
rrent activity to this
I/flutter (19986): ══╡ EXCEPTION CAUGHT BY WIDGETS LI
BRARY ╞══════════════════════════════════════════════
═════════════
I/flutter (19986): The following NoSuchMethodError wa
s thrown building RitualsApp(dirty):
I/flutter (19986): Attempted to use type 'WelcomePage
' as a function. Since types do not define a method '
call', this
I/flutter (19986): is not possible. Did you intend to
 call the WelcomePage constructor and forget the 'new
' operator?
I/flutter (19986): Receiver: WelcomePage
I/flutter (19986): Tried calling: WelcomePage()
I/flutter (19986):
I/flutter (19986): When the exception was thrown, thi
s was the stack:
I/flutter (19986): #0      Object.noSuchMethod (dart:
core-patch/dart:core/object_patch.dart:46)
I/flutter (19986): #1      RitualsApp._buildUi (file:
///C:/work/personal/repos/public/flutterhustle/lib/sr
c/ritual/rituals.dart:16)
I/flutter (19986): #2      RitualsApp.build (file:///
C:/work/personal/repos/public/flutterhustle/lib/src/r
itual/rituals.dart:10)
I/flutter (19986): #3      StatelessElement.build (pa
ckage:flutter/src/widgets/framework.dart:3678)
I/flutter (19986): #4      ComponentElement.performRe
build (package:flutter/src/widgets/framework.dart:362
5)
I/flutter (19986): #5      Element.rebuild (package:f
lutter/src/widgets/framework.dart:3478)
I/flutter (19986): #6      ComponentElement._firstBui
ld (package:flutter/src/widgets/framework.dart:3605)
I/flutter (19986): #7      ComponentElement.mount (pa
ckage:flutter/src/widgets/framework.dart:3600)
I/flutter (19986): #8      Element.inflateWidget (pac
kage:flutter/src/widgets/framework.dart:2890)
I/flutter (19986): #9      Element.updateChild (packa
ge:flutter/src/widgets/framework.dart:2693)
I/flutter (19986): #10     RenderObjectToWidgetElemen
t._rebuild (package:flutter/src/widgets/binding.dart:
852)
I/flutter (19986): #11     RenderObjectToWidgetElemen
t.mount (package:flutter/src/widgets/binding.dart:823
)
I/flutter (19986): #12     RenderObjectToWidgetAdapte
r.attachToRenderTree.<anonymous closure> (package:flu
tter/src/widgets/binding.dart:769)
I/flutter (19986): #13     BuildOwner.buildScope (pac
kage:flutter/src/widgets/framework.dart:2205)
I/flutter (19986): #14     RenderObjectToWidgetAdapte
r.attachToRenderTree (package:flutter/src/widgets/bin
ding.dart:768)
I/flutter (19986): #15     BindingBase&GestureBinding
&ServicesBinding&SchedulerBinding&PaintingBinding&Ren
dererBinding&WidgetsBinding.attachRootWidget (package
:flutter/src/widgets/binding.dart:657)
I/flutter (19986): #16     runApp (package:flutter/sr
c/widgets/binding.dart:699)
I/flutter (19986): #17     main (file:///C:/work/pers
onal/repos/public/flutterhustle/lib/main.dart:5)
I/flutter (19986): #18     _startIsolate.<anonymous c
losure> (dart:isolate-patch/dart:isolate/isolate_patc
h.dart:279)
I/flutter (19986): #19     _RawReceivePortImpl._handl
eMessage (dart:isolate-patch/dart:isolate/isolate_pat
ch.dart:165)
I/flutter (19986): ══════════════════════════════════
═════════════════════════════════════════════════════
═════════════

Flutter Doctor
Paste the output of running flutter doctor -v here.

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

Have followed the instructions here https://github.com/flutter/flutter/wiki/Trying-the-preview-of-Dart-2-in-Flutter#android-studio--intellij-idea

Yes I tried the same. But there is no luck :(

@zarub2k Did you run flutter run or flutter run --preview-dart-2 ?

which channel are you on? and which version of flutter can you share output of flutter doctor

@zarub2k when running from the terminal you need to explicitly supply --preview-dart-2 flag.
$ flutter run --preview-dart-2

$ flutter build apk --preview-dart-2

If you are using IntelliJ:

Upgrade to beta channel:

flutter channel beta

Restart IntelliJ

Enable dart 2 preview in project settings

Restart IntelliJ

When I use IntelliJ with these options, my hot reload is broken and everytime I had to restart my application. So tired of doing this. Already filed another issue.

This should work now with the latest beta.
Please don't hesitate to file a new bug if you still have issues (either with dart2, hot reload, IntelliJ, or anything).


sort output of resource list in velero backup describe --details

It would be nice to sort the resource list in velero backup describe --details -- both the GVK list, and then the resources within each GVK list.

Do you think the list should be sorted before storing in object storage or just before displaying in the client?

I'd probably sort before storing - means it only has to be done once vs. every time it's read, plus then it's sorted for anyone who looks at the file directly.

FYI the GVK list is already sorted, which is expected as per json.Marshal documentation

The map keys are sorted and used as JSON object keys
https://golang.org/pkg/encoding/json/#Marshal

So the only thing we need to do is make sure that the resources within each GVK list is sorted.

Hmm, I'm seeing output like this (GVKs not sorted):
Resource List:
  apps/v1/Deployment:
    - nginx-example/nginx-deployment
    - nginx-example-2/nginx-deployment
  v1/ResourceQuota:
    - nginx-example-2/gke-resource-quotas
    - nginx-example/gke-resource-quotas
  v1/ServiceAccount:
    - nginx-example/default
    - nginx-example-2/default
  v1/Secret:
    - nginx-example-2/default-token-stqk2
    - nginx-example/default-token-k7ld2
  apps/v1/ReplicaSet:
    - nginx-example-2/nginx-deployment-fff5f96c9
    - nginx-example-2/nginx-deployment-54f4dbf9d
    - nginx-example/nginx-deployment-b7f757956

Hmm you're right, it happened to be sorted correctly for me, just checked with a full-namespace backup however and it wasn't sorted. Looking into this

For some reason I'm not able to reproduce this when trying to encode the same map in the Go playground: https://play.golang.org/p/HdhttP8bOlL

Maybe an issue on the decode? https://github.com/golang/go/issues/27179

Yep, can confirm that it's sorted properly in the file in obj storage, but not in the describe output.

So much for sort once :/

Ah of course, thanks for helping track that down! At least we only need to sort the GVK keys, the resource lists within each GVK should have their order preserved.


Bugfix: getPredictedTime with no comparison

When using getAll(), getPredictedTime() will not be passed an
argument for the comparison, which causes it to send the message as
"getpredictedtime undefined", throwing an error in LiveSplit.Server.
This commit adds a catch for an undefined argument in
getPredictedTime. It will still throw an error in the current version
of LiveSplit.Server since it currently requires a parameter, but I have
a PR open that fixes this behavior in that component.
Additional changes:

Removed some superfluous conditions in if statements

LiveSplit.Server PR that I referenced: https://github.com/LiveSplit/LiveSplit.Server/pull/37

Thank you! I will release this version asap.


[Question] Working with other formats of env and expert data (part 2 of 3)

Hello. My objective is to imitate an expert using GAIL. I train my custom env on RL, generate experts from the learned model, and train GAIL with this expert. In short: RL -> expert -> GAIL
You must be familiar with the MineRL challenge. It seems like they have a separate package just to view and work with their dataset. Their env obs, action spaces are dictionaries. Their data is saved as .npz, but each trajectory is a folder in itself!
Can we find support from Stable Baselines for these envs and data? Are there any easy workarounds? Do you have any resources recommendations for repos I can work with? (possible related discussion on envs with dictionaries in 665 and 23)

Moving discussion to #931.


[Feature]: Developer can stage and run apps in spaces created via the API

Blockers/Dependencies
No response
Background
As an App Developer
I want to be able to stage and run apps in spaces that I create via cf create-space
So that My staging and workload Pods are run separately from other spaces and that my RBAC roles apply to them
Acceptance Criteria

Staging Apps
GIVEN I have created an org and space with the cf CLI
WHEN I create a CFBuild in the space I just created
THEN I see it succeed

Running Apps
GIVEN I have created an org and space with the cf CLI
AND I have staged an App in that space / assigned the Droplet to the App
WHEN I start the App
THEN I see running Pods in the namespace corresponding with the CF space

Dev Notes
Right now there are three issues I've identified that are preventing this from working:

We should configure the new cf namespace to be the root namespace in the API shim
We need to configure HNC to propagate secrets
Propagating ServiceAccounts seems buggy and maybe not supported. It propagates the ServiceAccounts themselves, but not the token secrets that they rely on which causes them to be broken in the child namespaces.

The HNC docs say this:

Similarly, Kubernetes ServiceAccount Secrets will also by default be excluded from propagation.

Notes from the discussion during the CF on K8s SIG call:

We should avoid relying on HNC to propagate ServiceAccounts for now. Let's have the API Shim create one when creating spaces*. Eventually let's have a controller that operates on CFOrg and CFSpace resources handle this.

* I think space creation is pretty async since we are actually creating HNC SubnamespaceAnchors. But I've seen buggy CLI behavior where the create space call returns too soon, so it might be beneficial in general to wait a bit for the namespace to get made so that we can create the ServiceAccount for kpack

After #154 we should already be waiting for namespaces to exist before returning from the endpoint!

@gcapizzi nice, good to know :)


⚠ Samsung has degraded performance

In 696ba2c, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2429 ms

Resolved: Samsung performance has improved in d913a98.