[FR]Call main function when evaluating file in Rust evcxr

As title.
I think it would be more ergonomic to just call the main function and ask parmeters of it to user if necessary.
BTW, rust client seems to print a lot of stuffs on the REPL as comments, I personally don't like this approach. We could improve it maybe via writing a customized version of REPL based on some core evcxr libraries.

@rafaeldelboni would love your opinion on this one too! I appreciate that you may just not know about this sort of thing either.

Is possible to call the main function via the stdio interface? If not that would need a complete rewrite of the integration, but I wouldn't mind of is there a good documentation about how to do this.
About the customized repl based on evcxr libraries, I totally would go using nrepl protocol instead of stdio like the current one if I was going to make one.
And I'm sorry if I used/integrated anything wrong, I just had the idea of integrating a rust repl while I was studying rust after years working with clojure.

And I'm sorry if I used/integrated anything wrong, I just had the idea of integrating a rust repl while I was studying rust after years working with clojure.

Oh no no, you did great, I think anything is better than nothing, I don't expect every client to do everything everyone wants ever. I only roped you in here for your input since you have the most context... compared to me especially!

Close in favor of more generalized #508 . That one is closed as well because it should be implement in LSP/DAP. We can keep conjure simple by not implementing this feature.


"report a bug" should open in new window

Describe the issue
Often need to look back at the page while creating the bug report.
Code of Conduct

[X] I agree to follow the IETF's Code of Conduct

https://github.com/ietf-tools/datatracker/pull/4525 (just merged) does this already.


🐞[Bug]: Home page is not responsive on mobile screen

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When user accessing the website on mobile the home page is overflowing screen and hiding
Expected behavior
When user accessing the website on mobile screen the home screen contents are made responsive to mobile screen
Add ScreenShots

What browsers are you seeing the problem on?
Chrome
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@K-kiran77
it seems like it has been fixed in any previous pr


webpack 2 support

$ npm install<EMAIL_ADDRESS>$ npm install baggage-loader
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none was installed.

https://github.com/deepsweet/baggage-loader/issues/11

webpack 2 was released - issue persists (but baggage loader works marvelously)

Hi @deepsweet, do you think is possible to give push rights to the people whom has self offered to do the maintenance to the loader?
Maybe with many eyes over the repo it could be maintained better.
Best Regards

I very much hope this project doesn't die. It's just enough magic for understandable code structure yet saves time & nerves over missing imports. :thumbs_up:

#11 is still open :) @pablodgonzalez it's possible

This works as is with webpack 2 despite the warning

Yes, but it breaks npm-shrinkwrap, doesn't it?


Fix warning in

When we start development, these warnings are printed out.
info ℹ ｢wdm｣: Compiling...
 WARNING  Compiled with 1 warnings                                                10:14:52

Module Warning (from ./node_modules/eslint-loader/index.js):

/Users/rapee/Works/politician-directory/politician-directory/src/components/footer/index.j
s
   99:48  warning  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
  104:42  warning  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
  109:40  warning  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
  114:46  warning  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank
  119:42  warning  Using target="_blank" without rel="noopener noreferrer" is a security risk: see https://mathiasbynens.github.io/rel-noopener  react/jsx-no-target-blank

✖ 5 problems (0 errors, 5 warnings)

Related to https://github.com/codeforthailand/politician-directory/pull/44


[v1.1][ISSUE-234] Add jupyter service in pytorch1.12 docker

What changes were proposed in this pull request?

add jupyter support in pytorch1.12 docker
Why are the changes needed?

add jupyter support in pytorch1.12 docker
How was this patch tested?

UT

After combine pytorch110 & pytorch112, do we still need those docker files?
How about the Readme file in docker folder? Please reflect the changes/steps to start notebook in readme as well.

This PR only includes the notebook in the docker, what about the doc part?

The doc part will be added later.

After combine pytorch110 & pytorch112, do we still need those docker files?
How about the Readme file in docker folder? Please reflect the changes/steps to start notebook in readme as well.

This PR mainly about fixing the corresponding README when combing PyTorch110 and PyTorch112

Completed and ready for merge.,

the script is tested locally, working well. Some small issues still need fixing
modification requested:

fix README
using start_e2eaiok_docker.py to trigger jupyter

the script is tested locally, working well. Some small issues still need fixing modification requested:

fix README
using start_e2eaiok_docker.py to trigger jupyter

All solved.


tests: add test_sort_perf.nit

This test illustrate a current issue with string comparisons.
On my machine, a valgrind of it gives 80+% on BOX_Byte.

+1

:shipit:


Error in if (max(wt) > 1e-05)

imputed_count_mat_list <- mbImpute(condition = study_condition,  otu_tab = otu_table, D = D)

