Refreshing a question doesn't update the answer count properly

In the Stack Exchange Android App v1.0.7 1.0.33 (with a HTC One running Android 4.4.2), the answer count for a question you're viewing is displayed in two places:   In the label of the answer tab:   At the bottom of the question tab:    I've noticed that these counts don't reliably update when new answers arrive.   If you refresh the question tab, neither count updates. If you refresh the answer tab, the second count will be updated, but the answer tab's count will not, leaving the two out of sync.   Refreshing either tab should probably update both counts!    Screenshots of the bug in action:    I waited for it to be answered. A while later, the question now has an answer.    The tab still says 0 answers though. Switching back to the question tab, , but the tab count still doesn't.


It has been shown that every open set in ℝ is the union of disjoint open intervals. Is this true for $ℝ^n$ in general?

It has been shown that every open set in $\mathbb R$ is the union of disjoint open intervals. Is this true for $\mathbb R^n$ in general?  It seems to me that it is not, but I cannot think of an example.


$\prod_i (1-p_i)=0$ implies $\sum_i p_i=\infty$?

Apparently for $p_i\in [0,1)$, it's true that $\prod_i (1-p_i)=0 \Leftrightarrow \sum_i p_i=\infty$.  How can I prove this using Borel-Cantelli? I've said that $p_i = P(X_i=1)$ for some sequence $X_i$ where $X_i$'s are all $0-1$ valued. If $\sum_i p_i=\infty$, then $X_i=1$ infinitely often, so it's impossible for $X_i=0$ for all $i$. Thus $\prod_i (1-p_i)=0.$  But how do I prove the reverse step?


I have a simple CSV of {lat,lon,text} and I want to export it as a WGS84 Shapefile.   How can I achieve this?


I have installed both exfat-fuse and exfat-utils.  However, when I go to gparted, and attempt to format a partition as exFAT, the exfat option is greyed out when attempting to create or format a partition.      Why is this so?  How can I use gparted to create an exfat partition?


how can I specify a popup to show only for a specific layer in openLayers 3?

