Need solution for robustly setting UDUNITS2_XML_PATH

With the advent of use of udunits in MAPL3, we now have a requirement to set the udunits path which will be different for each build of baselibs.
One possibility is to modify FindBaselibs to set this path.   Alternatively, MAPL could use the BASEDIR env variable and append as necessary itself.
Needs to propagate down to ctests in MAPL.    Ideally we could also still run manually with mpirun -np 1 ./MAPL.generic3g.tests but probably no good way to automatically support that.

Okay. I think I have the MAPL solution here:
https://github.com/GEOS-ESM/MAPL/pull/2702
but this isn't a runtime fix. For that g5_modules or spack will need to set the variable.

@tclune This is a comment.


Updating Versions to v0.2.2

Correct versions to point to the most recent release.

I will look into if there is a way for these versions to be maintained by automated process so that I don't forget to update them.

https://github.com/faros-ai/faros-events-cli/pull/28


parameters: [privatevdasubnet2] do not exist in the template

Stack failed at the VDA creation stage with error: "parameters: [privatevdasubnet2] do not exist in the template".
It looks like that "citrix-virtualapps-service.yaml" provides "PrivateVDASubnet2" parameter which is not defined in "citrix-virtualapps-service-vda-serveros.yaml"?

Fixed in #39


physic: Change parseError.Error() formatting

Add option for no original string.

Codecov Report

Merging #314 into master will increase coverage by 0.03%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #314      +/-   ##
==========================================
+ Coverage    69.2%   69.23%   +0.03%
==========================================
  Files          99       99
  Lines        8709     8711       +2
==========================================
+ Hits         6027     6031       +4
+ Misses       2526     2524       -2
  Partials      156      156

Impacted Files
Coverage Δ

conn/physic/units.go
100% <100%> (ø)
:arrow_up:

devices/lepton/lepton.go
88.41% <0%> (+1.21%)
:arrow_up:

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 8508d47...76880d8. Read the comment docs.


Utility function passthroughEvent added

@SevInf take a look please

:ok:, but does it needs to live in this project? gemini/utils, IMHO, is the better place for it.

The point is I want to use it in another project too


ModuleNotFoundError: No module named 'model' and 'dataloder'

Where can I find them?
dataloader isn't from torch.
Thanks a lot.

already a dataloader file is provided
howwever, i have one question @12ben ,,,how to run the ipynb file in the linux terminal,,,,i know for python i use >>> python filename.py and run

already a dataloader file is provided
howwever, i have one question @12ben ,,,how to run the ipynb file in the linux terminal,,,,i know for python i use >>> python filename.py and run

https://github.com/avinashpaliwal/Super-SloMo/issues/6

@12ben  what is this link for??


Alexanderkjall add check val pr

@manelmontilla : Any progress on getting this merged? Let me know if there are any work that I can do to help out unblocking this.


Pixel car racer in app purchased not working

I have used both the proxy server and reassembly dex but the shop just says that there is no Internet connection and does not let me buy anything

This repo is for maintaining the compatibility list. Please refer to this post for some troubleshooting. There's a Discord as well.

I'm sorry this guy's not apparently very reliable he wants somebody that can get you the Lucky Patcher that's reliable just ask


UnSubscribe method causes ArgumentNullException

Field _localSubscriptions is null, if Publish method is not called.
Try to Subscribe, then UnSunbscribe and bang! ArgumentNullException is here.
And it's [ThreadStatic], so on Stop event on windows service it also null.

Field _localSubscriptions is null, if Publish method is not called.
Try to Subscribe, then UnSunbscribe and bang! ArgumentNullException is here.

Thanks for the find. This should now be fixed as part of v3.2.1 please validate.


[Bug]  table-name正则匹配bug

Search before asking

[X] I searched in the issues and found nothing similar.

Flink version
1.17.0
Flink CDC version
2.4.0
Database and its version
mysql: 8.0.32
clickhouse:  <IP_ADDRESS>
Minimal reproduce step
mysql :
create database sch_xs;
use sch_xs;
create table class_student
(
id              bigint(64) auto_increment  primary key,
name            varchar(255) charset utf8mb4 null comment '学生名称'
)  collate = utf8mb4_bin;
insert into class_student (name) values ('张三'),('李四'),('王五'),('赵六');
create table course_class_student
(
id              bigint(64) auto_increment  primary key,
name            varchar(255) charset utf8mb4 null comment '学生名称'
)  collate = utf8mb4_bin;
insert into course_class_student(name) values ('course_张三'),('course_李四'),('course_王五'),('course_赵六');
=================================================================================
java code:
StreamExecutionEnvironment executionEnvironment = StreamExecutionEnvironment.getExecutionEnvironment();
executionEnvironment.getCheckpointConfig().setExternalizedCheckpointCleanup(CheckpointConfig.ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION);
executionEnvironment.enableCheckpointing(3000, CheckpointingMode.EXACTLY_ONCE);
executionEnvironment.getCheckpointConfig().setMaxConcurrentCheckpoints(3);
executionEnvironment.setStateBackend(new HashMapStateBackend());
StreamTableEnvironment tableEnvironment = StreamTableEnvironment.create(executionEnvironment);
tableEnvironment.getConfig().setLocalTimeZone(ZoneId.of("+8"));
tableEnvironment.executeSql("CREATE TABLE source_class_student (\n" +
"    database_name STRING METADATA VIRTUAL,\n" +
"    table_name STRING METADATA VIRTUAL,\n" +
"    id BIGINT,\n" +
"    name STRING,\n" +
"    PRIMARY KEY (id) NOT ENFORCED\n" +
"  ) WITH (\n" +
"    'connector' = 'mysql-cdc',\n" +
"    'hostname' = '<IP_ADDRESS>',\n" +
"    'port' = '3306',\n" +
"    'username' = 'username',\n" +
"    'password' = 'password',\n" +
"    'database-name' = '^(sch_).*',\n" +
"    'table-name' = 'class_student'\n" +
"  );");
Table table = tableEnvironment.sqlQuery("SELECT * FROM source_class_student");
DataStream rowDataStream = tableEnvironment.toChangelogStream(table);
rowDataStream.print().setParallelism(1);
executionEnvironment.execute("Print MySQL Snapshot + Binlog");
What did you expect to see?
+I[sch_xs, class_student, 2, 李四]
+I[sch_xs, class_student, 1, 张三]
+I[sch_xs, class_student, 4, 赵六]
+I[sch_xs, class_student, 3, 王五]
What did you see instead?
+I[sch_xs, class_student, 2, 李四]
+I[sch_xs, class_student, 1, 张三]
+I[sch_xs, class_student, 4, 赵六]
+I[sch_xs, class_student, 3, 王五]
+I[sch_xs, course_class_student, 4, course_赵六]
+I[sch_xs, course_class_student, 3, course_王五]
+I[sch_xs, course_class_student, 2, course_李四]
+I[sch_xs, course_class_student, 1, course_张三]
Anything else?
这个问题只有在设置 database-name' = '^(sch_).'"或 database-name' = '^(sch_xs).'"匹配时才会出现，如果设置database-name' = 'sch_xs'"则不会出现此问题
Are you willing to submit a PR?

[ ] I'm willing to submit a PR!

@GuXianWei I have optimized this part and docs.


path to julia-config.jl in mexjulia-rebranding/Jl.m incorrect for OS X installation

I cloned https://github.com/twadleigh/mexjulia/tree/rebranding
Opened matlab, surfed to mexjulia-rebranding, verified that my C++ compiler was set up, and then ran

>> Jl.build
The path of the Julia executable is /Users/y9KAaixxegjR/Documents/Current_works/julia/usr/bin/julia
Error using Jl.build (line 89)
Assertion failed.

I placed a breakpoint at line 89 in Jl.m and found that
K>> cfg

cfg =

/Users/y9KAaixxegjR/Documents/Current_works/julia/usr/share/julia/julia-config.jl

but my julia-config.jl file is actually at:
/Users/y9KAaixxegjR/Documents/Current_works/julia/contrib/julia-config.jl

Here is my julia version info:
julia> versioninfo()
Julia Version 0.5.1-pre+2
Commit f0d40ec (2016-09-20 03:34 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.3.0)
  CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)

And here is my Matlab version info:
>> version

ans =

<IP_ADDRESS>1360 (R2016a)

P.S. I built julia with 'make' as per the instructions on github's main julia page.

As I mentioned in #18, the issue is that the build logic currently assumes an "installed" julia (e.g., one that you might get from running make install after make, or downloaded). I think the julia-config.jl script itself only works on a julia installation, and not a julia run from the source tree.
I don't believe there is any technical obstacle to getting mexjulia to run on a julia built in the source tree, it just needs to be done. The reason the build is done purely in MATLAB is to support those users who may not have a full build chain. However, to support those users who want to use mexjulia with a source-tree version of julia, we can assume they have a full build chain, in which case a separate build path implemented via a Makefile is probably appropriate.