Produces:
Error in if (max(wt) > 1e-05) {: missing value where TRUE/FALSE needed
Traceback:

1. mbImpute(condition = study_condition, otu_tab = otu_table, D = D)
2. data_fit2(otu_tab, meta_data, D, k = k)
3. lapply(1:ncol(y_sim), FUN = function(col_i) {
 .     y = y_sim[, col_i]
 .     return(gamma_norm_mix(y, X)$d)
 . })
4. FUN(X[[i]], ...)
5. gamma_norm_mix(y, X)
6. update_gmm_pars(x = y, wt = a_hat_t)

sessionInfo
R version 4.0.3 (2020-10-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 18.04.5 LTS

Matrix products: default
BLAS/LAPACK: /ebio/abt3_projects/Anxiety_Twins_Metagenomes/envs/tidyverse-clr/lib/libopenblasp-r0.3.12.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
 [1] ape_5.4-1         glmnet_4.1-1      Matrix_1.3-2      mbImpute_0.1.0
 [5] LeyLabRMisc_0.1.9 tidytable_0.5.9   data.table_1.14.0 ggplot2_3.3.3
 [9] tidyr_1.1.3       dplyr_1.0.5

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.6        pillar_1.5.1      compiler_4.0.3    iterators_1.0.13
 [5] base64enc_0.1-3   tools_4.0.3       digest_0.6.27     uuid_0.1-4
 [9] nlme_3.1-152      lattice_0.20-41   jsonlite_1.7.2    evaluate_0.14
[13] lifecycle_1.0.0   tibble_3.1.0      gtable_0.3.0      pkgconfig_2.0.3
[17] rlang_0.4.10      foreach_1.5.1     cli_2.3.1         IRdisplay_1.0
[21] parallel_4.0.3    IRkernel_1.1.1    repr_1.1.3        withr_2.4.1
[25] generics_0.1.0    vctrs_0.3.6       grid_4.0.3        tidyselect_1.1.0
[29] glue_1.4.2        R6_2.5.0          fansi_0.4.2       survival_3.2-10
[33] pbdZMQ_0.3-5      purrr_0.3.4       magrittr_2.0.1    splines_4.0.3
[37] codetools_0.2-18  scales_1.1.1      ellipsis_0.3.1    htmltools_<IP_ADDRESS>
[41] assertthat_0.2.1  shape_1.4.5       colorspace_2.0-0  utf8_1.2.1
[45] doParallel_1.0.16 munsell_0.5.0     crayon_1.4.1

I get the same error if I leave out the study condition and/or phylogenetic distance matrix

I also met the same question.

Dear all,
Thank you for your interest in our method, I have updated the package on September 15th on a bug fix. Please uninstall the installed mbImpute R package, restart the R environment and reinstall mbImpute from Github.
Please let me know if you encounter further problems.

This seems to be fixed. Thanks @ruochenj for updating the code!


[BEAM-9250] Update verify_release_build script to run python tests with dev version.

Update script to run python dataflow batch tests with dev version.
Example: https://github.com/apache/beam/pull/10781/files
R: @aaltay

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

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

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

Change is fine. Please add a comment to explain why this is needed for dataflow python batch tests, and what are the potential side effects.

Done. Thanks for the quick review! I'll merge this PR once all tests pass.

The test failure seems like the Jenkins infra problems. Though my changes should not affect these tests, I'll rerun it.

Run JavaPortabilityApi PreCommit


GHG Tracking Stop-Start Technology

Stop Start counts SPN 12711    SPN 12726    SPN 12741
Stop Start Engine Run Time SPN 12712    SPN 12727    SPN 12742
The above 6 SPNs can report "Not Available". Not all trucks are equipped with start stop systems. An exclusion list must be added in Part 1 Test 26, Part 2 Test 17 and Part 11 Test 13 for the >FAFFh evaluation for the above 6 SPNs.

Not exactly.  The label would still need to FAh or less.
It was generally expected that only supported technologies would be reported.
I can accept an explanation that the customer’s transmission equipment governs use of these    technologies.  Reporting as xx 0000 0000 would pass the test as written (a j1979 like approach).
We would need to add text to Appendix D too.

09:30:02.4118 Destination Specific GHGTS Request to Engine #1 (0)
09:30:02.4152 18EA00F9 [3] FD FA 00 (TX)
09:30:02.4663 1CFAFD00 [28] 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF
GHG Tracking Stored 100 Hour Array Data from Engine #1 (0):
SPN 12715, GHG Tracking Stored 100 Hour Engine Run Time: 0.000 s
SPN 12716, GHG Tracking Stored 100 Hour Vehicle Distance: 0.000 km
SPN 12717, GHG Tracking Stored 100 Hour Vehicle Fuel Consumption: 0.000 l
SPN 12718, GHG Tracking Stored 100 Hour Engine Fuel Consumption: 0.000 l
SPN 12719, GHG Tracking Stored 100 Hour Engine Output Energy: 0.000 kWh
SPN 12720, GHG Tracking Stored 100 Hour Positive Kinetic Energy Numerator: 0.000 km²/h²
SPN 12721, GHG Tracking Stored 100 Hour Urban Speed Run Time: 0.000 s
SPN 12722, GHG Tracking Stored 100 Hour Idle Run Time: 0.000 s
SPN 12723, GHG Tracking Stored 100 Hour Engine Idle Fuel Consumption: 0.000 l
SPN 12724, GHG Tracking Stored 100 Hour Engine Power Take Off Run Time: 0.000 s
SPN 12725, GHG Tracking Stored 100 Hour Engine Power Take Off Fuel Consumption: 0.000 l
SPN 12726, GHG Tracking Stored 100 Hour Automatic Engine Shutdown Technology Activation Count: 0.000 count
SPN 12727, GHG Tracking Stored 100 Hour Stop-Start Technology Run Time: Not Available
09:30:02.4711 GHG Tracking Arrays from Engine #1 (0)
|-------------------------+-------------+-------------+-------------|
|                         |    Active   |    Stored   |             |
|                         |   100 Hour  |   100 Hour  |   Lifetime  |
|-------------------------+-------------+-------------+-------------|
| Engine Run Time, s      |           0 |           0 |          43 |
| Vehicle Dist., km       |           0 |           0 |           0 |
| Vehicle Fuel, l         |           0 |           0 |           4 |
| Engine Fuel, l          |           0 |           0 |           4 |
| Eng.Out.Energy, kW-hr   |           0 |           0 |           5 |
| PKE Numerator           |           0 |           0 |           0 |
| Urban Speed Run Time, s |           0 |           0 |           0 |
| Idle Run Time, s        |           0 |           0 |          43 |
| Engine Idle Fuel, l     |           0 |           0 |           4 |
| PTO Run Time, s         |           0 |           0 |           0 |
| PTO Fuel Consumption, l |           0 |           0 |           0 |
| AES Shutdown Count      |           0 |           0 |           0 |
| Stop-Start Run Time, s  |         N/A |         N/A |         N/A |
|-------------------------+-------------+-------------+-------------|
FAIL: <IP_ADDRESS>.c - Bin value received is greater than 0xFAFF from Engine #1 (0) for SPN 12712, GHG Tracking Active 100 Hour Stop-Start Technology Run Time: Not Available
FAIL: <IP_ADDRESS>.c - Bin value received is greater than 0xFAFF from Engine #1 (0) for SPN 12727, GHG Tracking Stored 100 Hour Stop-Start Technology Run Time: Not Available

For active technology tracking

For both use FB00 FEFFh as the range of invalid value.

<IP_ADDRESS>	Actions3 for MY2022+ Diesel Engines
a. DS request messages to ECU that indicated support in DM24 for upon request SP 12730 (GHG Tracking Engine Run Time) for PG 64252 GHG Tracking Lifetime Array Data.
<IP_ADDRESS> Fail criteria1  for MY2022+ Diesel Engines
a. For all MY2022+ engines, Fail PG query where no response was received.
b. Fail PG query where any bin value received is greater than FAFFh.
c. Fail all values where the corresponding value received in part 2 is greater than the part 11 value.
d. Fail if lifetime engine hours SPN 12730 < 600 seconds. (Where supported).

Consolidated 6.11.13 Improvements
Inactive NOx Sensor Proposal.docx
GHG Reference SPs.docx
NOx Binning Reference SP.docx

Completed Artifact conveyed.  Update pending from #1171


test: make Go code lint stricter

Possible addition to our format tests

~public method on unexported struct https://github.com/coreos/etcd/pull/8066~
leaky embedded mutexes https://github.com/coreos/etcd/pull/7833

Either use external tools or propose to cmd/vet team

Unused function arguments would be a good one, CI should have caught this bug from #8074:
func (dec *messageDecoder) decodeLimit(numBytes uint64) (raftpb.Message, error) {
        var m raftpb.Message
        var l uint64
        if err := binary.Read(dec.r, binary.BigEndian, &l); err != nil {
                return m, err
        }
        if l > readBytesLimit {
                return m, ErrExceedSizeLimit
        }
        buf := make([]byte, int(l))
        if _, err := io.ReadFull(dec.r, buf); err != nil {
                return m, err
        }
        return m, m.Unmarshal(buf)
}

TODO: try https://github.com/mvdan/unparam.

Gave it a spin, totally broken. Can't recognize import renaming.

Hey, original author here. If you find any issues in particular, please file issues with a small example to reproduce them.
I realise the tool likely has some false negatives and positives, but it's impossible (or near impossible?) to have a perfect solution given how arguments might be used in lots of subtle ways.
But of course, I'm sure the tool can do better :) Happy to help if you give me concrete issues.

Friendly ping - still happy to look into false positives or negatives if you'd give me pointers.

I have been improving the tool the past couple of weeks, and I've been using etcd as one of the sources for ideas on how to improve.
Last week, the number of warnings was upwards of 100. Now, it's down to 31:
client/cancelreq.go:11:22: requestCanceler - tr is unused
clientv3/concurrency/election.go:49:33: ResumeElection - pfx is unused
contrib/recipes/key.go:47:56: newUniqueKV - result 0 (*github.com/coreos/etcd/contrib/recipes.RemoteKV) is never used
etcdctl/ctlv3/command/del_command.go:56:15: getDelOp - cmd is unused
etcdctl/ctlv3/command/get_command.go:77:15: getGetOp - cmd is unused
etcdctl/ctlv3/command/migrate_command.go:240:46: writeStore - result 0 (uint64) is never used
etcdctl/ctlv3/command/put_command.go:79:15: getPutOp - cmd is unused
etcdserver/api/v2http/capability.go:25:24: capabilityHandler - c always receives "auth"
etcdserver/api/v2http/client.go:624:48: trimErrorPrefix - result 0 (error) is just parameter err
etcdserver/api/v2http/metrics.go:67:59: reportRequestCompleted - response is unused
etcdserver/api/v2v3/store.go:94:56: (*v2v3Store).getDir - sorted is unused
etcdserver/auth/auth_requests.go:108:45: (*store).requestResource - dir always receives false
etcdserver/auth/auth_requests.go:151:45: (*store).deleteResource - result 0 (github.com/coreos/etcd/etcdserver.Response) is never used
etcdserver/raft.go:302:57: (*raftNode).processMessages - result 0 ([]github.com/coreos/etcd/raft/raftpb.Message) is just parameter ms
integration/bridge.go:203:25: (*bridge).ioCopy - bc is unused
integration/cluster.go:422:32: (*cluster).waitNoLeader - t is unused
integration/cluster.go:646:24: (*member).Clone - t is unused
integration/cluster.go:843:23: (*member).Stop - t is unused
integration/cluster.go:851:28: checkLeaderTransition - t is unused
integration/cluster.go:928:34: (*member).InjectPartition - t is unused
integration/cluster.go:936:35: (*member).RecoverPartition - t is unused
mvcc/kvstore_txn.go:222:45: (*storeTxnWrite).delete - rev is unused
pkg/transport/listener.go:52:14: wrapTLS - addr is unused
raft/log.go:94:44: (*raftLog).append - result 0 (uint64) is never used
tools/functional-tester/etcd-agent/rpc.go:49:40: (*Agent).RPCStop - reply is unused
tools/functional-tester/etcd-agent/rpc.go:70:43: (*Agent).RPCCleanup - reply is unused
tools/functional-tester/etcd-agent/rpc.go:80:45: (*Agent).RPCTerminate - reply is unused
tools/functional-tester/etcd-agent/rpc.go:89:39: (*Agent).RPCDropPort - reply is unused
tools/functional-tester/etcd-agent/rpc.go:98:42: (*Agent).RPCRecoverPort - reply is unused
tools/functional-tester/etcd-agent/rpc.go:107:43: (*Agent).RPCSetLatency - reply is unused
tools/functional-tester/etcd-agent/rpc.go:119:49: (*Agent).RPCRemoveLatency - reply is unused

Except the *Agent ones which seem a bit weird, the rest all look like real warnings to me.
Whether or not the signature of exported funcs can be changed is a different aspect - the tool does nothing about that, at the moment. Thinking of adding a flag, defaulting to assuming that backwards compatibility cannot be broken.

@mvdan We will integrate https://github.com/mvdan/unparam in CI. Seems useful!


update dependencies

through2 is now v2.0.0 that uses Streams3. (through2 v0.4.x uses Streams2.)

thanks!

just pushed 0.0.4 to npm

pushed 0.0.4 to npm

Please bump version in the package.json in this repository, too.


E2E test setup & coverage with Spectron

Setup E2E test coverage using Spectron to ensure code is working.

This issue was moved to coderoad/core-coderoad#4


Several development documents need updated

Documentation Scope
Briefly explain what is the documentation is referencing (main README, a specific plugin etc.)

refdiff installation (about lack of dependency)
link label
PluginEntry definition position

Describe the Change
A clear and concise description of what is being updated in the documentation
1. refdiff installation
I got an error when using cmake to build refdiff on my wsl(Ubuntu 20.04). It notices me that libssl-dev is needed for libgit2:
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libssl.so', needed by 'libgit2.so.1.3.0'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:204: src/CMakeFiles/git2.dir/all] Error 2

And this problem occur due to libgit2/build/src/CMakeFiles/git2.dir/build.make:
libgit2.so.1.3.0: /usr/lib/x86_64-linux-gnu/libssl.so

So I'd like to add the following dependency into requirements:
sudo apt-get install libssl-dev

2. link label
A simple Markdown syntax mistake.
3. PluginEntry definition position
This documentation has been discussed in #1845 . There is still another problem:
func (plugin YourPlugin) Execute(options map[string]interface{}, progress chan<- float32) {
  // ignore some code
  // Export a variable named PluginEntry for Framework to search and load
  var PluginEntry YourPlugin //nolint
}

Variable PluginEntry should be exported, but it's in Execute now. Though Execute is going to be deprecated in #1845 , exporting a variable as entry of plugin is still used to enable go plugin when calling Open and LookUp.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.

Thanks @skyleaworlder , we're trying to figure out permission problem and will get it merged asap.


Implement big chunk retransmission

We're currently processing your upload.  This comment will be updated when the results are available.


Denormalize "Code", slight simplification of HTTP interface

Sorry that this is kind of a large PR. The main intent was the first bullet, but I tackled some other things that I think are improvements along the way.

This denormalizes the presence of code. It was previously present both on StreamResult.Complete and ResponseMessage, even though it was redundant with the code on any non-null ConnectException.
Removes Code.OK. It is now just an error code. An "OK" result is easily distinguished by the lack of an exception.
The HTTPClientInterface was previously responsible for translating HTTP status -> Code and the HTTPResponse reported back the status in an optional "trace info" field. But translating status to Code should be the responsibility of the protocol implementations, not the HTTP client. (Though it is still up to the HTTP client to classify exceptions that prevent an HTTP response from being received, as these could be client-implementation-specific exception types). So this change promotes the status code out of trace info and into the HTTPResponse.
ProtocolClient.stream used suspendCancellableCoroutine incorrectly. It looks like it was trying to associate the stream with the coroutine, so if the coroutine is cancelled then the stream is closed. But it is only effective while that method is running, which is almost none at all since it immediately returns a result (no suspensions).

There are some other small clean-ups in here, too, like moving some things around to places that (IMO) make more sense.

@jhump Just an FYI, this bit threw me off for a sec as we're upgrading to 0.5.0. It could be valuable to call this out explicitly in the release notes 🙏

Removes Code.OK. It is now just an error code. An "OK" result is easily distinguished by the lack of an exception.


[fix](csv reader) fix csv parser incorrect if enclosing line_delimiter

Csv reader parse data incorrect when data enclosing line_delimiter, for example, line_delimiter is \n and enclose is ', data as follows:
'aaaaaaaaaaaa
bbbb'

it will be parsed as two columns: 'aaaaaaaaaaaa and bbbb', rather than one column
'aaaaaaaaaaaa
bbbb'

The reason why this happened is csv reader will not reset result when not match enclose in this output_buf_read, causing incorrect truncation was made.

run buildall

run buildall

run buildall

run buildall

Is anybody knew how to get rid of enclose symbol from column-value itself When Using stream-load CSV?

Is anybody knew how to get rid of enclose symbol from column-value itself When Using stream-load CSV?

Can you give an example?


not working under Windows?

Hi,
i have installed all dependencies and packages as described (i can call php and protoc from commandline; installed all scripts via composer, ...)
But when i call
php .\vendor\bin\protobuf.bat --include-descriptors -i . -o ./src/ ./addressbook.proto
i only get the content of the bat-file in the console:
@ECHO OFF
SET BIN_TARGET=%~dp0/../protobuf-php/protobuf-plugin/bin/protobuf
php "%BIN_TARGET%" %*

What iam doing wrong?

Not really focus on window right now.
If you are willing to sort out the problem and send a PR it will be appreciated.
Worst case scenario you should be able to generate the PHP files in a unix computer
And then use the php classes on windows.

Hi, I also tried (see jaspervdm/pogoprotos-php#8) getting this to work on Windows.
The problem you describe is not the worst, you can call the script directly, without using the bat-file in vendor/bin, but then it just hangs doing nothing.
I attached a debugger to find it fails (hangs) here. I did some research, but didn't find anything concrete. I guess reading from stdin like that just doesn't work in a Windows environment (found something about missing readline-ext, don't know if it's relevant). It works fine on UNIX anyways, so compiling the protos there is an acceptable solution.

Hi @DrDelay,
I think this is the issue : https://bugs.php.net/bug.php?id=34972
But is probably something that we could work around to get it to work on Windows.


what is the final avg loss value?

I'm trying to modify your code and retrain it with VOC 2007 first and VOC2012 and COCO later.
Currently, I'm using 2 GPU(each 8GB, so I changed the 5 multiscale factors to 4 (480, 576, 688, 864) and MAX_SIZE to 1024) and from around 24000 iterations, the loss values were dropped to around 0.1xxx to 0.2xxx( it starts from around 4.xx to 5.xx ).
I wonder this result is correct or not.
Can anyone share the training loss results?
Thank you~!
10:43.547068  Iteration 4260, lr = 0.0001
11:03.822432 32388 solver.cpp:219] Iteration 4280 (0.986387 iter/s, 20.276s/20 iters), loss = 0.171675
11:03.822456      Train net output #0: loss_midn = 0.243829 (* 1 = 0.243829 loss)
11:03.822463      Train net output #1: loss_refine = 2.31813e-19 (* 1 = 2.31813e-19 loss)
11:03.822466      Train net output #2: loss_refine1 = 0.00681272 (* 1 = 0.00681272 loss)
11:03.822470      Train net output #3: loss_refine2 = 0.00233187 (* 1 = 0.00233187 loss)
11:03.822859  Iteration 4280, lr = 0.0001
11:22.718451 32388 solver.cpp:219] Iteration 4300 (1.05841 iter/s, 18.8962s/20 iters), loss = 0.17244
11:22.718477      Train net output #0: loss_midn = 0.0021711 (* 1 = 0.0021711 loss)
11:22.718483      Train net output #1: loss_refine = 0.00475247 (* 1 = 0.00475247 loss)
11:22.718487      Train net output #2: loss_refine1 = 0.0212138 (* 1 = 0.0212138 loss)
11:22.718490      Train net output #3: loss_refine2 = 0.0162532 (* 1 = 0.0162532 loss)
11:22.829041  Iteration 4300, lr = 0.0001
11:41.827881 32388 solver.cpp:219] Iteration 4320 (1.04659 iter/s, 19.1096s/20 iters), loss = 0.196953
11:41.827906      Train net output #0: loss_midn = 0.0358219 (* 1 = 0.0358219 loss)
11:41.827913      Train net output #1: loss_refine = 2.13161e-16 (* 1 = 2.13161e-16 loss)
11:41.827916      Train net output #2: loss_refine1 = 0.0165497 (* 1 = 0.0165497 loss)
11:41.827919      Train net output #3: loss_refine2 = 0.0209345 (* 1 = 0.0209345 loss)
11:41.828313  Iteration 4320, lr = 0.0001
12:01.396237 32388 solver.cpp:219] Iteration 4340 (1.02205 iter/s, 19.5686s/20 iters), loss = 0.215037
12:01.396260      Train net output #0: loss_midn = 0.0575677 (* 1 = 0.0575677 loss)
12:01.396266      Train net output #1: loss_refine = 0.00299502 (* 1 = 0.00299502 loss)
12:01.396270      Train net output #2: loss_refine1 = 0.00881063 (* 1 = 0.00881063 loss)
12:01.396273      Train net output #3: loss_refine2 = 0.0100217 (* 1 = 0.0100217 loss)
12:01.396672  Iteration 4340, lr = 0.0001
12:20.180405 32388 solver.cpp:219] Iteration 4360 (1.06471 iter/s, 18.7844s/20 iters), loss = 0.181949
12:20.180433      Train net output #0: loss_midn = 0.142086 (* 1 = 0.142086 loss)
12:20.180439      Train net output #1: loss_refine = 0.00437473 (* 1 = 0.00437473 loss)
12:20.180444      Train net output #2: loss_refine1 = 0.0119189 (* 1 = 0.0119189 loss)
12:20.180447      Train net output #3: loss_refine2 = 0.0133803 (* 1 = 0.0133803 loss)
12:20.532896  Iteration 4360, lr = 0.0001
12:41.684222 32388 solver.cpp:219] Iteration 4380 (0.930057 iter/s, 21.5041s/20 iters), loss = 0.215015
12:41.684250      Train net output #0: loss_midn = 0.00031576 (* 1 = 0.00031576 loss)
12:41.684257      Train net output #1: loss_refine = 0.00440917 (* 1 = 0.00440917 loss)
12:41.684259      Train net output #2: loss_refine1 = 0.00945 (* 1 = 0.00945 loss)
12:41.684263      Train net output #3: loss_refine2 = 0.00943446 (* 1 = 0.00943446 loss)
12:41.684662  Iteration 4380, lr = 0.0001
13:00.646263 32388 solver.cpp:219] Iteration 4400 (1.05473 iter/s, 18.9622s/20 iters), loss = 0.236493
13:00.646291      Train net output #0: loss_midn = 0.152448 (* 1 = 0.152448 loss)
13:00.646297      Train net output #1: loss_refine = 4.01682e-14 (* 1 = 4.01682e-14 loss)
13:00.646301      Train net output #2: loss_refine1 = 0.00930832 (* 1 = 0.00930832 loss)
13:00.646306      Train net output #3: loss_refine2 = 0.0112133 (* 1 = 0.0112133 loss)
13:00.646688  Iteration 4400, lr = 0.0001
13:19.318856 32388 solver.cpp:219] Iteration 4420 (1.07108 iter/s, 18.6728s/20 iters), loss = 0.200657
13:19.318886      Train net output #0: loss_midn = 0.00179278 (* 1 = 0.00179278 loss)
13:19.318891      Train net output #1: loss_refine = 0.00438066 (* 1 = 0.00438066 loss)
13:19.318894      Train net output #2: loss_refine1 = 0.0138651 (* 1 = 0.0138651 loss)
13:19.318898      Train net output #3: loss_refine2 = 0.0102132 (* 1 = 0.0102132 loss)
13:19.532181  Iteration 4420, lr = 0.0001