I am using the function to define popup contents in a map, and right now, it createa a popup for every feature I click on the map, no matter what layer it is in. I would like this popup to appear only for features within one layer. I'm sure there is a way I can specify this in the function, but I'm not sure how. I tried using this for line 6 if (feature && layer === layerVector) { but it gave me an error saying that layer is undefined. layerVector is the variable name for the layer I want to use the popup for. Can anyone help? Here is the code:  map.on('click', function(evt) {   var feature = map.forEachFeatureAtPixel(evt.pixel,       function(feature, layer) {         return feature;       });   if (feature) {     popup.setPosition(evt.coordinate);       content.innerHTML = '<b>Parcel No: </b>'+       feature.get('parcel')+'<br>'+       '<b>Owner: </b>'+       feature.get('primowner')   }  });


How can I create rounded corners using CSS?


How do I create this soft and bright effect?

This is my favorite look for photos, and I've been trying to achieve this for some recent family vacation photographs. What is the process?  Here are some links to some examples:


Why do I get `Undefined index: Variable_Name` when using ajax?

I'm confused, why do I get Undefined index: file_upload_name when using ajax to submit the form?  I've just made a test and this is the php server.  <?php    echo count($_FILES['file_upload_name']['name']); ?>   this is the form, I want to have an anchor button to submit the form instead of the regular button.  <form method="post" id="the-form" action="upload.php" enctype="multipart/form-data">     <input type="file" name="file_upload_name[]" multiple>     Submit </form>   this is the jquery, where I used ajax to manually submit the form on anchor click.  $( document ).ready( function () {     $( '#btn-submit' ).on( 'click', function ( e ) {         e.preventDefault();         $.ajax( {             url: 'upload.php',              dataType: 'text',              cache: false,             contentType: false,             processData: false,             data: $( '#the-form' ).serialize(),             type: 'post',             error: function ( jqXHR, textStatus, errorThrown ) {                 console.log( "OOPS!: " + errorThrown );             },             success: function ( data ) {                 console.log( 'Submit success, server says: ' + data );             }         } );     } ); });   here is the error thrown by the server     Successfully upload the file:    Notice:  Undefined index: file_upload_name in D:\xampp\htdocs\sampleupload\upload.php on line 2      Warning:  count(): Parameter must be an array or an object that implements Countable in D:\xampp\htdocs\sampleupload\upload.php on line 2   0   This only happen when using ajax and not when I have a regular button to submit the form. I've missed something but I couldn't figure what it is. I'm totally confused right now.   UPDATE Just to make it clear, I'm not asking on how to do this or how to do it right now . I'm confused on why the server returns undefined index of variable and I want to understand it. Clearly, this wont happened if I used FormData(), but since I used serialize() I'm expecting the server will not say undefined index of variable.


Customise installation of Microsoft Office 2019

When I ran Setup.exe on the Microsoft Office 2019 DVD, it automatically installed all the components with any user interaction - not even a single confirmation dialog.  How can I only install the components / programs that I wish to use?  Running E:\Setup.exe /? is useless.  I feel my computer is being force-infected with Microsoft's entire office ecosystem.  Is there a way of doing this without downloading another tool?


The bar at the very bottom of the screen has gone away?

The bar at the very bottom of the screen went away while I was trying to make an intro, its the one with all the frames and options of view, marker, frame, playback, start, end, and the play button. Please help me, how do I get it back!?


Problems connecting differential ADC to SPI chain

I need to connect 3 devices with SPI in a daisy chain configuration.1 master 2 slaves. the first slave is typically connected to the master: SCK-SCK MOSI-MOSI CS-CS The second slave on chain have no MOSI input, only SCK,MISO and CS. I can connect this slave device to the master (MISO) but I interrupt the chain beetween the two slaves.  The three device are: - Master: ATmega32 (MCU)  - Slave 1: MCP23S17 (differential ADC)  - Slave 2: LTC1285 (3V 12-bit A/D Converter)   Is it possible to connect theese 3 devices in a daisy chain configuration? Thanks for your help!


Windows 7 ( 32 bit ) what is the max RAM I can increase to?

I'm using Dell laptop with Windows 7 ( 32 bit ) with 2 GB RAM where memory usage is always high. Please suggest if I increase RAM to make laptop work faster and how much max RAM I can increase to ? Configuration  High Memory Usage  Note: As per youtube videos, I have tried most of things to reduce max memory usage but it didn't help and I've kaspersky antivirus running as well.


In boosting, if the base learner is a linear model, does the final model is just a simple linear model?

I am confused when I read the boosting papers.   In boosting our model is a sum of base learners:  $$ f(x)=\sum_{m=1}^M b_m(x) $$  where $M$ is number of iterations in boosting, $b_m$ is the model for $m^{th}$ iteration.  Now, here is my question: can the base learner be linear? If the base learner is linear, does the whole model reduced into a simpler linear model?  For example, suppose we just run $2$ iterations, and  $b_1=\beta_0+ \beta_1x$ and $b_2=\theta_0+ \theta_1x$, then   $$ f(x)=\sum_{m=1}^2 b_m(x)=\beta_0+ \beta_1x+\theta_0+ \theta_1x=(\beta_0+\theta_0)+ (\beta_1+ \theta_1)x $$  which is a simple linear model ! In other words, the ensemble model have the "same power" with the base learner!  What's wrong there? Or nothing wrong, we just do not want to select linear model as a base learner?


Looking for capacitance and voltage rating - How to read electrolytic SMD capacitor labels

I need to replace an SMD capacitor on a board. The printing on it says  F1 560 2.5z  I have googled intensely but have been unable to find information on how to read such a codes.  I need to find out its capacitance and voltage. I think it could be 560uf, but I need to be sure of that and still have to find out the volatage rating.  Also would it be ok to replace an SMD  electrolytic capacitor with a standard through-hole  electrolytic one of the same capacitance and voltage rating?  I am adding picture of the relavant part below:   Inside the red square is the capacitor I need help with   Inside the red reactangle on top there are two other SMD capactor presumably from the same manufacturer. I posted these as well in the hope it may help to find out the manufacturer of the cap I need to replace.  Can somebody please help me?  Thanks.


List of trending/popular questions gone?

In the new interface I don't see where the listing of popular questions from all Stack Exchange sites has gone.  Has it been moved or is it no longer available?  If the latter, why?


I am trying to understand how user permissions work in Linux. The kernel boots and starts init as root, right? Init then runs startup scripts and runs getty (agetty), again as root. Agetty just reads user name and runs login, still as root, I think. Nothing interesting yet. But what does login do? I wasn't able to find anything better than "it attempts to log in". Suppose login finds that password matches (and we trying to log in as usual user), how does it change user id? I thought that there should be system call for that but I wasn't able to find it (maybe I'm just blind?)    Also, about su. su has the 'setuid' bit set so when we run it, it always runs as root. But when we tell it to log in as usual user, it again needs to change user id. Do I understand correctly that the same "magic" happens in su and login when they need to change user? If so, why have two different programs? Is there any additional sorts of serious business happening when running login?


The notation $\int{f(x)}\,dx$ is commonly used to denote the set of ALL antiderivatives of the function $f$. Is it wrong to use the notation $\int{f(x)}\,dx$ to denote a single antiderivative of the function $f$ without the constant of integration $c$?  I saw many instances where the notation $\int{f(x)}\,dx$ is used to denote a single antiderivative with the constant of integration omitted. For example to evaluate $\int {xe^x}\,dx$, some textbooks wrote $v=\int\,dv=\int{e^x}\,dt=e^x$, without the constant of integration. For example, to solve the differential equation $y'+\frac{2}{t}y=e^t$ by using an integrating factor, some textbooks wrote $\mu(t)=\exp(\int{2/t}\,dt)=t^2$, without a constant of integration.


Let $G$  be a finite group, $p$ be  the smallest prime divisor of $|G|$, and $x \in  G $ an element of order p. Suppose $h \in  G $ is such that $hxh ^{−1} = x ^{10} $. Show that $p=3$  My try:  Since $o(x)=p$ and $hxh^{-1}$ and $x$ being conjugates have the same order we have $o(hxh^{-1})=o(x^{10})=p$  Also $o(x^{10})=\dfrac{p}{\gcd(10,p)}=p$  Then $\gcd(10,p)=1$ then $10^{p-1}\equiv 1(\mod p)$  I can see that $p=3$ satisfies the equation .Also $p\neq 2,5$.How to eliminate other possibilities of $p$?


Whats the difference in using passByRefrence vs passByAddress in this example. C++

As you can see in the example I'm about to provide below I'm using both Pass By Reference and Pass By Address...   #include<iostream> #include<string>  void passByAddress(int *a); void passByReference(int &a);  int main() {     int betty = 21;     int setty = 45;      passByAddress(&betty);     passByReference(setty);      std::cout << "Betty : " << betty << std::endl;     std::cout << "Setty : " << setty << std::endl; }  //Pass By Adress void passByAdrress(int *a) {     *a = *a + 5;     //Memory Adress of a.     //So gives hexa decimal.     std::cout << "Address : " << a << std::endl;     //Actual Value of adress     std::cout << "Address's Value : " << *a << std::endl; } //Pass By Reference void passByReference(int &a) {     a = a + 5;     //Memory Address of a.     //So gives hexa decimal.     std::cout << "Adrress : " << &a << std::endl;     //Actual Value of address     std::cout << "Address's Value " << a << std::endl; }   So here I really don't understand the difference in using passbyaddress and passbyreference..Although i do understand the differences between these both and Pass By Value(As pass by value passes the copy of variable not memory address), I don't understand whats the difference of these both. Many people just say "Use Pass By Reference its much better", or "Use Pass By Reference all the time except when you have to use Pass By Address".. But I want to know the real difference so i can decide which one to use in my later projects.  Thankyou.


Why does  $$(1+1/k)^{k}\rightarrow e\hspace{0.5cm}\text{as}\hspace{0.5cm}k\rightarrow\infty$$  why does it not approach   $$(1+1/k)^{k}\rightarrow (1+0)^k=1\hspace{0.5cm}\text{as}\hspace{0.5cm}k\rightarrow\infty$$


Boot stuck on logo screen after upgrading from 14.04 to 14.10

After upgrading from 14.04 to 14.10 my computer cannot boot anymore, it is stuck at the logo screen (with animated dots). I'm using Windows to post this question.  By displaying the boot process, I see that it is stuck at "Stopping log initial device creation". When I press Ctrl+Alt+F2, only a flickering dash appears, and I can't even log in.    Thank you in advance for any suggestions.


How can I find out what the weather is like in a given location on a certain month?

Is there a good weather forecast website that I can check the historical weather on a specific area?  To explain my situation:   I want to go to Key West around January 2017 for a vacation but I want to be sure about the temperature I will find there around January. Depending on the history of previous temperatures, I will go on Jan/2017 or I will reschedule to Dec/2016.


let $(X,d)$ be a metric space. How I can show that any finite subset of $X$ is closed.       Can a finite subset of $X$ be open ?     Definitions:   a set $F\subseteq X$ is closed (in$(X,d)$) if  $\bar F =F$. a set $U\subseteq X$ is open (in$(X,d)$) if  $U^o=U$


Review icon not showing in private beta sites

The Review icon isn't shown in the top-bar of the newly launched private beta, , even though I have  to review close and reopen votes.


I can not figure out what the correct usage of allow/allows is in this case.      Using plural allow(s) me to...   Would "allow(s)" refer back to the plural and thus be "allow"? or does it refer back to the action of using the plural and thus be "allows"?  An example could be something like: "Using old recordings allow(s) me to relive memories."


How do I punctuate a question that contains a quote that is a declarative sentence?

I'm stuck.  A friend of mine stated on Facebook how much she hates the music that ice cream trucks play.  So, I responded:  How about they play, "Hello.  It's ice cream you're looking for"?  It looks wrong.  I don't know if I should put a period after 'for' or not.    Please help.


"buff/cache" is very high, how I can free it?

The output of the top command shows that 29GB of memory is used by "buff/cache". What does it mean and how I can free it? It is near to 90% of memory.


'Employee Profiles' or 'Employees Profiles' or 'Employees' Profiles'?

I had a spat with a coworker. We are compiling a software feature list. One of the entries was the "Employee Profile". However, we wanted to write it down in plural. So, which one should it be?     1 - Employee Profiles   2 - Employees Profiles   3 - Employees' Profiles   Correct me if I'm wrong, but I believe the following:     1 - Correct   2 - Incorrect   3 - Works, too


I'm currently learning about gradients, and I thought khanacademy could help me acquiring some intuition. The actual computation is clear to me, however I'm having trouble understand the intuition.    is the video I'm talking about, and the part I have a part with is 6:11. He says the gradient vector shows the direction you have to travel in the x,y-plane in order to get a maximum slope in the z-direction.  This sounds like gibberish to me. How do you have to 'travel' it? Why do you get a maximum slope? I just have no clue.


I would like to run the following input file:  <structure>   <object>     <property name="DOC">ABC</property>     <property name="VERS">001</property>     <property name="REV">-</property>     <property name="NAME">Peter</property>   </object> </structure>  <structure>   <object>     <property name="DOC">ABC</property>     <property name="VERS">001</property>     <property name="REV">1</property>     <property name="NAME">Carl</property>   </object> </structure>   to get the following output with saxon processor:  DOC,VERS,REV,NAME ABC,001,-,Peter ABC,001,1,Carl   Any ideas how to format the XSL file.  Thanks in advance!


i got a dryer that have a green netural cord but the cord couldn't fit in the outlet because it had 3 prong with a circle prong it may be 4 prong my old dryer has a three prong that fir in the outlet but doesn't had a ground wire can I use that 3 prong for my new dryer w/o a ground wire will that cause problems?


Is there are LaTeX editor which supports camelcase navigation. Jetbrains Webstorm allows camelcase navigation such that a longCamelCaseWrittenWord could be navigated in several steps.  Is such a thing available for any LaTeX/xelatex editors? Or any editor for that matter.  I currently use texstudio with texlive  Edit:  This question is not a duplicate, none of the answers mention anything about navigating through camelcase words.  EDIT:  To elaborate on the problem further... It will go like follows (underscore _ represents the actual cursor position):  _LongCamelCaseWrittenWord -> CTRL+RIGHT_ARROW -> Long_CamelCaseWrittenWord -> CTRL+RIGHT_ARROW -> LongCamel_CaseWrittenWord -> CTRL+RIGHT_ARROW -> LongCamelCase_WrittenWord -> CTRL+RIGHT_ARROW -> LongCamelCaseWritten_Word -> CTRL+RIGHT_ARROW -> LongCamelCaseWrittenWord_   If longCamelCaseWrittenWord is one word, holding Ctrl and tapping → key does not take the cursor to the end of the word; rather, it takes the cursor through, one word at a time.  Hope I make sense.


How could live and neutral wires be specified in a circuit with alternating current?

I know that direct current has specific live and neutral wires because the current flow has a specific direction. But alternating current has no specific direction to flow, it changes the direction of flow after a specific time. So, how can the live and the neutral wires could be specified? Shouldn't it change when current changes its direction?


Does the force of kinetic friction increase with the relative speed of the objects involved? If not, why not?

Does the force of kinetic friction increase with the relative speed of the objects involved?    I have heard and read that the answer is no.  This is counter intuitive, and is a big part of why the "Airplane on a Treadmill" question is so interesting.  What phenomena are at work with kinetic friction, and why does it not increase with relative speed?


At which speed an object becomes hotter as it travels through the air?

Imagine we throw a hot pie at somebody's mug. By the time it arrives at destination, it became slightly less hot.  Imagine Chelyabinsk meteor enters the atmosphere. It's cold when it enters yet it quickly becomes very hot and explodes violently.  But where's the border? At which speed does object traveling through atmosphere stops losing warmth and starts gaining it from friction? Does a bullet fired from firearm cool or warm up during flight?


I have an image (image.pdf, ). This is how the image looks like:  And this small TeX code:  \documentclass{standalone} \usepackage{graphics} \begin{document} \includegraphics{image.pdf} \end{document}   This returns the following output:  Obviously, there are a few things missing, e.g. b/a and z. Why?  Can anyone reproduce this? I am using TeXShop (Typeset, LaTeX) on a MacBook Pro.


How would i go about manuall recreating the process that unetbootin uses to create a bootable USB?

Would i simply create a bootable grub install and copy the files from the iso over, then edit the commands as needed?


My question remains on-hold despite being edited - how can I contact those who voted to close?

was put on hold seemingly less than 1 hour after being first published. Less than 1 hour after that I updated to address one of two complaints (2nd was never applicable) yet am still 1 'reopen' vote short of having the Q actually re-opened. None of the 4 people who voted to put it on hold opined after my revisions. With the above as setup, a request and a comment:   comment: seems like there should be a way to prompt (read: nag) those voting to close a question to provide timely feedback on revisions. IMO power to prevent someone else's participation should be weighted down with responsibility for follow-up when corrective action was taken. At the very least, the down-voters should be required to explain why the revisions are insufficient (in free-verse, not just 'pick a checkbox' - that may or may not apply) request: could I please get another 'reopen' vote on my question (or an applicable, lucid explanation as to why it is still not merited)?   Thanks


Are atomic energies increasing as the Universe expands?

Starting from the FRW metric (for simplicity flat space, radial direction only):  $$ds^2=-c^2dt^2+a(t)^2dr^2$$  If we take $dt=0$ then the proper distance $ds(t)$ between two spatially separated points at cosmological time $t$ is given by:  $$ds(t)=a(t)dr$$  Now at the present time $t_0$ we can define $a(t_0)=1$ so that we also have:  $$ds(t_0)=dr$$  Therefore by eliminating $dr$ in the above equations we find:  $$ds(t)=a(t)\ ds(t_0)$$  If we define $ds(t)=1$ so that a hydrogen atom has a unit proper diameter, at any time $t$, then the equivalent diameter at the present time $t_0$ is given by:  $$ds(t_0)=\frac{1}{a(t)}$$  According to quantum mechanics the mass/energy of a quantum system is inversely proportional to its size.  Therefore if the mass/energy of the hydrogen atom at time $t$ is one unit then the mass/energy of an equivalent atomic system at the present time $t_0$ is $a(t)$ units.  Thus can one infer that hydrogen atoms at time $t$ in the future have an energy that is a factor $a(t)$ higher relative to the energy of hydrogen atoms today?


In D&D, how do you calculate the attack bonus for a weapon?

I had my first character made for me, which was a big mistake. I am making a new lvl 6 druid/3 fighter/3 , and I'm stuck on this one part.   So if I'm a drow druid/fighter with 2 short sword and 2 dagger, and one great axe, with a eldritch knight martial archetype, I'd calculate using my str?


Is there a simple way to add exFAT support?

When I insert a USB stick or camera flash card I get the following error:  unknown filesystem type 'exfat'   Is there a simple way to add exFAT support to Ubuntu without kernel patching?


How can I safe object's type after inheritance?

When developing my program, I was faced with this problem, as different types of classes after inheritance.   For example:  class MyClass: pass  class MyClass2(MyClass): pass  A = MyClass() B = MyClass2() print(type(A) == type(B))    Result will be False, and that's not what I need. I tried to search some info in typing Python module, but I didn't really understand nature of types. What should I do for True result?


I have following MWE:  \documentclass[12pt,a4paper]{article}  \usepackage[utf8]{inputenc} \usepackage[color=red,opacity=0.1,contents={}]{background} \usepackage{hyperref} \usepackage{indentfirst} \usepackage{caption} \usepackage{listings} \usepackage[listingsutf8]{tcolorbox} \usepackage{tcolorbox} \usepackage[slovene]{babel} \usepackage{titlesec} \usepackage{float} \usepackage{pifont}  \setcounter{secnumdepth}{4}  \titleformat{\paragraph} {\normalfont\normalsize\bfseries}{\theparagraph}{1em}{} \titlespacing*{\paragraph}{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}  \author{Marko Frelih\\Firm\\\texttt{email}} \title{Install Manual} \date{Ljubljana, Marec 2015}  \begin{document} \textit{script_turn_hdmi_off.sh} \end{document}   Now, why I cannot write word script_turn_hdmi_off.sh as italic, since the line with \textit{script_turn_hdmi_off.sh returns error:  ! Missing $ inserted. ! Extra }, or forgotten $. ! Missing $ inserted.   What am I missing again?!


Embed a File Chooser in a UserControl / Form

I've inherited a desktop application which has a custom .NET file chooser that is embedded in a control, but it has some issues. I'd like to replace it with a non-custom File Chooser (like the OpenFileDialog).    However, for a variety of reasons it needs to be embedded in the parent control not a popup dialog. Is there a control I'm missing, or does MS only provide the popup dialog out of the box?


Trying to get APA work gives Undefined control sequence

I'm trying to get APA working with special characters. I got kind of far with it but it gives me Undefined control sequence on rendering citations.  My minimal source is:  \documentclass[british]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}  \usepackage{csquotes}  \usepackage[czech,british]{babel}  \usepackage[backend=biber,date=short,maxcitenames=2,style=apa]{biblatex} \addbibresource{sample.bib} \DeclareLanguageMapping{british}{british-apa}   \begin{document}   \cite{test}   \nocite{*}   \printbibliography \end{document}   My sample.bib now looks like. It's encoded with UTF8 for sure  @book{test,     Author = {šýř čžá and íéě č},     Title = {šýř}, }   The error is Undefined control sequence \datecircaprint \mkbibdateapalongextra. The encoding is not the issue here I believe.


Is there any chance that the EM drive thrust could be caused by quantum tunnelling?

So, I know you guys probably hate this topic, but I don't think stop looking into it is the solution. Figuring out what's wrong with the experiments would also bring new knowledge to the table, and make future experiments even more careful (The Opera neutrinos are an example of that).  What I'm asking is: is there a possibility of a quantum phenomenon, like quantum tunneling, being able to produce the amount of thrust observed in the experiments (which is tiny, but seems to me way higher than it would be expected by particle quantum tunneling, that is, if quantum tunneling can even transfer momentum. I'd argue it can, since its nothing more than a particle going from a higher "energy state" to a lower one, but the fact that it does this in a non-classical way, collapsing its wave function in a "region" where the classical possibility for the partical to be should be zero makes me wonder).  Quantum tunneling may play a whole, but if it does, is it so huge to the point of explaining the thrust? And is there any fringe reason why would quantum tunnelling would transfer so much momentum, given that it would happen so rarely in the EM drive device, if it would account for all the reported thrust, there would be some serious imbalance in the equations, as if tunneling borrowed energy from somewhere else, energy it shouldn't have if the particle would remain classically contained.  As I said, maybe not exactly quantum tunneling, but something else. We learned about hawking radiation somehow recently, Can you, quantum physicists, envision an effect that would account for that thrust being measured? I know the standard explanations, like "pushing into the vacuum", and other things.  I doubt any of you guys haven't spent at least some time entertaining the notion of the EM drive not being a fantastic beast, but simply something that needs an explanation as to how it works. I really doubt that, if it works, it would violate conservation of momentum. We just don't see how it would be possible without that violation, so we push it aside. That's, in my opinion, not a thing scientists should do. They should instead be trying to disprove the EM Drive beyond a shadow of a doubt, and if they can't they should start focusing on how it fits the standard model, and if it doesn't...! Well! How great would that be? How much new reasearch could be derived from it? who would be the first to win the Nobel prize on this matter? Isn't new physics all you guys have been looking for? what if you don't need LHC to get it, but simply a bizarre thrust obtained from turning on a round-frustrum shaped microwave oven?


Is there more than one invisibility cloak?

In HP and the Philosopher's Stone, Harry gets an invisibility cloak as a Christmas present from Dumbledore. (His father had owned it before.)  As soon as Ron saw it, he recognised it to be as an invisibility cloak (which we later get to know is one of the deathly hallows), and he says they are incredibly rare.  Which indicates that there has been more than one IC in the Potterverse.  Is it mentioned anywhere in the books or movies about any other invisibility cloak? If yes then how do they work? And are they as effective as the one with Harry? Please give a canon answer.


Removing Windows 8 to run Ubuntu OS on an Intel i7 7348

How do I remove Windows 8 & load only Ubuntu as my OS on an Intel i7 7348


I am trying to identify tenses from complex sentences. but I am not sure what counts as a tense. so my question is probably: What counts as a tense? what is the bare minimum for something to be called a tense? can it exist without a subject? Thanks beforehand


Debian Wheezy 7.1 - can't launch Skype or Firefox

I've installed Skype by using dkpg and when I try to run it, this is what I get -bash: /usr/bin/skype: No such file or directory. Which is very strange since ls -l | grep skype shows this:  -rwxr-xr-x 1 root   root    30717480 May  7 01:43 skype   I had similiar problems when I installed FireFox, but since I didn't need it all that much, didn't care. However, I do need Skype on Linux.  Output of my $PATH variable:  /home/max/.rvm/gems/ruby-2.0.0-p247/bin:/home/max/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/max/.rvm/rubies/ruby-2.0.0-p247/bin:/home/max/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games   Anyone care to explain?... Because I'm stunned.


Suppose we pick a random real number between 0 and 1 and call it $x$. There are $2^{\aleph_0}$ possible values, so the chance of picking any specific number (such as $x$) in that range is 0. But in the end, we did manage to pick $x$, despite its probability of 0.  Does this mean that a 0% chance is actually possible, or is there some flaw in this logic?


Why does gravitational force of the Earth decrease as we move towards the centre of the Earth? Where as inverse square rule says that distance is less than gravitational force is more.


I want that each bar in my diagram has a color gradient from black to white (from left to the right). However, for the following code, the gradient exists for the entire diagram such that the left bar is black, the middle one is gray, and the right one is white.   \documentclass{report}  \usepackage{pgfplots}   \begin{document}  \begin{tikzpicture}      \begin{axis}[ybar]          \addplot[left color=black,right color=white] coordinates {(1,2) (2,3) (3,4)};      \end{axis}  \end{tikzpicture}  \end{document}


Under TeX, when I write a line too long, it prints a fat black box at the end of the line.  That is probably a feature, but I dislike it.  How to turn that OFF? Is there a command-line option or something else?   I usually use LaTeX, but I have a complicated file which happens to be plain TeX.


android-nullpointer exception when retrieving json array from web service

I get nullpointer exception every time I tried to run this code,but I do not see anything wrong with this.So here is the code:  @Override     protected Void doInBackground(Void... params) {         // Create an array         arraylist = new ArrayList<HashMap<String, String>>();         // Retrieve JSON Objects from the given URL address         jsonobject = JSONfunctions.getJSONfromURL("http://www.focusyazilim.net/json/main.json");          try {             // Locate the array name in JSON             jsonarray = jsonobject.getJSONArray("worldpopulation");              for (int i = 0; i < jsonarray.length(); i++) {                 HashMap<String, String> map = new HashMap<String, String>();                 jsonobject = jsonarray.getJSONObject(i);                 // Retrive JSON Objects                 map.put("şehir", jsonobject.getString("rank"));                 map.put("ülke", jsonobject.getString("country"));                 map.put("nüfus", jsonobject.getString("population"));                 // Set the JSON Objects into the array                 arraylist.add(map);             }         } catch (JSONException e) {             Log.e("Error", e.getMessage());             e.printStackTrace();         }         return null;      }   What can be the problem that can cause nullpointer exception? Here is the error:


CVE-2014-6271 Bash Vulnerability example

I am trying to understand what could be the security concern of CVE-2014-6271 and all the links I see just gives me the below command.   env x='() { :;}; echo vulnerable' bash -c "echo this is a test"   If I get the output as,  vulnerable this is a test   It means, my bash shell is vulnerable.   But in what way it is related to security? In other words, what harm could be done to my system?


Latex doesn't create new page when using section?

I'm trying to create my document with lots of section. However, after the document is compiled by pdfLaTeX, the document showed like this:   \documentclass{article} \begin{document} \section{aaa}  % * a lots of time \end{document}   How to make sure the sections doesn't goes out of bond and create new page automatically?


I'm new to electronics, and need some assistance :)  I need to charge a 12v 9Ah lead acid battery from 12v input. How should I start with this?  1. step up to 14V? how much do I loose if I try to charge it from 12v? 2. is there a chip that can regulate the exponential charging process?  Thank you


Show that $ (\sum_{i=1}^n x_iy_i)^2\leq \sum_{i=1}^n x_i^2\sum_{i=1}^n y_i^2 $ with induction

Let $x_i,y_i\in\mathbb{R},\quad i=1,\dots,n$. Show that   $$(\sum_{i=1}^n x_iy_i)^2\leq \sum_{i=1}^n x_i^2\sum_{i=1}^n y_i^2$$   where the equality holds if and only if $x_i=\lambda y_i$ where   $\lambda_i\in\mathbb{R}$   If I think I already saw it in some place but I don't remember how to proof  For $n=1$ $$(x_1y_1)^2=x_1^2y_1^2\leq x_1^2\times y_1^2$$  Assuming that is true for $n=k$ for any $k\in\mathbb{Z}$. Then $$(\sum_{i=1}^k x_iy_i)^2\leq \sum_{i=1}^k x_i^2\sum_{i=1}^k y_i^2$$ Then we need to show that for $n=k+1$ it is true too $$(\sum_{i=1}^{k+1} x_iy_i)^2\leq \sum_{i=1}^{k+1} x_i^2\sum_{i=1}^{k+1} y_i^2$$  I'm stuck now, I thought it was something related to moving the series but I got nowhere.


Firstly, the assignment:     Let $a,b \in\mathbb{R}$ and $a < b$. Furthermore let $f: [a,b] \rightarrow [a,b]$ be monotone increasing. Show that if $x:= \mathbf {sup}\{y \in [a,b] \| \ y ≤ f(y)\}$ then $f(x) = x$.   It's good on me that the assignment itself actually tells you what $x$ is so I can prove the theorem by showing that for $\forall x' \not= x: f(x) \not= x$ and I'm done. However, I have not arrived at a contradiction so far.  Any tips?


java selenium, if condition doesnt execute

My code doesn't enter conditional loop even the condition is satisfied. code below  public class Ifcheck { public static void main(String[] args) throws IOException {     FileInputStream fs = new FileInputStream("C:\\Murali\\Selenium\\Exp.xlsx");     Workbook wb = new XSSFWorkbook(fs);     Sheet sh = wb.getSheet("Sheet1");     Row row = sh.getRow(0);     String n = row.getCell(0).getStringCellValue();          if (n == "Y")         {             System.out.println("done");         }      } }   row.getCell(0).getStringCellValue(); has "Y" in the xl. when I put a watch on variable n, i can see it gets value of "Y" from xl. still the if condition doesn't execute


Given positive integers a and b such that $a\mid b^2, \:b^2\mid a^3, \:a^3\mid b^4,\: b^4\mid a^5$..., prove $a=b.$   I was able to show that a and b have the same primes in their factorizations, but I'm not sure how to show that the exponents on these primes are equivalent for all primes in their factorization. I tried contradiction but got stuck.


Suppose I run a process in the background likw ./script &, I can bring it to foreground by running fg.   However, is there a way to move it back to background without stopping it (as in ctrl+z) or opening a new session?


Orthonormal system close to Orthonormal basis is basis.

$\{e_n\}$ is an orthonormal basis in Hilbert space. $\{f_n\}$ is an orthonormal system in H, such that $\sum ^\infty_1 \| e_n - f_n \| < 1$. Prove that $\{f_n\}$ is a basis.   It looks natural to use projections here, but I don't understand how to do it.


Duplicate but Still cannot understand the concept?

Personal pronouns are confusing. Which one is correct?     She went with him and I.    Or      She went with him and me.   -     Susan went with Don and "I" to the office.   Or      Susan went with Don and "me" to the office.


The fact that the dot product and the cosine of the angle between two vectors are mutually computable is easy to show (see the two sides in the two answers at ).  But looking at the dot product, I would never have thought that it somehow captures something about the angle (and vice versa).  How did the connection get discovered? Who were the major players? Did it just fall out of the development of matrix operations for linear algebra (or did the dot product come first) or are these only related by hindsight or what?


If $F$ is a finite domain, it's a field.

Show that a finite domain $F$ is a field.  Let $I$ a proper ideal of $F$ and let $a\in I$. In particular, $a$ is not invertible, otherwise $I$ wouldn't be proper.   I would like to show that $I=(a)=(0)$, but without success.


what is the different between man and man 3 unix commands?

my question describes it all actually. I wanted to know what is the difference between man and man 3 command to get the manual pages for unix commands?


Remove everything after domain and http in url javascript

I have the full url in a javascript variable and I want to strip it down to the bare url.  For example:  ,    strip down to:  www.google.com, youtube.com  How would I do this in javascript?  Thanks  This is not similar to the other links as I am doing this within a chrome extension, therefore the only way to get the url is using the chrome extension api which only provides the full url. As such I need to strip the full url


How to version and share githooks without recipients having to do any additional configuration?

I've made a githook for my current project, it works for me locally, now I'm trying to share it with my team. We are using Windows. Our team is volatile and distributed, people work on many different projects at the same time and can't be expected to perform additional manual configuration of repositories, so, I need the hook to just start working for them with next pull. I've found several tutorials, but all of them suggest additional configuration on recipient side. I need to avoid that.  P.S. Ideally, I'd expect to just add .git/hooks folder to the repo, but that seems to not be possible in GIT.


What is the name of this solitaire card game?

You start flipping cards over one at a time and holding them in one hand. When you have two cards of the same suit that are separated by two other cards (e.g. 4♣ 2♦ 7♥ 10♣), you discard the middle two. When two cards of the same value are separated by two other cards (e.g. 4♣ 2♦ 7♥ 4♥), you discard all four.  This game is neither Accordion nor Royal Marriage, but bears similarities to both. Somebody else  on Yahoo Answers five years ago and the response was unsatisfactory.  If someone can identify this game, I would also like to know what happens when you finish with two cards left: do you win, as in Royal Marriage, or not?


Ubuntu 18.04 and Rainlendar 2 install problem

I can't install Rainlendar 2 on my Ubuntu 18.04, I found this solution for 16.04 (), followed it, seems to work, but after install, there's no Rainlendar in my Show Apps, so I'm not sure what went wrong. When I issued sudo dpkg -i rainlendar2-pro_2.12.2.b138-1_amd64.deb, I got this:   Selecting previously unselected package rainlendar2-pro. (Reading database ... 190677 files and directories currently installed.) Preparing to unpack rainlendar2-pro_2.12.2.b138-1_amd64.deb ... Unpacking rainlendar2-pro (2.12.2.b138-1) ... dpkg: dependency problems prevent configuration of rainlendar2-pro:  rainlendar2-pro depends on libpng12-0; however:   Package libpng12-0 is not installed.  rainlendar2-pro depends on tofrodos; however:   Package tofrodos is not installed.  rainlendar2-pro depends on libjpeg62; however:   Package libjpeg62 is not installed.  rainlendar2-pro depends on libwebkitgtk-1.0-0; however:   Package libwebkitgtk-1.0-0 is not installed.  dpkg: error processing package rainlendar2-pro (--install):  dependency problems - leaving unconfigured Processing triggers for gnome-menus (3.13.3-11ubuntu1) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ... Processing triggers for mime-support (3.60ubuntu1) ... Errors were encountered while processing:  rainlendar2-pro   I got this after issuing this command in terminal sudo apt-get -f install  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages will be REMOVED:   rainlendar2-pro 0 upgraded, 0 newly installed, 1 to remove and 35 not upgraded. 1 not fully installed or removed. After this operation, 20.5 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database ... 191316 files and directories currently installed.) Removing rainlendar2-pro (2.12.2.b138-1) ... Processing triggers for mime-support (3.60ubuntu1) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.1) ... Processing triggers for gnome-menus (3.13.3-11ubuntu1) ...   What I'm doing wrong? After the last command it just removed Rainlendar and not installing dependencies as stated in the original post? TIA


Bank statement requirements for UK standard visa

I've read multiple answers regarding this question here on stack flow but still I want some clarification on my case.  I want to apply for UK standard visa next year to sit some tests.  One of the most important things as I understood was bank statement and other things that prove you have ties to your country that will force you to return to your country by the end of the visit.  My income is about $1650 monthly from 2 jobs and my wife's income is $800 monthly from 1 job in a public hospital.  I work in a public hospital as a doctor earning $750, and as part-time pharmaceutical salesperson in a private company earning $900.  I can provide a proof for my income from my job in the hospital with all legal certification and stamps from a governmental regulating body, but not from my second job since I can't authorize or certify the letter from my employer because it's not a properly regulated business in my country and there are no official documents regarding this, I can only provide a simple letter in English language from this employer explaining (my role, my salary, the period I've been employed) with their stamp only but no other official stamp from a governmental or a regulating body.  My bank account currently have a $700 after I have drawn about $6000 for house renewals.  I will restart depositing money again next month, and I want to reach like $12000 by next year to appear financially stable and capable. So what are my options?  Can I declare I have 2 jobs and I can deposit like $1250 monthly? Or keep my second private job a secret and that I only earn $750 monthly and deposit a monthly amounts of $500-$600 in proportion to this income?  Should I deposit and draw money regularly, or can I explain that I deposit about 75% of my monthly income because I keep %25 of it as it's enough for my monthly living specially that I live in family-owned house and I don't pay any rent?  Is it enough for me to have a bank statement so me and my wife can travel together to UK, or we should have separate accounts and both present a bank statement? Or we can have a joint account where we deposit like $1300 monthly together and both apply to visa using a bank statement for this joint account?  I'm short of time and need to do things properly and accurately starting next month so please help me.


`du -sh` reports different used size than `df -h`

Possible Duplicates:             df -h says that I have 494G used on /var:  Filesystem            Size  Used Avail Use% Mounted on /dev/sda3             564G  494G   41G  93% /var   But du -sh /var says it's 350G  What makes them different?


Prevent Mail app from opening automatically

how can I stop the OSX Mail app from opening periodically? I am not talking about startup, I mean when the system is running. If I do not quit the mail app it will be coming to front on a regular basis. It sometimes even opens when I have another program/app in full screen mode and divides the screen to also open in fullscreen...  How do I run the mail app minimised without itself opening all the time?


Difference between using java.io.* and java.util.Scanner

I would like to know what are the differences between reading data in the next programs  The first one read data using a Scanner and the second one uses io  I know that we could also use JOptionPane but I would like to know the difference between using one or other option or if there are some of them which can only be used in specific cases.  You would really help me if you could answer, thanks any way for readind this, I appreciate it. C:  package test; import java.util.Scanner;  class Test{      public static void main(String [] args){           Scanner sc = new Scanner(System.in);          String name;           System.out.println("Ptss ...Tell me your name please.");          name = sc.nextLine();           System.out.println(name + " It's a pleasure to meet you");      } }        package test;     import java.util.io.*;      class Test{          public static void main(String [] args) throws IOException{               BufferedReader read = new BufferedReader(new InputStreamReader(System.in));              String name;               System.out.println("Ptss ...Tell me your name please.");              name = read.readLine();              System.out.println(name + " It's a pleasure to meet you");         }     }


How to run a function according the choice from the drop-list?

I have drop-down list with list of many options. Every time when a user make a choice then specific function starts.  $('#host').on('change', function() {    if ( $('#host').val() == 'stack' ) stack();   else if ( $('#host').val() == 'exchange' ) exchange();   else if ( $('#host').val() == 'something' ) something();   ...  }   The list become very long because more function will be added. Is there a shorter way to execute name of the function from $('#host').val()?


Searching for a tag inconsistently redirects to the tag page

Searching for a word that matches an existing tag should, I believe, redirect you to the tag page for that tag, instead of a regular search result.  This is happening inconsistently...  For example, a search for the word "search" doesn't redirect to the tag page:              But a search for "support" does redirect to the tag page:              I tested this on a few sites with a number of tags and can reproduce on at least three sites (I couldn't on one). It also seems to be more inconsistent on some sites than others.  Why do only some tags redirect to the tag page?


Is there a general construction that allows us to produce groups with arbitrary automorphism group?

In other words, given a group $G$, is there a construction that produces a group $H$ such that $Aut(H) \cong G$?


I'm a math student at the sixth semester and I've had my courses in calculus and complex analysis. I'm able to solve integrals with the usual techniques. However, whenever I am confronted with a difficult integral or with a manipulation of integrals, I usually don't know what to do.   So I'd like to read an advanced book on integrals, on how to solve them, how to manipulate them, how to estimate them. Does anyone have a good suggestion on such a kind of book?  Thanks a lot!


Third party application Icon not displaying in dock for Ubuntu 17.10

I created an executable .desktop file in my Desktop which should launch a GUI application along with displaying an icon in dock, but in Ubuntu 17.10 icon is not displaying in dock:    In previous Ubuntu versions (14.04 to 17.04) I didn't face this issue.  In Ubuntu 17.10 no 3rd party applications with icons as executables are being launched by default, It's asking for trust and launch to proceed.     How can I give the launchers default execute permission, or whatever permission is needed to avoid getting this dialog?  The executable was created by compiling in Ubuntu 14.04 to support backward compatibility.  The .desktop file created to display the icon contains:  #!/usr/bin/env/ xdg-open  [Desktop Entry] Version=1.0 Type=Application Name=MDM Comment=MAVLDM Terminal=false X-Ubuntu-Gettext-Domain=example-content MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/vnd.mozilla.xul+xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome; StartupNotify=false OnlyShowIn=GNOME;Unity; X-Desktop-File-Install-Version=0.20 Path=/home/ravi/Downloads/MDM Exec=/home/ravi/Downloads/MDM/MAVLDM Icon=/home/ravi/Downloads/MDM/mavldm.png   Is this changed in Ubuntu 17.10?


I implemented ANN and my dataset have the first 100 data from class 1, and next 100 from class 2,..., and last 100 from class 10 (so I have 10 binary output units). I do back_propagation on my data to learn weights, but when I feed the new weights with training data again to the ANN, it predicts everything from class 10 which is the last 100 data's class. I am new to ANN, what am I missing?


Is there a rule or a scale for judging if a certain MSE is small, very small, big or very big? Please give also a source to underpin your recommendation.


Preventing unique key constraint violation when pre-existing row has 'expired'

I have the following table schema;  CREATE TABLE LOCKS (     lock_uid INTEGER NOT NULL,     file_uid VARCHAR2(32 char) NOT NULL UNIQUE,     owner VARCHAR2(255 char) NOT NULL,     expires DATE NOT NULL,     PRIMARY KEY (lock_uid),     FOREIGN KEY (owner) REFERENCES user(username) );   The table is responsible for recording file locks that users of my application might hold on files in the system. The unique constraint on the file_uid column will prevent more than one lock being held for any file.   I would like some advice on how to allow people to obtain a lock on a file when there is already a lock on the file, but it has expired (ie, expires < sysdate).  My initial thought is to use a trigger on insert so that if there are any file locks that have expired in the table, it will remove them before trying to insert the new lock. This will prevent the duplicate key constraint violation which would occur otherwise.  Can anyone think of a better way? Ideally I would enforce this purely via declarative constraints on the table but it doesn't seem possible.


Getting access to incrementing extension of file (as a integer variable)

I'm trying to code a simple script that uses sed to basic find&replace functionality. I want to have original file untouched and have results in new files called "file.n" (n is being incremented).  My main problem is with numbering new files. This is basic code of mine that has static functionality for n=1 and n=2:  #!/bin/bash n=1  if [[ -f file.$n ]] then sed -e 's/'$2'/'$3'/g' $1 > file.$((n+1))  else sed -e 's/'$2'/'$3'/g' $1 > file.1 fi   Input in terminal looks like: ./script text_sample.txt word_1 word_2  This code works okay for first and second use (if file.1 hasn't existed, it's going to save results here; else it will be saved in file.(n+1) which is file.2).  But how do I make it for file.3, file.4 etc? After launching this script every single time, at start it's n=1 and I don't really have more ideas how I can deal with it.  I've already tried some export variables, using specific variable as a command (to make this integer more like global); I guess some loops might be needed...  Any help would be appreciated.


I can't use the ./ command in USB flash drive

I recently got Linux, and wanted to run the game dwarf fortress in my USB flash drive. To run dwarf fortress on Linux you have to use ./df in the dwarf fortress folder, but when I use this command it says: bash: ./df: Permission denied. This happened a while ago when I wanted to run it in my NTFS partition, but I fixed it (I don't remember how.) I would like to fix this, thank you.


Add function to oninput listener using JQuery vs adding it directly to the html tag

I'm dynamically appending a range input to the html body:  var slider = "<input type='range' min='1' max='100' value='50' class='slider' id='slider_1' oninput='f1()'>"; $('body').append(slider);   On each input, the function f1() should fire, e.g.  function f1(){   console.log('fired'); }   With the code above, f1() fires each time the input is changed - just what I want.  However, the oninput function needs some parameters that are established later, so I want to add it programmatically like:  $("#slider_1").oninput = f1();   If I do this, f1() only fires once and not with every input.  Why is this and how can I change it?


How is Generic Covariance & Contra-variance Implemented in C# 4.0?

I didn't attend PDC 2008, but I heard some news that C# 4.0 is announced to support Generic covariance and contra-variance. That is, List<string> can be assigned to List<object>. How could that be?  In Jon Skeet's book C# in Depth, it is explained why C# generics doesn't support covariance and contra-variance. It is mainly for writing secure code. Now, C# 4.0 changed to support them. Would it bring chaos?  Anybody know the details about C# 4.0 can give some explanation?


I just wrote an important text and stored it as a simple text file. Then i accidentally cut out the content (with Ctrl+X) when i just wanted to copy it, and saved the file. Now it is of course empty. Is there any possibility to get the content back? Any help is very much appreciated, it really took some time to write it.


How can I make a copy of a printer in Windows 7?

Has anyone been able to copy an existing printer in Windows 7? I know that we were able to do this in XP (not as a direct copy/paste, but by installing the printer twice) but in Windows 7 it doesn't seem to be possible.  Googling the answer is hopeless because searching for "copy printer" or "duplicate printer" you get a bunch of posts about "printer copiers" or people complaining about duplicate printers getting created in the background (precisely what I'd like to be able to do)  It'd be good to know how to do it in general, but if it depends on the printer type, then in our case we are trying to make a copy of an HP Laserjet.   Tried installing from the CD - but the CD is too old for Windows 7  Tried installing via Add Printer and that seems to install the printer but it's marked with an error.  Tried installing via the .exe installer from the HP site and that does result in a successful printer being installed, but it won't let you install the same printer twice (stalls on the "insert USB cable now" step - simply won't enable the greyed out "Next" button).    The reason this is required is so that we can print to one to the feeder and to the tray separately.


Why does java.lang.Object have two notify methods - notify and notifyAll? It seems that notifyAll does at least everything notify does, so why not just use notifyAll all the time? If notifyAll is used instead of notify, is the program still correct, and vice versa? What influences the choice between these two methods?


Quotient group $\mathbb Z^n/\ \text{im}(A)$

Let $A$ be an $n \times n$ matrix with integer coefficients and nonzero determinant. Can we say something about $ \mathbb{Z}^n /\ \text{im}( \phi )$ (here $\phi : v \mapsto Av$ )?    This problem has arised as I was solving some problem in homology theory.


How do I use Conditional Formatting based on due dates in Excel 2013?

I am trying to format cells in Excel 2013. I want the cells to get colored as green, yellow, and red based on how close they are with the target date (January 13, 2015 in this case).  I am unable to use conditional formatting as Excel says that relative formatting is not permitted within conditional formatting.   Target:   06-01-2015  01-01-2015 02-01-2015 03-01-2015 04-01-2015 05-01-2015 06-01-2015 07-01-2015 08-01-2015 09-01-2015 10-01-2015   If the date in the cell is more than 2 days of the target date, I want the cell to change color to Green. I used =DATEDIF($N12,$N$9,"d")>=3 and the format changed to green.  If the date in the cell is exactly 2 days near the target date, I want the cell to change color to yellow. I used =DATEDIF($N12,$N$9,"d")=2 and the format changed to yellow.  If the date in the cell is within 2 days of the target date, I want the cell to change color to red. I used =DATEDIF($N12,$N$9,"d")<2 and the format changed to red only for 5th and 6th January. Apparently, it does not recognize negative values.  How can I get this to match the required colors?


Can 1,782 cM shared indicate Half Siblings?

Could a person with 1,782 cM actually be my half-sibling?   This person is listed as close family to me, yet I do not know them.  My cM is the same as this person's.   I do have 6 paternal half siblings however.


How to copy multiple files but keep their extensions the same?

I am looping through a number of files, and $file represents the current file.  How can I make copies or renames and keep the extension the same for this current file?  e.g. if $file = x.jpg  How to make a copy of $file's with a filename of x_orig.jpg  So far I have:  for file in /tmp/p/DSC*.JPG; do   cp $file $file+'_orig'.JPG done   but that copies the file  DSCF1748.JPG   to  DSCF1748.JPG+_orig.JPG   whereas I want a copy named  DSCF1748_orig.JPG   Similarly, using cp $file "$file"_orig.JPG  results in files such as DSCF1748.JPG_orig.JPG  I want to get the _orig in the middle of the filename...


How to do Link Aggregate / Load Balance with Ethernet and Wi-Fi

Windows can run Connectify Dispatch (no longer available to download BTW), and both MacOS and Windows can run Speedify which proves that Link Aggregate with Ethernet and Wi-Fi is possible on macOS...too bad Speedify doesn't connect to the Internet directly...instead it connects to a VPN server. In theory we can create a virtual Ethernet port that is actually a Wi-Fi port and then use macOS' native Link Aggregation to combine bandwidth...Is there a software that does this?


Rounding to a certain decimal place and rounding to ceil or floor

private static double round (double value, int precision) {     int scale = (int) Math.pow(10, precision);     return (double) Math.round(value * scale) / scale; }   I would like this code to not only be able to round to any given decimal place, but also to either always round up or down, this could be given as another paramter. But I am having trouble with how to implement this.  For example, I want to round 11.1436 to 11.15. Please help.


Why is the output from `groups` different from `groups [username]` if Im currently logged in as user?

I don't know why I got different group results when I enter 'groups' and 'groups [username]'. I suppose that 'groups' without specifying a user give all the groups the currently logged in user is a member of. my@sofa:~$ groups my my@sofa:~$ groups my my : my scan share  Any ideas?


I have a long algorithm that's taking three quarter of a page and so it's taking a whole page with an empty quarter. I want it to be continued with the previous text without leaving any empty place, that means that it will be divided into two pages.   I found answers  that allow to divide the algorithm into two previously set parts, however, I want the algorithm to dynamically fit into the two pages. How I can do that?   Here is an example of the situation that I am having:  \documentclass[a4paper,12pt]{report} \usepackage{natbib} \usepackage[francais]{babel} \usepackage{url}  \usepackage{setspace} \usepackage{fancyhdr} \usepackage{amsmath} %\linespread{1.15} \onehalfspacing \usepackage{makecell} \usepackage{tabularx} \usepackage{amsmath} \usepackage{algorithm} \usepackage{algpseudocode} \usepackage{blindtext} \usepackage{enumitem}   \begin{document} \blindtext Qu’est que c’est?. C’est une phrase fran ̧cais avant le lorem ipsum. Loremipsum dolor sit amet, consectetuer adipiscing elit. Etiam lobortis facilisissem. Nullam nec mi et neque pharetra sollicitudin. Praesent imperdiet minec ante. Donec ullamcorper, felis non sodales commodo, lectus velit ultricesaugue, a dignissim nibh lectus placerat pede. Vivamus nunc nunc, molestie ut,ultricies vel, semper in, velit. \begin{algorithm}[H] \caption{XXX}\label{alg:ChainProcess} \begin{algorithmic}[1] \State \textbf{Entrées:} XXX \State \textbf{Sortie:} XXX \State XXX  \For{\texttt{(\textit{i allant de 1 à (T-1)})}}     \State  XXX      \For{\texttt{( XXX}}         \State \textit{XXX}XXX         \For{\texttt{(XXX)}}                     \If{XXX)}                  \State \textit{XXX} XXX                 \State XXX              \EndIf          \EndFor          \If{(XXX) }              \State xXX         \EndIf     \EndFor      %\State  \EndFor   \end{algorithmic} \end{algorithm}  \end{document}


Visa to transit in the US on the way to Canada for Polish citizens?

I am citizen of Poland and I will fly to Canada through US. So, do I need a US visa for my transit journey?


I'm not fully sure it is appropriate to ask here - apologies if it is not.  I want to set up a webservice (REST API) using PHP on top of Ubuntu. I looked over what the hosting company I'm already using is currently offering, and have identified two options. As I'm not knowledgeable about hardware or system administration, I can't tell which one is a better fit for me.       I'm mainly wondering about the CPU difference.  The former has 2 vCores, whatever those are... I have a virtual server from 3 years back at this company, and the OS tells me its CPU is running at 3300 MHz. The later uses the ODROID-XU4 board, which has a CPU with 4 cores running 1.9 GHz and 4 cores running at 1.3 GHz (or so Wikipedia tells me).  If I run Ubuntu + Apache + PHP, then am I better of with the faster vCores, or the more plenty cores of the ODROID? And are these other differences that are likely relevant?


how to make a bash alias to a script in folder

i have a pyton script that execute with python script.py when you are in the same folder.   I want to know if it's possible to make a bash alias like alias script='command' to execute the script also when you are outside the same folder than the script?  thx


Since I can't return a local variable, what's the best way to return a string from a C or C++ function?

As a follow-up to :  From what I've seen, this should work as expected:  void greet(){   char c[] = "Hello";   greetWith(c);   return; }   but this will cause undefined behavior:  char *greet(){    char c[] = "Hello";   return c; }   If I'm right, what's the best way to fix the second greet function? In an embedded environment? On a desktop?


Can't change the 'edit summary' comment?

I just created an .  I started editing the answer just before the 5 minutes were up, and saved it just after the 5 minutes were up, so the system substituted 'added 231 characters in body' as the edit summary comment (the 'editorial' comment, explaining why the change was made).  Normally (meaning 'in times past') you could reset the text of the comment by editing again and changing the comment.  This morning, it won't let me do that.  This is not an improvement — please revert to the old behaviour where the edit summary comment can be edited too.    Re-investigation  TL;DR — reproducible, but possibly intermittent.  (First seen with Firefox 23.0.1, reproduced with Chrome 29.0.1547.65, both running on Mac OS X 10.8.4, but on two different machines.)  I just created another  to the same question as before, and I've now deleted it (so only 10K users can see it at all).  The sequence of operations I did was:   Create the answer. Within a minute or so, edit the answer, but do not set the edit summary to anything, and do not save yet. When just over 5 minutes had elapsed from answer creation, I submitted the edit.  It got an automatic edit summary 'added 606 characters in body'. Immediately review changes to answer — to see the automatic comment. Return to answer and edit it again (within a minute or so), and try to change the edit summary (only). Save the edit.  Rereview the changes — automatic comment not changed. Return to answer and edit it again this time editing both edit summary and answer body. Save the edit. Rereview the changes — automatic comment not changed. Return to answer and edit it again, changing both body and edit summary. Save the edit. Rereview the changes — this time edit summary did change! Return to answer and edit it once more, recording disbelief. Save the edit. Rereview the changes — and the changed edit summary is still in effect.   I deleted the answer (since it was anything but an answer to the question), but 10K users can see what I wrote as I was reproducing it.


I have tried sudo apt-get clean and bleachbit. I know that my computer has plenty of free space. When I try to get an update it says /boot doesnt have enough free space. Is there any way I can just take some free space and give it to /boot? Sorry if this is a dumb question.  jack@jack-HP-Pavilion-TS-15-Notebook-PC:~$ df -h Filesystem                   Size  Used Avail Use% Mounted on /dev/mapper/ubuntu--vg-root  684G   14G  636G   3% / none                         4.0K     0  4.0K   0% /sys/fs/cgroup udev                         1.7G  4.0K  1.7G   1% /dev tmpfs                        335M  1.5M  334M   1% /run none                         5.0M     0  5.0M   0% /run/lock none                         1.7G  256K  1.7G   1% /run/shm none                         100M   64K  100M   1% /run/user /dev/sda2                    237M  179M   46M  80% /boot /dev/sda1                    511M  3.4M  508M   1% /boot/efi   It worked thanks riotejas


How to Create a Vinyl Plastic Toy Shader?

How can I make one of the vinyl toy plastic material like this?    Video:


$$a,b,c,d\ge 0$$ $$a\le 1$$ $$a+b\le 5$$ $$a+b+c\le 14$$ $$a+b+c+d\le 30$$  Prove that $\sqrt{a}+\sqrt{b}+\sqrt{c}+\sqrt{d}\le 10$.  We can subtract inequalities to get the answer, but that is wrong... I can't think of any another method... Any hints or suggestions will be helpful.


"Comments disabled" should not be a link

I have found a design bug. If comments are locked on a question, the "add comment" link is still a link, although it is not clickable and serves no purpose as a link. See for example here :    Hovering over the element still produces the link mouse pointer and the link changes its color.  This is related to . I would suggest to disable the link behavior and use a different tooltip.


Why is the $\frac{1}{2}$ significant in $\frac{1}{2}\rho v^2 C_d A$?

The formula for drag force is $F_D=\frac{1}{2}\rho v^2 C_d A$. Why is the $\frac{1}{2}$ significant here? I think that the  $C_d$ already serves the purpose. Is it for a historical reason?


Where do these weird spots on my photos come from?

I'm a complete DSLR newbie and just bought a used Nikon D3200 on ebay. The thing is, every time I take photos with the 55-200 objective, I get these weird spots on photos. They are especially easy to see in darker photos. Could you please point me to what I should check to find the problem and/or how I could fix this?  I'm attaching a sample photo and I tried to mark where these spots appear.


Why is the absolute value function $f : \mathbb{C} \rightarrow \mathbb{C}$ given by $f(z) = |z|$  not complex differentiable at any point $z_0$ in the plane?


Where is the sine function transcendental?

Most if the the values of the sine function that I am familiar with are irrational, like $\sin(\pi/3)$ or $\sin(\pi/6)$, or even rational like $\sin(\pi)$ or $\sin(0)$. Surely the sine function must give transcendental values somewhere, so my question is this: is there a way to determine whether the sine function will be transcendental or not? And if so, how?


I have a oracle database, one data file(users table space) of the instance got corrupt and another data file(containing application data) was deleted due to some issue. The database is in ARCHIVELOG mode but we neither have data file backup of both data files nor the pertaining archive logs. Hence, I guess we cannot go ahead with the recovery of data files. I am unable to open the database as the data files are not available and face.  ORA-01589: must use RESETLOGS or NORESETLOGS option for database open   I am just able to STARTUP MOUNT the database  I wanted to ask if we can somehow we can open the database by taking both the table spaces offline after STARTUP MOUNT the database instance. Or if there is any other way I can start the database.


Batch conversion of XY coordinates to latitude and longitude

I'm working on a school project. I have  from Sacramento, California   I want to convert the XY coordinates to latitude and longitude, in order to import it into tableau and use its mapping features.   I also have the address, if that makes it easier.  I have about 10,000 records, so I need a powerful tool to perform this conversion.


Is it wise to get another PhD in statistics after finishing PhD in math?

I am currently starting my second year of PhD study in mathematics at an institution ranked 70-80 in math in the US. In my first year, I have taken some courses in probability theory and passed two of three qualifying exams.  After taking the probability courses and since my girlfriend is pursuing a master in statistics. I found myself really interested in statistics, is it wise to get another PhD in statistics after finishing PhD in math, or should I try to apply for a PhD in statistics now?   Is it possible for me to get admitted to an good institution(ranked 30-40 in US) with only some backgrounds in math?


I have a question about cauchy sequences. If we think $a_n$ is a cauchy sequence, we ca say $a_n^2$ is cauchy sequence too. But how can I prove it? And if we would say $a_n^2$ is cauchy sequence, can we say $a_n$ is a cauchy sequence?  Thanks.


I am looking for a better way to balance columns at the end of each chapter of a two-column layout.  I have found several relevant approaches:   use \documentclass[onecolumn]{memoir} and \usepackage{multicols}, then wrap the content of each chapter with a multicol environment. This has proven mostly successful, but doesn't allow column floats and does some strange things with the vertical space at the top of the environment. I find myself using \noindent and negative \vspace to align text at the beginning when needed... as at the beginning of a chapter if the first element is a \section. use \documentclass[twocolumn]{memoir} and \usepackage{balance}, with a \balance command in the first column of the last page of each chapter. This should do a better job of the two-column layout, including allowing column floats and correctly aligning text at the start of the chapter. It will cause some complications for me because the documents are machine-generated and I am trying to avoid manual intervention for predictable situations. Also, I will note that when I actually tried this, very bad things happened (apparently an infinite loop). use \documentclass[twocolumn]{memoir} and \usepackage{flushend}, but that applies only to the end of the document, and not the other chapter ends. \flushcolsend does not seem to be recognized in my deployment (TexLive 2013, looks like), so I have not been able to test that.   I have found  of course, but that was two and a half years ago. I am wondering if there is a newer and better solution now. Balanced columns at the end of each chapter (or at any \clearpage, I suppose) seems like something that would be commonly desired.  MWE: Chapter 2 does what I want for all chapters (because it's the end of the document).  \documentclass[twocolumn]{memoir} \usepackage{lipsum} \usepackage{flushend}  % margins set explicitly to force consistence between MWEs \setlrmarginsandblock{0.75in}{0.75in}{*} \setulmarginsandblock{1.00in}{0.7in}{*} \setheadfoot{0.70in}{0.3in} \setheaderspaces{*}{0.15in}{*} \checkandfixthelayout  \begin{document} \chapter{Chapter 1} \lipsum[1-10] \chapter{Chapter 2} \lipsum[11-20] \end{document}   I can get balanced columns using multicol, but that costs me column floats (which would be nice to have, if not critical) and manual intervention at the beginning of the environment).  \documentclass[onecolumn]{memoir} \usepackage{lipsum} \usepackage{multicol}  % margins set explicitly to force consistence between MWEs \setlrmarginsandblock{0.75in}{0.75in}{*} \setulmarginsandblock{1.00in}{0.7in}{*} \setheadfoot{0.70in}{0.3in} \setheaderspaces{*}{0.15in}{*} \checkandfixthelayout  \begin{document} \chapter{Chapter 1} \begin{multicols}{2} \lipsum[1-10] \end{multicols} \chapter{Chapter 2} \begin{multicols}{2} \lipsum[11-20] \end{multicols} \end{document}   It feels like redefining \clearpage might be my way forward, if nothing else, but beyond that I have little idea what change to make.