OK, thanks, I went ahead and downloaded the distributed version of julia, now I get this error, which does not appear to be just a path issue:
>> Jl.build
The path of the Julia executable is /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia
The path of the Julia configuration script is /Applications/Julia-0.5.app/Contents/Resources/julia/share/julia/julia-config.jl
mex -largeArrayDims -O WARNING: Error during initialization of module GMP:
ErrorException("The dynamically loaded GMP library (version 4.2.1 with __gmp_bits_per_limb == 64)
does not correspond to the compile time version (version 6.1.0 with __gmp_bits_per_limb == 64).
Please rebuild Julia.")
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException("could not load library "libgit2"
dlopen(libgit2.dylib, 1): Library not loaded: @rpath/libcurl.dylib
  Referenced from: /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia//libgit2.dylib
  Reason: Incompatible library version: libgit2.dylib requires version 9.0.0 or later, but libcurl.dylib provides version 8.0.0"))
rec_backtrace at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/stackwalk.c:84
record_backtrace at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:232 [inlined]
jl_throw at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:550
jl_errorf at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/builtins.c:78
jl_dlerror at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/dlload.c:69
jl_load_dynamic_library_ at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/dlload.c:209
jl_get_library at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/runtime_ccall.cpp:152
jl_load_and_lookup at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/runtime_ccall.cpp:163
jlplt_git_libgit2_init_24776 at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
__init__ at ./libgit2/libgit2.jl:538
jlcall___init___24772 at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
jl_call_method_internal at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia_internal.h:189 [inlined]
jl_apply_generic at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/gf.c:1942
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia.h:1392 [inlined]
jl_module_run_initializer at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/toplevel.c:83
_julia_init at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/init.c:742
julia_init at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:283
main at /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia (unknown line) WARNING: Error during initialization of module GMP:
ErrorException("The dynamically loaded GMP library (version 4.2.1 with __gmp_bits_per_limb == 64)
does not correspond to the compile time version (version 6.1.0 with __gmp_bits_per_limb == 64).
Please rebuild Julia.")
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException("could not load library "libgit2"
dlopen(libgit2.dylib, 1): Library not loaded: @rpath/libcurl.dylib
  Referenced from: /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia//libgit2.dylib
  Reason: Incompatible library version: libgit2.dylib requires version 9.0.0 or later, but libcurl.dylib provides version 8.0.0"))
rec_backtrace at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/stackwalk.c:84
record_backtrace at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:232 [inlined]
jl_throw at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:550
jl_errorf at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/builtins.c:78
jl_dlerror at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/dlload.c:69
jl_load_dynamic_library_ at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/dlload.c:209
jl_get_library at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/runtime_ccall.cpp:152
jl_load_and_lookup at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/runtime_ccall.cpp:163
jlplt_git_libgit2_init_24776 at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
__init__ at ./libgit2/libgit2.jl:538
jlcall___init___24772 at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
jl_call_method_internal at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia_internal.h:189 [inlined]
jl_apply_generic at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/gf.c:1942
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia.h:1392 [inlined]
jl_module_run_initializer at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/toplevel.c:83
_julia_init at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/init.c:742
julia_init at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:283
main at /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia (unknown line) /Users/y9KAaixxegjR/Documents/Current_works/CodingProjects/mexjulia-rebranding/mexjulia.cpp WARNING: Error during initialization of module GMP:
ErrorException("The dynamically loaded GMP library (version 4.2.1 with __gmp_bits_per_limb == 64)
does not correspond to the compile time version (version 6.1.0 with __gmp_bits_per_limb == 64).
Please rebuild Julia.")
fatal: error thrown and no exception handler available.
Base.InitError(mod=:LibGit2, error=ErrorException("could not load library "libgit2"
dlopen(libgit2.dylib, 1): Library not loaded: @rpath/libcurl.dylib
  Referenced from: /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia//libgit2.dylib
  Reason: Incompatible library version: libgit2.dylib requires version 9.0.0 or later, but libcurl.dylib provides version 8.0.0"))
rec_backtrace at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/stackwalk.c:84
record_backtrace at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:232 [inlined]
jl_throw at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:550
jl_errorf at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/builtins.c:78
jl_dlerror at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/dlload.c:69
jl_load_dynamic_library_ at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/dlload.c:209
jl_get_library at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/runtime_ccall.cpp:152
jl_load_and_lookup at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/runtime_ccall.cpp:163
jlplt_git_libgit2_init_24776 at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
__init__ at ./libgit2/libgit2.jl:538
jlcall___init___24772 at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib (unknown line)
jl_call_method_internal at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia_internal.h:189 [inlined]
jl_apply_generic at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/gf.c:1942
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia.h:1392 [inlined]
jl_module_run_initializer at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/toplevel.c:83
_julia_init at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/init.c:742
julia_init at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/task.c:283
main at /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia (unknown line)
Error using Jl.build (line 111)
Error: The input character is not valid in MATLAB statements or expressions.
``

The config script is no longer used.


The metrics of gemma-2-27b-it is not matched with the metrics on leaderboard

I evaluated gemma-2-27b-it
{'Chat': 0.8938547486033519, 'Chat Hard': 0.6085526315789473, 'Safety': 0.8867946647946647, 'Reasoning': 0.7705588066786708}
while

When you run the script, did you set "attn_implementation": "flash_attention_2"? I noticed a performance degradation when flash attention is not used for gemma-2-27b-it. However, this is not the case for other models I've tried.

Also @ToSev7en, can you share how you ran it? I ran it with TotherAI API because VLLM was broken when I implemented it.
We could figure out how to store the scores for both, if you work out the details Chris mentioned.

When you run the script, did you set "attn_implementation": "flash_attention_2"? I noticed a performance degradation when flash attention is not used for gemma-2-27b-it. However, this is not the case for other models I've tried.

I downloaded gemma-2-27b-it  from hugginface hub，and  here comes the config.json :
{
  "architectures": [
    "Gemma2ForCausalLM"
  ],
  "attention_bias": false,
  "attention_dropout": 0.0,
  "attn_logit_softcapping": 50.0,
  "bos_token_id": 2,
  "cache_implementation": "hybrid",
  "eos_token_id": 1,
  "final_logit_softcapping": 30.0,
  "head_dim": 128,
  "hidden_act": "gelu_pytorch_tanh",
  "hidden_activation": "gelu_pytorch_tanh",
  "hidden_size": 4608,
  "initializer_range": 0.02,
  "intermediate_size": 36864,
  "max_position_embeddings": 8192,
  "model_type": "gemma2",
  "num_attention_heads": 32,
  "num_hidden_layers": 46,
  "num_key_value_heads": 16,
  "pad_token_id": 0,
  "query_pre_attn_scalar": 144,
  "rms_norm_eps": 1e-06,
  "rope_theta": 10000.0,
  "sliding_window": 4096,
  "sliding_window_size": 4096,
  "torch_dtype": "bfloat16",
  "transformers_version": "4.42.0.dev0",
  "use_cache": true,
  "vocab_size": 256000
}

Thers is no "attn_implementation": "flash_attention_2" indeed, so should I add it into the config.json ?

Also @ToSev7en, can you share how you ran it? I ran it with TotherAI API because VLLM was broken when I implemented it. We could figure out how to store the scores for both, if you work out the details Chris mentioned.

@natolambert I ran it with run_generative.py base on the latest version of vllm, and it works but not up to the performance on leaderboard. I will try the details Chris mentioned, thx.

@ToSev7en, the issue occurred when I used a gemma-2-27b-it trained as a sequence classifier. However, I'm not sure if the same problem would happen with a generative model. I'll try it when I have the time.

Interesting @ToSev7en that the API was better... this is normal evaluation rabbit holes :)


[backport 21.05] shattered-pixel-dungeon: 0.9.2 -> 0.9.3

Motivation for this change
https://github.com/NixOS/nixpkgs/pull/126215#issuecomment-857619216
Things done

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

[ ] NixOS
[ ] 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"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 126456 at 57c0c110 run on x86_64-linux 1

1 package built successfully:

shattered-pixel-dungeon

2 suggestions:

warning: missing-phase-hooks
installPhase should probably contain runHook preInstall and runHook postInstall.
Near pkgs/games/shattered-pixel-dungeon/default.nix:68:3:
   |
68 |   installPhase = ''
   |   ^

warning: missing-phase-hooks
buildPhase should probably contain runHook preBuild and runHook postBuild.
Near pkgs/games/shattered-pixel-dungeon/default.nix:59:3:
   |
59 |   buildPhase = ''
   |   ^

@SuperSandro2000 since you merged the main pr, could you also merge this?


[draft] add change

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.84 seconds
stream load tsv:          564 seconds loaded<PHONE_NUMBER>9 Bytes, about 126 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>8 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 47.49 seconds
stream load tsv:          555 seconds loaded<PHONE_NUMBER>9 Bytes, about 128 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          33 seconds loaded 861443392 Bytes, about 24 MB/s
insert into select:          29.5 seconds inserted 10000000 Rows, about 338K ops/s
storage size:<PHONE_NUMBER>1 Bytes

run buildall

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.51 seconds
stream load tsv:          575 seconds loaded<PHONE_NUMBER>9 Bytes, about 124 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.6 seconds inserted 10000000 Rows, about 337K ops/s
storage size:<PHONE_NUMBER>3 Bytes

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 49.31 seconds
stream load tsv:          575 seconds loaded<PHONE_NUMBER>9 Bytes, about 124 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.7 seconds inserted 10000000 Rows, about 336K ops/s
storage size:<PHONE_NUMBER>2 Bytes

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 46.36 seconds
stream load tsv:          574 seconds loaded<PHONE_NUMBER>9 Bytes, about 124 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>4 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 49.83 seconds
stream load tsv:          581 seconds loaded<PHONE_NUMBER>9 Bytes, about 122 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.3 seconds inserted 10000000 Rows, about 341K ops/s
storage size:<PHONE_NUMBER>4 Bytes


II3050 European CO2 governance has different CO2 emission between Beta and Production

Pro:

Beta:

It seems that the industry sector has about 10(!) MT more emissions.

This was largely caused by an error in the scenario migration. Now fixed: Total CO2 -95.8% PRO vs -96.2% BETA.


Upgrade to Angular 17

Update dependencies and run angular upgrade to latest version.

@dineeek, thanks for publishing this!
We would like to experiment with your package and need Angular 17 compatibility for this. Contributing the updates here. The included demo application and tests still seem to run fine.
Would you be open to check this out and release a new version?

Hi @sleidig!
Thanks for using library!
I have published new version (v4.0.0) which includes migration to the Angular 17 and migration to MDC-based Angular Material Components.
Please install and let me know if there are any issues.
Thanks!


docs(zh): updated

Ref: https://github.com/vuejs/vue-router/compare/e05631d...e0d4dc4
/ping @Justineo
Thanks.

Thanks to the both of you! 💚


properties file values are not stripped of blanks  during installation

[Version]
16.1 GA3, 2016/08/23
[How to reproduce]

fill out /databases\bes_db\configsettings.properties
for one value
SSO_LOGOUT_URL=http://estsdehn:8080/openam/IDPSloRedirect/metaAlias/idp
add a blank after "idp"
run
ant -f build-db.xml initDB

[Expected result]
Creation and installation is successful
[Observed result]
An error is displayed that the format of the URL SSO_LOGOUT_URL is incorrect.
[Details]
Since it took me at least 15 mins to figure out that the problem was the blank and not something else, I decided to enter this bug.

The following types of configuration settings should have blanks stripped by saving into db:

boolean;
URL;
long;
password; (this is new type for issue #284 )

Only string types should be left with blanks.

I added a trim to the specified fields during config import and config service.

[Build] 16.1 fix4
This works as described for URL
SSO_IDP_SAML_ASSERTION_ISSUER_ID
but not for
SSO_LOGOUT_URL as described in original issue.
SSO_STS_METADATA_URL does not work either.
I tested with
ant -f build-db.xml updateDB
I presume that this is a similar issue that should be handled with the same routines.

Fixed. Added URL to the group of types that get trimmed.


Consolidate Slack Electron instances a la new Slack desktop app

Franz uses an instance of Electron for each Slack workspace, thereby using a massive amount of RAM.
I would like Franz to consolidate the instances of Slack Electron apps used to geometrically decrease memory usage.
The new Slack desktop client has accomplished this by rearchitecting the app to use a single Electron process for all workspaces. I'm assuming that Franz benefits from their web app changes automatically, but can't take advantage of the Electron setup without some modification.
More details on how they accomplished this: https://slack.engineering/rebuilding-slack-on-the-desktop-308d6fe94ae4

I too would love to see this happen.


Update case-statement.c

Please fill in this pull request template before submitting
1. This pull request resolves #14
2. Description
Created content for switch case statements in C
3. Fill in checklist by marking [x]

[x] I've read the CONTRIBUTING.md
[x] I was assigned to this issue
[x] My code is formatted using required linting
[x] I've run my code locally and checked it works

How do I revert changes for for-loops.c?


Chat Bot asking for details every time

Hi,
I am trying to start Help center and show Contact Us button, however whenever I am using following methods
RNZendesk.setVisitorInfo({
name: user.firstName,
email: user.email,
phone: user.mobileNumber,
});
RNZendesk.showHelpCenter({
withChat: true
});
However, whenever I am starting a chat using floating Contact button on Help center page, I am again asked all user details by Answer bot : name, email and phone number. How do I load those values automatically for the Chat bot?

Hi,
Firstly if you could point me out how exactly are you configuring the zendesk on startup.
Also as mentioned in readme, helpcenter with chat has some issues which are being looked upon.
If you start the chat directly not via help center, does that still happen?

So I went throught Zendesk SDK, this is bound to happen. It registers our visitor info but if we have pre-chat form enabled it will always ask you for these details. I am looking to give chat config options probably some time soon and that would solve your issue.

Not sure that is a correct diagnosis - we don't have pre-chat form enabled yet users are still prompted for info every time they open the chat bot.

Prechatformenabled is a chat config option, we can pass when starting the chat. As per the SDK, this is enabled by default and thus always ask for the info. It records our visitor info but still asks for this if this option is enabled. Let me know if you find something that can be worked on the lib

to fix this, I'll though surely look to start supporting all the chat config options in the next release

Prechatformenabled is a chat config option, we can pass when starting the chat. As per the SDK, this is enabled by default and thus always ask for the info. It records our visitor info but still asks for this if this option is enabled.

Let me know if you find something that can be worked on the lib to fix this, I'll though surely look to start supporting all the chat config options in the next release


SEO: Backlinks to a private website

@guardrex, this page was referred by you in https://github.com/aspnet/Docs/issues/10668
In terms of SEO, the references section in this page acts as backlinks pointing to a private profitable website. See the above issue for more details.
These types of links are generating traffic and thus income to the linked website.
The links also drop Microsoft Docs in search engines because it is linking to non-famous or non-widely-recognized websites with a poor page rank.
It's highly recommend removing all such links, see https://moz.com/learn/seo/backlinks for more info about backlinks
Edit by @Rick-Anderson 	: 5.8K PV, 15 reviews, 93% CSAT

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

ID: 829862b0-b51d-d4dd-d770-f875a588384f
Version Independent ID: 4ab12fcc-7cc1-d40b-b5c4-d145fe25e98e
Content: Architectural principles
Content Source: docs/standard/modern-web-apps-azure-architecture/architectural-principles.md
Product: dotnet
GitHub Login: @ardalis
Microsoft Alias: wiwagn

This is a somewhat opinionated article. I'd be inclined to remove PI. Abstracting the DB when you know you're using SQL Azure can lead to unnecessarily complicated code.

PI isn’t about abstracting the database, but about keeping the model decoupled (ie POCOs).

Then is show say so:
(PI) refers to types that need to be persisted, but whose code is unaffected by the choice of persistence technology. Such types in .NET are sometimes referred to as Plain Old CLR Objects (POCOs), because they do not need to inherit from a particular base class or implement a particular interface. Persistence ignorance is valuable because it allows the same business model to be persisted in multiple ways, offering additional flexibility to the application. Persistence choices might change over time, from one database technology to another,

Fixed via #10518


Restore running VMs after upgrade in single node cluster

Problem:
When you upgrade a single node it will turn off all VMs. And there was some talk of having the VMs going back to previous state.
Solution:
Add new setting restoreVMs to UpgradeConfig. This setting trigger harvester to store running vms namespace/name to secret before upgrade, and start those VMs based on the info stored in secret after upgrade. Note this setting only works when cluster is single node. About the paused VMs, we leave them to stopped state.
Related Issue:
https://github.com/harvester/harvester/issues/4005
Test plan:

Create iso based on this pr/branch
Use ipxe to create single node cluster,
Create 4 VMs with 2 running VMs, 1 stopped VM, and 1 paused VM.

Apply the following yaml to update restoreVM: true in Setting upgrade-config

apiVersion: harvesterhci.io/v1beta1
value: '{"imagePreloadOption":{"strategy":{"type":"sequential"}}, "restoreVM": true}'
kind: Setting
metadata:
  name: upgrade-config

Use the following yaml to upgrade harvester, note that the iso in isoURL should be the same one build in step1.

apiVersion: harvesterhci.io/v1beta1
kind: Version
metadata:
  name: master
  namespace: harvester-system
spec:
  isoURL: http://<IP_ADDRESS>:8000/harvester-master-amd64.iso
---
apiVersion: harvesterhci.io/v1beta1
kind: Upgrade
metadata:
  annotations:
    harvesterhci.io/skip-version-check: "true"
    harvesterhci.io/skipWebhook: "true"
  generateName: hvst-upgrade-
  namespace: harvester-system
spec:
  version: "master"
  logEnabled: false

Verify all VMs were running before upgrade are still in running state after upgrade. And the paused vm before upgrade are stopped after upgrade.

The code part LGTM. However, I need to wait for #6349 to do the test, because master to master upgrade doesn't work now.

Sorry, ignore this. I can do the upgrade without logging.

@Mergifyio backport v1.4


Ask re: open source to relieve us from the 2000 minutes limit

@elejeune11 for our 2022-08-22 mtg.

changed from private to public repo


Add Mr trance - esteman by esteman

Song Name
Mr trance - esteman
Artist Name
esteman
Source
Youtube
Youtube Link
https://youtu.be/cH_yrEmJabE?si=MbL4v1h7sx3lpW60
Direct File Link
No response
Song ID
1171568
Extra
Created from Auto Nong.
Created for level: 103631512

I just want the song to be there pls


Zmw/adding file tests

Coverage increased (+0.7%) to 97.273% when pulling a4a88fa2c05fd20f4bb34f9f63a511ecce2aeb01 on zmw/adding_file_tests into e6bf06238f9b3c2768e3fab0e58588bd7ef1eaff on master.


[HxSearchBox] cannot confirm selected item with keyboard Enter key #254

role="button" was added solely to achieve pointer: cursor on hover.

@Harvey1214 Closing this PR as all the changes would have to be reverted and the agreed solution is to get back to button element (instead of a) in HxSearchBox implementation (+ add note to documentation where it mentions the issue and states that it is expected to put only inline elementes inside the ContentTemplate).


Ignore the host in rustc.verbose_version for metadata

Cross-compiling the same target from different hosts should still
produce the same output from rustc, but cargo effects a difference by
hashing the full rustc.verbose_version, including host: <triple>. We
can filter that particular line to allow different hosts to produce the
same target metadata after all.

r? @ehuss
(rust_highfive has picked a reviewer for you, use r? to override)

For more context -- in Fedora, I have requests to add cross rust-std subpackages for wasm and mingw. These would naturally be noarch rpms, not specific to a particular host architecture, but rpmbuild asserts that each separate arch build produces the same content for their noarch subpackages. Having the host in the metadata hash meant this was never the case.
Also, I'm not sure how to add any test cases for this...

To make sure I understand this correctly, your goal here is to use the same compiler (revision, etc) compiled for different architectures. Each compiler, when targeting, for example wasm, should always produce the same output. Cargo, however, doesn't produce the same output because -C metadata contains the compiler -Vv output, which notably includes the host: ... line which is the only real difference between the compilers.
Does that sound right?
If so I think this change is fine and would agree that there's not really a great way we could add a test for this.

I'm a little concerned with how this might affect our longer term efforts to share artifacts between projects. If someone switches between different host compilers, it would overwrite the files, busting the cache. I don't really know how common that is, so it's hard to say if that's a realistic concern.

I have no idea if switching hosts with the same build dir would be common.
I'm a little worried myself that this won't just affect cross-compiled artifacts, but that was necessary because the target metadata hash also depends on the metadata of all its dependencies, including build-deps.
I'm open to alternatives, if you have any ideas!

I was also trying to think if this would affect rust-lang/rust bootstrapping. But I'm pretty sure each host is segregated into a separate directory by x.py, right?

Yes, with rustbuild it's separated into build/{build-triple}/...

Oh ok, so this is a bug related to rustbuild (sorta) where you're running the rustc build system to produce a wasm target. That produdes libstd-xxx.rlib for wasm, and you want xxx to be the same across all architectures whereas now it's different because we hash the host of the compiler into xxx?
@ehuss hm I'm not sure what you mean by overwrite? Wouldn't this cause to different host compilers to share a cache where previously they wouldn't share anything?

I have no idea if switching hosts with the same build/cache dir would be common.

At least as a data point we've had folks use a shared folder between VMs for build caches sometimes, but honestly our story there is bad due to filesystem lock management and stuff anyways.

@ehuss hm I'm not sure what you mean by overwrite? Wouldn't this cause to different host compilers to share a cache where previously they wouldn't share anything?

The host is still in the fingerprint, so when you switch hosts it'll bust the fingerprint and Cargo will rebuild and overwrite the old files.
Hm, now I'm thinking of the case where some people may switch host compilers as an alternative to using --target.  For example, running cargo +stable-pc-windows-msvc build and cargo +stable-pc-windows-gnu build.  That might be more common.
Maybe, instead of hashing unit.kind, the metadata could hash unit.kind.short_name()?  Maybe if we do that if we should also consider changing the fingerprint hash?

Oh ok, so this is a bug related to rustbuild (sorta) where you're running the rustc build system to produce a wasm target. That produces libstd-xxx.rlib for wasm, and you want xxx to be the same across all architectures whereas now it's different because we hash the host of the compiler into xxx?

Yes, exactly.
I'm wondering now if I could get away with just building these noarch subpackages on one of the builders, so there's no difference to worry about. At first glance, I think koji will still collect that together the way we would want. I'll investigate further, especially making sure this wouldn't violate Fedora policy, but if that's okay I might not need any cargo change after all.

@ehuss ah right that makes sense. I think though that unit.kind vs unit.kind.short_name() only matters when you don't pass --target, right? In @cuviper's use case the target is wasm which I think means the host platform only shows up in version_verbose.
I think we could perhaps fix this by removing the host:  line from version_verbose altogether? Or at least not hash it in both locations? (metadata and fingerprint)

So they all produce the same noarch content (rust-gdb shown here), and after that there's a deduplication step that makes sure those are all the same, so we can just ship one instance of a given noarch.rpm. They don't have to be bit-for-bit identical, basically just the same file list.

Note that this does do file digest validation, and if the content doesn't match, it'll fail the packages build.

I think though that unit.kind vs unit.kind.short_name() only matters when you don't pass --target, right

Right.  My concern is that without --target when you swap between host compilers (like the example of gnu vs msvc, or gnu vs musl), it will cause a full rebuild if the host is not in the metadata.  If it is not in the fingerprint, then it won't recompile at all which I think is the wrong behavior.
I think that is all solved if it hashes unit.kind.short_name() for the target.  (Assuming different host compilers produce the exact same output for the same target.)

@Conan-Kudo

Note that this does do file digest validation, and if the content doesn't match, it'll fail the packages build.

I'm not sure what rpmdiff's F (digest) actually represents. Koji says this:
        # ignore differences in file size, md5sum, and mtime
        # (files may have been generated at build time and contain
        #  embedded dates or other insignificant differences)
        d = koji.rpmdiff.Rpmdiff(joinpath(basepath, first_rpm),
            joinpath(basepath, other_rpm), ignore='S5TN')

If size and checksum are allowed to differ, then it seems the F must be something else, no? I think that refers to just the header digest, whereas file digests are ignored by flag 5.

(Assuming different host compilers produce the exact same output for the same target.)

Even within the same host, they're only the exact same if you assume perfect reproducible builds. For the purpose of caching, they just need to be close enough to be compatible.

I'm wondering now if I could get away with just building these noarch subpackages on one of the builders, so there's no difference to worry about.

FWIW, I brought this up on Fedora devel, and while there's some concern, it seems there are other packages doing something similar already.
Still, it feels like there should still be a way to resolve these host/target differences vs caching. What if we split the difference between -C metadata and -C extra-filename so only the latter includes any triple? So the internal metadata hash would include all of the target-independent information -- which is important for dependency metadata too so stuff like proc-macros don't infect host info into the target. Then the extra-filename can be generated from that and add just the target triple, or the host triple if there's no --target.

@ehuss oh right, I see what you mean. CompileKind::Host doesn't have any name information so there's otherwise no filename differences between cargo +gnu build and cargo +msvc build.
I think my leaning towards this is:

We should strip the host: ... information sooner to avoid forgetting to strip it at some point later
We should then also hash unit.kind.short_name() into the metadata

I think that'll fix @cuviper's use case while still preserving the behavior in the case @ehuss is thinking, right?

:umbrella: The latest upstream changes (presumably #7820) made this pull request unmergeable. Please resolve the merge conflicts.

@alexcrichton if the host triple is still in the metadata for build scripts, proc-macros, etc., then that will also affect the target metadata when dependencies are hashed in.
Any thoughts on separating the metadata and extra-filename? Basically, unit.kind.short_name() would only need to go into the file name, leaving metadata "pure".

Any thoughts on separating the metadata and extra-filename?

I implemented this last week.  Here's a WIP: https://github.com/ehuss/cargo/commit/b496870a6426db58fe293c410b924a05e961d037
It's not quite finished.  My motivation was to see if there might be some way to get RUSTFLAGS back into the filename hash.  I need to add the remap-path-prefix filter back in.  I was also wondering if Cargo should have first-class support for reproducible builds, and got sidetracked. 😉
It's certainly something I could finish off.  But for the sake of what this PR is trying to do, I'm a bit confused how it would help.  If the goal is, "same artifacts for different host compilers", wouldn't different filenames defeat that?

If the goal is, "same artifacts for different host compilers", wouldn't different filenames defeat that?

The filename would be based on the target triple, regardless of host. The filenames of transient host pieces (build deps) would be different according to host compiler, but the end target files should be the same, and those are what we would ship. Right?

Ended up here from the Tock reproducibility effort, and wanted to comment quickly on:

I'm a little concerned with how this might affect our longer term efforts to share artifacts between projects. If someone switches between different host compilers, it would overwrite the files, busting the cache. I don't really know how common that is, so it's hard to say if that's a realistic concern.

I have no idea if switching hosts with the same build/cache dir would be common.

One of the Tock core developers, @brghena, keeps everything in Dropbox, including all git repos, and frequently switches between a Linux desktop and a Mac laptop. I would expect him to run into this approximately daily, and I suspect that there are many who may keep repositories in something that does cross-machine file system sync'ing.

The answer for me is that it's rare that I'm developing on both Mac and Linux. I'm usually doing code on Linux (at work) and random documentation tasks on Mac (at home), so I wouldn't say I run into the problem frequently. However, the answer is that I've learned to run make clean (or the equivalent depending on what project I'm in) when switching between host computers, otherwise the build system fails, usually complaining about an inability to link something or another.

Chiming in from #8140.

Hm, now I'm thinking of the case where some people may switch host compilers as an alternative to using --target. For example, running cargo +stable-pc-windows-msvc build and cargo +stable-pc-windows-gnu build. That might be more common.

I'm not really familiar with this cargo syntax, but what is the purpose of switching the host compiler? Forgive my naive understanding, but to give another example, to me nightly-2020-02-03-x86_64-unknown-linux-gnu and nightly-2020-02-03-x86_64-apple-darwin are the same compiler (nightly-2020-02-03) from a logical point-of-view (they should produce the same binaries) but one runs on a compiling machine with the x86_64-unknown-linux-gnu host vs. x86_64-apple-darwin for the other one.
Why would one want to switch the host compiler on the same machine? My understanding is that on a Linux machine the x86_64-unknown-linux-gnu compiler works but the x86_64-apple-darwin compiler doesn't work.
Now, my naive understanding is that without specifying a target, the compiler will target its own host, so that you can cargo run or cargo test. So some of the build artifacts will be host-specific in that case. But shouldn't Cargo put them in target/<host_target>/ then? So that if someone copies a target directory from Linux to OSX the artifacts are not reused. Or from an x86 machine to an ARM machine the artifacts are not re-used (I don't see much what could be re-used between different CPU architectures)?
In that case, in your example:

cargo +stable-pc-windows-msvc build would build into target/pc-windows-msvc/,
cargo +stable-pc-windows-gnu build would build into target/pc-windows-gnu/.

Maybe there could be some level of sharing between some targets to cache more things (same CPU? same kernel? same OS?), but by default it seems to me reasonable to (1) treat different targets completely independently and (2) when no --target parameter is provided, be equivalent to --target <host_target>.
In any case, I don't see how the host compiler should play a role in the determination of the metadata. My naive view of this is that it should only affect the default value of --target when no target is explicitly provided - the rest of the compiler shouldn't have to care about the host. Is there any other reason for the compiler to care about the host?

what is the purpose of switching the host compiler?

It's an alternate way to implicitly switch targets. One example I hit yesterday, running Cargo's own testsuite doesn't work when using --target, so you have to switch hosts.  Some hosts can run multiple architectures (i686 or x86_64, or gnu vs musl, or gnu vs msvc).

But shouldn't Cargo put them in target/<host_target>/ then?

Cargo doesn't do that unless you specify --target.

when no --target parameter is provided, be equivalent to --target <host_target>.

I don't think we can change that behavior.

what is the purpose of switching the host compiler?

It's an alternate way to implicitly switch targets. One example I hit yesterday, running Cargo's own testsuite doesn't work when using --target, so you have to switch hosts. Some hosts can run multiple architectures (i686 or x86_64, or gnu vs musl, or gnu vs msvc).

I find it surprising that using --target doesn't work, but I'm far from familiar with the code. In that scenario switching the host makes sense.
Yet, I find it weird to have both an explicit --target and an implicit one via the host, and that they don't yield the same results.

But shouldn't Cargo put them in target/<host_target>/ then?

Cargo doesn't do that unless you specify --target.

Indeed, if everything is put in the same root folder by default, it makes sense to include the "target" (be it implicit from the host) into the hash to separate unrelated build artifacts.

when no --target parameter is provided, be equivalent to --target <host_target>.

I don't think we can change that behavior.

Indeed, if cargo +stable-pc-windows-msvc build behaves differently than cargo +stable --target pc-windows-msvc build we can't unify the implicit host target with the explicit one.

Taking a step back on the discussion (emphasis mine):

I'm wondering now if I could get away with just building these noarch subpackages on one of the builders, so there's no difference to worry about.

FWIW, I brought this up on Fedora devel, and while there's some concern, it seems there are other packages doing something similar already.
Still, it feels like there should still be a way to resolve these host/target differences vs caching. What if we split the difference between -C metadata and -C extra-filename so only the latter includes any triple? So the internal metadata hash would include all of the target-independent information -- which is important for dependency metadata too so stuff like proc-macros don't infect host info into the target. Then the extra-filename can be generated from that and add just the target triple, or the host triple if there's no --target.

Is there a scenario where one provides an explicit --target yet also expects the host to be taken into account? It seems to me that:

hashing the host (as is done now) if no --target is provided,
hashing the target instead if an explicit --target is provided,

would solve both the cargo +stable-pc-windows-msvc build use case (switching the host compiler on the same machine) and the cargo --target=thumbv7em-none-eabi build use case (fixed target on various hosts & various machines).
Are there other scenarios to take into account?

I'm also not sure I understand the difference between metadata and extra-filename, i.e. in which case should they be different?

A crate's metadata hash includes the metadata of all its dependencies. Even for a target crate, the dependencies may include crates compiled for the host, like proc-macros. So if your target uses something like serde_derive, then that host metadata affects the target metadata too.

I'm also not sure I understand the difference between metadata and extra-filename, i.e. in which case should they be different?

Right now they're identical, but the new proposal was to split them. If the internal metadata is hashed without any target information, that would solve the target-host dependency above. But then putting the final host/target information in the filename hash will ensure we still have distinct build artifacts for caching, shared target/, etc.

A crate's metadata hash includes the metadata of all its dependencies. Even for a target crate, the dependencies may include crates compiled for the host, like proc-macros. So if your target uses something like serde_derive, then that host metadata affects the target metadata too.

I'm not familiar with this matter, although conceptually I find it weird that:

Macros can be a host-dependent library. Shouldn't they be host-agnostic?
Things processing the source code can be a library at all, rather than part of the compiler.

Regardless, I think it's an acceptable trade-off. At least in the use case I'm considering (Tock), we limit to the maximum the number of external dependencies, and don't use procedural macros.
I think similar projects (embedded systems, firmware) likely have a similar limited number of dependencies (due to code size, the requirement that dependencies are no_std compatible, etc.). And firmware projects are also likely to be interested in binary reproducibility at some point.

I'm also not sure I understand the difference between metadata and extra-filename, i.e. in which case should they be different?

Right now they're identical, but the new proposal was to split them. If the internal metadata is hashed without any target information, that would solve the target-host dependency above. But then putting the final host/target information in the filename hash will ensure we still have distinct build artifacts for caching, shared target/, etc.

This seems like it would work.
But if artifacts are separated by filename, why do we need a metadata parameter at all? Assuming a cryptographically-secure hash, there is no risk that a single file corresponds to multiple incompatible configuration options: e.g. changing features would change the filename, changing dependencies would change the filename, changing the CPU arch would change the filename, etc.
What does a variable metadata parameter bring on top?

What does a variable metadata parameter bring on top?

I guess it also helps isolate mangled symbol names, if nothing else.

What does a variable metadata parameter bring on top?

I guess it also helps isolate mangled symbol names, if nothing else. In fact, that's exactly how it's described in the output of rustc -Chelp:
    -C                 metadata=val -- metadata to mangle symbol names with

In practice it doesn't affect only symbol names, but also code generation (shuffle functions around, maybe even affects allocation of registers in CPU instructions, etc.). Hence the reproducibility problems (in my use case the symbols are already stripped from the binary we want to reproduce).

In practice it doesn't affect only symbol names, but also code generation (shuffle functions around, maybe even affects allocation of registers in CPU instructions, etc.).

In theory, the inputs to the metadata are all things that could affect codegen already.

(in my use case the symbols are already stripped from the binary we want to reproduce).

Even if they'll be stripped, they still need to be unique for correct linking, especially when crate duplication is involved (w/ multiple semver-incompatible versions in the dependency graph).

I'm gonna close this due to inactivity. Feel free to reopen or create a new PR when you've got time to work on this again. Thanks!


Update fs2-core to 3.0.3

Updates co.fs2:fs2-core from 3.0.2 to 3.0.3.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "co.fs2", artifactId = "fs2-core" } ]

labels: library-update, semver-patch

Superseded by #64.


add last child variant to margin utilities

This pr adds the last-child tailwind variant to the margin utilities.
Use case: components generated in a loop need to have the margin stripped off the last item.
For example given an array of items,  apply a right margin to all except the last item:

    {% for item in items %}

some content

    {% endfor %}

In progress use case here: https://pr-1118-sfgov.pantheonsite.io/departments/office-city-administrator/office-civic-engagement-and-immigrant-affairs (cards above the "In this page" navigation)
The update requested in this pr adds a decent amount of kB to the dist, but in the case of sf.gov, the variant classes that aren't found to be in use in the markup are purged during build (thanks to @shawnbot!).  However, since we're attempting to make this design system available for use for other digital services/depts that may not have PurgeCSS as part of the build process, this requested change may not be worth it.  But I'll leave that to the reviewers to decide.  Just thought I'd shoot my shot 😅

aw nice! ok, i'll set up some time for us to trio 👍

did it with the gap utilities! thanks @shawnbot and @jacksongonzales!


feat(connector): [Bluesnap] Remove wallet call

Type of Change

[x] New feature

Description

Remove Wallet call form bluesnap which was earlier treated a session call.
We get session object now from apple only instead of bluesnap.

Motivation and Context

Get session response from Apple pay instead of getting from connector
How did you test it?

Manual
Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed submitted code

@Sangamesh26 Please add necessary labels to the PR


Calibrate response receives infinite results

Hi
I'm trying to calibrate the response of my camera. When I run the program, I found the results as follow,

It shows the irradiance and inverse response goes to infinite.
My guess is it related to the mean irradiance of all images, which range between [2.5, 182.6]. However, the exposure I set is between [0.06ms 200ms], with 167 images and exposure in multiplicative increments of 1.05. It is definitely overexposed at large expo time, and visually black at low expo time. I'm not sure what's wrong with this image data.
Meanwhile, the following points  are especially noticed and ensured,

a constant scene with not moving objects and change light.
the compiled program worked correctly on the "narrow_sweep3" dataset.

Please let me if you have any advice.
Thanks

hello, @glennliu may i know how you take the images with different exposures. i am using webcam with auto exposure and also a monocular industrial camera. And also i am getting results like as you mentioned above.

hello, @glennliu may i know how you take the images with different exposures. i am using webcam with auto exposure and also a monocular industrial camera. And also i am getting results like as you mentioned above.

Hi
I wrote a simple program to auto change exposure and record images. The exposure time multiplicative increment at 1.05.
My initial guess is that when at lowest exposure time, it should capture some pixels at high intensity as well. If you check the bag provided, a lamp light is placed to ensure even low expo image has high intensity pixel.
But I didn't successfully test on my bag anyway.


K3s agent node can't join multi-master cluster

Hello :)
Environmental Info:
K3s Version:

k3s version v1.21.5+k3s2 (724ef700)
go version go1.16.8
Node(s) CPU architecture, OS, and Version:

Linux mast-1 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
Linux mast-2 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
Linux mast-3 5.10.0-9-amd64 #1 SMP Debian 5.10.70-1 (2021-09-30) x86_64 GNU/Linux
Linux work-4 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux

Cluster Configuration:

3 servers installed as HA with embeded db on debian 11.
Added a VIP (using kube-vip) and added commandline argument '--tls-san' with ip addres.
Disabled traefik (--disable traefik), added nginx ingress
Added cert-manager
Changed flannel backend to "host-gw"

Everything it working.
Then try to add 1 agent node, raspberry pi 4, rasbperry pi os lite, fresh install with cgroup memory on boot cmdline.
Describe the bug:

Tried to install k3s agent, fails to connect to cluster :
Failed to configure agent: failed to retrieve configuration from server: https://<IP_ADDRESS>:6444/v1-k3s/config: 401 Unauthorized

Steps To Reproduce:

Installed K3s agent like the doc said :

curl -sfL https://get.k3s.io | K3S_URL=https://myserver:6443 K3S_TOKEN=mynodetoken sh -

with "myserver" as my first node ip, and "mynodetoken" from first node /var/lib/rancher/k3s/server/token.
Expected behavior:

Agent node added to cluster and working.
Actual behavior:

Same error in loop.
Additional context / logs:

On agent node :
sudo /usr/local/bin/k3s agent --token 'mytoken' --server https://<IP_ADDRESS>:6443 --debug -v 4 --alsologtostderr
DEBU[0000] Asset dir /var/lib/rancher/k3s/data/88fb16707f19603ef5f4784fd686d38e32337eb03189c9e0a19e933632d94189
DEBU[0000] Running /var/lib/rancher/k3s/data/88fb16707f19603ef5f4784fd686d38e32337eb03189c9e0a19e933632d94189/bin/k3s-agent [/usr/local/bin/k3s agent --token mytoken --server https://<IP_ADDRESS>:6443 --debug -v 4 --alsologtostderr]
INFO[2021-10-15T18:39:57.341956145+11:00] Starting k3s agent v1.21.5+k3s2 (724ef700)
INFO[2021-10-15T18:39:57.343639431+11:00] Running load balancer <IP_ADDRESS>:6444 -> [<IP_ADDRESS>:6443]
ERRO[2021-10-15T18:39:57.514296981+11:00] Failed to configure agent: failed to retrieve configuration from server: https://<IP_ADDRESS>:6444/v1-k3s/config: 401 Unauthorized
ERRO[2021-10-15T18:40:02.597330723+11:00] Failed to configure agent: failed to retrieve configuration from server: https://<IP_ADDRESS>:6444/v1-k3s/config: 401 Unauthorized

On first master node :
oct. 15 18:58:07 mast-1 k3s[26792]: time="2021-10-15T18:58:07.329493800+11:00" level=info msg="Cluster-Http-Server 2021/10/15 18:58:07 http: TLS handshake error from <IP_ADDRESS>:47926: remote error: tls: bad certificate"
oct. 15 18:58:07 mast-1 k3s[26792]: time="2021-10-15T18:58:07.385446446+11:00" level=error msg="Failed to authenticate request from <IP_ADDRESS>:47934: invalid username/password combination"

Backporting

[ ] Needs backporting to older releases

Hi,
It was not a failed copy/past. I don't know why, but I changed the multi-line single-quoted ExecStart entry in service file to single-line no quote, and that worked.


Standardize on PullAlways

This updates ephemeralheat and provisionserver to use PullAlways.
(backported from master)

/retest


On Formatting and CodeClimate

If you didn't know already, CodeClimate is a service that uses algorithms to check if your code has formatting errors or bad practices.
According to our CodeClimate page, we have close to 100 issues. Link
All of these changes should be easy fixes, but I'm too lazy to go fix them one by one. I would appreciate some help.
These changes should be made on the branch hotfix/issues. Make sure to git fetch before making a new branch.

I've started on it. I assume I've made hotfix/issues branch off of master? Or should I branch off of develop?

Branch off develop.
On Tue, Jan 31, 2017 at 6:37 PM Caleb Xu<EMAIL_ADDRESS>wrote:

I've started on it. I assume I've made hotfix/issues branch off of master?
Or should I branch off of develop?
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/RoboEagles4828/2017Robot/issues/38#issuecomment-276528994,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AORlYo55pbgG4FVFmInJ8V9L9_k97RmUks5rX8WxgaJpZM4LzQ7G
.

Rebasing now.

For future reference, all branches branch from develop.
On Tue, Jan 31, 2017 at 7:08 PM Caleb Xu<EMAIL_ADDRESS>wrote:

Rebasing now.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
https://github.com/RoboEagles4828/2017Robot/issues/38#issuecomment-276534442,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AORlYiVUpuBK8OJlAoX-v3qs6DINmzW0ks5rX8zpgaJpZM4LzQ7G
.

All clean now. Keep an eye on the CodeClimate build for each PR to avoid introducing new problems.


Types

u_int seems to be non-standard C++.... (used here: https://github.com/lmengnr/cpu-stat/blob/master/src/cpustat.hpp#L28-L29)
Use uint32_t or uint64_t (whichever is required) from #include <cstdint>

closed by: https://github.com/lmengnr/cpu-stat/commit/69117761874d32fab5f752b6afad32ac0b08510c


[BUG] Navigating back from Navigation push MaterialPageRoute lag

Hello I have simple application with multiple pages each one contains a List of elements that are horizontal.
When I navigate back from a page both in Android and iOS I can observe a lag in the animation while closing is this a known issue or I have to do something as a code while a page is closing ?
Any help will be very appreciated because I am trying to use flutter as one project of mine and this is a blocker to me.

Please add the output of flutter doctor

@zoechi here it is:
/bin/flutter doctor -v
[✓] Flutter (Channel beta, v0.4.4, on Mac OS X 10.13.4 17E199, locale bg-US)
• Flutter version 0.4.4 at /Users/dimitari/Downloads/The-10/test/flutter
• Framework revision f9bb4289e9 (5 weeks ago), 2018-05-11 21:44:54 -0700
• Engine revision 06afdfe54e
• Dart version 2.0.0-dev.54.0.flutter-46ab040e58
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/dimitari/Library/Android/sdk
• Android NDK at /Users/dimitari/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
• All Android licenses accepted.
[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
✗ Brew not installed; use this to install tools for iOS device development.
Download brew at https://brew.sh/.
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 23.2.1
• Dart plugin version 171.4424
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] Connected devices (1 available)
• CLT L29 • WCR0218428011065 • android-arm64 • Android 8.1.0 (API 27)
! Doctor found issues in 1 category.

its seems only the default navigation have wrong parameters in the animation I tried with custom transition animation and I cannot reproduce it.

@HansMuller

Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.


Filetype Is Incorrect

Describe the bug
Is there some cache that I do not know about? I am not using --update, and yet, for some reason, it seems like osxphotos thinks that the PNG image is a JPEG image, even though I had fixed that issue a while ago.
% osxphotos export "/Volumes/Extreme SSD/osxphotos" --exiftool --exiftool-merge-keywords --album-keyword --retry 3 --download-missing --directory "{created.year}/" --touch-file --skip-edited --report export.csv
Using last opened Photos library: /Users/michaelpetrochuk/Pictures/Photos Library.photoslibrary
Exporting 29933 photos to /Volumes/Extreme SSD/osxphotos...
❌  exiftool error for file /Volumes/Extreme SSD/osxphotos/2018/IMG_1943.PNG: Error: Not a valid JPEG (looks more like a PNG) - /var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_wpiqs7py/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
❌  Error exporting photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG) as /Volumes/Extreme SSD/osxphotos/2018/IMG_1943.PNG: Error: Not a valid JPEG (looks more like a PNG) -
/var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_wpiqs7py/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
Retrying export for photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG)
❌  exiftool error for file /Volumes/Extreme SSD/osxphotos/2018/IMG_1943 (1).PNG: Error: Not a valid JPEG (looks more like a PNG) - /var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_86hjnyx_/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
❌  Error exporting photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG) as /Volumes/Extreme SSD/osxphotos/2018/IMG_1943 (1).PNG: Error: Not a valid JPEG (looks more like a PNG) -
/var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_86hjnyx_/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
Retrying export for photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG)
❌  exiftool error for file /Volumes/Extreme SSD/osxphotos/2018/IMG_1943 (2).PNG: Error: Not a valid JPEG (looks more like a PNG) - /var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_thqsw0_e/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
❌  Error exporting photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG) as /Volumes/Extreme SSD/osxphotos/2018/IMG_1943 (2).PNG: Error: Not a valid JPEG (looks more like a PNG) -
/var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_thqsw0_e/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
Retrying export for photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG)
❌  exiftool error for file /Volumes/Extreme SSD/osxphotos/2018/IMG_1943 (3).PNG: Error: Not a valid JPEG (looks more like a PNG) - /var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_99uuu0e1/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg
❌  Error exporting photo (74D5E3D0-08D5-461D-B823-3B14DBC8D4A0: IMG_1943.PNG) as /Volumes/Extreme SSD/osxphotos/2018/IMG_1943 (3).PNG: Error: Not a valid JPEG (looks more like a PNG) -
/var/folders/9c/4358dkjn2wj_c0_89tpry1pm0000gn/T/osxphotos_export_99uuu0e1/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0_exiftool.jpeg