Hi, thanks for your question.
Recently, I found that directly setting the maximum image sizes to one of the five scales randomly can produce very promising performance (not worse than the results reported in our paper). To save GPU memory, you can try this small trick by revising these codes.
I feel so sorry that I don't remember the losses for different iterations. And I wrongly deleted my log files. But these losses seem reasonable. You can check whether the models are trained correctly by testing the detection performance.
Hope these can help you!


⚠ Bofrost.at has degraded performance

In d113b9d, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1119 ms

Resolved: Bofrost.at performance has improved in 7fbf069 after 7 minutes.


rocminfo fails in rocm/rocm-terminal

rocm-smi works fine.
The following was run on a 4x GPU System:
$ docker run -it --rm --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 16G rocm/rocm-terminal:latest

# rocminfo
ROCk module is loaded
Unable to open /dev/kfd read-write: Permission denied
Failed to get user name to check for video group membership

# rocm-smi
======================= ROCm System Management Interface =======================
================================= Concise Info =================================
GPU  Temp (DieEdge)  AvgPwr  SCLK    MCLK     Fan  Perf  PwrCap  VRAM%  GPU%
0    37.0c           38.0W   300Mhz  1200Mhz  0%   auto  290.0W    0%   0%
1    40.0c           39.0W   300Mhz  1200Mhz  0%   auto  290.0W    0%   0%
2    41.0c           42.0W   300Mhz  1200Mhz  0%   auto  290.0W    0%   0%
3    39.0c           35.0W   300Mhz  1200Mhz  0%   auto  290.0W    0%   0%
================================================================================
============================= End of ROCm SMI Log ==============================