I've been looking for a simple regex for URLs, does anybody have one handy that works well?  I didn't find one with the zend framework validation classes and have seen several implementations.


Probability that a random binary matrix will have full column rank?

If $S = \{ A_{m \times n} : m > n, A_{ij} \in \{0,1\} \}, $ is the set of all $m \times n$ binary matrices, and I choose a random matrix $r \in S$, what would be the probability that $r$ would have full column rank (each of the n columns would be linearly independent)?  Several papers simply claim that this probability is very high, but I'm curious as to what the exact probability would be, and how to compute it.


Is there a difference between these two, or is only one correct?     I shoot him. I shoot at him. She will shoot you. She will shoot at you.   How about these two?     The plane shot missiles at the base.   versus     The plane shot the base at its weapons bunker.


Yesterday i downloaded an Aster L1B image from USGS's website. If i load it in QGIS, it doesn't get displayed properly(location wise). Even after i've enabled "On the fly" option, it's not reading the WGS84 coordinate system (Figured out this type of glitch happened in ArcGIS also  - ). I tried to assign projection to the image but it didn't work (Got the message - hdf has no raster bands).   I tried the same in GRASS(r.in.gdal) and it got "Error: Selected band (1) doesn't exist"  But if i open the same image in Global Mapper, the image gets displayed perfectly.   How to solve this ?