I ran a fresh export in a new location of all my photos, and I got this strange error: IMG_1943.PNG: Error: Not a valid JPEG (looks more like a PNG).
This is strange because I had changed the photo to be a PNG, as you can see:

It's a PNG, through and through. I even ran exftools on it to confirm that it is in-fact a PNG image.
To Reproduce
I am not sure how to reproduce it; however, I have attached the image. Here are the steps that happened:

This image was a JPEG
I exported it and it osxphotos threw an error
I deleted it and re-imported it as a PNG
I re-ran osxphotos with the command above and I am now receiving this funky error

Expected behavior
I expect there is some sort of cache for the file type that I am not aware of, I would like to clear it.
Desktop (please complete the following information):
OS: macOS Ventura Version 13.1 (22C65)
% osxphotos --version
osxphotos, version 0.55.5

I'm guessing the Photos library still thinks this is a JPEG. I'm traveling but when I get a chance will send you some debug commands to run. Osxphotos creates a cache called .osxphotos_export.db in the export folder but only uses this when you use --update You could try to delete this file then run export again but I'd be surprised if it made a difference.

Yeah, I tried to delete it. It didn't help.
That's really interesting when I export it with the Photos app, it exports as a PNG. That's interesting that it might think it's a JPEG still.
Safe travels!

