In the image upload using FileReader, change the value of VM, the file will become empty

code:
template:

js:
data(){
return {
test:''
}
},
onFileChange(event){
let files = event.target.files
let reader = new FileReader()
reader.onload = (event)=>{
let img = new Image()
img.onload = () => {
console.log(files[0]) //has file
}
}
reader.readAsDataURL(files[0])
}
but:
onFileChange(event){
let files = event.target.files
let reader = new FileReader()
this.test = 'test val'
reader.onload = (event)=>{
let img = new Image()
img.onload = () => {
console.log(files[0]) //undefined
}
}
reader.readAsDataURL(files[0])
}

"vue": "^2.1.4"

Please follow the guidelines on how to report an issue. In particular, provide an example on www.jsfiddle.net (or a similar service) that reproduces the problem. If nessessary, create a repository for us to clone with a minimal reproduction. repositories of actual projects will generally not be accepted .
Thank you.

https://jsfiddle.net/u5gddcah/

https://jsfiddle.net/u5gddcah/1/

https://jsfiddle.net/u5gddcah/2/

Thank you,  I found the wrong

You have a value binding to null, which is not needed for <input type="file">. This is expected behavior. Just remove the value binding and it works properly.


Eliminate reshapes around softmax

In SDXL unet parsed by torch_migraphx there are unnecessary reshape ops around the softmax op preventing it from matching for mlir attention.
Ex.
@392 = dot(@389,@391) -> half_type, {20, 4096, 4096}, {16777216, 4096, 1}, target_id=0
@393 = reshape[dims={2, 10, 4096, 4096}](@392) -> half_type, {2, 10, 4096, 4096}, {167772160, 16777216, 4096, 1}, target_id=0
@394 = softmax[axis=3](@393) -> half_type, {2, 10, 4096, 4096}, {167772160, 16777216, 4096, 1}, target_id=0
@395 = reshape[dims={20, 4096, 4096}](@394) -> half_type, {20, 4096, 4096}, {16777216, 4096, 1}, target_id=0
@396 = dot(@395,@387) -> half_type, {20, 4096, 64}, {262144, 64, 1}, target_id=0

With this matcher, the optimize_module pass simplifies this to:
@389 = dot(@386,@388) -> half_type, {20, 4096, 4096}, {16777216, 4096, 1}, target_id=0
@390 = softmax[axis=2](@389) -> half_type, {20, 4096, 4096}, {16777216, 4096, 1}, target_id=0
@391 = dot(@390,@384) -> half_type, {20, 4096, 64}, {262144, 64, 1}, target_id=0

