What parameters for lightweight HTML5 video with avconv?

I have this:  avconv version 0.8.16-6:0.8.16-1, Copyright (c) 2000-2014 the Libav developers built on Sep 16 2014 23:10:48 with gcc 4.7.2  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'film.mp4':   Metadata:     major_brand     : mp42     minor_version   : 0     compatible_brands: mp42mp41     creation_time   : 2013-07-09 17:41:04   Duration: 00:00:15.04, start: 0.000000, bitrate: 6132 kb/s     Stream #0.0(eng): Video: h264 (Main), yuv420p, 1280x720 [PAR 1:1 DAR 16:9],                                                               5951 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tbc     Metadata:       creation_time   : 2013-07-09 17:41:04     Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 189 kb/s     Metadata:       creation_time   : 2013-07-09 17:41:04   and want to down quality to standard PAL - how to do with ffmpeg/avconv?  As a result I want mp4/webm/ogg - something html5 compliant - but as light as possible (that's why I downscalling into PAL)


In my document (KOMA script article) I use the listings package for code listings and the caption package for additional control over captions.  My problem is that some listings flow over multiple pages. When this occurs I would like to have something like "Listing n, continued", or something to that effect at the start of each additional page --- so a contination caption.  I know the captions package supports breaking up captions and doing the "continued" stuff, but am unsure how to get the listings package on board. Any ideas?


Bottoms of badges are cut off on mobile site

This has been going on for a couple of days:    The bottoms of the badges are cut off on the mobile site.  Android 5.1.1, on both the default browser and Chrome 46.


Error when creating data with special characters and numbers

My code will not project and store the feature layer in the scratch.gdb. "ERROR 999999 ... The table name is invalid. The table was not found. [17_5330_51961Lake]"  The interpreter doesn't like "-" characters or beginning or ending in a number. Does anyone know of a work around?  import arcpy import os  mxd = arcpy.mapping.MapDocument("Current") mxdpath = mxd.filePath (filepath, filename) = os.path.split(mxdpath) MCP_Path = str(filepath)  srl = os.path.join(MCP_Path, r"CoordinateSystems\NAD 1983 UTM Zone 17N.prj")  WBYLID = "17-5330-51961"  WBYLIDlabel = WBYLID.replace("-","_")  LakeOut = os.path.join(MCP_Path + "\OutputData\Scratch.gdb", WBYLIDlabel + "Lake") arcpy.Project_management(fl, LakeOut, srl)


Bootstrap align text vertically to switch button

I want to align a text in a  or  element to this custom switch button:    .switch {   position: relative;   display: inline-block;   width: 60px;   height: 34px; }  .switch input {   opacity: 0;   width: 0;   height: 0; }  .slider {   position: absolute;   cursor: pointer;   top: 0;   left: 0;   right: 0;   bottom: 0;   background-color: #ccc;   -webkit-transition: .4s;   transition: .4s; }  .slider:before {   position: absolute;   content: "";   height: 26px;   width: 26px;   left: 4px;   bottom: 4px;   background-color: white;   -webkit-transition: .4s;   transition: .4s; }  input:checked+.slider {   background-color: #2196F3; }  input:focus+.slider {   box-shadow: 0 0 1px #2196F3; }  input:checked+.slider:before {   -webkit-transform: translateX(26px);   -ms-transform: translateX(26px);   transform: translateX(26px); } /* Rounded sliders */ .slider.round {   border-radius: 34px; } .slider.round:before {   border-radius: 50%; } Custom switch    <input type="checkbox" checked>         I cannot get it working setting the margin or float on the switch class element.


I know that Cache is working memory that is faster than RAM, but in my system there is only 3MB of it, and most programs will require more working memory than 3MB.  So that makes me question what cache is used for in my system.


No sound settings available in the settings manager window

Last night I decided to upgrade my system to the latest version of Xubuntu, 13.10. The process went fine, but now I'm facing this strange issue. There is no sound settings available in the settings manager window and the volume indicator looks like when the volume is muted, clicking the indicator being broken as well. :    I tried to do a alsa force-reload followed by a restart of the computer, but didn't help. Any thoughts ?  l.e. After some digging I found out that the volume control exists, so this must be a volume indicator issue.


Very simple question. I've been looking at JSpot documentation.   What does T stand for?  When it says it wants a list of type T I don't understand what T is?


Using three different reference lists in one document with different citation styles

I try to include three different reference lists into one article, all using different citation styles, like e.g. in this mini layout example:  \documentclass{article}  \begin{document}  We have regular References, like e.g. Hamburger (1995), but also still [1],[2] and the third one [R1].  \section{Other references} \hangindent+25pt \hangafter=1 [1] Meyer, D.: Really, really interesting stuff, it's a must read. Publ. Int. Stu. \textbf{112}, 1--21 (2014)\\  \noindent \hangindent+25pt \hangafter=1 [2] Smith, D.: Even more interesting stuff than Meyer has. Publ. Int. Stu. \textbf{122}, 1--21 (2014)\\  \noindent \hangindent+25pt \hangafter=1 [R1] Smith, D.: One can make even an R-package from that stuff. Publ. Int. Comp. \textbf{1}, 21--41 (2014)  \section{References} \hangindent+25pt \hangafter=1 Hamburger, C.: Quasimonotonicity, regularity and duality for nonlinear systems of partial differential equations. Ann. Mat. Pura. Appl. \textbf{169}, 321--354 (1995)  \end{document}   Of course, I could hard-code the entire reference list as in the layout example above, but is there any way to use a \cite command with tailored bst files? I tried also the multibib library, but this only adds prefixes to all different reference lists, by using e.g. \citeR,... with \usepackage[labeled,resetlabels]{multibib} resulting in reference lists like  [A1] ... [A2] ...  [R1] ...  [C1] ...   What I would need is an option in multibib that avoids the numbering for one sublist entirely (dropping the C1), for one it should use only consecutive numbers (dropping the As) and for the third it should add a prefix like it is in R1.  Is there any alternative to multibib that could do the trick? Or is there any way of tailoring three bst files for multibib so that the three references lists look like I want them to be?


$\mathbb{Q}$ is not isomorphic to $\mathbb{Q}^+$

How can we show that $\mathbb{Q}$ as an additive group is not isomorphic to $\mathbb{Q}^+$ as a multiplicative group?  Both have a countable number of elements, neither is cyclic, neither has an element $x\neq e$ such that $x^2=e$, both are abelian ... I don't know what to use.


How can I boot into the recovery from terminal? I'm using LG p970/CM10/cwm5


Can't Read System Fonts After Upgrade to Ubuntu 17.10

See the screenshot for an example of how all of my system fonts work. Fortunately, I can still read web pages and what I'm typing here.  Screenshot of desktop and open windows:


Is it possible to install Ubuntu FROM a smartphone?

So, I'm in a situation were I want to install ubuntu in my laptop (currently running windows 8) but I don't happen to have pendrives, CDs or the like available. The only "external" device I have with me is a samsung galaxy s2 with a micro SD-card in it.   Is it possible to use the phone as a pendrive to install ubuntu from it somehow? (without damaging the phone's OS and data)


Summation Proof Dealing With 3s Multiples

So the problem is as follows:  Prove that if the sum of digits of a decimal $n$ is three's multiple, then n is three's multiple by direct proof. For example, $11234567$ is 3's multiple because $1+1+2+3+4+5+6+7=24$, and in fact, $11234567$ is $3744856 * 3$. Use $10^n \equiv 1 \pmod3$ if necessary.  I am having a lot of problems with this question seeing as it is a rather difficult problem. Could someone please help me solve this? Thank you!


For integer $n>1$, can $\sum_{k=1}^{n}\sqrt{k}$ be a rational number? Can it be an integer?

I know that the sum of two (or more) irrational numbers can be rational. For example, both $\sqrt{2}$ and $1-\sqrt{2}$ are irrational numbers, but their sum is rational.  Also I know that $\sqrt{m}$ is either integer or an irrational number for any natural number $m$. In other words, it can not be a rational number unless it is an integer.  I have no problem to prove the rationality/irrationality of the square root of any natural number. Using "direct proof" for rational numbers, and using "proof by contradiction" for irrational numbers.  I could not combine what I know together to answer the following questions:       Can   $$\sum_{k=1}^{n}\sqrt{k}=\sqrt{1}+\sqrt{2}+\sqrt{3}+\dots+\sqrt{n}$$   be rational for any integer $n>1$? If yes, then what is the least such   $n$?      Can it be an integer for any integer $n>1$? If yes, then what is the   least such $n$?     Note: If it can not be an integer, does not mean it can not be rational.    Any help would be really appreciated.


Why is it difficult to differentiate between interference and diffraction?

Why is it difficult to differentiate between  and ? Is it because we don't clearly understand how both of these phenomenon takes place?   My thoughts: From an answer to one of my earlier question  I could understand that light waves behave differently when it strikes a slit which is of several times bigger than its wavelength and when it strikes a slit of size comparable to it its wavelength.In the former case the different points on the slit acts as wave-front sources producing circular wave fronts which interfere to form the diffraction pattern but in the later case plane wave-front striking a slit after passing through it forms circular wave-fronts and two such wave-fronts from two different slits interfere to form the interference pattern. But, I'm not satisfied by that because I don't get any intuition about points on the slit acting as wavefront sources. So, what is actually happening?


I am still getting used to dual running Ubuntu on my Windows 7 machine using Wubi. I currently have Ubuntu 12.01 and want to upgrade to 13.04. According to the instructions here :  I first need to launch the dash and search for an "Upgrade Manager". I do that but the only option I get is a software updater.   Any help?  PS, I am still getting used to using a terminal so I would really appreciate not using the terminal quite yet till I am more familiar with it (if at all possible).


Given that an arbitrary $a_n > 0$, and $\sum a_n$ converges, then does $\sum \sin (a_n)$ converge also? Honestly I don't know where to start with this question. I tried some examples like $\frac{1}{n^2}$, $\frac{n^2+n}{n^4+5}$, and they all seem to follow this statement. I am beginning to think that this statement is correct. But how?


When I go to a restaurant in the USA and order food for takeout, am I supposed to tip?


im trying to execute the program that should access the webservice using Main method, im getting below error, im working on stand alone class, not on any server,   Exception in thread "main" javax.xml.ws.WebServiceException: java.lang.NullPointerException     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:194)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)     at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:598)     at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:557)     at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:542)     at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:439)     at com.sun.xml.ws.client.Stub.process(Stub.java:222)     at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:135)     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)     at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)     at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:118)     at com.sun.proxy.$Proxy28.eccBPNoSyncSI(Unknown Source)     at za.co.interfile.cf.BPDetailsRoe.getBPDetails(BPDetailsRoe.java:71)     at za.co.interfile.cf.BPDetailsRoe.getBPNumber(BPDetailsRoe.java:38)     at za.co.interfile.cf.BPDetailsRoe.main(BPDetailsRoe.java:145)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Caused by: java.lang.NullPointerException     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:202)     at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:177)     ... 19 more  im able to access the webservices using SOAP UI, or when i deploy to glassfish, now im trying to do stand alone program that will execute the webservice, i have searched on similar problems, most of them they talk about when u deploy to certain server, im not deploying to any server for this problem,