Please try the following command and send the resulting debug_884.txt to me at<EMAIL_ADDRESS>or post here. Note: the file may contain sensitive info such as location data so you may want to look at first and delete anything you don't want to share. What I'm most interested in are the UTI_xxx fields as these will tell me what Photos thinks the photo actually is.
osxphotos debug-dump --dump photos --uuid 74D5E3D0-08D5-461D-B823-3B14DBC8D4A0 > debug_884.txt

Done!! Thank you!

Got the data, thanks. osxphotos clearly thinks this is a jpeg which is why it's creating a temporary jpeg file for exiftool to operate on.  The data you sent shows the original file name is IMG_1943.PNG (correct) but shows the UTI (the file type) as public.jpeg and hence it thinks this is a jpeg.  Also, the file on disk in the actual library is a jpeg:
 'filename': '74D5E3D0-08D5-461D-B823-3B14DBC8D4A0.jpeg',
Is this the only image doing this?
Try the following commands in the Terminal and post output here or send it to me:
sqlite3 ~/Pictures/Photos\ Library.photoslibrary/database/Photos.sqlite ".headers on" "select ZUUID, ZUNIFORMTYPEIDENTIFIER, ZFILENAME from ZASSET where ZUUID = '74D5E3D0-08D5-461D-B823-3B14DBC8D4A0'" > 884_uti.txt
And also:
exiftool -G ~/Pictures/Photos\ Library.photoslibrary/originals/7/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0* > 884_exiftool.txt

