A word for: something good that came out of something bad

I need a single-word to describe something good that (unexpectedly) resulted from something bad. This good thing could not have occurred without the bad event happening first, as a precursor.  Example sentence: "I got in a horrible car accident and broke my leg, but falling in love with my nurse at the hospital was the ____," (something like that).


How is $\sqrt{3} * \sqrt{2} = \sqrt{6}$ mathematically possible?

Well, this question is basically a method to point a loophole in Maths which I'm not sure how it is possible...  Let us take a number A and another no. K. A + A + A + A + A........(k times) = K * A   Everything is all right till here. But the problem arises in the next step.  We know taking A = $\sqrt{3}$ and K = $\sqrt{2}$, the answer is $\sqrt{6}$  But how can we add $\sqrt{3}$ $\sqrt{2}$ times ?  Or, to reframe the question, how can we find the answer of multiplication of two irrational numbers when we know it is not possible to add a number (or infact, do anything), irrational times to itself.  Using the fact that multiplication is repeated addition.  Basically, the above points out that multiplication isn't repeated addition. (Andre Nicolas)


How to know if a paper is allowed (by publisher/journal/conference) to be put on arXiv?

I am a 2nd-year PhD student. I have published two conference papers, and now I want to upload a copy to arXiv. I am aware it is common (flexible) for researchers in some areas (e.g. machine learning) to upload their papers on arXiv; However, it is uncommon in my research area/targeted publications, but I think it would be useful for wide-access (my research area: algorithm-hardware co-design for machine learning) I wonder how to know If a paper is allowed to be put on arXiv?  Do publishers have rules against that? Or It is the Journals/conferences have rules against that? Where can I find them (generally)? Are there any rules on the version of the paper that is allowed? e.g. pre-publication, camera-ready, post-publication etc.  Thanks.


Delete till first occurrence of pipe "|" using sed

I want to remove all characters before the next pipe "|" symbol. I tried suggestions on previous questions however that did not work for me. As an example. I want to delete the sequencenum=123 however the sequence number is dynamic and doesn't always equal 123, it could equal 934294. I could remove it by using "s/|sequence=123//g" or "s/|sequence=...//g" however I want to be able to delete all characters until the next pipe, "|". Output: 2021-03-22T12:00:51.990368-04:00 8.8.8.8 time=1616428842|action=Detect|ifdir=inbound|origin=8.8.8.8|originsicname=CN\=Internet,O\=test|sequencenum=123|dst=1.1.1.1|proto=6|s_port=2231|service=80|src=9.9.9.9|src_machine_name=test@stackoverflow.com|src_user_name=user|user=testuser@stackoverflow.com|  Desired Output: 2021-03-22T12:00:51.990368-04:00 8.8.8.8 time=1616428842|action=Detect|ifdir=inbound|origin=8.8.8.8|originsicname=CN\=Internet,O\=test|dst=1.1.1.1|proto=6|s_port=2231|service=80|src=9.9.9.9|src_machine_name=test@stackoverflow.com|src_user_name=user|user=testuser@stackoverflow.com|


Prevent Ubuntu from breaking wifi connection on lid close

I have my power settings on Ubuntu to suspend when inactive for 10 minutes. And I have set my 'Power on lid close on battery' as Do Nothing. However, with this setting my laptop doesn't suspend itself if I close my lid but neither does it suspend itself and by the time I get home the laptop is completely dead. If I set my 'Power on lid close on battery' to Suspend then it suspends itself however, it also cuts out all the wifi and VPN connections. Is there a way I set my laptop such on lid close it does nothing and preserve the wifi and VPN connections but after 10 minutes of inactivity whether lid closed or not suspends itself?


How to combine or merge multiple values inside the single array?

I have an array values. Inside the array some multiple data but how to combine or merge these multiple records. some values inside the single array are  multiples . How to merge these ?      Array     (     [0] => plxliupp     [1] => plxliupp     [2] => dg_w12     [3] => col4312     [4] => Iphone6s     [5] => Ndry_milk     [6] => smj7     [7] => ovn 02 o3     [8] => allwin6406f     )   After remove multiples values. array like this      Array     (     [0] => plxliupp     [1] => dg_w12     [2] => col4312     [3] => Iphone6s     [4] => Ndry_milk     [5] => smj7     [6] => ovn 02 o3     [7] => allwin6406f     )   thanks for answering


Something strange has happened to my Ubuntu 14.10

This happened just a few days ago and I've been making do but it has really started to bother me.   When I click F12 on startup and select my Ubuntu it loads fine and I sign in but once I'm signed in for some reason I cannot see any toolbars, for instance the 'tray' with the time and battery left, etc nor can I see the slide bar on the right that has your favorites, nor can I resize any windows?   I can navigate through things using the terminal because I know how to but I can't even close windows, and they all stack up on the top left corner of the screen and since I cannot close or move these windows I am having a hard time.   Maybe I pressed some shortcut to like, lock my windows? or something any help would be great


Switch from portrait to landscape maintaining margins

There is a portrait document in which only the second page have to be made landscape (the document has header and footer made with fancyhdr). To accomplish the portrait to landscape turn I'm using the following:  \pdfpageheight=\paperwidth \pdfpagewidth=\paperheight \paperwidth=\pdfpagewidth \paperheight=\pdfpageheight    Also, I'm using geometry to adjust layout in both modes (portrait and landscape). I'm going fine in maintaining the top and left margins across the modes. But I'm not seeing how to manage right and bottom.  To exemplify: I've tried \geometry{bottom=5cm} but in the landscape mode the footer goes beyond the page. It seems that the 4 lines of code above just cut the paper accordingly but foot stays in the same position (as in portrait mode).  What's the proper way to switch from portrait to landscape maintaining margins?  The following demonstrates what happens, foot disappear in landscape.  \documentclass[10pt,a4paper]{article} \usepackage[left=3cm, top=5cm, headheight=2cm, height=20cm]{geometry} \usepackage{lipsum} \usepackage{fancyhdr}  \renewcommand{\footrulewidth}{0.4pt}  \begin{document}  \thispagestyle{fancy} \pagestyle{fancy}  \lipsum[1]  \newpage  \pdfpageheight=\paperwidth \pdfpagewidth=\paperheight \paperwidth=\pdfpagewidth \paperheight=\pdfpageheight   \newgeometry{left=3cm, top=5cm, headheight=2cm}  \fancyhfoffset[L]{0pt}  \lipsum[1]  \restoregeometry  \paperwidth=\pdfpageheight \paperheight=\pdfpagewidth \pdfpageheight=\paperheight \pdfpagewidth=\paperwidth  \lipsum[1]  \end{document}


I have tried using the Subframes option. It hasn't done a thing.  So I have an object which gives off 3 particles into the air.  I have an Icosphere object on a different layer with a particle instance modifier on it.  That allows me to add a particle system to the Icosphere to create some awesome particle trails    But the particle system that is attached to the Icosphere creates clumps of particles on each frame.  I am wanting a nice, smooth stream of particles being emitted from the main particles.  Is there a way to fix this, or does the Subframes option not work with the Particle Instance modifier.  Here is my .blend file:  I am using Blender 2.72


Determining direction of longest segment of polygon using ArcGIS Desktop?

I have a shapefile with 9000 agriculture fields and what I like to do is to determine for each field (=each polygon) the direction of the longest segment.  For instance, the selected polygon in the screenshot has its longest segment from west to east so I would like to mark give the polygon the attribute W (for west) or either E (for east).   Is there any solution to solve my problem in a fast but generalized way?   I do not need very detailed results. It's just for the interpretation of a question.   I'm seeking an answer using ArcGIS 10.2 for Desktop.  To be more precise on what I'm looking for I try to explain more practical: I'm doing winderosion analysis for a specific area with 9000 fields. As result I have a potential susceptibility for each field. I like to check, if the fields with high susceptibility are correlated to a certain orientation of the fields, e.g. check if most of the fields with high risk are oriented in the main winddirection or not.   The search for the longest segment is not really important for me. It was just an idea I had to determine the direction. So forget about the longest segment if there is a way to determine the direction with another method ;)


Why is my render so blurry in Blender 2.78?

I am using blender 2.78 and am trying to make a Minecraft animation. When i try to render it, it turns out like this.  Settings:  In cycles render CPU 20 Samples rendering final


Taylor Series Expansion of $\frac{1}{\sin 2x}$ and $\frac{1}{1-e^{-x}}$

How do you find the Taylor expansions of the expressions:   $\frac{1}{sin2x}$ and $\frac{1}{1-e^{-x}}$ I'm not sure what to do since all the terms are in the denominator. Thanks in advance for any help.


quickly check package exists using tlmgr on win command line

To check whether I have a certain package (say, placeins) installed in texlive 2017 using command line on windows. What is the right command to do so?


Find $det(xy^T)$ where $x$, $y$ are vectors from $R^n$, $n$>1

