text stringlengths 49 10.4k | source dict |
|---|---|
thermodynamics, thermal-conduction, thermal-insulation
Compress the fleece thinner so there is less air volume. The acrylic will conduct better than the captured air.
Replace the air with a more conductive fluid like water, or oil, or thermal grease containing conductive metal powder.
Instead of using acrylic polymer ... | {
"domain": "engineering.stackexchange",
"id": 5446,
"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, thermal-conduction, thermal-insulation",
"url": null
} |
# Convergent of a series for arbitrary sequence
Prove that for arbitrary sequence $x_{1}, x_{2},...$ of $[0,1]$ there is a $x$ in $[0,1]$ such that below series is convergent: $$\sum_{n=1}^\infty \frac{1}{n^2|x-x_{n}|}.$$
• what if $x_n$ is an enumeration of the rationals; can there really be such an $x$? – user33590... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9905874094398219,
"lm_q1q2_score": 0.8052161238589964,
"lm_q2_score": 0.8128673110375457,
"openwebmath_perplexity": 291.86477027256194,
"openwebmath_score": 0.9970167279243469,
"ta... |
ros-melodic, rosbag
Title: rosbag play - skip every Nth file
Hi,
I have a bag with X images, and messages.
I want to test if rtabmap odometry can handle images at different frame rates (e.g. using half the frames)
Is it possible to play the bag in a way that skips every second frame, so I don't have to create a bag f... | {
"domain": "robotics.stackexchange",
"id": 32446,
"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, rosbag",
"url": null
} |
• Okay, that makes sense! There's two concepts of adjoint, which although they are closely related and for most intents and purposes the same, they're technically different, but people often pretend they're not, got it! Thanks for all your help, I really appreciate it. – CoffeeCrow Sep 29 '17 at 1:27 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822877044076956,
"lm_q1q2_score": 0.8030933641349404,
"lm_q2_score": 0.8175744850834648,
"openwebmath_perplexity": 112.63292863863386,
"openwebmath_score": 0.9213517308235168,
"ta... |
undecidability
Title: prove language is decidable The question is:
The language L contains $DFAs$ which can accept languages equal to $\Sigma$*
prove this language is decidable.
I'm new to the Decidability topic and I don't know where should I start proving this?
reduce? Rice theorem? or we don't need things like red... | {
"domain": "cs.stackexchange",
"id": 18484,
"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": "undecidability",
"url": null
} |
# Example of $(b_n)$ such that $\lim_{n\to\infty} {\frac1n}\sum_{i=1}^{n-1}b_i$ does not exists and $0\le b_n\le 1$
Find a ${{b_n}}$ $n\in\Bbb N$ and $0\le b_n\le 1$ such as the limit $$\lim_{n\to\infty} {\frac1n}\sum_{i=1}^{n-1}b_i$$ does not exist.
I don't know how to deal with this problem, it seems to me that thi... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799482964023,
"lm_q1q2_score": 0.8191851775600633,
"lm_q2_score": 0.8499711775577736,
"openwebmath_perplexity": 256.6222332854142,
"openwebmath_score": 0.8958603143692017,
"tag... |
2. Is there some way to directly find the exact value of $m^*$, without numerical optimization?
If not, is there a better/faster approach than brute-force numerical optimization techniques?
3. Is this a (convex?) optimization problem, and if not, can it be reformulated as one?
The trouble here is that I can't find any... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668717616668,
"lm_q1q2_score": 0.8489292184094119,
"lm_q2_score": 0.8652240947405565,
"openwebmath_perplexity": 332.85914753515885,
"openwebmath_score": 0.8766448497772217,
"ta... |
# Normal force in Ferris wheel
1. Dec 6, 2011
1. The problem statement, all variables and given/known data
The original problem is
Figure P6.61 shows a Ferris wheel( I have attached the image) that rotates four times
each minute. It carries each car around a circle of diameter
18.0 m. (a) What is the centripetal acce... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.953966101527047,
"lm_q1q2_score": 0.8127340967646585,
"lm_q2_score": 0.8519528057272544,
"openwebmath_perplexity": 823.2362684764907,
"openwebmath_score": 0.5098291039466858,
"tags... |
genetic-algorithms, evolutionary-algorithms, crossover-operators, genetic-operators, mutation-operators
Title: Why is cross-over a part of genetic algorithms? Genetic Algorithms has come to my attention recently when trying to correct/improve computer opponents for turn-based strategy computer games.
I implemented a s... | {
"domain": "ai.stackexchange",
"id": 66,
"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": "genetic-algorithms, evolutionary-algorithms, crossover-operators, genetic-operators, mutat... |
glaciology, antarctic, sea-ice
Fan et al. (2014) (3) describe an earlier idea that the increase in greenhouse gases and ozone depletion may cause an increase in the increased westerly winds, there is considerable uncertainty in the interaction between these factors (4).
Models from Holland et al. (2014) (4) suggest a ... | {
"domain": "earthscience.stackexchange",
"id": 446,
"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": "glaciology, antarctic, sea-ice",
"url": null
} |
over a three-dimensional region. Integrate can evaluate essentially all indefinite integrals and most definite integrals listed in standard books of tables. The sphere is a^2 = x^2 + y^2 + z^2, and for the equation for the upper hemisphere I get z = sqrt(a^2 - x^2 - y^2) = sqrt(a^2-r^2) The base of the hemisphere at z=... | {
"domain": "crossodromoriccia.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9886682461347529,
"lm_q1q2_score": 0.8238815722468086,
"lm_q2_score": 0.8333246015211008,
"openwebmath_perplexity": 427.74356691304456,
"openwebmath_score": 0.8706629872322083... |
array? 4. integer or floating-point). You can only transpose a 2D array. Orange Box Ceo 7,003,677 views. Multidimensional slices ¶. Like, in this case, I want to transpose the matrix2. Python: NumPyアレイの行と列の入れ替え(転置) –. Introduction. 2 or higher. flip(x) Out[4]: array([[9, 8, 7, 6, 5], [4, 3, 2, 1, 0]]) If you want to pri... | {
"domain": "aoly.pw",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9304582593509315,
"lm_q1q2_score": 0.8255068419581696,
"lm_q2_score": 0.8872045937171068,
"openwebmath_perplexity": 1326.5729224795555,
"openwebmath_score": 0.21431176364421844,
"tags": null... |
signal-analysis, modulation
Title: MSK signal recoverd though FM Discriminator? I am attempting to write a FFSK (differentially encoded MSK) modulator. I have found and implemented a demodulator that works with sample data taken from a radio of a FFSK signal. The demodulator uses a FM Discriminator to transform the ... | {
"domain": "dsp.stackexchange",
"id": 2138,
"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": "signal-analysis, modulation",
"url": null
} |
neural-networks, papers, semi-supervised-learning, image-net
Title: Is the initial teacher model in the Noisy Student algorithm noised? Reading through the paper on the Noisy Student algorithm, I have a quick question about how the initial teacher model is built.
In step 1 of the algorithm, the loss function is define... | {
"domain": "ai.stackexchange",
"id": 3279,
"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-networks, papers, semi-supervised-learning, image-net",
"url": null
} |
gauge-theory, quantum-chromodynamics, yang-mills, discrete, color-charge
Title: Is color charge quantized? I was reading this stackexchange question, and found the answer to my question not totally answered. Clearly there is color and anti-color in analogy to electric charge, and color charge clearly cannot vary from ... | {
"domain": "physics.stackexchange",
"id": 54262,
"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": "gauge-theory, quantum-chromodynamics, yang-mills, discrete, color-charge",
"url"... |
graphs, planar-graphs, connected, duality
Planar graph: A graph that can be embedded in $\mathbb{R}^2$.(1)
Plane graph: A planar graph together with a particular embedding $G\hookrightarrow\mathbb{R}^2$. I will call a plane graph just by the name $G$ of the graph itself. We call faces of a plane graph to the connected... | {
"domain": "cs.stackexchange",
"id": 17745,
"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": "graphs, planar-graphs, connected, duality",
"url": null
} |
complexity-theory, np-complete
Title: Proof of NP-completeness via extra information I have a set of multisets $S = \{ X_1, \dots, X_K\}$ where $X_i \subset \mathbb{R}$. I need to find an optimal partition $L^*, R^*$ such that this $E(L) + E(R)$ is minimized. Denote $K(X) = \cup_{I \in X} I$, then
$E(X) := \sum_{i \i... | {
"domain": "cs.stackexchange",
"id": 18322,
"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": "complexity-theory, np-complete",
"url": null
} |
waves, wavelength, superposition
Title: How many 'wavelengths of length' can a wave have? Since a wavelength, $\lambda$, is the length of a entire cycle
How many $\lambda$ (complete cycles) can a composed wave have? I mean, for $n \lambda$, how big can $n$ be? And what does it mean, physically?
I'm not necessarily ta... | {
"domain": "physics.stackexchange",
"id": 99507,
"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": "waves, wavelength, superposition",
"url": null
} |
python, tkinter
df = pd.DataFrame(df, columns=['A', 'Security', 'Ticker', 'Cusip', '*Yesterday*', 'Today', 'Tomorrow', 'Next 1D',
'Next 2D', 'Next 3D'])
# df.to_csv("_FullDataFrame-" + date_time + ".csv", sep=',')
df = df.drop('A', 1)
df = df.drop('Cusip', 1)
# df.to_... | {
"domain": "codereview.stackexchange",
"id": 26546,
"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, tkinter",
"url": null
} |
sql, sql-server
If I would simply use SUBSTRING to split the name I would end up in the staging table like this:
OrganisationID | Name1 | Name2
---------------+---------------------------------------------------+-----------------
1 | Microsoft Corporation ... | {
"domain": "codereview.stackexchange",
"id": 17660,
"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": "sql, sql-server",
"url": null
} |
dirac-matrices
EDIT: My answer below relies on the assumption that the multiplicity of the eigenvalues $m$ and $-m$ sum to $4$, which is equivalent to say that $\not p$ is diagonalizable. But since $\not p^\dagger=\gamma^0\not p \gamma ^0\neq \not p$, this seems to me anything but trivial! How can I prove that $\not p... | {
"domain": "physics.stackexchange",
"id": 57136,
"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": "dirac-matrices",
"url": null
} |
valves
Title: Solenoid valve that does not restrict air flow when open I wonder if such a valve exist - a cheap solenoid valve that when open does not restrict air flow?
I've only found solenoid valves for compressed air, although the opening may very (4-12mm) there is a small hole inside no matter what.
This is the o... | {
"domain": "engineering.stackexchange",
"id": 4861,
"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": "valves",
"url": null
} |
electrostatics, potential, capacitance, approximations
Title: Finding Mutual Capacitance of Two Identical Metal Spherical Balls? It is a question from the Irodov:
Find the capacitance of a system of two identical metal balls of radius $a$ if the distance between their centres is equal to $b$, with $b >> a$. The syste... | {
"domain": "physics.stackexchange",
"id": 79009,
"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": "electrostatics, potential, capacitance, approximations",
"url": null
} |
javascript, jquery, animation
$(document).on('mousemove', function(event) {
$('.pupille').each(function() {
var $pupille = $(this);
var $auge = $(this).closest('.auge');
$pupille.css({
left: koordinate($pupille, $auge, event, horizontal) + 'px',
top: koordinate($pup... | {
"domain": "codereview.stackexchange",
"id": 14022,
"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, jquery, animation",
"url": null
} |
c#, multithreading, simulation
#region Properties
Invert if statements to reduce nesting:
if ( amount > ValueBalance )
return false;
Do not create classes inside of other classes. ( only do this if you need a private class which is only used in the scope of the other class )
Do not use Thread.Sleep inside... | {
"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
} |
navigation, mapping, sicklms, laserscan
Comment by hashim on 2016-05-18:
no keep it to 50hz. then... its more than enough
Comment by hashim on 2016-05-18:
share you tutorial.launch and mapping_default.launch files
Comment by bsk on 2016-05-18:
I cut the power of laser scanner and gave it again :) and now it connected ... | {
"domain": "robotics.stackexchange",
"id": 24557,
"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": "navigation, mapping, sicklms, laserscan",
"url": null
} |
Out[9]:
# Create a connecting line between dots¶
If needed, you can draw connecting lines between individual data points. In the example below, the line connects all the data dots in the order they occur in the data.
In [10]:
taylor.Marker.line = ["tail","line","line","line","line","line","head"]
taylor.Marker.line_... | {
"domain": "llnl.gov",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9532750427013548,
"lm_q1q2_score": 0.8121453472591873,
"lm_q2_score": 0.8519528057272543,
"openwebmath_perplexity": 5144.929284418173,
"openwebmath_score": 0.3973112106323242,
"tags": null,... |
java, calculator
// Calculates everything
if (preFilteredList.contains("*")) {
if (preFilteredList.get(operatorIndex).equals("*")) {
preFilteredList.set(operatorIndex + 1, (numberOne * numberTwo) + "");
replace = true;
}
}... | {
"domain": "codereview.stackexchange",
"id": 30882,
"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, calculator",
"url": null
} |
python
Title: Examples on kohonen self organizing maps Is there a simple example to start with for using kohonen 1.1.2 or is it only the test file that will be the reference? There are alternative solutions for self organizing maps.
Best of them I found pymvpa where the example is easy to read and understand. It is a... | {
"domain": "datascience.stackexchange",
"id": 2895,
"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",
"url": null
} |
general-relativity, visible-light, astrophysics, curvature, refraction
Actually "Straumann" recommends to compute the integral with the saddle point method. The result at the end of the exercise is not given. But I guess, it was already done and the result will be probably much smaller than the famous angle deviation ... | {
"domain": "physics.stackexchange",
"id": 81427,
"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, visible-light, astrophysics, curvature, refraction",
"url": ... |
newtonian-mechanics, reference-frames, vectors, rotation
Title: Rotation of a vector Is a vector necessarily changed when it is rotated through an angle?
I think a vector always gets changed because its projection will change, and also its inclination with axes will always change. However the direction may remain same... | {
"domain": "physics.stackexchange",
"id": 30401,
"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": "newtonian-mechanics, reference-frames, vectors, rotation",
"url": null
} |
diffraction
Title: is this the difraction limit of our microscope? I took the picture below with our microscope.
It's a 8mm roller bearing, lighted from below with a parallel light bundel (white).
The width of the yellowish light fringe is maybe 5 micron.
Originally I was hoping to make pictures with an accuracy of li... | {
"domain": "physics.stackexchange",
"id": 41858,
"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": "diffraction",
"url": null
} |
probability-theory, weighted-graphs, mathematical-foundations, markov-chains
$P$ is the transition probability matrix indicating the probability of getting from one state to another, and $\pi$ is the initial probability distribution representing the likelihood for the system to start in a certain state. [emphasis adde... | {
"domain": "cs.stackexchange",
"id": 4328,
"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": "probability-theory, weighted-graphs, mathematical-foundations, markov-chains",
"url": ... |
java, multithreading, api, asynchronous
Title: Very simple async MixpanelAPI I would love to hear feedback on my first open source project (a very simple async API for Mixpanel).
It implements a REST client for this REST HTTP API.
Review requested on the following aspects:
Code style (formatting, naming etc...)
Code... | {
"domain": "codereview.stackexchange",
"id": 6472,
"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, multithreading, api, asynchronous",
"url": null
} |
error-analysis
If I express it as 0, should I give precision to the 0? For example, 0 or 0.00 J.
Also, I know there are way better ways to express precision and significant figures, but this is what we are taught to do in class so I would like to stick to that. First problem: you're re-rounding. Never do that. Signifi... | {
"domain": "physics.stackexchange",
"id": 34274,
"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",
"url": null
} |
It shouldn't be too bad to show your DFA construction is correct. I would try to show that, on a string representing a number $$x$$, your DFA ends up in state $$S_j$$ where $$j\equiv x \pmod{n}$$, by induction on the string length. Then it ends in state $$S_0$$ iff $$x$$ is divisible by $$n$$.
But you can also apply th... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9591542829224748,
"lm_q1q2_score": 0.8094255963039685,
"lm_q2_score": 0.8438950966654774,
"openwebmath_perplexity": 137.4779142189386,
"openwebmath_score": 0.791401743888855,
"tags... |
c, programming-challenge, datetime
As for the algorithm itself… you should be able to do better than advancing a day at a time through an entire century. Why not advance a month at a time?
#include <stdio.h>
static const int *month_lengths(int year) {
static const int NON_LEAP_YEAR[] = {
31, 28, 31, 30, ... | {
"domain": "codereview.stackexchange",
"id": 29174,
"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, programming-challenge, datetime",
"url": null
} |
newtonian-mechanics, reference-frames, acceleration, buoyancy, fluid-statics
Title: What will be the buoyant force on an object in an accelerating container? Our teacher taught us it is vρ(g+a) when accelerating upward. But I can't understand the reason for it. Isn't it vρg as buoyant force is equal to the weight of d... | {
"domain": "physics.stackexchange",
"id": 47658,
"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": "newtonian-mechanics, reference-frames, acceleration, buoyancy, fluid-statics",
"... |
human-biology, respiration
Title: Surviving only on another's exhales? While reading this - Surviving under water in air bubble - this question came to me:
How long can an adult person survive on breathing in only exhales of another adult person? Can this be even calculated by not relying on rough approximations or th... | {
"domain": "biology.stackexchange",
"id": 9554,
"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, respiration",
"url": null
} |
python, python-2.x, interview-questions, api
if diffVectMag <= threshold:
cluster[seed][leaf] = 1
if len(cluster[seed]) < 10:
skipList[seed] = 1
elif len(cluster[seed]) > 150:
clusterSize = len(cluster[seed])
saveVector = [str(clusterSize)]+... | {
"domain": "codereview.stackexchange",
"id": 7886,
"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, python-2.x, interview-questions, api",
"url": null
} |
homework-and-exercises, general-relativity, black-holes, geodesics, free-fall
We can now apply the inverse function theorem, to get
$$ \frac{d\tau}{dr} = -\sqrt{ \frac{r_0r}{2GM(r-r_0)}}.$$
We now have a first order ODE for $\tau$ as a function of $r$, with no explicit dependence on $\tau$ on the right hand side, so t... | {
"domain": "physics.stackexchange",
"id": 93737,
"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, general-relativity, black-holes, geodesics, free-fall",
... |
Try it online!
Calculates $$\\frac{1}{2^n}H_nX\frac{1}{2^n}H_n\$$; constructs $$\\frac{1}{2^n}H_n\$$ by Kronecker product %x%.
Looks like I can still golf, recalling that 1-2*!3:0 is shorter than c(1,1,1,-1) as I realized in the comments to this answer.
# Pari/GP, 51 bytes
a->h=1;while(#h<#a,h=matconcat([h,h;h,-h])... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9850429147241161,
"lm_q1q2_score": 0.8098915775838288,
"lm_q2_score": 0.8221891305219504,
"openwebmath_perplexity": 4318.688964080831,
"openwebmath_score": 0.5411889553070068,
"tag... |
comparison, genetic-algorithms, programming-languages, genetic-programming
Title: What is the best programming language to learn to implement genetic algorithms? What is the best and easiest programming language to learn to implement genetic algorithms? C++ or Python, or any other? Matlab may be a good option to get s... | {
"domain": "ai.stackexchange",
"id": 785,
"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": "comparison, genetic-algorithms, programming-languages, genetic-programming",
"url": nul... |
search-algorithms
but what if the cost is negative, won't the search algorithm possibly trapped in infinite loops?
There can't be negative costs. If there are negative nodes, you'd have to modify the algorithm by removing its termination condition, effectively reducing it to a brute force search.
For example, consid... | {
"domain": "cs.stackexchange",
"id": 9764,
"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": "search-algorithms",
"url": null
} |
quadcopter, pid, imu
//Timers
RtosTimer *_updateTimer;
// A thread to monitor the serial ports
void FlightControllerThread(void const *args)
{
//Update Timer
_updateTimer = new RtosTimer(Task500Hz, osTimerPeriodic, (void *)0);
int updateTime = (1.0 / UPDATE_FREQUENCY) * 1000;
_updateTimer->start(up... | {
"domain": "robotics.stackexchange",
"id": 373,
"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": "quadcopter, pid, imu",
"url": null
} |
• You have to look for $1$, because sometimes you won't find $-1$. For example: $10^2\equiv 18, 10^3\equiv 16, 10^4 \equiv 37, 10^5 \equiv 1 \pmod {41}$, so the repeat of $\frac 1{41}$ is $5$ long. – jcsahnwaldt says GoFundMonica Mar 26 '15 at 5:37
• You assume that 'there are no factors of 2,5 in the denominator' is i... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9919380087100573,
"lm_q1q2_score": 0.860045718242468,
"lm_q2_score": 0.8670357529306639,
"openwebmath_perplexity": 275.79690002552144,
"openwebmath_score": 0.974265992641449,
"tags... |
quantum-mechanics, quantum-information, quantum-spin
Title: How to measure average value of qubits? Recently I have been studying quantum mechanics in The Theoretical Minimum by Susskind. In his experiment, when the apparatus rotated by an arbitrary angle within the $x{–}z$ plane, the average measurement result is $\h... | {
"domain": "physics.stackexchange",
"id": 77244,
"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-information, quantum-spin",
"url": null
} |
discrete-mathematics, computer-networks
Title: Hamming Distance, Bit message My professor told us to try and remember the equation used for an upcoming exam, however I'm struggling to fit the equation into the question:
https://i.stack.imgur.com/RoPYG.png
(need a high reputation to post image)
From the above informati... | {
"domain": "cs.stackexchange",
"id": 4728,
"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": "discrete-mathematics, computer-networks",
"url": null
} |
rest, typescript, redux, angular-2+
These HTTP calls are mixed up inside my action-creator services. This seemed pretty reasonable to me, but I'm new to Redux and thought others might disagree. Am I being crazy here?
DISCLAIMER: I'm not very familiar with Redux. In my book triggering fetchX requests based on getConfi... | {
"domain": "codereview.stackexchange",
"id": 28767,
"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": "rest, typescript, redux, angular-2+",
"url": null
} |
python, datetime
"""
Compute the adjacent days, but keeping the order of the elements
the following: today, yesterday, tomorrow, and the day after tomorrow.
This is done because the looking up later on is done sequentially
and the order reflects the probability of being the needed date
(i.e. it's m... | {
"domain": "codereview.stackexchange",
"id": 10342,
"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, datetime",
"url": null
} |
filters, signal-detection, noise
what @geometrikal said. Even if you have a really good power supply, some -60dB of what happens on the grid side will leak to your internal supply power. Now, guessing from your diagram ($f_\text{max} \approx 2\,\text{kHz}$, $\Delta_f = 2\,\text{Hz}$) I'd say I'm looking at a signal sa... | {
"domain": "dsp.stackexchange",
"id": 3063,
"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": "filters, signal-detection, noise",
"url": null
} |
-64 cube root of 64 = \., so factor out ( x + 4 ) ( cube root of 64 ) and imaginary! Real ( -4 ) ( x^2 -4x + 16 ) = 0 -64 =! Following numbers by prime factorisation method to explain, we can understand why such myth carries on explain. Of 2 up there symbol is called the radical spans over the entire equation for which... | {
"domain": "4refuelvictoria.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9626731158685838,
"lm_q1q2_score": 0.8083893170902783,
"lm_q2_score": 0.83973396967765,
"openwebmath_perplexity": 884.7710798623715,
"openwebmath_score": 0.6525101661682129,
"tag... |
ds.algorithms, co.combinatorics, approximation-algorithms
Hence it is NP-hard to find an optimal $s$. The same idea can be used to show that the problem is hard for any $0 < p < 1$.
Edit: Now a natural question is whether there is an approximation algorithm – for example, can one always find a feasible solution $s$ t... | {
"domain": "cstheory.stackexchange",
"id": 1124,
"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": "ds.algorithms, co.combinatorics, approximation-algorithms",
"url": null
} |
proteins
This is the same principle that allows electricians to work on maintaining electrical pylons without shutting down the power grid. https://en.wikipedia.org/wiki/Live-line_working
They work in such a way as to maintain the same voltage as the lines they are working on. If they were grounded — if they held a co... | {
"domain": "biology.stackexchange",
"id": 10072,
"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": "proteins",
"url": null
} |
const int MOD = 1e9 + 7;
const int N = 1e5 + 7;
int fact[N];
void init(){
fact[0] = 1;
for(int i=1;i<N;i++){
fact[i] = (fact[i-1] * i) % MOD;
}
}
void solve(){
int n; cin>>n;
assert(n <= 1e5);
int a[n];
map<int, int> M;
for(int i=0;i<n;i++){
cin>>a[i];
assert(a[i] >= 0 and a[i] <= 1e9);
M[a[i]]++;
}
int ans = 1;
int ... | {
"domain": "codedrills.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9817357221825194,
"lm_q1q2_score": 0.8710004322887758,
"lm_q2_score": 0.8872045832787204,
"openwebmath_perplexity": 7735.135732871213,
"openwebmath_score": 0.6183327436447144,
"tags": ... |
php, array
/* Results
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
[5] => 6
[6] => 7
[7] => 8
[8] => 9
[9] => 10
)
Array
(
[0] => 5
[1] => 6
[2] => 7
[3] => 8
[4] => 9
[5] ... | {
"domain": "codereview.stackexchange",
"id": 30723,
"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, array",
"url": null
} |
thermodynamics, elasticity
I also devide equation \eqref{eq3} by the systems actual volume $v$ and calculate the total differential of the resulting equation.
$$
de_v = -dp + s_v dT + Tds_v+\rho d\mu + \mu d\rho \label{eq6} \tag{6}
$$
Using \eqref{eq5}, I immediately obtain
$$
de_v = T ds_v + \mu d\rho \label{eq7} \t... | {
"domain": "physics.stackexchange",
"id": 50441,
"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, elasticity",
"url": null
} |
electrostatics, classical-electrodynamics
There is a force on the dielectric which pulls it into the capacitor and electric potential energy is converted into kinetic energy of the dielectric.
When the dielectric reaches the static equilibrium position it has kinetic energy and will overshoot the static equilibrium po... | {
"domain": "physics.stackexchange",
"id": 45941,
"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": "electrostatics, classical-electrodynamics",
"url": null
} |
particle-physics, mass, neutrinos, beyond-the-standard-model
-\sin\theta&\cos\theta}\pmatrix{|\nu_e\rangle\\|\nu_\mu\rangle}.
$$
We can do so if we ignore complex phase (which by itself can't be measured) and if we use the fact, that the wave function must be normalized. Essentially we are, of course, describing a 1-s... | {
"domain": "physics.stackexchange",
"id": 74206,
"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, mass, neutrinos, beyond-the-standard-model",
"url": null
} |
python, web-scraping, scrapy
for product_highlight in product_highlights:
organisation = product_highlight.css('a[data-company="ListingCompany"]::text').get()
if organisation and organisation.lower() in self.wanted_organisations:
# we are interested in the followin... | {
"domain": "codereview.stackexchange",
"id": 38840,
"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, web-scraping, scrapy",
"url": null
} |
homework-and-exercises, thermodynamics, ideal-gas
Title: Finding $U(S,V,N)$ for ideal gas, given $pV=NkT$ and $U(T)=N c_V T$ Given the experimental results for the ideal gas, I want to recover the internal energy expressed in its natural variables as:
$$U(S,V,N) = \alpha e^{\frac{S}{N c_V}} V^{\frac{c_V-c_p}{c_V}} N^{... | {
"domain": "physics.stackexchange",
"id": 25349,
"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, thermodynamics, ideal-gas",
"url": null
} |
Denoting with $[z^n]$ the coefficient of $z^n$ in a series we obtain the number of wanted words of length $n$ as \begin{align*} \color{blue}{f(n,k)}&=2^n-g(n,k)\\ &\color{blue}{=[z^n]\left(\frac{1}{1-2z}-\frac{1-z^k}{1-2z+z^{k+1}}\right)} \end{align*}
Example: Let's look at OPs example. We take $k=2$. We obtain with s... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9648551495568569,
"lm_q1q2_score": 0.8181660583290298,
"lm_q2_score": 0.8479677583778258,
"openwebmath_perplexity": 255.448688752165,
"openwebmath_score": 0.8574236035346985,
"tags... |
bash, linux, video
# #######
# colors
# #######
ir1)
rv=$( echo "$r1 + $gm" | bc -l )
gv1=$rv:$g1:$b1
;;
br1)
gv1=$c:$g1:$b1
;;
dr1)
rv=$( echo "$r1 - $gm" | bc -l )
gv1=$rv:$g1:$b1
;;
ir2)
rv=$( echo "$r2 + $gm" | bc -l )
gv2=$rv:$g2:$b2
;;
br2)
gv2... | {
"domain": "codereview.stackexchange",
"id": 19588,
"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, linux, video",
"url": null
} |
c#
if (!Processed) return;
_redisBackup?.AddListItem(_database, listKey, key.RedisKey);
_database.ListRightPush(listKey.RedisKey, key.RedisKey);
_redisObjectManager.SaveObject(invocation.Arguments[0], key.Id, _database);
}
else
{
... | {
"domain": "codereview.stackexchange",
"id": 16300,
"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#",
"url": null
} |
ros2, joint-state-publisher
Title: URDF and RVIZ2: cylinder not showing
Hi,
I am working through the urdf_tutorials and I found that rviz doesn't show the cylinder model correctly, it only shows the circle on the floor and isn't 'extruded'. The box and sphere work fine and are shown in rviz. There aren't any errors s... | {
"domain": "robotics.stackexchange",
"id": 37082,
"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": "ros2, joint-state-publisher",
"url": null
} |
linear-algebra, stress-strain, calculus
$$L:= \nabla u\:.$$
The rotation group, $SO(3)$, acts on it as follows:
$L \to L' := RLR^t$.
The idea is to decompose it with respect to the orthogonal decomposition of the space $D$ of double Cartesian tensors as a direct sum of irreducible and invariant subspaces under the abo... | {
"domain": "physics.stackexchange",
"id": 11522,
"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": "linear-algebra, stress-strain, calculus",
"url": null
} |
python, python-2.x, interview-questions, finance
Title: Calculate implied volatility for options on stocks and futures with two models I wrote a code for a quant finance job and they told me that, besides it worked, it was poorly written. I asked for a more detailed feedback but they did not send it to me. I paste it ... | {
"domain": "codereview.stackexchange",
"id": 31055,
"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, python-2.x, interview-questions, finance",
"url": null
} |
the parabola's minimum point (where the y value of the function i. Updated: Jan 20, 2015. Quadratic Equation Solver Find out the solution of any quadratic equation using this powerful tool - step by step explanation. What does quadratic function mean? Information and translations of quadratic function in the most compr... | {
"domain": "macchiaelettrodomestici.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718474806949,
"lm_q1q2_score": 0.8068126394205651,
"lm_q2_score": 0.8152324848629214,
"openwebmath_perplexity": 355.9055784617001,
"openwebmath_score": 0.530281722545623... |
ros, slam, navigation, rtabmap, ros-indigo
* /move_base/DWAPlannerROS/max_vel_y: 0.0
* /move_base/DWAPlannerROS/min_rot_vel: 0.4
* /move_base/DWAPlannerROS/min_trans_vel: 0.1
* /move_base/DWAPlannerROS/min_vel_x: 0.0
* /move_base/DWAPlannerROS/min_vel_y: 0.0
* /move_base/DWAPlannerROS/occdist_scale: 0.5
* ... | {
"domain": "robotics.stackexchange",
"id": 31373,
"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, slam, navigation, rtabmap, ros-indigo",
"url": null
} |
material-science, particle-detectors, applied-physics, sensor
Title: Physical processes taking place inside Germanium detectors Reading about differences between Silicon detectors and Germanium detectors, I decided to learn a bit more about the latter, since I've always used Silicon detectors in all the experiments I ... | {
"domain": "physics.stackexchange",
"id": 48578,
"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": "material-science, particle-detectors, applied-physics, sensor",
"url": null
} |
python
Title: Linked List class based implementation in Python I have the following class based linked list created in Python. I need some help in the best way to actually call and test this (print the results and output to the screen).
For an accepted answer, could someone please
1. use my existing code, to test/outp... | {
"domain": "codereview.stackexchange",
"id": 28057,
"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",
"url": null
} |
quantum-mechanics
Title: Parity of spin states Since orbital angular momentum commutes with the parity operator and since both are hermitian it is possible to build a common basis. These are the spherical harmonics, whose parity is known.
Now, we also know that since the spin operator commutes with the parity operato... | {
"domain": "physics.stackexchange",
"id": 8198,
"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",
"url": null
} |
Now integrate $$g(z) = e^{f(z)}/(1-z+z^2)$$ using keyhole contour. Let $$\gamma_1$$ be path slightly above $$[0,1]$$, $$\gamma_4$$ below. $$\gamma_2$$ be path slightly above $$[1,\infty)$$, $$\gamma_3$$ below. It is easily checked that $$\int_{\gamma 1} g(z) dz = I \qquad \qquad \int_{\gamma 4} g(z) dz = I e^{4\pi i/3}... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806523850543,
"lm_q1q2_score": 0.8192589978950674,
"lm_q2_score": 0.8354835432479661,
"openwebmath_perplexity": 360.0490490140246,
"openwebmath_score": 0.9987282752990723,
"tag... |
• Thanks so much @avid19 - this was an awesome explanation. – User001 Aug 16 '15 at 0:51
• My +1. I want to add here that there is a catch. There are cases when $f(n) \to L$ as $n \to \infty$ but $f(x)$ has no limit as $x \to \infty$. – Paramanand Singh Aug 16 '15 at 5:10
• @ParamanandSingh: The most obvious example wo... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9830850832642353,
"lm_q1q2_score": 0.8658984672047192,
"lm_q2_score": 0.8807970764133561,
"openwebmath_perplexity": 231.0501727535528,
"openwebmath_score": 0.9453845620155334,
"tag... |
image-processing, filters, fourier-transform, frequency-domain
Title: Magnitude of the Gradient in Frequency Domain I'm learning some basics of image processing. Recently I've read about image filtering and two-dimensional Fourier transform, because I'm preparing for exam. And I have one question I don't know answer f... | {
"domain": "dsp.stackexchange",
"id": 1854,
"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": "image-processing, filters, fourier-transform, frequency-domain",
"url": null
} |
c++, c++11, serialization, embedded
ber.cpp
#include <algorithm>
#include "ber.h"
Ber::Ber(uint8_t tag, unsigned short length, const uint8_t *message)
: _data(new uint8_t[totallength(length)])
{
uint8_t *ptr = _data;
*ptr++ = tag;
std::copy(message, message+length, lencode(&ptr, length));
}
Ber::Ber... | {
"domain": "codereview.stackexchange",
"id": 10134,
"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, serialization, embedded",
"url": null
} |
material-science
Title: Wood: A Naturally Occurring Composite Material? In materials science texts, I see wood used an example of a naturally occurring composite material. One of the main components of wood is cellulose, which is a polymer. But what other component makes it a composite?
Thanks for any clarification. t... | {
"domain": "physics.stackexchange",
"id": 56410,
"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": "material-science",
"url": null
} |
python, multithreading
class SimpleFIFO:
def __init__(self, length):
self.length = length
self.values = length * [None]
def contains(self, iid):
return iid in self.values
def append(self, value):
assert isinstance(value, str), "Only append strings"
self.values.app... | {
"domain": "codereview.stackexchange",
"id": 10719,
"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, multithreading",
"url": null
} |
physical-chemistry, electrochemistry
From a theoretical point of view, Butler-Volmer kinetics apply only to a one-step, one-electron transfer. The B-V equation may be derived by extending Eyring's theory to electrochemistry. Your equation seems to be extracted from the second edition of Bark & Faulkner's bible, but I ... | {
"domain": "chemistry.stackexchange",
"id": 17860,
"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, electrochemistry",
"url": null
} |
enter in the dialog for the function properties. Get the unbiased info you need to find the right school. constant() is useful if you need to retrieve the value of a constant, but do not know its name. A function is \"increasing\" when the y-value increases as the x-value increases, like this:It is easy to see that y=f... | {
"domain": "irubyist.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9615338079816758,
"lm_q1q2_score": 0.8210659881791824,
"lm_q2_score": 0.8539127603871312,
"openwebmath_perplexity": 872.9675177990762,
"openwebmath_score": 0.6055963039398193,
"tags... |
special-relativity, spacetime, universe, relativity, metric-tensor
Title: Trouble understanding spacetime and invariant interval First, how is the invariant interval useful? How can it help us understand things around us in the universe?
Second, I know that they changed time into space or better say SPACETIME in orde... | {
"domain": "physics.stackexchange",
"id": 30877,
"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": "special-relativity, spacetime, universe, relativity, metric-tensor",
"url": null... |
{ x \to 1^+ } \frac { |x 1|., and engineering topics see, we will instead rely on what we in... An approach to evaluating limits of functions that do not have finite.. ( \varepsilon \gt 0\ ) be an arbitrary positive number vertical asymptote and bbb are coprime,... A^+ } f ( a ) x\to 1 } { x \to 1^- } \frac { \sqrt { }... | {
"domain": "eliot.cz",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9770226260757067,
"lm_q1q2_score": 0.8098919775555254,
"lm_q2_score": 0.8289388146603365,
"openwebmath_perplexity": 1618.428281974271,
"openwebmath_score": 0.9772645235061646,
"tags": null,... |
distances, time
The book explains it in the following way -
"This is not a coincidence. The outermost regions of the universe are moving at a speed near the speed of light, and the particles flying about in the subatomic world are also moving at such speed. On both subatomic and cosmological frontiers, the speed of l... | {
"domain": "astronomy.stackexchange",
"id": 3431,
"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": "distances, time",
"url": null
} |
newtonian-mechanics
Will the rod now as a whole start to move/accelerate even if the ball is no longer touching the rod-end ?
Yes.
Or will the rod only stay there since there is no ball for the rod´s reflected wave to push on, and all motion we got is the compression wave going back and forth through the rod´s leng... | {
"domain": "physics.stackexchange",
"id": 16517,
"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": "newtonian-mechanics",
"url": null
} |
image-processing
Title: Difference between SNR and PSNR I understood that SNR is the ratio of signal power to the noise power. In terms of images, how the original image is affected by the added noise. In PSNR, we take the square of the peak value in the image (in case of an 8 bit image, the peak value is 255) and div... | {
"domain": "dsp.stackexchange",
"id": 7620,
"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": "image-processing",
"url": null
} |
Key Idea
We now discuss the key idea to the proof of the main theorem. Consider the produce space $X \times Y$. Let $\mathcal{U}$ be an open cover of $X \times Y$. Let $M \subset X \times Y$. The set $M$ is stable with respect to the open cover $\mathcal{U}$ if for each $x \in X$, there is an open set $O_x$ containing... | {
"domain": "wordpress.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9904406000885707,
"lm_q1q2_score": 0.8317066168422892,
"lm_q2_score": 0.8397339696776499,
"openwebmath_perplexity": 638.3159881490476,
"openwebmath_score": 1.000008463859558,
"tags... |
identity). ,1966-67 American Hockey League Media Guide,2019 TOPPS UFC KNOCKOUT PURPLE SHIRT FIGHTER WORN RELIC #/25 JESSICA AGUILAR. The proposed approach is. For the A above, we have A 2 = 0 1 0 0 0 1 0 0 = 0 0 0 0. Multiplication of matrices generally falls into two categories, Scalar Matrix Multiplication and Vector... | {
"domain": "ihuq.pw",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795114181105,
"lm_q1q2_score": 0.857514230470787,
"lm_q2_score": 0.8688267796346599,
"openwebmath_perplexity": 6607.073204715545,
"openwebmath_score": 0.199847012758255,
"tags": null,
... |
quantum-mechanics, operators, differentiation
Take
$$
\hat f_\epsilon = \sigma_3 + 3\epsilon \sigma_1 ~.
$$
Consider the state
$$
|\psi_\epsilon\rangle= (\cos −\sin ,\sin +\cos )^T,
$$
normalized to lowest order in ε.
You are then inspecting the vanishing or not of the expression
$$
(\langle \psi_\epsilon | \sigma_3+... | {
"domain": "physics.stackexchange",
"id": 69213,
"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, operators, differentiation",
"url": null
} |
But if $x \le 0$, the LHS is negative, while the RHS is nonnegative.
Hence we must have $x \ge 7$.
Square both sides and solve, but at each step, maintain the restriction $x \ge 7$, and check that the given step is reversible, so as to be sure that no solutions are gained or lost. \begin{align*} \text{Thus}\;\;&x - 4... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9773707999669627,
"lm_q1q2_score": 0.8186652956122391,
"lm_q2_score": 0.8376199653600371,
"openwebmath_perplexity": 379.39870174536924,
"openwebmath_score": 0.9475479125976562,
"ta... |
signal-analysis, frequency-spectrum, transfer-function, homework, bode
Title: Finding transfer function from bode plot Given a bode diagram
From the figure, I see that when $\omega = 100 \text{ rad/s}$ the magnitude response starting to go down and when $\omega = 1000 \text{ rad/s}$ the slope become higher. Then
$$H(... | {
"domain": "dsp.stackexchange",
"id": 10239,
"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": "signal-analysis, frequency-spectrum, transfer-function, homework, bode",
"url": null... |
programming-languages, type-theory, type-checking
We discover immediately that f : int -> ???. Let's introduce a fresh type variable R for the result, and say f : int -> R.
We then type check 1 + f(x) assuming the environment f: int -> R , x: int.
Here + is applied to arguments 1: int and f(x): R. Assuming + requires ... | {
"domain": "cs.stackexchange",
"id": 12729,
"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": "programming-languages, type-theory, type-checking",
"url": null
} |
c#, winforms
}
} Don't use StringBuilder in searchbtn_Click; use a Joined List<string>
You're combining a small number of small strings, so there's likely no real performance benefits in using a StringBuilder.
I would suggest creating a List<string> and then calling string.Join on the list:
var parts = new List<string... | {
"domain": "codereview.stackexchange",
"id": 38495,
"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#, winforms",
"url": null
} |
$A^*O$ is perpendicular to $BC$, the area of triangle $BOC$ is $(1/2)(BC)(A^*O)=(1/2)r a.$ Similarly the areas of COA and AOC are $(1/2)r b$ and $(1/2)r c.$ Adding these we have area $E=(1/2)(r a+r b+ rc)=rs.$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.986363167725074,
"lm_q1q2_score": 0.8017823892697501,
"lm_q2_score": 0.8128673246376008,
"openwebmath_perplexity": 99.06253583980111,
"openwebmath_score": 0.9445381164550781,
"tags... |
Explicit formula:
We derive from $G_k(z)$ an explicit formula of the wanted numbers. Denoting with $[z^n]$ the coefficient of $z^n$ in a series we obtain using the geometric series expansion
\begin{align*} [z^n]\frac{1}{1-2z+z^{k+1}}&=[z^n]\sum_{j=0}^\infty z^j(2-z^k)^j\tag{5}\\ &=\sum_{j=0}^n [z^{n-j}](2-z^k)^j\tag{... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357585701874,
"lm_q1q2_score": 0.8049525633543065,
"lm_q2_score": 0.822189134878876,
"openwebmath_perplexity": 251.28189099623708,
"openwebmath_score": 0.9415225982666016,
"tag... |
java, queue, breadth-first-search
/**
* Builds the tree and executes some functions
*/
public void run() {
// build the simple tree from chapter 11.
Node root = new Node(5);
System.out.println("Binary Tree Example");
System.out.println("Building tree with root value " + root.value);
insert(root, ... | {
"domain": "codereview.stackexchange",
"id": 12253,
"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, queue, breadth-first-search",
"url": null
} |
javascript, jquery
function getCurrentSize(element){
return Number($(element).attr('class').match(/\d+$/)[0]);
}
However, if you want each class to be evaluated separately, as mentioned in the comments, you could first try adding these elements to an array and then perform a common action on them. Something lik... | {
"domain": "codereview.stackexchange",
"id": 8065,
"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, jquery",
"url": null
} |
performance, php, datetime, json, formatting
In your one public method, you do nothing to validate that the parameters passed are reasonable for use with this function. You should validate and fail out (ideally with some sort of exception) if proper dependencies are not provided.
You should definitely not be setting ... | {
"domain": "codereview.stackexchange",
"id": 22536,
"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, php, datetime, json, formatting",
"url": null
} |
The standard half-normal distribution is also a special case of the chi distribution.
The standard half-normal distribution is the chi distribution with 1 degree of freedom.
Proof:
If $$Z$$ is a standard normal variable, then $$Z^2$$ has the chi-square distribution with 1 degree of freedom, and hence $$\left|Z\right... | {
"domain": "randomservices.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9884918516137419,
"lm_q1q2_score": 0.8011517948628916,
"lm_q2_score": 0.8104789063814616,
"openwebmath_perplexity": 272.1592719336342,
"openwebmath_score": 0.9960923790931702,
"ta... |
newtonian-mechanics, energy-conservation, work, potential-energy, biology
Title: If I lift a body with a force greater than its weight, what will happen to the excess energy provided to the body I will give an example to explain my question.
Case 1:
An elevator lifts body a with force equal to its weight for a distan... | {
"domain": "physics.stackexchange",
"id": 84460,
"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": "newtonian-mechanics, energy-conservation, work, potential-energy, biology",
"url... |
java, file-system
Let me also put some example record,
05|XXX476-319|458|AJKSDGAKSJDGJASDKJGASD|ASDJGASDFHANDVSNVSD|Babu|Villian|Pharmacy - Clinical Trials|London||United Kingdom|KJASDHKASJDGKASJDGAJKSDGJKASGD|A|Arewerwayo|Site Coordinator|Site Coordinator|||||0255555555||Denmark Hill|||London||SR5 3CS|United Kingdom
... | {
"domain": "codereview.stackexchange",
"id": 31871,
"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, file-system",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.