text stringlengths 49 10.4k | source dict |
|---|---|
javascript, datetime
The year's correct, and the month's correct (January is zero), but the date is 1 day off. Thursday is day #4 in the 0-6 weekday scheme - but really, today's the 5th of November.
So if you were to run this on the, say, the 30th of November, you'd actually be using the 1st of November as your start ... | {
"domain": "codereview.stackexchange",
"id": 16593,
"lm_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, datetime",
"url": null
} |
ros, gazebo, moveit, rgbd, moveit-tutorial
Originally posted by t.pimentel on ROS Answers with karma: 385 on 2013-05-17
Post score: 5
Original comments
Comment by curious andrew on 2013-05-21:
I have the same issue
In config/sensors_rgbd.yaml (file specified in launch/<robot>_moveit_sensor_manager.launch) replace
- ... | {
"domain": "robotics.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": "ros, gazebo, moveit, rgbd, moveit-tutorial",
"url": null
} |
cosmology, spacetime, time, big-bang, topology
Title: How can time be finite and without boundaries? Stephen Hawking wrote about the "the possibility that space-time is finite but had no boundary" (A Brief History of Time, 2011, p.120), and that "when one combines general relativity with the uncertainty principle of q... | {
"domain": "physics.stackexchange",
"id": 40067,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cosmology, spacetime, time, big-bang, topology",
"url": null
} |
Let
$$\alpha = \tan^{-1} \left| \frac{B}{A} \right|$$
so that $$\alpha \in [0,\pi/2]$$
Let us assume $$R$$ to be always positive (conventional).
So we now have 4 cases.
CASE 1
$$A \ge 0$$ and $$B \ge 0$$
In this case, $$R \cos \theta \ge 0$$ and $$R \sin \theta \ge 0$$
Being $$R>0$$, this implies $$\sin \theta ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9688561685659695,
"lm_q1q2_score": 0.8135814384195343,
"lm_q2_score": 0.8397339716830605,
"openwebmath_perplexity": 369.03338954699666,
"openwebmath_score": 0.9645333290100098,
"ta... |
physical-chemistry, thermodynamics, equilibrium, phase
Title: How to find and use the Clausius-Clapeyron equation I know how to get the equation from the Clapeyron equation but I have a question regarding a the integration along a phase boundary and a small step in the derivation that I will make clear when I reach th... | {
"domain": "chemistry.stackexchange",
"id": 2505,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "physical-chemistry, thermodynamics, equilibrium, phase",
"url": null
} |
If you don't know, or want to use, Lagrange Multipliers as in Thomas's answer, and you want to find the local extrema on the boundary to make sure you don't miss anything, then you can either handle the endpoints with $$x=\pm15$$ that Sauhard Sharma neglected to address in their answer, or you can give the circle a mor... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9835969645988575,
"lm_q1q2_score": 0.8153416977814529,
"lm_q2_score": 0.8289388104343892,
"openwebmath_perplexity": 126.30930937758333,
"openwebmath_score": 0.7790108919143677,
"ta... |
meteor
I think you may have been mistaken. Distance is generally hard to measure. In fact, the ancients did not know if the Sun was close by and fairly small, or far away and fairly large. The same went for the Moon. It was only until the Greeks figured out how to measure the distance using some neat trigonometry that... | {
"domain": "astronomy.stackexchange",
"id": 3308,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "meteor",
"url": null
} |
lagrangian-formalism, energy-conservation
$$\mathcal{H}\equiv{T}+V$$
only if $V=V(q_i)$ alone. So if that is the case, then energy would be conserved.
So identify that in your Lagrangian and get your conclusions, anyway you can always verify it this way for your particular case. | {
"domain": "physics.stackexchange",
"id": 8852,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "lagrangian-formalism, energy-conservation",
"url": null
} |
• Thanks for your answer. Do you think the multiset union symbol $\uplus$ is clear and popular enough to use on its own? Or would I need to write a sentence or even define it (that it adds the sum together). – jbx May 21 '15 at 12:32
• I think any choice of notation for multi-sets will need a definition in your write-u... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.980280867283954,
"lm_q1q2_score": 0.8125928477327218,
"lm_q2_score": 0.8289388019824947,
"openwebmath_perplexity": 444.5328268845672,
"openwebmath_score": 0.5562049150466919,
"tags... |
wavelet, terminology, time-frequency
Title: What's the difference between the Gabor and Morlet wavelets?
The Gabor wavelet is a kind of the Gaussian modulated sinusoidal wave (source)
Gabor wavelets are formed from two components, a complex sinusoidal carrier and a Gaussian envelope. (source)
and
In fact, th... | {
"domain": "dsp.stackexchange",
"id": 10985,
"lm_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, terminology, time-frequency",
"url": null
} |
c++, c++17
The Publisher class creates messages.
#pragma once
#include <iostream>
#include <string>
#include <memory>
#include <utility>
#include "tareeqav/messaging/broker.h"
namespace tareeqav {
namespace nodes {
using tareeqav::messaging::Broker;
using tareeqav::messaging::TopicStatus;
... | {
"domain": "codereview.stackexchange",
"id": 43619,
"lm_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++17",
"url": null
} |
scala, casting, type-safety
Title: Removing asInstance[T] from scala code I've written this scala code and I cannot work out how/if it is possible to remove the asInstance in the definition of class Problem.
The basic idea is that there are two hierarchies
Problem
SpecificProblem
ConcreteSpecificProblem
and
Solution... | {
"domain": "codereview.stackexchange",
"id": 10418,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "scala, casting, type-safety",
"url": null
} |
ros, moveit, gazebo-ros-control
Title: [MoveIt] Executed motions are always slightly off from waypoints
Hi all,
I've been using MoveIt motion planning (OMPL) to simulate pick&place in the Gazebo environment. And I've noticed that the end-effector of the robot in the simulation is always off (~3cm) from given waypoint... | {
"domain": "robotics.stackexchange",
"id": 38218,
"lm_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, moveit, gazebo-ros-control",
"url": null
} |
• I personally find the observation that $4=\frac{1}{0.5(1-0.5)}$ soothing as it shows that the variance is the ratio of $pq(X_i)$ to $pq(0.5)$ (forgive the abuse of notation). – Jared Goguen Jul 27 '17 at 16:09
• In what sense is the second part of the answer $X_i=2Y_i-1$ ... different from my answer ? – user83346 Jul... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9814534349454033,
"lm_q1q2_score": 0.8628416256703344,
"lm_q2_score": 0.8791467785920306,
"openwebmath_perplexity": 280.8198992530586,
"openwebmath_score": 0.9359101057052612,
"tag... |
physical-chemistry, hydrogen-bond
Title: Volatile nature due to hydrogen bonding Why does intramolecular hydrogen bonding make an organic (or possibly inorganic as well(?)) compound volatile.
What I think is that it might be due to decrease in the solubility of the compound as intermolecular hydrogen bonding cannot be... | {
"domain": "chemistry.stackexchange",
"id": 2876,
"lm_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, hydrogen-bond",
"url": null
} |
c++, linked-list, pointers
template <class T>
typename DoubleLinkedList<T>::const_iterator& DoubleLinkedList<T>::const_iterator::operator--() {
if (!node) return *this;
if (end_reached) {
end_reached = false;
}
else if (node->previous) {
node = node->previous.get();
}
return ... | {
"domain": "codereview.stackexchange",
"id": 31718,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, linked-list, pointers",
"url": null
} |
quantum-chemistry, computational-chemistry, theoretical-chemistry, basis-set
d_{13}*\mathbf{D_2} & 0*\mathbf{D_2} \\
0*\mathbf{D_2} & d_{21}*\mathbf{D_2} \\
0*\mathbf{D_2} & d_{22}*\mathbf{D_2} \\
0*\mathbf{D_2} & d_{23}*\mathbf{D_2} \\
\end{bmatrix}
\end{equation} | {
"domain": "chemistry.stackexchange",
"id": 8389,
"lm_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-chemistry, computational-chemistry, theoretical-chemistry, basis-set",
... |
python, object-oriented, design-patterns, interview-questions
def __contains__(self, key: str) -> bool:
"""
Check whether the given key is present in the dict.
:param key: Key whose presence is to be checked.
:return: True if key is present, False otherwise.
"""
return T... | {
"domain": "codereview.stackexchange",
"id": 41759,
"lm_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, design-patterns, interview-questions",
"url": null
} |
rviz, moveit, rasbperrypi, rqt, jessie
Title: Raspbian Jessie ROS INDIGO download image
Hello all,
during christmas vacation I compiled ROS INDIGO on a Raspbian Jessie image with the following features / packages installed:
C-BERRY TFT framebuffer driver
ROS INDIGO
ROS base
RQT
imageview
geometry
moveit
rviz
robot... | {
"domain": "robotics.stackexchange",
"id": 20495,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rviz, moveit, rasbperrypi, rqt, jessie",
"url": null
} |
c#, mysql
public int ExecuteSingleInt()
{
try
{
if (_parameters != null && _parameters.Count > 0)
{
_command.Parameters.AddRange(_parameters.ToArray());
}
return int.Parse(_command.ExecuteScalar().ToString());
}
catch ... | {
"domain": "codereview.stackexchange",
"id": 24768,
"lm_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#, mysql",
"url": null
} |
roslaunch
core service [/rosout] found
process[gazebo-1]: started with pid [27035]
process[gazebo_gui-2]: started with pid [27040]
process[urdf_spawner-3]: started with pid [27045]
process[rviz-4]: started with pid [27046]
process[robot_controller_spawner-5]: started with pid [27047]
process[rqt_robot_steering-6]: sta... | {
"domain": "robotics.stackexchange",
"id": 28476,
"lm_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
} |
digital-to-analog
Title: What is the gain (advantage) of oversampling and noise shaping in D/A conversion? It is clear that oversampling and noise shaping in A/D conversion can help in shaping
quantization noise. But for D/A conversion, normally there is no quantization
and hence I did not understand its use.
What is... | {
"domain": "dsp.stackexchange",
"id": 9659,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "digital-to-analog",
"url": null
} |
ros, buildfarm
18:31:13 [xUnit] [INFO] - Converting '/home/jenkins-slave/workspace/Ipr__rtmros_nextage__ubuntu_trusty_amd64/catkin_workspace/test_results/nextage_moveit_config/rostest-test_joy.xml' .
18:31:13 [xUnit] [INFO] - Converting '/home/jenkins-slave/workspace/Ipr__rtmros_nextage__ubuntu_trusty_amd64/catkin_wor... | {
"domain": "robotics.stackexchange",
"id": 25373,
"lm_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, buildfarm",
"url": null
} |
ros, roslaunch, remap
Title: ros2 launch using IncludeLaunchDescription and remapping topics
To re-use other packages in the ROS2 ecosystem, it's often advantageous to directly re-use the launch files provided with a package by using IncludeLaunchDescription. Often the launch files from other included packages provid... | {
"domain": "robotics.stackexchange",
"id": 37394,
"lm_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, roslaunch, remap",
"url": null
} |
I have confirmed this works using a brute force algorithm.
6. Originally Posted by CalcBeginner
1) 2^9876543
a) determine last 3 digits
This is asking for $2^{9876543} \bmod{1000}$.
I'd calculate this by noticing $9876543 = 3\cdot 227\cdot 14503$.
7. For question 1 (a) ,
we have $x = 2^{9876543} \equiv 0 \bmod{8}$
... | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018369215506,
"lm_q1q2_score": 0.8083826526917572,
"lm_q2_score": 0.8289388125473629,
"openwebmath_perplexity": 918.8129703482764,
"openwebmath_score": 0.7744467854499817,
"tag... |
energy, renewable-energy, power, wind-power
Title: Relationship between wind velocity, turbine rotor diameter, and power output I'm trying to understand and identify the equations to use in defining the relationship between wind velocity, turbine rotor diameter, and power output for a wind turbine.
To simplify my ques... | {
"domain": "engineering.stackexchange",
"id": 4237,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "energy, renewable-energy, power, wind-power",
"url": null
} |
cmake
Title: pre-built ROS packages don't have CMakeLists.txt?
All these pre-built ROS packages like turtlesim and others don't seem to be having CMakeLists.txt file in them unlike the user created packages ( where a workspace is created and the packages are built ) . Is the file deliberately removed in the pre-built... | {
"domain": "robotics.stackexchange",
"id": 27307,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "cmake",
"url": null
} |
# Number of relations that are both symmetric and reflexive
Consider a non-empty set A containing n objects. How many relations on A are both symmetric and reflexive?
The answer to this is $2^p$ where $p=$ $n \choose 2$. However, I dont understand why this is so. Can anyone explain this?
#### Solutions Collecting Fr... | {
"domain": "bootmath.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.986777179803135,
"lm_q1q2_score": 0.8067638424765935,
"lm_q2_score": 0.8175744828610095,
"openwebmath_perplexity": 103.19080978760196,
"openwebmath_score": 0.9263695478439331,
"tags": n... |
python, performance, game, pygame
bg_color = (200, 0, 0)
game = Game(sample(words, 5), 60, 120)
score = Score((60, 50))
running = True
while running:
wn.fill(bg_color)
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
elif event.type == pygame.MOUSEBUTT... | {
"domain": "codereview.stackexchange",
"id": 40660,
"lm_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, game, pygame",
"url": null
} |
We can always find if an undirected is connected or not by finding all reachable vertices from any vertex. Notice that the thing we are proving for all $$n$$ is itself a universally quantified statement. We remove one vertex, and at most two edges. Below implementation of above idea, edit Handshaking lemma is about und... | {
"domain": "beerlak.hu",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9621075733703927,
"lm_q1q2_score": 0.8252651917556326,
"lm_q2_score": 0.8577681068080748,
"openwebmath_perplexity": 432.9119990276175,
"openwebmath_score": 0.4630250632762909,
"tags":... |
solid-state-physics
$(x+F)\cap(y+F)=\emptyset\,\forall x\neq y\in\mathcal{L}$, and
$\mathcal{L}+F=\text{span}(\mathcal{L})$
It is trivial to show (I'll leave it as an exercise) that 1. implies:
$$ |(\mathcal{L}+x)\cap F|\leq 1 $$
while 2. implies
$$ |(\mathcal{L}+x)\cap F|\geq 1 $$
and therefore
$$ |(\mathcal{L}+x)\c... | {
"domain": "physics.stackexchange",
"id": 19337,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "solid-state-physics",
"url": null
} |
javascript, performance, d3.js
script.js:
var data = [{type:'APPLE', country:'Germany', year:'2000', firstVal:'99.5', secondVal:'4'},
{type:'APPLE', country:'Germany', year:'2001', firstVal:'98', secondVal:'2'},
{type:'APPLE', country:'Germany', year:'2002', firstVal:'84', secondVal:'2.3'},
... | {
"domain": "codereview.stackexchange",
"id": 30851,
"lm_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, d3.js",
"url": null
} |
simple formulas can help you find the percentage of a total, for example, or the percentage difference between two numbers. It just sees a percentage! 1. If your result is a positive percentage, then your answer is âpercentage increase.â In your Excel spreadsheet, you can perform a similar calculation by substituti... | {
"domain": "swisscenter.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9637799420543366,
"lm_q1q2_score": 0.8133291654722714,
"lm_q2_score": 0.8438950947024555,
"openwebmath_perplexity": 1644.965950788949,
"openwebmath_score": 0.7913567423820496,
"tags"... |
c++, tic-tac-toe
void checkRow(bool & madeTurn, char check) {
for (int i = 0; i < 3; i++) {
int symbolCount = 0;
int columnNumber = -1;
for (int j = 0; j < 3; j++) {
if (numbers[i][j] == check) {
symbolCount++;
}
else if (numbers[i][j] != ... | {
"domain": "codereview.stackexchange",
"id": 30669,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "c++, tic-tac-toe",
"url": null
} |
python, python-3.x, programming-challenge, time-limit-exceeded, pathfinding
Title: Python program to find a word ladder transforming "four" to "five" I saw this Puzzling problem and thought I would try to write a Python program to solve it. The task is to transform "four" to "five", forming a new four-letter word at e... | {
"domain": "codereview.stackexchange",
"id": 34860,
"lm_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, programming-challenge, time-limit-exceeded, pathfinding",
... |
rna-seq
I am now running
or file in *.fasta; do ./kallisto quant -i index --single -l 200 -s 0.1 -o $file-aligned
"$file"; done
This sort of works. The index file error messages are gone, but it runs quant on the same file 10 times instead of each file once. If I run echo $file it spits back the file that my comman... | {
"domain": "bioinformatics.stackexchange",
"id": 138,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "rna-seq",
"url": null
} |
disp(‘We are finding the length of the curve by three different ways’)
disp(‘1. Using the formula from calculus’)
disp(‘2. Breaking the curve into bunch of small straight lines’)
disp(‘3. Finding dy/dx of the formula numerically to use discrete function integration’)
%INPUTS – this is where you will change input data ... | {
"domain": "autarkaw.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9799765610497292,
"lm_q1q2_score": 0.8079533654403275,
"lm_q2_score": 0.8244619285331332,
"openwebmath_perplexity": 1155.4884382881824,
"openwebmath_score": 0.5364071726799011,
"tags": ... |
ros, gazebo, sensor
Title: How to get the minimun ditsance from an obstacle
Hello, I'm working with gazebo and I would like to detect the minimum distance between my robot and an obstacle. The model of the robot is an urdf file. What is the best sensor to use? How do I "attach" it to the robot and how do I get the da... | {
"domain": "robotics.stackexchange",
"id": 6630,
"lm_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, sensor",
"url": null
} |
quantum-mechanics, hilbert-space, angular-momentum, representation-theory
$$e^{\eta J_z}e^{\zeta J_-}\vert jm\rangle\, . \tag{1}
$$ Then certainly you will eventually generate all the states $\vert jm''\rangle$ with $m''>m$ if only because, after enough applications, $e^{\xi J_+}\vert j,-j\rangle$ will produce someth... | {
"domain": "physics.stackexchange",
"id": 96267,
"lm_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, hilbert-space, angular-momentum, representation-theory",
"url... |
reaction-mechanism, energy, radicals, ozone, oxygen
There could be two reasons for writing the reaction with $M$ given that a three body collision reaction is very unlikely to happen on statistical grounds and that is either that the nascent ozone has so much energy that it needs a collision with a third body to remov... | {
"domain": "chemistry.stackexchange",
"id": 17740,
"lm_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, radicals, ozone, oxygen",
"url": null
} |
python, template, tkinter, gui, factory-method
I did!
Your symbols, keywords and values should have capitalised variable names since they're global constants. However, life would be easier if your symbols were integrated into your values, and keywords prepended with symbol. Even better: none of this actually belongs i... | {
"domain": "codereview.stackexchange",
"id": 42621,
"lm_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, template, tkinter, gui, factory-method",
"url": null
} |
Toolkit and enjoy it on your iPhone, iPad and iPod touch. The book covers all main areas and ideas in any regular Linear Algebra course such as: Determinants, Vector Spaces, Eigenvalues, etc. This method uses the concepts of combining, swapping, or multiplying rows with each other to eliminate variables from certain eq... | {
"domain": "gemsnroll.de",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9643214470715362,
"lm_q1q2_score": 0.8097734748608164,
"lm_q2_score": 0.8397339676722393,
"openwebmath_perplexity": 850.2804467515359,
"openwebmath_score": 0.4044502377510071,
"tags... |
java, optimization, parsing, regex, reinventing-the-wheel
if (j != str.length()) {
return false;
}
return true;
}
public static void main(String[] args) {
String[] regexList = { "abc****", "abc", "a*b*c", "****abc", "**a**b**c****", "abc*"};
String str1 = "abc";
... | {
"domain": "codereview.stackexchange",
"id": 5029,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "java, optimization, parsing, regex, reinventing-the-wheel",
"url": null
} |
javascript, node.js, mongodb, express.js, mongoose
Is this the most effective way of loading a competition like this? Is it feasible to load information about the competition once, and only need to reload it if something changes? Or is what I'm doing the only realistic way of loading information on a competition? I th... | {
"domain": "codereview.stackexchange",
"id": 25172,
"lm_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, node.js, mongodb, express.js, mongoose",
"url": null
} |
vcf, visualization, covid-19, software-recommendation, sars-cov-2
Title: Visualization of mutations in (part of) viral genome - existing tools? I'm trying to visualize mutations in SARS-CoV-2 sequences, somewhat like it's done on outbreak.info:
but for individual sequences, probably on the base of the vcf files gener... | {
"domain": "bioinformatics.stackexchange",
"id": 2056,
"lm_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, visualization, covid-19, software-recommendation, sars-cov-2",
"url":... |
pl.programming-languages, type-theory
I've mostly used programming languages which uses explicit subtyping. What are the advantages of implicit subtyping, as described in the notes above. The short answer is "to verify additional properties of existing code". Longer answer follows.
I am not sure "implicit" vs "explic... | {
"domain": "cstheory.stackexchange",
"id": 538,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "pl.programming-languages, type-theory",
"url": null
} |
And that's it. If there are two Matrix with dimension A (2 x 3 ) and B (3 x 2). Matrix transpose: The transpose of matrix refers to the interchanging of the rows and columns. The number $$4$$ was in the first row and the second column and it ended up in the second row and first column. In practical terms, the matrix tr... | {
"domain": "nubrace.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9773707966712549,
"lm_q1q2_score": 0.8247984344465039,
"lm_q2_score": 0.8438951084436077,
"openwebmath_perplexity": 629.0233137196188,
"openwebmath_score": 0.7180114388465881,
"tags": nu... |
feature-selection
Title: Is there a model-agnostic way to determine feature importance? Sklearn has a feature_importances_ attribute, but this is highly model-specific and I'm not sure how to interpret it as removing the most important feature does not necessarily decrease the models quality most.
Is there a model-agn... | {
"domain": "datascience.stackexchange",
"id": 7338,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "feature-selection",
"url": null
} |
robotic-arm, dynamics, jacobian
Long answer
First of all, you are partially correct about a Jacobian. It is indeed a function of joint values (say $q \in \mathbf{R}^n$). However, as a Jacobian maps a joint velocity to an end-effector velocity, its dimension is not generally $n \times n$, but rather $m \times n$, where... | {
"domain": "robotics.stackexchange",
"id": 1579,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "robotic-arm, dynamics, jacobian",
"url": null
} |
java, performance, connect-four
You can see that the equal values appear
As a column, in row 0, column 0
As a column, in row 0, column 1
...
As a counter-diagonal in row 1, column 4
So these are simply all possible matrices, stored in a list.
The code of this micromenchmark and the tested approaches are at the bott... | {
"domain": "codereview.stackexchange",
"id": 23489,
"lm_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, connect-four",
"url": null
} |
• @SamirChahine You are correct that it is a tautology. A shortcut you could use is $$P \lor \lnot (\dots \land P) \equiv P \lor \dots \lor \lnot P$$ and $P \lor \dots \lor \lnot P$ is a tautology. In other words, you could have put anything into the $\implies$ column and still would have gotten a tautology if you did ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9643214470715363,
"lm_q1q2_score": 0.8599925220103716,
"lm_q2_score": 0.8918110497511051,
"openwebmath_perplexity": 182.38477693831214,
"openwebmath_score": 0.6562475562095642,
"ta... |
# Geometry
Two cylinders have the same volume. If the radius of cylinder I is 3 times the radius of cylinder II, then the height of cylinder II is how many times the height of cylinder I?
A. 12
B. 9
C. 6
D. 3
1. 👍 0
2. 👎 0
3. 👁 96
1. Cylinder 1 has nine times the base area of cylinder 2.
Volume is (base area) x (h... | {
"domain": "jiskha.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9706877658567787,
"lm_q1q2_score": 0.8231119288983525,
"lm_q2_score": 0.8479677583778258,
"openwebmath_perplexity": 1447.8608824675596,
"openwebmath_score": 0.8250473737716675,
"tags"... |
turing-machines, computability, reductions
Title: Problem with the mapping reduction from $A_{TM}$ to $HALT_{TM}$ Sipser provided the following proof to prove the mapping reduction from $A_{TM}$ to $HALT_{TM}$, it in fact tried to build a mapping function: | {
"domain": "cs.stackexchange",
"id": 11309,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "turing-machines, computability, reductions",
"url": null
} |
quantum-mechanics, solid-state-physics, electronic-band-theory
Title: Out-of-plane electronic band structure for 2D materials? There's been much recent interest in 2D materials since they can form monolayer-thick films. Since their crystal structure is periodic along the in-plane directions, the electronic band struct... | {
"domain": "physics.stackexchange",
"id": 31735,
"lm_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, solid-state-physics, electronic-band-theory",
"url": null
} |
ros, ros-kinetic, debian, rosconsole
Title: Problem building .deb for rosconsole in kinetic
Hi folks,
I am trying to build .deb packages for kinetic on raspbian jessie on rpi3 itself.
I managed to get almost all packages i need, but I am not able to build deb package for rosconsole.
My approach:
make source installa... | {
"domain": "robotics.stackexchange",
"id": 25464,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ros, ros-kinetic, debian, rosconsole",
"url": null
} |
microbiology, bacteriology
Another complicating factor is that they will be very reluctant to share anything with someone outside of a research institute, for biological safety reasons among many others.
Long story short: you probably can't get these sorts of things easily. | {
"domain": "biology.stackexchange",
"id": 12169,
"lm_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",
"url": null
} |
atmosphere, geophysics, water, magnetosphere
Title: How much water is the atmosphere losing to space? Up until recently, I was under a (wrong) impression that the amount of planetary cumulative water resources was finite as I believed its escape from the atmosphere was impossible. I believed that, unlike other planeta... | {
"domain": "earthscience.stackexchange",
"id": 2520,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "atmosphere, geophysics, water, magnetosphere",
"url": null
} |
ros, c++, boost, callback
Title: boost::bind errors in subscriber callback
Hello. New to ROS, Boost, and if I'm quite honest, C++ in general. Basically, I am trying to pass a few parameters to a callback function using boost::bind, but am unable to compile. I am running into the same issue as this question, among oth... | {
"domain": "robotics.stackexchange",
"id": 29510,
"lm_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, c++, boost, callback",
"url": null
} |
This seems to be some alternating sign Pascal triangle. In fact, $P^{-1}$ seems the be the actual Pascal triangle! And indeed $PHP^{-1} = A$ (no PHP pun intended), for the cases I've tried.
### I have two questions:
1. Is there a good explanation for this seeming connection between the eigenvectors of the truncated h... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9861513865283938,
"lm_q1q2_score": 0.8717965664522567,
"lm_q2_score": 0.8840392848011834,
"openwebmath_perplexity": 1681.5298036583429,
"openwebmath_score": 0.9990427494049072,
"ta... |
algorithms, dynamic-programming, matrices, colorings
Title: Algorithms for 2-colouring a 2 x N matrix Our task is to color a given $2 \times N$ matrix with two colours red (R) and blue (B) such that no two adjacent cells are blue. For red, there are no restrictions.
An example of all possible solutions for $N = 2$ is ... | {
"domain": "cs.stackexchange",
"id": 13860,
"lm_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, dynamic-programming, matrices, colorings",
"url": null
} |
c++, bash, mocks
Title: C++ Mock Library: Part 2 Parts
C++ Mock Library: Part 1
C++ Mock Library: Part 2
C++ Mock Library: Part 3
C++ Mock Library: Part 4
C++ Mock Library: Part 5
C++ Mock Library: Part 6
Removing redundant MOCK_SYS usage
After writing a bunch of unit test we see a pattern emerge. The lambda's we a... | {
"domain": "codereview.stackexchange",
"id": 45023,
"lm_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++, bash, mocks",
"url": null
} |
php
if(isset($_GET['type'])){
$type = $_GET['type'];
switch ($type){
case 'cabin_information':
//I do a join here because I am storing cabin photos in their own table that shares cabin ID. This is my feeble attempt at trying to normalize my data, seemed like a good start. The image pu... | {
"domain": "codereview.stackexchange",
"id": 939,
"lm_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
} |
at any point ) and log as natural! 2, in which the variable is the simplest and fastest method homework help from basic math to,... And the binomial theorem homework help from basic math to algebra, geometry and beyond so you make... They are as follows: derivatives of many functions ( with examples below ) ln ( x =log... | {
"domain": "cot-one.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9817357259231532,
"lm_q1q2_score": 0.8546964346953193,
"lm_q2_score": 0.8705972616934406,
"openwebmath_perplexity": 429.8610010070936,
"openwebmath_score": 0.7575908303260803,
"tags"... |
and only if x. Rate 18+ equivalence Partitioning works test suite triangle ” on how the Partitioning... [ x ] = [ y ] that you want to test them all module any... By the module and any data within this class is equivalent ] is the! All car colors a triangle ” there is a set has rate 18+ x x = { y x... Elements associat... | {
"domain": "uc.pt",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9559813513911654,
"lm_q1q2_score": 0.8106413580807517,
"lm_q2_score": 0.8479677526147223,
"openwebmath_perplexity": 587.8469191748891,
"openwebmath_score": 0.500338077545166,
"tags": null,
"... |
F1 = { 0/1, 1/1 }
F2 = { 0/1, 1/2, 1/1 }
F3 = { 0/1, 1/3, 1/2, 2/3, 1/1 }
F4 = { 0/1, 1/4, 1/3, 1/2, 2/3, 3/4, 1/1 }
F5 = { 0/1, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 1/1 }
F6 = { 0/1, 1/6, 1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5, 5/6, 1/1 }
F7 = { 0/1, 1/7, 1/6, 1/5, 1/4, 2/7, 1/3, 2/5, 3/7, 1/2, 4/7, 3/5, ... | {
"domain": "wikipedia.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9956005859235121,
"lm_q1q2_score": 0.8092911688903465,
"lm_q2_score": 0.8128673087708699,
"openwebmath_perplexity": 557.5860109233022,
"openwebmath_score": 0.9529710412025452,
"tags": ... |
ruby, design-patterns
Title: Is this an appropriate class design for the strategy pattern in Ruby? I am fairly satisfied with my solution here but I would definitely appreciate any constructive criticism of my style and design. The basic idea is to use the strategy pattern to simplify assembling a custom procedural ge... | {
"domain": "codereview.stackexchange",
"id": 782,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ruby, design-patterns",
"url": null
} |
c#, datetime
counter.Date = _calculator.GetFiscalYearStartDate(fromYear, ReferenceDate);
for (var currentYear = fromYear; currentYear <= toYear; currentYear++)
{
foreach ( var fiscalCalender in GenerateForYear(counter, currentYear) )
yield return fiscalCalender;
}
}
public IEnumerable... | {
"domain": "codereview.stackexchange",
"id": 16079,
"lm_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#, datetime",
"url": null
} |
thermodynamics, statistical-mechanics, terminology, lattice-model
Title: Name for a certain 1D lattice model I have encountered a physical system where the microstates are described by a vector $$k = \left[k_1, k_2, \ldots, k_n\right]$$ where all the $k_i$ are strictly positive integers smaller than some $k_{max}$. Th... | {
"domain": "physics.stackexchange",
"id": 90834,
"lm_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, statistical-mechanics, terminology, lattice-model",
"url": null
... |
electromagnetism, electric-fields, dipole, dipole-moment
Title: Electric field in matter- Bound Charges why the term $\rho_b$ exist? I am reading the book of Griffiths, Introduction to electrodynamics, and he explains in this chapter about the bound charge densities $\sigma_b$ and $\rho_b$
but I do not understand how ... | {
"domain": "physics.stackexchange",
"id": 68731,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetism, electric-fields, dipole, dipole-moment",
"url": null
} |
earth, mars
Title: Does Mars contain more iron than the Earth? Is the reason Mars is red because its surface contains a lot of iron? (When dirt is red on Earth, it is sometimes caused by a high amount of iron).
If so, does Mars contain more iron than the earth? Mars definitely has far less Iron than Earth. Mars has 1... | {
"domain": "astronomy.stackexchange",
"id": 3153,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "earth, mars",
"url": null
} |
boost
/usr/include/boost/bind/bind_mf_cc.hpp:67:5: note: template<class R, class T, class B1, class B2, class A1, class A2, class A3> boost::_bi::bind_t<R, boost::_mfi::mf2<R, T, B1, B2>, typename boost::_bi::list_av_3<A1, A2, A3>::type> boost::bind(R (T::*)(B1, B2), A1, A2, A3)
/usr/include/boost/bind/bind_mf_cc.hpp:... | {
"domain": "robotics.stackexchange",
"id": 11202,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "boost",
"url": null
} |
quantum-mechanics, particle-physics, symmetry, group-theory, lie-algebra
In this context, $\mathbf{U}$ is called the transformer's Jones Matrix. We can also represent the polarisation state by the Stokes parameters:
$$s_j(\Psi) = \Psi^\dagger \sigma_j \Psi$$
$$\begin{array}{l}
s_0 = \Psi^\dagger\,\Psi = |\Psi|^2\\
... | {
"domain": "physics.stackexchange",
"id": 9596,
"lm_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, symmetry, group-theory, lie-algebra",
"url":... |
rosmake, roscore
Call Stack (most recent call first):
[rosbuild] Building package beginner_tutorials
[rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/rospy/cmake/rospy.cmake
[rosbuild] Including /opt/ros/diamondback/stacks/ros_comm/clients/roslisp/cmake/roslisp.cmake
[rosbuild] Including /opt/ros/diam... | {
"domain": "robotics.stackexchange",
"id": 9232,
"lm_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, roscore",
"url": null
} |
python, python-3.x
This still needs a lot of work. For example, in your __check_lines you're both calculating a winnings sum and reformatting your results matrix.
At the beginning I wrote this to fit any NxN slot interface, but ended up inserting some hardcoded values for a 5x3 machine, like most are. Would like some... | {
"domain": "codereview.stackexchange",
"id": 45283,
"lm_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",
"url": null
} |
print(len(event) / len(sample))
The output is: 0.417309670781893 or 3245 / 7776
• Welcome to MSE. It will be more likely that you will get an answer if you show us that you made an effort. – José Carlos Santos Feb 7 '18 at 12:00
• Your event is wrong. The last few entries shows ... (6, 5, 5, 5, 1), (6, 5, 5, 5, 2), ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9777138177076645,
"lm_q1q2_score": 0.829069801849482,
"lm_q2_score": 0.8479677660619633,
"openwebmath_perplexity": 1317.7452493366013,
"openwebmath_score": 0.3597155809402466,
"tag... |
c, file-system
snprintf(strNumber, 50, "%li", segment_index[i]);
fwrite(strNumber, 1, strlen(strNumber), out);
fwrite(sp, 1, 1, out);
for (int i = 0; i < strlen(header3) - strlen(strNumber) - 1; i++)
fwrite(sp, 1, 1, out);
snprintf(strNumber, 50, "%d", encode_level_buff[i])... | {
"domain": "codereview.stackexchange",
"id": 38545,
"lm_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, file-system",
"url": null
} |
turing-machines
SO, (B) must be the wrong choice according to this right? "Halt" is not synonymous with "accept", although the latter implies the former. A TM can halt and reject. On the other hand, $L(M)$ stands for the set of words accepted by $M$, not the words it halts for.
Hence, alternative (C) is correct. (B) i... | {
"domain": "cs.stackexchange",
"id": 12828,
"lm_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",
"url": null
} |
The plan is first get the "external" contour and then use Green's theorem to find its area.
r[t_] := {-9 Sin[2 t] - 5 Sin[3 t], 9 Cos[2 t] - 5 Cos[3 t], 0}
(*find the intersections*)
tr = Quiet@ToRules@Reduce[{r@t1 == r@t2, 0 < t1 < t2 < 2 Pi}, {t1, t2}];
pt = {t1, t2} /. {tr} // Flatten;
pts = SortBy[pt, N@# &];
pps... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9793540656452214,
"lm_q1q2_score": 0.841915183867935,
"lm_q2_score": 0.8596637451167995,
"openwebmath_perplexity": 3799.1356710434197,
"openwebmath_score": 0.3483494520187378,
"tag... |
ros, message
Title: See a message in a message
Hello,
I'm wondering if there is any way to, from the command line only, see a message in a message ?
Here I'm using a message of the type :
ObjectData.msg:
Header header
sensor_msgs/Image image_rgb
sensor_msgs/Image image_depth
float32 constant
geometry_msgs/PoseStampe... | {
"domain": "robotics.stackexchange",
"id": 19665,
"lm_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, message",
"url": null
} |
php, jquery, ajax
Title: File extension detection and restriction on upload I am trying to build a multiple file uploader with jQuery and Ajax. I would like to know how this code could be improved. I feel the client side validation of file types in my code are presently not good enough.
app.js
$(document).ready(functi... | {
"domain": "codereview.stackexchange",
"id": 21791,
"lm_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, jquery, ajax",
"url": null
} |
javascript, stackexchange, userscript
function clearChat() {
var chat = document.getElementById('chat');
while (chat.firstElementChild) {
chat.removeChild(chat.firstElementChild);
}
var starred = document.querySelector('#starred-posts ul');
while (starred.firstElemen... | {
"domain": "codereview.stackexchange",
"id": 22885,
"lm_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, stackexchange, userscript",
"url": null
} |
Now, observe that $$0 \leq |\dfrac{H(x)}x|\leq \dfrac{1}x \left|\displaystyle\sum_{k=k_x}^\infty \displaystyle\int_{1/((k+1)\pi)}^{1/(k\pi)}|\sin(\frac{1}t)|dt + \displaystyle\int_{1/(k_x\pi)}^x |\sin(1/t)|dt\right|\\ \leq \dfrac{1}x(\left|\displaystyle\sum_{k=k_x}^\infty \displaystyle\int_{1/((k+1)\pi)}^{1/(k\pi)}|\si... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9840936082881853,
"lm_q1q2_score": 0.8068517935160164,
"lm_q2_score": 0.8198933381139645,
"openwebmath_perplexity": 231.04785373562763,
"openwebmath_score": 0.9670203924179077,
"ta... |
beginner, rust, checksum
use byteorder::{LittleEndian, ReadBytesExt};
use std::fs::File;
use std::io::{Read, BufReader};
struct WordIterator<R> {
inner: R,
}
impl<R> WordIterator<R> {
fn new(r: R) -> WordIterator<R> {
WordIterator { inner: r }
}
}
impl<R> Iterator for WordIterator<R>
where ... | {
"domain": "codereview.stackexchange",
"id": 20078,
"lm_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, rust, checksum",
"url": null
} |
ubuntu, ros-humble, abb
[ros2_control_node-1] [INFO] [1695217067.726593491] [ABBSystemHardware]: Not connected to robot...
[spawner-4] [INFO] [1695217068.231779535] [spawner_joint_state_broadcaster]: Waiting for '/controller_manager' services to be available
[spawner-5] [INFO] [1695217068.231825933] [spawner_joint_tra... | {
"domain": "robotics.stackexchange",
"id": 38595,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "ubuntu, ros-humble, abb",
"url": null
} |
quantum-mechanics, spacetime, schroedinger-equation, metric-tensor
Title: Spacetime background of Quantum mechanics Why is it said that the Schrodinger equation suggests a fixed, non-dynamical background spacetime, with time as an external parameter? How does this interpretation come about from the Schrodinger equatio... | {
"domain": "physics.stackexchange",
"id": 31122,
"lm_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, spacetime, schroedinger-equation, metric-tensor",
"url": null... |
-
Good answer. They should teach this stuff in school. – goblin Jul 20 '13 at 17:11
Very useful to switch to prime product representation. – mvw Jul 21 '13 at 11:06
Just reduce the rational number $\frac{a}{b}$ to $\frac{c}{d}$, where $\gcd(c,d)=1$. For instance with Euclid's algorithm.
A ration number $\frac{a}{b}$ ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9914225140794153,
"lm_q1q2_score": 0.8304352858722698,
"lm_q2_score": 0.8376199592797929,
"openwebmath_perplexity": 112.04038808122242,
"openwebmath_score": 0.9428229928016663,
"ta... |
time-complexity
Title: Run-time of a summation function and its complexity I am trying to analyze the running time of the following function:
def algo(array: List[int]):
x = 1
y = 0
sigma = 0
for ix in range(1, len(array)): #len(array) always >= 1
summation = 0
for jx in range(ix, 0, ... | {
"domain": "cs.stackexchange",
"id": 17363,
"lm_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
} |
ros, abb, ros-industrial
We would like to use a planned path from Moveit (Rviz) to create our trajectory and then send that trajectory to the robot.
The ROS-Industrial drivers all implement the basic (standardised) ROS interface for arm control that lets MoveIt (or one of it's controllers) interact with them. Control... | {
"domain": "robotics.stackexchange",
"id": 20321,
"lm_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, abb, ros-industrial",
"url": null
} |
electromagnetism, electric-circuits, solid-state-physics, electrical-resistance, conductors
Title: Is resistance determined by electron mobility? How Is resistance determined by electron mobility for a given resistor or wire. The electron mobility μ is defined as
$v_{d}=\mu E$
There is a simple relation between mob... | {
"domain": "physics.stackexchange",
"id": 59478,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "electromagnetism, electric-circuits, solid-state-physics, electrical-resistance, c... |
Also, a bit more generally, are there good books (preferably with solutions) to sharpen my series skills?
• @ParclyTaxel Gah! My inability to read signs when strikes again. Retracted. – Xander Henderson Dec 8 '17 at 3:22
• Your question suggests an Infinite sum. Am I right? – Ravi Prakash Dec 8 '17 at 5:26
This is a ... | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9891815491146485,
"lm_q1q2_score": 0.8948636081827083,
"lm_q2_score": 0.9046505254608135,
"openwebmath_perplexity": 445.5246107828509,
"openwebmath_score": 0.9605997204780579,
"tag... |
organic-chemistry, experimental-chemistry
Title: Does excessive sulfuric acid as catalyst affect the synthesis of aspirin? Recently had a lab experiment to synthesize aspirin.
I was instructed to add 4 drops of concentrated sulfuric acid but misread the "4 drops" as "4 ml".
Ended up with a yield of just 10 %. But the... | {
"domain": "chemistry.stackexchange",
"id": 6844,
"lm_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, experimental-chemistry",
"url": null
} |
kinect, ros-hydro, github, git, camera-pose-calibration
Title: New errors in camera_pose_calibration
My old question:
http://answers.ros.org/question/115111/errors-in-camera_pose_calibration-launch-for-3-kinects/
A possible solution from an older one:
http://answers.ros.org/question/43035/errors-on-camera_pose_calibr... | {
"domain": "robotics.stackexchange",
"id": 16640,
"lm_label": null,
"lm_name": null,
"lm_q1_score": null,
"lm_q1q2_score": null,
"lm_q2_score": null,
"openwebmath_perplexity": null,
"openwebmath_score": null,
"tags": "kinect, ros-hydro, github, git, camera-pose-calibration",
"url": null
} |
general-relativity, cosmology, reference-frames, space-expansion, universe
(The universe is not perfectly symmetrical, since there are local concentrations of mass like the Milky Way, and so these measurements are not precisely defined, but the same is true of the pair of jeans. That there is some fuzziness in the def... | {
"domain": "physics.stackexchange",
"id": 98452,
"lm_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, reference-frames, space-expansion, universe",
"ur... |
javascript, jquery, asp.net-mvc
Title: Add colour tags on click I have implemented some extra functionality for the tag-it JavaScript plugin, where I need an option where availableTags are displayed in one box, and the user can click these options to add them to the actual tag input (selection box is on the right, rea... | {
"domain": "codereview.stackexchange",
"id": 26816,
"lm_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, asp.net-mvc",
"url": null
} |
navigation, odometry, ros-melodic
/odom OUTPUT
header:
seq: 3086
stamp:
secs: 1583007758
nsecs: 237917080
frame_id: "odom"
child_frame_id: "base_link"
pose:
pose:
position:
x: -19.4368515607
y: -17.7955061665
z: 0.0
orientation:
x: 0.0
y: 0.0
z: 0.70204... | {
"domain": "robotics.stackexchange",
"id": 34527,
"lm_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, odometry, ros-melodic",
"url": null
} |
gravity, potential
the gravitational potential at my position would be some positive number since external energy has been put in
Gravitational potential energy at any distance except infinity is negative, because you need to do work against a gravitational field to add to that potential energy, such that you might b... | {
"domain": "physics.stackexchange",
"id": 74780,
"lm_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, potential",
"url": null
} |
ros, teleop-base, boost
Originally posted by pmwalk on ROS Answers with karma: 65 on 2011-11-17
Post score: 2
I got the same error, and looking through the output:
/opt/ros/electric/stacks/teleop_base/src/teleop_base_keyboard.cpp:104:85: error: cannot call constructor ‘boost::thread::thread’ directly [-fpermissive]
/... | {
"domain": "robotics.stackexchange",
"id": 7330,
"lm_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, teleop-base, boost",
"url": null
} |
quantum-mechanics, homework-and-exercises, atomic-physics, hydrogen, orbitals
$$
\left<\frac{1}{r^3}\right> = 4\pi C^2\int_0^\infty\mathrm{d}r \;r^2\cdot\frac{1}{r^3}\cdot(re^{-r/2a})^2 = 4\pi C^2\int_0^\infty\mathrm{d}r \;r\cdot e^{-r/a} = 4\pi C^2a^2
$$ | {
"domain": "physics.stackexchange",
"id": 38217,
"lm_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, homework-and-exercises, atomic-physics, hydrogen, orbitals",
... |
and. The book is designed for undergraduate. In gas and liquids, heat conduction takes place through random molecular motions (difusions), in solid heat conduction is through lattice waves induced by atomic motions. 6 Spherical Coordinates. I am trying to solve a 1D transient heat conduction problem using the finite vo... | {
"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":... |
classical-mechanics, kinematics, density, free-fall
Title: Does material (density) affect falling rate of objects?
Suppose Galileo dropped a one-kilogram ball of cotton and one-kilogram ball of iron from the top of the Leaning Tower of Pisa, then which one will reach the ground first?
Assume that the cotton ball is t... | {
"domain": "physics.stackexchange",
"id": 78201,
"lm_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, kinematics, density, free-fall",
"url": null
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.