text stringlengths 1 1.11k | source dict |
|---|---|
python, performance, beginner, python-3.x
Title: Listing movies for torrenting Can I get some help on shortening the amount of code I have in this program?
import requests
import gzip
import sys
import urllib
from tabulate import tabulate
from bs4 import BeautifulSoup
from io import BytesIO
# firstly it will display ... | {
"domain": "codereview.stackexchange",
"id": 15007,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "python, performance, beginner, python-3.x",
"url": null
} |
sensor-msgs, cv-bridge
Originally posted by dk with karma: 176 on 2011-09-26
This answer was ACCEPTED on the original site
Post score: 4 | {
"domain": "robotics.stackexchange",
"id": 6773,
"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": "sensor-msgs, cv-bridge",
"url": null
} |
quantum-mechanics, hamiltonian, open-quantum-systems
What is the reason? Roughly speaking, it is the Schrödinger-picture density operator which has rapidly oscillating phase factors. Transforming to the interaction picture removes these phase factors. The residual time dependence of $\rho_I(t)$ is generated only by co... | {
"domain": "physics.stackexchange",
"id": 58227,
"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, hamiltonian, open-quantum-systems",
"url": null
} |
# Easy example of a bijective continuous self mapping whose inverse is discontinuous
Let $$f : X \to X$$ be a continuous bijective mapping from a metric space onto itself.
Is $$f^{-1}$$ continuous too? I don't think so, but I'm struggling to find a counterexample.
I've read that if $$X=\mathbb{R}^n$$ or $$X$$ a comp... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9796676448764483,
"lm_q1q2_score": 0.8307265692532644,
"lm_q2_score": 0.8479677506936878,
"openwebmath_perplexity": 164.64987133988095,
"openwebmath_score": 0.9440943002700806,
"ta... |
vba, benchmarking
Generally, your project encapsulation is very loose. I mean, everything depends on everything if that makes any sense; (see interesting post here)
I would think that ProfileManager should include members like Reset and GetProfileManager. BUT since your Profiler needs to access the manager in its Clas... | {
"domain": "codereview.stackexchange",
"id": 43107,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, benchmarking",
"url": null
} |
newtonian-gravity, earth, estimation, planets, geophysics
More detail:
At the bottom of a cone shaped mountain of mass $m$, radius $r$ and height $r$, the acceleration due to gravity is $g$, due to the earth of mass $M$, radius $R$.
$$g=\frac{GM}{R^2}\tag1$$
the difference in gravity after climbing the mountain is
$$\... | {
"domain": "physics.stackexchange",
"id": 80918,
"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, earth, estimation, planets, geophysics",
"url": null
} |
qiskit, programming, optimization, qaoa
expectation = get_expectation(G, p=1)
res = minimize(expectation,
[1.0, 1.0],
method='COBYLA')
res
This effectively calls for COBYLA from scipy. However, in qiskit.algorithms.optimizers we can see a lot of other options: https://qi... | {
"domain": "quantumcomputing.stackexchange",
"id": 3821,
"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": "qiskit, programming, optimization, qaoa",
"url": null
} |
object-oriented, .net, vb.net
Title: How to avoid code duplication in ordering system Here is the piece of order system.
And this is hierarchy of order classes in this system
Public MustInherit Class BaseItem
Public Property Id() As Guid
Public Property Sku() As String
Public Property Quantity() As String... | {
"domain": "codereview.stackexchange",
"id": 27046,
"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": "object-oriented, .net, vb.net",
"url": null
} |
ros, robot-upstart
Comment by BennyRe on 2015-03-03:
Oh I see. There was an uninstall script till Mike Purvis ported the install script to python.
Comment by paulbovbel on 2015-03-16:
The uninstall script has been restores as of v0.1.2 (not synced to public yet), so either install from the shadow repositories or do a ... | {
"domain": "robotics.stackexchange",
"id": 20756,
"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, robot-upstart",
"url": null
} |
python, filter-design, infinite-impulse-response, bandpass
Details about how to obtain the desired allpass transformation functions $A(z)$ can be found in Section 7.4. of Discrete-Time Signal Processing by Oppenheim and Schafer (3rd edition). Mathworks also has a good documentation on digital frequency transformations... | {
"domain": "dsp.stackexchange",
"id": 12256,
"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, filter-design, infinite-impulse-response, bandpass",
"url": null
} |
python, mongodb, tornado, quiz
def _on_facebook_login(self, user):
if not user:
self.clear_all_cookies()
raise tornado.web.HTTPError(500, 'Facebook authentication failed')
self.set_secure_cookie('user_id', str(user['id']))
self.set_secure_cookie('user_name', str(user['n... | {
"domain": "codereview.stackexchange",
"id": 6189,
"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, mongodb, tornado, quiz",
"url": null
} |
Start with the binomial expansion of (k − 1) 2: (k-1)^2: (k − 1) 2: (k – roganjosh May 10 '17 at 19:49 (, Techniques for Adding the Numbers 1 to 100, Quick Insight: Intuitive Meaning of Division, Quick Insight: Subtracting Negative Numbers, Surprising Patterns in the Square Numbers (1, 4, 9, 16…), Learning How to Count... | {
"domain": "happyworldtrip.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357561234474,
"lm_q1q2_score": 0.857426771635993,
"lm_q2_score": 0.8757869835428966,
"openwebmath_perplexity": 424.935485709517,
"openwebmath_score": 0.4893442392349243,
"tags... |
ros, callbacks
Original comments
Comment by safzam on 2011-09-20:
I mean , for example I have two different nodes publishing one publishes int type message on toip1 and other publishes on topic2. Now I need to make certainly two subscriber s1 for topic1 and s2 for topic2. But I want to have one callback for both of th... | {
"domain": "robotics.stackexchange",
"id": 6728,
"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, callbacks",
"url": null
} |
javascript, html, css, canvas
Title: On right click draw triangle to the canvas This is a simple program that using easelJS adds functionality to the right click, when the right mouse button is clicked a triangle is drawn to the screen. I am just wanting to get the opinions of others on my coding style and how it coul... | {
"domain": "codereview.stackexchange",
"id": 27592,
"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, html, css, canvas",
"url": null
} |
for x and y and we also have to consider the domain of our parameter. Equations can be converted between parametric equations and a single equation. Convert the parametric equations of a curve into the form $$y=f(x)$$. More than one parameter can be employed when necessary. 240 Chapter 10 Polar Coordinates, Parametric ... | {
"domain": "thethorntons.net",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9857180690117799,
"lm_q1q2_score": 0.8149047490721216,
"lm_q2_score": 0.8267117898012104,
"openwebmath_perplexity": 368.7783192487192,
"openwebmath_score": 0.8181872367858887,
"... |
javascript, jquery
var default_cluster_options = {
environment : "Development",
local_storage_key : "Cluster",
plugin_navigation_class : ".navigation",
plugin_wrapper_id : "content-wrapper",
headings : ['.heading-first h1', '.heading-second h1'],
input_typ... | {
"domain": "codereview.stackexchange",
"id": 1783,
"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, audio
if args["open"]:
webbrowser.open(url, new=2, autoraise=True)
want_add = None
if not args["want"] and not args["open"]:
want_add = raw_input("Add this to your Discogs wantlist? y/n/o (to open in browser): ")
... | {
"domain": "codereview.stackexchange",
"id": 20000,
"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, audio",
"url": null
} |
fluid-dynamics, bernoulli-equation
↓ ↓ rotating
blades
↘ ↘
| |
-> | | ->
| | --->
A -> --> B | | C----> D
| | --->
-> | | ->
| |
↗ ↗
↑ ↑ | {
"domain": "physics.stackexchange",
"id": 69393,
"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": "fluid-dynamics, bernoulli-equation",
"url": null
} |
ros, navigation, ros-kinetic, 2dcostmap
Originally posted by Namal Senarathne with karma: 246 on 2019-02-13
This answer was ACCEPTED on the original site
Post score: 1 | {
"domain": "robotics.stackexchange",
"id": 32401,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, navigation, ros-kinetic, 2dcostmap",
"url": null
} |
vcf, maf
Note of explanation: why Anaconda works
I better explain, the script run by itself is complaining it can't see the dependencies it requires. It doesn't just need them, it needs to see them. Anaconda/conda takes care of all that by downloading the dependencies and ensuring they are all visible. The downside is... | {
"domain": "bioinformatics.stackexchange",
"id": 2109,
"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": "vcf, maf",
"url": null
} |
• The second expectation is not necessary. Consider any nonnormable Frechet space. Anyway: (+1) Aug 16, 2015 at 4:53
At the very, veery heart functional analysis is about topological vector spaces (TVS).
So basically the answer is almost 'no'. Browse through your notes and look for theorems that concern more than cont... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9585377320263431,
"lm_q1q2_score": 0.8166289029891031,
"lm_q2_score": 0.8519527982093666,
"openwebmath_perplexity": 439.4943021482486,
"openwebmath_score": 0.8643251657485962,
"tag... |
slam, navigation, mapping, gmapping, rtabmap
Title: map / navigate on a different axis / plane
Hello everyone,
first of all I would like to thank you for such a great forum, it has helped me solve many issues in the past!
I have questions that could be caused by my luck of understanding how the mapping is performed. ... | {
"domain": "robotics.stackexchange",
"id": 37037,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "slam, navigation, mapping, gmapping, rtabmap",
"url": null
} |
java, parsing, unit-testing, url
Tests
The specification for prosperos says:
each field/value pair is separated from each other and from the rest of the URL by a ";" (semicolon).
You are never testing if this would work, and it wouldn't:
String prosperoParam = prospero.getProsperoParam(new URL("http://a:a@a.a.a/a.a... | {
"domain": "codereview.stackexchange",
"id": 10061,
"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, parsing, unit-testing, url",
"url": null
} |
inorganic-chemistry, ionic-compounds
Title: Can Ca and K exist as an ionic compound? Recently in the Chemistry.SE chatroom a user posted this to celebrate the New Year:
Can Ca and K exist as an ionic compound? If not, why is it impossible?
Ca with atomic number 20, K 19
so 2019 ->Happy New Year->2020 As a creator ... | {
"domain": "chemistry.stackexchange",
"id": 13060,
"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": "inorganic-chemistry, ionic-compounds",
"url": null
} |
newtonian-mechanics, forces, acceleration, centrifugal-force, biophysics
Title: Why does a centrifuge cause blood to be pushed downwards in the human body? Good evening all, | {
"domain": "physics.stackexchange",
"id": 93954,
"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, acceleration, centrifugal-force, biophysics",
"url"... |
fluid-dynamics, waves, acoustics, perturbation-theory, wavelength
In the case that $\frac{R_2}{R_1} = -1$, the wave would see the exact same magnitude of reflection at each end, but its sign would be opposite of that on the other end of the pipe. For the case of real impedances, that means $\frac{Z_i}{Z_0} < 1$ on one... | {
"domain": "physics.stackexchange",
"id": 34172,
"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": "fluid-dynamics, waves, acoustics, perturbation-theory, wavelength",
"url": null
... |
The equation for determining the load diagonal of a pallet is the square root of the pallet length squared plus the pallet width squared, but luckily we have created this handy pallet diagonal measurement calculator below for you to easily determine how large of a turntable will be required for a pallet load. Other val... | {
"domain": "motservicecentres.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9632305318133553,
"lm_q1q2_score": 0.8128655246466131,
"lm_q2_score": 0.8438950986284991,
"openwebmath_perplexity": 507.86432464731814,
"openwebmath_score": 0.633965492248535... |
roslaunch
As far as autoboot of roslaunch, I've demonstrated that in my answer to this question. Have a look.
Originally posted by DimitriProsser with karma: 11163 on 2012-01-26
This answer was ACCEPTED on the original site
Post score: 4 | {
"domain": "robotics.stackexchange",
"id": 8007,
"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": "roslaunch",
"url": null
} |
naive estimator sums squared. The author of ` an Introduction to Abstract Algebra be substantial not exist a inverse. '' is an unbiased estimator is: the bias of maximum-likelihood estimators do not.! Decreases as the sample size increases, best estimator: an estimator ˵ for parameter µ is to. ( X ) is equal to the t... | {
"domain": "com.br",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9559813488829418,
"lm_q1q2_score": 0.821822511798239,
"lm_q2_score": 0.8596637505099167,
"openwebmath_perplexity": 1001.7397007894812,
"openwebmath_score": 0.824180006980896,
"tags": null,
... |
ros, jenkins, ubuntu, pre-release, ubuntu-lucid
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Exiting with failure status due to previous errors
**E: failed to extract /var/cache/pbuilder/jenkins_tools.precise.amd64-0.4.1.tgz to /var/cache/pbuilder/build//22098**
I checked the jenkins_tools.pr... | {
"domain": "robotics.stackexchange",
"id": 11720,
"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, jenkins, ubuntu, pre-release, ubuntu-lucid",
"url": null
} |
c, array
return(index + rr[i] + cc[i]);
} This code is not correct. The r[4] and c[4] arrays you have are stored on the stack, which means that as soon as they go out of scope the data is no longer valid and you get undefined behavior because rr and cc now point to unused (and possibly overwritten) areas on the stack.... | {
"domain": "codereview.stackexchange",
"id": 38168,
"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, array",
"url": null
} |
ros, can, ros-kinetic
Followed by the warning:
[ WARN] [1520931505.863486242]: Received frame is error: 20000000#0008000000000000
To me this seems like the two motor drivers on the CAN bus are trying to write over the top of each other as the address and message does not make sense. Is this likely to be the issue or ... | {
"domain": "robotics.stackexchange",
"id": 30292,
"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, can, ros-kinetic",
"url": null
} |
digestive-system, food, nutrition, mammals
amino acids that can not be directly synthethized but are required for protein synthesis. You can find good reviews in PubMed, for instance Gietzen et al. 2007, Annual Review of Nutrition, and Gietzen and Aya 2012, Molecular Neurobiology. | {
"domain": "biology.stackexchange",
"id": 663,
"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": "digestive-system, food, nutrition, mammals",
"url": null
} |
mechanical-engineering, structural-analysis, applied-mechanics
Lets consider case 1 now; both of your hands need to be putting a force in opposite direction to push or pull the bar. In case 2, the fixed end is doing the same thing as your other hand was doing in case 1. In case 3, you still observe the cutted cross se... | {
"domain": "engineering.stackexchange",
"id": 4281,
"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": "mechanical-engineering, structural-analysis, applied-mechanics",
"url": null
... |
vba, web-scraping, internet-explorer
For Each posts In storage
Row = Row + 1: Cells(Row, 1) = posts.ParentNode.innerText
Next posts
IE.Quit
End Sub
Reference to add to the library:
1. Microsoft Internet Controls
2. Microsoft HTML Object Library You may want to try this below. First is to try reduce lo... | {
"domain": "codereview.stackexchange",
"id": 28686,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "vba, web-scraping, internet-explorer",
"url": null
} |
c++
#include <array>
TEST(midpoint, std_array)
{
auto const a = std::array{ 0, 10, 20};
auto const b = std::array{10, 10, 10};
auto const c = std::array{ 5, 10, 15};
EXPECT_EQ(midpoint(a, b), c);
} I think you've done a good job of coming up to speed with language features and library organization.
Y... | {
"domain": "codereview.stackexchange",
"id": 41529,
"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
} |
turing-machines, programming-languages, halting-problem, turing-completeness
Some people have jokingly coined the term "Tetris-complete" or "Pacman-complete" to describe a programming language which can draw to the screen, receive asynchronous, interactive, input events, interact with the operating system, call third-... | {
"domain": "cs.stackexchange",
"id": 21380,
"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": "turing-machines, programming-languages, halting-problem, turing-completeness",
"url":... |
c, array, queue
Title: Redefining queue with different front and rear #include <stdio.h>
#include <limits.h>
#define MAX_SIZE 5
#define FULL INT_MAX
#define EMPTY INT_MIN
int Q[MAX_SIZE]; // linear queue //
int rear = -1;
int front = 0;
// condition for empty is Qsize is zero (front > rear) //
// c... | {
"domain": "codereview.stackexchange",
"id": 45072,
"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, array, queue",
"url": null
} |
axisymmetric” schemes are used to model the slab like and cylindrical agglomerates, respectively. That is, the average temperature is constant and is equal to the initial average temperature. We also define the Laplacian in this section and give a version of the heat equation for two or three dimensional situations. No... | {
"domain": "ilovebet.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969636371975,
"lm_q1q2_score": 0.8041637701453398,
"lm_q2_score": 0.8175744739711883,
"openwebmath_perplexity": 746.7859159697898,
"openwebmath_score": 0.813318133354187,
"tags":... |
ros, kinect, ros-kinetic, rgbdslam-v2
-- The imported target "vtk" references the file
"/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package ... | {
"domain": "robotics.stackexchange",
"id": 30196,
"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, kinect, ros-kinetic, rgbdslam-v2",
"url": null
} |
complexity-theory, proof-techniques
Booleanity: $0 \leq x_{ij} \leq 1$.
Pigeon axioms: for all $i$, $\sum_j x_{ij} \ge 1$.
Hole axioms: for all $j$, $\sum_i x_{ij} \le b_j$.
Summing the pigeon axioms, we get
$$
\sum_{ij} x_{ij} \ge n.
$$
Summing the hole axioms, we get
$$
\sum_{ij} x_{ij} \leq m.
$$
Therefore $n \leq... | {
"domain": "cs.stackexchange",
"id": 21626,
"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, proof-techniques",
"url": null
} |
quantum-mechanics, particle-physics, scattering, resonance, s-matrix-theory
Turning this around, in many systems resonances can also arise from complicated interactions, where identifying an isolated system is highly non-trivial. The best example I can think of are random lasers.
Note that there are some interesting p... | {
"domain": "physics.stackexchange",
"id": 83930,
"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, particle-physics, scattering, resonance, s-matrix-theory",
"u... |
of the Frisbee A 108 g Frisbee is 28 cm in diameter and has about half its mass spread uniformly in a disk, and the other half concentrated in the rim. Integrating to find the moment of inertia of a two-dimensional object is a little bit trickier, but one shape is commonly done at this level of study—a uniform thin dis... | {
"domain": "michaelis-bestattungen-muenster.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9838471680195556,
"lm_q1q2_score": 0.8111445292838085,
"lm_q2_score": 0.8244619242200082,
"openwebmath_perplexity": 319.556178889402,
"openwebmath_score": 0.63736069... |
python, python-3.x, web-scraping
Title: Scraping titles and links from a site using python I've written a script which when I run parses the link of the item from the left sided menu,then it tracks down each individual links to it's main page. Some links spread through pagination some end in a single page. Whatever th... | {
"domain": "codereview.stackexchange",
"id": 25876,
"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, web-scraping",
"url": null
} |
light, observational-astronomy, terminology
Title: What does the filter name I+z' mean On the TRAPPIST telescope, the filter wheels are described to have a filter with the following description:
NIR Luminance I+z' (>700nm)
After a bit of googling, I wasn't able to find what the specifics of this filter are (its FWHM... | {
"domain": "astronomy.stackexchange",
"id": 1600,
"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": "light, observational-astronomy, terminology",
"url": null
} |
organic-chemistry, acid-base, phenols, nitro-compounds
Finally, we've built up to our first structure, 2,4,6-trinitrophenol. The new bit here is the addition of nitro groups ($\ce{-NO2}$), which are strongly electron-withdrawing both by induction and mesomerism (conjugation). Again, these effects decrease the energy o... | {
"domain": "chemistry.stackexchange",
"id": 3360,
"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, acid-base, phenols, nitro-compounds",
"url": null
} |
c++, c++11, graph
//Returns a pair of iterators, pointing to the beginning
//of the set of adjacent nodes and the end of the set of adjacent
//nodes respectively.
std::pair<mapped_const_iterator, mapped_const_iterator>
adjacent_nodes(const key_type& node) const
{
auto it = backing_map.find... | {
"domain": "codereview.stackexchange",
"id": 8263,
"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, graph",
"url": null
} |
classical-mechanics, gravity
My assumption is that the force at X is the sum of the attractions of each blob on the left to every blob on the right.
Force at X = #1<>#3 + #1<>#4 + #2<>#3 + #2<>#4
('<>' being force between blobs #x and #y).
Fx / (G.M^2 / L^2) = (2/4)^-2 + (3/4)^-2 + (1/4)^-2 + (2/4)^-2 = 1.61
This is b... | {
"domain": "physics.stackexchange",
"id": 71,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classical-mechanics, gravity",
"url": null
} |
general-relativity, cosmology, differential-geometry, universe, luminosity
Title: Can the luminosity distance be greater than the particle horizon distance? While writing my notes on cosmology, I found this little puzzle, which isn't described in any of my books on general relativity.
Consider a flat space ($k = 0$) f... | {
"domain": "physics.stackexchange",
"id": 34329,
"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, cosmology, differential-geometry, universe, luminosity",
"ur... |
photons, quantum-electrodynamics, feynman-diagrams, fermions
Title: How do I know if the propagator in my Feynman diagram is a photon or a fermion? When going over QED Feynman diagrams I came across the interaction:
$$e^+ (p_1) +e^- (p_2) \rightarrow \gamma (p_3) + \gamma (p_4) $$
I am trying to draw all the tree-leve... | {
"domain": "physics.stackexchange",
"id": 63459,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "photons, quantum-electrodynamics, feynman-diagrams, fermions",
"url": null
} |
condensed-matter, lattice-model, tight-binding
Acting with $\partial_x$ on for instance $a$ yields:
$$ \partial_x a_{x,y} = \frac{a_{x+b,y}-a_{x,y}}{b} $$
Somewhere along these lines the solution should pop up, I think. It's a matter of finding the right re-ordering of the terms in your hamiltonian and seeing that som... | {
"domain": "physics.stackexchange",
"id": 15804,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "condensed-matter, lattice-model, tight-binding",
"url": null
} |
quantum-field-theory, quantum-spin, polarization, spinors, scattering-cross-section
You will then measure a mixture of unpolarized muons leaving the vertex, consisting of both polarizations now, which you might measure, if inclined, or not: but their net number in your detector should be the same, as the input elect... | {
"domain": "physics.stackexchange",
"id": 65017,
"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, quantum-spin, polarization, spinors, scattering-cross-sectio... |
c++, security, http, windows, https
bool isMostRecentVersion = (strncmp(thisVersionDate, currentVersionDate, sizeof(currentVersionDate) - 1) == 0);
if (strncmp(thisVersionDate, currentVersionDate, sizeof(currentVersionDate) - 1) != 0) {
printf("a newer version from %s is available\nthis version's date: %s... | {
"domain": "codereview.stackexchange",
"id": 45297,
"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++, security, http, windows, https",
"url": null
} |
Since $E$ and $F$ are independent, the calculation in your question tells us that $P(E) P(F)$ should be equal to $P(E \cap F)$. Indeed, $\tfrac{1}{2} \cdot \tfrac{1}{2} = \tfrac{1}{4}$. Your condition $P(E) P(F) = P(E \cap F)$ is actually equivalent to independence: if the probabilities of two logical propositions sati... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9724147145754999,
"lm_q1q2_score": 0.8284514334473073,
"lm_q2_score": 0.8519527944504227,
"openwebmath_perplexity": 251.2945883583517,
"openwebmath_score": 0.8100523352622986,
"tag... |
general-relativity, black-holes, charge, reissner-nordstrom-metric, cosmic-censorship
His paper showed that, at least in the specific case where the charge of the particle is much smaller than the charge of the black hole, any particle with a charge/energy ratio that could result in a naked singularity if it were abso... | {
"domain": "physics.stackexchange",
"id": 33825,
"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, charge, reissner-nordstrom-metric, cosmic-censors... |
power-spectral-density
The Fourier and autocorrelation integrals are defined from $-\infty$ to $+\infty$. That's always correct and the saftest way to write them.
If you are integrating over a function with limited support on $[0,T]$ than you can adjust the integration interval to $[0,T]$ too. The areas outside the s... | {
"domain": "dsp.stackexchange",
"id": 7680,
"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": "power-spectral-density",
"url": null
} |
javascript, jquery
Title: How to refactor JQuery interaction with interface? The question is very simple but also a bit theoretical.
Let's imagine you have a long jQuery script which modifies and animate the graphics of the web site. It's objective is to handle the UI. The UI has to be responsive so the real need for... | {
"domain": "codereview.stackexchange",
"id": 5685,
"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
} |
Candidate of sciences ( phys.-math. the basic formulas of differentiation of a function curves that we can draw the! Another notation which can be easier to work with when using the rule... Limited to two functions all Lessons Categories the rest of your calculus courses a great many of is!, Quotient rule and chain rul... | {
"domain": "shopnamira.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9879462197739624,
"lm_q1q2_score": 0.9074090921865666,
"lm_q2_score": 0.9184802512774205,
"openwebmath_perplexity": 525.7234853826373,
"openwebmath_score": 0.8675144910812378,
"ta... |
sam, samtools, algorithms, htslib
How does htslib/samtools (e.g. samtools view) access these optional fields, which differ in number from BAM to BAM (possible row to row)?
In htslib/sam.h, a BAM alignment struct is defined as follows:
/*! @typedef
@abstract Structure for one alignment.
@field core core inform... | {
"domain": "bioinformatics.stackexchange",
"id": 488,
"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": "sam, samtools, algorithms, htslib",
"url": null
} |
zones; the median and paramedian sagittal planes, i. It measures how much the scores in a distribution vary from the typical score. The overall dispersion of the optical resonator is a major factor in determining the duration of the pulses emitted by the laser. data frequently used in practice are measures of central t... | {
"domain": "lab-consulting.it",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9877587254288979,
"lm_q1q2_score": 0.8453744399010924,
"lm_q2_score": 0.8558511488056151,
"openwebmath_perplexity": 721.0817150749654,
"openwebmath_score": 0.5135897994041443,
"tag... |
It's easy to construct a tetrahedron with sides congruent to any acute isosceles triangle.
Start by taking two copies of the triangle, glue them together at the base, and then pull the apices apart until the distance between them equals the length of the base. (You can always do this if the triangles are acute, since ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806506825456,
"lm_q1q2_score": 0.8554069448932483,
"lm_q2_score": 0.8723473630627235,
"openwebmath_perplexity": 337.2846036906231,
"openwebmath_score": 0.9008432030677795,
"tag... |
python, calculator, tkinter
if mode == "plus":
result = first_number + second_number
elif mode == "minus":
result = first_number - second_number
elif mode == "mutiply":
result = first_number * second_number
elif mode == "divide":
result = first_number / second_number
... | {
"domain": "codereview.stackexchange",
"id": 45012,
"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, calculator, tkinter",
"url": null
} |
cell-biology, history
The microsomal fraction may also contain pieces from the plasma membranes apart from those from the ER. | {
"domain": "biology.stackexchange",
"id": 6434,
"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": "cell-biology, history",
"url": null
} |
aqueous-solution, stoichiometry
Title: Magnesium powder mixed with CuSO4 solution $\ce{Mg}$ powder is stirred into $\ce{CuSO4}$, what is the balanced molecular equation for this reaction ? I have $\ce{Mg + CuSO4 -> Mg2SO4 + Cu}$. Also, is the ionic equation the same as the net ionic equation? I believe it is not, beca... | {
"domain": "chemistry.stackexchange",
"id": 9900,
"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": "aqueous-solution, stoichiometry",
"url": null
} |
context-free, formal-grammars, parsers, lr-k
Title: Chomsky NF or Greibach NF benefits for LR parser? Are there any benefits of having grammar in CNF/GNF for LR parser? I have those in mind:
total speed of creating a parser (that is time for creating CNF/GNF out of the grammar, and then creating action table),
the si... | {
"domain": "cs.stackexchange",
"id": 5082,
"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": "context-free, formal-grammars, parsers, lr-k",
"url": null
} |
experimental-physics, fourier-transform, signal-processing
In fact, when you say $X(f_1)$, what you really mean is $\int X(f) {\mathrm d}f$, over some small range of frequencies, and in the mathematical and experimental details this has to be taken into account. Making everything precise requires that we know what the... | {
"domain": "physics.stackexchange",
"id": 541,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "experimental-physics, fourier-transform, signal-processing",
"url": null
} |
intelligence-testing
Title: Are there any refutation of the original Lovelace Test? The original Lovelace Test, published in 2001, is used generally as a thought experiment to prove that AI cannot be creative (or, more specifically, that it cannot originate a creative artifact). From the paper:
Artificial Agent A, de... | {
"domain": "ai.stackexchange",
"id": 183,
"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": "intelligence-testing",
"url": null
} |
ros, gazebo, hardware-interface, universal-robot, gazebo-ros-control
Title: HardwareInterface problem with Gazebo and ros_control
Hello! I am trying to simulate a full custom robot with Gazebo and MoveIt but I am running into one problem: gazebo cannot find the proper hardware interface for the joints in the URDF fil... | {
"domain": "robotics.stackexchange",
"id": 22821,
"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, gazebo, hardware-interface, universal-robot, gazebo-ros-control",
"url": n... |
python, regression, predictive-modeling
Title: Get the Polynomial Equation with Two Variables in Python
TL;DR
predict "price", given "length" and "wandRate"
I have some time-series data where the dependent variable is a polynomial result of 2 independent data points.
Here is a snippet: | {
"domain": "datascience.stackexchange",
"id": 6591,
"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, regression, predictive-modeling",
"url": null
} |
general-relativity, spacetime, curvature, vacuum, stress-energy-momentum-tensor
Note, that characteristic wavelength of gravitational waves of such hypothetical solution of EFE's would be smaller than the Compton wavelength of electron. At these scales no classical energy condition could be imposed on the matter fiel... | {
"domain": "physics.stackexchange",
"id": 73297,
"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, spacetime, curvature, vacuum, stress-energy-momentum-tensor",
... |
verilog, fpga, hdl
While it is more verbose, it avoids another common Verilog error of connecting signals up in the wrong order.
The $monitor statement is intended to be called once in an initial block, instead of every time an event occurs in an always block.
You should drive the synchronous x_in input signal using n... | {
"domain": "codereview.stackexchange",
"id": 45160,
"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": "verilog, fpga, hdl",
"url": null
} |
evolution, virology
Low temperatures mean there is relatively less energy available in the environment. This slows down or stops chemical reactions, including the ones that result in mis-shaped proteins. Extremely low temperatures may slow down a microorganism's metabolism and stop it from reproducing. That's why we k... | {
"domain": "biology.stackexchange",
"id": 10385,
"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, virology",
"url": null
} |
# Why does the definition of limits of a function have strict inequality?
Definition (As written in Michael Spivak's Calculus)
The function $f$ approaches a limit $l$ near $a$ means: for every $\epsilon >0$ there is some $\delta > 0$ such that, for all $x$, if $0<|x-a|<\delta$, then $|f(x)-l|<\epsilon$.
my question ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9653811591688145,
"lm_q1q2_score": 0.8205461606508058,
"lm_q2_score": 0.8499711775577736,
"openwebmath_perplexity": 140.94833750617306,
"openwebmath_score": 0.9796487092971802,
"ta... |
mechanical-engineering
Internal static determinacy describes whether the internal forces of the members can also be determined via static equilibrium equations. This is what the textbook is actually talking about in this case. As described by @kamran's answer, this is a function of the number of members, reactions, an... | {
"domain": "engineering.stackexchange",
"id": 3800,
"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": "mechanical-engineering",
"url": null
} |
c++
It works on my test cases, so I think it has some place here on code review. I would like to know how I can tidy this up? also! In the case where the query is not found we go back to the string the non-present query started at. Is there a way to get around this?
By "tidy this up" I mean, avoiding code repetition a... | {
"domain": "codereview.stackexchange",
"id": 36111,
"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
} |
deutsch-jozsa-algorithm, povm, history, hadamard-test
where the first outcome indicates the function is constant, the second indicates that the function is balanced, the third outcome indicates that it was inconclusive, and the fourth outcome is impossible to occur if the quantum computer is noiseless.
This has indeed... | {
"domain": "quantumcomputing.stackexchange",
"id": 5414,
"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": "deutsch-jozsa-algorithm, povm, history, hadamard-test",
"url": null
} |
php
// if account has free express delivery and using express delivery
if ($this->user?->getAccount()?->isFreeStandardAndExpressDelivery() && $expressShipping) {
return '0.0000';
}
$basket = $this->basketService->getCurrentBasket();
$basketItemsAllFreeStandardDelivery = true;
foreach ($ba... | {
"domain": "codereview.stackexchange",
"id": 44505,
"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
} |
noise, signal-detection, gaussian, radar, probability-distribution-function
Gaussian distribution. If I were to actually measure the signal voltage (by taking the square-root of the magnitude), the signal voltage level would be a Rayleigh distributed random variable. However, I am not doing this. Instead, we use the c... | {
"domain": "dsp.stackexchange",
"id": 12123,
"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": "noise, signal-detection, gaussian, radar, probability-distribution-function",
"url":... |
java, swing
@Override
public void actionPerformed(ActionEvent e) {
LecturerView view = LecturerView.this;
int result = JOptionPane.showConfirmDialog(view.contentPane, MESSAGE, TITLE,
JOptionPane.YES_NO_OPTION);
if (result == JOptionPane.YES_OPTIO... | {
"domain": "codereview.stackexchange",
"id": 3872,
"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, swing",
"url": null
} |
signal-analysis
przechowalnia_u.append(u)
przechowalnia_v.append(v)
przechowalnia_a.append(a)
przechowalnia_F.append(F)
przechowalnia_t.append(t)
przechowalnia_env.append(env)
# ************************************************************************************************************************... | {
"domain": "dsp.stackexchange",
"id": 8092,
"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",
"url": null
} |
the-moon, natural-satellites, formation
Capture scenario: The satellite formed elsewhere in the Solar System as an independent minor body. With time some dynamical interaction might have led the object close to a planet and both got gravitationally binded. An example of this is Triton, Neptune's largest moon. The retr... | {
"domain": "astronomy.stackexchange",
"id": 3802,
"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": "the-moon, natural-satellites, formation",
"url": null
} |
graphs, graph-traversal
Title: Checking if all nodes are reachable in a oriented graph from all other nodes I'm having a lot of troubles understanding a preparation exercise about oriented graphs:
Consider the following game played on a directed graph G = (V, E) with
n nodes and m edges. A pawn is initially placed on... | {
"domain": "cs.stackexchange",
"id": 21304,
"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, graph-traversal",
"url": null
} |
grassmann-numbers
Note that I have numerically tested the above expression for $I$ from $N = 1...8$, up to $5$th order terms, and got the same results as with pencil and paper. | {
"domain": "physics.stackexchange",
"id": 60626,
"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": "grassmann-numbers",
"url": null
} |
2. Jun 11, 2010
### Staff: Mentor
Re: "Calculus" (Larson, et al) 9th ed: p. 169 #29: No match to answer key.
It's much easier not to differentiate for this problem. On [-1, 3] the graph is a straight line with slope 2 and y-intercept -3. On [3, 5], the graph is horizontal.
I agree with you that the answer key is wr... | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9609517072737737,
"lm_q1q2_score": 0.8028593294104801,
"lm_q2_score": 0.8354835350552603,
"openwebmath_perplexity": 2960.755794360113,
"openwebmath_score": 0.5862548351287842,
"tag... |
python-3.x, locking
class SimpleFolderLock():
def __init__(self, folder_path, time_out=5):
self._folder_to_lock = folder_path
self._lock_file_path = os.path.join(self._folder_to_lock, "folder.lock")
self._lock_time_out = time_out
def __enter__(self):
start_time = time.t... | {
"domain": "codereview.stackexchange",
"id": 40748,
"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-3.x, locking",
"url": null
} |
algorithms, complexity-theory, reductions
Title: Cycles in hardness of ST-CON for the class NL It seems to me that the problem of $s$, $t$ connectivity in a DAG should still be NL-Complete.
I am aware that ST-CON without the DAG restriction is complete for NL, so obviously the DAG restriction is still in NL, but I bel... | {
"domain": "cs.stackexchange",
"id": 4645,
"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, complexity-theory, reductions",
"url": null
} |
c#, game, opengl
You are answering the question "What is the ith element in that ordering". Which means it needs to re-order the sequence on every iteration! Your outer loop ends up being hugely expensive (O(n^3 log(n)) if my math checks out); you certainly don't need to do that.
You should cache the result of the ord... | {
"domain": "codereview.stackexchange",
"id": 39712,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c#, game, opengl",
"url": null
} |
In Example SMLT compute (via Theorem MLTCV) the matrix of $T$ and $2T$. Do you see a relationship between these two matrices?
Here's the tough one. In Example CTLT compute (via Theorem MLTCV) the matrix of $T$, $S$ and $\compose{S}{T}$. Do you see a relationship between these three matrices??? | {
"domain": "aimath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9895109088947222,
"lm_q1q2_score": 0.8043410784842723,
"lm_q2_score": 0.8128673178375734,
"openwebmath_perplexity": 252.1956940947476,
"openwebmath_score": 0.8854233622550964,
"tags": nul... |
ros, python, ros-kinetic
Title: How to run rospy.spin() and Tkinter.mainloop() at the same time?
Hello,
I'm trying to learn ROS by writing a really simple group-chat program in Python 2.7, Tkinter and ROS Kinetic.
I built a simple GUI on Tkinter that will publish the Entry's value to the topic when the user presses E... | {
"domain": "robotics.stackexchange",
"id": 31650,
"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, python, ros-kinetic",
"url": null
} |
lo.logic, soft-question, pl.programming-languages, constructive-mathematics
Now, with this perspective, if we want to prove a statement like $\forall x \ \exists y \ \varphi(x,y)$ and we want to relate this to a mapping from $x$ to some $y$ satisfying $\varphi(x,y)$ then the better way to express can be the constructi... | {
"domain": "cstheory.stackexchange",
"id": 2072,
"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": "lo.logic, soft-question, pl.programming-languages, constructive-mathematics",
"u... |
newtonian-mechanics, angular-momentum, rotational-dynamics, reference-frames, vectors
Title: What's the definition of angular momentum on a two-body system? If some body it's rotating about the origin $O$ with constant speed, we can define the angular momentum as
$$\vec{L}=\vec{r}\times\vec{p}\implies\frac{d\vec{L}}{d... | {
"domain": "physics.stackexchange",
"id": 76347,
"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, angular-momentum, rotational-dynamics, reference-frames, vect... |
java, event-handling
/**
* Forwards an event to all listeners currently in the
* Set received from {@link #getEventListeners()}. The
* design intent is that, for a listener in the form
* {@code void onUpdate(Data data);}, this method can
* be invoked on all listeners by calling
* {@code ... | {
"domain": "codereview.stackexchange",
"id": 31266,
"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, event-handling",
"url": null
} |
deep-learning, keras, tensorflow
156/156 [==============================] - 3s 18ms/step - loss: 12.8118 - acc: 0.2051
Epoch 9/10
156/156 [==============================] - 3s 18ms/step - loss: 12.8118 - acc: 0.2051
Epoch 10/10
156/156 [==============================] - 3s 18ms/step - loss: 12.9151 - acc: 0.1987 Creat... | {
"domain": "datascience.stackexchange",
"id": 6034,
"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": "deep-learning, keras, tensorflow",
"url": null
} |
particle-physics, wavefunction, antimatter, pauli-exclusion-principle
This question which got closed got me thinking about this. I don't think there's any attraction but reading the other question there seems to be some wave function interaction which once started, creates a charged attraction. | {
"domain": "physics.stackexchange",
"id": 25795,
"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, wavefunction, antimatter, pauli-exclusion-principle",
"url": n... |
Let $G(i)=\frac{F(i)}{5}$. Then by our calculation $i(i+1)(i+2)(i+3)=G(i)-G(i-1)$.
Now consider the sum $\sum_{i=1}^n i(i+1)(i+2)(i+3)$. This is $$(G(1)-G(0))+(G(2)-G(1))+G(3)-G(2)) +\cdots+(G(n)-G(n-1)).$$ Observe the telescoping. Since $G(0)=0$, the above sum is equal to $G(n)$. Thus $$\sum_{i=1}^n i(i+1)(i+2)(i+3)=... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9848109511920161,
"lm_q1q2_score": 0.8119391360603189,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 303.36722092151905,
"openwebmath_score": 0.9602457880973816,
"ta... |
javascript, mergesort
Title: Merge Sort implementation is messy I am using this merge sort function to sort table rows by Date, Letter, and Number. It works, but it is super messy and hard for others to read.
The dates are being sorted in two formats YYYY-MM-DD and MM/DD/YYYY which is why there are if statements regul... | {
"domain": "codereview.stackexchange",
"id": 41332,
"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, mergesort",
"url": null
} |
effective in deciding which of the possible. Not familiar with word tokenization, you can visit this article, need!, concepts, and what are the two vectors measuring how similar they are to Euclidean distance Dojo 6... Used a sphere of different positive radius we would get the same result with a small Euclidean distan... | {
"domain": "vietanfoods.vn",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9805806546550656,
"lm_q1q2_score": 0.8213539319975087,
"lm_q2_score": 0.8376199633332891,
"openwebmath_perplexity": 513.9708041025052,
"openwebmath_score": 0.744763195514679,
"tags": ... |
python, programming-challenge, python-3.x
def follow_flow(flow, current_path, state, end, final_path):
"""Recursive function that follows the flow of the pipe"""
x, y = [x+y for x,y in zip(current_path[-1], DIRECTION[flow])]
if _IN_RANGE(x, y, state) and state[x][y] == end:
final_path.append(curre... | {
"domain": "codereview.stackexchange",
"id": 27976,
"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, programming-challenge, python-3.x",
"url": null
} |
javascript, jquery
Instead of storing their deferred objects in an loadData, why not return their deferred objects, then feed them to $.when? Is there really a need to put it inside loadData? In fact, statuses and protocols are also the same thing.
Unless it's a cache of some sort, this intermediary array isn't neces... | {
"domain": "codereview.stackexchange",
"id": 27005,
"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
} |
reaction-mechanism, energy, theoretical-chemistry, reaction-coordinate
When they say that, in a real reaction, the molecules will have kinetic energy and be ballistic, I think they mean that the potential energy surface (PES) may be explored in directions slightly different than the gradient. This can be compared to r... | {
"domain": "chemistry.stackexchange",
"id": 5213,
"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": "reaction-mechanism, energy, theoretical-chemistry, reaction-coordinate",
"url":... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.