# groups
rocm-user sudo video

rocminfo works fine in rocm/dev-ubuntu-22.04 and rocm/pytorch:
$ docker run -it --rm --device=/dev/kfd --device=/dev/dri --group-add video --ipc=host --shm-size 16G rocm/pytorch:latest

# rocminfo | grep MI100
  Marketing Name:          AMD Instinct MI100
  Marketing Name:          AMD Instinct MI100
  Marketing Name:          AMD Instinct MI100
  Marketing Name:          AMD Instinct MI100

# groups
root video

Using the instructions in the README.md:
$ sudo docker run -it --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video rocm/rocm-terminal
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

# rocminfo
ROCk module is loaded
Unable to open /dev/kfd read-write: Permission denied
Failed to get user name to check for video group membership

I'm wondering if this image is still in use and/or if we can deprecate it.

Same here.
Also, one does not need do sudo docker ...
As long as user is in a docker group, one can do just docker ....    Usage of docker with sudo should not be promoted like this (not that it matter too much).
$ sudo docker run -it --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video rocm/rocm-terminal
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

rocm-user@015b5fcf64bf:~$ rocminfo
ROCk module is loaded
Unable to open /dev/kfd read-write: Permission denied
Failed to get user name to check for video group membership
rocm-user@015b5fcf64bf:~$ logout
$