This is the first part to enabling mlir attention for the unet in the torch migraphx workflow. The prefuse ops matcher needs a small update as well (PR #2748 ).

Can you show more of the graph? Are there reshapes on the inputs to the dot operator? Because it looks like its collapsing the batch dimensions, so maybe we could rewrite all dot operators to remove these extra reshapes around dot.

Can you show more of the graph? Are there reshapes on the inputs to the dot operator? Because it looks like its collapsing the batch dimensions, so maybe we could rewrite all dot operators to remove these extra reshapes around dot(instead of softmax).

You're right, its doing exactly that
@321 = mul(@318,@320) -> half_type, {2, 10, 4096, 64}, {2621440, 64, 640, 1}, target_id=0
@322 = transpose[permutation={0, 2, 3, 1}](@316) -> half_type, {2, 10, 64, 4096}, {2621440, 64, 1, 640}, target_id=0
@323 = multibroadcast[out_lens={2, 10, 64, 4096},out_dyn_dims={}](@22) -> half_type, {2, 10, 64, 4096}, {0, 0, 0, 0}, target_id=0
@324 = mul(@322,@323) -> half_type, {2, 10, 64, 4096}, {2621440, 64, 1, 640}, target_id=0
@325 = contiguous(@319) -> half_type, {2, 10, 4096, 64}, {2621440, 262144, 64, 1}, target_id=0
@326 = reshape[dims={20, 4096, 64}](@325) -> half_type, {20, 4096, 64}, {262144, 64, 1}, target_id=0
@327 = contiguous(@321) -> half_type, {2, 10, 4096, 64}, {2621440, 262144, 64, 1}, target_id=0
@328 = reshape[dims={20, 4096, 64}](@327) -> half_type, {20, 4096, 64}, {262144, 64, 1}, target_id=0
@329 = contiguous(@324) -> half_type, {2, 10, 64, 4096}, {2621440, 262144, 4096, 1}, target_id=0
@330 = reshape[dims={20, 64, 4096}](@329) -> half_type, {20, 64, 4096}, {262144, 4096, 1}, target_id=0
@331 = dot(@328,@330) -> half_type, {20, 4096, 4096}, {16777216, 4096, 1}, target_id=0
@332 = reshape[dims={2, 10, 4096, 4096}](@331) -> half_type, {2, 10, 4096, 4096}, {167772160, 16777216, 4096, 1}, target_id=0
@333 = softmax[axis=3](@332) -> half_type, {2, 10, 4096, 4096}, {167772160, 16777216, 4096, 1}, target_id=0
@334 = reshape[dims={20, 4096, 4096}](@333) -> half_type, {20, 4096, 4096}, {16777216, 4096, 1}, target_id=0
@335 = dot(@334,@326) -> half_type, {20, 4096, 64}, {262144, 64, 1}, target_id=0
@336 = reshape[dims={2, 10, 4096, 64}](@335) -> half_type, {2, 10, 4096, 64}, {2621440, 262144, 64, 1}, target_id=0

So the idea is that we should leave all the shapes as {2, 10, 64, 4096} in this case right?
I think we can toss this PR, I'll implement a matcher around the dot operator and make a new one.


fix: empty LSN handling in instance sorting

receivedLSN is empty for instances that have been never attached to streaming replication.
The instance sorting code considers this an error, and the Less implementation for LSNs is not antisymmetric, resulting in a non-stable sorting.
This could result in the operator preferring a replica that is never attached to streaming replication over a replica that is more advanced but attached to streaming replication.
Closes: #4284

E2e tests: https://github.com/EnterpriseDB/cloudnative-pg/actions/runs/8689767885

/ok-to-merge


Subread and cutadapt working as Single-end reads BUT I have Paired end reads

Describe the bug
Hi, I have a Paired end reads and run the Analysis, it is working and the analysis finished but the output from the job looks like this:
[2023-09-18 20:22:30] started job on cnd22
This is cutadapt 3.7 with Python 3.11.0
Command line parameters: -a polyA=A{18} -j 8 -m 20 --nextseq-trim=20 --overlap 10 --json .//Sample_61_1/01.prep_map/Sample_61_1_cutadapt.json -o .//Sample_61_1/01.prep_map/Sample_61_1_ct2.FIFO .//C                                                NAG_61_1/01.prep_map/Sample_61_1_bc2.FIFO
Sep 18 20:22:55 ..... started STAR run
Sep 18 20:22:55 ..... loading genome
Processing reads on 8 cores in single-end mode ...
Sep 18 20:29:56 ..... started mapping
Finished in 13116.23 s (71 µs/read; 0.84 M reads/minute).

=== Summary ===

Total reads processed:             184,659,754
Reads with adapters:                18,918,659 (10.2%)

== Read fate breakdown ==
Reads that were too short:           2,847,809 (1.5%)
Reads written (passing filters):   181,811,945 (98.5%)

Total basepairs processed: 27,883,622,854 bp
Quality-trimmed:             444,255,550 bp (1.6%)
Total written (filtered):  26,351,946,868 bp (94.5%)

=== Adapter polyA ===

Sequence: AAAAAAAAAAAAAAAAAA; Type: regular 3'; Length: 18; Trimmed: 18918659 times

Minimum overlap: 10
No. of allowed errors:
1-9 bp: 0; 10-18 bp: 1

Bases preceding removed adapters:
  A: 0.0%
  C: 36.2%
  G: 28.0%
  T: 32.4%
  none/other: 3.3%

Overview of removed sequences
length  count   expect  max.err error counts
9       10      704.4   0       0 10
10      517717  176.1   1<PHONE_NUMBER>00
11      304018  44.0    1<PHONE_NUMBER>43
12      283249  11.0    1<PHONE_NUMBER>0
13      262901  2.8     1<PHONE_NUMBER>1
14      265188  0.7     1<PHONE_NUMBER>0
15      259464  0.2     1<PHONE_NUMBER>5
16      243957  0.0     1<PHONE_NUMBER>8
17      308005  0.0     1<PHONE_NUMBER>4
18      305998  0.0     1<PHONE_NUMBER>8
19      254865  0.0     1<PHONE_NUMBER>1
20      246792  0.0     1<PHONE_NUMBER>4
21      244685  0.0     1<PHONE_NUMBER>7
22      253005  0.0     1<PHONE_NUMBER>0
23      231420  0.0     1<PHONE_NUMBER>7
24      230055  0.0     1<PHONE_NUMBER>6
25      228951  0.0     1<PHONE_NUMBER>0
26      229941  0.0     1<PHONE_NUMBER>3
27      233747  0.0     1<PHONE_NUMBER>8
28      234700  0.0     1<PHONE_NUMBER>9
29      220444  0.0     1<PHONE_NUMBER>1
30      225177  0.0     1<PHONE_NUMBER>2
31      211526  0.0     1<PHONE_NUMBER>7
32      214492  0.0     1<PHONE_NUMBER>8
33      208113  0.0     1<PHONE_NUMBER>2
34      206794  0.0     1<PHONE_NUMBER>7
35      209314  0.0     1<PHONE_NUMBER>9
36      211980  0.0     1<PHONE_NUMBER>3
37      205481  0.0     1<PHONE_NUMBER>
38      210830  0.0     1<PHONE_NUMBER>
39      209803  0.0     1<PHONE_NUMBER>
40      206090  0.0     1<PHONE_NUMBER>
41      205019  0.0     1<PHONE_NUMBER>
42      205028  0.0     1<PHONE_NUMBER>
43      202422  0.0     1<PHONE_NUMBER>
44      205056  0.0     1<PHONE_NUMBER>
45      194586  0.0     1<PHONE_NUMBER>
46      201689  0.0     1<PHONE_NUMBER>
47      201926  0.0     1<PHONE_NUMBER>
48      197043  0.0     1<PHONE_NUMBER>
49      196355  0.0     1<PHONE_NUMBER>
50      194592  0.0     1<PHONE_NUMBER>
51      191274  0.0     1<PHONE_NUMBER>
52      188547  0.0     1<PHONE_NUMBER>
53      188865  0.0     1<PHONE_NUMBER>
54      188712  0.0     1<PHONE_NUMBER>
55      181224  0.0     1<PHONE_NUMBER>
56      179210  0.0     1<PHONE_NUMBER>
57      180866  0.0     1<PHONE_NUMBER>
58      177193  0.0     1<PHONE_NUMBER>
59      170054  0.0     1<PHONE_NUMBER>
60      173613  0.0     1<PHONE_NUMBER>
61      165363  0.0     1<PHONE_NUMBER>
62      163250  0.0     1<PHONE_NUMBER>
63      161155  0.0     1<PHONE_NUMBER>
64      161480  0.0     1<PHONE_NUMBER>
65      161893  0.0     1<PHONE_NUMBER>
66      153574  0.0     1<PHONE_NUMBER>
67      151518  0.0     1<PHONE_NUMBER>
68      148780  0.0     1<PHONE_NUMBER>
69      148383  0.0     1<PHONE_NUMBER>
70      150129  0.0     1<PHONE_NUMBER>
71      147304  0.0     1<PHONE_NUMBER>
72      139829  0.0     1<PHONE_NUMBER>
73      136049  0.0     1<PHONE_NUMBER>
74      132149  0.0     1<PHONE_NUMBER>
75      136068  0.0     1<PHONE_NUMBER>
76      127073  0.0     1<PHONE_NUMBER>
77      121858  0.0     1<PHONE_NUMBER>
78      120923  0.0     1<PHONE_NUMBER>
79      122074  0.0     1<PHONE_NUMBER>
80      119286  0.0     1<PHONE_NUMBER>
81      114663  0.0     1<PHONE_NUMBER>
82      110632  0.0     1<PHONE_NUMBER>
83      110964  0.0     1<PHONE_NUMBER>
84      107549  0.0     1<PHONE_NUMBER>
85      107781  0.0     1<PHONE_NUMBER>
86      105902  0.0     1<PHONE_NUMBER>
87      103282  0.0     1<PHONE_NUMBER>
88      100748  0.0     1       97950 2798
89      100477  0.0     1       97567 2910
90      99183   0.0     1       96317 2866
91      99976   0.0     1       96824 3152
92      99037   0.0     1       96377 2660
93      92963   0.0     1       89691 3272
94      92750   0.0     1       89747 3003
95      91171   0.0     1       87992 3179
96      86348   0.0     1       83865 2483
97      83362   0.0     1       81012 2350
98      81222   0.0     1       78231 2991
99      83183   0.0     1       79989 3194
100     82015   0.0     1       79641 2374
101     78456   0.0     1       75905 2551
102     74701   0.0     1       72330 2371
103     77124   0.0     1       73998 3126
104     70341   0.0     1       67865 2476
105     70134   0.0     1       67729 2405
106     69577   0.0     1       66411 3166
107     65472   0.0     1       63165 2307
108     65461   0.0     1       63083 2378
109     62990   0.0     1       60878 2112
110     63160   0.0     1       60775 2385
111     63201   0.0     1       60654 2547
112     60084   0.0     1       58008 2076
113     59695   0.0     1       57883 1812
114     59491   0.0     1       57572 1919
115     61037   0.0     1       58644 2393
116     60751   0.0     1       58178 2573
117     60009   0.0     1       57255 2754
118     58885   0.0     1       56623 2262
119     57744   0.0     1       55523 2221
120     60774   0.0     1       58866 1908
121     45515   0.0     1       43567 1948
122     41845   0.0     1       39912 1933
123     40868   0.0     1       38948 1920
124     41013   0.0     1       38827 2186
125     40728   0.0     1       38730 1998
126     42023   0.0     1       39834 2189
127     41344   0.0     1       39021 2323
128     41129   0.0     1       38801 2328
129     41863   0.0     1       39405 2458
130     41025   0.0     1       38231 2794
131     39249   0.0     1       37094 2155
132     36322   0.0     1       34295 2027
133     35634   0.0     1       33543 2091
134     33615   0.0     1       31644 1971
135     30613   0.0     1       28625 1988
136     30484   0.0     1       28550 1934
137     30175   0.0     1       28143 2032
138     31347   0.0     1       29369 1978
139     33493   0.0     1       31190 2303
140     36774   0.0     1       34136 2638
141     37158   0.0     1       34209 2949
142     36100   0.0     1       33735 2365
143     33483   0.0     1       31149 2334
144     36191   0.0     1       34233 1958
145     41501   0.0     1       39033 2468
146     47419   0.0     1       44641 2778
147     54198   0.0     1       51620 2578
148     53832   0.0     1       50648 3184
149     43291   0.0     1       40350 2941
150     48441   0.0     1       45141 3300
151     109567  0.0     1<PHONE_NUMBER>
Sep 19 00:01:51 ..... finished successfully

        ==========     _____ _    _ ____  _____  ______          _____
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
          v2.0.1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 1 BAM file                                       ||
||                           o Sample_61_1_Aligned.out.bam                      ||
||                                                                            ||
||             Output file : Sample_61_1                                        ||
||                 Summary : Sample_61_1.summary                                ||
||              Annotation : Homo_sapiens.GRCh38.99.gtf (GTF)                 ||
||      Dir for temp files : .//Sample_61_1/02.featureCounts/tmp//exon          ||
||      Assignment details : <input_file>.featureCounts.bam                   ||
||                      (Note that files are saved to the output directory)   ||
||                                                                            ||
||                                                                            ||
||                 Threads : 8                                                ||
||                   Level : meta-feature level                               ||
||              Paired-end : no                                               ||
||      Multimapping reads : counted                                          ||
|| Multi-overlapping reads : not counted                                      ||
||   Min overlapping bases : 1                                                ||
||                                                                            ||
\\============================================================================//

//================================= Running ==================================\\
||                                                                            ||
|| Load annotation file Homo_sapiens.GRCh38.99.gtf ...                        ||
||    Features : 1376499                                                      ||
||    Meta-features : 60676                                                   ||
||    Chromosomes/contigs : 47                                                ||
||                                                                            ||
|| Process BAM file Sample_61_1_Aligned.out.bam...                              ||
||    Strand specific : stranded                                              ||
||    Single-end reads are included.                                          ||
||    Total alignments : 158035658                                            ||
||    Successfully assigned alignments : 141728594 (89.7%)                    ||
||    Running time : 19.95 minutes                                            ||
||                                                                            ||
|| Write the final count table.                                               ||
|| Write the read assignment summary.                                         ||
||                                                                            ||
|| Summary of counting results can be found in file ".//Sample_61_1/02.feature  ||
|| Counts/tmp//exon/Sample_61_1.summary"                                        ||
||                                                                            ||
\\============================================================================//

        ==========     _____ _    _ ____  _____  ______          _____
        =====         / ____| |  | |  _ \|  __ \|  ____|   /\   |  __ \
          =====      | (___ | |  | | |_) | |__) | |__     /  \  | |  | |
            ====      \___ \| |  | |  _ <|  _  /|  __|   / /\ \ | |  | |
              ====    ____) | |__| | |_) | | \ \| |____ / ____ \| |__| |
        ==========   |_____/ \____/|____/|_|  \_\______/_/    \_\_____/
          v2.0.1

