text
stringlengths
1
1.11k
source
dict
ros-kinetic Original comments Comment by Kappa95 on 2020-11-15: Thank you so much for your answer: actually i misunderstood the method: set_planning_time(planning_time) as the maximum time in which the planner should find a solution... Infact this solved the time. But sometimes is not able to compute any motion. Actua...
{ "domain": "robotics.stackexchange", "id": 35757, "lm_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 }
terminology, periodic-trends, notation, periodic-table correct: G_{\text{table}} $G_{\text{table}}$ wrong: G_{table} $G_{table}$ The reason is because "table" is a plain old English word. You can see Which symbols are written in roman (upright) font and which are italicized? for more information; even though that pos...
{ "domain": "chemistry.stackexchange", "id": 16184, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "terminology, periodic-trends, notation, periodic-table", "url": null }
c#, mysql, authorization stopwatch.Stop(); _logManager.Log("Loaded " + _permissions.Count + " permissions [" + stopwatch.ElapsedMilliseconds + "ms]", LogType.Information); } catch (Exception exception) { var method = System.Reflection.MethodBase.GetCu...
{ "domain": "codereview.stackexchange", "id": 22652, "lm_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, authorization", "url": null }
fl.formal-languages, automata-theory, time-complexity, polynomial-time, decidability Title: What notable automaton models have polynomially-decidable containment? I'm trying to solve a particular problem, and I thought I might be able to solve it using automata theory. I'm wondering, what models of automata have conta...
{ "domain": "cstheory.stackexchange", "id": 4542, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "fl.formal-languages, automata-theory, time-complexity, polynomial-time, decidabili...
They are different, because $$3^{3^3} = 3^{(3^3)} = 3^{27} = 7\,625\,597\,484\,987$$ whilst $${(3^3)}^3 = 27^3 = 19\,683 = 3^9 = 3^{(3^2)}$$ One of general properties of exponentiation is $$(a^b)^c = a^{(b\cdot c)}$$ which corresponds to $$\log (a^b)^c = c\cdot\log a^b = c\cdot(b\cdot\log a) = (c\cdot b)\log a = \log ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9744347875615794, "lm_q1q2_score": 0.8301724512613285, "lm_q2_score": 0.8519528057272543, "openwebmath_perplexity": 634.0496309267692, "openwebmath_score": 0.8048638105392456, "tag...
quantum-mechanics, quantum-field-theory, condensed-matter, density-operator, open-quantum-systems $$ \frac{d \tilde{\rho}(t)}{dt} =-i\alpha[\tilde{H}_I(t),\tilde{\rho}_0]-\alpha^2 \int_0^tds [\tilde{H}_I(s),[\tilde{H}_I(s),{\tilde{\rho}(t)}]] +\mathcal{O}(\alpha^3), \quad (**) $$ where now the integral doesnt integra...
{ "domain": "physics.stackexchange", "id": 76340, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "quantum-mechanics, quantum-field-theory, condensed-matter, density-operator, open-...
c++, optimization, matrix void set(const T&); size_t get_row() const; size_t get_col() const; void print(std::ostream&) const; Matrix<T>& operator=(const Matrix<T>&); T& operator()(size_t, size_t); T operator()(size_t, size_t) const; bool operator==(const Matrix<T>&) const; bool opera...
{ "domain": "codereview.stackexchange", "id": 2231, "lm_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++, optimization, matrix", "url": null }
# Find the eigenvector associated with the smallest eigenvalue, not smallest in magnitude I am trying to find the eigenvector of a $20000 \times 20000$ sparse matrix associated with the smallest eigenvalue. I realized that the smallest eigenvalue might be negative; for example, if the eigenvalues of the matrix are $\{...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9664104962847373, "lm_q1q2_score": 0.8010951712655776, "lm_q2_score": 0.8289388146603365, "openwebmath_perplexity": 381.21852445513133, "openwebmath_score": 0.8669742345809937, "ta...
c#, generics, queue /// <summary> Pops the specified number of items from the front of the queue. </summary> /// <param name="numberToPop"> Number of items to pop from the front of the queue. </param> /// <returns> The items that were popped from the front of the queue. </returns> IEnumerable<T...
{ "domain": "codereview.stackexchange", "id": 5543, "lm_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#, generics, queue", "url": null }
dna, sequence-analysis, nucleic-acids What does this highlighted portion mean? DNA sequence is what we call a string of nucleotides in the DNA polymer, such as GATTACA, representing a chemical structure wherein each letter ("G", "A", "T", "T", "A", "C", "A") represents a nucleotide that has a chemical bond to the next...
{ "domain": "biology.stackexchange", "id": 10839, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "dna, sequence-analysis, nucleic-acids", "url": null }
python, python-3.x, file-system, ssh def fix_filenames(files, directory, rgx, replacement, sftp): for file in files: if type(file) != str: file = file.decode('utf-8') if file.endswith(".jpg_c"): print("Fixing", file) new_end = re.sub(rgx, replacement, file) ...
{ "domain": "codereview.stackexchange", "id": 33895, "lm_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, file-system, ssh", "url": null }
meteorology, atmosphere, humidity Title: What does the notation "kg kg-1" for units mean for specific humidity I am using a data set from Justin Sheffield at Princeton that includes specific humidity. The description is as follows: "Reanalysis 6-hourly specific humidity interpolated to 1.0deg with account for elevati...
{ "domain": "earthscience.stackexchange", "id": 493, "lm_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, atmosphere, humidity", "url": null }
c++, template-meta-programming, c++17 Another late-breaking comment that I forgot to write down last time: The use of the suffix _r disturbs me. I'm familiar with _t and _v (and I've had occasion to use _f on MSVC, which supports constexpr inline functions but not constexpr inline variables), but _r confused me until ...
{ "domain": "codereview.stackexchange", "id": 26087, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "c++, template-meta-programming, c++17", "url": null }
(ii) Moreover binomial theorem is used in forecast services. Math 4190, Discrete Mathematical Structures M. Macauley (Clemson) Lecture 1.4: Binomial & multinomial coe cients Discrete Mathematical Structures 1 / 8. Then The binomial theorem gives the coefficients of the expansion of powers of binomial expressions. (Disc...
{ "domain": "abroadexport.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9632305318133553, "lm_q1q2_score": 0.8005823600015395, "lm_q2_score": 0.8311430478583168, "openwebmath_perplexity": 593.3967928978907, "openwebmath_score": 0.7726367712020874, "...
javascript, performance, animation, canvas, paper.js // point is in bounds and within dist of origin so set its new destination vert.dx = x; vert.dy = y; vert.move = 0; // set ubit dist moved. } vert.x = (vert.dx - vert.ox) * vert.move + vert.ox; vert.y = (...
{ "domain": "codereview.stackexchange", "id": 32757, "lm_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, animation, canvas, paper.js", "url": null }
chromatography Title: What is DNA-cellulose chromatography? I am going through a paper where they have done DNA-cellulose chromatography to study the interaction between protein and DNA. They are adding the protein to the column and eluting with high salt concentration. DNA-cellulose chromatography is used to purify p...
{ "domain": "biology.stackexchange", "id": 5805, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "chromatography", "url": null }
clustering, unsupervised-learning I repeat this and calculate distances from the red point to all remaining points and take the furthest away, but this puts me back near the green point, but I was trying to get to the center cluster. Instead of computing the distance between all remaining points and the red point, yo...
{ "domain": "datascience.stackexchange", "id": 6407, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "clustering, unsupervised-learning", "url": null }
cosmology, black-holes, universe, cosmological-constant, unruh-effect To an observer in our universe, a de Sitter universe is in their infinite future. In a de Sitter Universe, the Hubble horizon and Event horizon are coincident. Now, the de Sitter length is equivalent to the event horizon vector $R_h$ to an observer ...
{ "domain": "physics.stackexchange", "id": 64228, "lm_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, black-holes, universe, cosmological-constant, unruh-effect", "url": n...
thermal-radiation What are some good definitions and intuition of terms like spectral radiance and spectral energy density? Further, what would be a good place to find a derivation of the Planck's Law? Also, I wasn't sure what to tag this - if there are more appropriate tags, let me know. Planck's law comes from the s...
{ "domain": "physics.stackexchange", "id": 64881, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "thermal-radiation", "url": null }
python, game, console, chess Using convenience variables to aid readability. Notice the use of convenience variables when unpacking the chess notation. Due to their shortness, the variables could be cryptic in many situations. But in this case, the method is simple enough and the comments provide enough context to kee...
{ "domain": "codereview.stackexchange", "id": 44514, "lm_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, game, console, chess", "url": null }
phylogenetics, fasta, phylogeny, populations Title: How can I resolve "missing name of population" message in PGDSpider? I want to use Arlequin for AMOVA. I have my FASTA files which I want to convert into .arp files which are recognizable by arlequin. When I try to convert it using Population Genetics Data (format) S...
{ "domain": "bioinformatics.stackexchange", "id": 2340, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "phylogenetics, fasta, phylogeny, populations", "url": null }
Using k for black, the urns are: $a = \{(w,4), (r,2)\}, b = \{(r,3), (k,3)\}$ Now, if we know a black ball is going to be removed in the second draw, then only one of the other two black balls, or one of the three red balls, could be removed from the second urn during the first draw. So the probability of drawing a r...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9835969645988576, "lm_q1q2_score": 0.8300526613124897, "lm_q2_score": 0.8438951025545426, "openwebmath_perplexity": 177.22847292316482, "openwebmath_score": 0.69013911485672, "tags...
$W_p=\left\{f \in F: f(\left\{p \right\})=1 \text{ and } f(P-\left\{p \right\})=0 \right\}$. It is clear that $f_p$ is the only point of $F_P$ belonging to $W_p$. Therefore, in the Example G topology, the set $F_P$ is discrete and closed . In the section “Bing’s Example G is not Collectionwise Hausdorff” below, we sho...
{ "domain": "wordpress.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9911526443943918, "lm_q1q2_score": 0.8033083158230812, "lm_q2_score": 0.8104789109591831, "openwebmath_perplexity": 104.48403738152078, "openwebmath_score": 0.9783799052238464, "ta...
Although population will always be a positive number, the absolute and percentage changes can take both positive and negative values. We see that Japan’s population was increasing around 0.25% for much of the 1990s before slowing in the 2000s and eventually turning negative for most of the 2010s. We also see that a re...
{ "domain": "datakwery.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.982557516796073, "lm_q1q2_score": 0.8010128081437932, "lm_q2_score": 0.8152324871074608, "openwebmath_perplexity": 1174.0642520058348, "openwebmath_score": 0.6422079801559448, "tags": ...
relativity, time, big-bang Edit: Adding clarification based on @neil's comments: The beginning of the big bang would be very busy, but if time was then created if you go back to the very beginning it seems there is no time and there is only a static environment. So it seems to me that saying time has a direction makes...
{ "domain": "physics.stackexchange", "id": 56992, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "relativity, time, big-bang", "url": null }
primes, swift, iterator, swift3 This is the exact use-case that we have here, and as such I would say the implicitly unwrapped optional is the perfect tool to use. defer { c += 2 } This is a matter of style and your own tastes. What I find amusing is that this effectively is a return of C-style for loops, which were...
{ "domain": "codereview.stackexchange", "id": 21289, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "primes, swift, iterator, swift3", "url": null }
javascript, ecmascript-6 Or if the names are not always pluralized with an s. const types = {paymentMethod:paymentMethods, paymentTerm:paymentTerms, dateType:dateTypes}; export default (value, type) => { var result; if (types[type]) { result = types[type].find(item => item.value === value) } return res...
{ "domain": "codereview.stackexchange", "id": 31746, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, ecmascript-6", "url": null }
python, python-3.x, web-scraping, youtube Title: Youtube Video Downloader This code takes a YouTube video and download it. It supports only non-copyrighted videos due to YouTube's new algorithms. Any thoughts about the structure and the logic? I would like to learn from my mistakes, I've just started coding with pyth...
{ "domain": "codereview.stackexchange", "id": 25509, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python, python-3.x, web-scraping, youtube", "url": null }
thermodynamics, energy, everyday-life, material-science Title: Why do we use wool for insulation? I'm really struggling to understand the science behind wool, and why it's a good insulator. I'm doing an investigation about heat transfer, and the topic I chose is insulators. The best insulation is air, actually it must...
{ "domain": "physics.stackexchange", "id": 51654, "lm_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, energy, everyday-life, material-science", "url": null }
rna-seq Title: Understanding the "relativeness" in RNA seq experiments Let's say we have two samples, sample 1 and sample 2, and we're running an RNA seq experiment. Consider genes A and B for both. For simplicity, let's say that when we run the RNA seq experiment, we get the following results: gene A sample 1 count: ...
{ "domain": "bioinformatics.stackexchange", "id": 1454, "lm_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 }
ros, c++, ros-kinetic, qt Q_EMIT logunitsmessages(topicmessage.msg1, topicmessage.msg2); // EMIT after messages is decoded. ros::spinOnce(); loop_rate.sleep(); } } Originally posted by kkrasnosky with karma: 78 on 2019-05-30 This answer was ACCEPTED on the original site Post score: 0
{ "domain": "robotics.stackexchange", "id": 32974, "lm_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++, ros-kinetic, qt", "url": null }
python, python-3.x, game, role-playing-game def _generate_room(self): #TODO create random sized room in the leaf room = Room(self.lu, self.rd) self._room = room return room class Map(): def __init__(self, width, height, min_room_space=10, split_threshold=1.25): self.width =...
{ "domain": "codereview.stackexchange", "id": 32561, "lm_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, game, role-playing-game", "url": null }
ecology, measurement, visualization, species-distribution take into account the coverage of the paths, and not assume that (in the example above) nothing exists in Mexico or northern Canada, just because there are no samples taken there. Remember that samples can only be taken along paths. take into account edges, in ...
{ "domain": "biology.stackexchange", "id": 3605, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ecology, measurement, visualization, species-distribution", "url": null }
mathematics Lets go really small. I have 2 grains of salt. I can't take 3 grains away. I believe negative numbers were invented by man to create debt. Because it doesn't make any sense in physics. Can someone please explain this to me!! The first attempts at formulating a model of nature had no numbers in it. Numbers ...
{ "domain": "physics.stackexchange", "id": 46120, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "mathematics", "url": null }
context-free, formal-grammars, compilers, ambiguity, derivation Title: Can a grammar that has only one leftmost derivation tree for every sentence, have more than one rightmost derivation tree for some sentence? I'm currently studying the book Engineering a Compiler by Keith Cooper, and in chapter 3, there is the foll...
{ "domain": "cs.stackexchange", "id": 18893, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "context-free, formal-grammars, compilers, ambiguity, derivation", "url": null }
graph-theory, covering-problems, vertex-cover Furthermore, I would also like to add a generalisation i.e you assign a weight $w$ to each triangle such that $w \in [0,1] $, now I want to have a cover that minimises the sum of $w$, given that each edge's weight contribution sums to more than one. What is the lower bound...
{ "domain": "cstheory.stackexchange", "id": 5780, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "graph-theory, covering-problems, vertex-cover", "url": null }
php, sql, t-sql users_time table: +---------+---------+---------------------+--------------------+ | time_id | user_id | dateTimeIn | dateTimeOut | +---------+---------+---------------------+--------------------+ | 1 | 1 | 2019-06-14 00:00:00 | 2019-06-16 09:00:0 | | 2 | 1 | 201...
{ "domain": "codereview.stackexchange", "id": 34906, "lm_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, sql, t-sql", "url": null }
distances, supernova They are (very close to) "standard candles". The physics of the supernova detonation, thought to be when a white dwarf accretes matter and exceeds the Chandrasekhar limit, is very "standardised". The bomb goes off in exactly the same way with the same amount of identical explosive. That means to a...
{ "domain": "astronomy.stackexchange", "id": 805, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "distances, supernova", "url": null }
aerodynamics, navier-stokes, lift of acceleration. (If there were no rotational symmetry, one could obviously generate lift by using a "helicopter blade", or by simply adding some 45-degree "elevator tabs" to the bottom of a normal frisbee.) I agree with Rusian. It will produce lift because the skin friction drag of ...
{ "domain": "physics.stackexchange", "id": 93935, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "aerodynamics, navier-stokes, lift", "url": null }
game-theory, board-games Is there a relatively simple way of implementing a static evaluation function to a chess board to "see" whats going on at each stage? Side Note: I understand that you could implement things like Minimax (with $ \alpha - \beta$ pruning) searches onto the trees created via the static evaluation...
{ "domain": "cs.stackexchange", "id": 10817, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "game-theory, board-games", "url": null }
javascript, datetime Title: How to properly get values from multidimensional object Output should be an object ({cal: val}), with soonest possible time throughout all calendars recommended times from the data. My question is: is this approach over complicated and if so, what should be the proper way to solve that task...
{ "domain": "codereview.stackexchange", "id": 35638, "lm_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 }
java, mysql, error-handling, jdbc, e-commerce Title: Recording a customer's shopping cart as an order I have come up with the following method to post a transaction to a database, in the context of an e-commerce Java web application. The transaction consists in submitting a new order alongside its details: public long...
{ "domain": "codereview.stackexchange", "id": 17691, "lm_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, mysql, error-handling, jdbc, e-commerce", "url": null }
organic-chemistry, synthesis Title: Synthesis of 2-Phenylcyclopentanone from cyclopentanol My best try was to use aldol condensation after the reduction of the substrate(cyclopentanol) but that gives me a product with a methylphenyl substituent(2-Phenylcyclopentanone), nor a phenyl only. Step 1 dehydrate cyclopentanol...
{ "domain": "chemistry.stackexchange", "id": 8335, "lm_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, synthesis", "url": null }
thermodynamics, temperature, speed Title: Can Maxwell's law of distribution of velocities be used to determine a value for absolute heat? I'm currently reading about Maxwell's law of distribution of velocities, and the thought occurred to me that I could use this to calculate the maximum temperature that an atom could...
{ "domain": "physics.stackexchange", "id": 25087, "lm_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, speed", "url": null }
c#, asp.net, validation, polymorphism, captcha bool success = deserializedJson["success"]; errors = ReCaptchaErrors.None; if (deserializedJson.ContainsKey("error-codes")) { foreach (string error in deserializedJson["error-codes"]) { // Our `ReCaptchaErro...
{ "domain": "codereview.stackexchange", "id": 15158, "lm_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#, asp.net, validation, polymorphism, captcha", "url": null }
bash, music A step further is to combine it with ! [ "${_FORCED_EXIT}" = true ], I'll leave that as an exercise for the reader. Finally, a small nitpick: wether is spelled wrongly... it should be whether. edit Further review on url_decode() and the actual 'program'... The other weird things about url_decode() are that...
{ "domain": "codereview.stackexchange", "id": 14862, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "bash, music", "url": null }
fizzbuzz, audio, music, chuck // Creates a major chord. // @input float root : the root note of the chord. fun void major(float root) { root => oscPitch.freq => I.freq; oscPitch.change(4) => III.freq; oscPitch.change(3) => V.freq; 0 => VII.freq; ...
{ "domain": "codereview.stackexchange", "id": 16060, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "fizzbuzz, audio, music, chuck", "url": null }
newtonian-mechanics, forces But I was wondering. What happens if you add a second fan? Does that mean you have a greater force pushing backward on the boat compared to the force pushing forward on the boat? So adding a second fan causes the boat to move backward? Or does it not matter what strength the fan is? I think...
{ "domain": "physics.stackexchange", "id": 50509, "lm_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", "url": null }
ros, ros2, transform, tf2 I then tried to create the message and just fill in its fields, converting the tf2:Transform into the geometry_msgs::msg::Transform type of the message field: tmp_tf_stamped.child_frame_id = child_frame; tmp_tf_stamped.header.frame_id = global_frame; tmp_tf_stamped.header.stamp = myTime; geo...
{ "domain": "robotics.stackexchange", "id": 34641, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "ros, ros2, transform, tf2", "url": null }
two points. In both the above examples, Excel would calculate the quartile values by extrapolation because there are not enough data points. The median of the lower half is the lower quartile (Q1) and the median of the upper half is the upper quartile (Q3). Thus, the range is 98 – 58 = 40. We measure “spread” using ran...
{ "domain": "marymorrissey.com", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9802808701643914, "lm_q1q2_score": 0.8351530266828452, "lm_q2_score": 0.8519527944504227, "openwebmath_perplexity": 681.8413820680182, "openwebmath_score": 0.7993106245994568, ...
modulation, complex, quadrature Clearly I can model everything directly in complex domain (with $Q$ complex-valued or $2Q$ real-valued coefficients) but then I cannot look at only the I channel without effect from the Q channel. Hence a more proper way is to look at this relationship: $$ \mathbf{y}_i = \mathbf{X}_i \m...
{ "domain": "dsp.stackexchange", "id": 6717, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "modulation, complex, quadrature", "url": null }
Theorem 1 If $x$ is normal in infinitely many bases of the powers of $b^k$ then it is normal in base $b$. Conclusion: This rules out your first curiosity. Theorem 2: If $x$ is not normal in base $b^k$ then it cannot be normal in base $b$. Conclusion: This rules out your second curiosity. Source for the theorems: ...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9830850902023109, "lm_q1q2_score": 0.8255299433550078, "lm_q2_score": 0.8397339676722393, "openwebmath_perplexity": 283.8888315937861, "openwebmath_score": 0.744320273399353, "tags...
homework-and-exercises, newtonian-mechanics, forces, vectors, free-body-diagram Now consider the system of the pulley alone. It experiences an upward force $2T$ from the hand, so it must also experience a downward force $2T$ from the rope directly touching it, by normal force. This is completely rigorous, no integrati...
{ "domain": "physics.stackexchange", "id": 54263, "lm_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, forces, vectors, free-body-diagram", ...
homework-and-exercises, forces, momentum, torque Yes, it is possible. Use Newton's Second Law: in order for the beam to be immobile all forces and torques acting on it must cancel out. Start with a force body diagram (FBD): All forces must cancel out, so: $$F_l+F_r-Mg=0\tag{1}$$ All torques must cancel out. Here we'v...
{ "domain": "physics.stackexchange", "id": 76134, "lm_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, forces, momentum, torque", "url": null }
ros2 [ 72%] [32mBuilding CXX object motion_planning_rviz_plugin/CMakeFiles/moveit_motion_planning_rviz_plugin_core.dir/src/motion_planning_frame_objects.cpp.o[0m [ 74%] [32mBuilding CXX object motion_planning_rviz_plugin/CMakeFiles/moveit_motion_planning_rviz_plugin_core.dir/src/motion_planning_frame_scenes.cpp.o[0m [...
{ "domain": "robotics.stackexchange", "id": 37717, "lm_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 }
ros, ros-indigo, dependencies Any help would be appreciated as I am quite new to this! Originally posted by hiteshmankani on ROS Answers with karma: 1 on 2018-02-27 Post score: 0 This means something went wrong when you followed the install steps. The rosinstall command should have cloned the pal_hardware_interface ...
{ "domain": "robotics.stackexchange", "id": 30158, "lm_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-indigo, dependencies", "url": null }
# Is $\det(I+AA^*)$ always be non-zero? Is it always true for $\det(I+AA^*)\neq 0$ ? Here, $A^*$ is the adjoint of $A$. I have found that $\det(I+BC)=\det(I+CB)$, but it seems no use here. • Hello and welcome to math.stackexchange!! The answer is yes, sine $I + AA^\ast$ is always a non-singular matrix. Aug 21 '16 a...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9653811591688145, "lm_q1q2_score": 0.8065600655153771, "lm_q2_score": 0.8354835371034368, "openwebmath_perplexity": 275.7994783161652, "openwebmath_score": 0.9729586839675903, "tag...
in by writing down the (01. Matrix multiplication MPI You have to make corrections in written C program fragment wich implements two matrix multiplication algorithm in MPI. The block performs the specified operations on the inputs.$\endgroup\$ - A Googler Oct 1 '15 at 18:08 |. When a message sends one block object (loc...
{ "domain": "puntoopera.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9838471651778591, "lm_q1q2_score": 0.8133580487147855, "lm_q2_score": 0.8267117876664789, "openwebmath_perplexity": 1441.1504902018999, "openwebmath_score": 0.701557457447052, "tag...
algorithm-analysis, time-complexity, suffix-array More frequently than calculating the constants, people measure the run time and show the $\alpha$ that fits best. They will also sometimes calculate the number of times a specific operation is executed, like comparisons or swaps in a sorting algorithm.
{ "domain": "cs.stackexchange", "id": 11457, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "algorithm-analysis, time-complexity, suffix-array", "url": null }
titration Title: Nicotine concentration in e-liquids E-liquids are blends of nicotine, propylene glycol, vegetable glycerin, and aroma. I need to develop a method for determining the concentration of nicotine in a vial. (to verify if the information listed on the bottle are correct.) Does anyone have any idea how to p...
{ "domain": "chemistry.stackexchange", "id": 1026, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "titration", "url": null }
magnetic-fields, statics, magnetostatics, ferromagnetism, levitation I have not fully analyzed all the full equipotential surface(s) of my setup specifically, but looking at some simpler similar examples it doesn't look like these kind of potential energy wells can exist, even if the specific saddle path(s) of my full...
{ "domain": "physics.stackexchange", "id": 55164, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "magnetic-fields, statics, magnetostatics, ferromagnetism, levitation", "url": nu...
image-processing, matlab, computer-vision, image-segmentation Same goes for the second image. As you can see, there is a lot of noise inside and outside and doubled edges from the glas border. Even there are gaps in the edges. So, I need your advices for getting a general approach for dealing with this problem of hal...
{ "domain": "dsp.stackexchange", "id": 612, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "image-processing, matlab, computer-vision, image-segmentation", "url": null }
thermodynamics, entropy The Case at Hand The founding equation starts with $\Delta S$. This is ambiguous. Is it to be $\Delta S_{univ}$, $\Delta S_{sys}$, or $\Delta S_{surr}$? This ambiguity should be clarified first. The first expression after the equal sign is the entropy change for an ideal gas with constant heat ...
{ "domain": "physics.stackexchange", "id": 58914, "lm_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, entropy", "url": null }
Q: Integral 1/[z^3(z-2)^2]dz over |z|=3 A: By Cauchy theorem this integral is equal to the integral of the same expression over |z|=R for any R>3. For R large enough the absolute value of the integrand is at most 1/[R^3(R-2)^2], hence by triangle inequality the absolute value of the integral is at most 2pi R/[R^3(R-2...
{ "domain": "wikispaces.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9802808724687407, "lm_q1q2_score": 0.8370743457644876, "lm_q2_score": 0.853912760387131, "openwebmath_perplexity": 1080.4738435578147, "openwebmath_score": 0.9511043429374695, "tags":...
thermodynamics, statistical-mechanics, kinetic-theory, boltzmann-equation Therefore the energies of each system are $\epsilon$ for the small system and $(E-\epsilon)$ for the large system, with the total energy being $E$. This allows you to formulate the probability of the small system have energy $\epsilon$ as: $$P(\...
{ "domain": "physics.stackexchange", "id": 82605, "lm_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, kinetic-theory, boltzmann-equation", "url...
homework, molecular-structure, vsepr-theory Title: How can I derive whether the methyl cation or anion is planar? According to VSEPR theory, in which species do all the atoms lie in the same plane? $\ce{CH3+}$ $\ce{CH3-}$ (A) 1 only (B) 2 only (C) both 1 and 2 (D) neither 1 nor 2
{ "domain": "chemistry.stackexchange", "id": 7015, "lm_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, molecular-structure, vsepr-theory", "url": null }
nuclear-physics, radiation, radioactivity Title: Energy balance for beta decay of cobalt-60 I am confused by a simple fact about the $\beta^{-}$ decay of ${}^{60}{\rm Co}$ nucleus. According to Wikipedia, the most likely decay branch is to an excited state of ${}^{60}{\rm Ni}$, see the diagram: But the energy indicat...
{ "domain": "physics.stackexchange", "id": 12707, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "nuclear-physics, radiation, radioactivity", "url": null }
machine-learning, pandas, feature-selection Title: Problem building a feature vector I am trying build a classifier for malware analysis for which basing in the instructions of an assembly code, such as push, mov,... I want to predict the compiler, and in a second time the optimization op, and I am having some trouble...
{ "domain": "datascience.stackexchange", "id": 6257, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "machine-learning, pandas, feature-selection", "url": null }
rosbag which does not product executable named "test" but if I remove first line of source code rosbag::Bag bag; it does create executable named "test", which I can happily execute. Comment by Hridaynath on 2017-07-10: what I am missing.. I have almost trying for two days now. please help.. Comment by gvdhoorn on 201...
{ "domain": "robotics.stackexchange", "id": 28278, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "rosbag", "url": null }
fft, filters, audio Title: Melody/Vocal extraction I'm new to the whole DSP area, but I've built a program which plays music and does FFT to produce some cool visuals for the music in realtime. The FFT algorithm I chose was from a C# library called NAudio. I applied a hamming window before shipping it off to the FFT, ...
{ "domain": "dsp.stackexchange", "id": 2597, "lm_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, filters, audio", "url": null }
dc.parallel-comp, dc.distributed-comp, concurrency In the linearizability proof, the $m$ high-level writes will be put in an order, for example, according to their pids. However, if we consider the low-level operations in such order, the second writer cannot obtain $\langle 0, 1, 0, \ldots, 0 \rangle$. Instead, it sho...
{ "domain": "cstheory.stackexchange", "id": 2269, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "dc.parallel-comp, dc.distributed-comp, concurrency", "url": null }
Inference on $P\left(\left.\sum_{i=1}^{N}X_{i}\ \right|\ \sum_{i=1}^{N}X_{i}^{2}\right)$ when $X_{i}\sim\mathcal{N}\left(0,1\right)$? Let: $$X_{i}\overset{i.i.d}{\sim}\mathcal{N}\left(0,1\right)$$ Hence: $$\sum_{i=1}^{N}X_{i}\sim\mathcal{N}\left(0,N\right)$$ and $$\sum_{i=1}^{N}X_{i}^{2}\sim\chi^{2}\left(N\right)...
{ "domain": "stackexchange.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9597620562254525, "lm_q1q2_score": 0.8119034605349317, "lm_q2_score": 0.8459424450764199, "openwebmath_perplexity": 554.5719220744951, "openwebmath_score": 0.8826696276664734, "tag...
newtonian-mechanics which means that: $F_g <<F_b$ if we consider $d_g = d_b$ (similar traveled distances that is a realistic case for a bulled hitting a relatively tough target situated close to the gun). The opposite case $F_g = F_b$ is not realistic because it leads to $d_g << d_b$ which means a bullet traveling a q...
{ "domain": "physics.stackexchange", "id": 26365, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "newtonian-mechanics", "url": null }
php, object-oriented, exception, error-handling $this->memberRepository = $memberRepository; $this->tutorialRepository = $tutorialRepository; $this->tokenRepository = $tokenRepository; } public function redeem($tokenCode, Entity\MemberInterface $member) { // Let's see if we have...
{ "domain": "codereview.stackexchange", "id": 7050, "lm_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, exception, error-handling", "url": null }
ros, bloom-release Again, IIRC, the release jobs do not run the tests. Comment by nuclearsandwich on 2020-03-05: @gvdhoorn is correct that bloom itself won't run tests. It does generate RPM and debian package metadata for building your packages (which will be performed on the ROS build farms for officially released pa...
{ "domain": "robotics.stackexchange", "id": 34544, "lm_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, bloom-release", "url": null }
ros, rosbag, ros-kinetic, timestamp, rostopic-echo Is it assigned by rosbag to reflect the time of recording? Comments given here and here indicate that this is indeed the case. Would it be reasonable to make inferences about the latency on the topic like this? This seems reasonable, at least from the point of view...
{ "domain": "robotics.stackexchange", "id": 32743, "lm_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, rosbag, ros-kinetic, timestamp, rostopic-echo", "url": null }
formal-languages, regular-languages, finite-automata If $L$ is a regular language then there exists a constant $n$ such that for all words $w \in L$ of length at least $n$ there is a decomposition $w = xyz$, where $|xy| \leq n$ and $y \neq \epsilon$, such that $xy^iz \in L$ for all $i \geq 0$. Your argument is ignori...
{ "domain": "cs.stackexchange", "id": 13308, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "formal-languages, regular-languages, finite-automata", "url": null }
ruby, html, ruby-on-rails So let's rewrite the snippet in functional style. There are at least two ways, 1) use different variable names for the different values and concat the strings, or 2) use an array+compact+join. The first: def format_price(money_value, visitor) money = get_price_string(money_value).to_money ...
{ "domain": "codereview.stackexchange", "id": 3937, "lm_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, html, ruby-on-rails", "url": null }
Note that both results are equal. isequal(a,symmatrix(asym)) ans = logical 1 ### Display of Operations Involving Symbolic Matrix Variables Matrices like those returned by eye, zeros, and ones often have special meaning with specific notation in symbolic workflows. Declaring these matrices as symbolic matrix variable...
{ "domain": "mathworks.com", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9857180690117799, "lm_q1q2_score": 0.8473860868359667, "lm_q2_score": 0.8596637451167997, "openwebmath_perplexity": 2335.3988771419704, "openwebmath_score": 0.6945945620536804, "tags":...
Cubic Spline (Piecewise Interpolation) - C PROGRAM | 6 Manas Sharma (c) Bragitoff. (b) Using specified endslopes of 1 at x = 1 and 1/6 at x = 6 (NOTE: There was a typo on the Web, the endslope at x = 1 is not zero!)… We need to set the values of. When called with two arguments, return the piecewise polynomial pp that ma...
{ "domain": "energyindependence.de", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9873750492324249, "lm_q1q2_score": 0.8095422163950202, "lm_q2_score": 0.8198933293122506, "openwebmath_perplexity": 929.7737500794606, "openwebmath_score": 0.5018478035926819...
formatting, postscript /fin get /exec cvx % name mark /ini {ini*} [ ... {fin} exec counttomark 2 roll % name mark /ini {ini*} [ {fin} exec ... } forall %(3:)= pstack() = /aload cvx /pop cvx counttomark 2 roll % n [ /ini{ini*} [ aload pop {fin exec}* ] cvx /fin exch % name [ /ini{ini*} /fin{...
{ "domain": "codereview.stackexchange", "id": 42685, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "formatting, postscript", "url": null }
javascript, html, knockout.js, to-do-list Organization addTask should have been in the prototype of ListTask/TaskList backToMenu should be part of the controller, but you have to add to ViewModel because of data-bind="click: backToMenu" in the HTML. I do not like this from a maintenance perspective, I would have adde...
{ "domain": "codereview.stackexchange", "id": 6436, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "javascript, html, knockout.js, to-do-list", "url": null }
python Title: connect same ids with values in id rows (result of effectiveELD) I can't cope with reworking the result. If id is the same I want to stick those items. with open(x,'r') as rf: l = fr.readlines() previous_line_id = '' corrected_lines = [] for i in l: i_split = i.split('\t') ...
{ "domain": "bioinformatics.stackexchange", "id": 2050, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "python", "url": null }
special-relativity, energy, reference-frames Title: Centre of Energy in Special Relativity In Griffith's Introduction to Electrodynamics (4th edition), Chapter 12 on Special Relativity, the author says on page 546 that analogous to the center of mass in Newtonian mechanics, one can define the center of energy in relat...
{ "domain": "physics.stackexchange", "id": 92469, "lm_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, energy, reference-frames", "url": null }
java, swing, calculator, enum, static The OperatorButtonActions must have an individual implementation tough because each has a different behavior. But never the less they could be placed as top level custom classes in their own files. And this is what OOP is all about: separate concerns and limit the responsibilities...
{ "domain": "codereview.stackexchange", "id": 24364, "lm_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, calculator, enum, static", "url": null }
analytical-chemistry, nmr-spectroscopy Title: Utility of proton vs carbon NMR I've just learnt about both types of NMR, and I haven't ever used NMR in real life, so anything I say may be wrong. The crux of this question is that, in my own opinion, proton NMR gives you more information than carbon NMR, which I'd imagin...
{ "domain": "chemistry.stackexchange", "id": 10082, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "analytical-chemistry, nmr-spectroscopy", "url": null }
coffeescript You're diligent in checking the input for deposit and withdraw... but not the initial balance. So account = MoneyAccount("foo") would spell trouble right away. But even if you check the type of the initial balance, it'd still allow someone input a negative initial balance. But the way withdraw works seems...
{ "domain": "codereview.stackexchange", "id": 7713, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "coffeescript", "url": null }
kinematics, acceleration, jerk And, if the third graph is not possible, it means the two graphs above it are not possible either, are they? Because all three graphs here describe the same physical situation. Please help me understand this. Thanks We define acceleration as the rate of change of velocity and velocity ...
{ "domain": "physics.stackexchange", "id": 96015, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "kinematics, acceleration, jerk", "url": null }
electricity, magnetic-fields Title: Will a magnetic field damage a laptop charging brick? I recently got a Dell laptop for school. It has a charger, like the one below. Being the good student that I am, I applied my knowledge about electricity flowing in a loop and began wondering if I was producing a magnetic field ...
{ "domain": "physics.stackexchange", "id": 51363, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "electricity, magnetic-fields", "url": null }
oceanography, climate-models There are also small lakes located in the coastal regions that suffer from severe oxygen depletion during the summer months. This affects the ability of trout to survive as well as having impacts on the quality of the water for domestic use and other forms of aquatic recreation.
{ "domain": "earthscience.stackexchange", "id": 1795, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "oceanography, climate-models", "url": null }
quantum-mechanics, waves, electrons, reflection As the names indicate, the reflected part represents a 'reflected' electron, the transmitted part a transmitted one. However, you must not make the mistake of understanding the particles wavefunction as representing the 'position' of the particle. In this case, the absol...
{ "domain": "physics.stackexchange", "id": 23696, "lm_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, waves, electrons, reflection", "url": null }
coffeescript Keep the signatures more consistent too. One method (getSingle) is sent all the variables it needs, while the other accesses some of them itself. The latter seems more appropriate, as most parameters can indeed be accessed from the methods themselves. The same can be said of the parameters; the two URLs e...
{ "domain": "codereview.stackexchange", "id": 3984, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "coffeescript", "url": null }
c#, performance, linq-to-sql } FilterViewModel public class FiltersViewModel { public long Id { get; set; } public IEnumerable<string> Value { get; set; } } At least a couple things to note: Bug? I think this part doesn't work because you don't assign the result of this query back to the variable. if(search....
{ "domain": "codereview.stackexchange", "id": 24277, "lm_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, linq-to-sql", "url": null }
ros, turtlesim, ros-fuerte, roswtf, rosmsg Title: Problem with fuerte version of ROS Hello guys, i'm just starting to learn ROS, but i'm having some problems following the tutorials: 1- The Turtlesim windows was supposed to show a turtle, but mine just shows the blue color. What did i do wrong? Or is it because i'm u...
{ "domain": "robotics.stackexchange", "id": 8700, "lm_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, turtlesim, ros-fuerte, roswtf, rosmsg", "url": null }
quantum-mechanics, schroedinger-equation, hamiltonian, hydrogen \begin{align} \langle T\rangle = - \langle V(\mathbf{x})\rangle/2, \qquad (*) \end{align} since the total Hamiltonian is $H = T+V$, this means $\langle T \rangle = - \langle H\rangle/2 + \langle T\rangle/2$. In other words: \begin{align} \langle P^2\rangl...
{ "domain": "physics.stackexchange", "id": 88687, "lm_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, schroedinger-equation, hamiltonian, hydrogen", "url": null }
carries specific information and completes part of the job of computing the probability of x successes in n independ only-2-event (success or failure) trials where p is the probability of success on a trial and q is the probability of failure on the trial. Download this VLOOKUP calculations sample. It is the sum of the...
{ "domain": "quellidelparco.it", "id": null, "lm_label": "1. YES\n2. YES\n\n", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9814534316905263, "lm_q1q2_score": 0.8220849795093139, "lm_q2_score": 0.8376199552262967, "openwebmath_perplexity": 566.7485815866885, "openwebmath_score": 0.874673068523407, "...
quantum-mechanics, angular-momentum, atomic-physics Proof that $S^2 |\psi\rangle = \hbar^2 |s_z| (|s_z| + 1) |\psi\rangle$: We use the operator identity $$ S^2 = S_z^2 - \hbar S_z + S_+ S_-,$$ and we observe that if $|\psi \rangle$ is a multi-electron state satisfying Hund's rules, then $|\psi\rangle$ is annihilate...
{ "domain": "physics.stackexchange", "id": 95669, "lm_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", "url": null }
formulas: rate and amount. Method, double that figure the first year: 40 % or $360 by time by... Of time the sum of the asset due to wear and tear over a of. Calculates the annual depreciation rate of an investment applied just as in of. Code calculates the annual depreciation rate of an investment, a fixed of! Year: 4...
{ "domain": "tempsite.ws", "id": null, "lm_label": "1. YES\n2. YES", "lm_name": "Qwen/Qwen-72B", "lm_q1_score": 0.9728307668889048, "lm_q1q2_score": 0.8127840881308621, "lm_q2_score": 0.8354835350552604, "openwebmath_perplexity": 1327.9673199890215, "openwebmath_score": 0.61101233959198, "tags": nul...
javascript, optimization, ajax, http Title: Ajax for RESTful web service I wrote an Ajax function, which should be used in a framework to interact with a webserver. The (self-written) Java-Webserver can be used to fetch files and folder-contents, create files and folders, and delete them. /** * Performs an Ajax-Reque...
{ "domain": "codereview.stackexchange", "id": 8602, "lm_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, optimization, ajax, http", "url": null }
haskell, functional-programming, bitwise In your definition of main, you can omit the type annotation from read line and the compiler will deduce you want an Int due to the type signature of bithelp. On its own this is a small change, but leveraging the type system in this way is entirely natural and reduces the numbe...
{ "domain": "codereview.stackexchange", "id": 6927, "lm_label": null, "lm_name": null, "lm_q1_score": null, "lm_q1q2_score": null, "lm_q2_score": null, "openwebmath_perplexity": null, "openwebmath_score": null, "tags": "haskell, functional-programming, bitwise", "url": null }