There reason is because video group is not good, it should be render:
$ ls -l /dev/kfd
crw-rw---- 1 root render 243, 0 Dec 14 04:54 /dev/kfd
$

$ grep render /etc/group
render:x:993:user
$

For some reasons it does not work tho:
$ sudo docker run -it --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --group-add render rocm/rocm-terminal
docker: Error response from daemon: Unable to find group render: no matching entries in group file.
ERRO[0000] error waiting for container: context canceled

probably because /etc/group in the container is different.
Running docker run with --user=root is a an option, which is not too bad (file system, processes, etc, are still isolated and safe), but would be nice to find a nicer solution.

This looks related - https://github.com/RadeonOpenCompute/ROCm-docker/issues/90

Still broken when following instructions current README.md
If I pass render gid by number it complains, but works:
$ sudo docker run -it --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add $(getent group render | cut -d: -f3)  rocm/rocm-terminal
groups: cannot find name for group ID 993
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

rocm-user@3e3292ebfa5c:~$

and /dev/kfd works inside (i.e. rocminfo has no issues accessing it)


# eslint-disable-next-line @graphql-eslint/naming-convention is marked as spaced-comment error

Describe the bug
When I am trying to upgrade @graphql-eslint/eslint-plugin from 0.4.4 to 2.4.0 and found some spaced-comment error reports. And one of the following is the below one (I think it should not be marked as error?)
type Query @rateLimit {
  # eslint-disable-next-line @graphql-eslint/naming-convention
  _empty: String
}

To Reproduce

Expected behavior

Environment:

OS:
@graphql-eslint/...: 2.4.0
NodeJS: 14.x

Additional context

Hi @chenrui333 what's your spaced-comment configuration?
Please run:
eslint --print-config path-to-graphql-file

@chenrui333 any update on this?

closed due inactivity


Expose isTypeRelatedTo in the compiler API

I'm writing a transformer that needs to be able to evaluate type identity and assignability. I believe this is currently not possible with the compiler API. From what I can tell this could be enabled easily and harmlessly by exposing the isTypeRelatedTo function and providing an enum for the relation.