What's the best method to poach an egg without it turning into an eggy soupy mess?


What resources are there for PostGIS maintenance?

I am recommending the usage of a Postgres+PostGIS database to a client for storage of their Geospatial Data. I need to recommend the processes for maintenance of the database.  The Client is an Oracle user, so they are used to constant active maintenance of databases.  My personal experience of PostGIS has only been on small to medium databases, and they have been very low maintenance, requiring vacuuming once in a few months.  Where can I read about maintenance of Postgres+PostGIS databases?


I just installed Ubuntu twice and I get a GRUB Error.   I think it's because of the mount point. Since I put it at the root of the HDD. Where do I put it?   Is it / or /boot? Or am I completely wrong?


Probability that Player A eventually wins overall game eventually

Have been working on this problem for a while. No clue how to approach! Player A and Player B are playing a game with 3 possible results: win, tie and lose. Player A’s probabilities for each outcome are:  Win: 0.3  Tie: 0.2  Lose: 0.5   A win gives 2 points, tie gives each 1 point, and loss gives 0 points. The first of the two players to win 3 or more points than the other will win the match. What is the probability that Player A will eventually win? Thanks!


What is the difference between `this instanceof String` and `"foo" instanceof String`?

I'm extending Object like this:  Object.prototype.is_a = function (x) {   return this instanceof x; }   All works as expected  "foo".is_a(String) // true "foo".is_a(Object) // true "foo".is_a(Array) // false "foo".is_a(Function) // false "foo".is_a(Boolean) // false "foo".is_a(Date) // false "foo".is_a(Number) // false "foo".is_a(RegExp) // false   but, when  "foo" instanceof String // false   this keyword on the is_a() function is same as foo right? Why does it return different results?


Does the class below implement the singleton pattern? I'm really confused.  class Customer {      static private Map costumers = new HashMap();      private Customer() {     }      public static Customer getInstance(String name) {         Customer instance = (Customer) costumers.get(name);         if (instance == null) {             instance = new Customer();             costumers.put(name, instance);         }         return instance;      } }   Thanks.


Package tikz Error when writing some text in verbatim

I got from texlive on windows 8.1 an error when I wrote some text in verbatim.   The error was:  (c:/texlive/2013/texmf-dist/tex/latex/lm/t1lmtt.fd) (c:/texlive/2013/texmf-dist/tex/latex/lm/ts1lmtt.fd)  ! Package tikz Error: Sorry, some package has redefined the meaning of the math -mode dollar sign. This is incompatible with tikz and its calc library and migh t cause unrecoverable errors.  See the tikz package documentation for explanation. Type  H <return>  for immediate help.   But if I remove the verbatim mode the tex file can be compiled with no error.   Could anyone help with this? Thank you in advance.   EDIT:  I've upload my tex to . In addition, my class file is .


How to resolve "Not Found" + "403 Forbidden" errors on "Request New Password" link

When I click on the "Request New Password" button, I get the following message:  Not Found  The requested URL /user/password was not found on this server.  Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.  Apache Server at berniesdogtraining.com Port 80


How to access the output of a process after the terminal was closed

I started an application from the terminal which prints the status and various logs in the console so that I can read them from the terminal. I accidentally closed the terminal but the application is still running, however, I can't see the logs anymore. Is there a way to get back access to that process console which is still running. ?   I am on Red Hat Enterprise Linux Server 7.1 (Maipo).  I was running an application in tornado, a python framework using the following command.   python2.7 /proj/website/app.py 8080   8080 is the port number.


I have a 6 sided polygon and I'm adding loop cuts to one of the sides not even with either the X or the Y axis. I was wondering, is there a way to scale it along the edge that the loop cut is on?


A word for somebody who supports things fleetingly and whilst they are popular

I'm looking for a word for somebody who supports things fleetingly and whilst they are popular, for example a sports team on a winning streak, or something which is currently in fashion.


Why is there no natural isomorphism between $V$ and its dual?

Question While looking over the exercise $3.F-34$ in Linear Algebra Done Right, I encountered the following paragraph  Suppose $V$ is finite dimensional. Then $V$ and $V'$ are isomorphic, but finding an isomorphism from $V$ onto $V'$, generally, requires choosing a basis of $V$. In contrast, the isomorphism from $V$ to $V''$ does not require a choice of basis and thus is considered more natural.  and these questions showed up in my mind: $1$. Does the word natural just means that we don't need to choose a basis? I have seen the word canonical is used in the similar manner too. Is there a more precise definition for natural or canonical? $2$. Assuming the answer to question $1$ is Yes, then why there is no natural isomorphism from $V$ onto $V'$? $3$. I think that there is a relation between the answer to question $2$ and the proof of Riesz representation theorem. So, if we cannot find a natural isomorphism between $V$ and $V'$ then it means that we cannot prove Riesz representation theorem without choosing a basis of $V$. Is this true?  Complementary Informations The Isomorphism from $V$ onto $V^{''}$. Suppose $V$ is a finite dimensional vector space. Consider the following map $$ \Lambda(v)(\phi)=\phi(v),  \qquad \forall v \in V, \,\, \forall \phi \in V^{'} $$ then $\Lambda$ is an isomorphism from $V$ onto $V''$. Riesz Representation Theorem. Suppose $V$ is a finite dimensional linear space equipped with an inner product and $\phi$ is a linear functional on $V$. Then there is a unique vector $v_0 \in V$ such that $$\phi(v) = {\langle v,v_0 \rangle}_{V}, \qquad \forall v \in V$$  Other Related Posts I found the following posts related to this question on MSE and MO. , , , .


Overloading the '+' operator in .h file, linker error

I am not able to overload the + operator and I have no idea why. I've tried a lot of solutions but I didn't manage to solve this problem. (Operator += works fine)  I don't get it. Could you help?  I get error:     LNK2019: unresolved external symbol "public: __thiscall   Zbior::Zbior(class Zbior const &)"   (??0?$Zbior@H@@QAE@ABV0@@Z) referenced in function "public: class   Zbior __thiscall Zbior::operator+(class Zbior const &)"   (??H?$Zbior@H@@QAE?AV0@ABV0@@Z)   The problem does not exist when I change the return object of method: Zbior  operator+ (const Zbior &other)  to   return Zbior<T>();   My .h file is:  template<class T> class Zbior { public:     Zbior(void);     ~Zbior(void);     void dodajElement(T elem);     Zbior<T>(vector<T> elementyZbioru);     Zbior<T>(Zbior<T> const &other);          Zbior<T>& operator+=(Zbior<T> const &other);      Zbior<T>  operator+ (const Zbior<T> &other)     {         vector<T> otherVec = other.elementyZbioru;         vector<T> thisVec = elementyZbioru;         Zbior<T> wyjZbior = Zbior<T>();         for (vector<T>::iterator p = otherVec.begin(); p != otherVec.end(); ++p)         {             wyjZbior.dodajElement(*p);         }         for (vector<T>::iterator p = thisVec.begin(); p != thisVec.end(); ++p)         {             wyjZbior.dodajElement(*p);         }           return Zbior<T>(wyjZbior);     } private:     vector<T> elementyZbioru;  };   And my .cpp file is:  #include "Zbior.h"  template<class T> Zbior<T>::Zbior(void) { }  template<class T> Zbior<T>::~Zbior(void) { }  template<class T> Zbior<T>::Zbior(vector<T> elementyZbioru) {     this->elementyZbioru = elementyZbioru; }  template<class T> void Zbior<T>::dodajElement(T  elem){     this->elementyZbioru.push_back(elem); } template<class T> Zbior<T>& Zbior<T>::operator+=(Zbior<T> const &inny){      vector<T> innyElementyZbioru = (inny.elementyZbioru);      for (vector<T>::iterator p = innyElementyZbioru.begin(); p != innyElementyZbioru.end(); ++p)     {         dodajElement(*p);     }     return *this; }   Ussage of the class:  #include "stdafx.h" #include "Zbior.cpp" #include "Zbior.h"   int _tmain(int argc, _TCHAR* argv[]) {     Zbior<int> zb1 = Zbior < int>();     zb1.dodajElement(1);     zb1.dodajElement(1312);        Zbior<int> zb2 = Zbior < int>();     zb2.dodajElement(21);     zb2.dodajElement(21312);      //zb1 += zb2;     Zbior<int> zb = zb1 + zb2;       //Zbior<Zbior<int>> zbzb = Zbior<Zbior<int>> ();     //zbzb.dodajElement(zb1);     //zbzb.dodajElement(zb2);      system("PAUSE");     return 0; }


I was recently using a VPN on Google Chrome and was on Google a lot. Now the search engine and other websites have switched to the country settings of the country the VPN was accessing.   Is there a way I can change back to my local settings?


Why dont we account the rotation of the earth in aircrafts? Is it just because of the air or is there more to it?