//========================== featureCounts setting ===========================\\
||                                                                            ||
||             Input files : 1 BAM file                                       ||
||                           o Sample_61_1_Aligned.out.bam                      ||
||                                                                            ||
||             Output file : Sample_61_1                                        ||
||                 Summary : Sample_61_1.summary                                ||
||              Annotation : Homo_sapiens.GRCh38.99.gtf (GTF)                 ||
||      Dir for temp files : .//Sample_61_1/02.featureCounts/tmp//gene          ||
||      Assignment details : <input_file>.featureCounts.bam                   ||
||                      (Note that files are saved to the output directory)   ||
||                                                                            ||
||                                                                            ||
||                 Threads : 8                                                ||
||                   Level : meta-feature level                               ||
||              Paired-end : no                                               ||
||      Multimapping reads : counted                                          ||
|| Multi-overlapping reads : not counted                                      ||
||   Min overlapping bases : 1                                                ||
||                                                                            ||
\\============================================================================//

//================================= Running ==================================\\
||                                                                            ||
|| Load annotation file Homo_sapiens.GRCh38.99.gtf ...                        ||
||    Features : 60676                                                        ||
||    Meta-features : 60676                                                   ||
||    Chromosomes/contigs : 47                                                ||
||                                                                            ||
|| Process BAM file Sample_61_1_Aligned.out.bam...                              ||
||    Strand specific : stranded                                              ||
||    Single-end reads are included.                                          ||
||    Total alignments : 158035658                                            ||
||    Successfully assigned alignments : 142932586 (90.4%)                    ||
||    Running time : 17.85 minutes                                            ||
||                                                                            ||
|| Write the final count table.                                               ||
|| Write the read assignment summary.                                         ||
||                                                                            ||
|| Summary of counting results can be found in file ".//Sample_61_1/02.feature  ||
|| Counts/tmp//gene/Sample_61_1.summary"                                        ||
||                                                                            ||
\\============================================================================//

[bam_sort_core] merging from 72 files and 8 in-memory blocks...
[bam_sort_core] merging from 96 files and 1 in-memory blocks...
Number of distinct N supplied: 1147
Range of N: 1162
Number of features: 34981