Thanks for those commands; I ran them. It looks like it is, in fact, a PNG image; however, for some reason, Apple has a JPEG extension.
This is the only image doing this. I was able to fix many other pictures with no issues by deleting and re-importing.
% sqlite3 ~/Pictures/Photos\ Library.photoslibrary/database/Photos.sqlite ".headers on" "select ZUUID, ZUNIFORMTYPEIDENTIFIER, ZFILENAME from ZASSET where ZUUID = '74D5E3D0-08D5-461D-B823-3B14DBC8D4A0'"
ZUUID|ZUNIFORMTYPEIDENTIFIER|ZFILENAME
74D5E3D0-08D5-461D-B823-3B14DBC8D4A0|public.jpeg|74D5E3D0-08D5-461D-B823-3B14DBC8D4A0.jpeg
% exiftool -G ~/Pictures/Photos\ Library.photoslibrary/originals/7/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0*
[ExifTool]      ExifTool Version Number         : 12.50
[File]          File Name                       : 74D5E3D0-08D5-461D-B823-3B14DBC8D4A0.jpeg
[File]          Directory                       : /Users/michaelpetrochuk/Pictures/Photos Library.photoslibrary/originals/7
[File]          File Size                       : 173 kB
[File]          File Modification Date/Time     : 2022:09:10 20:09:18-07:00
[File]          File Access Date/Time           : 2022:12:29 12:00:49-08:00
[File]          File Inode Change Date/Time     : 2022:12:29 10:46:24-08:00
[File]          File Permissions                : -rw-------
[File]          File Type                       : PNG
[File]          File Type Extension             : png
[File]          MIME Type                       : image/png
[PNG]           Image Width                     : 750
[PNG]           Image Height                    : 1334
[PNG]           Bit Depth                       : 8
[PNG]           Color Type                      : RGB
[PNG]           Compression                     : Deflate/Inflate
[PNG]           Filter                          : Adaptive
[PNG]           Interlace                       : Noninterlaced
[PNG]           SRGB Rendering                  : Perceptual
[XMP]           XMP Toolkit                     : XMP Core 5.4.0
[XMP]           Date Created                    : 2018:03:22 20:22:58
[XMP]           User Comment                    : Screenshot
[Composite]     Image Size                      : 750x1334
[Composite]     Megapixels                      : 1.0
% file ~/Pictures/Photos\ Library.photoslibrary/originals/7/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0*
/Users/michaelpetrochuk/Pictures/Photos Library.photoslibrary/originals/7/74D5E3D0-08D5-461D-B823-3B14DBC8D4A0.jpeg: PNG image data, 750 x 1334, 8-bit/color RGB, non-interlaced