90s (or earlier) book series: 4 teenagers from different worlds discover they used to be the rulers, and turned themselves young to escape something

I was reading it in the late 90s as a young teen. Scifi/fantasy type.   I think there were 4 teenagers from different worlds that all got lumped together somehow. They had some level of magic and they started traveling to get to the inner worlds. As they got there, their magic got more powerful.  At some point they found out that they used to be the rulers and they turned themselves young again to escape something....


structures are public while classes can be public and private

I was asked a question in my job interview:      "What is the difference between a struct and a class?"   and I simple replied:     "members of struct can be public only while members of a a class can be declared public or private."   but now I am little confused about my answer. I've been looking over the internet over a while for the difference between a strcut and a class but can not see this sort of difference anywhere. Was my answer to the employer incorrect?  If yes, what actually are the difference between struct and class in addition to this one:     members of a class are private by default, whereas members of a struct are public by default.


Let the centers of four circles with the radius  $R=a$ be on 4 vertexs a square with edge size $a$. How calculate the shaded area in this picture?


Install Windows XP to USB Hard Drive and Run from It

I wanted to know if there was a way (that worked!) to both Install and Run Windows XP Pro from a USB 2.0 connected Hard Drive. My system does allow to boot from external usb hard drive, but when I tried to install Windows XP to the USB HDD, it didn't allow me to.  My ultimate goal is to be able to move only the hard drives (w/ windows installed) to other identical systems, in times of maintenance, etc.