A PR is actually out for exactly this (#9943).

Oh that's cool, sorry I missed the dupe. Any idea why it's gone so long unmerged? Is this unlikely to materialise any time soon?

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


weather stopped working

Seems like the web service we rely on is not working as of my writing this issue. Wondering what is going on with them...
The URL is this: https://v2.wttr.in/?An0
https://github.com/elixir-toolshed/toolshed/blob/3f0857fcac6e1f07b0036f6fd3a585cd9b5a9cfa/lib_src/core/weather.ex#L2C19-L2C42

Close in favor of https://github.com/elixir-toolshed/toolshed/issues/212
I accidentally used a wrong account :sweat_smile:


eslint results not being displayed

I set g:syntastic_debug to 3 and ran :SyntasticCheck and the following came up:
syntastic: 39.771281: g:syntastic_version = '3.9.0-6 (Vim 800, Darwin)'
syntastic: 39.771516: &shell = '/bin/bash', &shellcmdflag = '-c', &shellpipe = '2>&1| tee', &shellquote = '', &shellredir = '>%s 2>&1', &shelltemp = 1, &she
llxquote = '', &autochdir = 0, &shellxescape = ''
syntastic: 39.772308: UpdateErrors: default checkers
syntastic: 39.772692: CacheErrors: default checkers
syntastic: 39.773636: g:syntastic_aggregate_errors = 0
syntastic: 39.773890: getcwd() = '/Users/adamgotterer/sites/svc-everyurl'
syntastic: 39.774650: CacheErrors: Invoking checker: javascript/eslint
syntastic: 39.775775: SyntasticMake: called with options: {'postprocess': ['guards'], 'errorformat': '%E%f: line %l\, col %c\, Error - %m,%W%f: line %l\, co
l %c\, Warning - %m', 'makeprg': 'eslint -- -f compact app/web.js'}
syntastic: 40.634259: system: command run in 0.857960s
syntastic: 40.634635: checker output: ['', '/Users/adamgotterer/sites/svc-everyurl/app/web.js', '    8:1   error    Expected 1 empty line after require stat
ement not followed by another require                          import/newline-after-import', '   12:26  error    Missing trailing comma
                                                            comma-dangle', '   15:7   error    Use object destructuring
                                          prefer-destructuring', '   16:7   error    Use object destructuring
                                prefer-destructuring', '   20:38  error    Missing trailing comma
                      comma-dangle', '   24:3   error    Unexpected var, use let or const instead
    no-var', '   34:3   error    ''logger'' is not defined                                                                                no-undef', '   35:
3   error    ''logger'' is not defined                                                                                no-undef', '   44:5   error    ''logge
r'' is not defined ....

(added ... since theres a lot more of the same)
So it appears that it's linting correctly, but nothing shows up in the error window and my toolbar which normal turns red and indicates errors is normal.
Relevant .vimrc
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_ruby_checkers=['rubocop']
let g:syntastic_ruby_rubocop_args='--display-cop-names'
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = "eslint --"
let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')
let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_loc_list_height = 2
let g:syntastic_enable_signs = 0

let g:syntastic_javascript_eslint_exe = "eslint --"

You break it, you get to keep both pieces.  This idea seems to be unexpectedly popular, not sure why.  It was never intended to work.  It never did.  It never will.  And it's straightforward to see why:

... 'makeprg': 'eslint -- -f compact app/web.js'

You really should complain about it to the owner of the site you copied it from.

let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')
let b:syntastic_javascript_eslint_exec = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')

If you open two or more files at once this won't work as intended.  You should consider using an autocmd on BufRead,BufNewFile instead.  Better yet see #1692.

I actually have the same problem with both of those lines removed from my vimrc and I'm testing linting with a single file. I can see the errors in the debug output but it never shows in the Errors window.

Working now. Thanks for the help.


SIEM Agent Location Preference

Can the document identify whether on-premises or Azure would be the preferred location for this agent?

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

ID: 1a0f3293-02dc-6fc0-9003-eaf932cbe9ff
Version Independent ID: ee2bccc6-e9b9-ad81-1d4d-a6667ebfc839
Content: SIEM integration with Cloud App Security
Content Source: CloudAppSecurityDocs/siem.md
Service: cloud-app-security
GitHub Login: @rkarlin
Microsoft Alias: rkarlin

@Mark7even  Thanks for the suggestion. At this time, we cannot modify the page as you describe for the following reasons:

we choose not to offer product preferences as they depend on each organizations specific scenario.

Because we cannot change the referenced page to include the information  that you're asking for, I am closing this issue. However, we always appreciate feedback on our documentation.


Add HasSlug and HasTags traits.

Add HasSlug trait.
Add HasTags trait.
Add spatie/eloquent-sortable package.
Add Tag model.
Make User and Tag are configable.

Phuc, we already use the HasTags trait in the https://github.com/drewroberts/media package and I would prefer to work on the code there to add a custom implementation with my opinionated style of doing it.
I like the idea of having a HasSlug trait in this support package. Can you copy that code over to another PR?
Thanks!


Fix search issue in cluster list and application

Signed-off-by: Timothy Asir<EMAIL_ADDRESS>

@GowthamShanmugam Please review

@TimothyAsirJeyasing Thanks for the PR. I assume you are testing on OpenShift console 4.13?
@zlayne it occurred to me that this is related to something that was mentioned at the last PatternFly community meeting. As part of the final release of PF 4, they changed the signature for the event handler callbacks of some beta components to make them all consistent with the event as the first argument.
However, some versions of OpenShift console that we support will not get this update. So we need to try to support whether the arguments in either order. Can you please try to adjust this PR to do that?

@KevinFCormier @TimothyAsirJeyasing I would propose the following for backwards compatibility, please let me know what you think? Would work for both the Searchbar and AcmTable instances.
  /** callback for updating the inputValue state in this component so that the input can be controlled */
  const handleInputChange = (input: any) => {
    // **Note: PatternFly change the fn signature
    // From: (value: string, event: React.FormEvent<HTMLInputElement>) => void
    // To: (_event: React.FormEvent<HTMLInputElement>, value: string) => void
    // both cases need to be handled for backwards compatibility
    const value = typeof input === 'string' ? input : (input.target as HTMLInputElement).value
    const delimiters = [' ', ':', ',']
    if (delimiters.indexOf(value) < 0) {
      // Delimiters are only used to enter chips - do not allow for entry in input
      setInputValue(value)
    }
  }

/ok-to-test

/lgtm


Create feature.md

@dumbcoder7 LGTM, however, could you also open all issue-template/pr-template related pull requests here:
https://github.com/EddieJaoudeCommunity/template/issues/4
(The ones there will be synced with all the repos, resulting in overwriting of all other templates)

@dumbcoder7 LGTM, however, could you also open all issue-template/pr-template related pull requests here:
EddieJaoudeCommunity/template#4
(The ones there will be synced with all the repos, resulting in overwriting of all other templates. Would be great if you could open a PR on there if this PR is merged)

@Vyvy-vi could you link me the documentation for template repo sync. I can't find it.

@dumbcoder7 LGTM, however, could you also open all issue-template/pr-template related pull requests here:
EddieJaoudeCommunity/template#4
(The ones there will be synced with all the repos, resulting in overwriting of all other templates. Would be great if you could open a PR on there if this PR is merged)

Every repo might require distinct templates. I think this repo can do with only these two Issue Templates.

@AllanRegush I think the sync hasn't been built yet, but Eddie did mention that it would be better if issue-templates are added to the template repo, so that they could be synced throughout using an action🤔

Every repo might require distinct templates. I think this repo can do with only these two Issue Templates.

@dumbcoder7 I agree that each repo might require distinct templates. However, the one you created seems to fit all feature requests, so I think we could use it on more repositories.
What do you think about moving this PR to the template repo like @Vyvy-vi suggested?

Every repo might require distinct templates. I think this repo can do with only these two Issue Templates.

@dumbcoder7 I agree that each repo might require distinct templates. However, the one you created seems to fit all feature requests, so I think we could use it on more repositories (we just needed to change "(...) enhance the bot's working" 😃).
What do you think about moving this PR to the template repo like @Vyvy-vi suggested?

Alright fine, I'll see what I can do.

Added it in the template repository.

Should this PR be closed?


Support for multiple JWT alg

JWT Header alg value is not used when verifying the access token. We need a way to support RS256 and HS256, currently the SIgnatureVerifier in JwtAccessTokenConverter is limited to either MacSigner or RSAVerifier.

RsaVerifier uses "RS256" by default and MacSigner uses "HS256". So you don't mean you need a new algorithm? You need to support tokens that might have either algorithm? I guess you can do that with some custom code. I'd like to see what you did.

Hey @dsyer,
Yeah i created a custom code for it.
I extended JwtAccessTokenConverter and JWTHelper + helper classes. I have to create multiple SignatureVerifier on startup and add it to a map with alg value as the key. During the JwtAccessTokenConverter.decode(token) method, i get the correct verifier based from the alg value in the JWT Header and verify it.
Actually a list of alg values are here, i dont know if the current JWTAccessTokenConverter supports both HS384 and HS512 with current MacSigner. Does it?

if the current JWTAccessTokenConverter supports both HS384 and HS512 with current MacSigner

I don't see why not in principle (we are just delegating to the JCE APIs), but you need a custom converter to be able to set up a signer with a non-default algorithm before this change: 12b8c1c.
Are you going to share your code?

Are you going to share your code?

I can share the code but its only a rough implementation( i was only exploring my options ) and it is only for decoding, here it is:
public class MyJwtAccessTokenConverter extends JwtAccessTokenConverter {

    private JsonParser objectMapper = JsonParserFactory.create();
    private Map<String, SignatureVerifier> verifierMap = new HashMap<>();

    public void setVerifiers(String rsaKey, String macKey) {

        SignatureVerifier rsaVerifier = new RsaVerifier(rsaKey);
        SignatureVerifier macSigner = new MacSigner(macKey);
        verifierMap.put("RS256", rsaVerifier);
        verifierMap.put("HS256", macSigner);
    }

    @Override
    protected Map<String, Object> decode(String token) {
        try {
            Jwt jwt = MyJwtHelper.decodeAndVerify(token, verifierMap);
            String content = jwt.getClaims();
            Map<String, Object> map = objectMapper.parseMap(content);
            if (map.containsKey(EXP) && map.get(EXP) instanceof Integer) {
                Integer intValue = (Integer) map.get(EXP);
                map.put(EXP, new Long(intValue));
            }
            return map;
        }
        catch (Exception e) {
            throw new InvalidTokenException("Cannot convert access token to JSON", e);
        }
    }
}

and for MyJwtHelper i just copied org.springframework.security.jwt.JwtHelper to support this method
    public static Jwt decodeAndVerify(String token, Map<String, SignatureVerifier> verifierMap) {
        JwtImpl jwt = (JwtImpl)decode(token);

        SignatureVerifier verifier = verifierMap.get(jwt.getAlg());
        if( verifier == null  ) {
            throw new IllegalArgumentException("JWT Algorithm not supported");
        }
        jwt.verifySignature(verifier);

        return jwt;
    }

I exposed JwtHeader so i can retrieve the alg value with jwt.getAlg() and thats it.

Related #977

I think the method at https://github.com/spring-projects/spring-security-oauth/blob/master/spring-security-jwt/src/main/java/org/springframework/security/jwt/crypto/sign/RsaVerifier.java#L44
should also have a Constructor with (String,String), which allows passing the signature algorithm (i.e. for RS512) since it causes problems when RS256 is hardcoded.


Add types, reorganize worker

Goals:

Start the worker in preview.js before we deal with any stories
Inject handlers as the first entry in loaders to guarantee you're overriding existing handlers (established at worker.start)
Party :tada:

Matt, you're my hero. Thank for you rushing my repo with some high quality improvements 💙


canChatPrint() affects the print timer

Using canChatPrint() right before calling chatPrint prevents the latter from working since canChatPrint() affects the print timer.

Fixed on 5f91def45c48f067fbf2f370d82c3be0d214d544


Take culture into account when showing and adding redirects

Solves #14

Hi @creativesuspects
Are you still working on this one ? Or can I start testing this one ?
Dave

Hi @dawoe,
I was running into some issues on a single language configuration or when there were no 'Culture and Hostnames' configured. These issues should now have been resolved. So yes, please go ahead and test the changes.
Arjan

I am also interested in this feature :) By any chance, do you know @dawoe when you would finish testing it?

hi @creativesuspects
Thanks for the PR. This is merged and available in the latests beta


Add Cobra

Refactor the software to make use of Cobra for command line invocation.
https://github.com/spf13/cobra

Let's put the four binaries into a single binary and have subcommands. We'll need to update documentation accordingly.


Update broken link

The documentation page for single page components has changed. This updates the link to the new address.

Thanks!

Thanks!


Fix shape of matrices produced by repa2hm

I think I found a bug in the repa2hm conversion: listOfShape for DIM2 shapes (or any shape constructed with :.) apparently reverses the order of dimensions, so the pattern c actually matches the row, and the resulting matrix has the wrong shape for non-square matrices. The PR removes listOfShape and directly matches against the :. constructor.
Edit: the commit is based on master~1 since master uses Hmatrix 0.18, which I don't have available without hassle. I can rebase it if you want.

Thanks. I think it's fine as it is, as the Conversion.hs file wasn't modified to work with hmatrix-0.18


More options for vprintf

It goes without saying that it is essential to be able to print numbers. However, right now Carbon's vprintf implementation only handles %%, %c, and %s. The POSIX and ISO vprintfs have a lot of funky features and options, and while those would be nice to have, this is just for the kernel; we only need the basics. We will use a different library for userspace programs. Implement a basic version of the following vprintf arguments:

%i, %d: integer in base ten
%u: unsigned in base ten
%x: integer in hexadecimal (lowercase, i.e. 0xaaaa)
%X: integer in hexadecimal (uppercase, i.e. 0xAAAA)
%b: integer in binary, starting with 0b (i.e. 0b01011000)
%o: integer in octal, starting with 0 (i.e. 07428).

Out of necessity, #58 does most of this

@davidaylaian if #58 does most of the work here, can you modify or close this ticket to reflect what still needs to be done?

@janeptrv what needs to be done is to make sure the code works as intended (no buffer overflows), and I think the only other thing missing is %X doesn't work as intended

The C standard library does not print number prefixes: for example,
printf("%X", 0x123B);

results in 123B instead of 0x123B.

is that something we want? or are you saying we should change it to match C standard

We should change it to match the C standard. Right now, libk prints the prefixes. This is just removing a few prints and increments to res.

Closed, do #66 instead.


On dragend event is undefined

Describe the bug
The on-dragend event is fired but the passed event is undefined
To Reproduce
<GMapMap ref="myMapRef" :center="center" :zoom="14" map-type-id="roadmap" class="map" :options="{
    zoomControl: false,
    mapTypeControl: false,
    scaleControl: false,
    streetViewControl: false,
    rotateControl: false,
    fullscreenControl: false,
  }"
  >

  <GMapMarker
    :draggable="true"
    :clickable="true"
    :position="marker.position"
    @dragend="debug"
    icon="/markers/icon.png"
    />
</GMapMap>

Method
debug (event) {
	console.log(event)
}

Console log
undefined
Expected behavior
Return event on dragend
Desktop (please complete the following information):

OS: Mac 11.2.3
Browser: Chrome
Version: 91.0.4472.77

This bug is fixed on the latest release.
Make sure, you update to the latest version (0.8.7)


Build warning "Unused Entity Issue"

Build warning "Unused Variable appGroupContainer" on MMWormholeFileTransiting.m:55
- (void)checkAppGroupCapabilities {
    NSURL *appGroupContainer = [self.fileManager containerURLForSecurityApplicationGroupIdentifier:self.applicationGroupIdentifier];
    NSAssert(appGroupContainer != nil, @"App Group Capabilities may not be correctly configured for your project, or your appGroupIdentifier may not match your project settings. Check Project->Capabilities->App Groups. Three checkmarks should be displayed in the steps section, and the value passed in for your appGroupIdentifier should match the setting in your project file.");
}

I just submitted a pull request that fixes this warning.

Pulled this in as part of the watchOS branch :)


