« first day (2516 days earlier)      last day (890 days later) » 

1:33 AM
6
Q: how do expose inferred types for extends class in kotlin?

bill gatesI am studying classes extends in kotlin and I came across this error. Can you please explain to me why this is so: open class Animal class Zebra: Animal() fun main() { var animal = Zebra() animal = Animal() // Error: Type mismatch }

 
2:04 AM
1
Q: Solving for a unique set of solutions

JanI have the following code: In[1]:=n = 6561; Solve[{n == a^2 + b^2 + c^2, n == d^2 + e^2 + f^2, n == g^2 + h^2 + i^2, n == a^2 + d^2 + g^2, n == b^2 + e^2 + h^2, n == c^2 + f^2 + i^2, 1 <= a <= n && 1 <= b <= n && 1 <= c <= n && 1 <= d <= n && 1 <= e <= n && 1 <= f <= n && 1 <= g <= n &&

 
 
10 hours later…
11:51 AM
7
Q: How do you find the lifecycle status of a tidyverse function or argument?

stevecWhat's the correct way to work out the lifecycle stage of tidyverse functions? (that is, whether the function/argument is considered stable, experimental, deprecated, or superceded) What I know so far I guess that the documentation will tell us, for example: library(tidyverse); ?summarise shows ...

 
 
6 hours later…
5:33 PM
6
Q: Different behavior of len() with const or non-const value

zangwThe code below const s = "golang.go" var a byte = 1 << len(s) / 128 The result of a is 4. However, after changing const s to var s as following var s = "golang.go" var a byte = 1 << len(s) / 128 The result of a is 0 now. Also other test codes as below const s = "golang.go" var a byte = 1 << ...

 
 
4 hours later…
9:39 PM
0
Q: QWebEnginePage::runJavaScript render completion

atdotdeI have a QWebEnginePage that I want to use for printing. I run a JS function on it (with runJavaScript) that inserts a couple of tags in the page. runJavaScript has a callback that is executed once the script finished running. Turns out this can be before the new images have loaded and rendered....

 
 
1 hour later…
11:03 PM
6
Q: Can C++ deduce argument type from default value?

Dave11arI tried to write this function with a default template argument: template<typename A, typename B> void func(int i1, int i2, A a, B b = 123){ ... } In my mind I can call it like this: func(1, 2, 3) and compiler should deduce type B as int from default value, but I get no instance of overloade...

 

« first day (2516 days earlier)      last day (890 days later) »