How to uninstall windows 7 in dual boot with windows 8?

My pc has  3 partition C, D and E. first i installed win 8 on C and then win 7 in D in dual boot. now how to uninstall win 7 and only win 8 installed.


I have a 120gb SSD which is dedicated to /root and a separate HDD for /home but for some reason my root drive is full and I can't see why. I've tried autoclean autoremove and clean but it hasn't helped. I've been having problems with lightdm and spent hours scanning a faulty usb drive with testdisk, its possible some big error logs could have been created, though I don't know where. Is there a way for me to trouble shoot this? $ df -h Filesystem      Size  Used Avail Use% Mounted on udev            2.9G     0  2.9G   0% /dev tmpfs           588M  1.8M  586M   1% /run /dev/nvme0n1p2   96G   91G  284M 100% / tmpfs           2.9G   26M  2.9G   1% /dev/shm tmpfs           5.0M  4.0K  5.0M   1% /run/lock tmpfs           2.9G     0  2.9G   0% /sys/fs/cgroup /dev/loop1      114M  114M     0 100% /snap/audacity/675 /dev/loop2      157M  157M     0 100% /snap/chromium/1213 /dev/loop4       55M   55M     0 100% /snap/core18/1754 /dev/loop3       97M   97M     0 100% /snap/core/9665 /dev/loop5       97M   97M     0 100% /snap/core/9436 /dev/loop6      159M  159M     0 100% /snap/chromium/1229 /dev/loop7      162M  162M     0 100% /snap/gnome-3-28-1804/128 /dev/loop9      146M  146M     0 100% /snap/firefox/392 /dev/loop10     256M  256M     0 100% /snap/gnome-3-34-1804/36 /dev/loop8      161M  161M     0 100% /snap/gnome-3-28-1804/116 /dev/loop11     145M  145M     0 100% /snap/firefox/387 /dev/loop12     256K  256K     0 100% /snap/gtk2-common-themes/13 /dev/loop0      114M  114M     0 100% /snap/audacity/666 /dev/loop13     256K  256K     0 100% /snap/gtk2-common-themes/9 /dev/loop14      63M   63M     0 100% /snap/gtk-common-themes/1506 /dev/loop15     116M  116M     0 100% /snap/spek/43 /dev/loop16      30M   30M     0 100% /snap/snapd/8140 /dev/nvme0n1p1  188M  7.8M  180M   5% /boot/efi /dev/loop17     291M  291M     0 100% /snap/vlc/1700 /dev/loop18      55M   55M     0 100% /snap/core18/1880 /dev/loop19     112M  112M     0 100% /snap/simplescreenrecorder-brlin/69 /dev/loop20      30M   30M     0 100% /snap/snapd/8542 /dev/loop21     291M  291M     0 100% /snap/vlc/1620 /dev/sda1       3.4T  490G  2.7T  16% /home tmpfs           588M   24K  588M   1% /run/user/1000  Ok, so syslog.1 and kernlog.1 are both 35.9 each, they probably would have gotten bigger if they could - this caused major problems with my system - lightdm stopped working and a login loop on boot. EDIT: I need to open these to find out what the cause was, but I suspect they will lock up my PC with the amount of data to open - can anyone confirm this or have any suggestions to see the contents? EDIT: Cause found, question answered. I think it may be better to ask another question RE: how to read/open the files EDIT: The cause seems to have been testdisk or the faulty drive. I aborted a deepscan on the drive and unplugged it. The top 20 lines of syslog, thanks to Soren A, are: Jul 27 14:09:08 ryzen kernel: [19606.795097] sd 10:0:0:0: [sdc] tag#0 device offline or changed


