New version of echolocatoR fails to read input files

Hi,
This is related to #85
Apparently the new coloc version is messing up trying to read the input
(echoR) acarrasco@kronos:/mnt/rreal/RDS/RDS/acarrasco/ANALYSES_WORKSPACE/EARLY_PD/POST_GWAS/ECHOLOCATOR/SCRIPTS$ cat MAD1L1_LIN50051.SCRIP_V2.OUT
nohup: ignoring input
Warning messages:
1: replacing previous import ‘data.table::last’ by ‘dplyr::last’ when loading ‘echolocatoR’
2: replacing previous import ‘data.table::first’ by ‘dplyr::first’ when loading ‘echolocatoR’
3: replacing previous import ‘data.table::between’ by ‘dplyr::between’ when loading ‘echolocatoR’
[1] "+ CONDA:: Activating conda env 'echoR'"
[1] "Checking for tabix installation..."
[1] "Checking for bcftools installation..."
WARNING:: fullSS_genome_build not provided. Assuming hg19.

)   )  ) ))))))}}}}}}}} {{{{{{{{{(((((( (  (   (
LINC00511 (1 / 2)
)   )  ) ))))))}}}}}}}} {{{{{{{{{(((((( (  (   (
[1] "TABIX:: Tabix-indexing file."
[1] "Determining chrom type from file header"
[1] "LD:: Standardizing summary statistics subset."
Error in `[.data.table`(x, r, vars, with = FALSE) :
  column(s) not found: #MarkerName
Fine-mapping complete in:
Time difference of 35.5 secs

)   )  ) ))))))}}}}}}}} {{{{{{{{{(((((( (  (   (
MAD1L1 (2 / 2)
)   )  ) ))))))}}}}}}}} {{{{{{{{{(((((( (  (   (
[1] "TABIX:: Tabix-indexing file."
[1] "Determining chrom type from file header"
[1] "LD:: Standardizing summary statistics subset."
Error in `[.data.table`(x, r, vars, with = FALSE) :
  column(s) not found: #MarkerName
Fine-mapping complete in:
Time difference of 29.8 secs
Error in `[.data.table`(x, r, vars, with = FALSE) :
  column(s) not found: SNP
R version 4.0.3 (2020-10-10)
Platform: x86_64-conda-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS

Matrix products: default
BLAS/LAPACK: /home/acarrasco/.conda/envs/echoR/lib/libopenblasp-r0.3.12.so

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

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

other attached packages:
[1] echolocatoR_0.2.3 data.table_1.14.2

loaded via a namespace (and not attached):
 [1] Rcpp_<IP_ADDRESS>           XVector_0.30.0         GenomeInfoDb_1.26.7
 [4] pillar_1.7.0           compiler_4.0.3         R.methodsS3_1.8.1
 [7] R.utils_2.11.0         tools_4.0.3            bitops_1.0-7
[10] zlibbioc_1.36.0        jsonlite_1.8.0         lifecycle_1.0.1
[13] tibble_3.1.6           gtable_0.3.0           lattice_0.20-41
[16] pkgconfig_2.0.3        png_0.1-7              rlang_1.0.2
[19] Matrix_1.3-2           DBI_1.1.2              cli_3.2.0
[22] parallel_4.0.3         GenomeInfoDbData_1.2.4 dplyr_1.0.8
[25] Biostrings_2.58.0      IRanges_2.24.1         S4Vectors_0.28.1
[28] generics_0.1.2         vctrs_0.3.8            rappdirs_0.3.3
[31] stats4_4.0.3           grid_4.0.3             tidyselect_1.1.2
[34] reticulate_1.24        glue_1.6.2             R6_2.5.1
[37] fansi_1.0.3            BiocParallel_1.24.1    seqminer_8.4
[40] ggplot2_3.3.5          purrr_0.3.4            magrittr_2.0.2
[43] GenomicRanges_1.42.0   scales_1.1.1           Rsamtools_2.6.0
[46] ellipsis_0.3.2         BiocGenerics_0.36.1    assertthat_0.2.1
[49] colorspace_2.0-3       utf8_1.2.2             RCurl_1.98-1.6
[52] munsell_0.5.0          crayon_1.5.0           R.oo_1.24.0
(echoR) acarrasco@kronos:/mnt/rreal/RDS/RDS/acarrasco/ANALYSES_WORKSPACE/EARLY_PD/POST_GWAS/ECHOLOCATOR/SCRIPTS$

Something interesting is that, if I do not activate the conda environment and then I run finemap_loci() from a script, echolocatoR does not fail in reading the input files....

vvvvv-- ABF --vvvvv
✅ All required columns present.
✅ All suggested columns present.
vvvvv-- FINEMAP --vvvvv
✅ All required columns present.
✅ All suggested columns present.
vvvvv-- SUSIE --vvvvv
✅ All required columns present.
✅ All suggested columns present.
vvvvv-- POLYFUN_SUSIE --vvvvv
✅ All required columns present.
✅ All suggested columns present.

+++ Multi-finemap:: ABF +++

+++ Multi-finemap:: FINEMAP +++
[1] "++ FINEMAP:: Constructing master file."
[1] "++ FINEMAP:: Constructing data.z file."
[1] "++ FINEMAP:: Constructing data.ld file."
[1] "+ Using FINEMAP v1.4"

|--------------------------------------|
| Welcome to FINEMAP v1.4              |
|                                      |
| (c) 2015-2020 University of Helsinki |
|                                      |
| Help :                               |
| - ./finemap --help                   |
| - www.finemap.me                     |
| - www.christianbenner.com            |
|                                      |
| Contact :                            |
| -<EMAIL_ADDRESS>     |
| -<EMAIL_ADDRESS>        |
|--------------------------------------|

--------
SETTINGS
--------
- dataset            : all
- corr-config        : 0.95
- n-causal-snps      : 5
- n-configs-top      : 50000
- n-conv-sss         : 100
- n-iter             : 100000
- n-threads          : 1
- prior-k0           : 0
- prior-std          : 0.05
- prob-conv-sss-tol  : 0.001
- prob-cred-set      : 0.95

------------
FINE-MAPPING (1/1)
------------
- GWAS summary stats               : FINEMAP/data.z
- SNP correlations                 : FINEMAP/data.ld
- Causal SNP stats                 : FINEMAP/data.snp
- Causal configurations            : FINEMAP/data.config
- Credible sets                    : FINEMAP/data.cred
- Log file                         : FINEMAP/data.log_sss
- Reading input                    : done!

- Number of GWAS samples           : 3572
- Number of SNPs                   : 4057
- Prior-Pr(# of causal SNPs is k)  :
  (0 -> 0)
   1 -> 0.583
   2 -> 0.291
   3 -> 0.0971
   4 -> 0.0243
   5 -> 0.00485
- 100430 configurations evaluated (0.113/100%) : converged after 113 iterations
- Computing causal SNP statistics  : done!
- Regional SNP heritability        : 93.1 (SD: 0.374 ; 95% CI: [92.3,93.8])
- Log10-BF of >= one causal SNP    : 109
- Post-expected # of causal SNPs   : 5
- Post-Pr(# of causal SNPs is k)   :
  (0 -> 0)
   1 -> 0
   2 -> 0
   3 -> 1.92e-44
   4 -> 3.85e-32
   5 -> 1
- Computing credible sets          : done!
- Writing output                   : done!
- Run time                         : 0 hours, 0 minutes, 30 seconds
[1] ".cred not detected. Using .snp instead."
[1] "+ FINEMAP:: Importing prob (.snp)..."
Error in `[.data.table`(x, r, vars, with = FALSE) :
  column(s) not found: prob
In addition: Warning message:
In sdY.est(d$varbeta, d$MAF, d$N) :
  estimating sdY from maf and varbeta, please directly supply sdY if known

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

Matrix products: default
BLAS/LAPACK: /home/acarrasco/.conda/envs/echoR/lib/libopenblasp-r0.3.12.so

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C               LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8     LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8    LC_PAPER=en_GB.UTF-8
 [8] LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C

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

other attached packages:
[1] echolocatoR_0.2.3

loaded via a namespace (and not attached):
 [1] magrittr_2.0.2    tidyselect_1.1.2  munsell_0.5.0     colorspace_2.0-3  R6_2.5.1          rlang_1.0.2       fansi_1.0.3       dplyr_1.0.8       grid_4.0.3        data.table_1.14.2 gtable_0.3.0
[12] utf8_1.2.2        cli_3.2.0         DBI_1.1.2         ellipsis_0.3.2    assertthat_0.2.1  tibble_3.1.6      lifecycle_1.0.1   crayon_1.5.0      purrr_0.3.4       ggplot2_3.3.5     vctrs_0.3.8
[23] glue_1.6.2        compiler_4.0.3    pillar_1.7.0      generics_0.1.2    scales_1.1.1      pkgconfig_2.0.3

The code from these two outputs is the same.
#!usr/bin/Rscript
library(data.table)
library(echolocatoR)
#library(tidyverse)

fullSS_path <- "/mnt/rreal/RDS/RDS/acarrasco/ANALYSES_WORKSPACE/EARLY_PD/POST_GWAS/ECHOLOCATOR/for_echolocatoR_axialOutcome_3.tsv"
fullRS_path <- "/mnt/rreal/RDS/RDS/acarrasco/ANALYSES_WORKSPACE/EARLY_PD/POST_GWAS/ECHOLOCATOR/RESULTS_25.3.2022"

top_SNPs = fread("../topSNPs_axialMotorSymptom.txt")
top_SNPs = top_SNPs[c(5,6), ]

earlymotor_PD = finemap_loci(top_SNPs = top_SNPs,
                                              loci = top_SNPs$Locus,
                                              dataset_name = "earlymotorPD_axial",
                                              dataset_type = "mixedmodels_GWAS",
                                              force_new_subset = T,
                                              force_new_LD = T,
                                              force_new_finemap = T,
                                              remove_tmps = F,

                     # SUMMARY STATS ARGUMENTS
                     fullSS_path = fullSS_path,
                     results_dir = fullRS_path,
                     query_by = "tabix",
                     chrom_col = "CHR", position_col = "POS", snp_col = "#MarkerName",
                     pval_col = "Pval", effect_col = "Effect", stderr_col = "StdErr",
                     freq_col = "medianFreq", MAF_col = "calculate",
                     A1_col = "Allele1",
                     A2_col = "Allele2",
                     #N_cases_col = "TotalSampleSize",
                     #N_controls = 0,

                     # FILTERING ARGUMENTS
                     ## It's often desirable to use a larger window size
                     ## (e.g. 2Mb which is bp_distance=500000*2),
                     ## but we use a small window here to speed up the process.
                     bp_distance = 500000*2,
                     min_MAF = 0.001,
                     trim_gene_limits = F,

                     # FINE-MAPPING ARGUMENTS
                     ## General
                     finemap_methods = c("ABF", "SUSIE", "POLYFUN_SUSIE"), #"FINEMAP"
                     n_causal = 5,
                     PP_threshold = .95,

                     # LD ARGUMENTS
                     LD_reference = "UKB",
                     superpopulation = "EUR",
                     download_method = "axel",

                     # Additional arguments - My arguments
                     case_control = F,
                     nThread = 15,
                     sample_size = 3572,

                     # PLOT ARGUMENTS
                     ## general
                     plot.types=c("fancy"),
                     ## Generate multiple plots of different window sizes;
                     ### all SNPs, 4x zoomed-in, and a 50000bp window
                     plot.zoom = c("all","4x","10x", "30x"),
                     ## XGR
                     # plot.XGR_libnames=c("ENCODE_TFBS_ClusteredV3_CellTypes"),
                     ## Roadmap
                     plot.Roadmap = F,
                     plot.Roadmap_query = NULL,
                     # Nott et al. (2019)
                     plot.Nott_epigenome = T,
                     plot.Nott_show_placseq = T,

                     verbose = F
                     )

The only difference is that in the first output I activate the environment before running the script whereas on the second output I do not activate the environment before running the script.
I thought it could be I was loasing a previous echolocatoR version outside the conda environment. However, we see on the sesion info that the echolocatoR version is the most up to date in both cases....
There are two issues.

Apparently echolocatoR fails to read input files on this new update
echolocatoR still fails when trying to red FINEMAP files

Hi @AMCalejandro, I've rewritten a lot of these steps (including input data standardization) and broken them down into subpackages since this post. Does this persist in the current echoverse branch?


Query related to Intel support changes release/tag

Hi @kenba, Following PR  https://github.com/filecoin-project/rust-gpu-tools/pull/83 on rust-gpu-tools uses changes that we published recently on opencl3/develop branch. There is a dependency between opencl3 and rust-gpu-tools, can you please help us in creating tag for it so that rust-gpu-tools works smoothly?

Repo now tagged at version 0.9.3 and published to crates.io.

Repo now tagged at version 0.9.3 and published to crates.io.

Thanks a lot !


Ensure getMonth() is incremented before padding result

This fixes #1

This would be a prerequisite for js-cli/fancy-log/pull/3 to be accepted, I would think.

Thank you, I really appreciate it.

Glad I could help!

tagged and published to npm as 0.1.3. thanks again!


Memeory leak found in openssl

Hi,
We have found some memory leak in openssl API.
Attaching back trace below. Any body is aware of any destructor API that can free the memory.
==25305== 1,744 (160 direct, 1,584 indirect) bytes in 2 blocks are definitely lost in loss record 74 of 75
==25305==    at 0x4A069EE: malloc (vg_replace_malloc.c:270)
==25305==    by 0x4F5D095: CRYPTO_zalloc (in /usr/lib64/libcrypto.so.1.1)
==25305==    by 0x4EE5BB6: BN_BLINDING_new (in /usr/lib64/libcrypto.so.1.1)
==25305==    by 0x4EE5E28: BN_BLINDING_create_param (in /usr/lib64/libcrypto.so.1.1)
==25305==    by 0x4F8B48D: RSA_setup_blinding (in /usr/lib64/libcrypto.so.1.1)
==25305==    by 0x4F8DDEA: rsa_get_blinding (in /usr/lib64/libcrypto.so.1.1)
==25305==    by 0x4F8E20B: rsa_ossl_private_encrypt (in /usr/lib64/libcrypto.so.1.1)
==25305==    by 0x4F9224B: RSA_sign (in /usr/lib64/libcrypto.so.1.1)
Br
Rohit

did you you free the RSA key when done with it?

Hi,Yes I am doing free_if of RSA_key,whether i need to use some API for freeing RSA key.

You need to use RSA_free.

Hi,
My code is multithread system and I will be creating rsa_key only once and
rsa_sign I will be invoking multiple times.So in this case when I can free
rsa_key.
Br
Rohit
On 07-Mar-2017 8:33 pm, "Rich Salz"<EMAIL_ADDRESS>wrote:

did you you free the RSA key when done with it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/openssl/openssl/issues/2871#issuecomment-284746591,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZB_Jm611iX45QIhUEIYQgH1JkHaJrtoks5rjXHbgaJpZM4MVQj4
.

When you are done with it.  If you are not caling RSA_free then you are leaving allocated memory.  The defect is in your code, not OpenSSL.  Closing this.

Hi,
When I am doing free it is causing invalid read and write.
Br
Rohit
On 08-Mar-2017 6:21 pm, "Rich Salz"<EMAIL_ADDRESS>wrote:

Closed #2871 https://github.com/openssl/openssl/issues/2871.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/openssl/openssl/issues/2871#event-991284453, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AZB_JoLZEyMGR0aAoKw2RmlsuqjzAxqvks5rjqRRgaJpZM4MVQj4
.

I said when you are done with it.

Hi,
At last I am freeing but than invalid read and write is coming...
On 08-Mar-2017 6:33 pm, "Rich Salz"<EMAIL_ADDRESS>wrote:

I said when you are done with it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/openssl/openssl/issues/2871#issuecomment-285034756,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AZB_JjsjsbidQGVRWUAh0IbvUB6Pn1Byks5rjqcHgaJpZM4MVQj4
.

Hi Thanks,For the Support I will check my Code part if any invalid we are doing .


Add battery sensor as seperate entity

Closing in favour of https://github.com/iMicknl/ha-tahoma/pull/425.
@vlebourl is that okay? Feel free to reopen / ping me, if I missed parts of your work! I tried to incorporate this in my PR.


Test coverage data changed based on test case run sequence.

Hi team,
I have two modules: "use_base.py" and 'base.py'. I write test cases for both moduels. If I run
'coverage run base.py'
it gives me 100% coverage for base.py. If I run
'coverage run use_base.py'
it gives me 20% coverage for base.py. If I run them both together, the 'coverage report' will give me 20% coverage for base.py.
Both of the files are under coverage source path. Seems later run test results overwrite the previous result if the testing covers the same testing file. Could you help take a look if there is any solution to the issue? Thanks for the help.

Yes, coverage run by default clears out old data, so that running the program, fixing something, and running it again won't produce confusing overlapping results.
You can use coverage run --append if you want to collect results from a number of runs.


[SPARK-43089][CONNECT] Redact debug string in UI

What changes were proposed in this pull request?
This PR is a followup of https://github.com/apache/spark/pull/40603 which redacts the debug string shown in UI.
Why are the changes needed?
To leverage existing redaction feature in UI.
Does this PR introduce any user-facing change?
Yes, it redacts the sensitive information as configured spark.sql.redaction.string.regex
How was this patch tested?
Manually tested:

Merged to master.


Build failing with errors

Build is failing and hitting with below attached error. Please help in resolving the same!

This is related to a few backwards incompatible changes to the watson SDK.
specifically the listClassifiers and classifyLocal methods have changed to have two results (response and error):
        visualRecognition.listClassifiers { response, error in

https://github.com/watson-developer-cloud/swift-sdk/blob/add0c54377232f58430fa5e4e43ea0ad23fc4c43/Tests/VisualRecognitionV3Tests/VisualRecognitionTests.swift#L97

@RiyaMRoy04 I pushed build fixes, but I don't have a fully working test environment.  Can you test this?

@stevemart Thank you for the update!
@markstur Sure, will test and update you!


Exclude mount point used by autofs for remotely mounted home directories from getent user enumeration when they are used

Enhancement
Add support for RHEL 8 systems using remote autofs mounted home directories for ldap users
Applies when the RHEL 8 system is joined to IPA, AD, etc. and remote users do not utilize local home directories and instead use autofs maps from an IPA server via SSS lookup.
Premise
The idea here is that autofs mounted home directories that reside on a remote server, such as an NFS server should be excluded from getent user enumeration because the directory does not locally reside on the RHEL 8 system, and local interactive accounts on the RHEL8 system do not use a home directory under the automount managed mount point.  I.E. "/home"
Things like ownership, bad permissions, etc should be corrected on the NFS server itself where the directories actually reside, and should not happen on every client that simply mounts the share.
Using my commit, It becomes the job of the role user to specify via defaults/main.yml that remote autofs home directories are actually in use.  The default assumption as shipped is that they are not, and no modification to the getent user enumeration command is made.  See commit link below.
Summary of Request

Add task block in prelim.yml to modify getent user enumeration shell command when remote autofs mounted home directories are being used.  (rhel8stig_autofs_remote_home_dirs is set to true)
Add variable rhel8stig_autofs_remote_home_dirs to defaults/main.yml to declare that remote automounted home directories are being used, and set it as false by default
Add variable rhel8stig_auto_mount_home_dirs_local_mount_point to defaults/main.yml to declare what the managed autofs mount point for home directories is, and set the default value to "/home"
Remove local_interactive_user_dir variable and getent shell command from tasks/prelim.yml (line 123)
Add getent user enumeration variable and getent shell command to defaults/main.yml, exactly as it was set in prelim

Behavior of the role with these changes
getent user enumeration shell command is modified at run time when remote automount home directories are in use, and the managed autofs mount point is excluded.   Non local, ldap users that are looked up and authenticated via SSSD and pam, which do not have home directories residing on a local RHEL 8 machine are excluded from getent discovery.
This dramatically improves role runtime performance and prevents the role from failing with permissions errors when it can not make changes to these remote home directories.  This also prevents the automounter from automounting home directories for every user when the ldap user is not actually logged in, but was discovered via getent lookup, and automounted via an access request by a role task.
Alternatives considered
I considered modifying the shell command in tasks/prelim.yml directly, per the comment, and appending another grep -v for /home.  The problems with this approach is that one cannot use tasks/prelim.yml as shipped from github, and if remote automount home directories are not being used, the location should not be excluded.
local_interactive_user_dir_command: "getent passwd { {{ rhel8stig_int_gid }}..65535} | cut -d: -f6 | sort -u | grep -v '/var' | grep -v '/nonexistent/*' | grep -v '/run/*' | grep -v '/home/'"

Suggested Code
Please see commit:
https://github.com/ansible-lockdown/RHEL8-STIG/compare/devel...whitehat237:RHEL8-STIG:devel
If this looks acceptable, I'll submit a pull request.

hi @whitehat237
Thank you very much for the time and thorough explanation for this. I have finally had a chance to go through this and we really like the way you have done it.
If you would like to raise the PR happy to accept this in.
Many thanks again for your time and effort.
uk-bolly


Static framework target for iOS to enable Carthage support

Some questions to @lmirosevic:

Should we remove the static lib target?
What about merging osx/ios frameworks completely, just using target conditional macros? i think carthage would enjoy that.
Should we officially add carthage support info in readme?

hmm, another question:
i have troubles using it with the precompiled headers. ok if i'd drop them? thanks

or: do you insist on it being static at all? a shared fw would also be nice

@nidegen Thanks for this PR! I'd love the Carthage support.
I'm OK with dropping the PCH.
I also don't insist on the lib being static. But please keep in mind though that GBJailbreakDetection is a closed source dependency of this lib, which is itself a static library. Jailbreak detection shouldn't break.

@lmirosevic current status:

Made a static fw for iOS, rm static lib target
Builds with Carthage, has a run script that downloads the JailbreakDetection

Open:

Test with CocoaPods. i have barely any experience with it. Can you maybe test it?
We could also merge the OSX target and the iOS with some #ifdefs. I think it would make it cleaner, but not sure how this is compatible with CocoaPods. What do you think?

Any updates on this?

Getting Carthage support would be great. Is there anyone who is happy to bring this PR over the finishing line, and I would merge it into master?


How to generate automatic typescript types from your graphql schema. [Hasura]

Is this issue related to an existing part of the documentation? If so, please provide a link
I am not sure about this
Describe the thing to improve
A clear and concise description of problems.
If you are using Hasura as backend service, you may want to generate typescript types for your queries/mutation and use them with refine.
Step 1. Export graphql schema file from hasura. You can follow this guide
I will use apollo's new rover cli. Install apollo rover cli using following command
npm install --save-dev @apollo/rover
Generate Graphql schema using the following command.
npx rover graph introspect http://localhost:8080/v1/graphql -H "X-Hasura-Admin-Secret:adminsecretkey" | out-file  schema.graphql -encoding utf8
If you are curious about the -encoding utf8 flag read here
Step 2. Generate typescript types from  schema.graphql file
Create a file codegen.yml in the same level where your package json exist
schema: schema8.graphql
generates:
  ./src/generated.ts:
    plugins:
      - typescript
      - typescript-operations
      - typed-document-node

Install required packages using following command
npm i -D @graphql-codegen/cli @graphql-codegen/typed-document-node @graphql-codegen/typescript @graphql-codegen/typescript-operations
My devDependencies tree look like this now
"devDependencies": {
    "@apollo/rover": "^0.7.0",
    "@graphql-codegen/cli": "^2.9.1",
    "@graphql-codegen/typed-document-node": "^2.3.2",
    "@graphql-codegen/typescript": "^2.7.2",
    "@graphql-codegen/typescript-operations": "^2.5.2",
    "@types/graphql": "^14.5.0",
    "apollo": "^2.34.0",
    "graphql": "^16.5.0"
  }

Add codegen script cmd in package.json to generate types
 "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "codegen": "graphql-codegen --config ./codegen.yml"
  },

Now run npm run codegen and and new file generated.ts will be created inside src directory
This video explain more about automatic types from graphql schema
related #1713

Hey @nirmaanlabs, thank you for the issue. I think this will be a great guide! Would you like to add it yourself to our Guides & Concepts section in the docs? If you want, here's a guide that you can follow to start with https://refine.dev/docs/contributing/#starting-documentation-in-watch-mode 🙏

@aliemir I am pulled into different things right now.


Improving ROM clustering list

Issue Description
This is a collection of improvements that are needed to generalize ROM clustering.
General Options

[ ] Weights: the user should be able to specify weights for particular clustering features or groups of features, and we need an implementation for how that weighting should behave.
[ ] Scaling: the user should be able to specify at least whether they want to use [0..1] scaling or Z-normalization scaling when normalizing cluster features before clustering.
[ ] SolutionExport: the user should be able to see more of how the clustering was performed (or the values of the features in the clustering space) when they print the ROMCollection metadata.
[ ] Plotting: can we make it possible for the user to easily see which segments of the original training data were clustered with which other segments?
[ ] ND General Implementation: extend the clustering strategies to arbitrary ROMs with arbitrary indices, not just ARMA and time.
[ ] The Clustered VARMA needs to be serializable; sometimes now it raises an error saying "no module named simulation_smoother, which is a statsmodels method. It's unclear why it's not finding this method.
[ ] PreserveInputCDF should be a choice for the sub-segment ROMs. Right now it's set to False by force in ARMA.setGlobalRomClusterSettings.

Truncated Representation

[ ] The user needs a way to specify when training and/or serializing a clustered ROM whether they want a truncated or full representation.
[ ] The user should have some options for what gets included in the truncated representation. For example, mid-high-low among represented clusters, or just mid, or just high or low, etc.
[ ] When applying "global" Fourier trends to a truncated representation, many options are needed. Among those are the ability to sample from the global Fourier trends associated to each segment within a cluster randomly each time it is sampled; this is in addition to the bullet above.
[ ] When reproducing a full history, it's possible that a representative segment is being used to represent another segment with a shorter history; for example, if the first and last segment cluster together, and the first segment has 168 entries while the last segment is only 141 segments long. Instead of implicitly chopping the signal, we should intentionally select the length of data desired to keep when _evaluateBySegments for clustered representation.

QA

[ ] User manual: options implemented all need to be documented
[ ] User guide: a guide should be written for how to navigate using the clustering, possibly on a per-ROM basis (just the ARMA is compatible currently).
[ ] Regression testing: need good workflow tests that test options fairly thoroughly
[ ] Unit testing: need to test individual methods in ROMCollection and other added methods

Efficiency

[ ] The sampling of a clustered ROM is fairly slow compared to most ROMs; find out what the slowdown is and try to remove choke points.

Note these issues should be split out before considering for closure individually via PR.

@JiaZhou-PU here is the list of desired improvements for the clustered ARMA. There's no priorities assigned yet, but it's a starting place to decide what to work on next.


js api facebook-chat-api doesn't run with react-native

I am trying to work with this api with react-native, but after import - var login = require("facebook-chat-api"); i am getting error

I tried clean installation again, but same error, any experiences with this error message?

So i fixed this error message by setting debug mode on, but now i am getting new error

After adding any node module I think you always have to restart the react native packager (react-native start), otherwise you get that 500 error.

I tried to delete entire project and create new, with restarting android, and computer too :D so it isn't this case :/

Try doing:
import { login } from "facebook-chat-api";

They're not exporting a default here: https://github.com/Schmavery/facebook-chat-api/blob/master/index.js#L433

I tried, but same.. and when i am using debug mode, i am getting
13:53:22 Adb connection Error:An existing connection was forcibly closed by the remote host
13:53:23 Connection attempts: 1

It has something in common with... ?

Don't think so. Try restarting your emulator.

I tried too... i restarted entire computer too :D same error all time :/ with new project too.. i just cant import anything from facebook-chat-api..

Closing this issue because it has been inactive for a while. If you think it should still be opened let us know why.


upgrade Makefile.PL

Thanks! I appreciate that. Was trying to figure that one out and couldn't find anything explicit on it. Any idea why the build is failing so hard on travis-ci? https://travis-ci.org/jsober/Coro-ProcessPool/jobs/65891879

missing comma

Awesome. Thank you for your contribution.


debugger not working after fresh install (tried twice)

Environment data
Please check:  https://github.com/microsoft/vscode/issues/82322#issuecomment-540971730

CPUs
Intel(R) Core(TM) i7-6820HQ CPU @ 2.70GHz (8 x 2712)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
31.91GB (25.36GB free)

Process Argv

Screen Reader
no

VM
0%

Extension | Author (truncated) | Version
python | ms- | 2019.10.41019

Expected behaviour & Actual behaviour
Debugger runs but no variables show up. Everything is freshly installed.  I simply try it on a simple code and does nothing
I originally created bug report on microsoft/vscode, they closed and recommended opening here. (https://github.com/microsoft/vscode/issues/82322#issuecomment-540971730)
Steps to reproduce:

Install VSCODE with the default Python Extension
write a simple code (see attached) to test the debugger
nothing happens

Same problem here.
It worked two or three days ago; also worked on Insiders (Python remote debugging).
Version: 1.39.1
Commit: 88f15d17dca836346e787762685a40bb5cce75a8
Date: 2019-10-10T23:35:11.314Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Darwin x64 17.7.0
Intel Core 2 Duo 3,06 GHz, macOS High Sierra 10.13.6 (17G65).

I kind of got it to work, and this is how.
Python 2.7 is also installed on the machine (as is 3.5, and 3.7). I'm trying to work with v3.7.4. But, this change in launch.json made it work:
...
"pythonPath" : "/usr/bin/python"
...
So, setting the pytonPath explicitly to what is actually Python 2.7.10 on my machine made the debugger start, and it seems to be working fine.
Not sure if this is completely ok. But setting it explicitly to any other Python binary makes it not even start.

debugger stopped working, probably after update to 2019.10.41019

open a py file

set a breakpoint

F5

debug action bar appears, then disappears

no output in debug console (even from code before the breakpoint)

tried to roll back 2019.10.41019 to previous version, but did not get any suggestions for previous versions.

uninstalled 2019.10.41019,

reinstalled 2019.10.41019, no change, debugger still not working

but at least now I can roll back to 2019.9.34911: with 2019.9.34911, debugger works as expected

using conda env as python backend which creates sys.path as follows:
['c:\Users\me\where_my_pyfile_is',
C:\Users\me\Anaconda3\envs\python37\python37.zip', 'C:\Users\me\Anaconda3\envs\python37\DLLs', 'C:\Users\me\Anaconda3\envs\python37\lib',
'C:\Users\me\Anaconda3\envs\python37', 'C:\Users\me\Anaconda3\envs\python37\lib\site-packages']

this is likely due to #7836. See comment here for possible work around: https://github.com/microsoft/vscode-python/issues/7836#issuecomment-540350986

Closing this since the fix is tracked via  #7836


Add socks client functions to socks-common and use ipaddr.js.

The socks client functions are useful for both unit testing
(included in this change) and integration testing (coming soon).
The ipaddr.js calls replace homebrew parsing and serialization
functions for IPv4 and IPv6 addresses.
This is related to issue #756

Comments from the review on Reviewable.io

Great! This looks good all around. Just a few comments, mostly about raising exceptions when the supplied byte arrays are too short, then :+1:.
Seems like this mostly addresses this issue too, right?:
https://github.com/uProxy/uproxy/issues/422

src/socks-common/socks-headers.ts, line 114 [r1] (raw file):
Akin to the other methods already here, I think it would be good if this method raised an exception if auths.length == 0 (maybe overkill but it's easy to do here and has little performance cost).

src/socks-common/socks-headers.ts, line 135 [r1] (raw file):
Again, I think it would be good to raise an exception if byteArray.length == 0.

src/socks-common/socks-headers.ts, line 184 [r1] (raw file):
It looks like this method supercedes composeRequestResponse -- how about removing that now?

src/socks-common/socks-headers.ts, line 283 [r1] (raw file):
Again, would be good to sanity-check the length of the byte array.

src/socks-common/socks-headers.ts, line 283 [r1] (raw file):
Aside: I just noticed that it's weird we have interpretIpv6Address but not interpretIpv4Address.

Comments from the review on Reviewable.io

src/socks-common/socks-headers.ts, line 114 [r1] (raw file):
Done.

src/socks-common/socks-headers.ts, line 138 [r1] (raw file):
Done.

src/socks-common/socks-headers.ts, line 184 [r1] (raw file):
composeRequestResponse isn't quite obsolete, but I was able to remove most of the body, add a corresponding interpretRequestResponse function, complete TODOs for IPv6 and DNS support, and add unit tests.

src/socks-common/socks-headers.ts, line 284 [r1] (raw file):
Done.

src/socks-common/socks-headers.ts, line 296 [r1] (raw file):
Done.

Comments from the review on Reviewable.io

Comments from the review on Reviewable.io

:+1:


Some more optimizations for the backward attention kernel

We're hitting diminishing returns, so this is probably going to be last update for this kernel from me for a while. I really like the simplicity of kernel 7, but  even kernel 8 isn't so bad, and we do get 5-10% speedup from this on my system.

I'm seeing a solid improvement on my end too, down to 77.9 ms/iter average.
Good call on cublasCheck too
Merging!


ENH: Supporting 2D images in RegisterImages

RegisterImages had functions to support 2D image regitration, but itkImageToImageRegistrationHelper.txx was not fully compatible with 2D images. It was updated to support 2D image registration and SUPPORT_2D_IMAGES is now activated in RegisterImages.

I've improved the pull-request adding a CMake variable to choose if RegisterImages  is built with 2D image support. Let me know if it needs further improvement.

Thanks!
It would be cool if you moved that #ifdef logic into the ParseArgs function
in
https://github.com/KitwareMedical/TubeTK/blob/master/Base/CLI/tubeCLIHelperFunctions.h
Then we could toggle 2D and 3D support for all apps!
On Thu, Feb 11, 2016 at 4:51 PM, Francois Budin<EMAIL_ADDRESS>wrote:

I've improved the pull-request adding a CMake variable to choose if
RegisterImages is built with 2D image support. Let me know if it needs
further improvement.
—
Reply to this email directly or view it on GitHub
https://github.com/KitwareMedical/TubeTK/pull/590#issuecomment-183072642
.

--
Stephen R. Aylward, Ph.D.
Senior Director of Operations, North Carolina, Kitware, Inc.
http://www.kitware.com and http://www.aylward.org
(919) 969-6990 x300

Looks like this changes the names of executables.  Is it really appending 2D3D onto names?  That is not good.  Compilation options should not cause all of our scripts to not work and/or become more complex.
The additional complexity to the SEM module seems unnecssary as well - adding a new variable EXECUTABLE_NAME instead of MODULE_NAME as was always done before.

Looks good to me!


Native iOS Widget

This would be quite nice for the following reasons:

Dynamic Dates allows for the widget to refresh without technically refreshing (i.e. updates in realtime)
Install can be directly from the AppStore (much less friction for casual users)
Setup for selecting train/station can be a much smoother and prettier flow (something like the following 3 steps)

4. Definitely not for the 💰, best as a free app
5. Enables WatchOS, could be pretty sweet on a watch face🤩 (credit to Ace)

Thanks for sharing this widget on scriptable! Was wondering if this native widget goal includes making the widget small enough for display on iOS lockscreen? The current scriptable widget understandably gets wrecked by the size & colour constraints.

@ignaspa fine suggestion. I hadn't considered it on the lock screen, but that sounds pretty handy. Have you tried it with scriptable?

Yeah, works normally on my homescreen but broken in both possible formats on the lockscreen.

Cool. I'm curious to know what you mean by broken. Can include a screenshot? I imagine for the lockscreen, the layout would need to be simplified much more.

As you can see, both possible sizes of the homescreen widget type do not fully allow the scriptable UI to be visible. The line is visible but cut off, and the coloring looks less than clear.

Thanks for the visual. I see, it is a design/layout issue, not a technical one. Here's a branch that uses the relative time feature and then formats the widget for your homescreen. I titled this script "MTA-Homescreen" in my Scriptable apps and added this one to my homescreen. It looks like the following.

Let me know how that works for you.

Looks decent in the bigger widget format, thanks!


Demo is not working

Demo is not working

@amrangry hey, could you please describe what exactly doesn't work ? I've just try code from master on simulator and on device and it works fine. Please provide more information and if problem is still actual reopen this issue

thanks, @igork-ramotion for your response
its works fine now with me the problem with inhert from the module actually


Update Telemetry example to mention errors on :stop

Failures handled by adapters won't trigger an :exception event, but it will include an :error key on the :stop metadata.
We noticed that we our log handler wasn't logging errors after a Mailgun incident and the adapter was returning {:error, term} instead of raising

Thanks 👍


[FEATURE REQUEST]: CommentsController - POST /comments. Create controller method to create a comment

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This issue is a duplicate of #52 and as such will be closed. Please find another task to do on the sheet.


Add Goblin FM by Platina

Song Name
Goblin FM
Artist Name
Platina
Source
Youtube
Youtube Link
AzpjI9hyZhs
Direct File Link
No response
Song ID
33
Extra
Created from Auto Nong.
Created for level: 106192142

Thanks for contributing! Someone will soon review your request.
Here is the JSON result for the reviewer:
{
  "name": "Goblin FM",
  "artist": "Platina",
  "source": "youtube",
  "yt-id": "AzpjI9hyZhs",
  "songs": [
    33
  ]
}

To accept the request, a reviewer needs to write "accept".

accept

Accept.

Thanks for contributing! Someone will soon review your request.
Here is the JSON result for the reviewer:
{
  "name": "Goblin FM",
  "artist": "Platina",
  "source": "youtube",
  "yt-id": "AzpjI9hyZhs",
  "songs": [
    33
  ]
}

To accept the request, a reviewer needs to write "accept".

accept


，sorry to disturb you.

Please refer to README.md
It gives you some example codes to run the model


UI : Remove Save and Discard button from manage tab

Feature
Support individual save actions for owner and tier.
Describe the task
Today we update the owner and tier with the click of the save button in the manage tab. this change should include separate micro-interaction for both operations.

@Sachin-chaurasiya For tier when the user selects one we can show adjacent to that label a button to save. That way we don't keep adding and changing the tier tag every time user clicks on a label

@Sachin-chaurasiya For tier when the user selects one we can show adjacent to that label a button to save. That way we don't keep adding and changing the tier tag every time user clicks on a label

@harshach , Yeah We are planning the same.


Show error message when payment fails

What does this PR do and why?
Provide a description of what this PR does. Link to any relevant GitHub issues,
Notion tasks or Discord discussions.
Screenshots or screen recordings
If applicable, provide screenshots or screen recordings to demonstrate the
changes.
Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.

Current dependencies on/for this PR:

main

PR #789   (this PR)

This comment was auto-generated by Graphite.

@benschac thanks so much for this! Great improvement, I also really like that the error message is specific. We can do a better job of this site-wide.
I've added a merge commit to bring this up to date with main and will merge when pipeline succeeds 💪


Converting partitioners to use bulk async execute

The partitioner was changed to make use of the bulk overload of
async execute for the parallel algorithms and functional components
of invoke fused was added.
Other:

chunk_size.hpp reserves different size for shape function and
shape is now a vector of tuples
partitioner and foreach partioner takes advantage of
bind(invoked, function, _1)

LGTM, thanks!


Remove Legacy ImageBasic streamfield block

https://github.com/cfpb/cfgov-refresh/pull/1322#issuecomment-170578001
Needs to convert the existing data from the block into the existing image's alt field for the new custom Image model.

Aren't we still using this?

Yeah but we shouldn't be. The image model that we use has the alt attribute that ImageBasic was adding in.

@cfpb/cfgov-backends Is this still an issue?

Our image model (CFGOVImage) does have an alt field that lets you define general alt text for an image when it gets added to Wagtail:

But then the ImageBasic block lets you further customize that, by adding a different alt tag in each place that the image is displayed:

Then on top of both of those we also have a custom image_alt_value Jinja tag that picks which alt text to use. It seems to me like ideally this could be baked into the ImageBasic block rendering; if I recall correctly from pairing with @Scotchester on #2920 that was difficult because we don't consistently use {% include_block %} throughout.
Bringing this back to the issue at hand, my read is that as long as we want to be able to override an image's alt text per block, then we need to keep ImageBasic around, and this can be closed. @Scotchester does that all seem right to you?

Thanks for digging back into all that, @chosak. That does all seem right to me.


New sign function

i could remove the dependency to python-bitcoin lib, this will help with the install problem under windows

Coverage decreased (-1.7%) to 72.09% when pulling cd62db328359fe55d418b88f3f1068b395a976a8 on BlackDuck888:develop into b1b174758453e416893be7935dd4871969ed6ab1 on Storj:develop.


Docs non-response

It seems that the main text column of the getting started webpage is non responsive, which was noticed when trying to run some CLI commands next to the docs.
Noticed on Win/Mac getting started pages.
https://docs.docker.com/docker-for-windows/
File: index.md, CC @johndmulhausen

I can't seem to reproduce this. Can you take a screenshot/gif that shows the behavior?

Here you go - this is in latest Chrome, Win10 x64 (Creators Update):

Oh, I got it now. Thanks for the screenshot!
Related to #2619

We fixed this over in #2619; I'm showing a nice, narrowing middle column as you resize, now. Thanks!


Arma 3 port issue

hello, so i wanted to make a arma 3 server with ubuntu and i have a big issue which i couldn't find anywhere i searched for some hours and still didn't find/fix it maybe some of you could help?
so first if i get the server details i get this: https://gyazo.com/caea244b225eb2501e3491bea94ed73a
and that is after a fresh install.. if i do the monitor command it says: https://gyazo.com/3a25ca191482e328268da9e1dffa0a7e
i really don't know what to do anymore i port forwarded the ingoing and outgoing and i really am lost..
thank you or your time to help if you have any questions ask me :)

Seems like there are some issues with the monitor function, don't worry about it for now. What's in your .cfg file about ports ?

hi, i didn't change much in it here's the server.server.cfg
`// ArmA 3 Server Config File
//
// More info about parameters:
// https://community.bistudio.com/wiki/server.cfg
// PORTS
// please specify the serverport as a parameter in arma3server executable
// it will automatically use the serverport including the next 3 for steam query & steam master.
// the fourth port ist not documented in https://community.bistudio.com/wiki/Arma_3_Dedicated_Server#Port_Forwarding
// Server Port
//  default: 2302.
// serverport=2302;
// Steam Master Port
//  default: 2304.
// steamport=2304;
// Steam Query Port
//  default: 2303.
//steamqueryport=2303;
// GENERAL SETTINGS
// Server Name
hostname = "[EN/EU]gaming.basickiwi.com Tanoa Life";
// Server Password
//password = "arma3pass";
// Admin Password
passwordAdmin = "*************";
// Server Slots
maxPlayers = 32;
// Logfile
logFile = "arma3server.log";
// Minimum Required Client Build
//requiredBuild = 95691
// Message of the Day (MOTD)
motd[]={
"Welcome to My Arma 3 Server",
"TS3 Server:     teamspeak.somewhere.com",
"Web:            www.example.com"
};
// MOTD Interval (Seconds)
motdInterval = 30;
// VOTING
// Server Mission Start
//  minimum number of clients before server starts mission
voteMissionPlayers = 1;
// Accepted Vote Threshold
//  0.33 = 33% clients.
voteThreshold = 0.33;
// INGAME SETTINGS
// Disable Voice over Net (VoN)
//  0 = voice enabled.
//  1 = voice disabled.
disableVoN = 0;
// VoN Codec Quality
//  0-10 = 8kHz (narrowband).
//  11-20 = 16kHz (wideband).
//  21-30 = 32kHz (ultrawideband).
vonCodecQuality = 3;
//Persistent Battlefield
//  0 = disable.
//  1 = enable.
persistent = 1;
// Time Stamp Format
//  none, short, full
timeStampFormat = "short";
// SERVER SECURITY/ANTI HACK
// Verify Signitures for Client Addons
//  0 = off.
//  1 = weak protection (depricated).
//  2 = full protection.
verifySignatures = 2;
// Secure Player ID
//  1 = Server warning message.
//  2 = Kick client.
requiredSecureId = 2;
// Kick Duplicate Player IDs
kickDuplicate = 1;
// BattlEye Anti-Cheat
//  0 = disable
//  1 = enable
BattlEye = 1;
// Allowed File Extentions
allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"};
// SCRIPTING ISSUES
onUserConnected = "";					//
onUserDisconnected = "";				//
doubleIdDetected = "";					//
// SIGNATURE VERIFICATION
// kick = kick (_this select 0)
// ban = ban (_this select 0)
onUnsignedData = "kick (_this select 0)";
onHackedData = 	"kick (_this select 0)";
onDifferentData = "";
// HEADLESS CLIENT SUPPORT
// specify ip-adresses of allowed headless clients
// if more than one:
// headlessClients[]={"<IP_ADDRESS>", "<IP_ADDRESS>"};
// localClient[]={"<IP_ADDRESS>", "<IP_ADDRESS>"};
headlessClients[]={"<IP_ADDRESS>"};
localClient[]={"<IP_ADDRESS>"};
battleyeLicense=1;`

Please, use pastebin (i edited your post).
I've never made an arma3 server, but maybe uncomment those :
serverport=2302;
steamport=2304;
steamqueryport=2303;
And try again.
Also, have a read at this https://github.com/dgibbs64/linuxgsm/issues/865

ye i tried that what it says in the post but it still didn't work for me was still doing the same weird thing even though i port forwarded the ports..
but its pretty weird it just starts up normally but never shows up in the server browser of arma (not even with direct connect) https://gyazo.com/fb129327f0211fd22874f39069dae005

Is this a server in your home ?

no its a dedicated server i use with other friends

What kind of server is this ?
Do this dedicated server host other servers ?
Isn't there any kind of a firewall behind it ? OVH "game" server for example have a firewall you have to set before anything works.

no we just bought a dedicated server and put game servers (like ark and rust etc) on it.

There is no such a thing as port forward on a dedicated server.

Alright @koekblik2. Answer this question to the best of your ability. (I know it's been asked before.)
If I were to buy the exact same server as you? Where do I go? Did you purchase a dedicated server and had it shipped to one of your friends homes? (It's a home hosted server then.)
Does someone else (OVH, Hetzner) for example have the hardware and do you "lease" it every month/whatever period?
Can you provide us with the specifications of said server.
And last but not least. Do Ark and Rust work? As in can you log on and play on them?
If we get all that from you we'll try to guide you.
PS. As UltimateByte already said there's currently a problem with the monitor function.

@JHulsmans its a leased server one of my friends pays for it every month so ye its dedicated somewhere else. and yes the (2) ark servers and (1) rust server are working like they should like the specs of the server itself i don't know that if you really need it i can ask

A merge happened 2 days ago, should fix the monitor function.
./arma3server update-functions
Please, keep us tuned.

the fix in #865 works to resolve the monitor problem,
i have just tried starting server with the ports commented and not commented in arma3-server.server.cfg
and there is no difference to the server functioning. so in short no need to uncomment the lines in the config if you are running just the default server setup.
the changes you made to lgsm/functions/info_parms.sh  do fix the reporting of the correct ports when you run 'details'

Yeah, the merge actually fixes the details function but not the port !
Let's close this as #865 summs it up all !
As always, feel free to re-open if needed, otherwise, let's discuss about it on #865
@koekblik2 follow #865 to know when it's fixed :)


Setting selectedIndex programmatically does not set the tab underline

Hi @bhagyas
As is written in the documentation, please use this function when programmatically selecting tabs. My apologies if it wasn't clear.
(void)selectTabAtIndex:(NSInteger)index animated:(BOOL)animated

Selects and highlights a tab.
@param index (NSInteger) The index of the tab you wish to select and highlight.
@param animated (BOOL) A flag to determine if we should animate the change or not.

Hi @bfeher,
Thank you for your response. That solved the issue.
I'm wondering if there is a way to have the selectedIndex setter to automatically call selectTabAtIndex method. This could help more people to move over from the default TabBarController to the more awesome BFPaperTabBarController. :-)


BLD: add code of conduct from PyMC3

With some light touchups. ~I removed the sentence with the NumFOCUS contact info, since I'm not sure if PyMC4 counts as a NumFOCUS project.~

Thanks!


fix(root): fixes SSR in Gatsby

Summary of the changes
Stops whole page content reloading on navigation. Content is now visible when javascript disabled.
Styles no longer applied using className as these were not applied when JS disabled.
Also uses web components rather than React wrapper. React wrapper still required for use in mdx files.
Related issue
#115
Checklist

[x] I have manually accessibility tested any changes, if relevant.

Great work on this, looks great without JS. Just a point, on initial page load, the Top Navigation does have a flicker where it is enlarged then quickly reduces. There be anything we can do about that? This is new behaviour since the changes.

This will be resolved once latest ui-kit components are released

Hey @ad9242, I think this branch needs to be rebased off develop. It's currently pulling other commits into this PR

closed as replaced by https://github.com/mi6/ic-design-system/pull/166


Any idea of adjusting task contributions in multi-task training

Hi,
I am using Graph to train a multi-task CNN. Intutively, it makes sense to force training to focus on a main task, but I did not think this simple feature has already been supported. I guess I can introduce task_weight into the current Graph model, but please correct me if I am wrong.
class Graph(Model, containers.Graph):
    def compile(self, optimizer, loss, theano_mode=None):
        # loss is a dictionary mapping output name to loss functions
        ys = []
        ys_train = []
        ys_test = []
        weights = []
        train_loss = 0.
        test_loss = 0.
        for output_name in self.output_order:
            loss_fn = loss[output_name]
            output = self.outputs[output_name]
            y_train = output.get_output(True)
            y_test = output.get_output(False)
            y = T.zeros_like(y_test)
            ys.append(y)
            ys_train.append(y_train)
            ys_test.append(y_test)

            if hasattr(output, "get_output_mask"):
                mask = output.get_output_mask()
            else:
                mask = None

            weight = T.ones_like(y_test)
            weights.append(weight)
            weighted_loss = weighted_objective(objectives.get(loss_fn))
            # <-- begin of using task weight -->
            train_loss += weighted_loss(y, y_train, weight, mask) *  task_weight
            test_loss += weighted_loss(y, y_test, weight, mask) * task_weight
            # <-- end of using task weight -->
        train_loss.name = 'train_loss'
        test_loss.name = 'test_loss'

I've also seen papers claiming it is important to stop different tasks at different iterations, but not sure how to support this feature in a systematic way ( sure I can manually stop training a model, remove the task I want to stop, and reload weights from previous trained model and lanch training on the rest of tasks again).

Well, that's an easy one: you multiply each loss function by a scalar. Something like:
from keras.objectives import mse
model.compile(optimizer='adam', loss={'output1': 0.2 * mse, 'ouput2':0.8 * mse})

stop different tasks at different iterations

You can write a callback to do this. "Stopping a task" is possible by setting to 0 the weight applied to its loss. You can make the weight re-settable during training simply by using a Theano shared scalar instead of a scalar.

I followed your suggestions, but I got the following error
  File "<ipython-input-1-1f2f5e768a83>", line 50, in <module>
    model.compile(optimizer='adam', loss={'output1': 0.2 * mse, 'ouput2':0.8 * mse})

TypeError: unsupported operand type(s) for *: 'float' and 'function'

I guess a parameter like "weighted_loss" could be added to graph.compile, which makes it easier to adjust contributions.

@rex-yue-wu then just create a wrapper function f x: 0.2 * mse(x)...


Hostname blank for declarative onboard if mgmt_ip set to false

When setting "public_ip" to false for management, the terraform output for declarative onboarding is blank. This causes declarative onboarding to fail due to no hostname beint set.
mgmt_subnet_ids             = [{ "subnet_id" = aws_subnet.mgmt.id, "public_ip" = false, "private_ip_primary" = null }]

Proposed fix: https://github.com/F5Networks/terraform-aws-bigip-module/pull/7

@Pacobart please find CLA here: https://github.com/F5Networks/terraform-provider-bigip/blob/master/F5_Contributor_License_Agreement.pdf

@Pacobart fixed through v1.1.3

@RavinderReddyF5 thank you for fixing this!


Fix needed in 4.1 Docs: Utilities - Text - Monospace

In 4.1 Docs: Utilities - Text - Monospace (https://getbootstrap.com/docs/4.1/utilities/text/#monospace) I found two instances of "font-monospace" that should be replaced with "text-monospace".
Line numbers in HTML: 507 and 509

I also just stumbled upon the same issue right now :)

I think this will be fixed in 4.1.1 with this PR #26239

Yes, so it seems!!
On Thu, 26 Apr 2018, 17:18 Christian Oliff<EMAIL_ADDRESS>wrote:

I think this will be fixed in 4.1.1 with this PR #26239
https://github.com/twbs/bootstrap/pull/26239
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/issues/26387#issuecomment-384656173,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ak9S7qp5q1GkkD_YaV6tWmwyiA-FfNXsks5tsdcLgaJpZM4Tk3zF
.


Comment needed for TitleCaserConsts.js

Utterly minor.
TitleCaserConsts.js  is missing a comment above corporate names (e.g. Adobe) thus indicating they're an NPO. Needs a simple comment added.

This was fixed, thanks @danielpdykes


Throw error when dispatching boundAction or dispatch

Looks reasonable to me!

I've been run into this problem a few times today after some furious refactoring of action creator code. A connected components is unknowingly dispatching bound actions which has been overlooked behind a trail of imports. The current error Actions must be plain objects. Use custom middleware for async actions. is technically correct, but not explicit to my particular problem. I debug for a while only to discover that the action that I'm importing is now "bound", so my code is is essentially:
store.dispatch(store.dispatch(ActionCreator()))

The first dispatch call (the inner one) receives an action and my reducer state is updated as expected. The second dispatch call receives a function (dispatch!) which throws an error because it's not a plain object... but the state has updated as expected?! Bewildered, I track down the bug with no side-effect, until I realize that I'm dispatching an actionCreator that is now bound. Oops. This helps with that 😄

we've recently run into this problem again. any updates on getting this merged?

Looks like this needs to be updated. @CoryDanielson If you want to update it, I can reopen and we can look into getting it merged in. Thanks!


How can I use beautify in Ace Editor?

How can I add extensions, like
var beautiful = ace.require("ace/ext/beautify");
beautiful.beautify();

@norzechowicz I would appreciate any suggestions :)

Hey @zhil I don't see any clean way to extend ace editor behavior this way except overriding the https://github.com/norzechowicz/aceeditor-bundle/blob/master/Resources/views/Form/div_layout.html.twig file and then overriding also norzechowicz_ace_editor.form.resource parameter https://github.com/norzechowicz/aceeditor-bundle/blob/master/Resources/config/form.xml
Let me know if that works!

@norzechowicz thanks for suggestion! Let me try to create PR with that changes?

Yeah go ahead, just please try to make it optional so if someone does not want to use ace.require this bundle will not try to force him


Not able to inspect the element

There is an user info icon which on mouse hovering displays email and pin but through the Inspector the element does not get recognized. However, when I expand it and inspect other elements I can very well do that. So I am stuck at a point where I can't move ahead without clicking the element which is giving hard time being recognized. Can anyone please help. Below is the screenshot of the icon when clicked manually.

And this is the icon on mouse hovering

This is recorded through UI recorder for the other element "Switch Location" which displays after the user icon is expanded.
"/Pane[@ClassName="#32769"][@Name="Desktop 1"]/Pane[@ClassName="Chrome_WidgetWin_1"][@Name="xyz"]/Document[@ClassName="Chrome_RenderWidgetHostHWND"][@Name="xyz"]/Custom/Custom[@AutomationId="window"]/Custom/Custom[@AutomationId="userInfo"]/Custom[@AutomationId="resetPinPopup"]/Custom[@AutomationId="switchRegion"]/Text[@Name="Switch Location"]"

Can you please elaborate? OCR? I need to click on this to go to the next element. Is this possible through OCR?

Click on what email and pin?

Yes. Because the flow needs the other elements to be clicked which can be
only done once email and pin is clicked
On Fri, 28 May 2021, 17:46 anunay1, @.***> wrote:

Click on what email and pin?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WinAppDriver/issues/1531#issuecomment-850151211,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOT2FLWXPW5CS7M263M5G43TP4UZ3ANCNFSM45TIFIKQ
.

You can use the actions class like below:
new Actions(session).moveToElement(element, 0, 0).moveByOffset(dx, dy).click().perform();

But how to get the location of the element.
On Fri, 28 May 2021, 19:25 anunay1, @.***> wrote:

You can use the actions class like below:
new Actions(session).moveToElement(element, 0, 0).moveByOffset(dx,
dy).click().perform();
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/microsoft/WinAppDriver/issues/1531#issuecomment-850209707,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOT2FLUKPMDIBBBAEJN2K5LTP5APJANCNFSM45TIFIKQ
.

You have have an automation id for userinfo. then what's the problem.

@sahaiswat Your c# code will be the next:
// find userInfo icon control
var element = session.FindElement(Locator for userInfo icon);

// it is x coordinates of text to click from the left top corner of userInfo icon - maybe you need to adjust the value if it will not work
var dx = -90;
 // it is y coordinates of text to click from the left top corner of userInfo icon - maybe you need to adjust the value if it will not work
var dy = -90;

// click by related coordinates
new Actions(session).moveToElement(element, 0, 0).moveByOffset(dx, dy).click().perform();

Thanks but this did not work.
An element could not be located on the page using the given search parameters.
Stack Trace:
RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary2 parameters)     AppiumDriver1.Execute(String driverCommandToExecute, Dictionary2 parameters)     RemoteWebDriver.FindElement(String mechanism, String value)     RemoteWebDriver.FindElementByXPath(String xpath)     AppiumDriver1.FindElementByXPath(String xpath)

Can you share the code?

public WindowsElement usericon => windriver.FindElementByXPath("//*[@AutomationId='userInfo']");
    public void ClickUserInfo()
    {

        Actions action = new Actions(windriver);

        var dx = -110;

        var dy = -110;

        action.MoveToElement(usericon,0,0).MoveByOffset(dx, dy).Click().Perform();

       }

The code is ok. Are you able to hover to the userinfo icon.
Also can you share the page source before hover and after hover.

@sahaiswat Looks like that your xpath is not correct "//*[@AutomationId='userInfo']" or need to switch to new window https://github.com/microsoft/WinAppDriver/issues/1528#issuecomment-848187395.
Could you save page source and check that icon control really presents (use driver.PageSource) and then check that xpath working using http://xpather.com/?
Also, is control available in Inspector.exe?

Can you also try with any other locator besides xpath?


[Epic] Container that exposes a port should be reachable on the host

(enhancement of the podman experience #1611)
If the user runs podman run -p 9090:80 -it nginx, he should be able to reach this container from his browser on the host.
On Linux, he can do it by finding the VM IP first.
On macOS and Windows, this is slightly more complicated due to the userland network stack. The redirection needs to be activated/deactivated dynamically.

With podman integration this is bit urgent.


New UI is uglier than it was in previous versions

It seems (in my totally subjective opinion) that the user interface looked better in older versions of Hermes. I'm not sure why, but the current version of Hermes does not seem to have a divider between the titlebar area and main app content below it. This, in my opinion, looked much better before. I'm not sure if this is a bug or a feature, but I can probably build custom versions on my own to fix this.
I was wondering if anyone else using the program agrees.
Here is a comparison between how it looked in older versions and how it looks now:

It's a feature.  I asked, and the small amount of feedback I got was supportive.  Feel free to make the change in your own version of course!
https://twitter.com/nriley/status/774216465415299073

Gotcha. No worries. Will do!


[1.11.x] KOGITO-5762 BDD: Cleanup crds (#990)

https://issues.redhat.com/browse/KOGITO-5762
cherry-pick: https://github.com/kiegroup/kogito-operator/pull/990
Many thanks for submitting your Pull Request :heart:!
Please make sure your PR meets the following requirements:

[x] You have read the contributors' guide
[x] Pull Request title is properly formatted: [KOGITO-XYZ] Subject
[x] Pull Request contains a link to the JIRA issue
[x] Pull Request contains a description of the issue
[ ] Pull Request does not include fixes for issues other than the main ticket
[ ] Your feature/bug fix has a unit test that verifies it
[ ] You've ran make before-pr and everything is working accordingly
[ ] You've tested the new feature/bug fix in an actual OpenShift cluster
[ ] You've added a RELEASE_NOTES.md entry regarding this change

/jenkins test

/jenkins test


Document report output customization for Gradle tasks

Doc update for #3687

Let's merge it once we have 1.19.0 out.

Just a reminder - this needs a review and should be merged when 1.19.0 is released (it was removed from the 1.19 milestone so just want to make sure it's not forgotten)


Suppress all warnings that appear >100 times in windows cmake build.

Nice, thanks!

We will see right now, after the above tests run :)

Roughly:

build 134 (which includes other commits), 33MB, 107k lines
build 139, 3.7MB, 21k lines

That's a nice improvement :). It looks like there's a lot of other chaff arising from an unknown compiler option - looking at the vcxproj files it seems as if two of the flags are being concatted together... I'll see what I can do in another PR.

ah, I need to resolve conflicts now.
Will do that


Vote Crate (Didn't get the Item)

Didn't get my reward from the vote crate.

what is your ign

@KoreanNino  Did you get refunded? I see you were asked for an ign earlier but I'm unaware if anyone else has reached out to you about this yet.

It says it right there on the chat, 'KoreanNino'

No, I haven't gotten refunded for the key yet.

Just refunded.


Explore narrowing unchanged singleton lists

This would help reduce the maximum nesting that we encounter.

I.e. if a list occurs once on both LHS and RHS, we could treat it as an atom rather than exploring incrementally.


Error when Running yarn install

Hi,
I'm following your theia-extension Readme and trying to make it work in my PC.
So far, I have succeeded in cloning the repo and building the shadowJar. However, when I go back to the root directory (theia-xtext folder) and execute yarn install as you have mentioned in the Readme, I get the following output in my command line: -

yarn install v1.12.3
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["rimraf@latest"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-rimraf-2.6.2-2ed8150d24a16ea8651e6d6ef0f47c4158ce7a36\\node_modules\\rimraf" as pattern ["rimraf@^2.6.1","rimraf@^2.2.8","rimraf@^2.2.8","rimraf@^2.5.4","rimraf@2","rimraf@^2.6.1","rimraf@^2.6.2","rimraf@2","rimraf@^2.5.4","rimraf@^2.5.4","rimraf<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/editor@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-editor-0.4.0-next.d11a5b63-dc05a824886d230f003b180142ca0d904dab19ab\\node_modules\\@theia\\editor" as pattern ["@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","@theia/editor@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/filesystem@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-filesystem-0.4.0-next.d11a5b63-89dfc682f5c9db8db52388a638a02676e9338cec\\node_modules\\@theia\\filesystem" as pattern ["@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","@theia/filesystem@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/markers@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-markers-0.4.0-next.d11a5b63-134b1fb6f79fe604fd96901f9e8847c9887d077a\\node_modules\\@theia\\markers" as pattern ["@theia/markers@0.4.0-next.d11a5b63","@theia/markers@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/monaco@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-monaco-0.4.0-next.d11a5b63-2b1dc600c0f792123c11d2bf989889006fcdce04\\node_modules\\@theia\\monaco" as pattern ["@theia/monaco@0.4.0-next.d11a5b63","@theia/monaco@0.4.0-next.d11a5b63","@theia/monaco@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/navigator@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-navigator-0.4.0-next.d11a5b63-3280ab0fbbb795217d680c902b5477936769d065\\node_modules\\@theia\\navigator" as pattern ["@theia/navigator@0.4.0-next.d11a5b63","@theia/navigator@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/outline-view@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-outline-view-0.4.0-next.d11a5b63-56d1c8990b5b8a15752776c6d5a290b896272711\\node_modules\\@theia\\outline-view" as pattern ["@theia/outline-view@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/output@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-output-0.4.0-next.d11a5b63-b4a8e1a6c921debe907e7cb3f2442cc2537e99a6\\node_modules\\@theia\\output" as pattern ["@theia/output@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/preferences@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-preferences-0.4.0-next.d11a5b63-6a89f37b72f51d89dcf85578b1185a6c92f00b5b\\node_modules\\@theia\\preferences" as pattern ["<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/process@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-process-0.4.0-next.d11a5b63-6f657eabb0136399e62bd6701b2151c2ce3a7c7d\\node_modules\\@theia\\process" as pattern ["@theia/process@0.4.0-next.d11a5b63","@theia/process@0.4.0-next.d11a5b63","@theia/process@0.4.0-next.d11a5b63","@theia/process@0.4.0-next.d11a5b63","@theia/process@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/terminal@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-terminal-0.4.0-next.d11a5b63-57db0260383bb4585aa408353ced636e10f4f89e\\node_modules\\@theia\\terminal" as pattern ["<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/userstorage@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-userstorage-0.4.0-next.d11a5b63-a9d8b3d8d597d0fb044ae0c7e3ea53f1c0263851\\node_modules\\@theia\\userstorage" as pattern ["@theia/userstorage@0.4.0-next.d11a5b63","@theia/userstorage@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning Pattern ["@theia/workspace@next"] is trying to unpack in the same destination "C:\\Users\\shjslk\\AppData\\Local\\Yarn\\Cache\\v4\\npm-@theia-workspace-0.4.0-next.d11a5b63-4bf1d242b8d88d0a540dc446fcfd5c301daf7da8\\node_modules\\@theia\\workspace" as pattern ["@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","@theia/workspace@0.4.0-next.d11a5b63","<EMAIL_ADDRESS>This could result in non-deterministic behavior, skipping.
warning<EMAIL_ADDRESS>The engine "vscode" appears to be invalid.
info<EMAIL_ADDRESS>The platform "win32" is incompatible with this module.
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "workspace-aggregator-2abbf8c4-aeef-472d-b672-98b20587b580 > browser-app > @theia/cli > @theia/application-manager ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>[4/4] Building fresh packages...
$ lerna run prepare
lerna info version 2.4.0
@theia/xtext-dsl-extension: ><EMAIL_ADDRESS>prepare D:\THEIA\theia-xtext\xtext-dsl-extension
@theia/xtext-dsl-extension: > yarn run clean && yarn run build
@theia/xtext-dsl-extension: yarn run v1.12.3
@theia/xtext-dsl-extension: warning package.json: No license field
@theia/xtext-dsl-extension: $ rimraf lib
@theia/xtext-dsl-extension: Done in 0.36s.
@theia/xtext-dsl-extension: yarn run v1.12.3
@theia/xtext-dsl-extension: warning package.json: No license field
@theia/xtext-dsl-extension: $ tsc && yarn run copy-ls
@theia/xtext-dsl-extension: warning package.json: No license field
@theia/xtext-dsl-extension: $ rm -rf ./build && mkdir build && cp ../xtext-dsl-language-server/io.typefox.xtext.langserver.example.ide/build/libs/dsl-language-server.jar ./build
@theia/xtext-dsl-extension: 'rm' is not recognized as an internal or external command,
@theia/xtext-dsl-extension: operable program or batch file.
@theia/xtext-dsl-extension: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@theia/xtext-dsl-extension: error Command failed with exit code 1.
@theia/xtext-dsl-extension: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@theia/xtext-dsl-extension: error Command failed with exit code 1.
@theia/xtext-dsl-extension: npm ERR! code ELIFECYCLE
@theia/xtext-dsl-extension: npm ERR! errno 1
@theia/xtext-dsl-extension: npm ERR<EMAIL_ADDRESS>prepare: `yarn run clean && yarn run build`
@theia/xtext-dsl-extension: npm ERR! Exit status 1
@theia/xtext-dsl-extension: npm ERR!
@theia/xtext-dsl-extension: npm ERR! Failed at the<EMAIL_ADDRESS>prepare script.
@theia/xtext-dsl-extension: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@theia/xtext-dsl-extension: npm ERR!      C:\Users\shjslk\AppData\Roaming\npm-cache\_logs\2018-11-21T05_47_31_867Z-debug.log
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm run prepare
lerna ERR! warning package.json: No license field
lerna ERR! warning package.json: No license field
lerna ERR! warning package.json: No license field
lerna ERR! 'rm' is not recognized as an internal or external command,
lerna ERR! operable program or batch file.
lerna ERR! error Command failed with exit code 1.
lerna ERR! error Command failed with exit code 1.
lerna ERR! npm ERR! code ELIFECYCLE
lerna ERR! npm ERR! errno 1
lerna ERR! npm ERR<EMAIL_ADDRESS>prepare: `yarn run clean && yarn run build`
lerna ERR! npm ERR! Exit status 1
lerna ERR! npm ERR!
lerna ERR! npm ERR! Failed at the<EMAIL_ADDRESS>prepare script.
lerna ERR! npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
lerna ERR!
lerna ERR! npm ERR!      C:\Users\shjslk\AppData\Roaming\npm-cache\_logs\2018-11-21T05_47_31_867Z-debug.log
lerna ERR!
lerna ERR!
lerna ERR! ><EMAIL_ADDRESS>prepare D:\THEIA\theia-xtext\xtext-dsl-extension
lerna ERR! > yarn run clean && yarn run build
lerna ERR!
lerna ERR! yarn run v1.12.3
lerna ERR! $ rimraf lib
lerna ERR! Done in 0.36s.
lerna ERR! yarn run v1.12.3
lerna ERR! $ tsc && yarn run copy-ls
lerna ERR! $ rm -rf ./build && mkdir build && cp ../xtext-dsl-language-server/io.typefox.xtext.langserver.example.ide/build/libs/dsl-language-server.jar ./build
lerna ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
lerna ERR!
lerna ERR!     at Promise.all.then.arr (D:\THEIA\theia-xtext\node_modules\execa\index.js:236:11)
lerna ERR!     at <anonymous>
(node:12084) UnhandledPromiseRejectionWarning: Error: Command failed: npm run prepare
warning package.json: No license field
warning package.json: No license field
warning package.json: No license field
'rm' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
error Command failed with exit code 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>prepare: `yarn run clean && yarn run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!      C:\Users\shjslk\AppData\Roaming\npm-cache\_logs\2018-11-21T05_47_31_867Z-debug.log

><EMAIL_ADDRESS>prepare D:\THEIA\theia-xtext\xtext-dsl-extension
> yarn run clean && yarn run build

yarn run v1.12.3
$ rimraf lib
Done in 0.36s.
yarn run v1.12.3
$ tsc && yarn run copy-ls
$ rm -rf ./build && mkdir build && cp ../xtext-dsl-language-server/io.typefox.xtext.langserver.example.ide/build/libs/dsl-language-server.jar ./build
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

    at Promise.all.then.arr (D:\THEIA\theia-xtext\node_modules\execa\index.js:236:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
(node:12084) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)
(node:12084) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Why do I get this error? How do I correct it? I would really appreciate it if you could let me know.
Thank You!

For the record:
lerna ERR! 'rm' is not recognized as an internal or external command,

This line
https://github.com/theia-ide/theia-xtext/blob/99847e5cb7bb6f0d01452e67a8b387f5646bb5f1/xtext-dsl-extension/package.json#L21
rm should be changed to rimraf. Otherwise, people on Windows cannot use the example.

Thank You @kittaakos!
@svenefftinge  I've been making changes to the project in order to run it locally. The changes made were as suggested by @kittakos in this issue.
I get the below output now. Could you kindly help me correct it?

$ yarn install
yarn install v1.12.3
[1/4] Resolving packages...
success Already up-to-date.
$ lerna run prepare
lerna info version 2.4.0
@theia/xtext-dsl-extension: ><EMAIL_ADDRESS>prepare D:\THEIA\
theia-xtext\xtext-dsl-extension
@theia/xtext-dsl-extension: > yarn run clean && yarn run build
@theia/xtext-dsl-extension: yarn run v1.12.3
@theia/xtext-dsl-extension: warning package.json: No license field
@theia/xtext-dsl-extension: $ rimraf lib
@theia/xtext-dsl-extension: Done in 0.28s.
@theia/xtext-dsl-extension: yarn run v1.12.3
@theia/xtext-dsl-extension: warning package.json: No license field
@theia/xtext-dsl-extension: $ tsc && yarn run copy-ls
@theia/xtext-dsl-extension: src/browser/language-contribution.ts(30,12): error T
S2339: Property 'languages' does not exist on type 'typeof monaco'.
@theia/xtext-dsl-extension: src/browser/language-contribution.ts(36,12): error T
S2339: Property 'languages' does not exist on type 'typeof monaco'.
@theia/xtext-dsl-extension: src/browser/language-contribution.ts(52,12): error T
S2339: Property 'languages' does not exist on type 'typeof monaco'.
@theia/xtext-dsl-extension: info Visit https://yarnpkg.com/en/docs/cli/run for d
ocumentation about this command.
@theia/xtext-dsl-extension: error Command failed with exit code 2.
@theia/xtext-dsl-extension: npm ERR! code ELIFECYCLE
@theia/xtext-dsl-extension: npm ERR! errno 1
@theia/xtext-dsl-extension: npm ERR<EMAIL_ADDRESS>prepare: `
yarn run clean && yarn run build`
@theia/xtext-dsl-extension: npm ERR! Exit status 1
@theia/xtext-dsl-extension: npm ERR!
@theia/xtext-dsl-extension: npm ERR! Failed at the @theia/xtext-dsl-extension@0.
1.0 prepare script.
@theia/xtext-dsl-extension: npm ERR! This is probably not a problem with npm. Th
ere is likely additional logging output above.
@theia/xtext-dsl-extension: npm ERR!      C:\Users\shjslk\AppData\Roaming\npm-cac
he\_logs\2018-11-21T09_31_50_614Z-debug.log
lerna ERR! execute callback with error
lerna ERR! Error: Command failed: npm run prepare
lerna ERR! warning package.json: No license field
lerna ERR! warning package.json: No license field
lerna ERR! error Command failed with exit code 2.
lerna ERR! npm ERR! code ELIFECYCLE
lerna ERR! npm ERR! errno 1
lerna ERR! npm ERR<EMAIL_ADDRESS>prepare: `yarn run clean &&
 yarn run build`
lerna ERR! npm ERR! Exit status 1
lerna ERR! npm ERR!
lerna ERR! npm ERR! Failed at the<EMAIL_ADDRESS>prepare scrip
t.
lerna ERR! npm ERR! This is probably not a problem with npm. There is likely add
itional logging output above.
lerna ERR!
lerna ERR! npm ERR!      C:\Users\shjslk\AppData\Roaming\npm-cache\_logs\2018-11-
21T09_31_50_614Z-debug.log
lerna ERR!
lerna ERR!
lerna ERR! ><EMAIL_ADDRESS>prepare D:\THEIA\theia-xtext\xtext
-dsl-extension
lerna ERR! > yarn run clean && yarn run build
lerna ERR!
lerna ERR! yarn run v1.12.3
lerna ERR! $ rimraf lib
lerna ERR! Done in 0.28s.
lerna ERR! yarn run v1.12.3
lerna ERR! $ tsc && yarn run copy-ls
lerna ERR! src/browser/language-contribution.ts(30,12): error TS2339: Property '
languages' does not exist on type 'typeof monaco'.
lerna ERR! src/browser/language-contribution.ts(36,12): error TS2339: Property '
languages' does not exist on type 'typeof monaco'.
lerna ERR! src/browser/language-contribution.ts(52,12): error TS2339: Property '
languages' does not exist on type 'typeof monaco'.
lerna ERR! info Visit https://yarnpkg.com/en/docs/cli/run for documentation abou
t this command.
lerna ERR!
lerna ERR!     at Promise.all.then.arr (D:\THEIA\theia-xtext\node_modules\execa\
index.js:236:11)
lerna ERR!     at <anonymous>
(node:5572) UnhandledPromiseRejectionWarning: Error: Command failed: npm run pre
pare
warning package.json: No license field
warning package.json: No license field
error Command failed with exit code 2.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>prepare: `yarn run clean && yarn run b
uild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>prepare script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.

npm ERR!      C:\Users\shjslk\AppData\Roaming\npm-cache\_logs\2018-11-21T09_31_50
_614Z-debug.log

><EMAIL_ADDRESS>prepare D:\THEIA\theia-xtext\xtext-dsl-extens
ion
> yarn run clean && yarn run build

yarn run v1.12.3
$ rimraf lib
Done in 0.28s.
yarn run v1.12.3
$ tsc && yarn run copy-ls
src/browser/language-contribution.ts(30,12): error TS2339: Property 'languages'
does not exist on type 'typeof monaco'.
src/browser/language-contribution.ts(36,12): error TS2339: Property 'languages'
does not exist on type 'typeof monaco'.
src/browser/language-contribution.ts(52,12): error TS2339: Property 'languages'
does not exist on type 'typeof monaco'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.

    at Promise.all.then.arr (D:\THEIA\theia-xtext\node_modules\execa\index.js:23
6:11)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
(node:5572) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function without a catch
block, or by rejecting a promise which was not handled with .catch(). (rejection
 id: 4)
(node:5572) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
 Node.js process with a non-zero exit code.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this
command.

merged

remerged


change accessToken to idToken, add audience param for jwt_decode, add…

utilize idToken (JWT) rather than accessToken as auth provider was failing to decode accessToken when calling jwt_decode()
add DISPATCH_CLIENT_ID which is needed for the audience attribute in jwt.decode according to docs: https://python-jose.readthedocs.io/en/latest/jwt/api.html

audience (str) – The intended audience of the token. If the “aud” claim is included in the claim set, then the audience must be included and must equal the provided claim.

Thanks for the PR! Are you using Auth0? I need to look at this closely because it seems the PCKE "standard" seems to leave a lot up to the implementation. My hope is that largely just naming that differs.

@kevgliss I went with Auth0 to get the project up and running. According to RFC-7519 spec:

The "aud" (audience) claim identifies the recipients that the JWT is
intended for.  Each principal intended to process the JWT MUST
identify itself with a value in the audience claim.  If the principal
processing the claim does not identify itself with a value in the
"aud" claim when this claim is present, then the JWT MUST be
rejected.

This is the error I was encountering as the Auth0 JWKS returned a JWT that contained an aud claim (which is ultimately the client id), but since it was not provided when attempting to decode said JWT token it was rejected.

Took a look at this, according to https://auth0.com/docs/tokens we do not want to use idToken and instead of us accessTokens.

ID Tokens should not be used to gain access to an API. Each token contains information for the intended audience (which is usually the recipient).

Access Tokens (which aren't always JWTs) are used to inform an API that the bearer of the token has been authorized to access the API and perform a predetermined set of actions (specified by the scopes granted).

From there server's perspective, we only want to deal with access tokens, letting the client and the provider do the appropriate handshakes in order to provide a valid access token.


EV batteries should be described by a profile

The EV battery is only connected if the car is at home. Moreover, the availability of the battery for discharging (and demand shifting) is related to when the car is expected to drive.
In the following example, an EV is used for driving from 8AM to 6PM. The rest of the day, it is connected to the loading system. The user has specified that the battery should at least contain 25% of its charge for emergency drives. Also, the battery need not to be filled more than 75% at the time of departure as this is more than sufficient for the commute.
We could describe the above scenario with a curve that describes for every 15 minute interval of the year which percentage of the EV battery should be filled:

The remainder of the battery can be used as 'flexibility' to stabilise the network or store/deliver electricity from solar PV.
The logic for the EV 'object' could be that it checks for each time step if the EV is charged at least as far as prescribed by the profile. If not, it will charge regardless of external stimuli (perhaps even breaking the network). If yes, the remaining portion of the battery is available for storing/delivering excess (or other) electricity.

@antw @dennisschoenmakers let me know if this is not a faithful description of our ideas as discussed earlier today.
Including @jorisberkhout @AlexanderWirtz to check that this approach makes sense to them as well.

After some discussion with @jorisberkhout I suggest to code two things in the same profile:

what fraction of the battery should be filled / charged (positive values between 0 and 1)
if the battery is connected to the network (-1 if not connected)

This would result in profiles like this:

This approach has some advantages:

No need for multiple profiles (less chance of combining incompatible profiles etc.)
Easy to interpret
Fixed format: values are always between -1 and 1 (this would not be the case if we put the kWh's of electricity in the battery in the profile)

if the battery is connected to the network (-1 if not connected)

That's a nice solution; I like that. :smiley:

A first iteration of these profiles are available on the Dropbox (see https://github.com/quintel/etdataset/issues/597).

That's a nice solution; I like that. :smiley:

Now I know why that sounded so familiar!

This has been implemented as of last Friday, and an example sceanrio published.
The scenario shows a producer providing a constant 2.5 kWh to the network, and an electric vehicle whose battery can store 10 kWh. In the first four frames (time-steps), the EV profile specifies that the minimum load is 25% → 50% → 75% → 100%. The load drawn by the EV is therefore 2.5 in each of those four time steps (minimum load increases by 0.25 in each frame, 0.25 * 10 = 2.5).
The car is disconnected for two frames (time-steps 4 and 5) and then reconnects. In the final two frames (6 and 7) the EV minimum load is 50% → 100%. The producer can only satisfy half of this demand, so the rest is pulled from the grid.
Here's how the two technologies look from above: (the line smoothing makes this harder to read than it should be, see #72)

--
I had a thought: if the car is disconnected while storing more energy than the minimum load profile specifies, what should happen to the excess? For example, in the chart above, imagine the car is disconnected at 08:00 100% charged, instead of 75%.
Currently, when the car reconnects, it does so with zero energy stored. It is assumes that the full amount stored is used up during the disconnection.
My view is the curve describes the amount of energy required to satisfy the needs of the car during the next period of disconnection. Therefore, any excess should be restored when the car is reconnected. In my example, the car would reconnect with 25% stored, 75% having been used during the disconnection.

This has been implemented as of last Friday, and an example sceanrio published.

:+1: Super!

It is assumes that the full amount stored is used up during the disconnection.

Well spotted @antw! I have been thinking about this for a while now. I think for now we could assume that it always returns empty (easiest). But in the future it could be nice if the car still carries the extra charge when it is reconnected. @antw any idea how difficult that would be to implement?

But in the future it could be nice if the car still carries the extra charge when it is reconnected. @antw any idea how difficult that would be to implement?

There would be a (small?) performance penalty in having to detect the reconnection and work out how much would still be stored at that moment-in-time, but it wouldn't be difficult to implement.

My view is the curve describes the amount of energy required to satisfy the needs of the car during the next period of disconnection. Therefore, any excess should be restored when the car is reconnected. In my example, the car would reconnect with 25% stored, 75% having been used during the disconnection.

Good point, @antw. Like you say, the curve already (implicitly) contains information on the energy required to satisfy the needs of the car during the next period of disconnection. I have made this more explicit in a next iteration of the curves (see https://github.com/quintel/etdataset/issues/597#issuecomment-97725610). Let me know if this is useful.

Closing.