I represented $x$ as $[x_1\ x_2\ ... x_n]^T$, and $y^T$ as $[y_1\ y_2\ ... y_n]$.  Multiplying them produces a matrix $n$x$n$: $$ \begin{pmatrix}x_1y_1&x_1y_2&\dots& x_1y_n\\ x_2y_1&x_2y_2&\dots& x_2y_n\\ \\ \\ \\ \\  x_ny_1& x_ny_2&\dots& x_ny_n \end{pmatrix}$$  (I apologize, I don't know how to format a matrix using LaTeX). :)  Obviously, for $n=2$, $n=3$ the determinant is $0$. I just don't know how to prove it for $n$.


How can I know what Classes inherit from a Class or Interface?

I stumbled upon this method  Clipboard.GetDataObject()   It returns an IDataObject so I figured there (maybe) was already a Class implementing the IDataObject Interface in the .net framework, but how can I find it?


Bump right-aligned text to next line iff no room

I a chat discussion it was suggested that \hspace*{\fill} (with a space before it to allow for a line break) was sufficient to always get the text following aligned to the right. And indeed, it is aligned to the right.    However, in one case it is inserting an additional line  break where one should not be required as illustrated by the last example here.  I want the text bumped to the next line if and only if (iff ) there is no room:    If I remove the space before the \hspace*{\fill}, there are cases (second and third) where a new line should have been inserted but is not:    Related Question:      I have tried the suggestions at the related question and:   Martin Scharrer's suggestion of using \hbox{}\hfill results in the text being on the left for the last case. Herbert's \When macro exhibits a similar problem for the last case. Thorsten Donig's \signed macro does yield the correct number of lines, but portions of the file name for the middle two cases show up on the second line when they easily fit in the first line.     Notes:  I believe that this is unrelated to the problem, as I was able to reproduce the problem without it.  But, am mentioning it here in case it causes an issue with the proposed solution.  I am using \texttt for the file name. This resulted in an additional complication which I initially thought was the cause of the problem.  So, my actual use case is commented out below and it incorporates a solution from        Code:  \documentclass{article} \usepackage[paperwidth=7.0cm,showframe]{geometry} \usepackage{xcolor} \usepackage{xparse}   \newcommand*{\FillLine}[2]{% \noindent\parbox{\linewidth}{%     \raggedright     File:~#2 % <-- Need space here     %Space before \hspace* allows for a break before it     \hspace*{\fill}\texttt{\small CONFIDENTIAL}%  }% }  %\newcommand*{\EnableHyphenationInTexttt}{\hyphenchar\font=45\relax} % %\newcommand*{\FillLine}[2]{% %    \noindent\parbox{\linewidth}{% %       \raggedright %       File:~\texttt{\EnableHyphenationInTexttt#2} % <-- Need space here %       %Space before \hspace* allows for a break before it %       \hspace*{\fill}\texttt{\small CONFIDENTIAL}%  %    }% %}  \begin{document} \FillLine{Name}{Value}  \bigskip \FillLine{Name}{A-Long-Value}  \bigskip \FillLine{Name}{iiiiiii-iiiii-iiiiiii}  \bigskip \FillLine{Name}{Some-Really-Really-Long-Value} \end{document}


I've been playing  and casting spells but there's no xp bar for the magic.  I have checked the options but that's not it, I can move it but can't see it.  I'm also not levelling - I've killed like 20 mobs with just magic and I'm still level 1 with 100 mana and like 11 burnout.  Ars Magica is a Minecraft mod and is part of some of the Feed the Beast packs for 1.6.4 and i can cast the spells


How to find last occurrence of pattern and print all lines following the last occurance

I have a file which contains multiple occurrences of pattern "====". These patterns are followed by texts. I'd like to search for the last occurrence of the "====" pattern and print all the lines after the pattern. Any ideas on how to do it in bash? Combination of grep, awk, sed or tail, etc..?  Sample file:  ====  First run of script  End of first Script  ====  2nd run of script  End of 2nd script  ====  3rd run of script  End of 3rd script   Output of the command should look like below.  3rd run of script  End of 3rd script


Please tell me if president should be capitalized here

So when I was promoted to president of the club, I took the opportunity to introduce new events.  From my experience as president of Pre-med Club, I can confidently say that leadership is about encouraging constructive interpersonal interactions between people.


Update the help center to indicate Stack Overflow Careers questions are off-topic

Currently the  page on Meta Stack Exchange says:  If your question is about:   (Employers). Questions for  should go to   … it is welcome here.  A  was closed as "This question pertains only to a specific site in the Stack Exchange Network". That close reason has a link to the help center page that says Careers questions are on topic here. The post  to MSO by a Careers customer support member of staff, which implies it should indeed be asked on MSO instead... Could the help center page be updated to indicate this?  Note that  seems to be talking about what is now called Jobs, and the help center page has since been updated to direct those questions to MSO, but what is now (or was? Isn't it "Talent" now?) called Careers (confusing right?) is still apparently on-topic here.


Spinner causes my app to crash in android studio

Im new in programming and im trying to make a basic application in adnroid studio. Im trying to build a spinner and I am basing my code from this "https://developer.android.com/guide/topics/ui/controls/spinner". Now when I try to create a spinner my application crashes. I've tried everything I could find on google but nothing seems to work. This is my code: MainActivity.java Spinner spinner = findViewById(R.id.workout_spinner);     ArrayAdapter<CharSequence> adapter1 = ArrayAdapter.createFromResource(this,             R.array.workout_array, android.R.layout.simple_spinner_item);     adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);     spinner.setAdapter(adapter1);  Stings.xml: <string-array name="workout_array">     <item>Dumbbell Press</item>     <item>Cable Row</item>     <item>Shoulder Press</item>     <item>Lat Pulldown</item>     <item>Lateral Raise</item>     <item>Leg Press</item>     <item>Lunges</item>     <item>Biceps</item>     <item>Triceps</item> </string-array>  and here is the fragment_slideshow.xml <Spinner     android:id="@+id/workout_spinner"     android:layout_width="match_parent"     android:layout_height="wrap_content"     app:layout_constraintEnd_toEndOf="parent"     app:layout_constraintHorizontal_bias="0.0"     app:layout_constraintStart_toStartOf="parent"     app:layout_constraintTop_toTopOf="parent" />  And here is the error android studio gives: E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.schema_app, PID: 24319 java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Spinner.setAdapter(android.widget.SpinnerAdapter)' on a null object reference     at com.example.schema_app.MainActivity.onCreateOptionsMenu(MainActivity.java:70)     at android.app.Activity.onCreatePanelMenu(Activity.java:4206)     at androidx.fragment.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:324)     at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)     at androidx.appcompat.app.AppCompatDelegateImpl$AppCompatWindowCallback.onCreatePanelMenu(AppCompatDelegateImpl.java:3070)     at androidx.appcompat.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:94)     at androidx.appcompat.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:456)     at androidx.appcompat.app.ToolbarActionBar$1.run(ToolbarActionBar.java:57)     at android.os.Handler.handleCallback(Handler.java:938)     at android.os.Handler.dispatchMessage(Handler.java:99)     at android.os.Looper.loop(Looper.java:223)     at android.app.ActivityThread.main(ActivityThread.java:7656)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)  I/Process: Sending signal. PID: 24319 SIG: 9 Any help would be appreciated.


Does removing a creature from the battlefield during the blockers declaration phase affect the damage the player will take?

First example: When a creature is going to attack me alone and I use Vapor Snag to return it to the other player's hand, is the combat damage prevented?  Second example: If three 1/1 Soldier creatures are going to attack me while Veteran Swordsmith (which gives other Soldier Creatures +1/+0) is on the board and I use Doom Blade to kill the Veteran Swordsmith, do I take 3 damage or 6?  Third example: I control a creature, but couldn't use it to block a sliver my opponent controls because he just put a Shifting Sliver into play. If I use Path to Exile to exile his Shifting Sliver during the blockers declaration phase, does this make me able to block the other sliver?  Also, would this kind of play work in response to triggered/activated abilities? (for example, trying to prevent a triggered/activated ability from resolving by removing the permanent from the battlefield in response to the opponent trying to trigger/activate it)


Is this punctuation correct? "Montana authors include:; John Brown, Mary Lamb..."

I am writing a press release, and I am stumped as to what punctuation I use for listing numerous names. The following is a sample.      Montana authors include:; John Brown, Mary Lamb, Susie Sunshine, Tom Foolery, Bud Wiser, etc.    What punctuation is correct after the word include?


Probability of rolling 3 mutually exclusive dice

Suppose I have 3 dice. Each has some mechanism that can prevent other dice being in the same number as itself when they are rolled together. Now I roll the 3 dice at the same time. Then what is the probability of having a 2 appear?  Is the answer 1/6 + 1/6 + 1/6 = 1/2 since the event are mutually exclusive and each has a probability of 1/6? But 1/2 seems to be too high?


Calculate the confidence interval for the mean of a beta distribution

Consider a beta distribution for a given set of ratings in [0,1]. After having calculated the mean:   $$   \mu = \frac{\alpha}{\alpha+\beta}  $$  Is there a way to provide a confidence interval around this mean?


How can matter be squeezed extremely dense

I'm fairly new to physics and currently reading A Brief History of Time by Stephen Hawking. Hawking is talking about black holes being the size of a few miles containing the mass of multiple times the sun's mass. How can matter be squeezed that dense? Isn't there a final point of matter being squeezed?                Maybe a silly example, but if a black hole can be multiple miles in diameter, why can't I compress my daily garbage to the size of a cubic centimeter sized cube with a giant hydraulic press? Or change the density of a steel block with a gigantic press?                        So basically, how can an atom be squeezed denser than it already is? I guess that's what happens in black holes at least! I couldn't find a non-physicist easy explained answer, an answer like how Hawking explains things by examples in his books. Thanks!


what is the C++ version of Java's instanceof? : checking, not casting