Finding the highest possible product from the make up of a number

The Question This question is a maths challenge and well to explain it better I will use an example. I have a number, say $20$ I can write this as $10 + 10$  (this is a make up of the number) Now I multiply the two numbers to get $100 = 10 * 10$ The challenge is to make the highest possible product in this manner and find a rule for this. Note : The composition (make up) can consist of a number of numbers. hehe. They have to be positive integers.  "Let n∈N be a positive integer. Let m∈N and a1,a2,…,am be positive integers such that a1+⋯+am=n. For what m and what a1,…,am is the product a1a2⋯am maximal" (Same, just rephrased, creds to SteamyRoot)  A solution Using the example $20$, to find the highest "production" number for this, we need to write out $20$ has a sum of as many as $3$ as we can use, so... $20 = 3 + 3 + 3 + 3 + 3 + 3 + 2$ Now we multiply them together $3*3*3*3*3*3*2 = 3^6 * 2 = 1458$


get the latest html value using javascript or Jquery that is auto generated

i have a control on the page that is an image:     that is fine an i can get the correct ID.  when another image is added dynamically using JS it looks like this:     when i get this ID it returns the first image ID and not with the value of "2_" or the new name attribute added into the dynamic object, code just returns blank.    code is based on the click event of the clicked image class:  $('.serviceSearch1 .nf-image').click(function () {     alert(this.name);     alert(this.id); });   on the browser source i can see the correct values though. Im confused as to what is going on and any help would be greatly appropriated!  I have no control over the html and javascript automation. That is due to a third party!   it looks like the browser as shown above is uptodate but in code its not updating (has old values).  marked in blue is the new repeating section that is auto generated (not by me by third party):    in each repeating section contains an image that i have shown above.  as noted when the image is clicked it calls the click event but the attribute values are all old. The first image contains no name attribute but any new repeating control does noting its current index. so first has none, second has "2_", third has "3_" and so on.. i need those name values but when i access them on the click event its blank and the ID's are the same as the first image. The controls are added dynamically by third party which i assume is using JS. hope that helps.


