text stringlengths 49 10.4k | source dict |
|---|---|
homework-and-exercises, electrostatics, experimental-physics, charge
Title: Electric charges separation I know that any electric charge (Millikan) is always an integer multiple $n\in \Bbb Z$ of the electron charge $e$ i.e.
$$\boxed{Q=ne} \tag 1$$
Assuming by induction or contact or by friction to separate an electric ... | {
"domain": "physics.stackexchange",
"id": 82420,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, electrostatics, experimental-physics, charge",
"url": nu... |
beginner, algorithm, array, haskell, divide-and-conquer
main :: IO ()
main = do
contents <- getContents
print $ inversions (map read (lines contents) :: [Int])
How could I write this code in a way that is more idiomatic, reduces the amount of repetition, and reduces the amount of data being copied?
As a Haske... | {
"domain": "codereview.stackexchange",
"id": 10011,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, algorithm, array, haskell, divide-and-conquer",
"url": null
} |
c#, async-await, serialization, tcp, task-parallel-library
_client = new TcpClient();
}
public GameSocket(IPEndPoint endpoint, ISerializer serializer, ILogger logger = null) : this(endpoint.Address.ToString(), endpoint.Port, serializer, logger)
{
}
public async Task Run(CancellationToken ct)
... | {
"domain": "codereview.stackexchange",
"id": 35519,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, async-await, serialization, tcp, task-parallel-library",
"url": null
} |
astrophysics, stars, metallicity
It would be possible to detect the contents of a star, with a carefully measured spectrum of the atmosphere and sophisticated stellar modelling (the spectrum serves as a boundary condition for the model). It would be more difficult than what astronomers do today since part of what goes... | {
"domain": "physics.stackexchange",
"id": 16796,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "astrophysics, stars, metallicity",
"url": null
} |
bash, shell, markdown, jq
# Pull channel data out of response if possible
if [[ $(jq -r '.pageInfo.totalResults' output.json) == 1 ]]; then
TITLE=$(jq -r '.items[0].snippet.title' output.json)
URL=$(jq -r '.items[0].snippet.customUrl' output.json)
VIDEO_COUNT=$(jq -r '.items... | {
"domain": "codereview.stackexchange",
"id": 44990,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "bash, shell, markdown, jq",
"url": null
} |
f=Piecewise[{{1.*Sqrt[(1+1.*^-10*x)^2+1.0132118364233779*^-7*x^2],0<=x<=100.},
{1.0005064876533403*Sqrt[(1+4.58007351566221*^-6*(-100.+x))^2+2.0703132938331475*^-8*(-100.+x)^2],100.<=x<=122.},
{1.0006123124833644*Sqrt[(1+0.000011127214694901114*(-122.+x))^2+1.0107340215537729*^-7*(-122.+x)^2],122.<=x<=222.},
{1.0022307... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.968381236381426,
"lm_q1q2_score": 0.821156068129799,
"lm_q2_score": 0.8479677602988602,
"openwebmath_perplexity": 883.7271907513503,
"openwebmath_score": 0.5120924711227417,
"tags"... |
java, algorithm, strings, reinventing-the-wheel
Suggested implementation
@heslacher's implementation is very close to my taste. Here's a variation of that, with some minor changes:
public static String[] split(String strToSplit, char delimiter) {
List<String> arr = new ArrayList<>();
int foundPosition;
int... | {
"domain": "codereview.stackexchange",
"id": 8892,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, algorithm, strings, reinventing-the-wheel",
"url": null
} |
forces, lagrangian-formalism, potential-energy, variational-principle
Title: Derive Generalized forces using Hamilton's principle When you derive the Euler-Lagrange equation using D'Alembert's principle, you find that
$$\frac{d}{dt}\frac{\partial L}{\partial \dot{q_j}}-\frac{\partial L}{\partial q_j}=Q_j$$ where $$Q_j... | {
"domain": "physics.stackexchange",
"id": 41230,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "forces, lagrangian-formalism, potential-energy, variational-principle",
"url": n... |
ros-kinetic
Then in the config file, define the device which was assigned.
Originally posted by GPrathap with karma: 36 on 2018-07-27
This answer was ACCEPTED on the original site
Post score: 0
Original comments
Comment by JimTal on 2018-12-11:
I am also working with multiple Basler USB 3.0 cameras in ROS and wanted... | {
"domain": "robotics.stackexchange",
"id": 31263,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-kinetic",
"url": null
} |
vectors, representation-theory, covariance
Consider the case that $\mathbf v$ is a vector field. Rotations are conventionally defined to act on vector fields as follows (I'll try to find another post on physics.SE that explains why):
\begin{align}
\mathbf v^R(\mathbf x) = R\mathbf v(R^{-1}\mathbf x)
\end{align}
Is ... | {
"domain": "physics.stackexchange",
"id": 18657,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vectors, representation-theory, covariance",
"url": null
} |
c++, game
int View::gameLogic(gcode &code) {
switch(code)
{
case gcode::DF_KEY_INVENTORY: {
if(!inv_open) {
inv_open = true;
stats_open = false;
shrdMap->getMapAroundPlayer(x_cord, y_cord, center_x, center_y, buffer);
shrdPlaye... | {
"domain": "codereview.stackexchange",
"id": 40467,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, game",
"url": null
} |
Thank you for you patience and help!
• I don't think the two norms are equal. Define $v(x)= \sup_{y\neq x} \frac{\vert u(x)-u(y)\vert}{\vert x-y\vert}$. Then $\Vert u\Vert_1 = \Vert u\Vert_\infty + \Vert v \Vert_\infty$ while $\Vert u\Vert_2= \Vert \vert u \vert + v \Vert_\infty$. May 26, 2021 at 12:09
• The equality ... | {
"domain": "mathoverflow.net",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799462157138,
"lm_q1q2_score": 0.8153023511158761,
"lm_q2_score": 0.8459424314825852,
"openwebmath_perplexity": 166.30935544084863,
"openwebmath_score": 0.9771006107330322,
"tag... |
zoology, ethology
Title: Is there a term for tool use in animals? Is there a technical/scientific term that scientists use to refer to tool making abilities found in certain types of animals?
Reference http://en.wikipedia.org/wiki/Animal_cognition#Tool_and_weapon_use Having read this article on tool use in Chimpanzees... | {
"domain": "biology.stackexchange",
"id": 848,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "zoology, ethology",
"url": null
} |
beginner, sql, sql-server, t-sql, stackexchange
Title: "How can I make this SEDE query better?" (bad title finder) It was suggested on Meta for July 2015 Community Challenge to make a bot that can find questions with bad titles. I wrote this query to help others find examples to help them make write their code.
I mad... | {
"domain": "codereview.stackexchange",
"id": 35702,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, sql, sql-server, t-sql, stackexchange",
"url": null
} |
on the regular hexagonal lattice. The Poisson distribution is the discrete probability distribution of the number of events occurring in a given time period, given the average number of times the event occurs over that time period. that you van finish checking-out the customers already in your line and leave on-time. i... | {
"domain": "lockxx.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9780517501236461,
"lm_q1q2_score": 0.8107450542907677,
"lm_q2_score": 0.8289388104343892,
"openwebmath_perplexity": 666.5397362841131,
"openwebmath_score": 0.709040641784668,
"tags": ... |
yes.you can write: $cos(3\theta) = cos(2\theta +\theta)$ =$$cos(2\theta)cos(\theta) - sin(2\theta)sin\theta$$ =$$2cos^3(\theta)-cos \theta -sin(2\theta) sin(\theta)$$=$$2cos^3\theta -cos\theta -2sin^2\theta cos\theta$$=$$2cos^3\theta - cos \theta - 2(cos\theta -cos^3 \theta)$$ so we have : $$4cos^3\theta -3cos\theta$$
... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9711290955604488,
"lm_q1q2_score": 0.8630995232957255,
"lm_q2_score": 0.888758793492457,
"openwebmath_perplexity": 496.87783340682546,
"openwebmath_score": 0.9981534481048584,
"tag... |
php, object-oriented
Title: Simple basic calculator php class I wrote this basic calculator class using php.It will only execute the basic arithmetics operations so any suggestion for new functions add and improvements will be accepted. Thank you.
<?php
class Calculator{
public $x , $y , $z;
public function... | {
"domain": "codereview.stackexchange",
"id": 30958,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, object-oriented",
"url": null
} |
ros, navigation, odometry, ros-melodic, robot-localization
Originally posted by johnconn with karma: 553 on 2020-11-06
This answer was ACCEPTED on the original site
Post score: 0 | {
"domain": "robotics.stackexchange",
"id": 35712,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, navigation, odometry, ros-melodic, robot-localization",
"url": null
} |
Horizontal tangent line of a parametric curve
Suppose $x=t^2,y=t^3$ is a parametric curve. Here's a quote from my textbook:
The origin, which corresponds to $t=0$, is a singular point of the parametric curve, because $dx/dt=2t,dy/dt=3t^2$ are both zero when $t=0$.
So far so good.
But then they write:
However, the ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9799765575409524,
"lm_q1q2_score": 0.861543233657836,
"lm_q2_score": 0.8791467785920306,
"openwebmath_perplexity": 237.691814541783,
"openwebmath_score": 0.8502720594406128,
"tags"... |
javascript
// when 4 elements are same integer value
if (element1 == element2 && element2 == element3 && element3 == element4)
{
//Note that each element has it's own predefined css class e.g element1 has element1-css class
equalElementDictionary = this.fourEqualElementsCss('element1-css', 'element2-css', 'ele... | {
"domain": "codereview.stackexchange",
"id": 31912,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript",
"url": null
} |
particle-physics
Title: Why are "heavier" particles harder to detect than "lighter" ones? Something I have read multiple times that I've never intuitively understood is that "heavier" particles are harder to detect than "lighter" ones... For example, I quote from Stephen Hawking's "The Grand Design" in relation to s... | {
"domain": "physics.stackexchange",
"id": 171,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "particle-physics",
"url": null
} |
c#, asp.net
public static void SetIndexCacheKey(HttpContext context) {
var key = BuildKey(context);
AddRequestHeader(context, CacheKeyHeader, key);
}
private static string GetDefaultVaryByHeader()
{
var sb = new StringBuilder();
for (var ... | {
"domain": "codereview.stackexchange",
"id": 41270,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, asp.net",
"url": null
} |
c++, beginner, file-system
char ans;
std::cin >> ans;
if (ans != 'Y' || ans != 'y')
{
std::cout << "Aborted!";
return;
}
}
fs::copy(p1, p2, fs::copy_options::recursive);
}
//mkdir Used For Making Directories
void mkdir(std::string &s)
{
fs::create_dir... | {
"domain": "codereview.stackexchange",
"id": 41397,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, beginner, file-system",
"url": null
} |
c#, design-patterns, socket, server, udp
The header has a property of type DatagramPolicy which is a bitmask I use to determine what requirements the datagram has that the server needs to apply. This tells the server the following things:
Is the message sequenced? More than one packet will be sent to build a composit... | {
"domain": "codereview.stackexchange",
"id": 19003,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, design-patterns, socket, server, udp",
"url": null
} |
general-relativity, differential-geometry
Edit
if you have Mathematica available, here is a notebook with the detailed calculation, with explanations:
https://github.com/CharlesJQuarra/GravitationCalcs/blob/master/GravWaveAnalysis.nb
If someone wants to improve on it or propose changes, please, send me a pull request ... | {
"domain": "physics.stackexchange",
"id": 27683,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, differential-geometry",
"url": null
} |
java, beginner, strings
all.append("v");
}
for (int c = 2; c <= a; c++) {
all.append(" ");
}
for (int c = 1; c <= 1; c++) {
all.append("|");
}
System.out.println(all.toString());
... | {
"domain": "codereview.stackexchange",
"id": 15880,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, strings",
"url": null
} |
materials, metals, grinding
Title: How to use sample holder on Metallography specimen preparation machine Struers Tegrapol-21 In lab we have Struers Tegrapol-21 grinding and polishing machine. I use it for sample preparation. Usually I put 6 samples at once and prepare them with sample holder. However today I need to ... | {
"domain": "engineering.stackexchange",
"id": 347,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "materials, metals, grinding",
"url": null
} |
## Calculus, Probability and Statistics, and a preview of future topics in Finance 4366
Probability and statistics, along with the basic calculus principles covered last Thursday, are foundational for the theory of pricing and managing risk with financial derivatives, which is what this course is all about. During tom... | {
"domain": "garven.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822877038891779,
"lm_q1q2_score": 0.8142563966151266,
"lm_q2_score": 0.828938806208442,
"openwebmath_perplexity": 1892.4928226366758,
"openwebmath_score": 0.45350441336631775,
"tags": nu... |
redox, equilibrium, nernst-equation
I've colored the part where I go wrong (basically the logarithm). I don't know exactly why the book put the concentration in the denominator, since $\text{Mg}^{2+}$ is a product (not a reactant), therefore following what I studied, its concentration should be in the numerator.
Any h... | {
"domain": "chemistry.stackexchange",
"id": 9569,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "redox, equilibrium, nernst-equation",
"url": null
} |
homework-and-exercises, lagrangian-formalism, symmetry, field-theory, chirality
$$\gamma^\mu e^{i\alpha \gamma^5} = e^{-i\alpha \gamma^5} \gamma^\mu\ .$$
This means that
$$
\bar{\psi}e^{i\alpha\gamma^5}(i\gamma^\mu\partial_\mu) e^{i\alpha\gamma^5}\psi
= \bar{\psi}e^{i\alpha\gamma^5}e^{-i\alpha\gamma^5}(i\gamma^\mu\pa... | {
"domain": "physics.stackexchange",
"id": 87791,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, lagrangian-formalism, symmetry, field-theory, chirality",
... |
quantum-mechanics, quantum-field-theory, lagrangian-formalism, hamiltonian-formalism
Now dealing with the functional Schrodinger equation is no fun:
http://arxiv.org/abs/hep-th/9306161
Thus, that is one reason: having to use the functional schrodinger equation is difficult.
A second reason: manifest Lorentz invariance... | {
"domain": "physics.stackexchange",
"id": 28589,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-mechanics, quantum-field-theory, lagrangian-formalism, hamiltonian-formali... |
java, object-oriented, recursion, swing, pokemon
}
public void save(JTable t) {
if (!isEmpty(t)) {
Vector<?> row = (Vector<?>) model.getDataVector().elementAt(1);
for (int i = 0; i < t.getRowCount(); i++) {
row = (Vector<?>) model.getDataVector().elementAt(i);
... | {
"domain": "codereview.stackexchange",
"id": 40772,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, recursion, swing, pokemon",
"url": null
} |
temperature, interstellar-medium
Let me elaborate on the terms isobaric and isochoric. In thermodynamics, it is sometimes convenient to assume that some thermodynamic variables remain constant in a certain situation. Isothermal processes occur at constant temperature; likewise, isobaric processes occur at constant pre... | {
"domain": "astronomy.stackexchange",
"id": 2115,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "temperature, interstellar-medium",
"url": null
} |
java, beginner, swing, event-handling, timer
@Test
public void isFinished()
{
assertTrue( new Countdown( "0:00", null ).isFinished() );
assertFalse( new Countdown( "0:01", null ).isFinished() );
assertFalse( new Countdown( "1:00", null ).isFinished() );
assertFalse( new Countdow... | {
"domain": "codereview.stackexchange",
"id": 13198,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner, swing, event-handling, timer",
"url": null
} |
opencv, image-transport
Title: Compress Image topic with h264 streaming for low bandwidth connection?
Hello,
I faced the problem that sending the video with big resolution (1920x1080) is very difficult even with image transport. The raw or compressed images are too bit for sending over the network (WiFi) and the theo... | {
"domain": "robotics.stackexchange",
"id": 36494,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "opencv, image-transport",
"url": null
} |
error-analysis, approximations
Title: Multiplying significant figures and decimal places One of my lecturers today said that multiplying a number leaves the number of significant figures to which that number is correct unchanged, however it doesn't leave the number of decimal places correct.
He gave the following exam... | {
"domain": "physics.stackexchange",
"id": 41377,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "error-analysis, approximations",
"url": null
} |
ros, ros-melodic, pcl, nodelet
[pcl_segmentation-4] process has died [pid 12564, exit code 255, cmd /opt/ros/melodic/lib/nodelet/nodelet load using_image_pipeline/pcl_segmentation using_image_pipeline_nodelet __name:=pcl_segmentation __log:=/home/kotaru/.ros/log/00c8aa44-dd2e-11ea-aa9d-54bf64375ec6/pcl_segmentation-4.... | {
"domain": "robotics.stackexchange",
"id": 35402,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros-melodic, pcl, nodelet",
"url": null
} |
c++, c++11, tic-tac-toe
default:
return false;
}
}
Type mCategory;
int mNumber;
};
template<std::size_t DIM>
TicTacToe<DIM>::TicTacToe()
{
mGrid.fill(Player::none);
}
template<std::size_t DIM>
bool TicTacToe<DIM>::applyMove(Player player, std::size_t row, std::size_t column)
{
... | {
"domain": "codereview.stackexchange",
"id": 14595,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, c++11, tic-tac-toe",
"url": null
} |
only left numbers are prime. a square (second) root is written as: katex.render("\\sqrt{\\color{white}{..}\\,}", rad17A); a cube (third) root is written as: katex.render("\\sqrt[{\\scriptstyle 3}]{\\color{white}{..}\\,}", rad16); a fourth root is written as: katex.render("\\sqrt[{\\scriptstyle 4}]{\\color{white}{..}\\,... | {
"domain": "anemon.gr",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9902915240915783,
"lm_q1q2_score": 0.875456613728082,
"lm_q2_score": 0.8840392878563336,
"openwebmath_perplexity": 640.4365673322267,
"openwebmath_score": 0.8737838268280029,
"tags": n... |
javascript, beginner, jquery
$(function() {
$('#container_skoler').highcharts({
series: [{
type: 'pie',
name: 'Skole',
data: [
['BI', antallAnsatteBI],
['C... | {
"domain": "codereview.stackexchange",
"id": 10225,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, beginner, jquery",
"url": null
} |
tensorflow, data-science-model, reshape
i, j, k = rnn(i)
i, _, _ = rnn(i, initial_state=[j,k])
print('i:', i.shape)
# attention between x and i
l = Attention()([x, i])
ll = Attention()([i, x])
print('attentions: ',l.shape, ll.shape)
# concatnate x and i
m = Concatenate()([l, ll ... | {
"domain": "datascience.stackexchange",
"id": 11686,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "tensorflow, data-science-model, reshape",
"url": null
} |
c#, beginner, async-await, producer-consumer
var producer3 = Task.Run(() =>
{
foreach (var i in Enumerable.Range(100, 10))
{
processor.Enqueue(i);
}
});
Task.WaitAny(producer1, producer2, producer3);
// Wait for logs in queue before exiting the application.
Tas... | {
"domain": "codereview.stackexchange",
"id": 26879,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, beginner, async-await, producer-consumer",
"url": null
} |
experimental-physics, radiation, geometric-optics, spectroscopy, radiometry
If possible, I highly recommend adding a single bi-convex lens to your optical system (possibly achromatic for broadband use, or you could use an elliptical silver mirror). If you put the source and the spectrometer slit at $2f$ distance from... | {
"domain": "physics.stackexchange",
"id": 47378,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "experimental-physics, radiation, geometric-optics, spectroscopy, radiometry",
"u... |
machine-learning, deep-learning, neural-network, classification, statistics
Title: MOOC - for causal analysis - no statistics background Am a software guy with no background in causal inference.
While I am now familiar with prediction techniques due to the plethora of courses available online, I would like to seek rec... | {
"domain": "datascience.stackexchange",
"id": 9707,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "machine-learning, deep-learning, neural-network, classification, statistics",
... |
ros-melodic, roslaunch, rosbag, network, remote-launch
Now when I use roslaunch record_bags.launch I get the following error:
error launching on [10.0.0.1-0, uri http://10.0.0.1:41387/]: ERROR: Traceback (most recent call last):
File "/opt/ros/melodic/lib/python2.7/dist-packages/roslaunch/server.py", line 332, in la... | {
"domain": "robotics.stackexchange",
"id": 34481,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-melodic, roslaunch, rosbag, network, remote-launch",
"url": null
} |
ros
[ rosmake ] Output from build of package ros2opencv written to:
[ rosmake ] /home/tim/.ros/rosmake/rosmake_output-20140205-151624/ros2opencv/build_output.log
[rosmake-2] Finished <<< ros2opencv [FAIL] [ 0.83 seconds ]
[ rosmake ] Halting due to failure in package ros2opencv.
[ rosmake ... | {
"domain": "robotics.stackexchange",
"id": 16893,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros",
"url": null
} |
ros
When you succeded in using Kinect_for_Windows on Ubuntu, the using of Kinect_for_Xbox is just 'unplug and plugin'.
It's Really easier if you use Kinect_for_XBox with OpenKinect. unfortunately, it does not support Kinect4Windows.
If you're using Virtual Machine launching Ubuntu on it, I don't recommend you contin... | {
"domain": "robotics.stackexchange",
"id": 22460,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros",
"url": null
} |
photons, casimir-effect
Title: Why do photons in the Casimir effect get destroyed when they collide with each other? Shouldn't these photons create a stronger photon when they collide? If you shine a light at another light it gets stronger not destroyed. Why is it different in the Casimir effect case? One has to be ca... | {
"domain": "physics.stackexchange",
"id": 71614,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "photons, casimir-effect",
"url": null
} |
snakemake
Title: How to resolve in snakemake error : "Target rules may not contain wildcards." I would like to do easily reproducible analysis using publicly available data from NCBI, so I have chosen a snakemake.
I would like to write a single rule, that would be able to download any genome given a species code name... | {
"domain": "bioinformatics.stackexchange",
"id": 282,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "snakemake",
"url": null
} |
javascript, api, promise, rest
var MyCompanyConfigurationFetchXml = '<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" no-lock="false">';
MyCompanyConfigurationFetchXml = MyCompanyConfigurationFetchXml.concat(
'<entity name="MyCompany_MyCompanyconfiguration">',
'... | {
"domain": "codereview.stackexchange",
"id": 31003,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, api, promise, rest",
"url": null
} |
Each element $T _ {kl}$ in the table is a quadrature sum approximating the integral:
$$\tag{5 } I \cong T _ {kl} .$$
The nodes of the quadrature sum $T _ {kl}$ are the points $j 2 ^ {-} k- l$, $j = 0 \dots 2 ^ {k+} l$, and its coefficients are positive numbers. The quadrature formula (5) is exact for all polynomials ... | {
"domain": "encyclopediaofmath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9893474904166246,
"lm_q1q2_score": 0.8265835386913319,
"lm_q2_score": 0.8354835350552604,
"openwebmath_perplexity": 483.57531673224867,
"openwebmath_score": 0.9128711819648743,
... |
classical-mechanics, rotation, linear-algebra
Now the vector $\:\mathrm d\mathbf r'\e\mathrm d\mathbf\Omega\x\mathbf r\:$ as the displacement of the position vector $\:\mathbf r\:$ under the infinitesimal rotation $\:\mathrm d\bl\Omega\:$ is also a position vector so it is transformed by coordinates similarly
\begin{e... | {
"domain": "physics.stackexchange",
"id": 83923,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, rotation, linear-algebra",
"url": null
} |
python, performance, array, matrix, benchmarking
Title: Effective Python 2/3 two-dimensional array initialisation Recently I noticed that the idiomatic python two-dimensional array initialisation is extremely slow. I am wondering, is there a good, proper way of doing this simple task fast? Also, are those two variants... | {
"domain": "codereview.stackexchange",
"id": 19819,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, performance, array, matrix, benchmarking",
"url": null
} |
$$\textit{Proof}$$: $$\textbf{Base Case } (n=1)$$: We see that $(\sum_{j=1}^1j\binom{1}{k} = 1\cdot \binom{1}{1} = 1 = 1\cdot 2^0 = 1\cdot 2^{1-1}.$) Therefore, the base case is true. $$\textbf{Inductive Hypothesis}$$: Assume for any $$k\geq 1$$ that $$\displaystyle\sum_{j=1}^k j\binom{k}{j} = k2^{k-1}$$. $$\textbf{Ind... | {
"domain": "tutorme.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9904406009350774,
"lm_q1q2_score": 0.8495683573693408,
"lm_q2_score": 0.8577681049901037,
"openwebmath_perplexity": 1970.4868773038568,
"openwebmath_score": 0.9998852014541626,
"tags": n... |
neural-network, deep-learning, reinforcement-learning, q-learning, dqn
It might still be possible to use longer trajectories, sampled randomly, to get a TD target estimate based on more steps. This can be beneficial for reducing bias from bootstrapping, at the expense of adding variance due to sampling from larger spa... | {
"domain": "datascience.stackexchange",
"id": 11309,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "neural-network, deep-learning, reinforcement-learning, q-learning, dqn",
"ur... |
condensed-matter, symmetry, terminology, group-theory
In conclusion: it's not that one name is better than the other, and you are correct in noticing that they are not talking about the same thing, it's just that it depends on the context when you tag the label ''projective''. In the former case we call it the project... | {
"domain": "physics.stackexchange",
"id": 26668,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "condensed-matter, symmetry, terminology, group-theory",
"url": null
} |
Answer: . $\frac{1}{2}\sin^2x + x + C$
5. Originally Posted by nirva
$3. \int \frac{\sec^2(x)}{3+\tan(x)}dx$
Let,
$u=3+\tan x$
Then,
$u'=\sec^2 x$
Thus, by substitution theorem,
$\int \frac{u'}{u}du=\int \frac{1}{u}du$
Which is,
$\ln |u|+C=\ln |3+\tan x|+C$ | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.986151386528394,
"lm_q1q2_score": 0.8477585959679338,
"lm_q2_score": 0.8596637469145053,
"openwebmath_perplexity": 5738.601870679777,
"openwebmath_score": 0.9955886006355286,
"tags... |
quantum-state, density-matrix, linear-algebra
Since $\hat{\rho}$ is Hermitian, spectral theory says there exists an orthogonal basis $\{ |n\rangle \}_{n=1}^{d}$ (I'm assuming a finite-dimensional space for simplicity), i.e. $\langle n|m\rangle = \delta_{nm}$, which comprise the eigenvectors of $\hat{\rho}$. That is, $... | {
"domain": "quantumcomputing.stackexchange",
"id": 3130,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-state, density-matrix, linear-algebra",
"url": null
} |
human-biology, human-anatomy, breathing
Title: Why can't people talk while inhaling? Why do we have to exhale in order to talk? From looking on Wikipedia, it seems like it has something to do with the glottis, but I'm not clear on the mechanism that makes speech sound so different when air is coming in. Via deep scien... | {
"domain": "biology.stackexchange",
"id": 3151,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "human-biology, human-anatomy, breathing",
"url": null
} |
heat, thermal-conductivity
Title: Why would a ~1 cm thick layer of argon be a significantly poorer conductor of heat than air? In yesterday's new Periodic Video, Argon (new) - Periodic Table of Videos, after about 07 min 00 sec, Sir Martyn Poliakoff says:
The final, and I have to admit perhaps slightly boring applica... | {
"domain": "chemistry.stackexchange",
"id": 10525,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "heat, thermal-conductivity",
"url": null
} |
ros, ros2, hardware-interface
Title: behavior of start/stop in new ros2_controls system interface
If I understand correctly, the proper use of start/stop in a controller's system interface is for switching between robot operating modes such as position control to effort or velocity control usually via switch_controll... | {
"domain": "robotics.stackexchange",
"id": 36089,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros2, hardware-interface",
"url": null
} |
a right. Kuta Software - Infinite Geometry Name_____ The Pythagorean Theorem and Its Converse Date_____ Period____ Find the missing side of each triangle. Important theorems of GEOMETRY by ABHISHEK JAIN. Duration: 0 hrs 30 mins Scoring: 20 points Study: Solving the Mirror Problem Learn about applying theorems from this... | {
"domain": "lotoblu.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9848109516378093,
"lm_q1q2_score": 0.8141548265466336,
"lm_q2_score": 0.826711791935942,
"openwebmath_perplexity": 1097.5482735592198,
"openwebmath_score": 0.4311477541923523,
"tags":... |
meteorology, barometric-pressure, radiosounding
But you'll find that pressure at the ground is lower in most locations than is indicated on such a map. This is because, despite being called "surface maps", they're actually sea-level pressure maps. At any station situated above sea-level a weather balloon cannot acqu... | {
"domain": "earthscience.stackexchange",
"id": 1012,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteorology, barometric-pressure, radiosounding",
"url": null
} |
This is a (sketch of a) proof when the symmetric matrix $A$ is real. Let $u_1, \ldots, u_n$ be the linearly independent eigenvectors which correspond to the positive eigenvalues $\lambda_1, \ldots, \lambda_n$ of the real symmetric matrix $A$. Also, let $z = c_1 u_1 + \cdots + c_nu_n$ be a random $n \times 1$ real vecto... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9702399034724604,
"lm_q1q2_score": 0.8021087692074731,
"lm_q2_score": 0.826711791935942,
"openwebmath_perplexity": 124.8372702256305,
"openwebmath_score": 0.9457560777664185,
"tags... |
performance, python-3.x, programming-challenge, reinventing-the-wheel, converting
As you can see, the first function validates input and splits the input into chunks, in the same loop, I could have used a regex to split the input but that isn't much faster than the manual approach and I figure if I use regex I need at... | {
"domain": "codereview.stackexchange",
"id": 42431,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "performance, python-3.x, programming-challenge, reinventing-the-wheel, converti... |
However, we count some of the cycles several times. Firstly, we distinguished the starting point $v_0$, which for a given cycle can be chosen in $k$ ways. Secondly, we distinguished an orientation, which for a given cycle can be chosen in two ways. Hence, each cycle is counted $2k$ times, and $T = n^{\underline{k}}/2k$... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9879462176445589,
"lm_q1q2_score": 0.8167467984702687,
"lm_q2_score": 0.8267118026095991,
"openwebmath_perplexity": 144.6165478697357,
"openwebmath_score": 0.9447139501571655,
"tag... |
$\pmb{c} = \begin{bmatrix} \frac{3}{T_1T_2}[T_1^2(Q_3-Q_2)+T_2^2(Q_2-Q_1)] \pmb{- T_2V_1} \\ \frac{3}{T_2T_3}[T_2^2(Q_4-Q_3)+T_3^2(Q_3-Q_2)] \\ \vdots \\ \frac{3}{T_{n-3}T_{n-2}}[T_{n-3}^2(Q_{n-1}-Q_{n-2})+T_{n-2}^2(Q_{n-2}-Q_{n-3})] \\ \frac{3}{T_{n-2}T_{n-1}}[T_{n-2}^2(Q_{n}-Q_{n-1})+T_{n-1}^2(Q_{n-1}-Q_{n-2})] \pmb{... | {
"domain": "sltr.us",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9879462226131666,
"lm_q1q2_score": 0.8397258179528557,
"lm_q2_score": 0.849971181358171,
"openwebmath_perplexity": 3522.9949031298083,
"openwebmath_score": 1.0000100135803223,
"tags": null,
... |
stress-strain, solid-mechanics
Title: Why shear stress is developed only in the two set of planes for a rotating pressurized solid cylinder? Why not in the third set of plane? In case of a rotating pressurized solid cylinder,why shear stress is not developed in the $ABCD\ \& \ EFGH$ planes while the other two set of ... | {
"domain": "physics.stackexchange",
"id": 49168,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "stress-strain, solid-mechanics",
"url": null
} |
Kudos for a correct solution.
MAGOOSH OFFICIAL SOLUTION
Algebraic Solution: If she makes a total profit of T for N watches, then that must be a profit of T/N for each watch. That must be the markup above cost on each watch, the amount of the increase. Well, percent increase = (amount of increase)/(starting amount) x ... | {
"domain": "gmatclub.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9674102477171955,
"lm_q1q2_score": 0.8582908071280985,
"lm_q2_score": 0.8872045847699185,
"openwebmath_perplexity": 10509.071517360848,
"openwebmath_score": 0.2825273871421814,
"tags": ... |
javascript, angular.js
function MainController($scope, focus) {
$scope.focusTarget = 1; // last acitve input box --> sets first focus
focus('focus' + $scope.focusTarget); // activate focus with-out class
}
function FocusFactory($rootScope, $timeout) {
return function (name, iconClass) {
$timeout(f... | {
"domain": "codereview.stackexchange",
"id": 15268,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "javascript, angular.js",
"url": null
} |
ros, catkin, ros-kinetic, odroid, ros-arduino-bridge
Title: How to subscribe to ros_arduino_msgs?
I'm using the ROSArduinoBridge to connect an ODROID to an Arduino and I'd like to subscribe to a digital sensor topic that the ROSArduinoBridge is publishing. I can't figure out the C++ syntax to be able to do this. Has ... | {
"domain": "robotics.stackexchange",
"id": 27250,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, catkin, ros-kinetic, odroid, ros-arduino-bridge",
"url": null
} |
# Name the generalization of regular tetrahedron in higher dimension
By a regular tetrahedron, I’m referring to the tetrahedron formed by connecting the vertices of the $3$-simplex with the “far corner” $(1, 1, 1)$. That is, the four vertices of this regular tetrahedron are $(1, 0, 0) ,\, (0, 1, 0) ,\, (0, 0, 1)$, and... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138177076645,
"lm_q1q2_score": 0.810464918666439,
"lm_q2_score": 0.8289387998695209,
"openwebmath_perplexity": 604.7333897701359,
"openwebmath_score": 0.8457856774330139,
"tags... |
wavelet, stft, time-frequency
& = \frac{1}{2 \pi} \int_{-\infty}^{\infty} \left[ \frac{2 \pi}{c_g} \int_{-\infty}^{\infty} X_{a,\tau}(\omega) \ \frac{1}{\sqrt{a}} w\left( \frac{t-\tau}{a} \right) \ d\tau \right] \ e^{j\omega t} \ d\omega \\
& = \frac{1}{2 \pi} \int_{-\infty}^{\infty} X(\omega) \ e^{j\omega t} \ d\om... | {
"domain": "dsp.stackexchange",
"id": 1448,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "wavelet, stft, time-frequency",
"url": null
} |
java, object-oriented, game
for(Brick brick : bricks) {
ball.collide(brick);
}
// Player loses when ball goes out of screen
if(ball.getPositionY() > Game.FRAME_HEIGHT){
sbg.enterState(Game.gameOver);
}
// Player wins when all bricks have been destroyed
... | {
"domain": "codereview.stackexchange",
"id": 13264,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, game",
"url": null
} |
php, php5, http, i18n
}
private function _langFileExist($langFile) {
if(file_exists('langs/'.strtolower($langFile.'.php')))
return true;
}
}
$langs = new Langs();
echo 'Current Language: '.$langs->currentLang;
require('langs/'.$langs->currentLang.'.php');
?>
<!DOCTYPE html>
<html>
<head>... | {
"domain": "codereview.stackexchange",
"id": 18797,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, php5, http, i18n",
"url": null
} |
ros, catkin, bloom-release, debian, release
Title: How should I build Debian packages on a local build server?
We're migrating from Fuerte to Hydro (rosbuild to catkin, more specifically), and all our existing build scripts that generate Fuerte-package-based Debian packages will no longer work. I understand the reco... | {
"domain": "robotics.stackexchange",
"id": 20348,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, catkin, bloom-release, debian, release",
"url": null
} |
elemental-abundances
The elements you mention (actually are all "islands of nuclear stability". Whilst their binding energy per nucleon is not as high as that of iron, it is a little higher than elements immediately around them in the periodic table.
Nuclear fusion reactions are exothermic (up to iron), but they req... | {
"domain": "astronomy.stackexchange",
"id": 1521,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "elemental-abundances",
"url": null
} |
Homogeneous, linear, first-order, ordinary differential equation mistake
kalish
Member
I am trying to solve a homogeneous, first-order, linear, ordinary differential equation but am running into what I am sure is the wrong answer. However I can't identify what is wrong with my working?!
$$\frac{dy}{dx}=\frac{-x+y}{x... | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9820137926698566,
"lm_q1q2_score": 0.8665563283036785,
"lm_q2_score": 0.8824278587245935,
"openwebmath_perplexity": 642.77967215736,
"openwebmath_score": 0.881708562374115,
"tags"... |
c#, multithreading, simulation
}// End of class Teller
} A list of things you could improve:
Do not write comments like this: // End of class Teller
It’s very easy to see in Visual Studio where a class starts and ends.
Add XML comments to your classes, method, properties, fields etc.
See: https://msdn.microsoft.com/e... | {
"domain": "codereview.stackexchange",
"id": 12849,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, multithreading, simulation",
"url": null
} |
java, object-oriented, design-patterns, text-editor
public DisplayCommand(TextPad textPad) {
this.textPad = textPad;
this.m = 0;
this.n = this.textPad.getLines().size();
}
It exists a constructor for all arguments DisplayCommand(TextPad textPad, int m, int n) and a constructor, which takes only one argument ... | {
"domain": "codereview.stackexchange",
"id": 33879,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, design-patterns, text-editor",
"url": null
} |
Note: ß and µ need not be distinct, and they may even be complex conjugates of each other.
I want to see an example of factoring a trinomial in the type of ax(squared) + bx + c where a is greater than 1 and a, b, c do not have a common factor greater than 1.
Julie - Chuck's answer leads you to the quadratic formula, wh... | {
"domain": "appspot.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9674102524151826,
"lm_q1q2_score": 0.8203326975969437,
"lm_q2_score": 0.8479677526147223,
"openwebmath_perplexity": 662.2570905678609,
"openwebmath_score": 0.5798130631446838,
"tags": nu... |
physical-chemistry, spectroscopy
So first, the efficiency of the transfer $E_\mathrm{eff}$ is actually a ratio of the actual transfer efficiency divided by the maximum efficient (which we should assume is "one", unless we are told otherwise.
The next step is a bit hard to explain, as I am not that good in math, but I... | {
"domain": "chemistry.stackexchange",
"id": 4353,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "physical-chemistry, spectroscopy",
"url": null
} |
n) = P n i=1 E(T i) = n/λ. The exponential distribution refers to the continuous and constant probability distribution which is actually used to model the time period that a person needs to wait before the given event happens and this distribution is a continuous counterpart of a geometric distribution that is instead ... | {
"domain": "spectum.biz",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534349454033,
"lm_q1q2_score": 0.8135648324914615,
"lm_q2_score": 0.8289387998695209,
"openwebmath_perplexity": 855.4905246527203,
"openwebmath_score": 0.7408099174499512,
"tags": nu... |
quantum-field-theory, conventions, fourier-transform, complex-numbers, klein-gordon-equation
performing the integration on $k_0$
$$\phi(x)=\int \frac{d^3 k}{(2\pi)^3}\frac{1}{2\omega}(f(\omega,\mathbf{k})e^{i\mathbf{k}\cdot\mathbf{x}+i\omega t}+f(-\omega,\mathbf{k})e^{i\mathbf{k}\cdot\mathbf{x}-i\omega t})\tag{7}$$
In... | {
"domain": "physics.stackexchange",
"id": 53539,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "quantum-field-theory, conventions, fourier-transform, complex-numbers, klein-gordo... |
vba, excel
In order to search for the last cell, I used a function that finds the last cell with data.
I am not sure what the 3 value does when calling the FindLast method with FindLast(3, "ZZ_CM_BNREG"). I suspect you are starting from the 3rd row.
The commented line Set lastCell = Range(Cells.Find("*", , xlFormulas... | {
"domain": "codereview.stackexchange",
"id": 40518,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, excel",
"url": null
} |
particle-physics, symmetry, notation, quantum-chromodynamics, isospin-symmetry
In this regard, Griffith's Introduction to Elementary particles, I think, uses a clearer notation. They represent general nucleon state $|N\rangle$ as $$|N\rangle=\alpha|p\rangle+\beta|n\rangle\tag{4}$$ with $$|p\rangle=\begin{pmatrix}1\\0\... | {
"domain": "physics.stackexchange",
"id": 43128,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "particle-physics, symmetry, notation, quantum-chromodynamics, isospin-symmetry",
... |
slam, navigation, ros-kinetic, slam-gmapping, gmapping
Title: Error launching Gmapping node on ROS
Hi,
I am using ROS kinetic on ubuntu 16 and have installed the binaries for openslam and slam_gmapping using the command
sudo apt-get install ros-kinetic-slam-gmapping and sudo apt-get install ros-kinetic-openslam-gmapp... | {
"domain": "robotics.stackexchange",
"id": 32154,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "slam, navigation, ros-kinetic, slam-gmapping, gmapping",
"url": null
} |
thermodynamics, pressure, work, dimensional-analysis, volume
Title: Why is there a volumetric dimension to pressure-volume work? This concept was a bit hard to grasp, because I'm bad at seeing the real-world implications of multiplication. Division makes sense, but multiplication is harder for me. Pressure-volume work... | {
"domain": "physics.stackexchange",
"id": 77773,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics, pressure, work, dimensional-analysis, volume",
"url": null
} |
ros, navigation, extended-kalman-filter, robot-localization, amcl
<rosparam param="initial_estimate_covariance">[0.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0.3, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... | {
"domain": "robotics.stackexchange",
"id": 22965,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, navigation, extended-kalman-filter, robot-localization, amcl",
"url": null... |
c++, strings, immutability
//! Return length of string.
size_type size() const noexcept { return *(getPtrToLength(mStr)); }
//! Return length of string.
size_type length() const noexcept { return *(getPtrToLength(mStr)); }
//! Test if string is empty.
bool empty() const noexcept { return (length() ... | {
"domain": "codereview.stackexchange",
"id": 45074,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, strings, immutability",
"url": null
} |
general-relativity
Title: How does one write the Einstein field equations in terms of Ricci tensor? How can I go from the 'standard' Einstein equations
$R_{\mu\nu} - \frac{1}{2}g_{\mu\nu}R = \frac{8\pi G}{c^4}T_{\mu\nu}$ to these equations:
$R_{\mu\nu} = \frac{8\pi G}{c^4}(T_{\mu\nu} - \frac{1}{2}g_{\mu\nu}T)$? Take t... | {
"domain": "physics.stackexchange",
"id": 6026,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity",
"url": null
} |
lambda-calculus, types-and-programming-languages
Title: Confused about beta-reduction/shifting in untyped $\lambda$-calculus with de Bruijn terms In Types and Programming Languages, the family of sets of terms with de Bruijn indices in the untyped $\lambda$-calculus is defined in this way:
Let $T$ be the smallest fami... | {
"domain": "cs.stackexchange",
"id": 1917,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lambda-calculus, types-and-programming-languages",
"url": null
} |
beginner, reinventing-the-wheel, rust
vector_cloned.sort_unstable();
match is_even(&length) {
true => {
let length_halved = length / 2;
Some(((
&vector_cloned[length_halved - 1] +
&vector_cloned[length_halved]) as f64) / 2.0)
},
false =>
... | {
"domain": "codereview.stackexchange",
"id": 40595,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, reinventing-the-wheel, rust",
"url": null
} |
c++, linked-list
std::cout<<"\n--------------------------------------------------\n";
std::cout<<"--------------Deleting At Particular--------------";
std::cout<<"\n--------------------------------------------------\n";
obj.deleteSpecific(4);
std::cout << obj << std::endl;
std::cout << std::endl;
... | {
"domain": "codereview.stackexchange",
"id": 31521,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, linked-list",
"url": null
} |
beginner, haskell, io
let new_value = read tmp_value
let new_values = new_value : values
let new_index = index + 1
if new_index < len
then go new_values new_index len
else return new_values
Note that due to get_budget_values' type signature we don't have to use :: Float at read ... | {
"domain": "codereview.stackexchange",
"id": 29710,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, haskell, io",
"url": null
} |
general-relativity, black-holes, event-horizon, singularities
Title: Do particles in a black hole stay in constant orbit? Would particles behave the same way as a satellite orbiting earth, only far more compact and rapid correlating to the gravitational force of the black hole? Let's assume we are dealing with circula... | {
"domain": "physics.stackexchange",
"id": 24749,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "general-relativity, black-holes, event-horizon, singularities",
"url": null
} |
cc.complexity-theory, linear-algebra, polynomials
Title: Is there a polynomial time algorithm for creating a set of vectors in general position? It seems to be possible to create a set of vectors in $\mathbb{R}^n$ such that any subset of $n$ vectors forms a basis.
For example, in $\mathbb{R}^3$, here is such a set wit... | {
"domain": "cstheory.stackexchange",
"id": 3014,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cc.complexity-theory, linear-algebra, polynomials",
"url": null
} |
Here is an elaboration of your approach. Every $m$ iterations, we use the FFT algorithm to compute $m$ values of the convolution in time $O(n\log n)$, assuming that the subsequent $m$ values are zero. In other words, we are computing $$\sum_{i=0}^{n-1} w_i a_{t-i+k}, \quad 0 \leq k \leq m-1,$$ where $w_i$ are the $n$ w... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9859363725435202,
"lm_q1q2_score": 0.8216050286532331,
"lm_q2_score": 0.8333245953120233,
"openwebmath_perplexity": 216.76913854279684,
"openwebmath_score": 0.934893012046814,
"tag... |
visible-light, speed-of-light, vision
Title: What do the stars really look like, if you could travel at almost lightspeed? I heard that the way light speed is shown in the movie "Star Wars" is not realistic.
About 1 month ago in a documentary on TV they said that it would be the opposite of the way it looks in "Star W... | {
"domain": "physics.stackexchange",
"id": 33126,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "visible-light, speed-of-light, vision",
"url": null
} |
primes, swift, iterator, swift3
Title: Postponed Prime Sieve in Swift Motivated by this question, I looked out for other "infinite prime generators", i.e. functions which produce the list of prime numbers in increasing order and do not have an a-priori upper limit (such as the standard implementation of the Sieve of E... | {
"domain": "codereview.stackexchange",
"id": 21289,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "primes, swift, iterator, swift3",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.