I'm currently in the middle of a project for school in which I have to "translate" a Java program into C++.   The program emulates a media library and uses inheritance. Basically, you have a media library which you can add items to. The different kinds of items you can add are Books, Movies, and MusicAlbums.  I have a class Library, which main creates an instance of, and which has a container to hold all of my items. Item is the superclass, and Book, Movie, and MusicAlbum are its derived classes.  Here's where I'm having problems translating from Java to C++:   My instructor provided "Main.cpp", and I have to write the rest of the program based off of that. I am not allowed to modify it or the assignment is invalid. However, "Main.cpp" calls  cout << item << endl;   every time that it adds an item to the media library. So, that of course sends it to Item.cpp , where I've overridden the << operator.  Now, I have to be able to figure out whether that "item" is a Book, Movie, or MusicAlbum before I write the code for outputting its data, because each one of those things needs to be printed differently.  In my Java program, I wrote something like:  if(item instanceof Book){     System.out.println((Book) item); // I overrode "toString" in Book.Java } elseif(item instanceof Movie){     System.out.println((Movie) item); // overwrode "toString" in Movie.java } else {     System.out.println((MusicAlbum) item; // overrode "toString" in MusicAlbum.java   As you can see, I used instanceof to determine which type of item it was, and then I cast the item to that derived type before passing it to println, after overriding all of the derived class's "toString" methods.  I don't know how to do this in C++. I've looked at tons of similar questions on stackoverflow and other forums, and they all either suggest things that I tried and didn't work, or they tell you how to cast the item to the derived type but not how to just -check- which derived type it is without actually changing it first.   If anyone has any insight into how this would work in C++ I would be very grateful. Thank you.


An old short story about an urban war between car drivers and pedestrians

For decades I’ve been struggling to remember the title of a science fiction short story I read in some anthology as I was younger: by tone and subject it could be from the 50s or 60s. It must have been written prior to the late Seventies or early Eighties, as it is when I read it. I have no idea about the author: I used to think it was Frederik Pohl but after reading everything I could find written by him I had to give up. It has to be someone else. And it isn’t «The Racer» by Ib Melchior either, as I’ve read it recently in the hope it was the story I’m looking for but it wasn’t.  The story is set in the near future, in a dystopian America where car drivers hunt for pedestrians on the streets: probably there’s an ongoing open war between pedestrians and drivers; both groups go by a nickname, which in the Italian translation that I read back then sounds like «the Dismounted» (or maybe «Ground Pounders») and «the Motorized».  The one scene I remember is the opening, when the protagonist’s armored car runs over an old lady who’s crossing a town’s street: instead of running away, she grabs her gun and shoots the car. Later the protagonist is shown fastening bolts on the car to patch the holes left by those bullets.  Could you help me find this story?


The Cantor set is usually defined in the following way:  Let $A_1 = [0, 1]$ and \begin{equation}  A_n = A_{n-1} \setminus \bigcup_{k=1}^\infty \left( \frac{1 + 3k}{3^n}, \frac{2 + 3k}{3^n} \right) \textrm{for}\ n > 1 \textrm{.} \end{equation}  Then, the Cantor Set, $\mathcal{C}$, is \begin{equation} \mathcal{C} = \bigcap_{n \in \mathbb{N}} A_n \textrm{.}  \end{equation}  My question is: can't we just define the Cantor Set as \begin{equation} \mathcal{C} = \lim_{n \to \infty} A_n \textrm{.} \end{equation}  Why not? Is it because we haven't already defined what does the limit of such a sequence mean?


Array length is never 0 so an ArrayOutOfBoundsException occurs on the next line

I don't know why this is happening. Heres the code:  import com.lewislovesgames.chopthattree.minecraftservermanager.Main;  public class main {   public static void main(String[] args) {      if (args.length == 0) {            if  (args[0] == "--nogui") { // Debugger says this is the line it errors on           System.err.println("NOGUI not made yet");       } else {        System.err.println("[Minecraft Server Manager]: Argument does not exist.");       }      }      System.out.println("[Main]: Running Main Window");      Main main = new Main();      main.setVisible(true);       }  }   The code did work until I put in the args snippet. It looks like the array is never 0 so it passes on to the next line. I'm using Eclipse for the debugger and running of the program.


How do I install OpenOffice instead of LibreOffice?

I want to install OpenOffice. What can I do to install it on my computer?


Name of the category of foreign words with no english translation

What is the name of this type of word which does not have a one word English translation.  Words such as:  Waldeinsamkeit (German) The feeling of being alone in the woods. Some Hansel and Gretel or Red Riding Hood reference, I bet!  Tartle (Scottish) If you’ve ever been talking to someone you’ve been introduced to before but their name has completely disappeared from your brain then you’ve tartled. Essentially means a hesitation in recognising a person or thing.  (I want to be able to research this type of word by entering something besides: foreign words with no English translation.  I thought these words might have a name.)


Shortcuts in Objective-C to concatenate NSStrings

Are there any shortcuts to (stringByAppendingString:) string concatenation in Objective-C, or shortcuts for working with NSString in general?  For example, I'd like to make:  NSString *myString = @"This"; NSString *test = [myString stringByAppendingString:@" is just a test"];   something more like:  string myString = "This"; string test = myString + " is just a test";


I'm pretty sure this question has been asked, but I cannot find a solution. I use firefox allot more than chrome and I can't log into any stack website (including stack exchange) with firefox. I get no error in the developer console (not sure if I'm supposed to) and it is really frustrating. Is there any fix to this.  What keeps happening is my page just refreshes again and again and again and it never ends.


How to prove this result involving the quotient maps and connectedness?

Given topological spaces $X$ and $Y$, where $Y$ is connected, let $p \colon X \to Y$ be a quotient map. If, for each point $y \in Y$, the set $p^{-1}(\{y\})$ is connected, then how to prove that $X$ is connected also?   By the map $p$ being a quotient map is meant the following:   The map $p$ is surjective, and, for any subset $V$ of $Y$, the set $V$ is open in $Y$ if and only if $p^{-1}(V)$ is open in $X$.


How do I enable hardware virtualization technology (VT-x) for use in Virtualbox?

So I am trying to run Ubuntu in a virtualbox but on installing 12.10 from the .iso I was greeted by a warning telling me that audio wouldn't work then I pressed next and this popped up:  Failed to open a session for the virtual machine Tux 3 VT-x features locked or unavailable in MSR (VERR_VMX_MSR_LOCKED_OR_DISABLED) Details  Result Code:  E_FAIL (0x80004005) Component:  Console Interface:  IConsole {db7ab4ca-2a3f-4183-9243-c1208da92392}   And then it doesn't work.  I assigned 4GB of my 8GB to Ubuntu, 100 dynamically allocated GB of space, and 12MB of graphics memory. I'm running an Asus p8z77 V LX mobo with an Intel i5 3550 processor.   Downloaded 12.04.2 on my PC and tried again. Still getting the same message.


Are there any settings concerning the connection to the Windows Store?   I find I cannot connect to it after refreshing my computer. I got the following message for two days. I don't think Windows Store is down, so there must be something wrong.   My internet connection is working fine. I can also use the Game store, Bing and anything else, but just can not connect to the Windows Store.


Class number of $\mathbb{Q}(\sqrt{-23})$

I want to find the class number of $K=\mathbb{Q}(\sqrt{-23})$. First I found Minkowski bound by using $n=2$, $s=1$ and the $disc(K)=-23$. It is bigger than $3$. So, it is enough to check for prime $p=2,3$. Then I got $<2>= P_{1}P_{2}$ and $<3>= Q_{1}Q_{2}$.  Also, I showed that these ideals are not principal. But I am not sure about the next step. There is a few examples here for calculation the class number:  . These help me but there is no case $d<0$ and $d\equiv 1$ mod $4$ for $K=\mathbb{Q}(\sqrt{d})$. I would be glad if you help me. Thanks.


How secure is a post doc job offer in an email from the department chair prior to receiving the official written letter?

I'm in/from the US. I'm finishing my PhD this semester. I've been offered a research postdoc, via email, by the dept. chair at one of my top choices, but outside the US (would rather not give too many details). I replied to say I'm accepting the position. Everyone seems very happy: me, the chair, the professor I intend to work with. But I have nothing in writing.  In the meantime I have an offer for a teaching job at another place much closer, which I would definitely take if I were not getting the above postdoc. I don't feel comfortable turning this down until the other setup is official.  I emailed the postdoc place asking for an official letter. They said they would send it out by mail, but ignored my request for a scanned emailed copy, and I need to give a yes or no answer to the second place before their alleged letter would arrive. I emailed them again about the scanned copy and no response though it has only been a couple days.  How confident should I be that this postdoc is really happening? How common is it for informal agreements like that to be backed out of? Are scanned emailed letters less customary outside the US? It would be terrible of I turned down the teaching job and then the postdoc fell through.  Also, what should I say to the other place if I am still unsure about the postdoc by the deadline for my yes/no?  Update: I got the requested scan of the official letter today. I ran it by my adviser and he says this seals the deal and I can cancel any other interviews. Whew!!!


Using Freestyle with semi-transparent materials

I am working on an animation which will have a model behind transparent materials making up the foreground:    However, no Freestyle settings ("QI Range", etc.) are working for me. I tried setting "Edge Mark" and "Exclusive", but depending on the "Visibility" setting I either get the lines showing through the foreground mesh or being entirely hidden by that mesh.  What would be the optimal way to approach this problem?


Search and replace using a regex with some characters appearing anywhere in the string

I would like to retrieve specific information (coordinates) from a string, where some characters (like '' and line breaks) can appear anywhere in it. My long-term goal here is to replace the coordinates in the string with the name of the city that it corresponds to.  Here is an example of string (it's wikicode):  ''These are the coordinates'' :   ''Long. 17d. 6′. 8″. lat. 47d. 28′. 8″ ''Lon. ''36d. 70′. 80″. ''lat. 45d. 20′. 5″ ''Long. 17d. 6′. 8″. lat. 47d. 28′. 8″   (I want the 3 coordinates to match).  and here is the PCRE regex that I came up with so far:  /''Long?(?:'')?\.(?:'')? .*?(?P<Degrees>\d+).*?d.+?(?P<Minutes>\d+)′.*?(?P<Seconds>\d+)″.*?(?:'')?lat(?:'')?\.(?:'')?.*?(?P<Degrees>\d+).*?d.+?(?P<Minutes>\d+)′.*?(?P<Seconds>\d+)″.*?/gmJ     The last coordinates don't match my regex because there is a line break in the middle. At first, I thought: "Well, I'll just add an optional line break in the regex", but then I realize that line breaks, just like '', can potentially appear anywhere in the string, and adding optional line breaks  and optional '' (like I started to do in the regex) after each character in my regex sounds like it will be completely unreadable and unmaintainable.  What are my options here? In theory, I could just remove '' and line breaks from the string, but I actually need them in other parts of it (for instance in the substring ''These are the coordinates'' : these '' must stay).


Terminal Window Is Having Icon of itself over Close, Minimize, and Maximize Buttons

Check The Terminal Window - 'Minimize, Maximize, Close' buttons are covered by the icon:


Inspired by this ....  I am the sole person using my system with 12.04. Every time I issue a sudo command; the system asks for the user password (which is good in its own way).  However I was thinking; without activating the root account; how can I execute the sudo commands which will not ask for user password to authenticate.  NOTE: I want to execute sudo command without authenticating via password; only when they are executed via terminal. I don't want to remove this extra layer of security from other functions such a while using 'Ubuntu software center' or executing a bash script by drag-drop something.sh file to the terminal.


Salesforce Standard API - Composite Tree resource

In order to create record in bulk using REST API, we using Composite Tree resource.  I'm trying to upload a bulk of content versions :   {"records" :[  {   "attributes" : {"type" : "ContentVersion", "referenceId" : "ref1"},   "VersionData":"/9j/4AAQSkZJRgABAQEAYABADn/2Q==",   "PathOnClient":"Array1.jpg",   "Description":"Array1"  },   {   "attributes" : {"type" : "ContentVersion", "referenceId" : "ref2"},   "VersionData":"/9j/4AAQSkZJRgh25==",   "PathOnClient":"Array2.jpg",   "Description":"ARRAy2"  } ] }   Using endpoint: .  My questions are:   The Response when everything handled fine is :      {     "hasErrors": false,     "results": [         {             "referenceId": "ref1",             "id": "0680Q0000006OSwQAM"         },         {             "referenceId": "ref2",             "id": "0680Q0000006OSxQAM"         }     ] }    But in Case we have one error on one of the files - I'm getting the next response:  "results": [         {             "referenceId": "ref2",             "errors": [                 {                     "statusCode": "SOME ERROR",                     "message": "SOME ERROR",                     "fields": [                         "SOME FIELD THAT GET THE ERROR"                     ]                 } ]   BUT what happened to the other files that actually succeeded?  If there is one error on one of the files, Does it make it all fail? Even if they were succeeded?  If it does, Is there another method that I can upload a bulk of Content Version using REST API?  2.What about the size limit of Content Version in MB that I can upload with this approach? What is the max size that this API can handle with? I made a test and I succeed to upload files with a sum of 16 MB via this API - But I couldn't create a blob version more than this - It just caused my computer to stop working


Mean of the bootstrap sample vs statistic of the sample

Say I have a sample and the bootstrap sample from this sample for a stastitic $\chi$ (e.g. the mean). As we all know, this bootstrap sample estimates the sampling distribution of the estimator of the statistic.  Now, is the mean of this bootstrap sample a better estimate  of the population statistic than the statistic of the original sample? Under what conditions would that be the case?


I'm switching from Windows to Ubuntu and I'm quite a beginner in GNU/Linux in general.  I download many web pages to consult them offline and I want to hide folders related to them.(the folder containing the images, the CSS, the Javascript...)  I know I have to put a period before the folder's name.  But when I want to hide this folder then the elements (images, CSS...) aren't shown because the HTML page point to webpage_files/something.css and no .webpage_files/something.css  I run on Ubuntu 16.10 and my desktop environment is Cinnamon. Some informations about my Packard Bell laptop:  $ uname -a Linux zubuntu 4.8.0-59-generic #64-Ubuntu SMP Thu Jun 29 19:38:34 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux   Thanks.  EDIT: I want files to be hidden in the terminal. I already tried the .hidden file trick and it didn't work.  EDIT 2: Many users marked my question as duplicate. Are you stupid ? Excuse my language but I posted this question one week ago and all you find to do is mark my question as duplicate ? If you read carefully my question you will see that I want my files hidden in the TERMINAL, not in nautilus.


What is the difference between Desktop and Server?

Hi I have been using Ubuntu 8 and Ubuntu 15 for about a month now.  I wanted to know what is the point of getting a server edition.  What does it mean?  Thanks for the answers, Yo and yes there is to an Ubuntu 8, I installed in on my computer. Whatever doesn't matter. AND actually I installed LUbuntu 15 not Ubuntu. The first response to my question wasn't really the point.  I kinda found the answer lower on the page but that just helped me decide if I should use a server addition.  Oye!


How can I teach Siri how to spell my child's name correctly in texts?

When I text my husband something like "I picked up Hailey from school and am on my way," Siri always misspells my daughter's name as Haley (with no "i"). I have an entry in my contact info identifying who my daughter is, but when I'm dictating a text or other message, that appears to be irrelevant.   I'd like to teach Siri that any time I refer to my child's name it should always be spelled a certain way. I feel foolish sending messages with my own child's name misspelled.


Why do tidal forces not violate conservation of energy?

Europa is an example of a satellite which is heated by tidal forces. The orbit is constant, so how is energy conserved on Europa?


What is the term called for writing in present tense even though the text is in past tense?

I read this in a grammar book recently but I can't recall what the specific term (if any) is called for something like:     He was 18 years old.   I don't remember if it is the same example, but the idea is generally similar. The text is written in past tense, so the example above should also be written in past tense. However, since he is currently 18 years old, not formerly 18 years old, the grammar book stated that it should be written as:     He is 18 years old.   Even though the text is written in past tense. Again, the example might be incorrect and my recollection might be a bit off, but the general idea is there.


Fix a nonnegative integer $n$. Let $P(x)$ be a polynomial of degree $n$ (over the real numbers) such that for all $k\in\left\{0,1,\ldots,n\right\}$, we have $P(k)=\dfrac{k}{k+1}$. Find $P(n+1)$.   My attempt:  I consider a new polynomial $Q(x)=(x+1)P(x)-x$. This $Q$ is a polynomial of degree $\leq n+1$ satisfying: $Q(k)=0\quad\forall k\in\{0,1,2,\ldots,n\}$. Therefore $Q(x)=\lambda x(x-1)\cdots(x-n)$ for a certain real $\lambda$. Hence, $Q(-1)=\lambda \cdot (-1)^{n+1}(n+1)!$, but also $Q(-1)=(-1+1)P(-1)+1=1$. Comparing these, we get $\lambda \cdot (-1)^{n+1} (n+1)! = 1$, thus $\lambda=\dfrac{(-1)^{n+1}}{(n+1)!}$. Since $Q(n+1)=\lambda(n+1)!$ then $Q(n+1)=(-1)^{n+1} $, and from $P(x) = \dfrac{Q(x)+x}{x+1}$ we deduce: $$P(n+1)=\dfrac{(-1)^{n+1}+n+1}{n+2}.$$ I doubted that the answer were $P(n+1)=\frac{n+1}{n+2}$ but the term $(-1)^{n+1}$ wasn’t expected. Is there any mistake here? Does someone have an alternative proof?


I'm trying to match a multiline string but won't working

I wont to remove this, I tried this . but didn't work.  powered by    KeystoneJS     const string = `         tabIndex="-1"                         className={css(classes.link)}                     >                         {brand + (appversion ? (' ' + appversion) : '')}                                           powered by                                               KeystoneJS                                           version {version}.                     {this.renderUser()} `;  console.log(string.match(/\spowered(.*)<\/a>/gmi));


If $f : (a,b) \to \mathbb{R}$ is differentiable, then $f$ is continuous: prove using $\epsilon$-$\delta$

Let $f : (a,b) \rightarrow \mathbb{R}$ be differentiable on $(a,b)$.  Prove that $f$ is continuous by showing that  $\forall x_0 \in (a,b) \qquad \forall \epsilon>0 \qquad \exists \delta >0  $ s.t.$ \; \;(x\in (a,b), |x-x_0| < \delta) \implies |f(x)-f(x_0)|<\epsilon$  This is a 6 mark question on a practice Analysis 2 module.  Frustratingly there are no solutions and I'm not sure where to start.  Any help is greatly appreciated.


Challenges of dealing with large disks/partitions

Currently doing research on creating a new file server.  Server will be Linux based (CentOS 7) and will need to have around 8 TB of available space. Samba will be used to share the files.  I am trying to figure out what are the challenges and pitfalls of dealing with disk/partitions of this size. From the stand point of managing servers with disks of this size, what things should be considered?  One thing that comes to mind is that if the system were to start a check disk it would take a significant amount of time to complete. I know that the systems can be configured to skip check disks, but this could end up causing issues down the road.  Performance is another topic, but I believe this is out of the scope of this site as so much is based on the equipment and infrastructure.  Cheers


How to remove Ubuntu bootloader without Windows disk or USB?

I am removing Ubuntu (from the Ubuntu/Windows 10 dual-boot) because something happened to it and it just "broke". I could not reinstall since it did not give me the options to do so when I followed the steps showed online (assuming because it has indeed been broken). So I am just going to remove it entirely and either install it again or install Linux Mint.   I have removed the partition through Windows and I have restored the size of my drives. Now all that is left is the step that removes the Linux bootloader and replaces it with the Windows 10 bootloader. I have no Windows 10 disk and when I try to make a USB version of it, I do not have the required size since selecting the Back up system files to the recovery drive takes 16gb and I only have 8gb.  Side Question: To those who are experts in Linux and Windows, can I untick the box that backs up the system files so that the size becomes 512mb instead of 16gb on my USB or are those system files necessary in order to fix the bootloader?  I cannot afford to buy a 16GB USB drive at the moment being a seriously broke college student with a lot of bills. Is there a way to remove the Ubuntu bootloader without using a disk or USB drive? I have found some stuff on running:   bootsect /nt60 c: /mbr   through the command prompt as ADMIN. I honestly do not know what that command even means. I actually installed the Ubuntu partition on the D drive. I ran that command and also the command replacing 'c' with 'd' and I got"     Will this suffice? If I were to leave the Ubuntu bootloader alone and just learn to live with it and install Mint or another Ubuntu, what can happen?   Edit: Windows did the whole update thing so the computer rebooted and it threw me to a page with grub and errors. So I guess those commands did not work. I will have to buy a DVD or USB.


How to find the name of the current function?

I know it seems lame, but I'd like to have a function get access to its own name for printing error or debugging messages.  It would be easy then to have a standard way to start the printout:  print(__myname__,"is reporting the following..."   I prefer this to having to explicitly type the name each time because I often want to cut and paste such things, and I'd like any name change to be automatic, and thus more robustly correct.  This is similar to  but I want the name of the current function, not the name of its caller.  I note that the special name   __name__   in this spot is reporting the name of the package, not the name of the function.


How can I prove this limit doesn't exist?

Right now, I'm doing a question:   $$\lim_{(x,y)\to(1,0)}\frac{xy-y}{(x-1)^2 +y^2}$$  I know the limit doesn't exist, but I can't figure out how to prove it. I tried putting $x=1$, and getting $0/y^2$, and put $y=0$, got $0/(x^2-2x+1)$, but I don't think that does it.  (edit: this is not a duplicate; I'm having a hard time getting good explanations, hence why I asked)


Are these two ways of including Javascript equivalent?

There are two simple ways to include Javascript in a HTML document.   Way 1 (script tags):    <script> console.log("Hello world") </script>   Way 2 (external file):   <script src="helloworld.js"> </script>   Assuming that helloworld.js contains the single line console.log("Hello world"), are these inclusions exactly equivalent? If not, what is the difference?   If the contents of the script were more complicated, would the answer to this question change?


How can I manually include 'et al' in a biblatex reference?

When I try to use "authorname et al" in the author field of my bibliography.bib, this is interpreted as part of the first author's name, and hence is not presented correctly. How can I use et al in my references list?


tablejoin in qgis 2.x adds name of table to columnheader attributetable

When joining a table to a shapefile through 'layer properties > joins' the columnheader of the attributetable shows the name of the file you joined.  eg.: the name of the table is: STAVAZA3  the table looks like:     after joining with a shapefile, the attributetable looks like:    This didn't happen in qgis 1.8.x.  Predefined legends wouldn't work anymore because of the changed names of the columns.  Is this the standard way how qgis 2.x joins tables?  Or is it due to a property that i have to set anywhere?


I recently replaced the Windows by Ubuntu and I have any files in my Disc. When I had Windows. How Can I Do to access $ sudo fdisk -l to I to recover my disc?


What steps should be taken before/during/after installation of Ubuntu on a Solid State Drive to optimize performance and ensure maximum durability of the drive?


Why are there only $n-1$ principal components for $n$ data if the number of dimensions is $\ge n$?

In PCA, when the number of dimensions $d$ is greater than (or even equal to) the number of samples $N$, why is it that you will have at most $N-1$ non-zero eigenvectors? In other words, the rank of the covariance matrix amongst the $d\ge N$ dimensions is $N-1$.  Example: Your samples are vectorized images, which are of dimension $d = 640\times480 = 307\,200$, but you only have $N=10$ images.


Is there a way to have coloured hyperref hyperlinks in the PDF, but have them print "as if" they were black?

I like having my hyperref hyperlinks a different colour, so it's obvious that they are links. But when I print a copy of the PDF, I don't want the links to be coloured, because you can't click them, so it doesn't matter and it's distracting.  Other than just having a separate "for printing" version of the PDF where I turn off the hyperlinks, is there a way to have the printed version come out without the coloured links?


Strange and unpredictable rounding behaviour in JavaScript

I am writing a web app that is converting SQL data in the form of text (dollar amounts) to numbers, then totalling. However, I've come across only certain values that round very oddly!   I have a JSFiddle to show this (with more values than below) as well as sample code below, using text vars as I would be pulling from SQL data.  JSFiddle     I've done what I've seen recommended here by various people and multiplied values by 100 to work with integers only - hoping to avoid rounding issues. I've tried various combinations of Number() and toFixed etc but can't seem to get a handle on the best way to avoid rounding issues in JS. Most values are fine, but I accidentally came across '129.42' being an issue.  I have no idea what other numbers might also cause problems leaving my app totally unreliable!!  This is very peculiar behaviour!?  HTML:    Example of NASTY rounding in JavaScript:

     JS:  var ary = [ '129.42', '129.45', '125.42', '125.45', '130.42']; var div; for (var x in ary) {   var text = ary[x];   var num = parseInt(Number(text)*100);    div = document.createElement('div');   div.innerHTML = 'Original "text" number: '+text;   document.getElementById('body').appendChild(div);    div = document.createElement('div');   div.innerHTML = 'Multiply by 100 and Converted to Integer: '+num+'

';   document.getElementById('body').appendChild(div);  }   The above results in:  Example of NASTY rounding in JavaScript:   Original "text" number: 129.42 Multiply by 100 and Converted to Integer: 12941  Original "text" number: 129.45 Multiply by 100 and Converted to Integer: 12944  Original "text" number: 125.42 Multiply by 100 and Converted to Integer: 12542  Original "text" number: 125.45 Multiply by 100 and Converted to Integer: 12545  Original "text" number: 130.42 Multiply by 100 and Converted to Integer: 13041


I just moved and I was forced by the wife to place my computer in a certain spot :(. Anyways, I do not have a long enough ethernet cable to my desktop.  However, I did go on amazon and buy what I thought was a decent dual band USB WiFi adapter: Realtek 8811CU Guess what ... needs a driver installed.  According to some google searches, I want to do this: sudo apt install build-essential -y mkdir -p ~/build cd ~/build sudo apt install git git clone https://github.com/brektrou/rtl8821CU.git cd rtl8821CU make sudo make install  I need some help.  How can I accomplish this by downloading the files on windows and transferring them to Ubuntu?  Maybe it is a better idea to hook up a cell phone as a tethered hot spot and then get that driver? Thanks Mike


can i get the list of items between two date like ?   var startDate. var EndDate.   var queryGetDiscussion = "?$Date between(startDate, EndDate) ";   Or using LT and GT.


I'm learning a bit about sound and was wondering:  If the speed of sound is determined by the amount of matter the source is surrounded with, why doesn't it go through a wall?  Example:  Speed of sound in air is 343 m/s but in water, it moves at 1500 m/s because of the increase of matter surrounding it. And since iron has more tightly packed matter, it moves even faster because it's moving the matter to move the vibrations.  If this is true, why doesn't the sound go through walls? Is it because it loses its "strength" for the amount it travels?


I added php file to /var/www/ but not working (not parse PHP code):        <?php  echo "work";  ?>   How to fix it?


What additional revisions can I make in a journal paper after review, beyond those suggested by reviewers?

Suppose that I have submitted a paper to a journal, and I have a list of suggested changes from the referee.    Then, let's say I put the article in the appropriate format and make the suggested changes, but I still want to make some additional changes.    Perhaps I want to be a little more exact with my wording in certain places, or I need to condense/expand some sections, so that my figures are not forced into awkward positions.    Is this acceptable?


Divisibility tests and remainder mod $9,11,99,101,999,1001\,$ (casting out nines and elevens)

Now I have proved the following two problems:      (1) Prove that a number and the sum of its digits have the same remainder upon division by 9.    (2) Given an integer, consider the difference between the sum of the digits in odd positions (counting from the right) and those in even positions. Show that the difference has the same remainder as the number itself when divided by 11.    Then, I need help on the following problem:      Partition the digits of a number into groups of two and three, respectively, starting from the right. Treat these as two- and three-digit numbers, respectively, and proceed similarly as in the two problems above. What divisibility rules arise?    In fact, I did not quite get what this problem asks for and not clear about this process. Could anyone give me some hints on this, please?  Thanks in advance.


There seems to be a mix up with my login account credentials. Whenever I go to a site that wants me to use Stack Exchange to login, that site will not accept my email as a valid login.  I use the one that is represented in my account profile page, but "Get Code Done" for example, does not recognize the email as a Stack Exchange email.


$\sum_{n=1}^{\infty} nx^n$ for $x \neq 1$  It is quite obvious that for $q>1$ the sum will be $\infty$, but how to calculate it for $q<1$?  Also, here is a solution with a derivative, but I want to find one without the use of derivative.  $\sum_{n=1}^{\infty} nx^n = x+2x^2+3x^3+ \ldots=x(1+2x+3x^2+\ldots)=x(x'+(x^2)'+(x^3)'+\ldots)= x(x+x^2+x^3+\ldots)'=x \cdot \frac{1}{{(x-1)}^2}$  But as I said, I would like to find a solution without derivative.


.Net: Running code when assembly is loaded

Is it possible to run some code when an assembly is loaded, without doing anything specific in the loading code? What I am looking for is like a static constructor on a type.  Eg:  Assembly A does not know about Assembly B, but B does know about A. Assembly A needs to know certain things about B if B is loaded. When Assembly B is loaded by the runtime (referenced, or explicit), I want a piece of code (static method or attribute) to be executed that calls a method in Assembly A.  The root cause of this problem is unknown types being encountered when serializing a type in A that contains types from B not known at compile time as interfaces are used.


How to set one Ringtone for Contacts and another for non contacts?

Is there an Android App that can perform one ring for anyone in my Contacts and another ring for anyone not in my Contacts?  I know how to go in and set individual ringtones, but I have 350 contacts.  Actually, all I would need is an App that sets a ringtone for any number that is not in my Contacts list.  If not, would that be difficult to create?


Getting an "Authentication token manipulation" error when trying to change my user password

I am logging in to my Ubuntu Server using my username. Once I am logged in I am typing passwd command. Entering a new password but a second after getting following error messages:  passwd: Authentication token manipulation error passwd: password unchanged   What is wrong here? How can I change my password otherwise if I don't have access to that server physically, i.e. I am connecting remotely with ssh using terminal.


How to mathematically work out the color of the sky?

I was wondering if there is a way to mathematically work out the color of the sky, using the laws of geometric/wave optics.


What is the difference (if any) between 'try and do something' and 'try to do something'? Do they mean the same thing? Are there any different connotations?


Ever since I've defeated the Ender Dragon I've been preparing to go against the Wither Boss. What is the easiest way to defeat him?


Are there any words in the English Language that have three of the same letters together?

I was wondering whether there are any words in English that have three words spelt together like "eee" or "ooo". I'm not talking about abstract and meaningless words like "hmmm" or "zzz", but is there any other such word?


What's the justification for the commenting reputation requirement?

You require a reputation of 50 to leave comments on others' questions/answers; the FAQ simply states this as a fact but does not explain it. I'm a new user and I have identified this as an issue very quickly through my own experiences so far. Looking at other questions seems to also provide justification against this 50 reputation requirement for comments on others' questions/answers.      In my own experience, I've seen a few questions like "how do I do x?" then the same poster has answered with "in the end I did it like this: ..." where their solution was perfectly sensible, but there may be some gotchas to watch for - in this case I want to vote up their answer and/or comment on it to point out the potential gotchas, but I can do neither!  To me all of the above seems justification against this rep requirement to comment, so what is the counter-argument and justification for it?


"Expected value" of Thirteen card game !!

Thirteen cards numbered $1$ to $13$ are shuffled and dealt one at a time.  "Match" occurs on deal $k$ if $k$th card revealed is card number $k$   Let N be the total number of matches that occur in the thirteen cards. Determine $E[N]$  Hi, the above is the problem that I have a trouble with.   My first approach is that probability of first card with number $1$ is $\frac{1}{13}$  and probability of second card with number  $2$ is $\frac{1}{12}$.  It keeps going until last card, so I think $E[N]$ is $\frac{1}{13}+\frac{1}{12}+\frac{1}{11}\cdots+1$   I don't think this is right.   There is a hint saying that "Write $N= 1{A1}+1{A2}+....+1{A13}$, where $A_k$ is the event that a match occurs on deal $k$"  Can anyone help me out?


I need to compare two binary files and get the output in the form:  <fileoffset-hex> <file1-byte-hex> <file2-byte-hex>  for every different byte. So if file1.bin is    00 90 00 11   in binary form and file2.bin is    00 91 00 10   I want to get something like    00000001 90 91   00000003 11 10   Is there a way to do this in Linux? I know about cmp -l but it uses a decimal system for offsets and octal for bytes which I would like to avoid.


"SystemError: E:Syntax error /etc/apt/apt.conf.d/70debconf:4: Extra junk at end of file" causing package manager to break

I have a problem with ubuntu software center. When I try to launch it from the dock the icon blinks and then closes. If I try to launch it from terminal I get this message.  gksarkis@ubuntu:~$ gksudo software-center  (gksudo:2919): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",  (gksudo:2919): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",  (gksudo:2919): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",  (gksudo:2919): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",   File "/usr/bin/software-center", line 44, in <module>     from softwarecenter.utils import ExecutionTime   File "/usr/share/software-center/softwarecenter/utils.py", line 682, in <module>     from softwarecenter.db.pkginfo import get_pkg_info   File "/usr/share/software-center/softwarecenter/db/__init__.py", line 2, in <module>     from debfile import DebFileApplication   File "/usr/share/software-center/softwarecenter/db/debfile.py", line 21, in <module>     from apt import Cache   File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 35, in <module>     apt_pkg.init() SystemError: E:Syntax error /etc/apt/apt.conf.d/70debconf:4: Extra junk at end of file sarkis@ubuntu:~$    Also when I try to install a software from terminal I get this message.  sarkis@ubuntu:~$ sudo apt-get cheese [sudo] password for sarkis:  E: Syntax error /etc/apt/apt.conf.d/70debconf:4: Extra junk at end of file sarkis@ubuntu:~$    What should I do?  Thanks in advance for your help.   *There is a red button at the top bar that displays: An error occurred, please run Package Manager from the right-click menu or apt-get in a terminal to see what's wrong. The error message was 'Unkown Error': '(E: Syntax error /etc/apt/apt.conf.d/70debconf:4: Extra junk at end of file)'


How do change the program automatically started when I insert a CD?

When I insert a CD Rhythmbox automatically starts. How can I disable this and make a different program start when a CD is inserted?  I have looked at System Settings and cannot find any options for altering which program is opened when a CD is inserted.


What is the easiest way to get the value of a string field in a twig template?

I'm using Drupal 8.5.4 and . I have a custom module foo and a custom paragraph type bar defined within. In the template for bar, I use kint to inspect the content of the variable. It turns out it has 17 properties, and none of them are the value of the field. The first 14 of them are in core/lib/Drupal/Core/Field, . The last 3 are 0, #cache, and weight.  Digging into the object, I found the field value in content.bar.0['#context'].value. Obviously using this method to access a simple field value is janky as hell, and I would prefer not to have to do this every time.  Two questions:   Is there a simpler way to access the field value? I don't mind using a twig filter if need be Is there a way to configure my paragraph types to pass the context to the template, rather than all of the field data?


How much does the ranking of your Master's program/school matter when applying to PhD programs?

I'm applying for research-based Masters in Oceanography. So far, I've lined up advisors at University of Massachusetts (an intercampus program), South Florida, Georgia, and New Hampshire.  According to ,they are in top 150 globally for oceanography. Moreover, my current work supervisor says 3/4 are well-known.  I've also been talking to a UCSD prof. He told me he is unsure if he will be taking on students but is more inclined to accept a PhD student (since they'd be with him longer). I would really like to go to UCSD for my PhD.  Will going to a lower ranked MS have a big effect on PhD applications?  What can I do to distinguish myself in PhD application 1.5 or 2 years from now should the MS be low rank?


I would like to use this special character - a 'bullet' '•', but LaTeX won't let me. Does anyone know how to use this in LaTeX?


Prove $a_n$ and $b_n$ have the same limit

Let x,y be positive, constant nambers so:  $a_1=x, b_1=y$ and $a_{n+1}=(a_n+b_n)/2,\; b_{n+1}=\sqrt{a_nb_n}$  Prove that $a_n$ and $b_n$ have the same limit.  From inequality of arithmetic and geometric means, I know that $b_{n+1} \le a_{n+1}$ . I assume from it that $b_n \le a_n$  I can prove that $a_n $ monotonically dicreasing  and $b_n$ is monotonically increasing. But how can I prove that $\lim_{n\to+\infty} (b_n-a_n)=0$? If I prove it I can use Cantor's intersection theorem.  Sorry for inncorrect sintax and language.


Find the time of the file received in a particular directory

I have a directory called /home/mydir/test A file will be sent from some other team which lands in this directory. How to find what is the time the file came to this particular directory? ( I need both time in time stamp format and normal hh:mm:ss format too ) I have to move the files to directory which is here for more than 5 hours. How to fetch  those files?


How many solutions does the equation $n_1 + n_2 + n_3 + n_4 + n_5 = 20$ have in the positive integers if $n_1 < n_2 < n_3 < n_4 < n_5$?

Let $n_1 < n_2 < n_3 < n_4 < n_5$ be positive integers such that $n_1 + n_2 + n_3 + n_4 + n_5 = 20$. Then the number of such distinct arrangements $(n_1, n_2, n_3, n_4, n_5)$ is...... I have no idea how to proceed. Manually, I have done it $$1+2+3+4+10$$ $$1+2+3+5+9$$ $$1+2+3+6+8$$ $$1+2+4+5+8$$ $$1+2+4+6+7$$ $$1+3+4+5+7$$ $$2+3+4+5+6$$ But is there any way I can do it by Permutation and Combination method?


Using cycles, how would I go about making text that is UV mapped onto a surface (in this case a book cover) have a gloss while the remaining part of the image stays matte? The text needs a kind of foil finish with the white being matte paper. Can the mesh be selected with the image, or is there a better way?


Material setings in properties window is missing

I have added a sphere and I was able to add material and give it a color. Now when I add a second sphere (separate object), the material panel is just blank.


I am seeing a problem on my Drupal 7 site relating to image styles.   A bit of background - This site was built by migrating the content and config from a previous site, using the Migrate and Features modules, after the previous site fell victim to Drupalgeddon. The new site seems now to be 99% working. (After fixing a lot of stuff that wasn't properly copied across by Migrate and Features - whether that was due to my inexperience in using these modules, or shortcomings of the modules, I don't know.)  One thing that isn't working is uploading image files into fields of type Image.  The Image gets uploaded successfully and is accessible from /sites/default/files/. But no files are being created in any of the subfolders below /sites/default/files/styles. So the thumbnails don't display.  I've tried a lot of the advice I've found while Googling - the UNIX file permissions seem to be OK, the Drupal permissions seem to be correct, I can't seen anything wrong in the .htaccess files, but perhaps someone out there can give me better guidance on what to look for here.


what is torii command? and wat does it do?

When typing in torii in terminal returns  Usage: torii db_file.g  what is the use of this command? I have tried googling


My problem is very similar to  . But adding necessary user(Site owner) to Debug Logs doesn't help me. I don't see any logs at all. But webservice works well.


I read the  and  on this topic, and the rules there do not seem correct.  I  an answer as a comment, and the owner thanked me without citing @Alex, and I got his comment as a notification.  I then replied, and he replied (without citing me again), and I got his comment again.  What are the full rules of who gets notified on comments?  I would like to avoid writing @Username whenever they would get my comment anyways.


I have a basic JUnit test which I want to run only on Linux. How I can skip the test if I build the code on Windows?  For example can I get the OS platform from Java?


12.10: unable to upgrade/install softwares

i have changed new release with old release in order to update also unchecked ppa. please help me out.im getting a getting a error message: W: Failed to fetch   Unable to connect to in.old-releases.ubuntu.com:http:  and so on......


What's a simple (Scala only) way to read in and then write out a small .csv file passing through a List[List[String]]?

I have just received a bunch of messy data files in CSV (Comma Separated Value) format. I need to do some normal clean up, validation and filtering work on the data set. I will be doing the clean up in Scala (2.11.7).    In my search to find a solution for both directions, input parsing and output composing, mostly I found lots of , including one from the "", on the input parsing side. And most of those focused on the terribly erroneous solution "use String.split(",")" to get a CSV line back as a List[String]. And I found almost nothing on the composing output side.    What kind of nice simple Scala code snippets exist which can easily do the above described CSV round trip?  I'd like to avoid importing an entire library just to pick up these two functions (and using a Java library is not an acceptable option for my business requirements at this time).


Let $a > 0$ and let $k \in \mathbb{N}$. Evaluate the limit

Let $a > 0$ and let $k \in \mathbb{N}$. Evaluate: $$\lim_{n\to \infty}a^{-nk}\prod ^k_{j=1}\left(a+\frac{j}{n}\right)^n$$  Clueless on this problem. Seek your help.


$A, B, C$ $IID$ $geometric(p);$ $E[\frac{A - 2B + C}{A}]$

I know how to do all the steps but I am stuck when calculating $E[\frac{1}{A}]$. Any properties of the geometric distribution (i.e apart from solving using the pmf) to solve this?  And for people who are perplexed by the title and less by the problem:   𝐴,𝐵,𝐶 A , B , C   are random variables that follow the geometric distribution with parameter 𝑝 p . They are all Independent and Identically Distributed (i.e 𝐼𝐼𝐷 I I D ). Based on the given information, solve for $E[\frac{A - 2B + C}{A}]$


Origin of "man!", "(oh) boy!", and "oh brother"

Where did these interjections:   man! (oh) boy!  oh brother   come from, and why are they all male?  If you don’t know their current meanings as interjections, it sounds very strange to say Man! when you are disappointed or frustrated, and Oh boy! when you are excited (although people are increasingly using it for other emotional contexts), and Oh brother (well, I'm not even sure of this interjection’s usage).  Why are they used as interjections, and why are they all male?


Showing the unit ball in $l^{\infty}$ is not compact.

If $l^{\infty}$ is the set of bounded sequences of real numbers with norm $||x||_{\infty}$.  To do this I have tried to use the fact that a metric space is compact iff it is sequentially compact. So now I am trying to find a sequence with no convergent subsequence, perhaps by choosing it so that $||x_m-x_n|| > 1/2$ (so that it is not cauchy), however I am struggling to see what is actually going on and how to pick a sequence with this property.  Thanks


Gravitational Force between two finite rigid bodies

According to my :  "The force between two finite rigid bodies is not necessarily along the line joining their centre of mass".    If the Gravitational Force is Central then why it will not act between two finite bodies along their Centre of mass?  Please elaborate that highlighted text with some simple example.


I saw him kick the stone.   According to my reference book this sentence is grammatically correct even though the verb 'kick' is in present tense while the action has already happened.  If I write like this:     I saw him kicked the stone.   Is this sentence still grammatically correct? Or we must use kick in present tense since the verb saw already clarifies that this is a past action? Or are both right?


Does the file name of my XML sitemap matter? An SEO tool complains when it is not in the default location

I have added a Yoast sitemap which has the default URL example.com/sitemap_index.xml/  I use rtye to monitor different aspects of SEO which Yoast referred me to. This tells me that a critical error is not having a sitemap url of example.com/sitemap.xml so does not appear to recognise the URL of its referral partners sitemap.  I was wondering in the sitemap URL has any impact? I have submitted it to Google and Bing and both are aware of the URL and have indexed the subsequent URLs.  Also I have downloaded a different sitemap plugin which gives me the /sitemap.xml URL. Google gives the option to add additional sitemaps. would there be any benefit/disadvantage to using both sitemaps? both sitemaps essentially contain the same information  The new one appears, from what I can gather to be the better plugin. If it is recommended to use only one sitemap, would it cause issues with my rankings etc. to delete the old one and replace with the new one?


Epimorphism and Monomorphism = Isomorphism?

It seems to be that if a map is both an epimorphism and a monomorphism, it is not necessarily the case that it is an isomorphism.  However, in the category of sets, if a map is both an epimorphism and a monomorphism it is an isomorphism.  Are these accurate statements?


$$0<u_1<u_2 \text{ and } u_{n+2} =\sqrt{u_{n+1}. u_n}$$ Show that the limit of this sequence is ${(u_1.u_2^2)}^{1/3}$.  My attempt: By computing individual terms I see that every term can be written in terms of $u_1$and $u_2$. Also this sequence is monotonic increasing and it also has an upper bound by the AM GM inequality. But it doesnot seem to get me anywhere. Please help.


Is it possible to flash a custom ROM without a custom recovery image

For an un-rooted device, almost all articles/forum posts I've read say that in order to flash a custom ROM you first need to flash (or boot) a custom recovery image like TWRP.   I'm not sure I understand why. If the bootloader is unlocked shouldn't it be possible to manually flash images that make up the custom ROM to the required partitions with fastboot flash <partition> [ <xxxx.img> ], and leave the stock recovery untouched.  I realize that this may be difficult and that there is no benefit in doing it this way, but I'm curious to know whether or not it is possible, and if not, why?


Do Moderators of community make money or get paid?

Do Moderators of the community make any money or get paid from SE.  Just wanted to know what is the motivation factors that drive them to work as a moderator ?


If $A$, $B$ are both pairwise independent of $C$, do we have that $A \cap B$ is also independent of $C$?


Alternatives to logistic regression when data is unbalanced

Using Python's pandas, sklearn, and stats models API, I have trained a logistic regression on a training dataset that tells me whether or not a particular purchase (based on gender, and other features) was fraudulent. I held out a test set, and under a logistic regression all datapoints are predicted to be within %20 percent of unfraudulent (where fraudulent =0, unfradulent =1). In other words, arbitrarily setting a decision boundary to be 50%, all test points are predicted to be unfraudelent. This is because many many more data points are unfraudulent in the training set than fraudulent.  I am new to statistics, and would like to improve my model. What's the next step?


Notation: Why write the differential first?

From reading answers here, I've noticed that some people write integrals as $\int dx \; f(x)$, while other people write them as $\int f(x)\;dx$.  I realize that there is no mathematical difference between the two notation forms, but was wondering why some people choose the first method over the second.  Is there some place in higher maths that it becomes beneficial to write the differential first?  (I, personally, have always used the second method, just because I was taught that way...)


In American football, it seems that some people would say:     He caught a pass.   To my knowledge, a "pass" is an action.  So, the sentence would translate to:     He caught an action.     Is my analysis wrong?


Sometimes you want to have the output in a special file. So you can do something like this:  ls > test.txt   But sometimes I want to have the output also on my command line, for example when the program takes additional input and you want to see what the program wants you to input.   How this can be done?


How do I configure my DNS settings in Ubuntu server?

According to  it appears to be simple. However, /etc/bind does not exist on the default installation of Ubuntu 12.04.3 LTS server.  So, without installing any further software, how can configure DNS and remove dnsmasq on ubuntu server? I am quite familiar with sudo & nano.


Can the time direction of wave function collapse be reversed?

The laws of physics are invariant under  transformations , inverting space and flipping charges. Almost so. The  of the wave function is the odd man out. Can the time direction of the collapse of the wave function be reversed so that the collapse happened in the past?  The collapse presupposed the Schroedinger picture. Can a collapse occur in the Heisenberg picture, with the projection operator $P$ replaced with $UPU^{1}$?


Do we use "my" or possessive pronouns in such sentences?

"What the hell?!" He said with surprise when he noticed my coming up the water.   Do we use my or possessive pronouns in such sentences? Or should it be     … he noticed me coming up the water"?


nginx: resolver does not refresh after dns update

We've had an issue today with the nginx resolver in an AWS environment. According to the nginx log files, nginx did not resolve to the right servers, after the DNS record changes.  The DNS originally resolved:  webservers.ourservers.local A 10.0.0.5 webservers.ourservers.local A 10.0.1.8   ... but as soon as one of these IP addresses changed, nginx did not get the change - and continuously tried to reach the outdated ip address - far longer than the 60 seconds ttl.  According to nginx.org/en/docs/http/ngx_http_core_module.html#resolver, the nginx resolver caches answers for the ttl only - or, in our case, for the configured time.  My colleagues moved the resolver line from the location block to the server block, - but it did not help. We need to restart nginx in order to force it to resolve to the new ip.  Nginx configuration:  http {     include       /etc/nginx/mime.types;     default_type  application/octet-stream;      log_format  main  '$scheme - $http_x_client_ip - $remote_addr - $remote_user [$time_local] "$request" '                       '$status $body_bytes_sent "$http_referer" '                       '"$http_user_agent" "$http_x_forwarded_for"';      access_log  /var/log/nginx/access.log  main;     error_log   /var/log/nginx/error.log;      server {         listen 8080 default;          set $OUR_ROOT /var/www/pub;          location /health_check.html {             root $OUR_ROOT;             auth_basic off;             allow all;         }          location / {             # Work around to flush Nginx: http://nginx.org/en/docs/http/ngx_http_core_module.html#resolver             # https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.html#AmazonDNS             # This is will be your VPC's IPv4 CIDR value + 2             # You can find this value in /etc/resolv.conf on the EC2 instance             resolver 10.0.0.2 valid=15s;              proxy_pass http://webservers.ourservers.local; # Will be resolved by Route 53             proxy_set_header X-Real-IP  $remote_addr;             proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;             proxy_set_header X-Forwarded-Proto https;             proxy_set_header X-Forwarded-Proto-New https;             proxy_set_header X-Forwarded-Port 443;             proxy_set_header Host $host;             proxy_redirect     off;         }     }      #include custom config     include /etc/nginx/conf.d/*.conf; }   We use nginx version 1.13.7.  What did we do wrong? How can we make nginx re-fetch the dns records?    Update/Clarification:  10.0.0.2 is the AWS internal nameserver for VPCs:  . It does resolve correctly when checked via dig, even when nginx does not resolve correctly at the same time: We have tested these cases with   dig webservers.ourservers.local @10.0.0.2


I have a custom object Address. Here in Line 1 (text) there Spanish characters are enterred. How to achieve a translator by a custom setting or any other way for data in salesforce? Can someone please help me here?


Is it possible to have a equation system that forms a matrix 3x3, having 2 solutions?

Can a matrix 3x3 have 2 solutions? Can it be determined somehow without solving it? For other type of matrix, how do you determine the number of solutions without solving it?  Thanks!


Please suggest some books or some courses I can take online. Given that I know nothing about typography or design.


In a class there are 100 student. We define $A_i$  as the number of friends of $ i^{th}$ student and $C_i$ as the number of students who has at least $i$ friends.  Prove that: $\sum_1^{100} A_i = \sum_0^{99} C_i$


Hello!   I've recently started learning Blender and faced one problem.  After applying subdivision surface modifier I have plenty of extra faces. I've watched some teaching videos and I suppose additional faces shouldn't be added. Is it OK ? How to avoid this problem if it isn't.


Is there any Open Source alternative to e-paper CMS?

I'm looking for an open source CMS such as        Similar  has already been asked but its still without a proper answer.


how to format a float like 0#.## in java?

I get an input from the user. I want to print it in this format:  0#.##   or  ##.##   how do I do this in java?  Today I'm using:  padWithZeroRightToPeriod(product.formats[index],Float.parseFloat(currentPrice));   and  private String padWithZeroRightToPeriod(String serverFormat, float unformattedNumber) {   int nDigits = getNumberOfDigitsAfterPeriod(serverFormat);   String floatingFormat = "%4." + nDigits + "f";   String formattedPrice = String.format(floatingFormat, unformattedNumber);    return formattedPrice }   but it converts 08.56 to 8.56.


Evaluating $ \lim_{x \rightarrow 0}\left (\frac{\sin(x)}{x}\right)^\frac{1}{x^2}$

I have got this problem on limits  $$ \lim_{x \rightarrow 0}\left(\frac{\sin(x)}{x}\right)^\frac{1}{x^2}$$ What I am doing here is that taking log and then applying L-Hospital's Rule $$y= \lim_{x \rightarrow 0}\left(\frac{\sin(x)}{x}\right)^\frac{1}{x^2} $$ then $$\ln(y)=\lim_{x \rightarrow 0} \frac{1}{x^2}\ln\left(\frac{\sin(x)}{x}\right)$$ now it becomes $\frac{0}{0}$ type , but problem is how to take derivative here? when differentiating $\ln\left(\frac{\sin(x)}{x}\right)$ it will become $\frac{x}{\sin(x)}$ then we'll have to differentiate one more time like we do in case of $f(f(x))$ ? $\sin(x)$ and $x$ will be separately differentiated or together ?


correct usage of the single quotation mark?

So I was reading a book one day and I saw this. He gave her the 'Shut up look'  is that correct? And, if so why? btw it was not in bold in the book.


How to add a new text line at the first line of a file?

File:  TABLE1  1234  9555     87676   2344   Expected output:  Description of the following table: TABLE1  1234 9555 87676 2344


I would like to ask you about the correct behaviour when applying at different universities for different PhD positions. Currently, I won two PhD positions and a second shortlist for a third one. The third one is the one I really want, but the interview will be held on campus and due to coronavirus pandemic it has been postponed after the mid of August. I have strong academic and personal reasons to go for the third one, but of course I am not sure that I will win it. Now I have to decide between the two I already have. I would feel guilty to tell yes to one of them and later on withdraw the offer. What is the acceptable time to change your mind? Should someone follow his personal motivations or be ethical? Thank you, Joy.


Sometimes for testing purpose we need to delete a lot of nodes of a given content type, in this case the use of the web interface (YOUR_SITE/admin/content) is not the best option.   How to delete all nodes of a given content type programmatically?


Storage shows that System takes about 12 Gb of storage.  Anyone else have System taking up 12 GB after installing, and know how to fix it?  Edit: storage taken up by system keeps rising. Reaching 13 GB.       iPhone SE.   Restart didn't help.


Form with multiple submit buttons or multiple forms

I have a list of articles and I put a submit button to all of them.  The fact is I can't get the good input hidden when I'm in my controller because it will take the last input.  <form method="POST" action="{{url('/deleteArticle')}}"> @foreach($articles as $a)         {{ csrf_field() }}

<?= $a['name_a'] ?>
         <input type="hidden" name="id" id="ida" value='<?= $a['id_a'] ?>'/>         <input type="submit" class="del" id="delA" class="cross" name="id">X</input>
 @endforeach </form>   Instead of doing the trick with javascript, I thought about looping my articles and foreach of them having a form.  Is it a bad practice or should I have a single form with one submit button by article? The value of this submit button can't be "X" but only the ID of my article I want to delete, and this is bad for the display.


How to add new user in ubuntu core in sudoer file?

I'm having issue adding a new user to ubuntu core.  I use   sudo adduser --extrausers USERNAME   and successfully created a user but I cannot run any sudo command using that account.  $ sudo mkdir [sudo] password for switchadmin: switchadmin is not in the sudoers file. This incident will be reported.


Can I recover my Windows product key from Ubuntu?

I am struggling right now with using ubuntu and would like some help.  So right now i'm running ubuntu from a USB flash drive after Windows 7 somehow left.   How can I get my windows product key which is somewhere on my laptop hard drive, from within Ubuntu?


Why won't my follower, Serana, follow me?

I told my follower (Serana) to wait. But this is different. I told her to go somewhere and wait so it will activate the enemies. Well it did and I killed them. But Serana seems to be not following me anymore. I can't tell her to follow me. And she is constantly in a squatting position. The only thing I can do is tell her to wait somewhere else to move her. And I can't part ways because I'm doing a main quest and she has to be there. Can anybody give me a tip on what to do?


A thought experiment to prove that Newtonian gravity is incomplete

A particle is at rest in one frame having mass $m$. It'll attract another mass proportional to its mass ( newtons law) . We jump into another frame moving close to speed of light. In this frame it's mass will be very very large. It'll attract another mass proportional to its mass,which is larger than in the first frame. So in the two frames  the forces will be different, Which can't be. Hence we can say that the Newtonian gravity is incomplete. Is this reasoning correct?


Possible international or US phone number with blanks possible

I am writing regex for a javascript application (Qualtrics) and can't figure out how to create regex for a phone number field that may or may not be international and may be blank.  So the requirements are possible "+","0-9","-",".",""  If I can figure it out, I'd also like to create flexibility for spaces before and after the entry.


Share question to Social Media option or button is much needed

First of all kudos to app development team for developing very clean and smooth App. I Liked the app.   I have noticed there is still no button or option to share a question on social media. That integration would be nice.   Update 1:   There is a share button when you click on 3 dots on right. I would suggest using UIActivitiViewController at first only when clicked on that 3 dots button. Would be intuitive I suppose.


What is proper time for drinking water with meal?

I've gone through many articles on Google.  One says it's good to drink water after meal as it aids digestion while others say never drink water after a meal because it will dilute the acids (i.e. HCl).  I am a teenager and want to gain weight. Is it beneficial to drink water immediately after a meal (as I usually do)?   What is actually going on there?


NullPointerException when adding a 2D array of JLabels to a pannel

I'm getting a NullPointer exception when I try to add an array of JLabels to my panel.   the error happens in the last line of the inner loop   Panel panneauScore; Panel panneaujouonsAuGolf; Label [][] arrayscore = new Label [4][9];  for (int c = 0; c<arrayscore.length; c++){         for (int p = 0; p<arrayscore[c].length; p++){             score1 = Choisirrandom();             nombre[c][p] = score1;              arrayscore[c][p]= new Label(String.valueOf(nombre[c][p]));             panneauScore.add(arrayscore[c][p]);         }     }


How do I fix a left crank that has come off of my Pro Form 4.0 RT Stationary Bike?

The left crank has come off of my Pro Form 4.0 RT Stationary Bike. It is about 8-10 years old although up until this year, I would estimate I put only 200-300 km in total on it. This year I have put 800 km on and most of that in the past 6 weeks. I normally ride at a resistance setting of 12 and in recent weeks, I was really pushing my self to pedal harder to get my speed up. Prior to the crank coming off I noticed a repeating clicking (more of a repeating thud and I could feel it when I pedalled). This was only on the left hand side. The right is smooth as silk. To be clear, the problem is where the crank connects to the bike (the pedal connection to the crank is fine) I eventually tried to see what was wrong and after a lot of attempts tried to tighten the crank with a hexagon ratchet screw driver. The first time, I simply tightened it and I thought everything was good. But very quickly, it got loose and the screw came right out. I put it back in and tightened again and then the same problem occurred again. When I look at the bolt it does seem ok but the Crank end that is held in (where it connects) does seem to have some rounding to it on one of the corners and there are some medal shavings on the floor (though not a alot). So I am looking for advice on how I could fix this. I would note that I am not mechanically inclined and normally just take these things into the shop. However, in this case, it would be very difficult to get the stationary bike out of the house and I worry if I dismantle it, I won't be able to get it back together. Plain language would be helpful to me as I did not even know the part was called a crank until I starting looking for help. All help is much appreciated.


Adding Custom Menu "Run Script" Button Causes Duplicate

Is there a way to use the Blender Text Editor for adding a custom menu and not get a duplicate every time I click on "Run Script" to test the menu? For example, in the text editor, load the template like so:  Template -> Python -> UI Menu  Then notice every time you press "Run Script" you get another menu in your main menu bar. How can I update my menu without getting a duplicate?  I tried simply commenting out register() but then new updates don't show up.


Silmarillion & Book of Lost Tales, which should I read first?

Several years back I read The Hobbit and Lord of the Rings.  I recently discovered (when going through some old boxes I hadn't unpacked after moving house) that I've got a few additional books which I've never read, mainly The Silmarillion and The Book of Lost Tales Pt. 1 + 2.  Is there any order to these? Which should I read first? Or doesn't it matter?


I am trying to download and run , I have downloaded Yed-3.14.3_64bit_setup.sh, but I am lost on what to do next.


All Objects suddenly invisible in 3D Viewer

I was editing my model in edit mode when suddenly everything disappeared.  Things I tried:   Alt + H in case I accidentally hid anything, no effect Creating a new object, e.g. a cube, also invisible Restarting Blender, no effect Opening another scene, everything works fine Opening the faulty scene on another PC, same error (clean Blender installation) Switching to rendered view, here the objects are visible   I also noticed that if you look closely you can see a faint line along the X-axis where the objects are visible. If I move my objects around, I can notice that this line displays every object as normal where the object is intersecting it (it's hard to describe). This can be seen in the screenshot:    Is there any way I can recover my scene?


Can a free particle absorb/emit photons?

As simple as in the title.. I would like to know also some mathematics about it!


Prime Order $\Rightarrow$ Cyclic $\Rightarrow$ Abelian

Is this correct?  If a group has prime order $p$, then it is cyclic since it all nonidentity elements have order $p$ by Cauchy's theorem.  If it is cyclic, then it is abelian since every element is a power of the generator.  Thus, every group of prime order is abelian.


Can I Set A Voltage Output On The D+/D- Lines Of USB Communication

I asked a similar question on a different website, DreamInCode, for assistance programming on an Android. I've also come on to this site for a different question but I can see that the folk that use this forum may also have a different set of expertise that may be able to assist me [specifically the USB tag]  Here's the link to the alternate question, but I'll rephrase it for additional clarity below:   I'm using a SAMSUNG Galaxy S7 (although I don't believe the phone itself should matter, suffice to assume it's a modern android) and I've built my own modified USB OTG(OnTheGo) cable so that the phone can deliver power to an external device. For example, let's say I'm powering an LED in some external circuitry (I'm an electrical engineer). What I am trying to do is use the phone to enable/disable the external device(LED), preferably via an app on the phone. For my purposes, the circuitry must be enabled or disabled via user input on the phone.  I've tried googling how USB Serial communication works, and I have learned that the D+/D- wires are often pulled to specific voltage levels for certain chargers. Compatible phones will recognise these specific voltage levels and negotiate to receive higher voltage or current than normal to enable fast charging. What I haven't been able to determine if you can set the D+/D- wires as an output from the phone to certain voltage levels (e.g. digital HIGH or LOW), and use them as a DC control signal to connected to an electrical switch.  It is also important to me that this occurs through Serial communication; not wirelessly, bluetooth or via the audio jack, but I haven't been able to determine if I can set the phone to deliver a DC voltage from the D+/D- wires continuously (for a few seconds) to enable the device whilst it performs a measurement. The device itself will be powered by the USB OTG from the phone (5V) and draws very low current (milliamps).  If anyone could please help and identify a way to set a DC output on either of the D+/D- USB communication wires (or confirm if this is possible), I would greatly appreciate it :)   Sadly I do not understand enough about USB communication and all my research has returned is the protocol and sequence of various USB packets, not how the communication actually operates or if I can manipulate the D+/D- wires into a DC voltage source (low current is fine). I also believe the maximum voltage of the D+/D- wires is TTL Voltage (3.3V), commonly interpreted as a HIGH at 2.8V.  EDIT: If it were possible, the DC output on the D-/D+ wire would not drive any significant load, it would be used as a control signal to place an electrical switch (BJT,MOSFET) into saturation. Typically the base current of a BJT or gate current of a MOSFET is micro-amps.  Edit2: There is a much better explanation on  , by DrFriedParts. Ali Chen also comments on DrFriedParts that sending a stream of uninterrupted 1s may be possible, using a test mode.


Let $F$ be a field. Why is $\frac{F[x]}{(x-1)}\oplus \frac{F[x]}{(x-1)}$ not isomorphic to $\frac{F[x]}{(x-1)^2}$ as $F[x]$-modules?  My initial thought was to say the direct sum is generated by 2 elements but the other one is generated by 1. Is there any truth to this line of thinking?


How do I prevent players from destroying my house?

I just build a house and want to prevent players from destroying it. Spawn protection won't work cause it is away from spawn.


Blender spotlight strength in millions before visible?

I am trying to make a spotlight illuminate a scene. I have removed the linked background so that there is no ambient light but the following render depicts this spotlight at about a strength of 4.5 million. Any ideas of how it got like this and how to get it to a normal range?


How to determine the position of a planet in our solar system?

I am trying to modelize our galaxy with a simple program.   I know how to find the period speed and acceleration of a satellite but I don't know how to get the angle and the current distance between the satelite and the object it is orbiting.


Why my object appears to be broken in 3d View?

I installed a new GPU, since then my mesh or object appears to be broken:  What's causing this? BTW: I already tried installing older version of Blender.


When Thranduil mentions his knowledge of the 'fire drakes of the North' is he talking about a battle with Glaurung or Ancalagon?

In the movie , the band are captured by  and taken to   in .   Thranduil confronts  and says, "I too have battled the  of the North." In this scene we temporarily see Thranduil's face .   My question is: Is Thranduil referring to a specific battle with a specific Dragon mentioned in the LoTR, Silmarillion or other letters? Is it  or ?


How to justify the usage of "Radial Basis Function" as a kernel for SVM

I ran SVM with several kernels on my data. RBS has the best performing results. The task is similar to the text classification. I wonder how I can explain why RBS is actually the best kernel for my task. I can simplify the task a bit, and compare RBS with only linear. I user libsvm to train and test.


Continuity of analytic function implies convergence of power series?

Suppose that $f(z)$ is analytic in the unit disk $\Delta:\,|z|<1$. Then $f(z)$ has a Taylor series $\sum=\sum a_nz^n$ in the unit disk. One may assume that $\sum$ has $R=1$ as its radius of convergence for convenience.  Question 1 (local version):  If $f(z)$   is continous at some point, say $z=1$, on the unit circle $S^1$, then its Taylor series $\sum$  is  covergent at $z=1$?   Question 2 (global version):  Suppose that  $f(z)$   is continous on the closed unit disk $\overline\Delta$.  Is the  Taylor series $\sum$ covergent at every poin of $S^1$?   Of course, if the answer to the local version is "yes", then so is the answer to the global version.  EDIT. It seems that  Question 1 obviously has a negative answer. So I modify it into a new question.  Question 3 (New local version):  Suppose that  $f(z)$   is continous at some point, say $z=1$, on the unit circle $S^1$ and the coefficients of $\sum$ satisfies $a_n\to 0$.  Is the Taylor series $\sum$  covergent at $z=1$?   Note. If $f$ is analytic at $z=1$, then the answer to Question 3 is yes. This is Fatou's Theorem.


NAT mode virtual machines shows same IP address

I have two virtual machine running on a virtual box.   VM 1 and  VM 2  The network is in the NAT mode (default).  Both the machines have the same IP address.So I assume that they are in two different networks.  My requirement is that I should be able to communicate from  VM 1 to VM 2 using IP. i.e  I would like to ping from VM 1 to VM 2 and back.  For this I would prefer if they were a part of the same network.Is there some routing functionality implemented in Virtual Box?  How do I created and internal network with two VM's that can talk to each other using IP.