Today there was a seminar regarding modern air crafts held in my school. At the starting of the lecture, we were asked a question which I found quite intriguing.  "Why does a helicopter or a fixed wing aircraft or anything stationary in mid air need to move to get to a certain place? Why cant it just stay mid air and wait for the destination to arrive to itself?"  (We were asked to answer it at the end of the lecture. Throughout the lecture I was thinking about the answer. I know that on ground due to friction, the relative velocity between the earth and us is zero hence we don't observe any such effect. Also according to what I can imagine, at lower altitudes, the air closer to earth would also be in motion and that might be the reason due to which the helicopter stays in one place with respect to the ground.)  But what about high altitudes where the air density is low. I know my reasoning might be incorrect. I looked through the net but did not find a satisfying answer.  (Edited) Add-ons to make the question clear (1) Initially when an airplane is on the ground, it moves with the Earth.   (2) Assume this airplane takes off in a direction opposite to the Earth's direction of rotation. There will be a point, when the plane acquires equal speed of the Earth but in opposite direction.   (3) So as viewed from the space, the airplane would appear stationary.   (4) Assume that the engine of the airplane is self sufficient and it does not require external air as oxidizer , and that the viscous effects are neglected (though theoretically , without viscosity, the plane would not fly, but this is just an assumption) .  (5) Now in such a case where the plane is mid air and is stationary when viewed from space, would my proposition hold true?


Confusion with the proof that the Cantor set is closed

I have encountered the definition of Cantor set and its property. Cantor set is constructed by removing the middle third open set of each interval .So each time we get some union of closed sets. As $F_0=[0,1]$ $F_1=[0,1/3]\cup [2/3,1]$ $F_2=[0,1/9]\cup [2/9,1/3]\cup [2/3,7/9]\cup [8/9,1]$ So on , That for $F_n$ we get the Union of $2^n$ closed interval . I know that finite union of closed interval is closed, but this is not true for arbitarly union. As I had a counterexample:  $\cup$ {{1/n}|for $n$ $\in N$} as this is not closed as $0$ is not in  that union. So what is the argument here to say that $F_n$ is closed for any $ n$ . As we are using this fact to prove the Cantor set to be closed as $F=\cap_{n\to \infty} F_n$ i.e arbitarly intersection of closed set is closed . Where am I misunderstanding? Any help will be appreciated.


put partly transpared photo on top of panorama

What is it nessesary to do if I want to see just black edges from background image in image placed on top?  Here are links to source images      This is what I want to create:    You can see there are edges from background panorama mountains in picture on top. Any ideas, please?


How do I list distinct values as columns?

I received a request to export data from my asp.net mvc project using linq to an excel spreadsheet. Usually this is an easy task, however, in this scenario the person requesting the data would like the export from example or list A to look like example B  Example A (current export)  Id | CustomerNum | CustomerName | FruitName | Charge ____________________________________________________ 1  | 1026        | Bob          | Banana    | 3.00  2  | 1032        | Jill         | Apple     | 2.00 3  | 1026        | Bob          | Apple     | 3.00 4  | 1144        | Marvin       | Banana    | 1.00 5  | 1753        | Sam          | Pear      | 4.00 6  | 1026        | Bob          | Banana    | 3.00      Example B (requested export format)  Id | CustomerNum | CustomerName | Banana | Apple | Pear  _________________________________________________________ 1  | 1026        | Bob          | 6.00   | 3.00  | 2  | 1032        | Jill         | 0      | 2.00  | 3  | 1144        | Marvin       | 1.00   | 0     | 5  | 1753        | Sam          | 0      | 0     | 4.00   I have never seen where distinct row values were used as columns. How should I go about this?


How to rework a "System Events" command in AppleScript, so that it automatically works in all applications?

With the following AppleScript code within a "Run AppleScript" action in a Service:  tell application "System Events"     set theSBounds to {{572, 64}, {332, 515}}     set position of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 1 of theSBounds     set size of window "Google Hangouts - myemailaddress@gmail.com" of application process "Google Chrome" to item 2 of theSBounds end tell   the Service will only work if the application from which that Service has been called has been added to the list of applications under "Allow the apps below to control your computer." This list is found at System Preferences → Security & Privacy → Accessibility.  Is it possible to modify the AppleScript code somehow so that adding every application on one's computer to the list is not necessary? Or, so that, one only needs to add one item to the list, as opposed to every application on one's computer?  I thought that something like this might work:  do shell script "osascript -e 'tell application \"System Events\"' -e 'set theSBounds to {{572, 64}, {332, 515}}' -e 'set position of window \"Google Hangouts - myemailaddress@gmail.com\" of application process \"Google Chrome\" to item 1 of theSBounds' -e 'set size of window \"Google Hangouts - myemailaddress@gmail.com\" of application process \"Google Chrome\" to item 2 of theSBounds' -e 'end tell'" with administrator privileges   but this code also requires that the application from which the Service is run is added to the Accessibility list.  Note: I only want to run this AppleScript as a Service, and not in an Automator-created Application, because the code receives selected text as its input (system-wide).


Trying to convert a UNIX time in c# into DateTime

So i have tried some other solutions from here but none have worked. My current method is trying to use the TimeSpan method:  unixtime is an int, contains '1502557200'  var test_date = TimeSpan.FromSeconds(unixtime);   test_date became '{17390.17:00:00}'  What am I doing wrong? I was trying to avoid creating a method to handle the conversion, and just trying to do it inline,  Thankyou


Axial ratio of a square microstrip antenna

I am currently designing by CP microstrip antenna using CST. The picture is shown below. However, when I view the axial ratio plot, also shown below it is way above 3dB at 90 degrees. the patch is 31,95 by 31.95mm.  The resonate frequency output is correct which is 915MHz. I have tried varying multiple variables such as the length of the patch, length of the main feed, the distance between the branched feed line and the patch (quater-wavelength feed line). But the axial ratio does not change much. How can I alter the axial ratio to be below 3dB but keep the resonate frequency at 915MHz?


Is there a more common term for "hemigroup"?

In The Number System by Thurston the author introduces an algebraic structure he calls a "hemigroup".  It doesn't appear to be a very common usage.  The laws of a hemigroup are:   (i)   $\left(x*y\right)*z=x*\left(y*z\right)$ (ii)  $\left(x*y\right)=\left(y*x\right)$ (iii) $\left(x*y\right)=\left(x*z\right)\implies{y=z}$ (iv)  $\exists_e e*e=e$   Apparently there are other definitions for the same term.  Is there a more common term than "hemigroup" for this kind of structure?


Won't the absence of Infinity Stones affect the main timeline?

As the Ancient One explains to Bruce Banner:     The Infinity Stones create what you experience as the flow of time. Remove one stone and that flow splits.   She asks Banner to return them to their respective locations correctly.  Won't the destruction of the 6 Stones impact the universe in the current timeline?


Let $r\in\mathbb{Q}$. If $r^2\in\mathbb{Z}$ then $r\in\mathbb{Z}$.

Perhaps I am missing something really obvious, but what I do know is that  for some $p,q\in\mathbb{Z}$ such that  $r=p/q$ with $q\neq0$, we have that $r^2=p^2/q^2$.   Furthermore, the only way $p^2/q^2$ can be an integer is if $q^2 \mid p^2$; thus, there exists $k\in\mathbb{Z}$ such that $p^2/q^2=k$.  If we prove that such $k$ is a perfect square (except when $r=0$, which is a trivial case) then we are finished.   Is there another way to prove this or is it possible to prove that $k$ is in fact a perfect square?


I have over 1000 points at Stack Overflow, but only 1 point on Server Fault.  It's so painful asking questions on Server Fault.    Since I write a lot of code for an enterprise environment, I have the occasional server question.    Shouldn't I get some credit for being good at Stack Overflow? It wouldn't even let me post two URLs on my last question.


On which trains in Japan is reservation mandatory?

The vast majority of Japanese trains have so-called non-reserved (or unreserved) seats (自由席, literally "free seats"), which do not allow reservation and are available on a first-come, first-served basis. However, some trains have only reserved seats (指定席), which require prior reservation. What are the most prominent ones, and how to find out whether a given train has non-reserved seats?


Setting the points of a nurbs curve to (XYZ) in worldspace

I`m trying to snap the ends of a curve, to two points in space. However, I can't get past the fact that It requires worldspace input of a matrix instead of a vector. I've tried to convert worldspace to local, and backwards but its not my strongpoint. Any ideas are more then welcome. Thank you! import bpy from bpy import context, data, ops from mathutils import Euler, Matrix, Quaternion, Vector   # Create bezier path. ops.curve.primitive_nurbs_path_add(enter_editmode=True) #ops.curve.subdivide(number_cuts=0) ops.transform.resize(value=(2.0, 2.0, 3.5)) ops.object.mode_set(mode='OBJECT') curve = context.active_object curve.name = 'line'   # snap one end of curve to A other to B location_a = (1,1,0) # (XYZ) location_b = (2,2,0) # (XYZ)   curve.data.splines[0].points[0].co = Vector(location_a) # error ->    # Line 20 -> ValueError: bpy_struct: item.attr = val: sequences of dimension 0 should contain 4 items, not 3 ```


Verbs that follow an amount of time, singular or plural?

Which one is grammatically correct?        One hour and a half is all you have left.   One hour and a half are all you have left.   Two hours is all you have left.   Two hours are all you have left.      And why?


"Object of" vs. "subject of" -- which one is correct? Does it depend on context?

(Tried to search to see if this question had already been asked, but could not find it amongst the many questions concerning pronoun declension and objects and subjects as parts of speech.)  What, exactly, is the difference between the following two sentences? Are they both correct -- or is one considered more correct in certain contexts or constructions?      Jim's wailing child was the subject of much scrutiny.     Jim's wailing child was the object of much scrutiny.    Each of these usages is ubiquitous, and it's not uncommon to see both within the span of a few sentences. (For example, Google estimates over 60,000 results for "subject of study" "object of study".)  The difficulty seems to be that both words have several senses, and they are somewhat overlapping in this case. As a lover of grammar, I am frustrated that I cannot resolve this question in my mind.  Can anyone help clarify this for me?


How do you estimate correlations between ordinal and binary data in SPSS?

I'm struggling with my lab report. I have a questionnaire which contains Likert responses (1-7) as well as questions that require only yes or no answers. I want to see if there is a correlation between higher scores on the likert scale and responses to the binary answers to the other questions.   Specifically - the likert response is about anxiety levels. The binary (yes/no) answer is about negative consequences due to alcohol use. I want to just run the one ordinal likert item with all the negative consequence responses to see if there is a relationship. Can anyone help me?     Thanks so much for the fast comments. It definitely assures me that Spearman's Rho can be used but my main problem is the fact that i am mixing binary and ordinal variables together in the one correlation matrix.  I have one ordinal variable (anxiety - 1-7 on likert scale) crossed with 13 dichotomous (0 or 1 representing yes or no) to answers ("have you ever been hospitalised due to your alcohol use?). I get statistically significant answers (<.05 and < .01 but the Correlation coefficients are tiny (i.e o.2) at best.   the hospitalisation is the DV an the anxiety levels the IV.   I just think i'm doing something wrong here. should i collapse the 13 binary variables in to one some how?   i can't see how SPSS will recognise the values between 1-7 when correlating with binary answers. i keep thinking it will just read that there is something in that box (ordinal) but not recognise the value (i.e 1-7) . but people keep saying that SPSS does in fact recognise this difference and account for it.


Using existing framework for new PoM framework bad practice?

So I am implementing my own Page Object Model framework for a web application. It's my first time writing my own framework but I think I for the most part understand how I need to write it.  The framework is written in Ruby, using Selenium webdriver. However I am used to using Capybara to write test scripts. So I have also chosen to write the framework in Capybara as well.  I was curious if this is considered "Bad practice"?. Capybara is extremely popular (So much so that it was integrated into Rails not so long ago) so I don't see it going anywhere.  However I wonder if I should be writing my framework in pure selenium just to reduce any dependencies? Or is it not really an issue? Im actually not that used to writing pure selenium (Although I imagine converting capybara to selenium shouldn't be THAT difficult if need be).   I suppose this is opinion based but I am curious if this is considered "bad practice". Thanks!


Introduction to proofs with a fair amount of hand-holding?

Lately I've gotten a friend of mine interested in mathematics. He has no college-level education to speak of, but is well employed as a software engineer. So I feel he's competent to learn this stuff on his own.  He asked me recently if there was a 'mathematical' version of .  The point being, if there was an "introduction to proofs" book which took a more hand-holding approach. He's also expressed fondness for the .  However, metamath's proofs are obviously a bit too low level to learn anything serious.  At one point in our conversation, I mentioned the dependently typed programming language , but I felt it's not quite as helpful until he at least gets some experience with  (for which the target audience of Agda is Haskell programmers, hence the similarity in syntax).  Anyone have any good suggestions on a book?


Given the equation: $$x^2 + y^2 = z^n $$ Prove that there are solutions in $\mathbb N$. Provided that $n\in\mathbb N.$   Please don't give me the full answer, rather a way to attack the problem, I have no idea how to tackle this proof.


When we try to establish a relation between the pressure and temperature in adiabatic process we come across a equation..  $dU = dq - PdV$  $dq=0$ (Adiabatic process) and,  $dU=C_v.dT$ (Heat capacity at constant volume)  Therefore, $C_v.dT = -PdV$$\tag1$  In this equation we are using heat capacity defined at constant volume but their still is some work done by the system (i.e, $PdV$ is not $0$ or $dV$ not equals to $0$).  The first part of the equation $(1)$ is implying that the volume is constant but the second part is implying that the volume is not constant (if it was there would be no work done).  Then why there is this contradiction ?


Recommendations for a fingerprint reader for Late Oct 13 MBP

I recently got a fingerprint reader for my Windows machine and I absolutely love it. I was on Amazon and did not see any fingerprint readers for Mac’s. Can anyone recommend an aftermarket fingerprint reader for a MacBook Pro?


Problem getting the user input to use in if statements to make choices in a story

I need to write a code in java that goes through a multiple choice story, but I am having trouble getting my code to read the user input and have it continue the story. Hers the code I have written so far. (I think the line spacing in the code is correct if not I'm sorry it might have gotten messed up when I put my code here) import java.util.Scanner; class Main {   public static void main(String[] args) {     Scanner sc = new Scanner(System.in);            System.out.println("Wlelcome to survive The desert. Made by Thomas Reinhardt"); // The first choice for the user      System.out.println("You find your self stranded in the desert. you need to find food and water quickly. Right now you have two opptions:");     System.out.println("(A): Travle to what looks like an oasis in the didstance:");     System.out.println("(B): keep exploring to find something else");     String choice = sc.nextLine(); // evaluating the useres first choice  // if the user passes the first choice      if (choice == "A")         {         System.out.println("You find water and are able to survive the night");         System.out.println("");         // making the second choice          System.out.println("Its now the next day. you find your self felling hungry you need food.");          System.out.println("(C) stay at the oasis and wait for a food sorce to come");          System.out.println("(D) Go out and serch for some food");         String choiceTwo = sc.nextLine();          // evaluating the second input         // if the user fails the second choice         if (choiceTwo == "C")         {             System.out.println("You wait at the oasis for days no food source arives you evetualuly  starve to death");         }         //if the user passes the second choice         if (choiceTwo == "D")         {             System.out.println("You find a fresh kill and was able to salvage some meat. you now have food. ");             // setting up the third choice             System.out.println("Now that you are back at the oasis you need to find a way to get saved");             System.out.println("(E) you can stay at the oasis and create a SOS signal at it: ");             System.out.println("(F) Trava; twords what looks like a small town in the distance");             String choiceThree = sc.nextLine();             //evaluates the third choice             // if the user passes the third choice             if (choiceThree == "E" )             {                 System.out.println("You built the SOS signal and help has finaly arived and you were saved");             }             // if the user fails the third choice             if (choiceThree == "F")             {                 System.out.println("You walk twords what you thought was a town but it just keeps getting farther away. The town was a halusination you end up wandering forever and evetualy die");             }         }         }     // the user fails the first choice     if (choice == "B")       {         System.out.println("You wander for hours and find nothing you die of sarvation");        }     } }


Create a Console Application in a windows forms app

I have a Windows forms application that I wont a console extension. I cant find a way to add a new console and also if there is a way how would i call it?


Convert binary data to valid image format, using Imagemagick (or other tool)

I have raw binary data in a file. I know that it is "8-BPP monochrome" and I know width and height of image. How could I convert this data to any readable image format?


Variable declaration in a C# switch statement

Why is it that in a C# switch statement, for a variable used in multiple cases, you only declare it in the first case?  For example, the following throws the error "A local variable named 'variable' is already defined in this scope".  switch (Type) {     case Type.A:             string variable = "x";                 break;     case Type.B:             string variable = "y";                 break; }   However, per the logic, the initial declaration should not be hit if the type is Type.B. Do all variables within a switch statement exist in a single scope, and are they created/allocated before any logic is processed?


How to Change Cursor Theme, Speed and Size on Login Screen

The question is that:  I've changed the cursor theme with Tweaks putting the cursor theme folder inside the:     /usr/share/icons   I also changed the speed (with dconf Editor) in:     /org/gnome/desktop/peripherals/mouse/speed   and the size (with dconf Editor) in:     /org/gnome/desktop/interface/cursor-size   But... The login screen keeps showing me a default cursor theme, size and speed.


Why didn't Picard have his baldness cured?

Why wouldn't Picard have his male pattern baldness cured?  Surely they can do this in the 24th Century.  Maybe people are way less vain in the 24th Century, but I think I remember Picard showing Beverly a picture of his younger self in Nemesis, and he was very bald in it.  So it seems he was afflicted by unusually early pattern baldness.  So why wouldn't he have had that corrected?


Is electric current just the rate of flow of charges?

I was going through the differences between Conduction and Displacement current.  Conduction current is just the flow of electric charges but when we come to Displacement current, we see that there is no actual flow of "electric charges" rather is just the flow of electric field lines which varies with time.   I have a doubt regarding the correct definition of current. Is current the flow of electric charges or the flow of electric field lines that vary with time? Is it something else?


What is the cast time of a metamagic'd swift action spell for a spontaneous caster?

I have a sorcerer that wishes to  in a game. I don't mind this, but the issue is they want to apply Empower spell via a metamagic rod to it. Normally with a standard action spell this becomes a full-round action, but Cold Ice Strike is a swift action spell, and I can't find anything for that. If the sorcerer casts Empowered Cold Ice Strike, what's the casting time of it?


Equation that can easily be changed to output the digit in 1's, 10's ,100's etc?

I need an equation that can be easily changed to output the digit which is held in the 1's slot, 10's slot, 100's slot, etc.  EX. I want the 100's digit in 6810 EX2. I want the 1's digit in 29115  What the equation should do is that once it is done calculating, all that is left is the selected "slot" or whatever it is called, nothing else, no other numbers, just the number in the slot I wanted  It would help if the equation was really simple, but anything helps


If $G$ is cyclic, then $G/H$ is cyclic?   The proof I got goes like this: $G$ is cyclic, so $G=<g>$ for some $g\in G$. So any coset in $G/H$ would be of the form $Hg'=Hg^n$ for some $n$. So $Hg$ is an generator of $G/H$. Thus, $G/H$ is cyclic.  I might just be confusing myself, but we have only shown that $Hg'$ is in form of $(Hg)^n$. But what if we are missing some $n\in\mathbb{N}$? That is, there is no quotient group of the form $Hg^2$, for example.  To make myself a little bit clearer, I think what the above proof has done was showing that $\forall Hg'\in G/H, Hg'\in <Hg>$, thus $G/H \subset <Hg>$. I feel that this is not a complete proof.


$$\begin{align}\mathrm D &= \left|\begin{matrix} (b+c)^2 & a^2 & a^2 \\ b^2 & (a+c)^2 & b^2 \\ c^2 & c^2 & (a+b)^2 \end{matrix}\right|\\ &= (a+b+c)\left|\begin{matrix} b+c - a & a^2 & a^2 \\ b - a -c & (a+c)^2 & b^2 \\ 0 & c^2 & (a+b)^2 \end{matrix}\right| \\ &= (a+b+c)^2\left|\begin{matrix} b+c - a & 0 & a^2 \\ b - a -c & a+c - b & b^2 \\ 0 & c - a-b & (a+b)^2 \end{matrix}\right|\\ &= (a+b+c)^2\left|\begin{matrix} b+c - a & 0 & a^2 \\ 0 & a+c - b & b^2 \\ c - a-b & c - a-b & (a+b)^2 \end{matrix}\right|\end{align}$$  Can $\rm D$ be further simplified without expanding ?  I feel it should be because this was competition question.


Can I post useful code snippets instead of asking a question?

Is it okay to post something other than a question on Stack Overflow?   Instead, could we share some code that might help users in their daily coding? Like sharing some useful Javascript snippets, a useful function created in php, etc?


Can no longer boot into Ubuntu using Windows boot manager

Just reinstalled Windows 7 pro and Ubuntu is no longer accessible from the windows boot manager as it was before.How do I re-enable booting into Ubuntu?  Thank you.


My desktop icons are large, and menus and background look differnet

I upgraded to 16.04 last week. After a daily update I rebooted my laptop and I found that my desktop icons look larger, my desktop wallpaper is changed to black and my menu looks classic.  I thought the problem was with Nvidia driver, so I removed it and reinstalled it, but the issue persists. Please, any idea can be helpful.


I heard a person say " there is no room on the bus ". It for some reason sounded incorrect. However the most basic argument that we hear is that if it is a public transport, we use "on" but buses also have gates that get closed.  So Can it be " There is no room in the bus"  Advise please ?


How to check if connection to server is lost in the android?

From my android application, how can detect if connection to the server whose IP for example is 192.168.32.232 is lost? Once connection is lost, I want write a service class which will keep on check for connection to the server in the background. If connection is lost my app should show a dialogue box.


How do I disable the media keys (play, pause, skip, etc.) on the macOS login window?

When playing music on iTunes or similar and then locking the screen (accomplished by hitting the ⌃⌘Q key combination or selecting "Lock Screen" from the  menu), how do I prevent the media keys from functioning?   In particular, the play, skip, and pause buttons are still functional at this point. This is problematic because I tend to lock my screen in order to prevent my cat from wreaking havoc on my laptop when she steps on the keys -- but she's still able to mess up my music via the above, usually…


Can we measure renormalized mass in QFT?

Due to QFT books, we measure pole mass(physical mass) in experiments. From the Lagrangian point of view, renormalized mass is a parameter(in MS bar or some similar renormalization scheme that has an explicit renormalization scale)  We fix renormalized parameters ( renormalized mass, renormalized couplings and ...) at specific energy scale by experiments.  But the problem is that how do we measure renormalized mass? beacuase in any expriment we measure pole mass which is scale independent  For other renormalized parameters, I have no problem.


Why can't Captain America afford a place in Brooklyn?

In Avengers: Age of Ultron, we get this exchange between Captain America (Steve Rogers) and Falcon (Sam Wilson):  Sam Wilson: Found a place in Brookyln yet? Steve Rogers: I don't think I can afford a place in Brooklyn.  As , this seems unlikely.  Wait…you're a celebrity working in a highly-funded secret government agency, and you can't afford a place in Brookyln? What, are they paying you in 1940s money?  He raises a good point. SHIELD is pretty well-funded (they can afford lots of cutting edge tech). Steve has some money (otherwise he wouldn't be able to look for a place to live), so SHIELD must be paying him a salary. And that salary is surely generous given that he is one of their top agents. If nothing else, I would expect him to at least get salary equivalent to some of the top paid military personnel. And even if that wasn't enough, as a celebrity (with his own museum!), surely Captain America could make money from public appearances (e.g. museum events, late night talk show, first pitch at a baseball game). So why does Captain America not have the money to buy an apartment in Brookyln?


How do I proceed in proving that $\cos 20^o\cos 40^o\cos 60^o\cos 80^o = \frac{1}{16}$

I have taken the value of $\cos 20^o$ to be $x$.  Now, $$\cos 20^o\cos 40^o\cos 60^o\cos 80^o = \dfrac{\cos 20^o}{2}\cos(40^o)\cos(80^o)$$ $$=\dfrac{x}{2}\Bigg( \dfrac{\cos(40^o + 80^o) + \cos(40^o - 80^o)}{2} \Bigg)$$ $$=\dfrac{x}{2}\Bigg( \dfrac{\dfrac{-1}{\text{ }2} + \cos 40^o}{2} \Bigg) = \dfrac{x}{4}\Bigg( \dfrac{-1}{\text{ }2}+2x^2-1 \Bigg)$$ $$=\dfrac{x}{8}(4x^2-3) = \dfrac{4x^3-3x}{8}$$ Can this even be continued (I mean to ask if this method will lead me any further)? If yes, how do I continue it? Thanks! PS : Please don't provide alternatives, I want to try them myself first. This question is only for the sake of asking if this method can be continued and it if can be, then how.


Since upgrading to MacTeX 2016 the following example no longer compiles as expected:  \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{breqn}  \begin{document} \begin{align}  x &= y, && \text{(foo)} \end{align} \end{document}   with the text (foo) appearing a total of four times in four different sizes. The problem is due to the inclusion of breqn.  Without using breqn, or if using a previous version of MacTeX, everything is as expected.


Evaluate $\lim_{x \to 0} \left(\frac{1}{\ln(1+x)} + \frac{1}{\ln(1-x)}\right)$

Evaluate $\displaystyle \lim_{x \to 0} \left(\frac{1}{\ln(1+x)} +  \frac{1}{\ln(1-x)}\right)$   I am having trouble starting this one. I couldn't see any log laws that I'm familiar with to rearrange the formula. I also tried combining the fractions and using L'Hospital's, but it only seemed to make things worse.  What direction should I take with this?


Install Gnome 3 under Unity, or download Gnome distro?

My question is simple. Which one should I do?   Is there any difference between the two options?   I'd use  Ubuntu 14.04 LTS 64 Bit  or Ubuntu Gnome 14.04 LTS 64 Bit  Thanks for the answers! :)


Entire function and the series of its successive derivatives

I recently came across the result that if $g$ is holomorphic in a neighbourhood of a point $z_0$ and  $$\sum_{n=0}^{\infty }{g^{(n)}(z_0)} $$ converges then $g $ is an entire function. Now, my doubt is if the above series is absolutely convergent then can we say something more about $g$, like say $g$ is a polynomial? I could not find any non-polynomial  entire function( I tried with functions like $e^z$, $\sin z $, et al), whose successive derivatives converge absolutely as series. Any help please?


is it possible to run ubuntu phone os in unoffical mobiles?

i am using lg spirit it has 1 gb of ram,Android OS, v5.0.1 (Lollipop),Quad-core 1.3 GHz Cortex-A7 - H420,Mediatek MT6582 - H420,    Geo-tagging, touch focus, face detection.


In the  a signed prekey ($SPK_B$) is used as part of the handshake. What is the purpose of this key? There seem to be no obvious cryptographic drawbacks by omitting this key.  One rationale could be that these "semi static" keys can be renewed without the need of changing the identity key ($IK_B$) and hence provide better forward secrecy. But is this a benefit in real world scenarios like Signal or WhatsApp?  What's the drawback of following variant:   Bob publishes $IK_B$ and signed $OPK_B^1$ Alice gets Bob's $IK_B$ and $OPK_B^1$ and verifies the signature Alice then generates $EK_A$ and calculates: $$DH1 = DH(IK_A, OPK_B^1)\\     DH2 = DH(EK_A, IK_B)\\     DH3 = DH(EK_A, OPK_B^1)\\     SK = KDF(DH1 || DH2 || DH3)$$   One could argue that in this variant one cannot omit $OPK_B$. Is this really so bad in real life?  Alternative: what about another modification where you drop $SPK$ and instead renew your identity key $IK$ as often as you would renew your $SPK$ in X3DH? Same forward secrecy properties. When used as part of chat app you do X3DH only the first time you send a message. So what's the harm in changing your $IK$?


Why do I repeatingly get an error popup for crash reports in /var/crash?

I recently installed Ubuntu 19.04 on my main machine and received an error popup shortly after each login or startup. It only told me that an error occurs with two buttons cancel and report. No way to get more detailed information what exactly went wrong.   So I looked in the syslog and found this entrys:   Jun 22 21:02:53 my-pc gnome-shell[5246]: [AppIndicatorSupport-FATAL] unable to update overlay icon  Jun 22 21:02:53 my-pc gnome-shell[5246]: message repeated 2 times: [[AppIndicatorSupport-FATAL] unable to update overlay icon]   Some research found this in a  where  indicate that the error popup was caused by crash reports in /var/crash. It seems the user did an OS upgrade. I had a fresh install but also some crash reports in those folder, may related to some tests (e.g. Steam Proton where GTA5 crashed).   After deleting those crash reports and rebooting the system, no error popups occur any more. But on the previous popups, I always pressed report because I want Ubuntu to be able to fix the issue.   So why those popup occurs repeatingly on every boot, altough I let them send the error reports?  I'd expect that the crash-data got deleted after reporting. Or at least marked as deleted, so that I didn't get promted any time. It seems that Ubuntu promted me multiple time for the same crash. Because the last crash report in /var/crash was from yesterday. Today I rebootet/logged out multiple times for testing purpose and got this popup each time.


How can I hide menu items based on permissions?

In my main menu I have a "menu item 1" that links to mynode1.  I have successfully implemented hook_permission() and hook_node_access() so that users who do not have the "access menu item 1" permission  cannot access mynode1.   I assumed that the menu item link "menu item 1" would automatically be hidden by Drupal, but this is not the case. Therefore I now would like to hide that menu item to users who do not have "access menu item 1" permission.  Does anyone have a code sample that would hide a menu link based on permission? (I tried hook_menu_alter() with no luck.)


Use accounts on the device permission - please clarify when needed

I've read this: ?  In the main answer (by Dan) it's said:      The AccountManager then asks   you if you want the requesting app (YouTube) to be able to use the   requested account (Google account). This might be in a dialog that   appears over the app, or in a notification.   However, upon installing something, e.g. Facebook (which adds facebook account as I understand) and starting to use it, I don't remember some system message asking me to grant access to facebook account to facebook app. Facebook app can post on facebook w/out using facebook account?


I have the following problem: I have a list of file paths. The files in these paths need to be added to ArcMap. I would like to add these via Python. I know that ArcGIS Pro has a command addDataFromPath() so I loop over the file paths and add them in the command, like so: for path in pathlist:     m.addDataFromPath(path)  I've searched around, but I cant seem the find the same command for ArcMap. Is there some other way to load in the files automatically other than simply doing it by hand?


Grammar of 'why would I do that' ? Is it grammatical?

I've often heard people saying this. And even I say it when someone accuses me of doing something that I didn't do.  I'd say:     Why would I do that?   But what's the grammar behind it?  Is it future from the past tense or something or what?


Imaginary Numbers. Example of when it arises in a "real" application of math?

I have a 2 part question:  1) If they are imaginary, one may get asked, "Well, if imaginary, they don't exist! Why do ANYTHING with them??"  The only thing I can think of is that while both $\sqrt{-9}$ and $\sqrt{-16}$ both don't exist, they don't exist in slightly different ways.  Obviously a 3 is more relevant to one of those, and a 4 is more relevant to the other.  So, they don't entire not exist, right?  2) When they are taught, you're just taught HOW ($\sqrt{-16}=4i)$ with no real explanation of WHY you'd ever bother with introducing this placeholder in the first place.   How does one actually justify imaginary numbers?     Can someone outline some sort of actual application of math (Physics? Electricity?) where you're trying to figure something out, and you run into a $\sqrt{-16}$ and  is makes sense to turn this into $4i$.


Is the Higgs particle the final one predicted by the Standard Model?

Are there any other particle predictions by the ?


Use custom lock screen on encrypted Jelly Bean device

I recently enabled encryption on my Nexus S running Android 4.1.1. I'm aware of all the benefits and drawbacks, and device encryption is definitely something I want. It's currently working fine.  However, one small caveat I overlooked is that encryption requires a password or PIN lock screen. I assumed (somewhat foolishly) that I'd be able to change back to the lock screen of my choice once the encryption process was complete. I like using a pattern lock, because I can set it to not display any visual cues, which makes shoulder-surfing a lot more difficult. It's also quick and easy to enter a relatively complex code.  The password I used to encrypt the device was intentionally long and complex, making it something I certainly don't want to be entering every time I want to check my messages. I don't want to change it to something shorter, because increased security was the whole point of doing this in the first place.  Is there a way I can go back to using a pattern lock screen? I understand that encryption is irreversible, and I don't really want to remove it. I just want my old lock screen back.  EDIT: I notice that changing the code for my lock screen also changes the key used to decrypt the device, which I assume is why you're not allowed to use a different type of lock screen. I very specifically do not want to be using the same code to encrypt the storage as I'm using to unlock the screen. That seems like a terrible idea, and I can't believe it's really the way Android does it.


Wondering why the reference    \bibliographystyle{plain} \bibliography{Reference}   does not appear in my pdf when I compile it?  Any help appreciated.


How to integrate $\frac{1}{\sqrt{1+x^2}}$ using substitution?

How you integrate $\frac{1}{\sqrt{1+x^2}}$ using following substitution? $1+x^2=t$ $\Rightarrow$ $x=\sqrt{t-1} \Rightarrow dx = \frac{dt}{2\sqrt{t-1}}dt$... Now I'm stuck. I don't know how to proceed using substitution rule.


can't type ' symbol to insert it in mysql database

hii have php code code to insert text with image into my sql database so the problem is when i insert text that have ' symbol it doesn't insert then when i insert text without ' symbol it works fine this is my code how can i fix the problem  <?php session_start(); if ((isset($_SESSION['admin'])))  {  require_once("../dbconfig.php");  ?>  <form method="post" name="data_table" enctype="multipart/form-data">  <?php error_reporting(0); if(isset($_POST['add2'])){ include_once '../dbconfig.php'; $username=$_SESSION["admin"]; $subject=$_POST['subject']; $description=$_POST['description']; $image = rand(1000,100000)."-".$_FILES['image']['name']; if(!isset($image))    echo"Please Upload Image";  else{  $file_loc = $_FILES['image']['tmp_name']; $file_size = $_FILES['image']['size']; $file_type = $_FILES['image']['type']; $folder="uploads-about/"; $new_size = $file_size/1024;   $new_file_name = strtolower($image); $final_image=str_replace(' ','-',$new_file_name); if(move_uploaded_file($file_loc,$folder.$final_image))     { $sql="INSERT INTO about (subject,description,image)  VALUES ('$subject','$description','$final_image')";  $result=mysql_query($sql);    if($result)    { echo "
Successful
"; }else { echo "
errror
";  }      } else{ echo "
Select image to upload
"; } }  mysql_close(); }   ?>

         Subject: &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp         <input type="text" name="subject" id="Username" style="width:500px;height:40px" />

         Description: &nbsp&nbsp         <textarea name="description" id="Password" style="width:500px;height:100px" ></textarea>

          Select Image         <input type="file" class="button purple image" name="image" accept="image/*" id="username" capture  />

         <button name="add2" value="log in" class="button purple add">ADD</button>
    </form> <?php } ?>


Measure the time it takes for Java class to run

Is it possible to start a timer in a Java class, so that I may measure the time it takes for its task?  I tried with  Date d2 = (Date) session.getAttribute("date2"); Date d1 = new Date();  long seconds = (d2.getTime()-d1.getTime())/1000; System.out.println("time: " + seconds);  Date dates = new Date();                 session.setAttribute("date2", dates);   But it's giving me some wierd negative numbers, that I cannot make sense off.


what is the best way to split string ? (c++)

I have a string and I want to split it every time the char ',' appears. I want to save the result in a vector of pointers to string. What is the best way to do this?


Number of integral roots of a polynomial

Let $p(x)$ be a polynomial with integral coefficients. Let $a$, $b$, $c$ be three distinct integers such that $p(a) = p(b) = p(c) = -1$. Find the number of integral roots of $p(x)$.


Open a file and write to 2nd column a certain number

I am trying to open file 1 which has the following format  20336 20337 20338 . . . 71644 71645 71646   and write to second column number 20336 so the new file will have the following format  20336 20336 20337 20336 20338 20336 .     . .     . .     . 71644 20336 71645 20336 71646 20336


How do I compile a Linux kernel and how do I use the output file generated?


Illustrator CS5 stroke moves anchor points

I'm trying to make a shape. I have successfully created the shape but when i try to add a stroke it moves my anchor points and the stoke becomes non symmetric around the joining part.  Have any ideas why is that?   the image on the left is without the stroke and the right with the stroke added. as you can see the "bridge" its not uniform. i don't understand why.


i need to know how to put some unix commands like echo and awk in python script

I need to embed unix commands in python script and need a piece of code to perform the below:    echo $i |awk -F ' ' '{print $9' '$6' '$7' '$8}'


Ubuntu 16.04 doesn't see wireless network

I have just installed Ubuntu 16.04. The problem is that it cannot find a way to get a wireless connection. In All Settings > Network I see only Wired and Network proxy, so I guess Ubuntu does not recognize any wireless card or at least does not have the right drivers to use it properly.  Here is some information from the terminal:  sudo lshw -class network:   *-network DISABLED           description: Wireless interface               product: Wireless 7265                    vendor: Intel Corporation               physical id: 0                    bus info: pci@0000:01:00.0            logical name: wlo1            version: 61            width: 64 bits            clock: 33MHz            capabilities: pm msi pciexpress bus_master cap_list            configuration: broadcast=yes driver=iwlwifi <   driverversion=4.8.0-36-generic firmware=22.361476.0 latency=0 link=no multicast=yes wireless=IEEE 802.11           resources: irq:281 memory:b1100000-b1101fff   UPDATE  $ rfkill list all  0: hci0: Bluetooth     Soft blocked: no     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: acer-wireless: Wireless LAN     Soft blocked: yes     Hard blocked: no   It works perfectly if I tether with USB, but it doesn't recognize any wifi connection. I have probably missed something.


Using Named Credentials Instead Custom Settings

For integration with Box I have process where I make callout to Box and get token in return. Currently the settings are stored in metadata and I'm checking if I can use instead Named Credentials. But I'm note sure if/how I can store the box clientId/cliecntSecret in the named credentials and then send it in the body of he request. The current relevant code is: httpRequest req = new httpRequest(); req.setMethod('POST'); req.setEndPoint('https://api.box.com/oauth2/token'); req.setHeader('Content-Type', 'application/x-www-form-urlencoded'); req.setBody('client_id=' + boxAppSettings.ClientId__c +              '&client_secret=' + boxAppSettings.Client_Secret__c +              '&grant_type=client_credentials'+              '&box_subject_type=enterprise&box_subject_id=' + boxAppSettings.Enterprise_Id__c);                                         I think that technically I can set Named Credentials based on username/password and store there the box client/secret and then use below, but it doesn't seems like the right approach. HttpRequest req = new HttpRequest(); req.setEndpoint('callout:My_Named_Credential'); req.setMethod('POST'); req.setHeader('Content-Type', 'application/x-www-form-urlencoded'); req.setBody('client_id=' + '{!$Credential.UserName}' +                  '&client_secret=' + '{!$Credential.Password}' +                  '&grant_type=client_credentials'+                  '&box_subject_type=enterprise&box_subject_id=' + boxAppSettings.Enterprise_Id__c);


Why 64 bit application cannot be installed in 32 bit OS?

I recently noticed that, in a 64 bit Windows OS most of the 32 bit applications can be installed. But in a 32 bit OS, most of the 64 bit applications cannot be installed. Why is it so ?


jquery change() dont trigger on new elements

I want to trigger elements while my Checkbox is checked or not checked. it works perfectly fine with :  $('.myCheckbox:checkbox').change(function () { //.. }   the thing is, that if I create a new checkbox on client, the .change() doesnt trigger.  I tried also :  $('.myCheckbox:checkbox').live('change',function () {   and it doesnt work as well..  does anyone knows whats wrong ?


Special Relativity - two beams of light in opposite direction

I just want to first say that I'm aware I am asking a question due to my own confusion and ignorance and not because of anything to do with special relativity. I hope that's alright.   What I'm confused about is whether two beams of light moving in opposite directions away from eachother, have a relative speed of $c$, or $2c$.   The thing is, we can always say it's $c$, but then when we look at the relative distance travelled for the time elapsed, the result is $2c$.   Can anyone explain what is going on?   Response to Alfred Centauri 22/08/2016   I question your reasoning for two reasons. Firstly to photons moving in opposite directions was one of Einstein's examples of the counter-intuitive implications. So what you're saying wasn't around then, and Einstein himself was misconceived. In fact you can find instances opposite direction light beam as recently as 10 years ago. Phillip Green in his popular science book uses that very example in his introduction. So the question is whether this is a formal adjustment to SR, backed by a publication and a reasonable consensus. Is it?   The second reason is to do with your reasoning. You say it is not a legitimate measurement because there is no inertial frame in which one or the other photon is at rest.  That at-rest criteria as you define the constraints, is equally applicable to two beams coming toward eachother. In fact almost every problem setup has no way to assume that one of the two frames is stationary. The way it's handled, I believe, is mathematically by the simple addition of the equal and opposite motion. This is also implicit in the Laplace transforms, I think.  The reason this can be done, I think, is because all inertial frames are assumed to be equilvant....they are part of a global reference frame.   A further matter derives from the fact the relative motion of two frames can be represented as tangential and radial components. If what you are saying is correct, then one of the two components cannot be measured in almost all cases.   I definitely want to make clear I am a novice in the theory, and you probably are not. It's possible this is all misconception, except for the historic part of my response which can easily be confirmed. Please do let me know if you can as I am trying to learn and need my mistakes corrected, especially the long running ones.


Showing $\sum\limits_{j=0}^M \frac{M \choose j}{N+M \choose j} = \frac{N+M+1}{N+1}$

In an , I stated $$\sum\limits_{j=0}^M \frac{M \choose j}{N+M \choose j} = \frac{N+M+1}{N+1}.$$  It is clearly true when $N=0$ since you add up $M+1$ copies of $1$, and when $M=0$ since you add up one copy of $1$.  And, for example, with $M=4$ and $N=9$ you get $\frac{1}{1}+\frac{4}{13}+\frac{6}{78}+\frac{4}{286}+\frac{1}{715} = \frac{14}{10}$ as expected.  But how might you approach a general proof?


Is there a good casual online place to practice/learn bridge?

I know that Pogo.com (which powers Yahoo Games) has a long running online bridge game and that there are a handful of places for serious tournament/MasterPoint level bridge players online (though most seem based on software written a decade or more ago) but are there any places to play, practice and learn bridge in a more casual manner? Ideally via a well designed modern piece of software?


Composition of two Riemann integrable functions

Suppose $f,g$ are two Riemann  Integrable functions .Is it true that $f\circ g$ is also Riemann  Integrable?  Trying this for a long time but not getting the answer


Alternate colored lines in Google Sheets that respect filter views

Basically I want the zebra stripes effect for readability but all the methods I've found so far don't work when using filter views. Does anyone know a way or is this not possible?  Update: Using a Filter instead of Filter View helps (Thanks user 404) but it would be helpful if a proper solution could be found anyway


Are the temperatures that I'm seeing normal?

I bought a new mid-2014 15" Macbook Pro, and noticed some interesting temperatures in iStats. The idle temperature seems to be around 50 degrees celcius with an ambient temperature of approximately 30 degrees. However, whenever I play games, particularly DOTA 2 in Bootcamp, the temperature shoots up and sustains at around 90 degrees celcius throughout the whole gaming session. Is this normal? Or do I have a defective Macbook?  I guess a question I should also be asking is how much will the life of my MacBook be lowered after constant gaming (i.e. ~10 hours/week of cpu temps at 90 degrees celsius)?  Thanks!


What does the cost (C) parameter mean in SVM?

I am trying to fit a SVM to my data. My dataset contains 3 classes and I am performing 10 fold cross validation (in LibSVM):   ./svm-train -g 0.5 -c 10 -e 0.1 -v 10 training_data   The help thereby states:  -c cost : set the parameter C of C-SVC, epsilon-SVR, and nu-SVR (default 1)   For me, providing higher cost (C) values gives me higher accuracy. What does C in SVM actually mean? Why and when should I use higher/lower values (or the LibSVM given default value) of C?


How can i make winding and unwinding the rope / cable animation

Making a rower machine. And i want to make the cable / coil to spin or rotate inside it. Any idea how to make the cable / coil reel. I have made the curve and trying to make spool. I have parented the handle and cable. When the handle is move in X axis or stretch the coil winding up. When release the handle the coil unwinding up. Any suggestion how it works. Thanks.


Why is "The Definitive C++ Book List" question allowed, but other book recommendation questions are not?

Why does  get a pass, but I can't ask my own book recommendation question? Can I ask my own book recommendation question in a way that is acceptable to the community, like the C++ book list question?


What computer components are currently vulnerable to magnets?

When I first started using computers, law of the land in computer class was never bring magnets near anything computer related, lest you lose all your data or screw up your monitor.  Now I am pretty sure magnets will still royally mess up a standard hard drive, and I know for a fact they screw up a CRT monitor.  Though I am also pretty sure they do not screw up a LCD monitor?  Now I have my phone which uses magnets to determine if it's docked, and it made me wonder.  Is it the power of the magnet preventing data loss or the sheer fact that whatever memory type in the phone is immune to it?  What about ear buds, as I know those have tiny magnets in them. Are those capable of damaging any electronic device currently in use?  I'm wondering if I'm being paranoid, but I really am not sure what magnets will damage and what they won't!  Is there a list, or rule of thumb for determining what will be hurt by magnets and what won't be?


Not able to see videos in youtube or fb.I am getting the following error.  Failed to load "libpepflashplayer.so"


how to select the oldest date among three columns in MS SQL Server


Counting the number of neural network parameters

I am slightly confused by counting the number of NN parameters. Let's assume there is a NN with 4-dim vector as an input, then comes 5-dim hidden layers, and another one 6-dim hidden layer. There is a single neuron output with sigmoid. Negative log likelihood as a loss function.   The question is how many parameters should be updated on the first step of the gradient descent? (including biases)  My calculation is 4*5+5 then 5*6+6 and 6. But I am not sure about the last 6. I would appreciate any help.


I think Area 51 is a site of Stack Exchange, so why does the score of Area 51 not show my score here?    But it is showing it here:


"No root file system is defined. Please correct this from the partitioning menu" during installation

I'm fairly new to learning about computers. I have a self-built computer and while installing Ubuntu (my first operating system) I run into a dialog.   I press install now and it replies      no root file system is defined. Please correct this from the partitioning menu   The partition table button is grayed out and the only thing I can do is press the change button. The change button crashes it so I can't continue and I have no options to press.


I have a small python script that opens a url built up from a string input byt the users and a pre-defined variable, which looks like this;  sn = str(input("Input here")) url = 'http://URLPART1' + sn + '.URLPART2'  if sys.platform == 'win32':     webbrowser.open_new_tab(url)  elif sys.platform == 'darwin': # OSX     subprocess.Popen(['open', url])   Now, I'm trying to write the Windows part in C++ and I've tried a few different approaches but I'm not quite sure how to concatenate the strings in C++ as I did in python using '+'.  This is one of my attemps;   int main ()  {     int sn;     string sn2, url;     cout << "UserInputHere: ";     cin >> sn;     sn2 += std::to_string(sn);     std::string A = ("http://myurl1");     std::string B = (".myurl2");      url = A + sn2 +B; // or url << A + sn2 << B?      ShellExecute(NULL, "open", 'url', NULL, NULL, SW_SHOWNORMAL);      return 0;  }   Can someone show me how to re-write the line; std::string url = A + sn + B; into something C++ will understand or maybe the whole approach is wrong?  Many thanks,  Editted.


I'm making a view and in one column I will have some names concatenated together.  Ideally in this one column I want the result to look something like the below:  ResultA, ResultB, ResultC and ResultD   ResultB, ResultC and ResultD   ResultA and ResultD   So I want it to keep putting commas between results until it reaches the last result where it places an AND in front of it instead of a comma.  I can do the query to grab what columns I need but can't figure out how to do the above...   select      isnull(replace(isnull(givenname, '') + ' ' +        (isnull(middlename, '') + ' ' + (isnull(lastname, ''), ' ', ' '), '') +         isnull(companyname, '') as Name from     table1 with (nolock)  left outer join     table2 on t1key = t2key      left outer join     table3 ON t1key = t3key   I found this query somewhere else that will put everything with a comma for me, but I still need the 'and' for before the last result.  SELECT      ID, Name,     STUFF((SELECT ',' + CAST(T2.SomeColumn AS VARCHAR(MAX))            FROM @T T2             WHERE T1.id = T2.id AND T1.name = T2.name            FOR XML PATH('')), 1, 1, '') SOMECOLUMN FROM      @T T1 GROUP BY      id, Name


I have asked  on Retrocomputing; it got answers there, but was later closed and commenters suggested it would be a better fit for Computer Science.  Because my Retrocomputing question already got answers, I couldn't delete it before reposting it on Computer Science.  So, I went to Computer Science and posted a similar question there which is per my humble opinion .  But, after doing so, my old question from Retrocomputing was reopened and migrated to Computer Science, so two questions that are the same exist there.   which per my humble opinion, needs to be merged somehow --- comments and answers from the old should be migrated to the new, I think.  My question  A mod migrated my old question to another SE site where I have already asked a new better question - how to merge these?  I already contacted the mods of Computer Science explaining the problem and asking to merge the questions, but the flag was declined.  Please help in explaining what I should further do in this case.


My marketing dept. devised a scheme for visuals that includes occasional occurences of characters (glyphs) rendered in non-solid colours to go beyond simple gradients. My question is: is there any way I could make a font from, say, a given .otf and a picture containing the colour movement? (The font itself is proprietary I believe, but that's hopefully not essential here.)  Here's an example:    I have not tried anything because I don't really know where to start. I think there'd be a way with pgf/tikz for individual cases.


How do we know that fundamental constants don't slowly change in time?

Let me get one thing straight first. I am not saying that fundamental constants like the speed of light don't have the value that we know they have today. What I am asking is whether the value of a constant could change with time. For example, we measure today that the speed of light is almost $300000000\,m/s$, but this measurement was made over the last century. But what if a long time ago (billions of years ago) that constant had a different value?  So, it's always the limit of how fast something can move, but that limit slowly changes with time. To conclude,i am asking if there is any kind of evidence that any of the fundamental constants like the speed of light remain constant in time or if we just took that for granted.


Show that if $G$ is a finite group of even order, there must exist an element $a\in G, a\ne e$ s.t. $a^2=e$

As order of group is even then $G$ can contain an element of order 2 as 2|even but how it is must?


Does drift velocity depend upon cross sectional area of the conductor? If yes then how?

I am confused whether drift velocity depends upon area or not . I checked answers for this question but all of them were cancelling each other out . from the equation $$I = neAv$$ It is clear that drift velocity should depend upon area but at the same time don't you think that by increasing the area of cross section of a conductor should have resulted in increase in drift velocity please help me out with it in detailed answer of how should i go with all the possible cases and explanation ,thanks :)


How to get mime type from file contents in a pure dotnet core?

So far in .net I have been using urlmon.dll FindMimeFromData function which works really well and does not even require having full file contents present in a buffer (practically 1024 bytes is sufficient for most file types including XML).  Now in dotnet core although it's possible to use this native library I would like to avoid such dependencies and use a reliable native C# method to determine the file type (images in my case).  Is there any method of doing it without using native dependencies (Mime nuget project) or guessing just by filename (MimeSharp nuget project)?


Close vote review audits should not be failed before choosing the reason and clicking "Vote To Close"

What is this about?  The close vote review workflow is currently like this:   You are given a question. You read the question and decide whether to close it or not. If you click on Leave Open, goto 5 If you click on Close, you are given a list of close reasons, along with how many people has voted on each close reason.   If you select the appropriate close reason and click on Vote To Close, goto 5 If you click on the cross or outside of the dialog box, goto 2  You are done with this question.   I must emphasize that, the question is not closed when the reviewer click on Close, but only when the reviewer has chosen a close reason and clicked on Vote To Close.  The reviewer may sometimes need to see the wordings of the close reasons again to be sure, so the reviewer may click on the Close button before he/she has a decision. Even if the reviewer thinks that a particular question should be kept open, he/she can still click on the Close button to bring up the close reason list to see which close reasons other users has chosen.  Now consider how the current review audit work:   You are given a question. You read the question and decide whether to close it or not. If you click on Leave Open, goto 5 If you click on Close, goto 5 If you clicked on what the audit expects, it shows "Congratulations", otherwise it shows "STOP! Look and Listen"   It is pretty obvious that clicking on the Close button yields different results for real review items and review audits. While you can click on Close to view the close reasons and existing votes for real review items without actually voting to close, you cannot do that for review audits because this will immediately cause you to fail the audit.  Also, sometimes the reviewer may  actually search for duplicates, and when he/she try to vote to close as duplicate, he/she fails the audit, which is counter-productive.  My suggestions:  I think that the review audit items which expect you to vote to leave open should have consistent behaviour like real review items, so I request the close vote review audits to not be fail when the reviewer click on Close. Instead it should show the list of close reasons with one (or two) fake close vote(s).  In addition, care should be taken when assigning fake close votes with the following reasons:   duplicate of... This depends on how the system pick the duplicate question. If it is picked randomly, care should be taken to avoid similar questions to be chosen as the duplicate, unless the  is implemented. off-topic because... Other reasons Try not to create custom reasons which actually make sense to avoid confusions. too broad There are probably questions of this type which is not yet closed, so the  may also be needed.   Moreover, if the reviewer decided to close the question as a duplicate of an unlisted question, it should be considered as a real and normal close vote and recorded, then the question should be thrown into the close vote review queue. It should not be counted as a failed audit.  Due to the above changes, audit items which expect the reviewer to close them will also require the reviewers to choose the close vote (because if they don't, robot reviewer can always just click Close and then go back to click Leave Open to cheat through audits). I think that the audit should be passed no matter what reason the reviewer chose because the system cannot assess whether the reason chosen is absolutely wrong.     Related:


Write a program that accepts two numbers and a operator like (+,-,*, /) as command line arguments and perform the operation indicated by operator

Write a program that accepts two numbers and a operator like (+,-,*, /) as command line arguments and perform the appropriate operation indicated by operator.If the user enters any other character the appropriate message will be displayed. The output of the program should be displayed to the user.  My Code is this  public class Practical4 {      public static void main(String[] args)     {         if(args.length==0)         {         System.out.println("No arguments are passed");         }         else         {          int a=Integer.parseInt(args[0]);         String p=args[1];         int b=Integer.parseInt(args[2]);          switch(p)         {             case "+":                 System.out.println("Addition of "+a+" and "+b+" : "+(a+b));                 break;              case "-":                 System.out.println("Subtraction of "+a+" and "+b+" : "+(a-b));                 break;              case "*":                 System.out.println("Multiplication of "+a+" and "+b+" : "+(a*b));                 break;              case "/":                 System.out.println("Division of "+a+" and "+b+" : "+(a/b));                 break;              case "%":                 System.out.println("Modulo of "+a+" and "+b+" : "+(a%b));                 break;               default:                 System.out.println("Please Enter '+', '-', '*', '/' & '%' operator only.");         }         }      }  }   and i am getting this Error  java:17: incompatible types found   : java.lang.String required: int         switch(p)                ^ 1 error   Please Give the Solution. Thanks


Automating file export with different colored objects and file names

I’ve been working with Illustrator CC 2014 on a floor map for a ~400 rooms building. To allow visitors to find rooms more quickly, I wanted to generate a series of images with highlighted rooms. The rooms are mostly rectangles with their object name corresponding with their room number.  In short, I need some sort of procedure that does the following tasks:   Change colour of object Export to PNG using the object name within the file name Change colour back Go on to the next object   I have no problem with steps 1, 3 and 4 using Automating tasks, but cannot figure out how to do step 2.


What terminal command or program can list an SSD's Power On Hours?

I'm looking to script using the unix shell the retrieval of SSD (and HDD) data that disk utility shows in the information window.    I'm immediately interested in the Power On Hours and Power Cycle, but if all the data comes from one data structure or tool, so much the better. The usual tools diskutil info disk0 and ioreg -l are not producing the "of interest" values listed in the screen shot above.  Is this information available from any of the built in OS X terminal tools or do I need to locate an open-source package that makes the same API calls to get this level of detail about a Mac drive?


Number Theory: Complete set of residues modulo $n$

I have this problem assigned for homework and I'm struggling with the proof of it:  If $a_1,a_2,\dotsc,a_n$ is a complete set of residues modulo $n$ and $\gcd(a,n)=1$, prove that $aa_1,aa_2,\dotsc,aa_n$ is also a complete set of residues modulo $n$.  (Hint: It suffices to show that the numbers in question are incongruent modulo $n$.)  I'm in elementary number theory so I'm not allowed to use an high-level theorems to prove this, I pretty much have to use the basics of modulo.  Thanks!


Evaluate the following limit: $$\displaystyle\lim_{n\to\infty}(\sqrt{4n^2+n}-2n)$$ So far I've come up with this: $\displaystyle\lim_{n\to\infty}(\sqrt{4n^2+n}-2n)$ = $\displaystyle\lim_{n\to\infty}(\sqrt{4n^2(1+\frac{1}{4n}})-2n)$  = $\displaystyle\lim_{n\to\infty}(2n\sqrt{(1+\frac{1}{4n}})-2n)$ = $\displaystyle\lim_{n\to\infty}(2n(\sqrt{(1+\frac{1}{4n}})-1))$. I think it's pretty clear from here that this goes to infinity, but how can I justify that the 2n grows stronger to infinity than the part in the brackets goes to zero? I know standard rules about exponential functions growing harder than polynomials, but not about this.


When I cast Counterspell as a reaction to an enemy's Counterspell, do I do so before or after the enemy makes their spellcasting ability check?

If I cast disintegrate and the enemy casts counterspell, would I wait to see the outcome of the enemy's counterspell before I cast counterspell? Or would I have to just cast it without knowing (like when a Divination wizard uses their divination die with their Portent feature to replace a roll before it's made)?  Do I (the player) choose to cast counterspell before or after the other player or DM has made the ability check for their counterspell?


*nix commands (and functions?) have a number with them, like fsck(8), killall(1), etc.    What does the number mean?


How to modify the space between the numbers and text of sectioning titles in the table of contents?

I'm preparing a document using the book class. In the table of contents, the space between the subsection number and title is too wide. How to reduce it?


Grub menu at boot time... "holding shift" not working

I read here at  that holding Shift during boot can bring up the GRUB menu. However I try holding one or the other Shift keys, tapping, tapping then holding, nothing works. Am I missing something? How does one access the GRUB menu during boot time?   No dual boot here, just standard Lubuntu 14.04 install.


I have two questions regarding spanning trees:  Q$1$. Is there any formula for the number of distinct trees of order $n$? I don't mean labelled trees, just distinct trees. For example: for $n=3$ there's only $1$ distinct tree, for $n=4$ there are $2$ distinct trees, for $n=6$ there are $6$. Q$2$. Is there any algorithm to implement the desired output in Q$1$?


Automate export of calendar from Outlook to Google

I use Microsoft Outlook 2013 for work and Google Calendar for everything else. I'd like to find an easy way to sync my work calendar to my personal calendar. Ideally, this would be a software application that sits in the background and automates the syncing.  Requirements   Syncing should be one-way only: Outlook to Google. Must support repeating calendar items. Must allow me to specify which calendar in Google to sync to. I will set up a separate calendar for work items. No intermediate server. Export is direct.   Nice to Haves   Automated. Syncs in real time or regularly (say, every fifteen minutes or so).


If someone with not much mathematics in his luggage asks me: What is so special about $\pi$? then off course I have an answer. Even if $i$ would be the subject (I allready see him gazing at my mysterious smile). But when I am asked about $e$ then I grow silent (or try to change the subject). Please help me out of this. Give me a nice characterization of $e$.    Edit:  I am informed now that this question is somehow a duplicate of . I agree with that judgment. Sorry for that. Next time I will first have a closer look at the questions that have allready been asked. Thank you also. I find very nice answers  and advice everyone interested to have a look.


How to prove $\lim\limits_{(x,y) \to(0,0)} \frac{x^2y}{ x^2 + y^3}=0$?

I know that the result should be $0$. I tried polar coordinates and got stuck at this:  $$\lim\limits_{(r,\phi) \to(0,0)} r\frac{\cos^2\phi \sin\phi}{ \cos^2\phi + r\sin^3\phi}=0$$  I wonder if I can jump from this to the result (technically there exists a $\phi$ for which the denominator would equal 0) or if this is not a good approach at all.  Any help would be greatly appreciated, thanks in advance!  UPDATE I acknowledge that this is a duplicate question but 1) I searched before posting and couldn't find it asked here and 2) once someone linked it I still didn't quite get it. Only on this thread did I understand the explanation. This is my first question here, which might account for this.


We say that two vector subspaces $U,W\subset V$ intersect transversally (written $U\pitchfork W$) if $U+W=V$.  Let $V_1,V_2,V_3$ be vector subspaces of $V$ where $\dim V=n$. We say they intersect normally if $V_i\pitchfork(V_k\cap V_l)$  for $i\ne k,l$. Prove that $V_1,V_2,V_3$ intersect normally if  the following condition holds:  $\operatorname{codim}(V_1\cap V_2\cap V_3)=\operatorname{codim} V_1+\operatorname{codim} V_2+\operatorname{codim} V_3,$   where $\operatorname{codim} V_i=n-\dim V_i$.  How to approach this problem? I tried to order dimensions of $V_i$ but I got that the LHS is $\ge n-\min (\dim V_i,i=1,2,3)$ and the RHS is $\le 3( n-\min (\dim V_i,i=1,2,3))$ which does not lead anywhere. What is the right way to do this?


SQL Server : name concatenation - multiple users

I am trying to concatenate multiple users into a singular string. Here is an example of my database:  dbo.Users  | UserId | AccountId | Title | FirstName | LastName | | 1234   | 1001      | Mr    | John      | Banks    |    | 1235   | 1001      | Mrs   | Georgia   | Banks    | | 1236   | 1002      | Mr    | Chris     | Aims     | | 1237   | 1002      | Mrs   | Caroline  | Hole     |   dbo.Account  | AccountId | SignUpDate | LastLoginDate | | 1001      | 20/08/2017 | 13/06/2018    | | 1002      | 20/08/2017 | 13/06/2018    |   I want to be able to get these users in a string like this:  Account 1001:  Mr J & Mrs G Banks  Account 1002: Mr C Aims & Mrs C Hole   Can anyone make any suggestions?   EDIT:   The accounts may only have a maximum of 2 users The accounts may have a singular user The accounts may have any of the following titles:  Miss, Mr, Mrs, Ms, Dr, Prof, Major, Bishop, Rev, Sir, Dame, Lord, Capt, Lady The accounts should show Title Initial & Title Initial for matching last names The accounts should show Title Initial LastName & Title Initial LastName for non-matching last names


Many decks in competitive Magic have access to targeted discard spells, like  and .  Against counterspells, you can rely on a variety of tricks like baiting counters, bottlenecking your opponent's mana, and good old-fashioned counter wars. Targeted discard cards allow your opponent to attack your hand on the very first turn of the game, and go right for your key cards — and it can often be backbreaking when your opponent takes away a crucial card like a combo piece or a sweeper.  What tricks and tactics can you employ, either during deck-building or in play, to play around an opponent's targeted discard?  (I know that one of the answers is going to be . That's excellent, but please also include approaches that work in formats without free countermagic.)


I have this awk command to increment a number inside a file:  awk -F"." '{$4=$4<=99?$4+1:0;print}' OFS="." post_all/version.ini > tmp && mv tmp post_all/version.ini   This works fine from bash, but when I try to add it to my bashrc it fails...  I tried adding alias update_version=awk -F"." '{$4=$4<=99?$4+1:0;print}' OFS="." post_all/version.ini > tmp && mv tmp post_all/version.ini  and the errors I got were:  -bash: =99?+1:0: No such file or directory -bash: print} OFS="." post_all/version.ini > tmp && mv tmp post_all/version.ini: No such file or directory


I looked through the other questions and didn't really see anything specific to this.  My boss bought a QNAP NAS server for our office and up until now it's been great to use. Up until I needed to start testing out some eCommerce site.  I can't get my server to accept my OpenSSL certificate with *.redefine.dynalias.com  The structure of the workspace is that I have virtual hosts set up so that a directory 'www.site1.com' will be accessed as 'www.site1.com.redefine.dynalias.com'. Simple enough.  , if you look at the information, it states it still is a wrong site, with an unknown identity. What could I possibly be doing wrong? Even adding an exception causes an error that prevents me from testing the eCommerce site.  Any ideas?


Why will a dropped object land at the same time as a sideways thrown one?

My textbook says that a ball dropped vertically and a ball thrown sideways will not only both land simultaneously but their height will be corresponding for the entire fall, as shown in a diagram which has a ball falling vertically and a ball with an arch landing simultaneously.   This has really struck me as it feels intuitive that the ball dropped vertically would land faster, perhaps due to it traveling a shorter distance.  When I tried to think about it for myself, I came to the thought that perhaps it was due to gravity constantly pulling both of the balls, however would the sideways velocity not slow it downwards speed? For eg wouldn't a bullet take longer to land than a dropped bullet as it is traveling straight?