johnnyboycurtis/ModernBERT-small-1.5-sts
Sentence Similarity • 26.9M • Updated • 4
body1 stringlengths 20 4.1k | body2 stringlengths 23 4.09k |
|---|---|
I've been wondering about this for years. It seems like a pretty obvious question, so I'm surprised not to have found it addressed among the other Tolkien minutiae on this site. Hopefully I haven't missed it, but anyway, here goes... In Tolkien's Middle-Earth writings, Evil cannot create things, only twist and warp ... | All that I know of Smaug is that he (she?) came out of nowhere to attack and conquer Erebor. Where exactly did he come from? In fact, what are the origins of dragons? Did Ilúvatar create them or did they come from somewhere else? |
Hi i have some data which coming out from database in form of table like this, first i match some data with searching and then display it on page now i need to download it as csv file format please help me check my code and i'm new in php. please check image too for the reference and please please help me //import.ph... | What is the most efficient way to convert a MySQL query to CSV in PHP please? It would be best to avoid temp files as this reduces portability (dir paths and setting file-system permissions required). The CSV should also include one top line of field names. |
Following along in tutorials I see the blur filter being used. I am using Blender 2.69 and I can't locate it visually or even with a search. Actually, there is no "Filters" category at all. Do I have to download something to get it? | I have been following tutorial until I started adding nodes. The problem is that he has completely different nodes than I have. Even nodes that are created at start are different (I have Material and Output and he has Render Layers and Composite). Have I missed something or should I use different nodes than he? |
Does Tarski-Grothendieck set theory can prove the consistency of ZFC? | Does TG () prove that ZFC2 (second-order ZFC) has a model? Does it at least prove the consistency of ZFC2? |
This bicycle was given to me and I'm not sure was the make of it I've tried look in the serial number up on Google but I came up with nothing so hopefully you can help me with trying to figure out what kind of bike this is the Serial number is SNHFD10K02145 | I have a bike I'm trying to sell because it's just been sitting in my basement. It looks as if someone primered it and the only thing I found was a serial number. Is there like a website I can look up more info on the bike using just that number? |
I am interested to know how the tool works in QGIS 3. I am choosing to use this rather than the tool which works of the "center of mass" methodology because this creates a point outside the area of the polygon which is not suitable for my needs. The QGIS documentation does not seem to explain the calculation used bu... | The PostGIS documentation states that ST_PointOnSurface returns "a POINT guaranteed to lie on the surface". It seems like this function could be trivially implemented to give results that satisfy the documentation but provide little real-world utility, though I'm certain that PostGIS provides a non-trivial implementati... |
I have up-voted a question in Meta Webmasters Stackexchange. That question is available in home page under Hot Meta Post list. But my count has not been updated. Why it’s not updating quickly? If it will take time means what’s the approximate time duration? Screenshot for reference: | I often click on the questions in the "Hot Meta Posts" section of the sidebar. Today when I clicked on one of the questions I noticed that it had already been deleted. I view this as a bug, though you could also view it as a feature request I suppose. I do not think that a deleted Meta question should still be cons... |
I have exported my maple mathematical matrices to latex and now I want to show those equations in Powerpoint presentation. I have installed MathType in MS Powerpoint that converts basic latex codes or equation to mathtype but not the matrices. For example If if paste below code into Mathtype it gives error; Error: Th... | Let's say I have a (comparatively) lovely-looking document in LaTeX, full of lovingly typeset, (relatively) complex equations. Now, let's say some barbarians come along one day and decide that the document has to be put into Microsoft Word (2007). ...after the usual mourning period associated with such events, let's sa... |
Strictly speaking, a complex number is any number that can be represented in the form $z=a+bi$, even if $b=0$. This means that $5$ is technically a complex number. There are certainly advantages of this being the case: for example, the real numbers are a subset of the complex numbers. However, this makes it a little aw... | Complex numbers include all real numbers. Is there a name for the subset of complex numbers which does not include any real numbers (i.e. where the imaginary component is nonzero)? |
I am asked: Let $F_{i}$ denote the $i$-th Fibonacci number. Prove that $$\sum^{n}_{i=0}\binom{n}{i}F_{i}=F_{2n}$$ I have the base case and the inductive hypothesis, but I'm not sure what identity I need to make the jump from $\sum^{n+1}_{i=0}\binom{n+1}{i}F_{i}=F_{2n}+F_{n+1}$ to $F_{2n+2}$, where $F_{2n+2}$ ... | I am stuck with the identity $$ F_{2n} = \sum_{k=1}^n \binom{n}{k} F_k, $$ which happens to be formula . I am using induction, but so far without too much result. $$ \sum_{k=1}^{n+1} \binom{n+1}{k} F_k = \\ F_{n+1} + \sum_{k=1}^n \binom{n+1}{k} F_k = \\ F_{n+1} + \sum_{k=1}^n \binom{n}{k} F_k + \sum_{k=1}^n \binom{n... |
I'm unable to create a new document in /var/www/ I followed this tutorial :- and did as suggested, but still I'm unable to make a new document. Any suggestions ? | For some reason I can't change the file permissions of my var/www folder or anything else inside it. I've tried using gksu-nautilus to change the permissions but it doesn't work. When I open the properties window, and select a different level of permission for myself, it instantly switches back to the previous setting.... |
I have been looking deeper into different collection implementations and i wonder if there is any performance difference when implementing iterator on various List types(Like the previously mentioned in the title). As we all know iterating over ArrayList is faster as opposed to LinkedList. However is the case same wh... | I've always been one to simply use: List<String> names = new ArrayList<>(); I use the interface as the type name for portability, so that when I ask questions such as these I can rework my code. When should be used over and vice-versa? |
Is it possible that after sending minor revisions my paper has gone for a fresh review again. I had received the following recommendation: accept subject to optional revision. The status has been showing " under review " for a month now. Is it still with the associate editor or with the old reviewers. I got two refer... | What steps does a manuscript typically go through from submission to publication (or rejection) in a typical journal? How are these steps referred to, in particular by editorial systems, and how long do they each typically take? Note that this question is about the typical situation and hence not about: Journals wit... |
\begin{tikzpicture}[>=triangle 45,shorten >=1pt,auto,node distance=3cm] \node[state] (moderate) {moderate}; \node[state, minimum size=2cm] (above) [below right of=moderate, xshift=1cm, yshift=-3cm] {above}; \node[state, minimum size=2cm, xshift=-1cm, yshift=-3cm] (below) [below left of=moderate] {below}; \path[-&... | I'm trying to draw an automata as follows: \begin{tikzpicture}[>=stealth',shorten >=1pt,auto,node distance=2.8cm] \node[initial,state] (q1) {$1$}; \node[state] (q2) [right of=q1] {$2$}; \node[state] (q4) [below right of=q2] {$4$}; \node[state, accepting] (q3) [above right of=q4] {$3... |
I'm using Entity Framework 6 , with Database First. The model is created using wizard from existing Sql server database. I'm using this code to do a deep clone : Imports System.ComponentModel Imports System.Collections Imports System.Data.Entity.Core.Objects.DataClasses Imports System.Runtime.Serialization Imports Sys... | I want to do something like: MyObject myObj = GetMyObj(); // Create and fill a new object MyObject newObj = myObj.Clone(); And then make changes to the new object that are not reflected in the original object. I don't often need this functionality, so when it's been necessary, I've resorted to creating a new object... |
I am using a customised set-up as shown below for my title and need some help reducing the space between the top of the page and the "title" which in my case is defined by a "chapter" environment. \documentclass[12pt,a4paper]{report} \usepackage[margin=0.75in]{geometry} \usepackage[latin1]{inputenc} \... | I want to decrease the vertical space between the top of the page and the chapter heading. I have tried to follow the instructions for titlesec but I am not successful. I have tried the following two setups without any changes occuring. First: \documentclass[12pt]{report} \usepackage[compact]{titlesec} \begin{doc... |
Method 1 public static synchronized Database getInstance(){ if(INSTANCE == null){ INSTANCE = new Database(); } return INSTANCE; } Method 2 private static final Database INSTANCE = new Database(); public static Database getInstance(){ return INSTANCE; } Which is the better choice ? | What is an efficient way to implement a singleton pattern in Java? |
hi I have canon 550D and have 2 leses 18-55 / 55-250; going thru the sharpness and quality i am thinking to purchase 40mm / 50mm lense. as per me the quality of images of existing lenses are not that much sharp what it needs to be. Can anybody advice me (1) Is it right to go for 40mm / 50mm lense (2) if yes, which one... | So I'm about to buy my first DSLR (definitely a Canon, probably the 700D) and my original plan was to buy the one with the included 18-55mm f/3.5-5.6 kit lens. At the same time I was thinking about picking up the 50mm f/1.8 on account of the fact that it's cheap and I love taking photos of people with a shallow depth ... |
Goals: Have a single nginx reverse proxy for all sub-sites (running on other ports). BLOCK all direct connections, and instead; route through nginx. Problem(s): 502 gateway errors when trying to access https://www.example.com/site1/ (connect() failed (111: Connection refused) while connecting to upstream) Setup... | This is a about Connection Refused We see a lot of questions to the effect When I try to connect to a system I get a message Connection refused Why is this ? |
I have Toshiba Satellite c850 B516 with Original Win8 installed. I accidentally formatted the internal hard disk. There is no serial number written on the bottom of my laptop. How can I recover my original Win8 even if all my personal data is lost. | My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and to download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the m... |
There are many documentaries, forums, blogs and more dedicated to . I have been frantically searching for an answer to my question however none of my sources have clarity to the matter of hand. I would really love a clear explanation to: What exactly is Dark Matter? Please help me to have a clear understanding. | What evidence is there that dark matter isn't one of the known types of neutrinos? If it were, how would this be measurable? |
I know chicken isn't edible raw, but how long can it stay outside the refrigerator without gaining bacteria to where you can't even cook it? | If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more? |
There are linker errors to Symbols defined by SFML, but i cannot see how they occur despite that I linked the lib. I'm using make, which I currently learn and I want to build a minimalistic dev-environment with it. Give a holler if you need anymore information than the following. I'd just like to minimize the question... | Why does the order in which libraries are linked sometimes cause errors in GCC? |
I'm trying to merge the polygons (administrative boundaries) in a dataset untill they reach a minimum value. Lets say that the polygon dataset consists of the number of people per polygon and I need each polygon to contain at least 100 people. In that case I want the polygons with a value less than 100 to merge with an... | I have a shapefile with 3800 polygons representing the smallest administrative areas in Ireland. Many of these, in rural areas, have tiny populations, under 100 people. In urban areas, all would have adequate populations. For each area I have a population figure, and various other attributes, all of which can be intel... |
I got stucked in this problem and get no clue to solve this. Can any one please help me? Thanks Suppose $X$ is an inner product space. If for every bounded linear function $f$, there exists $z \in X$ such that $$f(x) = <x, z>$$ for all $x \in X$. Prove that $X$ is a Hilbert space. I can't find any way to re... | Let $H$ be a vector space equipped with an inner product $(\cdot, \cdot)$ and $f:H\to H',\ f(x)=(\cdot,x)$ surjective. Now, why $H$ is a Hilbert space? The other direction is clear by Riesz' representation theorem but what about this? |
QGIS 2.8.1 Win7 64 bit installed with osgeo4w-setup. I’m trying to run GRASS commands on a LIDAR raster layer but I get the following message: Missing dependency.... GRASS not installed in your system` message each time. GRASS appears in the processing tools pane and the “Processing options” for GRASS shows the ... | I am quite new to QGIS and working with the external applications such as GRASS. When trying to launch a GRASS tool from the processing toolbox I get the following error: Missing dependency. This algorithm cannot be run :-( This algorithm requires GRASS to be run. Unfortunately, it seems that GRASS is not in... |
I've recently removed the Windows partition keeping Ubuntu as single OS. The way I did it was through an Ubuntu Live boot-drive, using the Try Ubuntu option. In Gparted I simply removed the referred partition. This is what Gparted shows: /dev/sda1..fat16....39.19 MiB unnallocated..unnallocated..281.78 GiB /dev/sda4... | How can I expand/resize my extended partition (sda3) with unallocated free space to the left of it? I want this to be able to expand my / partition (sda5). |
I'm trying to make a simple summation of an array of 10 numeric elements. I get a totally incorrect result, which only occurs with an array of certain values, otherwise works well. var sum = 0; var values = [14, -1.4, -1.4, -1.4, -1.4, -1.4, -1.4, -1.4, -1.4, -1.4, -1.4]; for (var i = 0; i < values.length; i++) {... | Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen? |
Is there a simple way to save a QGIS project and all associated files to a zip folder so that another person could unzip the folder and open the project? Or is there a better way to share a project with another person? | I was wandering if there was a way to save a specific project with all layers as dependent files to make it easy to share with collaborators. for example, create a zipped or non-zipped folder containing the same structure as the project : Root_folder/ my_project.qgs \____________myfolder \___... |
Someone please explain me how the below code prints 8.800000095367432. class Test { public static void main(String[] args) { Double object = new Double("2.4"); int a = object.intValue(); byte b = object.byteValue(); float d = object.floatValue(); double c = object.doubleValue(); System.out.pri... | Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen? |
Normally, if using itemlize we should get the following appearance: There are following methods: \begin{itemlize} \item Method A \item Method B \end{itemlize} There are following methods: Method A Method B However, I want no new line after the first line, like: How can I do this? | I've created a new environment called 'Example' like this: \newenvironment{example} {\textbf{Example:} \begin{itemize}} {\end{itemize}} The environment works fine, but the items are starting after the Example: text. Is it possible to start with the first item on the same line as the Example: text and vertica... |
I am trying to get the headers of few web sites with curl , and send mail when i get errors like 404,403,500,503 but i keep getting this error Error: line 7: [: -eq: unary operator expected Code: # !/bin/sh NOW=$(date +"%H:%M_%m-%d-%Y") web() { res=$(curl -I -s "$1" -o test/"$1_log_$NOW" | grep HTTP/1.1 | ... | The following code gives [: -ge: unary operator expected when i=0 if [ $i -ge 2 ] then #some code fi why? |
When I refer to a table in text, the \ref{<labeloftable>} statement produces the chapter number in which the table resides, instead of the number of the table. Any help would be welcomed! | \documentclass{article} \usepackage{algorithm} \begin{document} \setcounter{section}{54} \section{A section with no label} \begin{algorithm} \label{myalg} \caption{An algorithm with the label `myalg'.} \end{algorithm} Reference to myalg: \ref{myalg}. \end{document} With this code, the reference givens 55 (the sectio... |
Each time I look video in regards to quantum physics there is almost always one point where they claim small matter can be represented by a wave function (can be everywhere but the item in question has an higher % of being at a specific location than far away) until it is observed (now seen as a particle). In practice... | My question is not about (pseudo) philosophical debate; it concerns mathematical operations and experimental facts. What is an observer? What are the conditions required to be qualified of observer, both mathematically and experimentally? |
I recently purchase an 512 SSD notebook and I verify that there was much less space than I thought. I checked at the disk size (not partition size neither file system space) and I found that the disk itself does have only 476,81GB. What is the cause for it? Where are the missing space? The SSD is Samsung mzmte512... | From all the hard drives I have bought, they never seem to be as large as the advertised size; from 320 GB down to 290 GB, from 500 GB down to 450 GB, etc. Is there a technical reason for this? |
Why has the speed of light in a gravitational field always the same value $c$ when measured locally? More precise: When you are far away from any masses, that means when the spacetime is flat, and you measure the speed of a light ray that passes you, you will always get the same value $c$. Now suppose you are in a st... | Regarding the paper, what does Einstein means when he says: "If we call the velocity of light at the origin of co-ordinates $c_0$, then the velocity of light $c$ at a location with the gravitation potential $\Phi$ will be given by the relation: $c = c_0\cdot\left(1+\frac{\Phi}{c^2}\right).$ The principle of the con... |
I created a navbar in my header and aligned it with another element so that they were centered. However, after adding an image to the header, one of the elements is no longer centered: #header nav { display: inline; } #header { background: #5D6D63; padding: 28px 0 26px; position: fixed; top: 0; left: 0; ... | Why won't vertical-align: middle work? And yet, vertical-align: top does work. span{ vertical-align: middle; } <div> <img src="https://via.placeholder.com/30" alt="small img" /> <span>Doesn't work.</span> </div> |
Can we change the wording of the "marked as duplicate" template? I don't think we should say "ask a new question". If the cited answers actually don't fully address my question, but that fact isn't clear (as opposed to someone did some hasty tagging without seeing that my question is different) then I should fix m... | The new closed-as-duplicate banner says: This question has been asked before and already has an answer. If those answers do not fully address your question, please . I think it should instead say This question has been asked before and already has an answer. If answers there do not fully address your question... |
Is there a way to construct a PLL cicruit which locks on to an input signal's phase but provides an output signal with different duty cycles? | I am looking to build a circuit to control five different FET drivers individually. The input signal would be a single shot from a function generator, which should produce five output signals, with the same frequency and phase but the duty cycles need to be individually controllable. Basically, I am trying to replace f... |
I would like to view the output of echo in vim, and save to a file after having a look at it. I have tried echo $PATH | vim, but I get the following error: Vim: Warning: Input is not from a terminal Vim: Error reading input, exiting... Vim: Finished. What can I do? | I'd like to start vim on a non existing file, named f, with the content c. Both f and c are arbitrary and I'd like to not have to put anything in the vim config to fill new buffers with c. Basically, I would like to combine $ echo c | vim - with $ vim f Is there a flag to vim which lets me achieve this? |
I am using dual monitors (equal) and have recently switched to 11.10. When I used 10.04, the top panel with indicators, etc. was showing only on my left monitor, leaving the entire space of the right monitor available for app windows. In 11.10, the top panel is duplicated on the second monitor. IMO, it makes no good,... | How do I remove top bar on secondary monitor?? |
Prove that $\mathbb{N}\times\mathbb{Q}$ is countably infinite. I understand that I somehow have to show that a bijection exists between $\mathbb{N}$ and $\mathbb{N}\times\mathbb{Q}$, I’m just struggling to see a way of labelling the set in such a way that no elements are missed. | How can I prove that the Cartesian product of two countable sets is also countable? |
In Kleppner & Kolenkow's (Amazon link), the general gyroscope motion including was derived using the approximation condition $\Omega T \ll 1$ where $\Omega$ is the precession angular velocity and $T$ is the period of nutation. How does one describe the gyroscopic motion if the the condition for the approximation... | Can you tell be how to set the equations to describe the motion of this machine in movie "Contact": This is with , am I right? |
How can I center all the contents in the page, and make the order be right-to-left, because the alignment is to the left and the order is left to right. here is the code: Edit Center parent div .grid-item { float: left; width: 270px; min-height: 260px; max-height: 260px; background-color: whitesmoke; ... | How can I horizontally center a <div> within another <div> using CSS? <div id="outer"> <div id="inner">Foo foo</div> </div> |
I have a colleague here in my project, who is deeply against the use of instanceof operator, because it "generates a lot of overhead", what is the reason for that? Is it true? Is there another way to check the type of the Object instead of using it? Because I find it very useful in some occasions. | I am working on an application and one design approach involves extremely heavy use of the instanceof operator. While I know that OO design generally tries to avoid using instanceof, that is a different story and this question is purely related to performance. I was wondering if there is any performance impact? Is is j... |
I am running on Ubuntu (I was on W8 before), but I need to go back to Windows. I'm trying to boot from a live-DVD and a FlashDrive, but without luck. Ubuntu doesn't give me any boot option. If I press Esc at the startup screen, i only get this options: *Ubuntu Advances Options EFI/ubuntu/MokManager.efi efi/EFI/ubuntu... | I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows. How do I remove Ubuntu and reinstall Windows? Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answer... |
There is a lot of hype being generated by the distributed storage solutions: They (supposedly) offer low-cost storage, and also pay for people to share their storage for others to use. However, it is extremely difficult to find out how much it costs in everyday money to use these systems (or how much one would ... | I have a question about a problem I'm having installing optifine with forge on minecraft. Is there a place where I could ask this question? I asked this on gaming, but I just got downvoted and told it is the wrong place. The question is here: |
Assume the mass of star 2 is 4 times the mass of star 1. Compare the radius of the orbit of star 1 to that of star 2. Possible answers: R1:R2=1:4 R1:R2=1:2 R1:R2=2:1 R1:R2=4:1 R1:R2=16:1 What's the answer? I guess I'd use the gravitational force formula: $ F = G\cdot \frac {m1 \cdot m2}{r^{2}} $ But I d... | Two particles with initial positions and velocities $r_1,v_1$ and $r_2,v_2$ are interacting by the inverse square law (with G=1), so that $$ {d^2r_1\over dt^2} = - { m_2(r_1-r_2)\over |r_1-r_2|^3} $$ $$ {d^2r_2\over dt^2} = - { m_1(r_2-r_1)\over |r_1-r_2|^3} $$ (the inverse square law along the line of separation). W... |
At one time, it seems that I made a mistake in something, and the object I was creating went far. Then, even I scroll the mouse wheel to zoom it, it gradually stops zooming, and eventually stops. Someone can help? Thank you. | I often find that I can zoom in to a point, but then cannot zoom any more, even when there is a lot of room to zoom to the meshes on the scene. This is particularly annoying in the following scenario: I often land up left clicking on the scene and the 3D cursor shifts there. I use Shift+C to shift the 3D cursor back... |
I'm currently working closely with a professor on a research project as an undergrad student. I always address her by her last name: Dr.xx. However, this makes me feel distant from her.. I am wondering by which point I could call her by first name? Here is some background info: I got to know her in person by taking a... | I have worked with my adviser for a few months as a graduate student. Everyone, including her other graduate students, seems to call her by her first name. She never expressed a preference to me, so I've been calling her "Dr. Smith". She signs her emails with her first name. I am worried that I am being awkward. I don... |
Please forgive me if I am making some very big mistake by asking a silly question like this. By no means do I want to disrespect any of the intellectual people here on Stack Overflow. I read a few question and answers on Stack Overflow and found that people with very high reputation get upvotes very easily even if the... | It's not that I feel bitter when somebody else's answer is upvoted above my own, but it's when a user with a high rep answers a question and their answer seems to attract an immediate barrage of upvotes. Now I'm not saying that these votes are always unwarranted, but by simply observing this behavior, I think the syst... |
I have ubuntu 16.04. I want to add sudo modprobe -r psmouse && sudo modprobe psmouse proto=imps to my startup applications. I added it succesfully but it isn't running with the startup. I think because of the password requirement. Please help me as I want it to run along with start of my laptop. Is there... | I have been having several issues with my touchpad since upgrading to 12.04LTS. I believe it is an issue with the Elantech driver. I have found that the following commands fix my problem, however, the changes seem to be reverted when I reboot. modprobe -r psmouse modprobe psmouse proto=imps Is there a way I can ... |
I have an Acer Aspire Revo R3600 , intel atom CPU 230 @ 1.6 GHZ, 1G Ram, 120G hard disk and currently running window xp (but in the system properties, it says 895 ram only). it is slow and so I would like to install ubuntu os on it to improve the performance but not sure what version of ubuntu I should install. I onl... | For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and such as: with a lighter desktop than the usual Gnome and Unity with the even lighter LXDE desktop Obviously Ubuntu does not run on some processor arch... |
I will be pursuing masters from UT Austin this fall.I have mailed professors for the position of a teaching assistant. Some of them replied and some did not. What should I write in the followup email to the professors who did not respond. Thanks! | When needing to ask a professor about something important and potentially delicate, what is an appropriate way to phrase the question or write the email? Examples include: Requesting a recommendation letter Asking for exceptions to policy (e.g., ignoring a course prerequisite, rescheduling an exam) Asking if you can... |
In episode 4 of season 7 Daenerys with Drogon attacks some of the Lannister soldiers, but then goes on the burn the whole supply line. This may make sense if you expect to lose the batte and you want to destroy your enemy's supplies. However, I think she was fairly confident she would win, so why not save the grain and... | During Game of Thrones S07E04 we saw a battle take place during the last 10 minutes of the show. During this battle we see Dany flying around burning everything. I do understand it is not good TV to have her kill everyone in one pass (she could have flown over the line formed and burned them all at once) but that'... |
I want to ask why is $$0! = 1$$ the same as $$1! = 1.$$ As a student I was lost and when I tried to ask the question the teacher said this will be done in complex analysis. I know here I will thirst my quest by the help of people who understand it. I know We define $n!$ as the product of all integers k with $1\leq... | How can I prove from first principles that $0!$ is equal to $1$? |
Let's say you were in a race, and you finished 5th. One of your friends comes to you and asks "What was your ___ in the race?". Or, 'G' is the 6th letter in English alphabet. Someone asks you what is the ___ of 'G' in English alphabet. What should come in place of "___" in those sentences? I thought of "order" mayb... | I want to make a question having an answer as follows: 5 is the third prime number. The bold part is the answer. How to phrase the question? |
The WinSXS folder on my PC currently holds over 6.9GB of data, which is a few hundred files inside the folder named like amd64microsoft-******. I have read, and read but just can’t seem to find an trustworthy answer on the following questions: What does MRT.exe do? | A Vista virtual machine I use only has a 10 GB virtual hard disk -- and I'm worried about it running out of space over time. I used to check for the culprits.. And the primary culprit is that /winsxs or "Windows Side-By-Side" folder. What is the Windows Side By Side folder? Well, that's . All of the compo... |
I am making a map and I want to be able to give points to players, which I have down (using the scoreboard command). But I want to be able to see if a player has a specific score and reward them with a diamond helmet. Also, I want to replace the item on their head with the diamond cap, not just use /give to give it... | What if I want to make a command like this: execute @e[score_A=10] ~ ~ ~ summon Creeper So that the entity must have a score of 10 (not less, not more)? Does it even exist that or a [score_A_max=] argument? I know about scoreboard players test, but i guess it is not the case to use it. |
I recently installed an application (VueScan) on Ubuntu 20.04. Works great but I noticed there is no icon in the Gnome app launch menu. I have to execute the program from the terminal. Once the application (VueScan) is up and running, it works great but I noticed that the icon in the dock is missing too. Any way I can... | Looking for a utility that allows me insert an item into the list of applications that GNOME knows about. For example: I have downloaded Eclipse EE (I have some very special plugins that I need to work with, and those plugins don't "like" the version available in the default repository). I'm using GNOME 3, on Ubuntu ... |
Like the subject states, Has anyone tried something like this to IRCC before? just need some form of Clarification and stuff. Edits I am applying for a Tourist visa. Just Visit and come back home, Want to make Canada my second home. | I would like to know if there is a possibility for me to get a tourist visa for Canada. I have no invitation letter from anyone from Canada. I have travelled to the UK last year (July 2018) and I also visited Europe (Nov 2017). Should I apply without having an invitation letter, or do I have to wait until I arrange... |
The goal is to collect the MAC address of the connected local NIC, not a list of all local NICs :) By using socket and connect (to_a_website), I can just use getsockname() to get the IP, that is being used to connect to the Internet. But from the IP how can I then get the MAC address of the local NIC ? Main reaso... | I need a cross platform method of determining the MAC address of a computer at run time. For windows the 'wmi' module can be used and the only method under Linux I could find was to run ifconfig and run a regex across its output. I don't like using a package that only works on one OS, and parsing the output of anothe... |
I have got the following code: DateTime start = DateTime.Now; Thread.Sleep(60000); DateTime end = DateTime.Now; and I would like to calculate the difference in minutes between start and end. How am I supposed to do it? For the example above, the result should be '1'. Thanks in advance! | I need to find a bottleneck and need to accurately as possible measure time. Is the following code snippet the best way to measure the performance? DateTime startTime = DateTime.Now; // Some execution process DateTime endTime = DateTime.Now; TimeSpan totalTimeTaken = endTime.Subtract(startTime); |
I'm using a Minecraft give command generator since I can't format the commands myself. What I'm trying to do is: /give @p diamond_sword{Damage:1000} 1 or /give @p minecraft:diamond_sword{Enchantments:[{id:sharpness,lvl:2000}]} But every time I try that command I get the error: Unknown item name I have no idea wh... | Recently I've been messing around with making a few minigames, and have used a few plugins to help make it easier to create and run them. However, a newer one I'm making requires me to use the /summon command in order to spawn zombies. However, no matter what I put in, I can't spawn hostile mobs. All other entities sti... |
I have a hard drive filled with files, and I need to find a specific file without knowing its name. All I know is that the file contains a list of email addresses. Is there any way I can locate it? | I am trying to locate a file that (should) contains the string "1896.345", somewhere under /home/dir/. Any ideas of how I can do it? Thanks |
Consider a polynomial $p \in \mathbb{R}[x]$ of degree $n$ and with no real roots. Prove that$$\int_{-\infty}^{\infty}\frac{(p'(x))^2}{(p(x))^2+(p'(x))^2}dx$$converges, and is less or equal than $n^{3/2}\pi$ My approach Now let $x_1, x_2, \dots, x_n$ be the roots of $p$. By Cauchy-Schwarz $$(\sum_{k=1}^{n}{\frac{1}{x-x_... | $ p(x)\in\mathbb{R[X]} $ is a polynomial of degree $n$ with no real roots. Show that: $$\int\limits_{-\infty}^{+\infty}\dfrac{(p'(x))^2}{(p'(x))^2+(p(x))^2}\,dx \leq n^{3/2}\pi.$$ It's easy to see that the degree of $ p$ has to be even. For $n=2$ this integral is at most $2\pi$. For $n>2$ the maximum value of th... |
How to control fan speed in ubuntu 20.04 with fan control software | How can I control the computer's fan speed? On Windows there is a wonderful program called . |
I have a raster layer containing climatic monthly data: rainfall maximum and minimum temperatures There is one layer for each variable and month. I want to extract the average and maximum values for all of these layers into an Excel sheet. Is there a way to do this without having to manually extract each value fo... | I work with QGIS GDAL,I have many raster image 'geotiff' with one band for many dates, I want to create a table that contains statistics for all rasters that I have. I tried the algorithm 'raster layer statistics' in QGIS but it gives just an 'html' file for one raster in input, but what I need is to have as result a t... |
What can I do that all tabs stay in the foreground all the time? Imagine you have two windows open; one is, for example, Google Chrome, this one is fullsize. The second one is a normal sized terminal. If I do something in the terminal it's in the foreground, but if I then click something in the browser, the terminal w... | I'm using Lubuntu 14.04 64 Bit and I need to have the "Always on top" feature so I can have any window always visible if I need to. I've searched a lot up and down, but to my surprise I could not find anything. Is it possible at all to have this feature ? |
I work with a very large bibtex file when I write articles. The bib file is in version control and is collaboratively edited by a large group of scholars with similar interests. This creates a 'moving target', which means that if I go back to compile an article that was written years ago, some of its references may hav... | My colleague asked me to write a page for a paper he writes. I wrote the page in LyX, compiled it to LaTeX, and sent him the TeX files. Then he reminded me that I forgot to send the .bib file with all the references. But, my .bib file is huge - it contains over 1000 references (I have a global BiBTeX file for all my p... |
Given $f$ entire function on $\mathbb C$ and $f$ one-one. Is it true that $f$ is linear? At least among polynomials the only such functions are linear! | Can we prove that every entire one-to-one function is linear? |
In the context of differential geometry, we have a smooth vector field $X$ and an integral curve of $X$ called $\gamma$ such that $\exists\ t_0 \in \mathbb{R}$ with $\gamma'(t_0) = 0$. The exercise asks to prove that under those conditions, $\gamma$ is constant. Invoking the Picard-Lindelöf theorem of existence and un... | Let $U$ be an open subset of $\mathbf R^n$ and $V:U\to\mathbf R^n$ be a differentiable vector field on $U$. Let $\mathbf p\in U$ be a singular point of $V$, that is, $V(\mathbf p)=\mathbf 0$. Then the only integral curve which starts at $\mathbf p$ is the constant curve. I know that one could simply use the theor... |
Is there the Lunatic Cultist on Terraria 1.2.11979? I defeated the Golem but the Cultist won't spawn. | I'm a mobile Terraria player and I have heard of hard mode, and gotten it. Now I also heard of expert mode but I can't seem to find anyway to get it. How can I get expert mode on mobile Terraria? |
Which of the following notation is a correct definition of the square function? $f(x) \triangleq x^2$ $f(x) := x^2$ $f(x) = x^2$ $f(x) \equiv x^2$ While this question is similar to , the aforementioned question and its answers do not address the usage if these symbols in the context of function definition. | I'm interested in knowing what is the meaning of the various equality symbols: $=,\sim, \cong,\approx,\equiv$. For example, the speed of a car $V$ in m/s: what would be the meaning of each of these statements? $$V = 30\\ V\sim 30\\ V \cong 30\\ V \approx 30\\ V \equiv 30$$ |
I'm making school web application which will be for testing users SQL knowledge and they have to enter SQL queries in form textarea and execute it on server mySQL. the problem that occurred to me is that I can't do prepared statements or binding or white-list on unknown dynamic queries(entered by user) and this makes t... | If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example: $unsafe_variable = $_POST['user_input']; mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')"); That's because the user can input something like value');... |
I was searching through the internet for an equation that defines the path followed by a racing line, when I came across the following formula on StackExchange . However, I could not understand what kind of maths is being used in the proof submitted by this user: I created this account, but couldn't comment on the use... | I am in the process of designing a board game involving car chases, and I am stumped by the following problem: A car will have a maximum speed through a constant radius speed turn, giving a maximum safe cornering speed for a given turn radius. But, if the car follows the racing line (an apex turn?), the radius of the ... |
I'm using Ubuntu 18.04.2 x64 installed on an internal SSD. The PC also has internal and external HDDs. The problem is that any application that has been installed from Ubuntu Software doesn't have access to those HDDs. E.g., I cannot save any file from Opera to them, and Inkscape cannot open/save the files from/to t... | I have Ubuntu 18.04 LTS installed. I inserted USB-flash to my laptop. It was automounted to /media/username/DISKLABEL and opened in Nautilus. I can read and write objects to it. How can I access it from the application, which is installed as Snap? I tried snaps of the following applications such as gedit, arduino-mhall... |
I am making a game where if the player is at half a heart I want to teleport them to a place. Is it possible to detect player health with command blocks? Thanks. | I am creating a mini-game in Minecraft, where I must check to see if the player is injured. The injured player will then be given an item. My guess is that the command would look something like /testfor @p[injured=true], but this command doesn't work. Is there a command for this? |
I am making a scene with a particle effect system in it, and I am wondering how I can take away the glow from the object. It is really bright, and it is not intended to look like that. Thanks | I've setup a plane with a particle emitter system. When I render the footage and the particles are glowing. Where do I find the settings for that? |
I have the following code: Iterator<ggItem> iter = ggItemTimestampMap.keySet().iterator(); ggItem gg; while (iter.hasNext()) { gg = iter.next(); if (DateTime.now().isAfter(ggItemTimestampMap.get(gg).plusSeconds(10))) { Log.v("ggItem 10 second limit:", gg.toString()); ... | We all know you can't do the following because of ConcurrentModificationException: for (Object i : l) { if (condition(i)) { l.remove(i); } } But this apparently works sometimes, but not always. Here's some specific code: public static void main(String[] args) { Collection<Integer> l = new ... |
I have been playing with the series which I had been calling the 'Double Basel problem' for the past couple of hours $$ \sum_{n=1}^{\infty} \sum_{m=1}^\infty \frac{1}{{n^2 +m^2}}. $$ After wrestling with this for awhile, I managed to generalize a result demonstrated . This identity is: $$ \sum_{m=1}^{\infty}\frac{1}{x^... | How to prove $$\sum_{m=1}^\infty \sum_{n=1}^\infty \frac{1}{m^2+n^2}=+\infty.$$ I try to do like $$\sum_{m=1}^\infty \sum_{n=1}^\infty \frac{1}{m^2+n^2}=\sum_{N=1}^\infty \sum_{n+m=N}^\infty \frac{1}{m^2+n^2}=\sum_{N=1}^\infty \sum_{m=1}^{N-1} \frac{1}{m^2+(N-m)^2}$$ $$\frac{1}{m^2+(N-m)^2}\leq \frac{2}{N^2}$$ but ... |
For some reason I keep getting this strange restricted view only in solid & wireframe viewport mode. Doesn't appear in render preview. See the attached pics to see what I mean. Can anyone tell me what this is and how to remove it please. In solid preview: And in render preview: | When looking at my objects in 3d view I'm seeing a gray cone that seems to be hiding other objects. Can anyone help me turn this off and explain what it is please. Screenshots attached. |
My solution is as follows: Let $d_1= (a,b) > 0$. Then by Bezout's identity, there exists integers $x_1$and $y_1$ such that, $d_1=ax_1+by_1$. Similarly let $d_2 = (a+c,b) > 0$ then there exists integers $x_2$ and $y_2$ such that, $d_2=(a+c)x_2+by_2$. Then since $b\mid c$ there exists integer $k$ such that $c=bk$ f... | Given: $a = qb + r$. Then it holds that $\gcd(a,b)=\gcd(b,r)$. That doesn't sound logical to me. Why is this so? Addendum by LePressentiment on 11/29/2013: (in the interest of and averting a duplicate) What's the intuition behind this result? I only recognise the proof and examples solely due to algebraic properti... |
I just created an SO account to offer some feedback to . Although I can apparently post a whole answer, or even edit others' answers (okay, it's moderated, but still), I can't post feedback to the one answer on that page I wanted to. I don't have anything to add further to the other answers already posted, but I want... | Users with less than 50 reputation points cannot write comments on questions and answers that they don't own. Why does this limit exist? But I want to contribute now. What should I do instead? But I can't write a good answer without more information! Shouldn't I be allowed to post comments if I have reputation on a di... |
The higgs boson is an elementary particle so how it can decays into another elementary particle; the photon? And why the photon doesn't interact with the Higgs field? | Why don’t photons interact with the Higgs field and hence remain massless? |
After upgrading from 16.04 to 18.04 I see there is a menu on top that supplies a way to quit the selected app, but this seems half implemented. I would imagine the main (file++) menu could be exposed there like in previous versions of Ubuntu. Thus the following should be exposed there: Is there a way to make thi... | I installed the latest version of Ubuntu (17.10) , but the problem is, I can't find the menu bars of applications in the GNOME panel. For instance, the Chrome menu bar doesn't appear on the panel like in Ubuntu 17.04 and earlier versions. |
Consider the equivalence relation $\sim$ on $\mathbb{Z} \times (\mathbb{Z} \setminus \{0\})$ defined by $(a,b) \sim (c,d)$ if $a \cdot d = b \cdot c$. Describe the equivalence classes in terms of familiar mathematical objects? The above is a homework problem. I can see some patterns in the equivalence classes, however... | Let $Q$ be the following set of $\mathbb{Z}\times \mathbb{Z}$ \begin{align*} Q=\{(a,b)\in \mathbb{Z}\times \mathbb{Z} | b\neq 0\} \end{align*} Define the relation $\sim$ on $Q$ as \begin{align*} (a,b)\sim (c,d)\Leftrightarrow ad=bc \end{align*} Prove that $\sim$ is a relation of equivalence, and give the class ... |
I am using the newest version of Ubuntu 14.04 and I like the global menu bar feature but I want the menus to always be visible not only when I hover my mouse over it. Is there a way to do that? Because the menus (like File, Edit, View etc.) disappear as soon as you move your mouse away from the menu bar at the top... :... | Will there be a way to disable auto-hide behavior of global application menu in Unity. While I would prefer to have this behavior disabled by default (as it is bad UX), it looks like it's here to stay, so I'm wondering if, as a user, I will be able to turn it off. |
I am trying to catch the legendary lake guardians, and have already caught Axelf and Mesprit. I enter Nameless Cavern at exactly 20:00, but nothing happens. I look over the portal, but all it says is "A mysterious ring is floating in the air...". How do I catch Uxie? | Every time since a few days ago after I caught Mespirit, when I go to the portal in the Nameless Cavern and I press A to interact. All that happens is a short dialog sequence and nothing else. I know the requirements are along the lines of having 3 max happiness Pokemon with you in your party which I do. I have also do... |
I am writing my PhD thesis right now. I do not have any published paper by now, but a manuscript which will be published probably after or at the same time of my defense. Can I just Copy/ Paste some parts (discussion for example) from my manuscript in thesis? Would be any problem afterwards for publishing this manuscri... | I recently finished my PhD thesis which will be published as a book soon. Now I'm wondering if it's possible or allowed to submit parts to a journal? Normally the process would be the other way round I think: Submitting papers and "gluing" them together for the thesis. I've read the guidelines of some journals which s... |
As I understand, in JavaScript every object has a prototype and it exposes some default properties. I have the following code where I'm trying to set the Year property of two objects through prototype. But both the calls are failing. How can I override toLocalString() for any object if I don't have access to the proto... | I'm not that into dynamic programming languages but I've written my fair share of JavaScript code. I never really got my head around this prototype-based programming, does any one know how this works? var obj = new Object(); obj.prototype.test = function() { alert('Hello?'); }; var obj2 = new obj(); obj2.test(); I rem... |
Is it possible to use \includegraphics within the caption of a figure? When I try, I get an error. Here is a complete (sans graphics) minimal example that also demonstrates why I want to do this: \documentclass{article} \usepackage{graphicx} \newcommand{\Triangle}{\raisebox{-0.3em}{\includegraphics[height=1.25em]{t... | Similar to , I would like to insert an external icon inside figure captions, something like: \begin{figure} \caption{text with \includegraphics{icon} somewhere inside} \includegraphics{image} \end{figure} How might this be done? |
This is a PC with no prior OS, I slapped Ubuntu on temporarily. I do prefer Ubuntu but it's (unfortunately) just not well optimised for games ;_; Anyway I'm pretty computer illiterate when it comes to partitioning, OSes and BIOSes so if anyone can tell me how to remove Ubuntu easily and leave my PC like it was when it ... | I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows. How do I remove Ubuntu and reinstall Windows? Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answer... |
Let $(W_t)$ be a Brownian motion. Under what minimal condition on the function $\sigma$ can we say that the solution of $$dM_t = \sigma(M_t,t) dW_t$$ is a martingale with regard to its own filtration? Same question if $(W_t)$ was a generic martingale, not necessarily a Brownian motion. | Could you kindly list here all the criteria you know which guarantee that a continuous local martingale is in fact a true martingale? Which of these are valid for a general local martingale (non necessarily continuous)? Possible references to the listed results would be appreciated. |
I know the films aren't canon, but it's stated quite often (in Hogwarts A History) that one cannot apparate in and out of Hogwarts. So how can Dumbledore do it in the film? | In the film The Deathly Hallows Pt. 2, right before The Battle of Hogwarts starts, Draco Apparates to the dungeons to get Goyle and Blaise Zabini. Since it's impossible to apparate or disapparate within the walls of Hogwarts (aside from Dumbledore, of course) how was Draco able to do so? |
I am a new learner of Java language and for the past two years I have been working with C++. I am gonna need something equivalent to cin.ignore() in Java. | I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference? |
I tried to dual boot Ubuntu with Windows 7 and it turned out that I booted only Ubuntu. All my data in windows 7 OS are gone. Is there any chance I can retrive those data? And I want to dual boot windows 7 now. How do I do it? If I do it will it be enough for me to get the datas back? | I am on Ubuntu 12.04 64-bits I accidentally deleted a NTFS 255 GB partition using Gparted, and yes it contains LOTS of important data. Upon realizing the deletion I haven't yet created any file-system on it. So it still shows Unallocated. I tried Testdisk , but it shows entire partitions created from the beginning... |
When I do a sudo apt-get update, I encounter the following: Fetched 189 B in 10s (18 B/s) W: There is no public key available for the following key IDs: 1397BC53640DB551 W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEX... | The error I am having when trying to update my package list. W: GPG error: http://download.opensuse.org ./ Release: The following signatures were invalid: KEYEXPIRED 1436387333 W: Failed to fetch http://ppa.launchpad.net/samrog131/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found E: Some index files... |
I have a laptop with hybrid Intel/AMD graphics. As far as I know, the configuration is muxless. This causes not-detection of discrete graphic card. And now my problem: I don/t know how to turn the discrete card completely off. I think it is powered all the time, because of critically short battery work time(approx. 3 h... | On Ubuntu 12.04 my Sony Vaio VPCSE with Intel® HD Graphics 3000 and AMD Radeon™ HD 6630M worked fine with the Catalyst Control Center version 12.6. Also the switching between integrated and discrete graphic card was working. In both cases, I followed this . But it is not working on Ubuntu 12.10. I tested the tutori... |
How can I get the pid of a subshell? For example: $ echo $$ 16808 This doesn't work, because the original shell expands $$: $ ( echo $$ ) 16808 Why does single quoting not work? After the original shell removes the single quote, does the subshell not expand $$ in itself? $ ( echo '$$' ) $$ Why does eval not w... | I'm reading "BASH pocket guide of Oreilly". It said: The process ID of the current Bash process. In some cases, this can differ from $$. Above explanation , explained $BASHPID variable. Question: which cases? |
This dataset contains the Stack Exchange Duplicates dataset in three formats that are easily used with Sentence Transformers to train embedding models. The data was originally extracted using the Stack Exchange API and taken from embedding-training-data.
Each pair contains data from two Stack Exchange posts that were marked as duplicates. title-title-pair only has the titles, body-body-pair only the bodies, and post-post-pair has both.
title-title-pair subset
str, str{
'title1': 'what is the advantage of using the GPU rendering options in Android?',
'title2': 'Can anyone explain all these Developer Options?',
}
body-body-pair subset
str, str{
'body1': "I've been wondering about this for years. It seems like a pretty obvious question, so I'm surprised not to have found it addressed among the other Tolkien minutiae on this site. Hopefully I haven't missed it, but anyway, here goes... In Tolkien's Middle-Earth writings, Evil cannot create things, only twist and warp what already exists. Thus, Orcs are twisted Elves, Trolls are twisted Ents, etc. So then, what's the original source for Dragons? They look pretty original to me! The only template that seems even remotely possible is the Eagles, as they're both powerful fliers, but the connection seems very remote indeed. Also, as twisted copies Orcs and Trolls are markedly inferior to Elves and Ents respectively, but I'm not aware of any text describing Dragons as inferior to Eagles.",
'body2': 'All that I know of Smaug is that he (she?) came out of nowhere to attack and conquer Erebor. Where exactly did he come from? In fact, what are the origins of dragons? Did Ilúvatar create them or did they come from somewhere else?',
}
post-post-pair subset
str, str{
'post1': 'Hyperdrive vs Warp drive. Which is fastest? In Star Trek Warp Factor 36 is the highest FTL speed while in star wars I think the fastest canon was 0.4. So which is faster?',
'post2': "Is a warp drive faster than a hyperdrive? What's faster: a warp drive from Star Trek, or a hyperdrive from Star Wars?",
}