This is so funky!

I know you've already tried to export this once from Photos and reimport but I suggest doing it once more. Export original from Photos, verify it's a PNG with exiftool and ensure it has PNG extension then re-import and delete the original. If that doesn't work, I'll craft a SQL command to directly modify the UTI in the Photos database.

That worked this time around! Thank you! So, strange!


feat(example): performance optimization and add concurrent lock support

What type of PR is this?
feat

What this PR does / why we need it (English/Chinese):

reduce unnecessary pointer passing and calling
optimize structural parameters
add concurrent lock support

Which issue(s) this PR fixes:

LGTM


Raising ambiguity between CONCEPT/CONCEPTUAL

In this sentence: European countries was a decline in support for "Eurosceptic movements".
I would tend to think "Eurosceptic" is a CONCEPT, because of the notion of "Euroscepticism" explanation in "Wikipedia"
However, i got confused when I looked up in the classes definition and example and i came through "European Union membership" as CONCEPTUAL.
Note that I did annotate "Eurosceptic movements" in the sentence as "ORGANISATION"
</ENAMEX> and other <ENAMEX type="NATIONAL">European</ENAMEX> countries was a decline in
support for <ENAMEX type="ORGANISTION">Eurosceptic movements</ENAMEX>

Hello!
I agree that this should be refined and illustrated with more examples.
In your example, the concept is indeed Euroscepticism, so it would be tagged as CONCEPT. When something is "Eurosceptic", Eurosceptic is used to related to the concept, so it would be tagged as CONCEPTUAL.
In the example "European Union membership", there is a small error in the doc that I will correct - it's only European Union than should be labelled as CONCEPTUAL (not membership), similarly as with "Greek myths" where only Greek is labelled as  CONCEPTUAL.
Let's use this issue to explore more ambiguous cases, discuss and clarify more around these two labels.

