text stringlengths 1 1.11k | source dict |
|---|---|
computational-physics, vector-fields
Note: This is a part of the problem addressed here In many physical systems the field will be divergent only at a point, or a few points. In that case I'd be inclined to use the divergence theorem. Choose some suitable surface and integrate the flux over that surface. The integra... | {
"domain": "physics.stackexchange",
"id": 71687,
"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": "computational-physics, vector-fields",
"url": null
} |
javascript, strings
})(Function('return this')());//just be sure that we have the real window
Example of an execution (same HTML and CSS):
//main file, containing the main function
(function(window){
'use strict';
//fn keeps an internal reference to avoid problems with rewritting the window.highlight
var fn ... | {
"domain": "codereview.stackexchange",
"id": 13642,
"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, strings",
"url": null
} |
filters, audio, noise, denoising, deconvolution
Now I've never implemented a Wiener filter myself, so I will defer to a textbook with chapter dedicated to the subject: Advanced Digital Signal Processing (Electrical and Computer Engineering) by Glenn Zelniker and Fred J. Taylor. It's out of print, but I'm sure you can ... | {
"domain": "dsp.stackexchange",
"id": 593,
"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, audio, noise, denoising, deconvolution",
"url": null
} |
newtonian-mechanics, conservation-laws, inertial-frames
Now, because the ring will gain momentum due to the centrifugal force, this means that the velocity of the moving mass must decrease, in order to keep the total momentum constant. But how can the velocity of the mass decrease if the force on it (the centripetal f... | {
"domain": "physics.stackexchange",
"id": 77871,
"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, conservation-laws, inertial-frames",
"url": null
} |
c++
struct IsEqual
{
MyVariant mValue;
bool operator()( MyVariant &other ) const
{
return mValue == other;
}
IsEqual( MyVariant const& value ):mValue(value) {}
};
struct IsLessThan
{
MyVariant mValue;
bool operator()( MyVariant &other ) const
{
return other < mValue;
... | {
"domain": "codereview.stackexchange",
"id": 2717,
"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
} |
c++, qt
void Process::SetmemoryUsage(const double& memoryUsage)
{
_memoryUsage = memoryUsage;
}
void Process::SetcpuUsage(const double& cpuUsage)
{
_cpuUsage = cpuUsage;
}
void Process::UpdatecpuUsage()
{
/*
if constexpr (true) {
QString temp = "\\Process(";
auto tempName = _name;
... | {
"domain": "codereview.stackexchange",
"id": 38036,
"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++, qt",
"url": null
} |
was one idea about how to analyze it. Examples. A log transformation is a process of applying a logarithm to data to reduce its skew. However, you usually need the log from only one column of data. Coefficients in log-log regressions ≈ proportional percentage changes: In many economic situations (particularly price-dem... | {
"domain": "testnskill.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.951142225532629,
"lm_q1q2_score": 0.8026642734282651,
"lm_q2_score": 0.8438951104066293,
"openwebmath_perplexity": 1060.2394222625826,
"openwebmath_score": 0.48338210582733154,
"tags"... |
quantum-mechanics
With this definition you find $[\tilde{x}, \tilde{p}]=0$ on $D(\tilde{p})$.
The problem with this construction is that $\tilde{p}$ does not generate space displacements of the wavefunctions, $(e^{-ix_0\tilde{p}}\psi)(x)= \psi(x- x_0)$. And it does not seem that the situation improves as soon as $\de... | {
"domain": "physics.stackexchange",
"id": 11335,
"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
} |
javascript, event-handling, animation, dom
function renderLoop(){
requestAnimationFrame(renderLoop);
// If not time to update, don't do anything
// Update state
// - Check direction
// - Check walking state
// - - If frame at last frame, reset to 0
// - - If frame not last frame, advance current frame
... | {
"domain": "codereview.stackexchange",
"id": 16965,
"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, event-handling, animation, dom",
"url": null
} |
c#, beginner
public static bool getConfirmExit()
{
var choice = getChoices("Are you sure? (yes/no)", "yes", "no"); // get confirmation if user wants to exit
if (choice == "yes")
return true; // return true if user confirms that they want to exit
else
return false; //... | {
"domain": "codereview.stackexchange",
"id": 32200,
"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",
"url": null
} |
javascript, beginner, object-oriented, design-patterns
removeMarker = function() {
if (self.marker != null) {
self.editor.getSession().removeMarker(self.marker);
self.marker = null;
}
}
annotateLine = function(d) { //Called on mouseover in graph
removeMarker();
... | {
"domain": "codereview.stackexchange",
"id": 11010,
"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, object-oriented, design-patterns",
"url": null
} |
quantum-gate, textbook-and-exercises, nielsen-and-chuang, universal-gates
Achieving arbitrarily fine approximations of all angles
Now, as shown in the quoted paragraph from Nielsen & Chuang, the set
$$
\Theta=\{\theta_k\,|\,\theta_k=(k\theta)\mod{2\pi}\},
$$
of angles of rotations around $\hat{n}$ attainable by $R_\ha... | {
"domain": "quantumcomputing.stackexchange",
"id": 3202,
"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-gate, textbook-and-exercises, nielsen-and-chuang, universal-gates"... |
newtonian-gravity, acceleration, planets
Then you can determine how massive the Earth is. Given its size, and the gravitational acceleration at the surface, you determine its mass.
Then, how big the Moon is. Well, during a Moon eclipse, assuming the Sun is very very far away, the diameter of the Earth's shadow is equa... | {
"domain": "physics.stackexchange",
"id": 33867,
"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-gravity, acceleration, planets",
"url": null
} |
Intervals ⢠F(x) = Em On (0,2); F (x) = Cos(x) + Sin(20) On (0,1); ⢠F(x) = 1 On 1,3] . Let polynomial P n(x) be P There is a formula (the Lagrange interpolation formula) producing a polynomial curve of degree n â1 which goes through the points exactly. Curve Fit- Tools is better than most of the apps in the Play... | {
"domain": "saintseiya-pegasus.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9728307661011976,
"lm_q1q2_score": 0.8229588255859276,
"lm_q2_score": 0.8459424334245617,
"openwebmath_perplexity": 1037.5018445254555,
"openwebmath_score": 0.9514498114585876,
... |
algorithms, graphs, graphics, group-theory, polygons
Title: Detecting rotational symmetries of spatial structures I have a spatial graph-like structure. The structure consists of vertices in the 3D space and connecting edges. Are there any algorithms available that would identify the rotational symmetries of these str... | {
"domain": "cs.stackexchange",
"id": 14544,
"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": "algorithms, graphs, graphics, group-theory, polygons",
"url": null
} |
Proof:
$$Y = \sigma Z$$ where $$Z$$ is standard normal. Hence $$c Y = c \sigma Z$$.
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... | {
"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... |
binary-trees
Title: Maximum sum of depths of all external nodes in a Binary Tree Let $T$ be a (possibly improper) binary tree with $n$ nodes, and let $E(T)$ be the
sum of the depths of all the external nodes of $T$. (In a proper binary tree each node have 0 or 2 children. An external node is a leaf, i.e., any node t... | {
"domain": "cs.stackexchange",
"id": 10667,
"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": "binary-trees",
"url": null
} |
concurrency, cpu-cache, threads, shared-memory
void ThreadA()
{
A1: x = x * 2;
A3: int a = x;
}
void ThreadB()
{
B2: x = 20;
}
Is there a sequential execution in which, at the end, a = 40? Yes: B2, A1, A3.
B2 and A1 can be executed in any order (they belong to different threads). A1 is execut... | {
"domain": "cs.stackexchange",
"id": 6877,
"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": "concurrency, cpu-cache, threads, shared-memory",
"url": null
} |
and ability to compute for 2x2 games] Backward induction and subgame perfection [rudimentary knowledge] Stackelberg oligopoly model [ability to calculate the subgame-perfect equilibrium] Adverse selection [rudimentary understanding, in particular of lemons markets]. Such a strategy works when the blockage is not antici... | {
"domain": "vitadaprof.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9783846640860382,
"lm_q1q2_score": 0.8021710660441462,
"lm_q2_score": 0.8198933359135361,
"openwebmath_perplexity": 1128.9469731744705,
"openwebmath_score": 0.6604950428009033,
"ta... |
The mistake comes form the fact that the two possibilities of the second method are not disjoint.
For instance when putting the 6-th ball in a set of three buckets, if you have $(1,2,2)$ you can get $(2,2,2)$, or $(1,3,2)$ or $(1,2,3)$.
If you had $(0, 3, 2)$ you need to get $(1,3,2)$ which is a way that has already ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9658995782141545,
"lm_q1q2_score": 0.8151179293026689,
"lm_q2_score": 0.8438951084436077,
"openwebmath_perplexity": 286.08010442339463,
"openwebmath_score": 0.9184685349464417,
"ta... |
quantum-mechanics, wavefunction, heisenberg-uncertainty-principle
Title: Fourier Transform of a Wave Function relating to Position and Momentum Why is it that, in quantum mechanics, the fourier transform of a wavefunction of the position of a particle is the wavefunction of it's momentum? I'm trying to learn about the... | {
"domain": "physics.stackexchange",
"id": 88331,
"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, wavefunction, heisenberg-uncertainty-principle",
"url": null
... |
ros2
Could you have your "robot driver" publish TF frames: of course. But why bother?
But it does, should I remove/comment_out the robot node's existing transform broadcaster publisher, to let the robot_state_publisher and joint_state_publishers do that task?
I also see that the node is instantiating a joint_publishe... | {
"domain": "robotics.stackexchange",
"id": 36758,
"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",
"url": null
} |
machine-learning, feature-selection, random-forest, feature-engineering
Title: Thoughts on Feature Engineering of a duration_in_program Variable So I am trying to predict which customers would leave a loyalty program sponsored by X firm, using an ML classification model.
I further believe that the duration for which a... | {
"domain": "datascience.stackexchange",
"id": 6517,
"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, feature-selection, random-forest, feature-engineering",
"ur... |
computation rather than concepts. MATH 415 - Applied Linear Algebra - Fall 2020 Syllabus Other Linear Algebra courses. It builds up the theory of linear algebra in order to answer important questions about they solutions and the types of solutions associated with systems of linear equations, and transitions to utilizin... | {
"domain": "asdpallavolorossano.it",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9822876992225169,
"lm_q1q2_score": 0.8076262607866592,
"lm_q2_score": 0.822189121808099,
"openwebmath_perplexity": 1135.8759574371509,
"openwebmath_score": 0.3489063084125519,
... |
c, lock-free
if ( len >= 1000 )
{
//might have truncated, find proper new head
addLen = 0;
while( (int)(addLen) < len )
{
int fsize = work[addLen] + 1 + sizeof(struct timespec);
if (addLen + fsize <= len)
addLen... | {
"domain": "codereview.stackexchange",
"id": 15635,
"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, lock-free",
"url": null
} |
php, security, authentication
Concrete Attacks
For your concrete query, it might not look like an attacker can do all that much with this injection (the data is not displayed, and the login actually cannot be bypassed). But that is actually not true, as blind SQL injection is possible if the attacker knows a valid sch... | {
"domain": "codereview.stackexchange",
"id": 12389,
"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, security, authentication",
"url": null
} |
drcsim
Title: How do you re-specify the current step_queue using a Python script
What is the code similar to: self.client.sendgoal(walkgoal) used in the Keyboard Teleop example that sends only an updated set of steps while the BDI continues to actively execute a step list. Do we need to specify where in the list of ... | {
"domain": "robotics.stackexchange",
"id": 3272,
"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": "drcsim",
"url": null
} |
string-theory, fermions, supergravity, effective-field-theory
For the Pure spinor formalism, the supersymmetry is manifest, so the RR flux is simple to add. The supergravity equations follows from tree-level BRST holomorphicity+nilpotence. Futhermore the strings are more easy to be covariantly quantized in this formal... | {
"domain": "physics.stackexchange",
"id": 57453,
"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": "string-theory, fermions, supergravity, effective-field-theory",
"url": null
} |
game, vba, excel
The Code
Note, VB_PredeclaredId is set to True. For convenience, the raw file is available on pastebin.
Yes, yes, I know - I'll get it up on github eventually.
'CellDisplayDriver.cls
Option Explicit
Public Enum DriverErrors
NullRangeError = vbObjectError + 1
ArgumentError = vbObjectError + 2... | {
"domain": "codereview.stackexchange",
"id": 22054,
"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": "game, vba, excel",
"url": null
} |
php
which can them become :
echo 'Friday, '. (($today < $this_months_friday) ? $this_months_friday : $next_months_friday)->format('M j') . ' at 7pm'; | {
"domain": "codereview.stackexchange",
"id": 3042,
"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",
"url": null
} |
# Why doesn't this series converge absolutely? Is it uniformly convergent?
$\sum_{k=1}^\infty \frac{(-1)^{k+1}}{x^2+\sqrt{k}}$
Why doesn't it converge absolutely? I know it converges pointwise by alternating series test.
For uniform convergence:
I tried approximating $|R_n(x)|$ and got :
$|R_n(x)| \leq \frac{1}{x^... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9867771763033943,
"lm_q1q2_score": 0.8135602180636692,
"lm_q2_score": 0.824461932846258,
"openwebmath_perplexity": 182.07357206837244,
"openwebmath_score": 0.9360170364379883,
"tag... |
algorithm, c, calculator
Node *a = stack_pop(stack), *b = stack_pop(stack);
long double result;
switch (expr->operator) {
case '+':
result = b->number + a->number;
break;
case '-':
result = b->number - ... | {
"domain": "codereview.stackexchange",
"id": 45510,
"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": "algorithm, c, calculator",
"url": null
} |
# Thread: I need some examples
1. ## I need some examples
Is there a function which is defined on $\displaystyle \mathbb{R}$ but which is NOT continuous on ANY point of $\displaystyle \mathbb{R}$?
What about a function which is defined on $\displaystyle \mathbb{R}$ and is continuous at exactly TWO points of $\displa... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9825575137315161,
"lm_q1q2_score": 0.8166458487137177,
"lm_q2_score": 0.8311430499496096,
"openwebmath_perplexity": 205.06946941781987,
"openwebmath_score": 0.9417816996574402,
"ta... |
machine-learning, regression, dimensionality-reduction
1 - Exclude variables that are highly correlated with each other. If variables are highly correlated you are essentially inputting the same information multiple times which can cause over-fitting and does not satisfy the properties no multi-collinearity for linear... | {
"domain": "datascience.stackexchange",
"id": 2614,
"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, regression, dimensionality-reduction",
"url": null
} |
physical-chemistry, thermodynamics
Title: Are the values for enthalpy, internal energy and Gibbs free energy the same for a particular process? Internal energy, enthalpy and Gibbs free energy are all units of energy. So, for any particular process where energy is lost from the system the same amount is given off to th... | {
"domain": "chemistry.stackexchange",
"id": 3533,
"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, thermodynamics",
"url": null
} |
general-relativity, black-holes, hawking-radiation, qft-in-curved-spacetime, black-hole-thermodynamics
In the above-mentioned appendix 1 we find a demonstration that only those functions that explicitly depend on the (supposedly) degenerate coordinates $Q,T$ are affected by the divergence of $C_Q$. This is done by sim... | {
"domain": "physics.stackexchange",
"id": 43456,
"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, hawking-radiation, qft-in-curved-spacetime, black... |
c++, serialization, c++14, factory-method, polymorphism
class TLVFactory
{
public:
static std::unique_ptr<TLVObject> create(TLVObject::TLV_TYPE type) {
switch (type) {
case TLVObject::BYTE:
return std::make_unique<TLVByte>();
break;
case TLVObject::W... | {
"domain": "codereview.stackexchange",
"id": 17674,
"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++, serialization, c++14, factory-method, polymorphism",
"url": null
} |
fourier-transform, noise
It seems like when I take ensemble average of the lower curve, it will be dependent on $\omega$, which contradicts my calculation. Can someone please point out my mistake(s)?
clear all;
clc;
n = 2048;
ft = rand(1,n)*(2+2)-2 + 0;
t = linspace(-10,10,n);
Dt = 1/(t(3)-t(1));
fw = ifft(fft(t.*ft... | {
"domain": "dsp.stackexchange",
"id": 3346,
"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": "fourier-transform, noise",
"url": null
} |
homework, non-linear, inverse
Given that this system is neither linear nor time-invariant, checking for invertibility is not straight forward. The main issue is the operation of dividing by $\cos(\omega t)$ which must be valid for all $t$. This means that $\cos(\omega t)$ must never be zero, because division by zero i... | {
"domain": "dsp.stackexchange",
"id": 12457,
"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, non-linear, inverse",
"url": null
} |
c#, mvvm, xaml, rubberduck
One concern I have, is that I'm calling ICollectionView.Refresh() everytime a test finishes, which doesn't feel like it's optimal, especially given that I'm passing the TestMethod object that has just executed... but I haven't managed to get the groupings to refresh using that test parameter... | {
"domain": "codereview.stackexchange",
"id": 15436,
"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#, mvvm, xaml, rubberduck",
"url": null
} |
There is a quick reduction from POSITIVE 1-in-3 SAT; I give you only a sketch of it.
Given a POSITIVE 1-in-3 SAT instance with $m$ positive clauses (in which every literal is unnegated) and $n$ variables; without loss of generality we can assume that the clauses are all distinct. For every variable $x_i$ add an intege... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9658995742876885,
"lm_q1q2_score": 0.8321593931559061,
"lm_q2_score": 0.8615382129861583,
"openwebmath_perplexity": 226.92639743186146,
"openwebmath_score": 0.688023567199707,
"tag... |
c#, strings, datetime, formatting
{
result = (capitalizeModifiers ? "Yesterday at " : "yesterday at ") + DateTime.ToString(timeFormat);
}
else if (DateTime.Date.AddDays(7) > referenceDateTime.Date)
{
result = preDateString + DateTime.DayOfWeek.ToString() + (timeFormat == "" ? "" : " " + pre... | {
"domain": "codereview.stackexchange",
"id": 16180,
"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, datetime, formatting",
"url": null
} |
algorithm, c, library, pathfinding
unordered_set_iterator_t_free(p_child_iterator);
}
/* Once here, return a empty path in order to denote the fact that the
target node is not reachable from source node. */
heap_t_free(p_open_set);
unordered_set_t_free(p_closed_set);
unordered_map_t_free(p... | {
"domain": "codereview.stackexchange",
"id": 15553,
"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": "algorithm, c, library, pathfinding",
"url": null
} |
quantum-mechanics, quantum-field-theory, mathematical-physics
Now comes the puzzle. Schwinger writes $$\delta |b, t_2 \rangle = -iG_b(t_2)|b, t_2 \rangle$$$$\delta\langle a, t_1 | = iG_a(t_1)\langle a, t_1 |$$where he says $G_a(t_1)$ and $G_b(t_2)$ are infinitesimal Hermitian operators. I don't understand as to why an... | {
"domain": "physics.stackexchange",
"id": 32697,
"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, mathematical-physics",
"url": null
} |
c, console, assembly, brainfuck, compiler
/**
* @brief Checks if the stack is empty.
*
* @param root The current stack top.
* @return If stack is empty
*/
bool isEmpty(struct StackNode *root);
/**
* @brief Push a new node to top of stack
*
* @param root The current stack top.
* @param jmp_addr The jump label... | {
"domain": "codereview.stackexchange",
"id": 33898,
"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, console, assembly, brainfuck, compiler",
"url": null
} |
arduino, motor, line-following
loop forever:
if (on the right of the line):
turn_left()
if (on the left of the line):
go_forward()
if (on the line):
turn_left()
if (not on the line):
turn_right() | {
"domain": "robotics.stackexchange",
"id": 2082,
"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": "arduino, motor, line-following",
"url": null
} |
This version of the Fourier transform is called the Fourier Series. 10 Fourier Series and Transforms (2014-5543) Complex Fourier Series: 3 - 1 / 12. Chapter IX The Integral Transform Methods IX. The Fourier transform is not limited to functions of time, but the domain of the original function is commonly referred to as... | {
"domain": "leckerefelsen.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9850429120895838,
"lm_q1q2_score": 0.8007091966034915,
"lm_q2_score": 0.8128673246376009,
"openwebmath_perplexity": 765.7105353484437,
"openwebmath_score": 0.7930785417556763,
"tags... |
complexity-theory, time-complexity, complexity-classes, randomness
Since $L\neq \Sigma^*,\varnothing$ (otherwise it's in ZPP), there exist $y_1\in L, y_2\notin L$. Note that you don't have to find $y_1,y_2$ at runtime, as you can simply hardcode them into your machine for $L'$. If $L'\in RP$, then you can simultaneous... | {
"domain": "cs.stackexchange",
"id": 20271,
"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, time-complexity, complexity-classes, randomness",
"url": null
} |
ros2, ros-humble, colcon, rospackage, launch
Title: ROS2 Launch file is not found I am trying to get my ROS2 project into working order. Here are the details of my setup:
Building in docker based on osrf/ros:humble-desktop-full
my package is laid out like this
├── CMakeLists.txt
├── LICENSE
├── launch
│ ├── __pycach... | {
"domain": "robotics.stackexchange",
"id": 38961,
"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, ros-humble, colcon, rospackage, launch",
"url": null
} |
php, mvc, url-routing
$route_components is what we pass to Route::dyn(). $uri_components is the string we get from the URL, i.e user/francis/settings/something-else. This function converts $route_components so that it is the same as $uri_components. The reason for doing so is that I add all routes to a global array ca... | {
"domain": "codereview.stackexchange",
"id": 21261,
"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, mvc, url-routing",
"url": null
} |
for weighted networks, including three common measures of node centrality: degree, closeness, and betweenness. As this definition is inherently vague, a lot of different centrality scores exists that all treat the concept of central a bit different. There are also some dedicated centrality packages, such as centiserve ... | {
"domain": "slb-biotec-france.fr",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.984336353126336,
"lm_q1q2_score": 0.8480433843994939,
"lm_q2_score": 0.8615382147637196,
"openwebmath_perplexity": 1434.6831723227028,
"openwebmath_score": 0.706092894077301,
"t... |
quantum-field-theory, classical-mechanics, lagrangian-formalism, stress-energy-momentum-tensor
Now it's important to realize that the states $|q\rangle$, are not normalized to be unitless. Since,
$$\langle p|q\rangle=2E_p(2\pi)^3\delta^{(3)}(p-q),$$
in a box of volume $V$ we have,
$$\langle p|p\rangle = 2E_p V.$$
If w... | {
"domain": "physics.stackexchange",
"id": 53908,
"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, classical-mechanics, lagrangian-formalism, stress-energy-mom... |
to give the matrix in the next row. So as long as you keep track of the effects of the row operations you use, you can reduce your matrix to triangular form and then just calculate the product of the numbers down the diagonal. Reduced row echelon form takes a lot of time, energy, and precision. © Copyright 2017, Neha A... | {
"domain": "dolarfiyatibugun.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9766692325496974,
"lm_q1q2_score": 0.800764599457466,
"lm_q2_score": 0.819893340314393,
"openwebmath_perplexity": 377.89019202535127,
"openwebmath_score": 0.7302429676055908,
"t... |
lagrangian-formalism, hamiltonian-formalism
Title: Hamilton's equations for a simple pendulum I don't get how to use Hamilton's equations in mechanics, for example let's take the simple pendulum with
$$H=\frac{p^2}{2mR^2}+mgR(1-\cos\theta)$$
Now Hamilton's equations will be:
$$\dot p=-mgR\sin\theta$$ $$\dot\theta=\fr... | {
"domain": "physics.stackexchange",
"id": 6139,
"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": "lagrangian-formalism, hamiltonian-formalism",
"url": null
} |
java, concurrency, guava, bitcoin
That will create a stream of long values that increases from 0 (and loops, and so on... it will create the stream 0, 1, 2, 3, 4, 5, 6, 7, .....
Now, you can 'peek' in to a stream, and see the current value, and do things with it, so, we can have a progress function:
private static fin... | {
"domain": "codereview.stackexchange",
"id": 15470,
"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, concurrency, guava, bitcoin",
"url": null
} |
4. Estimate the probability that the bank will lose any money in 100 rolls.
5. How many rolls does the bank need to collect to have a 99 percent chance of a net loss?
Exercise $$\PageIndex{7}$$
A surveying instrument makes an error of $$-2$$$$-1$$, 0, 1, or 2 feet with equal probabilities when measuring the height o... | {
"domain": "libretexts.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9929882060710207,
"lm_q1q2_score": 0.8338459281271065,
"lm_q2_score": 0.8397339696776499,
"openwebmath_perplexity": 343.0010475778058,
"openwebmath_score": 0.8864997029304504,
"tags":... |
computability, turing-machines, linear-bounded-automata
for example the following program computes f(x) such that if x = 0 , f(x) = 1 otherwise f(x) = x
\begin{align}
[A] \quad &X ← X − 1 \\
&Y ← Y + 1 \\
&IF\; X \neq 0\; GOTO \;A \\
\end{align}
this language can use infinite number of variables. | {
"domain": "cs.stackexchange",
"id": 7940,
"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": "computability, turing-machines, linear-bounded-automata",
"url": null
} |
c#, tic-tac-toe
}
public bool MatrixHasWinner()
{
return HorizontalValidator() || VerticalValidator() || MainDiagonalValidator() || SecondDiagonalValidator();
}
private bool HorizontalValidator()
{
bool Control = false;
for (int i = 0; i < thi... | {
"domain": "codereview.stackexchange",
"id": 38455,
"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#, tic-tac-toe",
"url": null
} |
php, mvc, url-routing
return $this;
}
}
An example route would look like that:
/* ... */
Route::get('/example/supercoolfeature', function() {
Controller::run('example/features/supercool');
});
/* ... */
So, the router calls the following Controller class:
class Controller
{
/**
* Executes a contro... | {
"domain": "codereview.stackexchange",
"id": 14159,
"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, mvc, url-routing",
"url": null
} |
java, optimization, performance, algorithm
public Map<K, V> next() {
Map<K, V> output = new LinkedHashMap<>();
Set<V> taken = new HashSet<>();
for (Map.Entry<K, Set<V>> entry : lists.entrySet()) {
K key = entry.getKey();
Set<V> values = entry.getValue();
for ... | {
"domain": "codereview.stackexchange",
"id": 8471,
"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, optimization, performance, algorithm",
"url": null
} |
rviz, tf-broadcaster, collision-object, planning-scene, position
moveit_msgs::CollisionObject co;
co.header.frame_id = "box_frame";
co.id = "box";
geometry_msgs::Pose pose;
// pose.orientation.w = 1.0;
shape_msgs::SolidPrimitive primitive;
primitive.type = primitive.BOX;
primitive.dimensions.resize(3);
... | {
"domain": "robotics.stackexchange",
"id": 21290,
"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": "rviz, tf-broadcaster, collision-object, planning-scene, position",
"url": null
... |
python, beginner, game, homework, python-2.x
if choice == "1" and rats_hungry:
print
print "You run towards the molerats and try to hit the largest one!"
print "You miss!"
print "Molerats jump on you and tear you to shreds"
exit("Last thing you remember is the crunch of your tes... | {
"domain": "codereview.stackexchange",
"id": 6523,
"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, beginner, game, homework, python-2.x",
"url": null
} |
with a squared term. NCERT Books for Class 5 ; NCERT Books Class 6; NCERT Books for Class 7; NCERT Books for … $1 per month helps!! BNAT; Classes. The theorem is attributed to a Greek mathematician and philosopher by the name Pythagoras (569-500 B.C.E. I will O your correct problems and X the incorrect ones. a2 + b2= c... | {
"domain": "ac.id",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969674838368,
"lm_q1q2_score": 0.8300526618162873,
"lm_q2_score": 0.8438951005915208,
"openwebmath_perplexity": 445.77961619623267,
"openwebmath_score": 0.7127159833908081,
"tags": nul... |
reference-frames, time-evolution, unitarity, two-level-system, rabi-model
&=\omega_0 \left(|e\rangle \langle e|\right)_S + \frac{\Omega}{2}\left(e^{+i\omega t} \sigma^-_S + e^{-i\omega t}\sigma^+_S \right)
\end{align}
Note that I have already made the rotating wave approximation. I don't have problems with the rotatin... | {
"domain": "physics.stackexchange",
"id": 50828,
"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": "reference-frames, time-evolution, unitarity, two-level-system, rabi-model",
"url... |
evolution, ichthyology
Title: why do marine organisms orient with their bellies facing downwards? why do marine organisms orient with their bellies facing downwards (like most creatures) given that they have relatively fewer constraints on their orientations than land or air organisms? I'll address fish here. It's har... | {
"domain": "biology.stackexchange",
"id": 4270,
"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": "evolution, ichthyology",
"url": null
} |
javascript, jquery, interview-questions, asynchronous, ajax
// Map IDs into urls
const urls = ids.map(id => `/gh/gist/response.html/${id}/`);
// Construct a function that transforms the Response object into an img
const responseToImage = res => `<img src="data:image/png;base64,${res.text()}"/>`;
// For each, send re... | {
"domain": "codereview.stackexchange",
"id": 21051,
"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, interview-questions, asynchronous, ajax",
"url": null
} |
javascript, programming-challenge, sorting, time-limit-exceeded
The line for (j = pos-2; j < i; j++) { is where the improvement is with pos being item[i] in your function.
function minBribe(queue) {
var bribes = 0, i, j;
for (i = 0; i < queue.length; i++) {
const pos = queue[i], at = i + 1;
if ... | {
"domain": "codereview.stackexchange",
"id": 43252,
"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, programming-challenge, sorting, time-limit-exceeded",
"url": null... |
beginner, clojure, lisp
(hrs-min-sec (* average-time (- (:todo derefd-rpt) (:done derefd-rpt)))))))
(recur (next loop-seq))))))))
(let [derefd-rpt (deref prog-rpt-ref)]
(println "Total time taken = " (hrs-min-sec (- (.getTime (java.util.Date.)) (.getTime beginning-time))) ", Done = " (:done d... | {
"domain": "codereview.stackexchange",
"id": 1161,
"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, clojure, lisp",
"url": null
} |
c++, template-meta-programming, c++20
Title: Implementing apply_each for tuple c++ I'm implementing apply_each for tuple-like object as a general function which may be a combined version of for_each and tuple_transform in some implementations for tuple iteration.
As the name suggests, the first argument which is invoc... | {
"domain": "codereview.stackexchange",
"id": 42027,
"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++, template-meta-programming, c++20",
"url": null
} |
javascript, ecmascript-6, svg
For these and other reasons I have generally stayed away from SVG, but as the HTML canvas CanvasRenderingContext2D now has good support for the filter property, filling a MUCH needed hole in the API, I find my self writting SVG content more and more.
So after having a particular nasty bug... | {
"domain": "codereview.stackexchange",
"id": 30807,
"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, ecmascript-6, svg",
"url": null
} |
Part of the reason is exactly because of the reason mentioned by the two other answers: for any $$a,b$$ we have $$\log_a(b)=\frac{\log(b)}{\log(a)},$$ So we can express logarithms of any base using the natural logarithm anyway and there's no need to designate a special symbol for it. And indeed you will see that base $... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9811668679067631,
"lm_q1q2_score": 0.9177310094474233,
"lm_q2_score": 0.9353465138965863,
"openwebmath_perplexity": 521.0709233760114,
"openwebmath_score": 0.9673437476158142,
"tag... |
ros, ros2, c++, pick-and-place
it says the executable mtc_tutorial is in the package moveit2_tutorials.
from launch import LaunchDescription
from launch_ros.actions import Node
from moveit_configs_utils import MoveItConfigsBuilder
def generate_launch_description():
moveit_config = MoveItConfigsBuilder("moveit_res... | {
"domain": "robotics.stackexchange",
"id": 38040,
"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, c++, pick-and-place",
"url": null
} |
lagrangian-formalism, hamiltonian-formalism, computational-physics
Title: Hamiltonian mechanics really useful for numerical integration? Lagrange equations can become 1st-order by introducing extra variables (I'm talking about the classical mechanics.)
Many texts say that Lagrange equations are difficult to treat nume... | {
"domain": "physics.stackexchange",
"id": 20129,
"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": "lagrangian-formalism, hamiltonian-formalism, computational-physics",
"url": null... |
ros, installation, catkin, include, cmake
Originally posted by joq with karma: 25443 on 2013-06-22
This answer was ACCEPTED on the original site
Post score: 2
Original comments
Comment by Carter12s on 2014-08-11:
Link is broken, can you fix?
Comment by Dirk Thomas on 2014-08-11:
https://docs.ros.org/en/melodic/api/ca... | {
"domain": "robotics.stackexchange",
"id": 14658,
"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, installation, catkin, include, cmake",
"url": null
} |
python, python-2.x, console, dsl
# Compare two lists
def comparelst(self, command):
if command[1] == self.st_brace and command[3] in self.OPERATORS and command[5] == self.end_brace:
try:
print self.OPERATORS[command[3]](
eval(command[2]), eval(command[4]))
... | {
"domain": "codereview.stackexchange",
"id": 9291,
"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, console, dsl",
"url": null
} |
the (0-64) range. Pigeon, P. Contributions à la compression de données. If z =< x;y > then we have that 1(z) = x and 2(z) = y. significant bit of (or ), is a concatenation Type of the number of ones minus the number of zeros in the table above, although without explicit... For checking integers is necessarily an intege... | {
"domain": "frozenfoxmedia.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9896718477853188,
"lm_q1q2_score": 0.8392098259009322,
"lm_q2_score": 0.8479677660619633,
"openwebmath_perplexity": 1341.3493032163685,
"openwebmath_score": 0.4044283926486969,
"t... |
c#, performance, file-system
oFile.Close();
dFile.Flush();
dFile.Close();
_byteProgress += new FileInfo(file).Length;
_progressCount.Report((double)_byteProgress / (double)_byteCount);
}
... | {
"domain": "codereview.stackexchange",
"id": 18922,
"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#, performance, file-system",
"url": null
} |
electromagnetism, thought-experiment, perpetual-motion
So my question is: Where is my simple understanding of how a railgun works wrong? Which effect would end up limiting the projectile acceleration? This is not a magnetostatic situation. As the projectile moves, the power supply must expend a portion of its power ge... | {
"domain": "physics.stackexchange",
"id": 68406,
"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": "electromagnetism, thought-experiment, perpetual-motion",
"url": null
} |
newtonian-mechanics, energy, work, si-units, unit-conversion
Title: Work as force * distance -- what about mass? So, in defining work as force * distance, how is mass applied? Is it just that it's $1kg$ multiplied in normally, but that's typically ignored / not shown?
..so:
$2kg \cdot 1n \cdot 1m$ = $2J$
..or is th... | {
"domain": "physics.stackexchange",
"id": 32513,
"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, work, si-units, unit-conversion",
"url": null
} |
zoology, physiology, marine-biology, invertebrates, regeneration
Title: By what mechanism do cephalopods regrow limbs? As far as I can tell, there are two types of limb regeneration: epimorphosis and morphallaxis. Epimorphosis is used by animals such as amphibians and various phyla of worms, while morphallaxis is used... | {
"domain": "biology.stackexchange",
"id": 11362,
"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, physiology, marine-biology, invertebrates, regeneration",
"url": null
} |
python, python-3.x, stackexchange, macos
This function uses the SE API and yield each
new question that is asked on CR.
"""
cr = stackexchange.Site(stackexchange.CodeReview)
old = {}
while True:
questions = cr.recent_questions(filter='_b')
for question in questions[:1]:
... | {
"domain": "codereview.stackexchange",
"id": 22152,
"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-3.x, stackexchange, macos",
"url": null
} |
### Cycle Detection
DFS can also be used to determine if there are cycles present in a graph. This is accomplished by keeping track of the vertex previous to the one being focused on by the DFS. If one of the current vertex’ neighbors is already marked and it is not the previous vertex, then it means that there is an ... | {
"domain": "jip.dev",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9867771759145342,
"lm_q1q2_score": 0.8113174618351043,
"lm_q2_score": 0.8221891239865619,
"openwebmath_perplexity": 1229.7954954713152,
"openwebmath_score": 0.49524566531181335,
"tags": null... |
entanglement, textbook-and-exercises, density-matrix
Title: Given $|\psi\rangle=(U_A\otimes U_B)|0,0\rangle$, is $|\psi\rangle\!\langle\psi|$ always a product state? say I have some state in the combined space $\psi$ ∈ $H_A\otimes H_B$, where $\psi=U_A \otimes U_B|0,0\rangle$ (operators from respective spaces), and $\... | {
"domain": "quantumcomputing.stackexchange",
"id": 2660,
"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": "entanglement, textbook-and-exercises, density-matrix",
"url": null
} |
$$\mathbf{x} =\mathbf{p} + \sum_{i = 1}^n s_i \mathbf{q}_i$$
where $$\mathbf{p} \ne \mathbf{0}$$ denotes a particular solution to the nonhomogeneous system, $$s_i$$ denotes a free variable, and each $$\mathbf{q}_i$$ is analogous to $$\mathbf{q}$$ from (2). From here, we would show that each $$\mathbf{q}_i \in \mathrm{... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232950125848,
"lm_q1q2_score": 0.8190108205113075,
"lm_q2_score": 0.8333245911726382,
"openwebmath_perplexity": 62.38348022102488,
"openwebmath_score": 0.9776766896247864,
"tag... |
organic-chemistry, halides
3,4-dimethylhexane, being most symmetric, is the major product.
I'm not satisfied with the reason provided. Can anyone please explain the fact in a better manner?
What I'm unable to understand is that both 3,4-dimethylhexane and 2,3-dimethylbutane and equally symmetric since both have a pl... | {
"domain": "chemistry.stackexchange",
"id": 3686,
"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": "organic-chemistry, halides",
"url": null
} |
protein-structure
Title: How to represent a summary of disagreement between two secondary structure predictors given predictions for many proteins? I have 6000 predicted protein structures.
I am comparing secondary structures predicted by an algorithm with the correct secondary structure assignments.
I need to show wh... | {
"domain": "bioinformatics.stackexchange",
"id": 2108,
"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": "protein-structure",
"url": null
} |
particle-physics, electromagnetic-radiation, wave-particle-duality
So whether wavelike oscillations in your photon field are described as having two degrees of freedom (in one of the polarization bases) or four (in the $A_\mu$ language) or six (in the $\vec E, \vec B$ language) or perhaps three (because $\vec B$ can b... | {
"domain": "physics.stackexchange",
"id": 76005,
"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, electromagnetic-radiation, wave-particle-duality",
"url": null... |
graphs
Title: Can two minimum spanning trees for a same graph has different number edges? (1) Let's say $T_1$ has $r$ number of edges and $T_2$ has $s$ number of edges; where $r \ne s$ but two trees has same weight since they both are MST.
I kind feel this kind not be true because to span $n$ vertices with minimum num... | {
"domain": "cs.stackexchange",
"id": 9477,
"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",
"url": null
} |
scrnaseq, single-cell, gene-expression, 10x-genomics, cellranger
This tool might help:
https://bioconductor.org/packages/devel/bioc/html/mitoClone2.html | {
"domain": "bioinformatics.stackexchange",
"id": 1923,
"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": "scrnaseq, single-cell, gene-expression, 10x-genomics, cellranger",
"url": ... |
newtonian-mechanics, forces, reference-frames, free-body-diagram
Title: Components of normal reaction in banking of roads Suppose there is a banked road on which a body is placed as shown in the figure.
Now to derive the relation between the velocity and the angle of inclination of the slope we do the following:-
T... | {
"domain": "physics.stackexchange",
"id": 49468,
"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, forces, reference-frames, free-body-diagram",
"url": null
} |
urdf, xacro
</visual>
<collision>
<origin
xyz="0 0 0"
rpy="0 0 0" />
<geometry>
<mesh
filename="package://CamPanTilt/meshes/CamSupport.STL" />
</geometry>
</collision>
</link>
<joint
name="CamSupFix"
type="fixed">
<origin
xyz="0 0 0"
... | {
"domain": "robotics.stackexchange",
"id": 22539,
"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": "urdf, xacro",
"url": null
} |
ros2, ros-bouncy
Then this results in a node named 'default_value':
ros2 launch ros2_cpp_py example.launch.py
And this names the node 'foo':
ros2 launch ros2_cpp_py example.launch.py test:=foo
What I need to be able to do is get the value of the argument during the execution of the launch file, but it comes out as:
... | {
"domain": "robotics.stackexchange",
"id": 31971,
"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, ros-bouncy",
"url": null
} |
ros, arduino, joy
Title: Joy to control servo
Hi, I'm using Hydro.
I've been working on and off with this code to control a servo using rosserial with an Arduino, using a PS3 controller and the Joy node.
I wrote my code based off of this tutorial. Here is my code
#include <ros/ros.h>
#include <std_msgs/UInt16.h>
#in... | {
"domain": "robotics.stackexchange",
"id": 19598,
"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, arduino, joy",
"url": null
} |
c++, object-oriented, c++11, game
game_board.hpp
#ifndef GAME_BOARD_HPP
#define GAME_BOARD_HPP
#include <vector>
#include <array>
class GameBoard
{
public:
GameBoard() = delete;
GameBoard(const GameBoard &gameBoard) = delete;
GameBoard &operator=(const GameBoard &gameBoard) = delete;
GameBoard(std::size_t wi... | {
"domain": "codereview.stackexchange",
"id": 30905,
"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++, object-oriented, c++11, game",
"url": null
} |
proof-techniques, hash, hashing
Now, divide $\mathbb{Z}_p$ into $\lceil p/m\rceil$ buckets, $b_1,...,b_{l=\lceil p/m\rceil}$ as follows: $b_1=\{0,1,...,m-1\}, b_2=\{m,m+1,...,2m-1\}$,...,$b_l=\{m\lfloor p/m\rfloor, m\lceil p/m\rceil+1,...,p-1\}$. Note that each bucket except the last is of size $m$, and no two element... | {
"domain": "cs.stackexchange",
"id": 16477,
"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": "proof-techniques, hash, hashing",
"url": null
} |
machine-learning
Title: What is a "shot" in machine learning? I keep on hearing this term "shot" used in machine learning.
Is a "shot" well-defined?
From what I can tell, "shot" is a synonym for "example". Most machine learning systems seem to be "multi-shot" meaning you have a huge dataset that has many different exa... | {
"domain": "datascience.stackexchange",
"id": 12199,
"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",
"url": null
} |
javascript, jquery
Title: Shortening jQuery 3 way selects (+class toggle) on a change of first select, second select options are being dynamically changed. How can I shorten it (jQuery or vanilla JS)? It is 3 way street - therefore class toggle is not an option? | {
"domain": "codereview.stackexchange",
"id": 31701,
"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
} |
python, python-3.x, bioinformatics
files = glob.glob('*.faa')
#this collects all the files ending in .faa, within the current directory as a list
for x in files:
#for each file
SEQCOUNTERPERALIGNMENT = 0
#the sequence counter is reset
FILE = x
#we are establishing the file variable within the loop ... | {
"domain": "codereview.stackexchange",
"id": 31165,
"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-3.x, bioinformatics",
"url": null
} |
nuclear-physics, astrophysics, stars, fusion, quantum-tunneling
Title: Nuclear reactions in stars: do they all proceed by tunneling? Energy production in stars occurs mainly when a nucleus absorbs a proton or fuses with another nucleus. Some examples:
(i) $\rm{p}(\rm{p},\rm{e}^+\nu)\rm{d}~$ and $~\rm{d}(\rm{p},\gamma)... | {
"domain": "physics.stackexchange",
"id": 72294,
"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": "nuclear-physics, astrophysics, stars, fusion, quantum-tunneling",
"url": null
} |
backpropagation, activation-functions, objective-functions
Title: What is the derivative function used in backpropagration? I'm learning AI, but this confuses me. The derivative function used in backpropagation is the derivative of activation function or the derivative of loss function?
These terms are confusing: deri... | {
"domain": "ai.stackexchange",
"id": 869,
"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": "backpropagation, activation-functions, objective-functions",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.