url.URL is not a constructor

The workaround from this issue is not working.

@azure/cosmos:

3.11.3:

Windows 10:

[ ] nodejs

v14.16.1:

[ ] Microsoft Edge

92.0:

[ ] typescript

Version 4.0.5:

Is the bug related to documentation in

[] SDK API docs on https://docs.microsoft.com/en-us/javascript/api/overview/azure/cosmos-readme?view=azure-node-latest

Describe the bug
Can't get a db connection.
Screenshots

Additional context
Downgrading to 3.11.1 wasn't successfull.

@AntonOnyshch is this still an issue for you? We had the wrong URL exported in the browser for a day

@zfoster Yep. Still the same.
Version 3.12.0.
Uncaught TypeError: url.URL is not a constructor
at checkURL (checkURL.ts:6)
at new CosmosClient (CosmosClient.ts:79)
at Object.5rkFb.vue (index.js:10)
at newRequire (index.3fafb3e2.js:71)
at index.3fafb3e2.js:120
at index.3fafb3e2.js:143
On this line window.cosmosClient = new CosmosClient({endpoint, key});

Can you send me your package.json and what env you are running in? We have a browser and node URL export, it feels like your env is picking up an old URL version

package.json.zip
I recently switched on Mac. Use VueJS

@AntonOnyshch are you able to make a small repo to reproduce? Is this running in the browser? You seem to be getting the wrong URL type for whatever environment you're running in

VueJSCosmos.zip
npm install
npm start

This should have got fixed with #19836
@AntonOnyshch  can you validate ?

@sajeetharan I've done. Works perfectly. No issues.
Thank you.

@AntonOnyshch Great, thanks for the update. Closing the issue!


feat: make logpoint function customizable

By default we use console.log for printing logpoint messages. This PR
adds a config option to allow users to customize the log function. This
can be useful in situations where the logs are being sent to 3rd parties
or need post-processing.
Fixes: https://github.com/googleapis/cloud-debug-nodejs/issues/458

This is blocked on https://github.com/googleapis/cloud-debug-nodejs/pull/635 landing.


Error occurs when trying to resize webp images

Possible bug
Is this a possible bug in a feature of sharp, unrelated to installation?

[x] Running npm install sharp completes without error.
[x] Running node -e "require('sharp')" completes without error.

Are you using the latest version of sharp?

[x] I am using the latest version of sharp as reported by npm view sharp dist-tags.latest.

What is the output of running npx envinfo --binaries --system --npmPackages=sharp --npmGlobalPackages=sharp?
System:

OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
CPU: (4) arm64 Neoverse-N1
Memory: 16.87 GB / 23.30 GB
Container: Yes
Shell: 5.1.16 - /bin/bash

Binaries:

Node: 20.5.1 - /usr/bin/node
npm: 9.8.0 - /usr/bin/npm

npmPackages:

sharp: ^0.33.2 => 0.33.2

What are the steps to reproduce?
Code
const fileBuffer: Buffer = await sharp(filePath)
      .resize({ width, height })
      .toBuffer();

Output

What is the expected behaviour?
The resized image buffer must be stored in the variable.

Sorry. I should have found out more about this problem and left a PR, but I was hasty.
The problem was not from resize.
What I'm trying to do is resize the image, save it as webp, and retrieve the image and convert it to png.
The error occurs in toBuffer() after png conversion.
const sharp = require("sharp");
const fs = require("fs");

const filePath = "/path/to/file.webp";
const width = 256;
const height = 256;

