text stringlengths 49 10.4k | source dict |
|---|---|
visualization, android-core, opengl, rosjava, laserscan
Title: LaserScanLayer overlapping when I subscriber the topic “/scan”
First step:
In PC (Ubuntu 14.04) , I ssh to the kobuki and bring up it with this command line
roslaunch turtlebot_bringup minimal.launch --screen &
and then start the gmapping with this comm... | {
"domain": "robotics.stackexchange",
"id": 27016,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "visualization, android-core, opengl, rosjava, laserscan",
"url": null
} |
ros-melodic
Get:55 http://mirror.umd.edu/ubuntu bionic-security/main DEP-11 64x64 Icons [29 B]
Get:56 http://mirror.umd.edu/ubuntu bionic-security/universe i386 Packages [48.5 kB]
Get:57 http://mirror.umd.edu/ubuntu bionic-security/universe Translation-en [27.4 kB]
Get:58 http://mirror.umd.edu/ubuntu bioni... | {
"domain": "robotics.stackexchange",
"id": 31492,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-melodic",
"url": null
} |
quantum-mechanics, angular-momentum, atomic-physics, quantum-spin, definition
Title: Difference between spin-orbit coupling and $LS$ coupling (Russell-Saunders) I'm having some trouble understand what the difference is between these two.
It seems as though there are kind of the same, but that spin-orbit coupling reduc... | {
"domain": "physics.stackexchange",
"id": 83334,
"lm_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, angular-momentum, atomic-physics, quantum-spin, definition",
... |
molecular-biology, dna, pcr, dna-isolation
These contaminants can degrade DNA, but also render it unusable in PCR amplification and endonuclease digestion (Kim et al. 1997, Cornell U, EPICENTRE Biotechnologies).
Overall, there are definitely species-specific differences in fruit/seed plant DNA content. Practically, ho... | {
"domain": "biology.stackexchange",
"id": 3215,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "molecular-biology, dna, pcr, dna-isolation",
"url": null
} |
slam, navigation, rostopic
/camera/depth/image_rect_raw
/camera/depth/image_rect_raw/compressed
/camera/depth/image_rect_raw/compressed/parameter_descriptions
/camera/depth/image_rect_raw/compressed/parameter_updates
/camera/depth/image_rect_raw/compressedDepth
/camera/depth/image_rect_raw/compressedDepth/parameter_de... | {
"domain": "robotics.stackexchange",
"id": 24343,
"lm_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, rostopic",
"url": null
} |
electromagnetic-radiation, nuclear-physics, atomic-physics, neutrons, gamma-rays
Title: Gamma spectroscopy - Table of radioactive isotopes with gamma energy search For anyone doing gamma spectroscopy by hand, the task is considerably eased by tables like this:
http://nucleardata.nuclear.lu.se/toi/
Where not only can ... | {
"domain": "physics.stackexchange",
"id": 24821,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetic-radiation, nuclear-physics, atomic-physics, neutrons, gamma-rays",... |
cc.complexity-theory, arithmetic-circuits
$$|2^{n+m}f(2^{-(n+m)}x)-a_1x|\le|a_2|2^{-(n+m)}|x|^2+M2^{-2(n+m)}|x|^3
\le(|a_2|+M)2^{-(n+m)},$$
hence it is enough to take $m>\log_2(|a_2|+M)+1$. This means we can compute $f(x)-a_1x$, hence we can as well assume $a_1=0$.
Using the same trick once more, we have
$$|2^{2(n+m)}... | {
"domain": "cstheory.stackexchange",
"id": 2831,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cc.complexity-theory, arithmetic-circuits",
"url": null
} |
turtlebot, ros-hydro, xtion, asus, teleop
|__ Port 4: Dev 4, If 2, Class=vend., Driver=, 12M
|__ Port 4: Dev 4, If 3, Class=app., Driver=, 12M
|__ Port 6: Dev 5, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M
|__ Port 6: Dev 5, If 1, Class='bInterfaceClass 0x0e not ye... | {
"domain": "robotics.stackexchange",
"id": 18944,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "turtlebot, ros-hydro, xtion, asus, teleop",
"url": null
} |
quantum-gate, measurement
With access to $K$ and $H$, the $\text{CNOT}$ gate ($U_c$) is simply
$$U_c = (I \otimes H) K (I \otimes H) = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 1 & 0 \end{bmatrix}.$$
In this manner the $U_c$ gate is implemented without collapsing the wavefunction. Con... | {
"domain": "quantumcomputing.stackexchange",
"id": 1011,
"lm_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, measurement",
"url": null
} |
gravity, equivalence-principle
Furthermore, what does then the gravitational mass mean?
If WEP were found defective, then the notion of "gravitational mass" would become highly meaningful and distinct from inertial or rest mass. In this case, "gravitational mass" would be a distinct property analogous to electric cha... | {
"domain": "physics.stackexchange",
"id": 24135,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "gravity, equivalence-principle",
"url": null
} |
two functions that both are an inverse of $f$. u(b_1,b_2,b_3,\ldots) = (b_2,b_3,\ldots). If $$AN= I_n$$, then $$N$$ is called a right inverse of $$A$$. save hide report. inverse. Let (G, ⊕) be a gyrogroup. A.12 Generalized Inverse Definition A.62 Let A be an m × n-matrix. 1. f is injective if and only if it has a left i... | {
"domain": "wolterskluwerlb.com",
"id": null,
"lm_label": "1. Yes\n2. Yes\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.965899577232538,
"lm_q1q2_score": 0.8776336478911665,
"lm_q2_score": 0.9086179025005187,
"openwebmath_perplexity": 987.8661969525623,
"openwebmath_score": 0.8560187816619873,
... |
dx Volume by the washer. " From Math Insight. Write a practical problem and solution using arc length or area of a sector. Also, note that, by the second part of the fundamental theorem of calculus, s 0= jx (t)j, which justi es our notation ds dt for speed. You can see the answer in Wolfram|Alpha. This is the length of... | {
"domain": "cogoo-epaper.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9907319874400309,
"lm_q1q2_score": 0.8360738701999422,
"lm_q2_score": 0.8438951005915208,
"openwebmath_perplexity": 366.12298574545065,
"openwebmath_score": 0.8626194000244141,
"tags... |
string-theory, spacetime, compactification, duality, branes
Title: The equivalence of two worlds related by T-duality T-duality in string theory relates a world containing open and closed strings with a D$p$-brane with a compact dimension with radius $R$ with a dual world with a D$(p-1)$-brane with a radius $R'=\alpha... | {
"domain": "physics.stackexchange",
"id": 15464,
"lm_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, spacetime, compactification, duality, branes",
"url": null
} |
microbiology, bacteriology, experimental
Title: A Hadeeth on the fly I think most biologists here on this site will not consider my question below to be unfit for posting on Biology SE.
I came across this article about the hadeeth (a hadeeth is a saying of the Prophet Muhammad (peace be upon him)) on a fly:
"If a h... | {
"domain": "biology.stackexchange",
"id": 9112,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "microbiology, bacteriology, experimental",
"url": null
} |
software
Title: Convert CIF file to SDF file using free Linux-compatible software other than Avogadro or OpenBabel? I am trying to convert http://crystallography.net/cod/2236556.cif to a file that I can open in Avogadro without some bonds disappearing. See this crystal structure is of tianeptine hydrochloride, yet man... | {
"domain": "chemistry.stackexchange",
"id": 8527,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "software",
"url": null
} |
java, performance, beginner, formatting, complexity
/* Split input into various fields with input validation */
while(true) {
try {
String[] inputSplit = input.split(" ");
/* if not the proper number of data entities */
... | {
"domain": "codereview.stackexchange",
"id": 33411,
"lm_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, performance, beginner, formatting, complexity",
"url": null
} |
python, beginner, game, python-2.x, adventure-game
computercmd2 = cpuprompt2("Todd Henley/indigo7286", "exit", message="NAME/PASSWORD please. Type [exit] to exit. ")
if computercmd2 == "Todd Henley/indigo7286":
print "Welcome, Todd."
print "36.444890, -116.688752"
else:
... | {
"domain": "codereview.stackexchange",
"id": 16714,
"lm_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, python-2.x, adventure-game",
"url": null
} |
homework-and-exercises, newtonian-mechanics, friction
They pull in different directions on the pulley, so the net acceleration (with respect to $m_1$ going down) is:
$$F = F_1 - F_2 = g [m_1 - m_2 \sin(\alpha)].$$
Then the acceleration of both masses is:
$$ a = \frac Fm = \frac{g}{m_1 + m_2}[m_1 - m_2 \sin(\alpha)].$$... | {
"domain": "physics.stackexchange",
"id": 15530,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, newtonian-mechanics, friction",
"url": null
} |
This set of high-school worksheets offers topics like finding the reference angles in degrees and radians; finding the coterminal angles for the indicated angles, positive and negative coterminal angles, and more. The reference angle in the text box for quadrants 2 and 4 is incorrect but is correct on the diagram. 1) x... | {
"domain": "hoerzeitungen.de",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9802808678600415,
"lm_q1q2_score": 0.8104097465911859,
"lm_q2_score": 0.8267117855317474,
"openwebmath_perplexity": 969.8806239304247,
"openwebmath_score": 0.6538034677505493,
"tags... |
special-relativity, spacetime, inertial-frames, observers, time-dilation
Title: If time runs slow for moving train, how can it cover same distance in less time than someone on the ground unless the track decreases in its view? According to special relativity,
Δt=γ*Δt' ... (1)
Where,
Δt is the time the train takes to c... | {
"domain": "physics.stackexchange",
"id": 98074,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "special-relativity, spacetime, inertial-frames, observers, time-dilation",
"url"... |
# Show isometry and find geometric meaning
• I
## Summary:
With respect to an orthonormal basis in 3-space, show that the matrix of ##F## given below is an isometry and find its geometric meaning.
## Main Question or Discussion Point
The matrix ##A## in question is | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.966410494349896,
"lm_q1q2_score": 0.8115277188205283,
"lm_q2_score": 0.8397339676722393,
"openwebmath_perplexity": 2078.1166234644206,
"openwebmath_score": 0.9103139042854309,
... |
string-theory, duality
Title: Is superstrings on the $E_8$ torus dual to bosonic string theory on the Leech lattice torus? Two important unimodular lattices are $E_8$ and the Leech lattice.
One can take 10D superstring theory and compactify it over the $E_8$ torus.
One can also take 26D bosonic string theory and com... | {
"domain": "physics.stackexchange",
"id": 71978,
"lm_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, duality",
"url": null
} |
rosmake
thank you in advance!
Originally posted by danmianjing_00 on ROS Answers with karma: 3 on 2014-04-11
Post score: 0
Have you read the error message? It tells you that you are missing a package, namely pocketsphinx.
Do rosdep update and then rosdep check rbx1_speech and see what it has to say.
Edit: Hm... not ... | {
"domain": "robotics.stackexchange",
"id": 17629,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rosmake",
"url": null
} |
thermodynamics, temperature, thermal-conductivity, convection, cooling
Title: Cooling something by applying a decreasing temperature I've recently come across Fourier's Heat Equation: $k \cdot \nabla^2 \; T = \rho c \cdot \dot{T}$ and the solution to Newton's Law of Cooling: $T(t)=\left(T_\text{initial} - T_\text{cool... | {
"domain": "physics.stackexchange",
"id": 66187,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics, temperature, thermal-conductivity, convection, cooling",
"url": ... |
everyday-chemistry, stoichiometry
Assume air is, in vol %, ($N_2$,78.08%), ($O_2$,20.95%), (Ar, 0.93%), ($CO_2$, 0.04%) where the $CO_2$ percentage has been made to take up the slack in trace elements so the total for air is 100% by volume.
I want a table in atomic percent for each element for a block of EPS. The el... | {
"domain": "chemistry.stackexchange",
"id": 15894,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "everyday-chemistry, stoichiometry",
"url": null
} |
newtonian-mechanics, forces, classical-mechanics
Title: Is there a force applied to fixed pivot in a 90° linkage in the direction of applied force of one end in linkage (with two applied forces on linkage)? With a 90degree linkage with a fixed pivot and two moving pivots such as shown in the picture, on both ends ther... | {
"domain": "physics.stackexchange",
"id": 83103,
"lm_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, classical-mechanics",
"url": null
} |
time-complexity
Title: Application of floors and ceilings to the time complexity of loop with constant index increment Consider the number of times that 'statement' runs in the following examples. I am confused as to the applications of floors and ceilings when calculating the loop complexity.
for (int i = 1; i < m; i... | {
"domain": "cs.stackexchange",
"id": 18376,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "time-complexity",
"url": null
} |
electromagnetic-radiation, raman-spectroscopy
Do you have to multiply $\Delta \omega$ by $2\pi [rad]$ to get the $\text{actual}$ wavenumber?
Extra remark:
nowhere in the wikipedia-article is implied what $\omega$ should be (which is something I (possibly wrongly) assume), though I find it a bit confusing to use the sy... | {
"domain": "physics.stackexchange",
"id": 7238,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetic-radiation, raman-spectroscopy",
"url": null
} |
thermodynamics, electrostatics, electronic-band-theory, chemical-potential, fermi-energy
Title: Fermi level in a solid I am confused as to how fermi level is defined within a crystal/ solid
It is normally situated midway between valence band and conduction band, is this how it is defined or is there other reasons this... | {
"domain": "physics.stackexchange",
"id": 62267,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics, electrostatics, electronic-band-theory, chemical-potential, fermi-... |
solar-eclipse
Title: How to test direct sun viewing glasses I purchased a 10 pack of glasses for viewing the upcoming eclipse. They show to be ISO 12312-2:2015 certified. How can this be tested and verified? The American Astronomical Society (AAS) answers this question on their How to Tell If Your Eclipse Glasses or H... | {
"domain": "astronomy.stackexchange",
"id": 2421,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solar-eclipse",
"url": null
} |
angular-momentum, angular-velocity
Note that this has the same structure as in linear motion where $\vec{p} = m \vec{v}$ where in this case the mass $m$ takes the role of inertia. | {
"domain": "physics.stackexchange",
"id": 70565,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "angular-momentum, angular-velocity",
"url": null
} |
ngs, software-recommendation, design
The minDiff package reported in Stats.SE.
It handles both numeric and categorical data, but it can only optimize for two nominal criteria.
I wrote experDesign which does everything I wanted
It can handle both numeric and categorical data for an arbitrary number of variables. It ... | {
"domain": "bioinformatics.stackexchange",
"id": 656,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ngs, software-recommendation, design",
"url": null
} |
These paths are composable with each other, so we can take them in arbitrary (positive) integer combinations. Consider a point of the form $$x = \sum_{i = 1}^5 p_i^{a_i}$$. Writing this out in terms of our original moves $$v_i$$, we obtain \begin{align*} x &= p_1^a + p_2^b + p_3^c + p_4^d + p_5^e\\ &= (6 + 2a)v_1 + (4 ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. Yes\n2. Yes",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9881308796527184,
"lm_q1q2_score": 0.8703427899118722,
"lm_q2_score": 0.8807970764133561,
"openwebmath_perplexity": 523.3560065751179,
"openwebmath_score": 0.9381072521209717,
"tag... |
biochemistry, dna, protocol
Title: Concentration of DNA by isopropanol I have read that DNA can be concentrated by addition of isopropanol.
What does "concentrated" mean? What does isopropanol do on a molecular level to concentrate DNA? What you are asking about is the precipitation of DNA (or any other nucleic acid)... | {
"domain": "biology.stackexchange",
"id": 1989,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "biochemistry, dna, protocol",
"url": null
} |
python, object-oriented, role-playing-game, adventure-game, battle-simulation
Title: Dungeon and Dragons Text Based Game I've created a text based game based on D&D as part of exercise
No.45 Learning Python the Hard Way v3.0
I've implemented a few features from the game:
Character Selection,
Fight Scene,
Rolling.
Ful... | {
"domain": "codereview.stackexchange",
"id": 36850,
"lm_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, object-oriented, role-playing-game, adventure-game, battle-simulation",... |
ros2
Title: How do the executors check if a subscriber has something to do?
Hey!
I’m looking into the lower levels of ROS2, specifically the executors. In the spin we use Executor::get_next_ready_executable to get the next AnyExecutable that has something do do (“Check the subscriptions to see if there are any that a... | {
"domain": "robotics.stackexchange",
"id": 35990,
"lm_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
} |
homework-and-exercises, electromagnetism, magnetic-fields
Title: Magnetic field lines
Is the arrow that is started (*) incorrect in the top diagram (of the flat circle ) No, it's correct. Current direction is clockwise, so we can detect that direction of current towards to us. Using right hand rule we determine clo... | {
"domain": "physics.stackexchange",
"id": 37523,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, electromagnetism, magnetic-fields",
"url": null
} |
fourier-transform, homework
I have expressed this as $$\require{cancel}\cancel{\Delta\left(\frac{t-4}{4}\right)\textrm{rect}\left(\frac{t-2}{4}\right)}$$
I read that the Fourier transform of a time-domain product equals the convolution of the two transforms in frequency domain but I don't know how to proceed, can you ... | {
"domain": "dsp.stackexchange",
"id": 5145,
"lm_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, homework",
"url": null
} |
The coordinates of that last point are approximate (and of course you can freely swap the sign of the $$z$$-coordinate). The actual point is given as the solution to the three equations $$\cases{x^2 + z^2 = 1/4\\ y^2 + z^2 = 4\\ \displaystyle\left(\frac4{\sqrt{17}}(x-1/2) -\frac1{\sqrt{17}}y\right)^2 + z^2 =\frac43}$$ ... | {
"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... |
organic-chemistry, nomenclature
Title: What are the practices to naming organic chemicals by abbreviations? Is there a preferred method to writing organic chemicals by abbreviation?
I am finding it hard to decipher the methods I see in writing.
For example $\ce{EtOH}$ is ethanol, which makes sense, but $\ce{PhAc}$ is ... | {
"domain": "chemistry.stackexchange",
"id": 6455,
"lm_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, nomenclature",
"url": null
} |
javascript, object-oriented, ecmascript-6
There now isn't any need for the setPositions method - it wasn't very abstract anyway. Instead, you can call sanitizeInput and then updateUI.
Instead of
this.element.style.background = "linear-gradient(to right, var(--primary-color) " + min + "%, var(--primary-focus-color) " +... | {
"domain": "codereview.stackexchange",
"id": 37891,
"lm_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, object-oriented, ecmascript-6",
"url": null
} |
java, beginner
Title: Program that encrypts and decrypts messages and texts Overview
This is a program that encrypts and decrypts messages and texts using two simple algorithms. Please note, the algorithms used in this project are not suitable for production use. I used them to help deepen my understanding [beginner] ... | {
"domain": "codereview.stackexchange",
"id": 41875,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, beginner",
"url": null
} |
reference-request, multi-agent-systems, blockchain
Title: Are there any decentralized examples of AI systems with blockchain technology? Has there been any attempts to deploy AI with blockchain technology?
Are there any decentralized examples of AI networks with no central point of control with AI nodes acting indepe... | {
"domain": "ai.stackexchange",
"id": 2577,
"lm_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-request, multi-agent-systems, blockchain",
"url": null
} |
c#, performance, sql-server
the performance will get a lot better.
The xml-part should be rewritten like so
DataSet ds = new DataSet("FItem");
_con.Open();
_dap.Fill(ds);
_con.Close();
StringWriter sw = new StringWriter();
ds.WriteXml(sw, XmlWriteMode.IgnoreSchema);
string outputXML = sw.ToString().Replace("Tabl... | {
"domain": "codereview.stackexchange",
"id": 37462,
"lm_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, sql-server",
"url": null
} |
homework-and-exercises, quantum-field-theory, group-theory, representation-theory, lie-algebra
The Lie group homomorphism $\rho: SL(2,\mathbb{C}) \to O(u(2),\mathbb{R})$ induces a Lie algebra homomorphism
$$\rho: sl(2,\mathbb{C})\to o(u(2),\mathbb{R})\tag{6}$$
given by
$$ \rho(\tau)\sigma ~=~ \tau \sigma +\sigma \ta... | {
"domain": "physics.stackexchange",
"id": 43255,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, quantum-field-theory, group-theory, representation-theory,... |
java, swing, file-system, formatting, stackexchange
Note how the above is changed to use a Writer instead of an OutputStream..... Using an OutputStream for text data is a broken model.... Readers and Writers for text, and Streams for binary.
That's a good segway in to the non-gui code....
The Core engine
The TextareaO... | {
"domain": "codereview.stackexchange",
"id": 6023,
"lm_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, file-system, formatting, stackexchange",
"url": null
} |
physical-chemistry, free-energy, reaction-coordinate
Title: Regarding the free energy requirements for reacting gases Continued from my previous question here.
With regards to the Boltzmann factor, I am confused on what type of terms we can substitute for E. I know kinetic energy is one, free energy as well, but can... | {
"domain": "chemistry.stackexchange",
"id": 2058,
"lm_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, free-energy, reaction-coordinate",
"url": null
} |
the following expression using Boolean Algebra: $$x = \bar{A} \bar{B} \bar{C} + \bar{A}BC + ABC + A \bar{B} \bar{C} + A \bar{B} C$$ Answer: \begin. Boolean Expression Simplification using AND, OR, ABSORPTION and DEMORGANs THEOREM. Simplify the following Boolean expression using a k-map of size 2x2. Dansereau; v. Simpli... | {
"domain": "rallystoryeventi.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9648551535992068,
"lm_q1q2_score": 0.838291986084183,
"lm_q2_score": 0.8688267694452331,
"openwebmath_perplexity": 892.2882055966397,
"openwebmath_score": 0.7118634581565857,
... |
organic-chemistry, reaction-mechanism, aromatic-compounds, nitro-compounds
Title: Why is the ortho product major in the nitration of anisole with nitric acid and acetic anhydride? There is this weird information I found in my organic chemistry book ("Essential Organic Chemistry" by Ranjeet Shahi)
The question asks us ... | {
"domain": "chemistry.stackexchange",
"id": 15591,
"lm_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, reaction-mechanism, aromatic-compounds, nitro-compounds",
"... |
experimental-physics, pressure, collision, data-analysis
Let us define $P$ as the pressure and $\varepsilon$ as the internal energy of a solid material. These can be divided into two parts: an elastic (subscript $c$) and thermal part. $P_{c}$ and $\varepsilon_{c}$ depend only upon the density of the material, $\rho... | {
"domain": "physics.stackexchange",
"id": 26024,
"lm_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, pressure, collision, data-analysis",
"url": null
} |
everyday-chemistry
Title: Can Hydrogen Peroxide solution bleach paper without touching the paper surface? As many webpages suggest, 3% hydrogen peroxide solution can be used to bleach paper by soaking the piece of paper into the solution. I tried and it is really quite effective.
However, if the piece of paper cannot ... | {
"domain": "chemistry.stackexchange",
"id": 17016,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "everyday-chemistry",
"url": null
} |
rosmake
Title: rosmake error" RuntimeError: maximum recursion depth exceeded in cmp"
whenever i am running rosmake i am getting the following output
File "/opt/ros/fuerte/lib/python2.7/dist-packages/rosmake/engine.py", line 314, in build_or_recurse
self.build_or_recurse(d)
File "/opt/ros/fuerte/lib/python2.7/dist-pac... | {
"domain": "robotics.stackexchange",
"id": 17891,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rosmake",
"url": null
} |
general-relativity, cosmology, simulations
\rho = \frac{\Lambda}{8 \pi G}.
\end{equation}
The solution to the following differential equation is well known :
\begin{equation}\tag{3}
\Big( \frac{d a}{d t} \Big)^2 = \frac{\Lambda}{3} \, a^2 - k,
\end{equation}
with solution
\begin{equation}\tag{4}
a(t) = a_0 \cosh{\omeg... | {
"domain": "physics.stackexchange",
"id": 42350,
"lm_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, simulations",
"url": null
} |
wavelet
Title: Why not stop with the first level decomposition in wavelet? Typically, We do wavelet decomposition with the last one level.
But I wonder, why do decomposition withh the last one level?
In the other word, why not stop with the first decomposition level? The number of levels (frequency range represented) ... | {
"domain": "dsp.stackexchange",
"id": 2690,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "wavelet",
"url": null
} |
c++, matrix, computational-geometry, graphics, c++17
Type const& x() const noexcept {
return matrix_[0];
}
Once you're doing this, the MatrixToVectorContainer classes all become unnecessary. What you'd do instead is use SFINAE/enable_if in your Matrix class to enable x(), g(), or whatever depending on the Rows an... | {
"domain": "codereview.stackexchange",
"id": 30704,
"lm_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++, matrix, computational-geometry, graphics, c++17",
"url": null
} |
error-correction
This question is similar to Why can't there be an error correcting code with fewer than 5 qubits?
but for $ d=2 $ instead of $ d=3 $. No, there is no $[\![3,1,2]\!]$ code.
Background
As in classical error correction, existence of quantum codes can often be ruled out using a range of inequalities that ... | {
"domain": "quantumcomputing.stackexchange",
"id": 4056,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "error-correction",
"url": null
} |
February 27th, 2017, 10:57 PM #3 Senior Member Joined: Sep 2016 From: USA Posts: 250 Thanks: 127 Math Focus: Dynamical systems, analytic function theory, numerics From inspection you can see that it is symmetric. In particular, if $x = y$ then clearly the polynomial is zero. Thus, $(x-y)$ is a factor. Similarly, the ... | {
"domain": "mymathforum.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9664104962847374,
"lm_q1q2_score": 0.8074200617092395,
"lm_q2_score": 0.8354835391516133,
"openwebmath_perplexity": 652.2647263840031,
"openwebmath_score": 0.6605483293533325,
"t... |
ros, slam, navigation, 2d-mapping, gmapping
Title: How to make better maps using gmapping?
I'm rather new to ROS and using ROS with SLAM for the first time. I'm using a Hokuyo LIDAR and the gmapping package. My maps don't look very good. Specifically, there are two points I'm interested in:
I've adjusted all the g... | {
"domain": "robotics.stackexchange",
"id": 28662,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, slam, navigation, 2d-mapping, gmapping",
"url": null
} |
counting-complexity
In the paper Cai, Lu and Xia, Holographic Reduction, Interpolation and Hardness, 2012, the authors provide a dichotomy for all problems of the form $\mathrm{Holant}([x,y,z][t_1,t_2,t_3,t_4])$, so over 2-3-regular bipartite graphs. They do not specify if they talk about simple graphs or multigraphs.... | {
"domain": "cstheory.stackexchange",
"id": 4666,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "counting-complexity",
"url": null
} |
homework-and-exercises, kinematics, velocity, vectors, relative-motion
I've drawn the man swimming at some arbitrary angle $\theta$ at a speed $v$. The river is flowing at a speed $V$, and the time the man takes to cross is $t$. The distance swum by the man is $d_m$ and the distance the water moves is $d_r$.
The key p... | {
"domain": "physics.stackexchange",
"id": 7826,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, kinematics, velocity, vectors, relative-motion",
"url": n... |
memory-hardware
Title: Without Rare Metals One often sees assertions that these are "necessary" for modern military and consumer computing applications. I presume that without these rare metals, the devices could be manufactured, but would be larger and/or more expensive. Is this true? Sort of, it seems.
First, I am ... | {
"domain": "cs.stackexchange",
"id": 14210,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "memory-hardware",
"url": null
} |
beginner, haskell, dice
main = do
args <- getArgs
roll <- evalRandIO (rollDice (diceCode (args!!0)))
putStrLn ("You rolled: " ++ show roll)
I was able to get the diceCode 'parsing' function by myself without too much trouble.
The rollDie function is almost straight from an example in the Control.Monad.Random do... | {
"domain": "codereview.stackexchange",
"id": 17513,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, haskell, dice",
"url": null
} |
fft, discrete-signals, fourier-transform, continuous-signals
Can someone explain why we have to do this. The most common justification I keep seeing is
"It's just because the FFT 'assumes' the time zero point is the first value in your vector!"
or
"It's just because of the periodicity of the DFT!"
Is there a nice way ... | {
"domain": "dsp.stackexchange",
"id": 8736,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "fft, discrete-signals, fourier-transform, continuous-signals",
"url": null
} |
thermodynamics, units, thermal-conductivity
Edit 1
In case there was some confusion, I come from an applied math background, and since $u$, $\alpha$, and $f$ are functions I tend to label their domains as well hence the $m^3\times s$ bit. Basically, that's my way of saying that the temperature varies with respect to ... | {
"domain": "physics.stackexchange",
"id": 19715,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "thermodynamics, units, thermal-conductivity",
"url": null
} |
condensed-matter, semiconductor-physics
Don't worry, your confusion is well placed and your question is rather common, note that some of the things I describe here may or may not be already clear to you, but I have to make sure they're mentioned.. First things first, the statement that "fermi level is the maximum ener... | {
"domain": "physics.stackexchange",
"id": 76117,
"lm_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, semiconductor-physics",
"url": null
} |
finite-automata, discrete-mathematics
Title: Is it possible to denote "any single alphabet symbol" in an FSA state diagram? This is a possible duplicate of the following (but not sure it answered my question):
Is it possible to support .(any symbol) or \d, \w, \W in DFA
My professor is asking for a finite automata sta... | {
"domain": "cs.stackexchange",
"id": 13190,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "finite-automata, discrete-mathematics",
"url": null
} |
quantum-gate, circuit-construction, quantum-inspire
$HTH = Rx(\pi/4)$ which together with the fact that $T=Rz(\pi/4)$ allows to build gate
$$R_{\hat{n}}=Rz(\pi/4)Rx(\pi/4)= \text{exp}(-i\frac{\pi}{8}Z)\text{exp}(-i\frac{\pi}{8}X) = \\ \cos^2\frac{\pi}{8}I-i(\cos\frac{\pi}{8}(X+Z)+\sin\frac{\pi}{8}Y)\sin\frac{\pi}{8}$... | {
"domain": "quantumcomputing.stackexchange",
"id": 1667,
"lm_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, circuit-construction, quantum-inspire",
"url": null
} |
homework-and-exercises, optics, geometry, double-slit-experiment, approximations
Title: Problem in Youngs double slit experiment
This is from Young Double slit experiment. But How to prove the the two $\theta$ are equal, I meant, how $\angle EAD= \angle PEC$? I see from the both triangle have $90^0$ but what about o... | {
"domain": "physics.stackexchange",
"id": 91372,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "homework-and-exercises, optics, geometry, double-slit-experiment, approximations",... |
java, finance
private double calculatePayment(double loanAmount, double rate, double termInMonths) {
return (loanAmount * ((rate/12.0)*(Math.pow((1 + (rate/12.0)), termInMonths)))) / (Math.pow((1 + (rate/12.0)), termInMonths) - 1);
} Unit testing
public void testItAll() { ... }
Kind of a good start...
System.... | {
"domain": "codereview.stackexchange",
"id": 20633,
"lm_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, finance",
"url": null
} |
Your best bet in a situation like this, where there are relatively few numbers between $50$ and $100$ which are divisible by $7$, is to just list them, and count the number of entries on the list. (Of course, you'd like a more efficient means if the interval over which multiples of a given number span is very very larg... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9843363535858372,
"lm_q1q2_score": 0.8001348448958223,
"lm_q2_score": 0.8128673110375457,
"openwebmath_perplexity": 119.77804544702488,
"openwebmath_score": 0.7805230021476746,
"ta... |
javascript, performance, beginner, game, playing-cards
This might not seem like much, but now your decks are able to manage themselves. They've become their own module. Your whoWon function doesn't need to know that the cards are stored as an array; It doesn't need to know that the top of the deck is the front of the ... | {
"domain": "codereview.stackexchange",
"id": 20069,
"lm_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, performance, beginner, game, playing-cards",
"url": null
} |
ds.algorithms, reference-request
Sum: v_fill + v_C_1 + v_C_2 + v_clear + v_C_3 | {
"domain": "cstheory.stackexchange",
"id": 5743,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ds.algorithms, reference-request",
"url": null
} |
Clearly, that is not satisfying. Well, the term $\gamma$ of the weight $w$ makes us think of Gauss-Legendre integration, so let's try it instead.
function quad_gaussleg(N, γ)
a, b = rm_legendre(N)
nodes, weights = golubwelsch(a, b)
end
int_gaussleg = dot(weights, γ .+ (1-γ)/sqrt.(1 .- nodes.^2))
print("Gauss-Legendre ... | {
"domain": "sciml.ai",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9845754492759498,
"lm_q1q2_score": 0.8388118127598536,
"lm_q2_score": 0.8519528019683106,
"openwebmath_perplexity": 5271.744404020829,
"openwebmath_score": 0.7697939872741699,
"tags": null,... |
quantum-mechanics, mathematical-physics
I am confused, however if, for example, $A,B=\mathbb{C}^2$. In this case $\mathscr{O}_M$ is a $2\times 2$ matrix with entries being operators in $\mathbb{C}^2$. Thus, $\mathscr{U}_M$ is a $4\times 4$ matrix with entries being operators in $\mathbb{C}^2$. Can I understand the ope... | {
"domain": "physics.stackexchange",
"id": 67270,
"lm_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, mathematical-physics",
"url": null
} |
python, beginner, algorithm, programming-challenge, python-2.x
,"illvkvdo","lilvvdok","lolvvkdi","vlvolikd","vklivldo","ildvkolv","dlvovlik","vidvkllo","ldovlvik","dvlikolv","viodklvl","oivvldkl","kilolvvd","iovvlldk","kvlodilv","livodlvk","voillvdk","ilvdvokl","lidvvlko","ivoldklv","dillvokv","kvilvodl","odlilvkv","i... | {
"domain": "codereview.stackexchange",
"id": 39357,
"lm_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, algorithm, programming-challenge, python-2.x",
"url": null
... |
python, python-2.x
Title: CSGO inventory and price python code #!/usr/bin/python
# -*- coding: utf-8 -*-
import urllib2
import json
import datetime
import time
global file_name
file_name = "skins 2017-05-05 23-15-16.txt"
wear_list = ["Factory New", "Minimal Wear", "Field-Tested", "Well-Worn", "Battle-Scarred"]
wear_... | {
"domain": "codereview.stackexchange",
"id": 25538,
"lm_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",
"url": null
} |
meteorology, climate-change, precipitation, climate-models
Title: What is the methodology to analyze future climatic extremes using the results of climate models? What is the accepted methodology to predict future climatic extremes using the results of climate models?
I have recently read a report about climatic extre... | {
"domain": "earthscience.stackexchange",
"id": 357,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteorology, climate-change, precipitation, climate-models",
"url": null
} |
We use usual cycle notation to represent swaps, which act from the left. So $(35)\langle123456\rangle=\langle125436\rangle,$ and $(23)(35)\langle123456\rangle=\langle135426\rangle.$ Every element of $S_n$ has a unique swap representation $(a_1b_1)(a_2b_2)\ldots(a_kb_k)\langle12\ldots n\rangle$ where $0\le k\le n-1,$ $a... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936064221572,
"lm_q1q2_score": 0.8496581562953932,
"lm_q2_score": 0.863391602943619,
"openwebmath_perplexity": 160.4422754281705,
"openwebmath_score": 0.9476654529571533,
"tags... |
beginner, algorithm, strings, rust
s1_iter = s1_prev_pos.clone();
s2_iter = s2.chars();
}
None => break,
},
}
}
max.unwrap_or_default()
}
fn criterion_benchmark(c: &mut Criterion) {
let s1 = "GXTKAYB";
let s2 = "AGGTAB";
c.be... | {
"domain": "codereview.stackexchange",
"id": 33390,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "beginner, algorithm, strings, rust",
"url": null
} |
ros-kinetic
Title: How to resolve catkin_pkg error
This is the error message I get after creating a ROS workspace:
jones@gee:~/catkin_ws$ catkin_make
Base path: /home/jones/catkin_ws
Source space: /home/jones/catkin_ws/src
Build space: /home/jones/catkin_ws/build
Devel space: /home/jones/catkin_ws/devel
Install space... | {
"domain": "robotics.stackexchange",
"id": 32216,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros-kinetic",
"url": null
} |
If $l \in W^{*}$, then the composition $l \circ T : V \mapsto F$ is a linear functional over $V$, and so we get an assignment, $T^{t}$, which sends $l \in W^{*}$ to $m = l \circ T$ in $V^{*}$. We can prove that $T^{t} : W ^{ * } \mapsto V ^ { * }$ is a linear transformation, such that, for $v \in V$, we have
$$(T^{t}(... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.971563970248593,
"lm_q1q2_score": 0.8010175046044625,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 97.77617244712535,
"openwebmath_score": 0.9698706865310669,
"tags... |
php, mysql, search
Are you sure you want to be checking $where for a value, if it contains that value append a second ORDER BY statement to it? That doesn't make much sense :(
Removing a filter category
I would save the search state to $_SESSION each time it is run through your function. You can then recall the previo... | {
"domain": "codereview.stackexchange",
"id": 1729,
"lm_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, mysql, search",
"url": null
} |
python, beginner, strings, programming-challenge, parsing
My Solution
import re, operator as op
parse_op = re.compile(r"(-?[0-9?]+)([-+*])(-?[0-9?]+)(=)(-?[0-9?]+)") #For parsing the LHS.
ops = {"*": op.mul, "+": op.add, "-": op.sub}
def solve_runes(s):
search = set("0123456789") - set(c for c in s if c.isnumer... | {
"domain": "codereview.stackexchange",
"id": 33748,
"lm_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, strings, programming-challenge, parsing",
"url": null
} |
javascript, beginner, object-oriented, tic-tac-toe, mvc
boardDim doesn't belong in state, as it's never going to change, so it's not "state". If wanted, you could calculate the board size from boardArray instead, by just doing boardArray.length. You could even make a helper function to do this. (Also, boardDim is not ... | {
"domain": "codereview.stackexchange",
"id": 43220,
"lm_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, tic-tac-toe, mvc",
"url": null
} |
classification, multilabel-classification
classifier.fit(X_train, y_train_mlb)
y_predicted = classifier.predict(X_test)
all_labels = mlb.inverse_transform(y_predicted)
y_test_mlb = mlb.transform(y_test)
print("Accuracy = ", accuracy_score(y_test_mlb,y_predicted)) | {
"domain": "datascience.stackexchange",
"id": 5217,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "classification, multilabel-classification",
"url": null
} |
tensor-calculus, maxwell-equations
Title: Why does $\epsilon_{\mu\nu\rho\sigma}\partial^{\rho}\partial^\mu A^\nu-\epsilon_{\mu\nu\rho\sigma}\partial^{\rho}\partial^\nu A^\mu=0$? The tensor $F^{\mu\nu}$ is defined as $\partial^\mu A^\nu-\partial^\nu A^\mu$. Why is the equation
$$\epsilon_{\mu\nu\rho\sigma}\partial^{\rh... | {
"domain": "physics.stackexchange",
"id": 72288,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "tensor-calculus, maxwell-equations",
"url": null
} |
Now notice that for all $x$ such that $|x - c| < \delta$, we have \begin{align*} |f(x) - f(c)| &= |f(x - c + c) - f(c)|\\ &= |f(x - c)f(c) - f(c)|\\ &= |f(c)| |f(x - c) - 1|\\ &\lt |f(c)| \frac{\varepsilon}{|f(c)|}\\ &= \varepsilon. \end{align*} Hence $f$ is continuous at $c$. Since $c$ was arbitrary, $f$ is continuous... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9848109520836026,
"lm_q1q2_score": 0.8330933770937216,
"lm_q2_score": 0.8459424373085146,
"openwebmath_perplexity": 256.77130488965224,
"openwebmath_score": 0.987245500087738,
"tag... |
$38k - (2*38 - 7)l = 34$
$38(k-2l) + 7l = 34$. Let $m=k-2l$
$38m + 7l = 34$.
$(3+ 5*7)m + 7l = 34$
$3m + 7(5m + l) = 34$. Let $n = 5m+l$.
$3m + 7n = 34$
$3m + 2*3n + n = 34$
$3(m + 2n) + n = 34$. Let $a = m+2n$.
$3a + n = 34$.
Let $a=11; n = 1$. So $a=m+2n; 11=m + 2; m = 9$. and $n= 5m + l; 1=5*9 +l; l = -44$.... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9861513893774303,
"lm_q1q2_score": 0.8342273156303694,
"lm_q2_score": 0.8459424431344437,
"openwebmath_perplexity": 358.6067095052563,
"openwebmath_score": 0.7610162496566772,
"tag... |
java, object-oriented, javafx, symbolic-math
}
}
else if(root.getLeftChild().getType().equals("unaryMinus")) {
if(root.getRightChild().getType().equals("constant") && root.getLeftChild().getRightChild().getType().equals("constant")) {
int num1 = Integer.parse... | {
"domain": "codereview.stackexchange",
"id": 25809,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, object-oriented, javafx, symbolic-math",
"url": null
} |
php, object-oriented, form
$fieldHTML .= empty($placeholder) ? "" : " placeholder=\"$placeholder\" ";
$fieldHTML .= empty($style) ? "" : " style=\"$style\" ";
$fieldHTML .= "></textbox>\n";
break;
case 'submit':
$fieldHTML = " <input type=\"$... | {
"domain": "codereview.stackexchange",
"id": 8987,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "php, object-oriented, form",
"url": null
} |
Let $g(x)=\displaystyle \int_0^x e^{-t^2}dt$
First:
For $x>0$
$\displaystyle x\int_0^{\tfrac{\pi}{4}} \dfrac{e^{-x^2\tan^2 t}}{\cos^2t}dt=g(x)$ (1)
(perform change of variable $u=x\tan t$ )
$\displaystyle-2e^{-x^2}g(x)=-2e^{-x^2}\int_0^x e^{-t^2}dt=-2e^{-x^2}x\int_0^{\tfrac{\pi}{4}} \dfrac{e^{-x^2\tan^2 t}}{\cos^2... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9852713848528317,
"lm_q1q2_score": 0.8032252437608665,
"lm_q2_score": 0.815232489352,
"openwebmath_perplexity": 823.3735776777373,
"openwebmath_score": 0.995977520942688,
"tags": n... |
newtonian-mechanics, classical-mechanics, symmetry, group-theory, galilean-relativity
The correct is
$$g_3(v)g_1(a,b)g_2(D)(t,x)=g_3(v)g_1(a,b)(t,Dx)=g_3(v)(t+a,Dx+b)=(t+a,Dx+b+vt),$$
$$g_1(a,b)g_3(v)g_2(D)(t,x)=g_1(a,b)g_3(v)(t,Dx)=g_3(v)(t,Dx+vt)=(t+a,Dx+vt+b).$$
Boosts and translations commute. The order only matte... | {
"domain": "physics.stackexchange",
"id": 39864,
"lm_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, classical-mechanics, symmetry, group-theory, galilean-relativ... |
## A word on hard problems and NP-completeness
Although the pruning technique and the branching heuristics described above allow the recursive method to avoid some candidates for a solution, they do not guarantee that the run-time of the algorithm would be small (or even reasonable) for all instances.
When we increa... | {
"domain": "aalto.fi",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9891815494335754,
"lm_q1q2_score": 0.8155425236489348,
"lm_q2_score": 0.8244619242200082,
"openwebmath_perplexity": 509.7814090194408,
"openwebmath_score": 0.6840194463729858,
"tags": null,... |
newtonian-mechanics, electromagnetism, batteries, electrical-engineering
Title: Alternator wear due to bad battery I recently heard that a bad car battery (I assume "bad" means it drains faster than it was designed to) will wear out your alternator faster.
How is this possible?
Please note I am not looking for an answ... | {
"domain": "physics.stackexchange",
"id": 49802,
"lm_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, electromagnetism, batteries, electrical-engineering",
"url"... |
newtonian-mechanics, forces, mass, acceleration
And is "the body accelerating" thus by (4) ?
(4) $= {N \textbf{F} \over M}$ is the reason for the title "Force on body = multiple ?"
Considering objects on earth are known to be made of "few" "things" occupying volume (but not assuming the number of kind of particle in (... | {
"domain": "physics.stackexchange",
"id": 97542,
"lm_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, mass, acceleration",
"url": null
} |
navigation, rospy
Title: How do you modify the velocity multiplexer for turtlebot?
I have a Kobuki Turtlebot and would like to publish to the multiplexer on my own topic. The official documentation hasn't done me well explaining how to modify the parameters.
Where can I find the config and YAML files discussed in the... | {
"domain": "robotics.stackexchange",
"id": 25761,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "navigation, rospy",
"url": null
} |
model-checking, mu-calculus
Title: Why do we have free variables in mu-calculus? I'm reading the Model Chekcing book of E. M. Clarke and in the chapter about µ-calculus there is an example formula
$$
f = \mu Z. ((q \mathrel{\mathrm{AND}} Y) \mathrel{\mathrm{OR}} \langle a \rangle Z)
$$
As the author has mentioned, her... | {
"domain": "cs.stackexchange",
"id": 14792,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "model-checking, mu-calculus",
"url": null
} |
knowrob
% library(assoc) compiled into assoc 0.00 sec, 19,484 bytes
% library(sgml_write) compiled into sgml_write 0.00 sec, 66,928 bytes
% library(nb_set) compiled into nb_set 0.00 sec, 3,400 bytes
% library(utf8) compiled into utf8 0.00 sec, 7,108 bytes
% library(url) compiled into url... | {
"domain": "robotics.stackexchange",
"id": 16296,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "knowrob",
"url": null
} |
radioactivity, neutrons, protons, strong-force
Title: Unstable vs. stable nuclei plotted on a graph The enclosed graph shows the number of Protons on the x-axis (Z), and the number of Neutrons on the y-axis for all elements (N). Stable combinations are marked by black squares, whereas unstable ones are marked by grey ... | {
"domain": "physics.stackexchange",
"id": 87376,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "radioactivity, neutrons, protons, strong-force",
"url": null
} |
ros
(.text+0xae): undefined reference to `sqlite3_column_text'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libsoci_sqlite3-gcc-3_0.a(standard-into-type.o): In function `soci::sqlite3_standard_into_type_backend::post_fetch(bool, bool, soci::indicator*)':
(.text+0x213): undefined reference to `sqlite3_colu... | {
"domain": "robotics.stackexchange",
"id": 11223,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.