How can I clear the database entries for a specific object?

I added a custom object and some fields. I also added several entries to the database for this object. Can I delete certain entries or all of them at once that relate to my object in some predefined way, or do I need to write my own code for this?


Finding the first and the last address for a given IP address

It is small question, but I can't figure out these things. Please help me in simply way how to do this.  Consider the given ip address is 198.51.100.39/28. From this how can I found the first ,last and the number of address in this network


how to get the basename of complicated files

Here is an example of file path:  /isf/GCM/VPfig/Aas/AR/ClCo el Doma Republic/VMN CRTro.txt   What I want to get is the file basename:  VMN CRTro.txt   So I try the following:  echo /isf/GCM/VPfig/Aas/AR/ClCo el Doma Republic/VMN CRTro.txt | sed s'/\// /g' | awk '{print $NF}' CRTro.txt     <-- not as expected   Or  basename  /isf/GCM/VPfig/Aas/AR/ClCo el Doma Republic/VMN CRTro.txt basename: extra operand `Doma' Try `basename --help' for more information.     <-- basename cant handle spaces    What the best way to get the basename of a file with spaces in it?


For something to be a blackhole, it must have gravity and the radius must be smaller than the schwarzschild radius for its mass.  -Electrons have gravity  -Electron are theoretically believed to be infinitely small points  Since it has gravity it is capable of being a black hole. Since its radius is infinitely small, it must have a schwarzschild radius and thus be a black hole.


Emailing Professor Regarding Availability?

I'm trying to inquire professors regarding whether they accept masters students for graduate research assistant and I'm having trouble phrasing the email. If anyone could take a look and provide comment, that would be wonderful. Also just fyi the professor that I am applying to her field is within social media and communication and I'm trying to say that my background in social science and psychology research will be useful if she were to accept me. "Dear Professor XX, I am an incoming masters student at the school of XX and I was I was wondering if you will be accepting graduate research assistant this upcoming fall semester if at all? I have fours years of undergraduate research experience in social science and psychology and I hope to use my background to contribute to your research/lab in anyway possible. I am attaching my resume for your reference and I hope to hear from you soon! Thank You My Name"


I am running a multinomial logistic regression model (with 3 possible outcomes) in R. I am trying to find the best way to assess the predictive power/accuracy of the model, and the best thing I've come up with is using a ROC curve.  For multi-class ROC analysis, I know that there is the one vs. one comparison or the one vs. all comparison. For the one vs. one comparison, would I need three separate ROC curves for each possible combination of outcome comparisons? If so, do I need to make a third model for comparing the two outcomes that were initially being compared to the baseline outcome?  For one vs. all comparison is the threshold for a r "random model" now 33% instead of 50%?  And finally, is there a better way to go about doing this/visualizing it?  EDIT: I know the pROC package has a multi class.roc function, but I don't totally get what it does.