const readFile = async () => {
  const fileBuffer = await sharp(filePath)
    .resize({ width, height })
    .webp({
      quality: 70,
      effort: 6,
    })
    .toBuffer();
  console.log("resize worked");
  fs.writeFile(filePath, fileBuffer, async (err) => {
    if (err) throw err;
    const buffer = await sharp(filePath).png().toBuffer();
    console.log("png worked");
  });
};

readFile();

Weird thing I found while trying to do this test is that this code works fine in some webp files, but an error occurs in other webp files.
Also, if this test code fails, re-executing this code will work fine again.
Where does the problem occur?
Among the files used in the test, I will also upload the webp file where the error occurred.
test.zip

This line of code introduces a possible race condition.
  fs.writeFile(filePath, fileBuffer, async (err) => {


Update Sequence Diagram In Developer Guide

Updated Sequence Diagram in Developer Guide
for the Welcome Window.

Codecov Report

Merging #106 (b834f66) into master (e2028da) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #106   +/-   ##
=========================================
  Coverage     59.94%   59.94%
  Complexity      524      524
=========================================
  Files            89       89
  Lines          1970     1970
  Branches        216      216
=========================================
  Hits           1181     1181
  Misses          711      711
  Partials         78       78

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 e2028da...b834f66. Read the comment docs.


Can the Open node take the URL as a parameter?

It doesn't appear to, since leaving it out of the config makes the node show an error. I would like to be able to pass webURL in via the msg object, so that I can use the same flow to extract the same pieces from a news site where I want it to operate on different article URLs.
Is this something you'd be willing to add?

Whilst the node doesn't explicitly load the weburl from the message, the weburl field of the Open Browser node accepts moustache templating so you can for example set the field to {{msg.weburl}} and send in your url in that field in your message


[#99] Atom aggro mode basis

@rultor  merge

@rultor  merge

@skapral OK, I'll try to merge now. You can check the progress of the merge here

@rultor  merge

@skapral Done! FYI, the full log is here (took me 3min)


Why lambda layers?

Hi,
I've found your repo while searching for typescript + lambda layers...
At first your approach was perfect, but then I noticed something your article confirmed: it looks like the lambda layers are useless because all the code is in your functions, isn't it?
Requiring the common library with the relative path makes them being compiled by typescript... which means being copied inside the function folder... so what's the meaning of using layers?? I expected to have only the function code and the layers in other folders (requiring them with /opt/nodejs/utils...)
Am i missing something??
Thanks a lot

In this example lambda layers contains dependencies while functions itself contains application code.
In contrast with webpack (and tools alike it), tsc does not bundle code from node_modules into final result.
You can run sam build and confirm that all heavy things are gone to the shared layer:
$ du -b -h -d 1 .aws-sam/build | sort -h -r

57M	.aws-sam/build
56M	.aws-sam/build/RuntimeDependenciesLayer
21K	.aws-sam/build/getByIdFunction
21K	.aws-sam/build/getAllItemsFunction
20K	.aws-sam/build/writeItemFunction
20K	.aws-sam/build/putItemFunction

And this speeds deploys a lot, especially when you have dozens of functions (see https://github.com/aws/aws-sam-cli/issues/2626#issuecomment-782584090 for example) just because you don't need to upload literally gigabytes of repeated node_modules content.
I don't see much value in moving shared application code into layers because it is usually just a few kilobytes and won't make any noticeable difference. (And, to be honest, I haven't even looked on how to accomplish that).
And, of course, we can easily create one more layer that can contain shared static files or things like that, if needed. Just add one more entry into template.yml and one more target into Makefile.
I'm

Hey, thanks for the reply!
No problem, I think we've opposite views of the same thing =)
What I'm trying to do is having one big layer with all my "common code" (with deps) while every single function has its own code (with deps), but nothing about the common code...
But I think you've not explored this scenario...
BTW thanks a lot!

Feel free to explore and create a pull request :wink:
However, I believe it is better to make two separate layers: one with dependencies and one with common code. As common code changes more frequently and weights less than node_modules, placing it in different layer will also speed up deploys (and yes, Lambda function can attach more than one layer).

Thank you @Envek. Thank you so much for this repo and these examples. It's the "least hacky" version I found and the code is much appreciated.


Raw generic method type parameters leaking into propagated type in strong mode

In the code below produces the following hint:
[hint] The argument type 'List<T>' cannot be assigned to the parameter type 'Iterable<String>' (/Users/leafp/tmp/scratch.dart, line 5, col 19)

Note that the the raw generic method type parameter T is leaking into the error message.
I suspect that this is related to the special case code in the analyzer for treating map and other functions as generic for the purposes of the propagated type.
void main() {
  var value;
  var items = value.map((x) => from(x)).toList();
  List<String> l = items;
}

Assigning to @jmesserly, since we've discussed turning off type propagation in strong mode either temporarily or permanently.  Feel free to bounce it back though.

I believe that I just landed a fix for this, the fix for #25340, but I'll double check.

The bug, BTW, was that when getting the propagatedType's return type, it used the uninstantiated type instead of propagatedInvokeType. That's how it ends up with List<T> even though it's computed the type of map as (dynamic -> dynamic) -> List<dynamic>

output:
Analyzing [test.dart]...
[warning] The function 'from' is not defined (test.dart, line 3, col 32)
[warning] items (dynamic) will need runtime check to cast to type List<String> (test.dart, line 4, col 20)
[hint] The value of the local variable 'l' is not used (test.dart, line 4, col 16)
2 warnings and 1 hint found.

looks reasonable to me

How's that for bug turnaround time!  Negative time from filing to resolving... :)


Add global loading spinner

When client waiting on APIs or tile loading, might be nice to surface a loading spinner or something. cc: @matallo

No longer an issue any more.


CSS-Only Modal - FF/Safari

first up... Love this!
(back story: I consume links clicked in twitter / reeder in Safari)
Opening up the site, I clicked through and noticed this one doesn't want to work. I opened the CodePen fully - http://codepen.io/una/full/pEVjwj/ - and tried it in Safari 9.1 (so this might be fixed in Sierra) and FireFox (dev. edition) 51.0a2
I'll try and dig into why, what needs fixing, but can't guarantee when :(
Lovely project :)

This is a very interesting issue! What I have noticed so far:

It works in FF if the focus came from keyboard.
Works in Safari if we forced :focus from dev tools.
keyboard :focus is not working in Safari. I even added a link and can't move focus to it.

Also, for some reason the modal is not centered in Safari. This is a screenshot when forcing :focus

This is really clever!
@shadeed focus from keyboard in Safari should work if you have tab to highlight enabled

still doesn't work with clicking in Safari though.

@jpdevries Thank you! I learned something new. :)
Now it's working from keyboard and yes clicking still doesn't working.

this should be fixed with #46


[Requirement] Extract dataset of 3 types (Background, Sample and Direct-beam)

Executive summary
We need to separate the dataset in one file into 3 types.
Context and background knowledge
In the experiments of ODIN instrument, the scientists will measure the noise(background), direct-beam (neutron without sample) and sample in a row, at once.
It means all three types of measurement will fall into one file.
We have to split the dataset and also filter-out the transition phase.
(For example, the motor will move the sample into the position and we'll want to discard the measurement where sample is moving.)
Inputs
Nexus file from file-writer.
Methodology
It will have an indicator of measurement type somewhere in a file.
Outputs
The three types of measurement dataset that can be fed into a relevant data-reduction workflow.
Which interfaces are required?
Integrated into reduction workflow, Python module / function, Python script, Jupyter notebook
Test cases
TODO
Comments
No response

Shared with @YooSunYoung the notebook and hdf5 file for white beam label assignment at YMIR and ODIN

Also, within the sample image, we need to bin the images with rotation_angle timestamps.
In general we need to bin the data by timestamps and somehow map each bin to a certain settings.