Hi,
I have some questions regarding the answer of @kermitt2.

I understand that Euroscepticism is a CONCEPT but it's not entirely clear what we should do with Eurosceptic X. From what I gather from this thread and the issue #15 about things like Zionist movement, it would be like this:

- <ENAMEX type="CONCEPTUAL">Eurosceptic</ENAMEX> tendency
- <ENAMEX type="ORGANISATION">Eurosceptic movement</ENAMEX>
- <ENAMEX type="CONCEPTUAL">Eurosceptic</ENAMEX> movements

What do you think?

Why European Union and Greek are not tagged with NATIONAL?

If we have something "organised", as apparently "Eurosceptic movements" we would have ORGANISATION  for the whole mention (following the longest entity match principle).

"European Union" is INSTITUTION I think.
Greek as used in "Greek myths" is referring to the Greek language or Greek culture, not the location or the group of person, so it is CONCEPTUAL (because Greek the language/culture is CONCEPT).

Thanks, ok for 1).
About 2), I'm not sure why European Union is INSTITUTION. What about countries' names? They are LOCATION but they are INSTITUTION too sometimes, when the name refers to the government. Should we annotate these cases as INSTITUTION? For example:

Germany's allies Italy, Hungary, Romania, Bulgaria and Finland were pressured to introduce antisemitic measures

Well, imho European Union is more INSTITUTION as it is not defined by a (fixed) location, but as a set of legal entities with a treaty and particular instances. Maybe after many many years of integration, it would blend into a fixed location (like the USA, where the Federal State is an institution).
It's true that country names are often used to refer actually to the country's "state"/government and sometimes to other institution (e.g. "Austria invaded Italy", it's actually the Austrian Army which has invaded Italy the location).
I don't know if it is always clear to distinguish exactly which entity is exactly behind the simple mention of a country name, and the problem is maybe more a disambiguation problem than identifying the entity class.

ok so to recap, here are some examples we could use now, if I understood correctly:

class
examples
comment

CONCEPT
euroscepticism

CONCEPTUAL
eurosceptic tendency, Greek myths
Greek refers to the language or the culture, not to the location or the group of people

ORGANISATION
eurosceptic movement(s)
longest entity match principle applies

INSTITUTION
European Union
not LOCATION because defined as a set of legal entities and not a fixed location

LOCATION
Austria
no disambiguation between country, army, government, etc. at this level

I'm not so convinced to consider European Union as INSTITUTION however I cannot find a counter-example where tagging it as LOCATION would makes more sense. 😃

While writing the doc, I'm struggling with the difference between PERSON_TYPE and CONCEPTUAL in some cases:
in issue #15, we said that entities like Jewish problems or Zionist newspapers are annotated PERSON_TYPE:
- <ENAMEX type="PERSON_TYPE">Jewish</ENAMEX> problems
- <ENAMEX type="PERSON_TYPE">Zionist</ENAMEX> newspapers

but in issue #29 (this one) we said eurosceptic is CONCEPTUAL
Is there really a difference between:
Zionist newspapers
Eurosceptic newspapers
?
Since Zionism and Euroscepticism are both CONCEPT...

After discussing there is a problem because something like

a concept like Zionism leads to Zinoist annotated as PERSON_TYPE, but
a concept like  Eurosceptiscism should lead to Eurosceptic as PERSON_TYPE

We probably need more examples to clarify.

We just talked about this and it seems to us that:
when the entity is an adjective derived from a concept (ex. eurosceptic which comes from the concept euroscepticism), we need to make a difference between cases where the adjective modifies an inanimate noun and cases where it modifies a human noun. i.e.:
the <ENAMEX type="PERSON_TYPE">eurosceptics</ENAMEX> went to protest against POTUS
the <ENAMEX type="CONCEPTUAL">eurosceptic</ENAMEX>doctrine is very common in UK

It's different from Jewish newspapers or Jewish events which are still annotated PERSON_TYPE because they still refers only to the group of people who are Jewish, with the argument of @kermitt2 in issue #15: in this comment

Could we formalise a difference between Euroskeptists and Jewish? The first are the group of people following an idea/concept, the second is more than that:

it's cultural,
they don't necessarly choose

Would that be enough? I'm asking because Jewish/Cristian/Muslim are of the same nature, while Zionist/Communist/Anarchist are people following more an idea?
I'm trying to find a reason to make the issue #15, cohesist with the latest comments [1] [2]
again, this subject might lead to overthinking

While having lunch I have thought with @everzeni about the formalisation of differences between a group of people following an idea (euroskeptisist) or a group of people part of a more complex entity (e.g. Religion):
Please ignore the two reasons (cultural and choice). A better rule would be to check whether the path to enter this group is more than just an agreement with the idea. For example to became Jewish or Catholic there is a specific formal path to be followed. While to became euroskeptists there isn't.
Does it make more sense?

@kermitt2 we would appreciate your insight on this : )

What about: when the derivations Jewish/Christian/Muslim/Zionist/Communist/Anarchist are used to refer to a group of people we annotate with PERSON_TYPE, and when it is used to modify a common name, it is CONCEPTUAL:
the <ENAMEX type="PERSON_TYPE">eurosceptics</ENAMEX> went to protest against POTUS
the <ENAMEX type="PERSON_TYPE">Communists</ENAMEX> went to protest against POTUS
the <ENAMEX type="PERSON_TYPE">Jewish</ENAMEX> went to protest against POTUS

versus:
The <ENAMEX type="CONCEPTUAL">eurosceptic</ENAMEX> doctrine is very common in UK.
The <ENAMEX type="CONCEPTUAL">communist</ENAMEX> doctrine is very common in UK.
The <ENAMEX type="CONCEPTUAL">Christian</ENAMEX> religion is very common in UK.
The <ENAMEX type="CONCEPTUAL">Zionist</ENAMEX> newspapers are very common in UK.

ok for me !


[move-prover] Add remaining loop invariants to vector functions

Motivation
Finish verifying the loops in vector.
Have you read the Contributing Guidelines on pull requests?
Yes.
Test Plan
No code change.  Move Prover is verifying the Move file.
Related PRs

@bors-libra r=junkil-park

:pushpin: Commit 9b432e8 has been approved by junkil-park

:hourglass: Testing commit 9b432e886d6be3aae27dac4c1968a676c0b4c74e with merge 90d5be1747e66f0c982577e0823979b7527a113f...

:sunny: Test successful - checks-actions_land_blocking_test, checks-circle_commit_workflow
Approved by: junkil-park
Pushing 90d5be1747e66f0c982577e0823979b7527a113f to master...


Type "Azure Cosmos DB emulator"→"Azure Cosmos DB Emulator"

https://docs.microsoft.com/en-us/azure/cosmos-db/tutorial-setup-ci-cd

@hyoshioka0128 : Thanks for your contribution! The author(s) have been notified to review your proposed change.

#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @deborahc, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


C++ program calculates the mean of numbers the user inputs

Assigned Issue ?
#159
Language Opted ?
C++
Number of files added or updated ?
1
Name of these files ?
mean.cpp
example :
algo_ds_101 => Maths_And_Stats => mean.cpp
Maths_And_Stats/mean.cpp
Checklist

[x] I've read the contribution guidelines.
[x] I've referred the correct issue number.
[x] I've fill up this entire template correctly.