How to match all words of one column against words in another column?

I have two tables.   Table A:  Company_name ------------------------------- Tata consultancy  Infosys tech Atm service Air force firm  Table B:   Company1_name                    |  Id --------------------------------   ----- Atm and service.                 |   1 Honey tech.                      |   2 Tata & consultancy.              |   3 Graft soft.                      |   4 Atm, service.                    |   5    I want this result:  Id ---- 1 3 5   Description:     For each Company_name in table A, find a row in table B whose company1_name value has all the words from table A's value, and return the matching row's Id.   How to design a query for this in MySQL?


Best book for statistical inference (Self-study)

I want to develop some skills in statistical inference for a career in data science or machine learning. I purchased the book "All of Statistics" which is a good book, but there are not answer keys online, which makes it difficult to check whether or not I am doing things correctly. Can anyone suggest books that are similar, but have exercise answers available.


How can I find out which tab sound is coming from?

At times when I am using my web browser – normally Google Chrome – I hear sound playing and I am not sure where it's coming from.   I always do research our performing multiple tasks thus I have many tabs open. So I am wondering if there is a way of determining which tab has sound coming from instead of having to close/search all the tabs.  I'm currently using Windows 8.


Access Denied while installing SQL server 2016

I am getting the below error while installing SQL Server, when I've selected the domain account for SQL server engine startup account and press next.  (11) 2020-02-16 14:58:48 Slp: Sco: Attempting to check if container 'WinNT://DOMAIN' of user account exists (11) 2020-02-16 14:58:48 Slp: Prompting user if they want to retry this action due to the following failure: (11) 2020-02-16 14:58:48 Slp: ---------------------------------------- (11) 2020-02-16 14:58:48 Slp: The following is an exception stack listing the exceptions in outermost to innermost order (11) 2020-02-16 14:58:48 Slp: Inner exceptions are being indented (11) 2020-02-16 14:58:48 Slp:  (11) 2020-02-16 14:58:48 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException (11) 2020-02-16 14:58:48 Slp:     Message:  (11) 2020-02-16 14:58:48 Slp:         Access is denied. (11) 2020-02-16 14:58:48 Slp:          (11) 2020-02-16 14:58:48 Slp:     HResult : 0x84bb0001 (11) 2020-02-16 14:58:48 Slp:         FacilityCode : 1211 (4bb) (11) 2020-02-16 14:58:48 Slp:         ErrorCode : 1 (0001) (11) 2020-02-16 14:58:48 Slp:     Data:  (11) 2020-02-16 14:58:48 Slp:       WatsonData = Domain (11) 2020-02-16 14:58:48 Slp:       DisableRetry = true (11) 2020-02-16 14:58:48 Slp:     Inner exception type: System.UnauthorizedAccessException (11) 2020-02-16 14:58:48 Slp:         Message:  (11) 2020-02-16 14:58:48 Slp:                 Access is denied. (11) 2020-02-16 14:58:48 Slp:                  (11) 2020-02-16 14:58:48 Slp:         HResult : 0x80070005 (11) 2020-02-16 14:58:48 Slp:         Stack:  (11) 2020-02-16 14:58:48 Slp:                 at System.DirectoryServices.Interop.UnsafeNativeMethods.IAdsContainer.GetObject(String className, String relativeName) (11) 2020-02-16 14:58:48 Slp:                 at System.DirectoryServices.DirectoryEntries.Find(String name, String schemaClassName) (11) 2020-02-16 14:58:48 Slp:                 at Microsoft.SqlServer.Configuration.Sco.User.LookupADEntry()   I am installing SQL server 2016 STD version on Windows Server 2016 OS which is joined to a Domain controller.  Note:  I can install by selecting Local System as the startup account. later I can change through the configuration manager.  I can't do this workaround for Cluster installation.  Anybody faced this issue?


Automation that will start as soon as file get drop on client FTP

I am trying to create File drop automation when the file will get drop on client FTP and automation will import that data into Data Extension.  As of now client FTP credential is yet to come, so I made my laptop as a FTP server(one of the folder in my laptop named "FTP_Folder"). After that I added a file location in which I specified Location Type:External FTP site, url:, username, port no:21 and password.  I select File Drop as entry source and can see only two folder as Import and Triggered. Unable to see FTP folder, please suggest.


How can microwave radiation penetrate through walls but visible light cannot?

Obviously cell phone microwaves can penetrate more than just the walls of the house or an elevator...etc, why can't visible light at any strength penetrate the same objects?


I am wondering what technology is used in Stack Exchange to create the graphs like "reputation graph" in the network profile. Is it ?


Why does browser add bluish and brownish colors to a solid font color?

I'm wondering why my browser (Firefox) add blue tints on the right and brown tints on the left of a solid grey (#333333) font color as shown in the image below.    Could somebody explain to me why this happens?


How to prevent Windows Update from automatically restarting my comp?

Because I program a lot on my personal machine, sometimes I have a lot of windows open with articles on blogs etc that I would like to keep open as I'm working in addition to VS etc. Rather than turn my comp off at night or put it into hibernation (shudder), I simply leave it in standby or just plain on.   The problem is, every once in a while, Windows Update performs an update and automatically restarts my comp, which makes me lose everything. Where is the setting to prevent this from happening?


how to increase value of a variable integer in python

import re score = 0  capital_letters = r'[A-Z]' a = re.compile(capital_letters)  lowercase_letters = r'[a-z]' b = re.compile(lowercase_letters)  def increase_score (aValue, aScore):   aScore += aValue    return aScore  def upper_score(test_string, aScore):   if re.match(a, test_string):     aScore = increase_score(5, aScore)     print (aScore)     print("UPPERCASE")   else:      print("The password needs capital letters for a higher score")   def lower_score(test_string, aScore):     if re.match(b, test_string):       aScore = increase_score(5, aScore)   print (aScore)   print("LOWERCASE") else:   print("The password needs lowercase letters for a higher score")  password = input("Enter a password to check") upper_score(password, score) lower_score(password, score)   If I input all upper case letters I get this output:  5 UPPERCASE   The password needs lowercase letters for a higher score If I input all lower case letters I get this output:  The password needs capital letters for a higher score  5  LOWERCASE   When i mix upper case annd lowercase i get this output:   5  UPPERCASE  5  LOWERCASE   Even though there are both uppercase and lowercase letters the score is still 5 instead of 10.  I want the score to be cumulative and build ontop of each other.


What is a good street photography lens for Nikon D750?

I've been using a 50mm ƒ/1.8 on my Nikon D750 for some months now, and I'm looking to upgrade the lens for a new experience. Which lens should I get next? I'm wanting to do street photography, just walk-and-shoot style of photography.


Triangulation of a simple polygon (elementary proof?)

Let $C$ be a simple (Jordan) polygon in the Euclidean plane. I would like to prove the existence of a triangulation of $C$.  This seems possible if we assume the Jordan curve theorem. Can we prove it directly without using the theorem? Even better, is there an elementary proof?


Download Mojave on a non-Mojave suitable computer

I want to do a fresh install (and SSD upgrade) of Mojave on a mac-mini that currently runs Mojave, but whose performance is so horrendous that it is barely usable1.  Easy .. just download Mojave and create a bootable installer and I'm off to the races.  However, the system that I want to use to create the bootable installer is not capable of running Mojave (see my  question), and when I go to download the installer from the App store, Apple stops me with a message saying:     We could not complete your purchase.      This version of macOS 10.14.3 cannot be installed on this computer.   Is there any way to get around this limitation?  I am not attempting to install Mojave, just download it to a working system.  Edit   Note that I the suggested dupe is not a dupe of my problem.  The nominal answer suggests using the direct links on the App store to download the installers.  But as I mentioned above, that is what I have already tried to do (and have failed with the above noted message).  I am also trying to do the opposite of that question.  I am trying to download a newer version of macOS onto to a older computer.     And I've gone through all the standard checks and can't see anything that would cause the situation.  But there seems to be lots of people suffering unexplainable slowdowns.  This fresh install and new SSD is meant as a hail Mary.  And at $70 for a 500GB Mushkin SSD it is a no-brainer anyway.


So I was taught that I should use apostrophes when something possesses something else, but I'm not sure about the use of it's in the following situation:     ...and they found their way to a castle.  It's walls were made of pure gold.     My question is, should I use It's because the apostrophe means that the castle has possession of the wall, or should I not because it's is generally understood to be a concatenation of "it is"?  Or perhaps I should use Its' walls?


What exactly is entropy? Why is it measure of randomness?

What exactly is ? Why is it measure of randomness?  I have been told Entropy is measure of randomness and it increases everytime randomness increases. What is Randomness? Randomness in what?  Also let us take a gas filled in an adiabatic chamber which is allowed to expand against vacuum thus Work = 0. Also since it is adiabatic, $Q = 0$. By first law of thermodynamics, change in internal energy is also zero.  Here, entropy would increase since volume has increased but the walls were adiabatic, so be $dQ/T$ should be zero at all points and so should be the integration of it which equals change in entropy.  Please explain.


Did I screw up my USB stick? And if not, how can I fix it?

Basically, I am doing various tests with Linux/BSD and USB booting at the moment.  I had a live CD for a firewall that offered to partition a (hard) disk. I tried to use my flash drive for this - It is a 1GB memory stick and in FreeBSD, The image I had stated it needed to format a swap slice of 8GB - I clicked next and got an exception in the installer about out of bounds... next thing I know, I can't use the drive at all.  Previously, going to diskpart on Windows and simply issuing the clean command wipes the partition and I can reformat/partition - however, I keep getting read only errors:  Sticking the disk in shows :    Trying to format shows :    Extra error:    Going in to diskpart shows the following:  DiskPart has encountered an error: The media is write protected. See the System Event Log for more information.   Trying to look at the flags manually shows:  DISKPART> attributes disk Current Read-only State : Yes Read-only  : No Boot Disk  : No Pagefile Disk  : No Hibernation File Disk  : No Crashdump Disk  : No Clustered Disk  : No  DISKPART>   I have tried to manually clear the flag through attributes disk clear readonly, and despite success, I guess this relates to the main read-only flag and not the current one...  DISKPART> attributes disk clear readonly  Disk attributes cleared successfully.  DISKPART>   I have only used this USB stick a few times and I just can't (or don't want to) believe it went faulty this quick.  I have not tried any formatting/partitioning in BSD as it is beyond me - but that is where it was created.  Can anyone recommend anything? Or is the disk just damaged?    edit -  What makes me think this is salvageable is that I have had a lot of USB drives go bad over the years, however, they usually become completely invisible - either nothing happens when you connect or it is the equivalent of sticking a USB card reader with no media in (you see a new device, but not disk mounted)... I have NEVER seen a disk actually state the capacity and seem ok, but just not read.  In addition, what I did just doesn't seem that much out of the ordinary!  Anyway... crossing my fingers.


My computer is running the latest version of Ubuntu. Can I install windows 8 and clean off Ubuntu? I don't want to duel boot.