As you can see Subread and cutadapt working as Single-end reads BUT I have Paired end reads, this is the FASTQ files I have:
Sample_61_1_S1_L001_R1_001.fastq.gz  Sample_61_1_S1_L002_R2_001.fastq.gz  Sample_61_1_S1_L004_R1_001.fastq.gz  Sample_61_1_S1_L005_R2_001.fastq.gz  Sample_61_1_S1_L007_R1_001.fastq.gz  Sample_61_1_S1_L008_R2_001.fastq.gz
Sample_61_1_S1_L001_R2_001.fastq.gz  Sample_61_1_S1_L003_R1_001.fastq.gz  Sample_61_1_S1_L004_R2_001.fastq.gz  Sample_61_1_S1_L006_R1_001.fastq.gz  Sample_61_1_S1_L007_R2_001.fastq.gz
Sample_61_1_S1_L002_R1_001.fastq.gz  Sample_61_1_S1_L003_R2_001.fastq.gz  Sample_61_1_S1_L005_R1_001.fastq.gz  Sample_61_1_S1_L006_R2_001.fastq.gz  Sample_61_1_S1_L008_R1_001.fastq.gz

This is the mapfile:
Sample_61_1    path/to/fastq     Sample_61_1

is this normal or what?
Best
Mohmed
Version
1.17.0

It is normal. R1 reads are only used to extract barcode and UMI sequences. R2 reads were mapped to the genome and used for quantification.


Local webfonts not working for development

Defining font-faces in App/styles.css imports fonts into webpack but somehow the fonts cannot load properly in development, they work fine however when you build it.
I suspect it may be a webpackDevMiddleware issue though.

http://stackoverflow.com/questions/34133808/webpack-ots-parsing-errosdr-loading-fonts
Seems like it's chrome and not webpackDevMiddleware. Solution is to add an absolute output.publicPath in webpack.dev.babel.js, with protocol. i.e 'http://<IP_ADDRESS>:3000/'

That'd be a great addition to the FAQ, would you mind submitting a PR? Thanks!

Will do this weekend!

+1