@ahampriyanshu I didn't get what you're asking about the PR template can you please elaborate I'm new to open sourcing

I mistakenly closed it, I reopened it.

thanks @ahampriyanshu

Perfect 👏🏽
thanks @js899 ,
Happy Contributing

Hi, could you please add the label "hacktoberfest-accepted" to my PR, thanks.

Perfect 👏🏽
thanks @js899 ,
Happy Contributing

Hi @ahampriyanshu , could you please add the label "hacktoberfest-accepted" to my PR, thanks.


Updated version to snapshot

Codecov Report

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

@@           Coverage Diff           @@
##           master     #435   +/-   ##
=======================================
  Coverage   69.62%   69.62%
=======================================
  Files          56       56
  Lines        1544     1544
  Branches      163      163
=======================================
  Hits         1075     1075
  Misses        389      389
  Partials       80       80

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 d028e00...9289e5a. Read the comment docs.


Prep for 0.1.0 release

Codecov Report

Merging #4 (b65d2ed) into release (177a10a) will increase coverage by 85.56%.
The diff coverage is 100.00%.

Additional details and impacted files

@@             Coverage Diff              @@
##           release       #4       +/-   ##
============================================
+ Coverage     0.00%   85.56%   +85.56%
============================================
  Files            1        1
  Lines           72       97       +25
============================================
+ Hits             0       83       +83
+ Misses          72       14       -58

Files Changed
Coverage Δ

src/lib.rs
85.56% <100.00%> (+85.56%)
:arrow_up:


Method System.getProperty("java.io.tmpdir") returns 'C:\Windows' directory after update to testng 0.6.10 in Eclipse Java EE IDE for Web Developers

When using TestNG after update it to 0.6.10 version with Eclipse IDE property "java.io.tmpdir" becomes to "C:\Windows"
Using
Eclipse Java EE IDE for Web Developers.

Version: Mars.1 Release (4.5.1)
Build id: 20150924-1200

and Microsoft Windows 10
For example this code:
    public static void main(String[] args) {
        System.out.println(System.getProperty("java.io.tmpdir"));
    }

returns C:\Users\Andrey\AppData\Local\Temp\
but this one:
	@Test
	public void f() {
		System.out.println(System.getProperty("java.io.tmpdir"));
	}

returns C:\WINDOWS\

How is that a TestNG issue?

To prove it's TestNG, here are the steps:
1- In the configuration force java.io.tmpdir to your temp dir (In AppData). Eclipse uses that and every method that is invoked before the tagged scopes uses it.
4- Run in the debugger even with the java.io.tmpdir override above. Every call within a tagged method (@BeforeSuite for instance) will invariably return java.io.tmpdir = C:\Windows\ regardless of what the override was.
Also:
2- Run the test until firefox is launched, then kill the test, leaving firefox up.
3- Try to do anything useful with the browser, since it's set to tmpdir C:\Windows, pretty much nothing works (especially javascript).

@atassaad
could you check the command line used to launch the testng process within Eclipse, by clicking "Window (on top level menu) -> Show view -> Error Log", you will see log entries starts with "[TestNGLaunchConfigurationDelegate] Launching:", double click it to view the whole info.
BTW, do you use maven to manage your java project? do you have any "argLine" configuration defined for maven-surefire-plugin or maven-failsafe-plugin in the pom.xml?

I haven't use maven in this test project.
This is the launch string with testng-eclipse 6.9.9 (i replaced my home path to %USERHOME%):
[TestNGLaunchConfigurationDelegate] Launching:
  Classpath: D:\Work\EclipseWorkspace\testngeclipse\bin %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\testng.jar %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\jcommander.jar %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\bsh-2.0b4.jar %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\snakeyaml.jar
  VMArgs:    -ea
  Class:     org.testng.remote.RemoteTestNG
  Args:      -serport 52373 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml
java -ea -classpath D:\Work\EclipseWorkspace\testngeclipse\bin:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\testng.jar:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\jcommander.jar:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\bsh-2.0b4.jar:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib\snakeyaml.jar org.testng.remote.RemoteTestNG -serport 52373 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml

and it's return java.io.tmpdir=%USERHOME%\AppData\Local\Temp\ as windows short path (DOS-style).
And this one is a launch string with testng-eclipse 6.9.10, that returns java.io.tmpdir=C:\Windows\
[TestNGLaunchConfigurationDelegate] Launching:
  Classpath: D:\Work\EclipseWorkspace\testngeclipse\bin %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\testng.jar %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\jcommander.jar %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\bsh-2.0b4.jar %USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\snakeyaml.jar
  VMArgs:    -ea
  Class:     org.testng.remote.RemoteTestNG
  Args:      -serport 52569 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml
java -ea -classpath D:\Work\EclipseWorkspace\testngeclipse\bin:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\testng.jar:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\jcommander.jar:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\bsh-2.0b4.jar:%USERHOME%\.p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>511281504\lib\snakeyaml.jar org.testng.remote.RemoteTestNG -serport 52569 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml

I can't see differences.
Also adding string -Djava.io.tmpdir=%TEMP% to run configuration solve the problem with temp directory, but other Windows environment parameters problems stay on, for example Selenium Webdriver returns that exception when calling FirefoxDriver.quit():
Dec 01, 2015 11:46:42 AM org.openqa.selenium.os.ProcessUtils killWinProcess
WARNING: Process refused to die after 10 seconds, and couldn't taskkill it
java.lang.NullPointerException: Unable to find executable for: taskkill

With testng plugin 6.9.9 installed from http://beust.com/eclipse-old/eclipse_<IP_ADDRESS>510270734 i have no such problems.
So I have no any ideas what caused the problem: testng, tesng-eclipse plugin or someone else.

ok, let's try to narrow down the issue.
could you try with old version of testng (e.g. 6.9.9) for your project. to do so, since your project is not maven based, you need to copy the testng jar file and its dependencies like jcommander, bsh to your project and add them to the project classpath, pls make sure they are on font of testng 6.9.10

My installation on that Windows machine is very simple:
eclipse + TestNG. It worked before 6.10 and that's the only update since Wednesday. I was using 6.9.9 as I tend to be the office canary when it comes to updates.
We always launch tests locally from within eclipse (until they go to jenkins) by running a TestNG XML file as...
We use maven to manage the projects: I do not think we have either maven-surefire-plugin argLine parameters or the maven-failsafe-plugin but I'll check. I'll get you the command line from the log when I get to the office.
Since I'm dead in the water until I get this back up (I should remember always to thank you for the wonderful tool), how to I install TestNG within eclipse without recompiling it from elemental particles?

@missedone
Ok. I'll try to do this.
First I have installed latest testng-eclipse from http://beust.com/eclipse.
Next I copied .jar files from .p2\pool\plugins\org.testng.eclipse_<IP_ADDRESS>510270734\lib to my project directory and added testng.jar, testng-remote.jar, bsh-2.0b4.jar and jcommander.jar to project classpath.
Then I run project by "right click on testng.xml --> Run As --> TestNG Suite"

and java.io.tmpdir still returns *C:\Windows*

Launch string was:
[TestNGLaunchConfigurationDelegate] Launching:
  Classpath: D:\Work\EclipseWorkspace\testngeclipse\bin D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\testng.jar D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\testng-remote.jar D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\bsh-2.0b4.jar D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\jcommander.jar
  VMArgs:    -ea
  Class:     org.testng.remote.RemoteTestNG
  Args:      -serport 54678 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml
java -ea -classpath D:\Work\EclipseWorkspace\testngeclipse\bin:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\testng.jar:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\testng-remote.jar:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\bsh-2.0b4.jar:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.9\jcommander.jar org.testng.remote.RemoteTestNG -serport 54678 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml

Next I tried a reverse situation: using testng 6.9.10 .jar files and install testng-eclipse plugin from http://beust.com/eclipse-old/eclipse_<IP_ADDRESS>510270734
and in this case java.io.tmpdir still returns me C:\Users\ANDREY~1\AppData\Local\Temp\ directory.

Launch string was:
[TestNGLaunchConfigurationDelegate] Launching:
  Classpath: D:\Work\EclipseWorkspace\testngeclipse\bin D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\bsh-2.0b4.jar D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\jcommander.jar D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\testng.jar D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\testng-remote.jar
  VMArgs:    -ea
  Class:     org.testng.remote.RemoteTestNG
  Args:      -serport 54827 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml
java -ea -classpath D:\Work\EclipseWorkspace\testngeclipse\bin:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\bsh-2.0b4.jar:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\jcommander.jar:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\testng.jar:D:\Work\EclipseWorkspace\testngeclipse\testng-6.9.10\testng-remote.jar org.testng.remote.RemoteTestNG -serport 54827 -d D:\Work\EclipseWorkspace\testngeclipse\test-output D:\Work\EclipseWorkspace\testngeclipse\testng.xml

So it looks like testng-eclipse plugin issue?

Yes. it does seem to be an issue with the newer version of TestNG 6.10.xxx. I copied the TestNG features and plugins folders from my Mac's install and put them into my Windows PC eclipse installation. My mac was at version org.testng.eclipse_<IP_ADDRESS>510270734. And now everything is back to normal.
Good news is I'm back in business. Let me know if you need any help.

hi guys, could you try the latest updated plugin, and report back
thanks

@missedone
It works good for me with latest update. Thanks for your work!

Sorry this is a little late, but I just updated testing and I'd like to confirm that the new version works fine.


testing and CI

Need to implement a test which runs all examples.
The repo should also be hooked up to travis for CI.

I believe, it could be closed now.


Press Trigger. Start Function.

Hello,
I'm very new to all this but first of all: Thank you for publishing this Toolkit. It is simply incredible :-)
Now to my problem:
I created a circle that highlights when the controller touches it. What i'd like to do now is that when i press the trigger on the controller, while touching the circle, a function should start. For example create a cube above the circle that looks like an infobox with text on it.
On a second trigger press the cube should disappear.
Please help. I'm lost :-D

If you make a new script for your objects that you're touching and make that script extend VRTK_InteractableObject you can then override the StartUsing() method. This method gets executed when you are touching an interactable object and press the using button on the controller.
Take a look at some of the example scenes with the guns in them (and the gun script) for further examples of how to do this.