@benjaminlgt-littlelives sorry but I'm still unable to get static webfonts to load..
i've added a  publicPath: 'http://<IP_ADDRESS>:3000/' to the webpack.dev.babel.js,
and in App/styles.css I've defined the font face using
@font-face {
font-family: "NovecentoWideRegular";
src: url("styles/fonts/novecentowide/Novecentowide-Normal-webfont.eot");
src: local("Novecento Regular"), local("Novecento"), url("styles/fonts/novecentowide/Novecentowide-Normal-webfont.ttf") format("truetype") format("svg");
},
When I do this.. the font does not seem to load, however when I look in networking in chrome dev tools, the style sheet generated shows:
@font-face {
font-family: "NovecentoWideRegular";
src: url(http://<IP_ADDRESS>:3000/52a23c35fe7bc3f937e54157e2627209.eot);
src: local("Novecento Regular"), local("Novecento"), url(http://<IP_ADDRESS>:3000/967656a39dafee3bdca40b073777a86a.ttf) format("truetype") format("svg");
}
and if I just go to http://<IP_ADDRESS>:3000/52a23c35fe7bc3f937e54157e2627209.eot the font file downloads. I'm not sure what i'm doing wrong? any ideas??

Ok, so if I direct it to load the .ttf file it loads ok and everything renders correctly but not with the .eot. Why might this be?

Has there been an actual solution for this issue. I've been trying to include icomoon font icons for the past 4 hours and I tried every solution I could find on the internet and still can't get the fonts to load. Help would be greatly appreciated. Thanks!

@fredcarle, import './styles.css'; worked for me.


[BUG} Enabling smooth scroll option in Scroll Spy prevents url hash change.

Prerequisites

[X] I have searched for duplicate or closed issues
[X] I have validated any HTML to avoid common problems
[X] I have read the contributing guidelines

Describe the issue
Enabling smooth scroll in scroll spy via data-bs-smooth-scroll="true" prevents the URL change when clicking on an anchor hash link.
Reduced test cases
Same Pencode link as my other bug report: https://codepen.io/sam-miller-the-flexboxer/pen/BaYpvPL
I believe the URL of Pencode projects is not changeable to start with when clicking on hash links. So, to reproduce the bug using my example, you likely have to serve it on a different server (e.g., localhost). I've attached the example (see src.zip below). Enable and then disable data-bs-smooth-scroll in the index.html to see its effect on the url.
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Chrome Firefox
What version of Bootstrap are you using?
5.2 beta
src.zip

Please, read the contribution guidelines, and try to open a PR (avoiding zip uploads)

But I am not submitting a Pull Request. I don't know javascript. At most, my post here is a feature request, if not a bug. I've attached the Pencode example so debuggers can see how enabling smooth scroll in Scroll Spy disables the default change in URL when clicking on a hash link, which in my opinion it shouldn't.  The Pencode URL doesn't display hash links.


Allow disabling Javascript & Typescript validation, but only for certain files

Use case: We have a monorepo which currently uses Flow as its type system but we will be migrating to Typescript soon. Today in order to use VSCode with Flow, we have the following in our settings.json:
 "javascript.validate.enable": false,
 "typescript.validate.enable": false,

But once we start introducing *.ts files, it would be good to have VSCode validate those without touching *.js files.
This could be possible by maybe allowing the setting to take a glob instead of just true/false:-
 "javascript.validate.enable": ['**/*.ts'],
 "typescript.validate.enable": ['**/*.ts'],

For your use case, shouldn't you be able to use  "typescript.validate.enable": true since you only want validation of the typescript files?

For your use case, shouldn't you be able to use  "typescript.validate.enable": true since you only want validation of the typescript files?

From what I can see & understand Typescript validation runs on Javascript (.js) files as well..

Hey @mjbvz, thanks! I guess this could work..
Although – is Typescript validation a superset of Javascript validation? Do we lose anything from javascript.validate.enable being false for .ts files?

@rheaditi No, they are separate settings: javascript.validate only applies to javascript files, typescript.validate only applies to typescript files
Closing this issue since I believe our existing settings already cover it

ts disable does not work
"typescript.validate.enable": false

I have this ugly warnings in my js file

I need to disable javascript and typescript
{
    "typescript.validate.enable": false,
    "javascript.validate.enable": false
}

In order to hide the TYPESCRIPT ERROR

Keep i mind that I'm not using typescript
Similar:
https://stackoverflow.com/a/42633555/3957754

I have a case where I am trying to migrate from Flow to TypeScript however flow files use the .js extension.
Using "javascript.validate.enable": false disables type checking in genuine JavaScript files which is undesirable (build scripts and so on).
It would make it a lot easier to be able to rename the flow files to a.flow.js and use a setting like the following to exclude them from validation:
"javascript.validate.exclude": ["**/*.flow.js"]


Add CSS class to draggable piece

Added a CSS class to the created draggable piece SVG. This way, it can be specifically selected via CSS when it is dragged and there are other SVG elements inside the document body.
I created this PR for the following reason: I'm using the chessboard inside a positioned container with a z-index. The draggable piece SVG is created as a direct child of the body and has no z-index per default, which is fine by me, but that makes it disappear behind my parent container element. Since there can be other SVG elements as well on the document body, I needed a class to style the draggable piece to my needs.

Thanks for contributing!


Add blog post for introducing new documentation with OpenAPI and Swagger UI

Deploy preview for openbuildservice ready!
Built with commit 30ce86fd8364d403fecb6f57d2652fd585953df2
https://deploy-preview-278--openbuildservice.netlify.app

Deploy preview for openbuildservice ready!
Built with commit 30ce86fd8364d403fecb6f57d2652fd585953df2
https://deploy-preview-278--openbuildservice.netlify.app

LGTM

LGTM

What changed in the last push?

What changed in the last push?

What changed in the last push?

I removed two commas, one next to the "OpenAPI specification" link, and the other next to the "Swagger UI" link.

What changed in the last push?

I removed two commas, one next to the "OpenAPI specification" link, and the other next to the "Swagger UI" link.

@eduardoj could you please change the date in the filename to today's date

@eduardoj could you please change the date in the filename to today's date

@eduardoj could you please change the date in the filename to today's date

Sure. Done.

@eduardoj could you please change the date in the filename to today's date

Sure. Done.


Dependencies

the proposed system depends on these features

[x] #21 An authentication system
[x] #24
[x] persistent DB store
[x] #25

without these in place, developing the system is just added complexity for future refactoring tasks

basic dependencies for donation tracking system is done. After basic donation tracking, following should be extended:

[ ] Password reset
[ ] Email confirmation
[ ] Reply to comments
[ ] MySQL migration


Correction for raw affiliation CBGP, CIRAD, INRAE, IRD, Institut Agro, Univ. Montpellier, Montpellier, France.

Correction needed for raw affiliation CBGP, CIRAD, INRAE, IRD, Institut Agro, Univ. Montpellier, Montpellier, France.
raw_affiliation_name: CBGP, CIRAD, INRAE, IRD, Institut Agro, Univ. Montpellier, Montpellier, France.
new_rors: 05q3vnk25;03rnk6m14;003vg9w96;05kpkpg04;051escj72;05h7ddb14
previous_rors: 05q3vnk25;03rnk6m14;003vg9w96;05kpkpg04;051escj72
works_examples: W4393527726
contact: a66fbaf0756490a009c5fabe276971fa:90d30cc2a3aa159f02aecda9c568cd93a82b @ inrae.fr

This issue was accepted and ingested by the OpenAlex team on 2024-11-18. The new affiliations should be visible within the next 7 days.


IndexError: Pop from empty list

data_1.csv stored for testing
data_2.csv stored for testing
data_3.csv stored for testing
Traceback (most recent call last):
File "RunAll.py", line 55, in
DataShuffling.run(m, shuffling_files, keep_for_testing, cpu)
File "C:\Users\Jordan\Desktop\leaguenn\DataShuffling.py", line 68, in run
testing_file = preprocessed_files.pop(0)  # take data away for testing
IndexError: pop from empty list
I changed the end of DataShuffling.py to m = Modes.ABR_TJMCS_Mode(['7.20']) from 7.18 and 7.19, but this didn't fix the error.

change keep_for_testing = 7 in RunAll.py (to 1 for example). Since you don't have a lot of data, you may have trouble getting results (i would say you need at least 20 data files to see something). Think about downloading games from all the servers to get more data (API limitations are independant).


List all posts under a page - Funky::Page#posts method

and memoize posts and videos to reduce requests in case calling multiple times from the same page

@kangkyu Can you remove the memorization from this PR since it's not included in the tests and can affect the existing users?

Coverage remained the same at 100.0% when pulling bc5aa3509c5cadf3cf4f7bb0a91e977f962b00ac on posts_method into 12af6d2f89561c437d291e843b53e4b2596f3c4e on master.

Coverage remained the same at 100.0% when pulling 41e61570d787e0dbd7d563660c3decccb5770dcd on posts_method into 12af6d2f89561c437d291e843b53e4b2596f3c4e on master.

I now removed memoization thank you @claudiofullscreen

Coverage remained the same at 100.0% when pulling 68008bd036d2be0f0d54cbf468402c34bc8a2916 on posts_method into 12af6d2f89561c437d291e843b53e4b2596f3c4e on master.

Coverage remained the same at 100.0% when pulling 5dba40fbc134dcf5c8e97f61a4ca70923a68137f on posts_method into 12af6d2f89561c437d291e843b53e4b2596f3c4e on master.

@kangkyu Looks good now!
Can you add a line to CHANGELOG

## 0.2.22 - unreleased

* [FEATURE] Add `Funky::Page#videos`.

And one example in the README? Then it's ready to 🚢

Coverage remained the same at 100.0% when pulling 09761c4f71e5283b93b18126ac47b46053bf3c3b on posts_method into 12af6d2f89561c437d291e843b53e4b2596f3c4e on master.

@kangkyu Now just add featured_video and release 💃


There is some mistake in api response for xy=k end point it seems? (xy=k/sushiswap/pools/)

Environment

Covalent version: v1

What is happening?
The value for "volume_24h_quote" & "volume_7d_quote" are same for all suhsiswap pools & chain id 1
Here is a sample response for reference :
[     {       "exchange": "0x397ff1542f962076d0bfe58ea045ffa2d347aca0",       "swap_count_24h": 6909,       "total_liquidity_quote": 51573740,       "volume_24h_quote": 34616460,       "fee_24h_quote": 103849.38,       "total_supply": "366674737749272525",       "quote_rate": 140652580,       "block_height": 16675049,       "token_0": {},       "token_1": {},       "chain_name": "eth-mainnet",       "chain_id": "1",       "dex_name": "sushiswap",       "volume_7d_quote": 34616460,       "annualized_fee": 0.73295397     },     {       "exchange": "0x06da0fd433c1a5d7a4faa01111c044910a184553",       "swap_count_24h": 6114,       "total_liquidity_quote": 19852794,       "volume_24h_quote": 15099727,       "fee_24h_quote": 45299.18,       "total_supply": "146336038838014350",       "quote_rate": 135665780,       "block_height": 16675049,       "token_0": {},       "token_1": {}       },       "chain_name": "eth-mainnet",       "chain_id": "1",       "dex_name": "sushiswap",       "volume_7d_quote": 15099727,       "annualized_fee": 0.8305582     } ]
*** I think this might be a mistake from covalent end!!
How can we reproduce the issue?
Call this endpoint to get reponse: https://api.covalenthq.com/v1/xy=k/sushiswap/pools/
What should happen?
The values for "volume_24h_quote" & "volume_7d_quote" need to be different, but instead they are same.
Any suggestions?
No response

It seems to get resolved. I just got informed by discord channel from covalent.


Usage:

	go command [arguments]

The commands are:

	build       compile packages and dependencies
	clean       remove object files
	doc         show documentation for package or symbol
	env         print Go environment information
	bug         start a bug report
	fix         run go tool fix on packages
	fmt         run gofmt on package sources
	generate    generate Go files by processing source
	get         download and install packages and dependencies
	install     compile and install packages and dependencies
	list        list packages
	run         compile and run Go program
	test        test packages
	tool        run specified go tool
	version     print Go version
	vet         run go tool vet on packages

Use "go help [command]" for more information about a command.

Additional help topics:

	c           calling between Go and C
	buildmode   description of build modes
	filetype    file types
	gopath      GOPATH environment variable
	environment environment variables
	importpath  import path syntax
	packages    description of package lists
	testflag    description of testing flags
	testfunc    description of testing functions

Use "go help [topic]" for more information about that topic.

However, I'm currently trying to install hub, and I have successfully clone the repository, but when I execute script/build -o ~/bin/hub, I get this error message:
script/build: line 43: go: command not found
The line contains this content:
local version="$(go version)"
What is causing this error? I tried listing out the current path using echo "$pwd", but it doesn't give any output.

Hi thanks for reporting this. Have you solved this in the meantime?  This could only be possible if script/build messes up the PATH somehow, which it doesn't, since nothing in that script edits the PATH variable.

Hi adl1995, I followed these instructions, and script/build recognizes go 1.8.
However, there are interrupted system calls.
~/hub$ script/build -o ~/bin go build github.com/github/hub/vendor/github.com/mattn/go-colorable: /usr/local/go/pkg/tool/linux_amd64/compile: read |0: interrupted system call go build github.com/github/hub/vendor/github.com/kballard/go-shellquote: /usr/local/go/pkg/tool/linux_amd64/compile: read |0: interrupted system call go build github.com/github/hub/vendor/github.com/octokit/go-octokit/vendor/github.com/fhs/go-netrc/netrc: /usr/local/go/pkg/tool/linux_amd64/compile: read |0: interrupted system call go build github.com/github/hub/vendor/github.com/octokit/go-octokit/vendor/github.com/jingweno/go-sawyer/hypermedia: /usr/local/go/pkg/tool/linux_amd64/compile: read |0: interrupted system call go build github.com/github/hub/vendor/golang.org/x/crypto/ssh/terminal: /usr/local/go/pkg/tool/linux_amd64/compile: read |0: interrupted system call go build github.com/github/hub/vendor/github.com/ogier/pflag: /usr/local/go/pkg/tool/linux_amd64/compile: read |0: interrupted system call
Anyone knows how to resolve this?

@zhengqunkoo Yours sounds like a very different problem. If it persists, would you please open a separate issue for it?
@adl1995 Did you ever solve your problem? Are you still unable to build hub on your machine?

@mislav - Thank you for following up!
Yes, I resolved the go issue. I think my PATH was messed up, I fixed it by re-updating using:
export PATH=$PATH:/usr/local/go/bin
However, I am faced with another problem now. When doing make install prefix=/usr/local, I'm getting this error:

Installing tilt 1.3.3
Using bundler 1.12.5
An error occurred while installing ffi (1.9.3), and Bundler cannot continue.
Make sure that gem install ffi -v '1.9.3' succeeds before bundling.
Could not find ffi-1.9.3 in any of the sources
You need Ruby 1.9 or higher and Bundler to run hub tests
make: *** [bin/ronn] Error 1

But, then I checked my Ruby version using ruby -v which came to be:

ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

Is it possible that I have two versions installed which are conflicting with each other?

Hi @mislav, I'm using the Windows Subsystem for Linux (aka Ubuntu 14.04 on Windows). Didn't solve this problem, but found a workaround. Installed linuxbrew and did brew install hub.

@adl1995 Can you try script/bootstrap again to retry installing the necessary dependencies? It's not right that "ffi" gem install should not be found, since I can see that it's available here: https://rubygems.org/gems/ffi/versions/1.9.3

@mislav I just tried this, but got the same error:

Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/rdiscount-1.6.8 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rdiscount-1.6.8/gem_make.out
Using tilt 1.3.3
Using bundler 1.12.5
An error occurred while installing ffi (1.9.3), and Bundler cannot continue.
Make sure that gem install ffi -v '1.9.3' succeeds before bundling.
Could not find ffi-1.9.3 in any of the sources
You need Ruby 1.9 or higher and Bundler to run hub tests

@adl1995 Very strange. Can you try bundle update ffi?

@mislav Here is the full output of the above command:

Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Installing ffi 1.9.18 (was 1.9.3) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/ext/ffi_c

/usr/local/bin/ruby -r ./siteconf20170627-30569-53acus.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:541:in try_link0'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:556:in try_link' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:657:in try_ldflags'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1813:in pkg_config' 	from extconf.rb:15:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/ffi-1.9.18/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/ffi-1.9.18/gem_make.out
Using builder 3.2.2
Using diff-lcs 1.2.5
Using multi_json 1.10.1
Using multi_test 0.1.1
Using rspec-support 3.0.2
Installing hpricot 0.8.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/hpricot-0.8.4/ext/fast_xs

/usr/local/bin/ruby -r ./siteconf20170627-30569-1c6qf8p.rb extconf.rb
checking for stdio.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:587:in try_cpp'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1091:in block in have_header' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:942:in block in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block (2 levels) in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:346:in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:941:in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1090:in have_header' 	from extconf.rb:2:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/hpricot-0.8.4/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/hpricot-0.8.4 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/hpricot-0.8.4/gem_make.out
Using mustache 0.99.4
Using rack 1.4.1
Installing rdiscount 1.6.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/rdiscount-1.6.8/ext

/usr/local/bin/ruby -r ./siteconf20170627-30569-1va135f.rb extconf.rb
checking for random()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-rdiscount-dir
--without-rdiscount-dir
--with-rdiscount-include
--without-rdiscount-include=${rdiscount-dir}/include
--with-rdiscount-lib
--without-rdiscount-lib=${rdiscount-dir}/lib
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:541:in try_link0'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:556:in try_link' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:765:in try_func'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1051:in block in have_func' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:942:in block in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block (2 levels) in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:346:in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:941:in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1050:in have_func' 	from extconf.rb:5:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rdiscount-1.6.8/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/rdiscount-1.6.8 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rdiscount-1.6.8/gem_make.out
Using tilt 1.3.3
Using bundler 1.12.5
An error occurred while installing ffi (1.9.18), and Bundler cannot continue.
Make sure that gem install ffi -v '1.9.18' succeeds before bundling.

I also tried gem install ffi -v '1.9.18', which produced this output:

Building native extensions.  This could take a while...
ERROR:  Error installing ffi:
ERROR: Failed to build gem native extension.
current directory: /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.18/ext/ffi_c

/usr/local/bin/ruby -r ./siteconf20170627-30619-3yd8jt.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:541:in try_link0'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:556:in try_link' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:657:in try_ldflags'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1813:in pkg_config' 	from extconf.rb:15:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/ffi-1.9.18/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /usr/local/lib/ruby/gems/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0-static/ffi-1.9.18/gem_make.out

@adl1995 That sounds like you need the necessary Ruby headers on your machine to install gems with native extensions? Typically this is called ruby-dev or libruby in your package manager. Then retry the bundle update ffi command again.

@mislav So, I installed both ruby-dev and libruby through apt-get, but I'm still getting the same error:

Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Installing ffi 1.9.18 (was 1.9.3) with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18/ext/ffi_c

/usr/local/bin/ruby -r ./siteconf20170628-31921-ma95sc.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-ffi_c-dir
--without-ffi_c-dir
--with-ffi_c-include
--without-ffi_c-include=${ffi_c-dir}/include
--with-ffi_c-lib
--without-ffi_c-lib=${ffi_c-dir}/lib
--with-libffi-config
--without-libffi-config
--with-pkg-config
--without-pkg-config
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:541:in try_link0'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:556:in try_link' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:657:in try_ldflags'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1813:in pkg_config' 	from extconf.rb:15:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/ffi-1.9.18/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/ffi-1.9.18 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/ffi-1.9.18/gem_make.out
Using builder 3.2.2
Using diff-lcs 1.2.5
Using multi_json 1.10.1
Using multi_test 0.1.1
Using rspec-support 3.0.2
Installing hpricot 0.8.4 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/hpricot-0.8.4/ext/fast_xs

/usr/local/bin/ruby -r ./siteconf20170628-31921-1tew4bt.rb extconf.rb
checking for stdio.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:587:in try_cpp'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1091:in block in have_header' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:942:in block in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block (2 levels) in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:346:in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:941:in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1090:in have_header' 	from extconf.rb:2:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/hpricot-0.8.4/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/hpricot-0.8.4 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/hpricot-0.8.4/gem_make.out
Using mustache 0.99.4
Using rack 1.4.1
Installing rdiscount 1.6.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/rdiscount-1.6.8/ext

/usr/local/bin/ruby -r ./siteconf20170628-31921-1r3qdcc.rb extconf.rb
checking for random()... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
--with-rdiscount-dir
--without-rdiscount-dir
--with-rdiscount-include
--without-rdiscount-include=${rdiscount-dir}/include
--with-rdiscount-lib
--without-rdiscount-lib=${rdiscount-dir}/lib
/usr/local/lib/ruby/2.3.0/mkmf.rb:456:in try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:541:in try_link0'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:556:in try_link' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:765:in try_func'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1051:in block in have_func' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:942:in block in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block (2 levels) in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:350:in block in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:320:in open'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:346:in postpone' 	from /usr/local/lib/ruby/2.3.0/mkmf.rb:941:in checking_for'
from /usr/local/lib/ruby/2.3.0/mkmf.rb:1050:in have_func' 	from extconf.rb:5:in '
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rdiscount-1.6.8/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /home/adeel/hub/vendor/bundle/ruby/2.3.0/gems/rdiscount-1.6.8 for inspection.
Results logged to /home/adeel/hub/vendor/bundle/ruby/2.3.0/extensions/x86_64-linux/2.3.0-static/rdiscount-1.6.8/gem_make.out
Using tilt 1.3.3
Using bundler 1.12.5
An error occurred while installing ffi (1.9.18), and Bundler cannot continue.
Make sure that gem install ffi -v '1.9.18' succeeds before bundling.

Try checking mkmf.log files as suggested in the output to see what fails. Unless you've compiled software before on this machine, it's possible that you also need to install a package sometimes called build-essentials which installs general-purpose compilers and build tools.
However: the make install step only requires all these Ruby dependenices stuff just to build the man pages. Otherwise, Ruby is not required at all. If all you're trying to do is build a hub binary, then you can do make and copy the resulting bin/hub binary somewhere in your PATH.

Although this is not a fix for the specific issue your having why not use the binary? : https://github.com/github/hub/releases.
The Linux binary should work for 14.04 (I've been successful with 16.04). At least it's worth a try for simplicity's sake.
wget https://github.com/github/hub/releases/download/RELEASE/hub-linux-amd64-VERSION.tgz
tar zxvf hub-linux-amd64-VERSION.tgz -C ~/bin # if only needed for current user (in path)
ln -s ~/bin/hub-linux-amd64-VERSION/bin/hub ~/bin/hub

Confirm success:
$ hub version
git version GIT_VERSION
hub version VERSION

If you then want to alias with git and/or include autocompletion - add to .bashrc:
# alias with git
eval "$(hub alias -s)"

# add autocompletion
if [ -f /home/USER/bin/hub-linux-amd64-VERSION/etc/hub.bash_completion ]; then
    . /home/USER/bin/hub-linux-amd64-VERSION/etc//hub.bash_completion
fi

Finally, source .bashrc or start a new terminal session to enable.

@joshmorel Thank you that worked! Closing this issue now.


[5.7] Fix curation of children of single-language topics

Rationale: Fixes an issue where multi-language children of single-language pages are considered as single-language as well, causing them to not be curated in the render node when manually curating them.
Risk: Low
Risk Detail: Minor, targeted change that is covered by a test.
Reward: Medium
Reward Details: This only impacts rare cases where a symbol that's only available in one language has sub-symbols that are available in multiple symbols.
Original PR: https://github.com/apple/swift-docc/pull/139
Issue: rdar://91484878
Code Reviewed By: @ethan-kusters
Testing Details: Added unit tests to ensure that the affected links now resolve, existing tests still pass.

@swift-ci please test


Fix backporting scripts for https users

This change is

test-me-please

Coverage decreased (-0.04%) to 41.969% when pulling 9e6deef1d179d58f680e6c6065ad7f4918dcedee on nebril:fix-check-stable-https into b2ff83adff68a557e12119ebb2cdf9d89a6cf017 on cilium:master.


[Proposal] No type given, assumes _Nilable(_Any)

Hey Joel,
We are running into a few regressions since we implemented literal. They are type regressions, bot bugs from the gem, so not literal's fault 🙌.
We have quite a few _Nilable(_Any) declarations and I had this idea of what would literal look like if the default type declaration is that.
# this
prop :body

# is the equivalent of
prop :body, _Nilable(_Any)

Less characters to write; works better with the "no type" ruby way of doing things; more approachable to folks who only need to get rid of the initializer and will look for a gem to do that.
It would increase adoption as well IMHO.

Thanks for the suggestion @adrianthedev ! Think this sounds like a good idea.
But maybe this could an be opt-in (or out) feature to let the gem consumer decide the level of strictness they wish to enforce on their prop definitions, ie in some of my projects I would consider a type-less prop declaration to be  an error.

Yeah. Makes sense for the more type-sensitive folks.

I had wondered about this as it would make the library useful even for folks who don’t care about the type features. I quite like the idea of having strict and relaxed modes.

in some of my projects I would consider a type-less prop declaration to be an error.

Agree with this sentiment. I would want this feature to be opt-in.

Yes, let's do this!
And cut a release with the lazy-loaded types and the Nilable Any 😅
We're anxiously waiting for the new release so we can adopt the new features 🙌

What actually was our conclusion on if _Any includes nil? 😬😅

I don’t know. I’ve mostly been convinced that _Any should include nil and it should be read as "any type" as opposed to "anything". But that leave us needing to come up with a name for anything-apart-=from-nil.

@joeldrapper do you think there's a version of literal to be extracted in a different gem that doesn't handle the types at all and does not add the overhead?
the types are giving us too much trouble and we're pretty much set on migrating away from the strict types.
We just can't cntrol what the user might pass in.

@adrianthedev why not just use ActiveModel::Attributes?

Not sure if it supports everything we need like defaults and capturing **

@adrianthedev it does support defaults. I’m not sure what capturing is.

@adrianthedev did you decide to go ahead with the fork? I think we should probably close this for now and maybe revisit it later if it comes up again. I’m not against it at all, but I just wouldn't use this feature myself.


Latency for a volume shows very high in order 150+ms

Description
Prometheus volume running on cstor, Continuous alerts getting generated stating the latency is very high in the order of 200ms. The graphs are showing very high value on the latency part.
**Interval1**
 # curl localhost:9500/metrics | grep openebs_write
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9366  100  9366    0     0   914k      0 --:--:-- --:--:-- --:--:-- 1016k
# HELP openebs_write_block_count Write Block count of volume
# TYPE openebs_write_block_count gauge
openebs_write_block_count 2.92576752e+08
# HELP openebs_write_time Write time on volume
# TYPE openebs_write_time gauge
openebs_write_time 1.11847151825595e+14
# HELP openebs_writes Write Input/Outputs on Volume
# TYPE openebs_writes gauge
openebs_writes 281035
**Interval2**
# curl localhost:9500/metrics | grep openebs_write
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9360  100  9360    0     0   830k      0 --:--:-- --:--:-- --:--:--  830k
# HELP openebs_write_block_count Write Block count of volume
# TYPE openebs_write_block_count gauge
openebs_write_block_count 2.927066e+08
# HELP openebs_write_time Write time on volume
# TYPE openebs_write_time gauge
openebs_write_time 1.1187533721992e+14
# HELP openebs_writes Write Input/Outputs on Volume
# TYPE openebs_writes gauge
openebs_writes 281195

**((1.1187533721992e+14-1.11847151825595e+14)/(281195-281035))/1000000=176.15ms**

Expected Behavior
Latency of SSD should be in order of 2ms or less
Current Behavior
Latency showing higher value
Possible Solution
Validate the metrics are correct, else we need to fix the code why its inducing higher latency.
Steps to Reproduce
Configure a Prometheus volume on cStor
Screenshots

Your Environment
OpenShift 3.10
14 Node cluster with each pool having 3to5 SSDs configured in striped mode.

Need other stats as well like cpu/ram/iscsi disks/disks/network latencies for that time period.

System is attached to MayaOnline, the latency is happening continuously.  User details provided on the slack.
Didn't see much deviation on RAM/CPU utlilization except scope agent using 50% on one of the CPU.


Anerdw: Blacklist 09346-720-919

Anerdw requests the blacklist of the number 09346-720-919. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

Approved by Cow in Charcoal HQ


InAppMessaging - Failed restful api request to fetch in-app messages 400

[READ] Step 1: Are you in the right place?
yes
[REQUIRED] Step 2: Describe your environment

Xcode version: 10.2
Firebase SDK version: 5.20.2
Firebase Component: InAppMessaging + InAppMessagingDisplay
Component version: 0.13.0 + 0.13.1

[REQUIRED] Step 3: Describe the problem
Reopening #2816 - I cannot receive test messages on device or simulator.
Steps to reproduce:
Add the following to your Podfile:
  pod 'Firebase'
  pod 'Firebase/InAppMessagingDisplay'
  pod 'Firebase/Analytics'

Run pod install
Build and run the app in the simulator or on a device.
Open Firebase Console and create a new In-App Messaging campaign with style: Modal.
Under options select Test on Device, add your InstanceID, and click Test.
Background the running app, then open it again.

The following error is logged to the Xcode console:
2019-09-19 15:17:02.421473+0200 My App[6754:458265] 5.20.0 - [Firebase/InAppMessaging][I-IAM130004] Failed restful api request to fetch in-app messages: seeing http status code as 400 with body as {
  "error": {
    "code": 400,
    "message": "Request contains an invalid argument.",
    "status": "INVALID_ARGUMENT"
  }
}

Relevant Code:
None

This should be fixed in an upcoming release of the InstanceIDSDK. Will close this at that time.

@christibbs where can we follow progress on this issue in the InstanceID SDK?
I've noticed that this problem only occurs when I update from a previous version of my app with a different version number. If I implement InAppMessaging without updating the version or build numbers, or do a clean install, everything works as expected.

@pimnijman  thanks for the additional context. The InstanceID work is complete, we have to do some work on our end to integrate. This should happen in a near-term upcoming release, I'll close this when the work is done.

Thanks for your patience everyone. This should be fixed in the next release of the Firebase iOS SDK.


Working with data are not documented enough

There is not enough information about the mechanisms for working with data.
The Grav documentation describes how to save the data obtained from the form in data (user/data). But there is no information on how to access this data (read/edit/delete), from php or twig. Are there any mechanisms for working with them in Grav? And if they are, where can I read more about it?

After a bit of analysis of plugin repositories that work with data. I found information that working with data out of the box is now only being implemented. And this is somehow related to FlexObjects. I'm not mistaken?

Right now data/ is usually used with forms, for example, if you want to store the posted data before sending email etc. Some plugins also use it to keep track of their state, like if you enable likes/page hits plugins. And yes, Flex also defaults to data/, but isn't restricted to it.
There are no standards on how the data gets stored or retrieved, it's really application specific.

@mahagr I thought there are some mechanisms for working with data. I wanted to save the data from the form with "process: save" and then process it in my plugin. But now I think it will be easier to immediately send the data from the form to the plugin using "onFormProcessed", and then save the data by the plugin itself.

You can do that and it'll work just fine (especially with Form 3.0). There is data manager plugin, but a better way to load the data is to do that from your plugin -- for now.