Texshop not compiling after Mac update to sierra 10.12.4

After I updated my Mac yesterday, TeXshop is not compiling some of my documents anymore. This is the case especially for beamer-class documents where I worked with include to combine separated parts in to one master document. TeXshop opens normal documents like Articles and so on and also compiles these ones, but the beamer-class, which I need to continue my works, is not running, as explained above.   Did someone had the same problems and already came up with a solution that worked?


How to install a lastest version of package?

I have Qt Creator 2.4 installed from package manager, but version 4.8 is out now, and I want to try it. How to properly update to the lastest version, should I download and install it manually?


I have seen the proof that  $\sqrt2$ is irrational However I'm a bit confused. The proof goes something like this. first assume $m$ and $n$ are integers such that $$ \frac{m}{n}  = \sqrt{2} $$ $$ \frac{m^{2}}{n^{2}}  = 2 $$ $$m^{2}  = 2 n^{2}$$  $\implies m^{2} $ is divisible by $2 \implies m$ is divisible by 2. Let $2q = m$. Then $$m^{2}  = 4 q^{2} = 2n^{2}$$ $$ n^{2}  = 2 q^{2}$$ This means that $n^{2}$ is divisible by $2 \implies n$ is divisible by $2$...... Hence $\sqrt{2}$ is irrational. $$$$If $ m^{2} $ is divisible by $2$ how do we know that $m$ is also divisible by $2$? If you say it's a prime number then I can argue that I didn't need to do all these steps. I could have just said that its factors don't multiply to $2$ hence $\sqrt{2}$ is irrational


Is it possible to use the integrated gpu on MBP retina with Bootcamp?

I came across this page which demonstrates that simply two lines need to be changed in order for Windows to detect the integrated gpu and use it:   Does the above work and if so is it possible to manually control whether the integrated or discrete gpu is in use? Also, would it automatically switch over from discrete to integrated and vis-a-versa when the load requirements change?


Can I combine several ordinal questions to create an independent variable?

I am currently doing a research and recently encountered a few statistical concerns. I am basing this question on the   My question is quite similar to the above-mentioned one but has some important differences.  I designed a survey in order to get data from participants. This survey had 12 different items (ranked on a scale from 0 "minor importance" to 10 "major importance").  Before constructing my independent variables with these 12 items, I decided to get rid of the items that do not display a linear relationship with the dependent variable (the latter being a continuous value between 0 and 100).  After having done that, I am left with 10 items and I decide to create 3 independent variables. Each of the latter is constructed with some underlying items, based on a logical link between the items (i.e. the items referring to volatility are put together, the one referring to performance are put together...)   When constructing the variables, I decided to use the mean between the underlying items—for example, performance = (item1 + item2)/2.  My question is the following: I need to justify each step from a "mathematical" perspective with some references. For example, I know there is a unsettled debate for the use of ordinal data in regressions but fellow researchers argued that my data can be considered as interval, especially after using the mean between the items.  My question is the following: Is this mathematically ok? Also if you can cite work that did more or less the same, or that can mathematically support my steps, that would be greatly appreciated.   Thank you!


Where does Ryanair allow carrying a separate duty-free bag?

I  that Ryanair now allows carrying a bag of airport purchases ("duty free") in addition to one carry-on bag, but only in certain airports.  In which airports?


Identify rows that match on a key but differ in other columns

Supposed I have table temp A and table temp B:  IF OBJECT_ID('tempdb..#A') IS NOT NULL BEGIN DROP TABLE #A END  IF OBJECT_ID('tempdb..#B') IS NOT NULL BEGIN DROP TABLE #B END  CREATE TABLE #A  (    ID Int,    Descr VARCHAR(100),    Qty Int )  CREATE TABLE B (    ID INT,    Descr VARCHAR(100),    Qty INT )  INSERT INTO #A VALUES (1, 'Data 1' , 10) INSERT INTO #A VALUES (2, 'Data 2', 5)  INSERT INTO #B VALUES (1, 'Data x' , 8) INSERT INTO #B VALUES (2, 'Data x' , 1)   The ID is a key in this case. The problem is, how we can fetch the column value differences and showing the column differ on our select query?  I have tried the following:  using except  SELECT * FROM A EXCEPT SELECT * FROM B   using join and case.. when  select Case When #A.Descr = Before.Descr THen Null Else #A.Descr End,        Case When #A.Qty = Before.Qty THen Null Else #A.Qty End from #A Left Join #B Before on #A.ID = Before.ID   This query shows me if different values exist then it will show the differences column, else if no difference value found on certain column, then will show null value.  Can you recommend a better solution?


How to avoid the Null Pointer Exception when calling a method from a fragment in Android Studio?

So I have created a Fragment for my app. In the fragment, I have an EditText field created through the xml file (whose id is myText). Now in my Java class of this fragment, I am creating a reference to this text field by using the command:  EditText myText = (EditText) getView().findViewById(R.id.myText);   However, I get a warning on this statement saying:  Method invocation `getView().findViewById(R.id.myText)' may produce 'java.lang.NullPointerException'.   Also, when I run the app, it terminates prematurely due to the same NullPointerException. I did the exact same thing except without using a fragment (that is, I created an EditText field in the xml file of my main activity) and created a reference to it in the Java file using the command:  EditText myText = (EditText) findViewById(R.id.myText);   and it works perfectly.  So my question is, why does this work in the second case and not in the first? How do I make it work in the first case?


Page refresh required before jQuery events update

I made a like system but when I click on the like button it will run but I have to refresh the page for me to then be able to click on the unlike button even though it is showing up ? please help me I need it to be able to be clickable and work right after each other....  <script type="text/javascript"> $(document).ready(function(){  $('.like').click(function(){   if($(this).attr('title')=='like'){    $.post('/like.php',{imid:$(this).attr('id'),action:'like'});     $(this).removeClass('like').addClass('unlike');     $(this).attr('title','unlike');   } }); }); </script> <script type="text/javascript"> $(document).ready(function(){     $('.unlike').click(function(){    if($(this).attr('title')=='unlike'){     $.post('/like.php',{imid:$(this).attr('id'),action:'unlike'});      $(this).removeClass('unlike').addClass('like');      $(this).attr('title','like');     }   }); }); </script>


Google Maps API stopped working by itself

I'm hoping someone could lead me in the right direction. Today i noticed that my application stoped working when trying to use google maps. My application has worked flawless. I have not updated anything in the code. It simply just stoped working.   here is the debug:  java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.List.get(int)' on a null object reference                                                                    at se.xflash.tidsboken.CreateNewJob.onMapReady(CreateNewJob.java:725)                                                                    at com.google.android.gms.maps.MapFragment$zza$1.zza(Unknown Source)                                                                    at com.google.android.gms.maps.internal.zzl$zza.onTransact(Unknown Source)                                                                    at android.os.Binder.transact(Binder.java:387)                                                                    at com.google.android.gms.maps.internal.v$a$a.a(:com.google.android.gms.alldynamite:82)                                                                    at maps.ei.bu$6.run(Unknown Source)                                                                    at android.os.Handler.handleCallback(Handler.java:739)                                                                    at android.os.Handler.dispatchMessage(Handler.java:95)                                                                    at android.os.Looper.loop(Looper.java:224)                                                                    at android.app.ActivityThread.main(ActivityThread.java:5514)                                                                    at java.lang.reflect.Method.invoke(Native Method)                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)   I dont understand why i all of the sudden get a NullPointerException, it dosnt make any sence!  here is a snippet of the code where it complains.  public void onMapReady(GoogleMap map) {       DatabaseHandlerSettings db = new DatabaseHandlerSettings(getActivity());     PersonInfoDatabase info = db.getContact(1);     String adressInfo = info.getAdress();     String ortInfo = info.getOrt();       String adress = (adressInfo + ", " + ortInfo);      Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());     List<Address> addresses = null;      try {         addresses = geocoder.getFromLocationName(adress, 1);     } catch (IOException e) {         e.printStackTrace();     }     Address address = addresses.get(0);     double longitudeStart = address.getLongitude();     double latitudeStart = address.getLatitude();      LatLng location = new LatLng(latitudeStart, longitudeStart);     map.setMyLocationEnabled(true);     map.getUiSettings().setZoomControlsEnabled(true);      map.moveCamera(CameraUpdateFactory.newLatLngZoom(location, 12));   I mean, how can my applications stop working out of the blue? its on the market. I understand if you don't understand what i mean.


Java - what's the difference between singleton and static-block-based classes initialization?

Recently I learned Singleton pattern. And had to realize one. For example:  public class Singleton {     private static Singleton instance;      private InnerObject innerObject; //all functionality is here      private Singleton() {         innerObject = new InnerObject();     }      public static Singleton getInstance() {         if (instance == null) {             synchronized (Singleton.class) {                 if (instance == null) {                     instance = new Singleton();                 }             }         }         return instance;     }      public InnerObjectResult getResult() {         return innerObject.getResult(); //delegate method call     } }   But earlier I would realize this one like this:  public class Singleton {     private static InnerObject innerObject;      static {         innerObject = new InnerObject();     }      public static InnerObjectResult getResult() {         return innerObject.getResult();     } }   Thus the result is the same: innerObject initialized once, but the code is cleaner and I don't have to worry about multithreading. I know that pattern doesn't rest on specific languages and probably you can't do something like this elsewhere, but I'm interested in this particular situation. Thank you very much!


When I start "emacs" from the terminal Emacs version 28 is opening. I don't know from which package manager, I have installed Emacs. which emacs shows: /usr/bin/emacs I tried removing Emacs with apt-get and snap, but it did not work. How do I remove it?


For some reason Ubuntu decided not to utilize the 100GB I cleared for it, and installed itself with only 28GB of space. I only discovered this now, after it started bugging me about running out of space. I've tried googling my issue, but it appears that it's a somewhat dangerous process that heavily depends on the exact situation, so I thought I'd be better off asking you guys for help. I have two physical drives, one for Windows only and another for storage/Ubuntu. The partitions on the second drive looks like this.


I have a text file      ;   Message Number     ;   |         Time Offset (ms)     ;   |         |        Type     ;   |         |        |        ID (hex)     ;   |         |        |        |     Data Length     ;   |         |        |        |     |   Data Bytes (hex) ...     ;   |         |        |        |     |   |     ;---+--   ----+----  --+--  ----+---  +  -+ -- -- -- -- -- -- --          1)         2.0  Rx         0400  8  01 5A 01 57 01 D2 A6 02           2)         8.6  Rx         0500  8  02 C1 02 C9 02 BE 02 C2           3)        36.2  Rx         0401  8  01 58 01 59 01 01 01 01           4)        41.7  Rx         01C4  8  27 9C 64 8C 00 03 E8 08           5)        43.1  Rx         0501  8  02 C0 02 C1 02 C6 02 C0           6)        62.7  Rx         01C2  8  27 9C 60 90 00 0F 04 08    and i am trying to collect just the ID from this file.  I have the expression and have tested that it works, but when i try and collect the list it gives me the whole line instead of just the ID.          var ofd = new OpenFileDialog         {             Filter = "TRC File (*.trc*)|*.trc*",             Multiselect = true,         };          ofd.ShowDialog();          string path = ofd.FileName;         List<string> alllinesText = File.ReadAllLines(path).ToList();         foreach (string id in alllinesText)         {             Regex rx = new Regex(@"\d\d[\d|\w][\d|\w]\s\s");             Console.Write(id.ToString());             MatchCollection matches1 = rx.Matches(id);             Console.WriteLine(matches1);          }          foreach (string data in alllinesText)         {             Regex rx2 = new Regex(@"[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w].[\w\d][\d\w]");             Console.Write(data.ToString());             MatchCollection matches2 = rx2.Matches(data);         }   The output is        28817)    347963.1  Rx         01C2  8  01 00 00 00 00 00 00 6F System.Text.RegularExpressions.MatchCollection      28818)    347966.3  Rx         04E2  8  64 04 10 15 F5 00 00 08 System.Text.RegularExpressions.MatchCollection      28819)    347967.2  Rx         01C4  8  27 14 63 8C 00 03 E7 08 System.Text.RegularExpressions.MatchCollection      28820)    348017.0  Rx         03C4  8  7F 8A 7F 80 7F FA 96 0F System.Text.RegularExpressions.MatchCollection      28821)    348023.1  Rx         0405  8  01 57 01 58 01 DB 93 02 System.Text.RegularExpressions.MatchCollection      28822)    348029.6  Rx         0505  8  02 BB 02 BC 02 BD 02 BF System.Text.RegularExpressions.MatchCollection


How to learn home improvement for young adults?

I am 22, living with my parents. I plan to buy a house in the next 4 or 5 years. I want to learn more about home improvement so I can renovate my future house easily. My dad does renovations, but I see how his lack of education in this domain makes him do mistakes occasionaly. I want to learn about this domain in case I need to renovate a part of my house or if I need to hire a contractor and make sure he is qualified.  What can I do to learn about home improvement? Read books?


In the book Eragon, what species is Angela? I am confused because she looks like a human not an elf, but she is super old.   Is she a different species?


Is there a mathematical symbol for "and"?

I have a statement as such:  $\mathbb{Z_+} \triangle E = \{ x \in \mathbb{Z_+} : x \space \% \space 2 \neq 0 \space and \space x \in \mathbb{Z} : x < 0 \space and \space x \space \%  \space 2 = 0 \}$  ($E$ represents all even numbers, positive and negative. Not important to the actual question, but it is important to the statement above.)  My question is: is there any way I can get those "and"s out of my statement? They seem so out of place. Is there any notation for "and"?  Bonus: Is my statement correct?


I'm trying to  install GIMP for Ubuntu 12.10 from Ubuntu SW center but any times I try I get  the replay that I' cannot reach the repository and I've to check my Internet connection. That is properly working with Firefox and Thunderbird. In addition appears the info that not safe program cannot be installed because of lack of authentication. May anybody give a some explanation?


How can I permanently change my hotspot tethering IP address?

IP address is 192.168.43.1 by default and there is no option to change it permanently. Is it possible to change it without root access?  My phone is Huawei Android 5.1.


Probability of the occurrence of a random event x in a population X where n = $\infty$?

Given a random event x from a discrete population X where the population $n=\infty$, and the population is uniformly distributed, what is P(x)?  My intuition is that it is infinitesimal, because as $lim_{n\to\infty}$, $ lim_{p\to0}$


Is the notion of set different from a notion of collection of objects?

Based on this  on Quora, group theory doesn't need set theory to be formulated. But isn't it hardwired into the definition of a group that a group is an ordered pair $(G,\; \cdot\;)$, where G is a set. Furthermore, to even define binary operations, would we not need the notion of sets, since functions are a map from a set to another set. Is it because the term "set" used in the definition of a group is just in the sense of "a collection of objects", rather than a set in ZFC.


How to add a custom field in the advanced menu properties?

Is it possible to add a custom field to menu items?  What I want to do is be able to add a field for 'French Navigation Label' and a 'French Title Attribute' in the wp menu interface.


Limit of the sequence $\sqrt[n]{|\cos(n)|}$

I read in a french book (corrected annals of centrale école) that   it's not hard to prove that   $\lim\limits \sqrt[n]{|\cos(n)|} = 1$  I wonder how to prove this.  Thanks for any ideas.


Someone asked a very similar question in regards to window recovery for windows xp:   I'm using windows 8 (or 8.1 now). I run Dual Monitors. On Monitor 2 I sometimes have the input switched to something else other than the windows display (Mac or PS3). If there was a program that was displaying on Window #2 that does not have 'move' where I could potentially alt-space-m arrow keys. Is there another way to get that program to display on Window #1?  I tried right click on the program and doesn't seem to be anything there. I tried Windows Key and Arrows. I Tried right click toolbar and cascade.  I'm hoping this is a DUP or Softball question because this annoys the crap out of me.  Thanks!!


As a short term trader, do I personally have to keep track of every wash sale for tax purposes?

New to trading, trying to understand how wash sales apply to short term trades that occur in the middle of the tax year. Consider the following scenario:  Day 1: Buy 100 ABC for $10  Day 2: Sell 100 ABC for $5  Day 3: Buy 100 ABC for $4  Day 4: Sell 100 ABC for $10  At the end of the tax year, will my broker make the cost basis adjustment to the buy on Day 3 for me? Or will they simply tell me the $ amount of my wash sales, at which point I need to manually find and adjust every instance of this on my own?


Writing "Res" as "Residue" (Mathematical Notation on Complex Analysis)

I can't found Res command on Detexify. So, how to write Res on LaTeX? If I use \text{Res} it becomes italic when I'm using \begin{theorem} environment. And I want it to be as usual normal text (straight form). I've tried to search on this site and can't found about this and am now asking for help.


Problem proving that there exists an irrational number between any two real numbers

I want to show that: for $a,b \in \mathbb R$ with $a<b, \exists x \in (a , b)$ such that $x \notin \mathbb Q$ . I start with $0< \frac 1{\sqrt 2} < 1 \Rightarrow 0< \frac{ b-a}{\sqrt 2} < b-a \Rightarrow a < \frac{b-a}{\sqrt 2} +a < b$ . I know I am close to completing the proof but I do not know how to prove that the number $\frac{b-a}{\sqrt 2} +a \notin \mathbb Q$ Any help would be great!


Probably a rather silly question, but I would like to have a clear explanation of what deviance in linear mixed models (using lmer) is.  For instance, how do I interpret it along AIC, BIC, and LOgLik in the anova output below, when conducting a model comparison.  Thanks in advance!


Seating of $n$ people with tickets into $n+k$ chairs with 1st person taking a random seat

"$n$ music lovers have reserved seats in a theater containing a total of $n+k$ seats ($k$ seats are unassigned). The first person who enters the theater, however, lost his seat assignment and chooses a seat at random. Subsequently, people enter the theater one at a time and sit in their assigned seat unless it is already occupied. If it is, they choose a seat at random from the remaining empty seats. What is the probability that person $n$, the last person to enter the theater, finds their seat already occupied?"  I could do this problem for small specific values of $n$ and $k$ but as they grow the expressions seem to get really messy really quick with no discernible pattern. How would one solve this problem?


Is there a system in place to moderate Stack Exchange usernames?

I've recently come across a Stack Exchange user whose name could be considered offensive. () [Content warning: Offensive/vulgar language] I've looked around and found no way of reporting the profile. Is there a system in place to flag and resolve issues regarding usernames which could be considered offensive?


How to prevent "Write Failed: broken pipe" on SSH connection?

What can I do to configure SSH on both client and servers to prevent Write Failed: broken pipe errors? It often occurs if you sleep your client computer and resume later.


Is there a package to secure rendered pdf with a password?

Is there a package and command that can secure rendered pdf with a password?


QGIS Processing - Additional Creation Parameter for GdalWarp

I am having a hard time getting the "Additional Creation Parameters" to work when using GdalWarp through the processing toolbox.  I am trying to set the nodata value to 0 for the output raster.  processing.runalg("gdalogr:warpreproject","InRaster.tif","EPSG:32736","EPSG:32736",10,0,"-dstnodata 0","OutRaster.tif")   Has anyone used this functionality and managed to get it to work?


Problem in installing Ubuntu 16.04.1 using virtual box

I want to install the Ubuntu using the Virtual box. I am following the steps shown on this forum  When I click New on Virtual box. It only gives me an option for Ubuntu 32 bit, not 64 bit, Why is it so?  I have downloaded the virtual box VirtualBox 5.1.8 for Windows hosts  x86/amd64 Ubuntu from official site is ubuntu-16.04.1-desktop-amd64  With choosing 32 bit and setting Ram of 1 Gb and 16 GB Hardisk.  I am getting this error:  This kernel requires an x86-64 CPU, but only detectedd an i686 CPU Unable to boot - please use a kernel appropriate for your CPU


How to do research in two very different fields?

Most research profiles I've seen focus on a set of similar topics. Does anyone have experience in partaking in / conducting research in 2+ disparate fields? (especially if 1 of the fields is pretty different than what they studied in an institution)  For example:   Pure mathematics and biology (e.g. solving an open math problem and studying purring in cats) Aerospace engineering and psychology (e.g. modeling vortices and researching psychological effects of isolation)   If a person had interest in researching a multiple, ranging topics, what advice would you give them? How do you think they should go about doing it? (if you'd recommend they do it at all)  Edit - I'm an undergraduate mechanical engineering student. I'm interested in eventually researching two topics, one in my chosen field, one in genetics.


VSFTPD – How to fix this security issue?

I've created a user called example using adduser command and setted its password and everything. That was part of the VSFTPD setup process.  However, I've noticed that I can also access using the port 22 both in my VPS' SSH console and SFTP / FTP. How can I make it so that it is only FTP accessible ?  I'm gonna share my server with a client to let him create a static HTML site using only and no more than FTP.  Thanks for your answers.


I know the red ones are the moderator-only tags. But I would like to know all such tags?  I tried to read the , searched the Meta SO but was not able to find the list of such tags. So far, I know following such tags         Surprisingly, the tag  (even marked in this post) doesn't have a wiki yet, I was about to create it, but was not sure, if it was meant for the same use?  Are there any more?


Is there any paper about vanishing-gradients of LSTM?

Some web pages mentioned that LSTM causes the vanishing or exploding gradients if the sequence is too long.  These are one of the pages mention the problem:         However, I couldn't find any paper or formulation for it. Could you please tell me the references for this problem?


Can you view a gif icon as an still thumbnail image?

I have a few GIF images, but they are just a grey icon that says GIF. Can't tell them apart otherwise aside from the name.   In other words: my picture folder has images, you know which one you are selecting based on an icon that has its image as the icon. Gifs are just grey icons... all the same.  Is there a program or command that can convert GIF icons to stills of the gif?  Like image icons?  I'm looking for a program to do it automatically the way it should be.


Problem converting color from RGB to CMYK for print

I designed a poster in CorelDraw X5 for printing purposes. I was told by the Printshop guy to use colors only in CMYK. For the most part I did, I don't know why I missed it but I used one color in RGB. I liked this color so much that I've used it at many places. So, current situation is that some colors are in RGB and some are in CMYK. So, I want to convert all RGB to CMYK and thought the problem would be solved. But now I'm actually facing a lot of trouble. The colors are not at all same. I hate the colors that it is showing me.  This is the color I used in RGB:    When I changed the "Model" to CMYK, the color it shows is really different. As you can see in the picture below, it's too dull:    The RGB values of both colors are not the same. What can I do to get the same color in CMYK? I did a little bit of reading here and there. They say, that you can't get same. In that case, what is the closest color that I can get?


Why is a ring $R$ with the property that $r=r^2$ for each $r\in R$ so special?

The question is motivated by the following multiple-choice problem:  If $R$ is a ring with the property that $r=r^2$ for each $r\in R$, which of the following must be true? I. $r+r=0$ for each $r\in R$. II. $(r+t)^2=r^2+t^2$ for each $r,t\in R$. III. $R$ is commutative.  Here are my questions:  What theorems do I need to solve the problem above? Why is a ring with the property that $r=r^2$ for each $r\in R$ so special? Is there a name for such rings?


Using setupbackend and pdfpageattr together via ConTeXt

Is it possible to use setupbackend and pdfpageattr together via ConTeXt?    I was able to use setupbackend alone via ConTeXt (LuaTeX). Got the result as expected.    I was able to use pdfpageattr alone via ConTeXt (pdfTeX). Got the result as expected.    However, combining those two together I couldn't compile the code without a problem.    If compiled via ConTeXt (pdfTeX), an error states: Undefined control sequence. \setupbackend    If compiled via ConTeXt (LuaTeX), no error but pdfpageattr settings not affected with result. For example, the result with TrimBox is not [81.6378 96.9449 513.6378 744.9449]    \setupbackend [format=PDF/X-3:2002, profile=ps_cmyk.icc, intent=ps_cmyk.icc]    \pdfpageattr{/TrimBox [ 81.6378 96.9449 513.6378 744.9449]}     If it is not possible to combine those two macros together, is there an alternative way to set PDF/X-3:2002, insert ps_cmyk.icc and set TrimBox together via ConTeXt?


Must $\emptyset$ be an element of any basis for a topology?

Say $B$ is a basis for the topology $O$ on some set $X$.  Then, must we have $\emptyset \in B$ ?    If not, then how does one get $\emptyset \in O$ from taking the union of non-empty sets of $B$ ?    My definition of a basis for a topology is     a collection $B$ of open sets is a basis for the topology, if every open set of the topology is a union of elements of $B$.


I've found Landau's book General Physics for a first course in physics (available from the Internet Archive as  ); the book is freely and legally available, but it's from 1967. Is that OK, or is this material outdated?   More generally, what's the most recommended first course in physics? Which such books (or other resources) provide the best intuition, rigour, etc.?


Controlling draft options from a Makefile

I would like to control class options such as draft and geometry package's showframe from a Makefile.  Is there a way I can parameterise a document using LaTeX itself, or will I need to preprocess the document using sed from the Makefile?


how to use indefinite articles with written and spoken initialism

I know we are to use “a” before words that start with a consonant sound and “an” before words that start with a vowel sound, but in the case of an initialism that have a vowel sound for first letter, but a consonant sound for the abbreviated word, which of the two indefinite articles are to be used? Example:  I have an SSD drive installed in my computer. I have a SSD drive installed in my computer.  In the example above SSD is an initialism for Solid State Drive. I'm inclined to think that there may be separate rules for speech and written approaches to this, as when speaking I would obviously use the first phrase in the example.


Identify this story about cosmic entities please

This story was written long ago. It would be less than 250 pages. The story was about a cosmic entity not unlike a star, but these guys weren't stars or even black holes. They were conscious and mobile, and to be quite frank solar systems were just toys and playthings to be made, watched and then knocked apart when you got bored of them. The time frames in this story were on the order of 100's of millions of years per chapter in the life of this little fellow.  As this one cosmic entity got bored or disenchanted with the status quo of all cosmic life, he decided to take a trip across the void and left the realm of stars and galaxies, and spend billions of years just pushing forward until eventually he started to see the light of another realm ahead. He plunged headlong into this universe, and explored until he discovered a girl cosmic entity.  My synopsis of this story is absolutely horrid, but it's the best I can do from what I remember, and quite frankly the story was written pretty ambiguously anyway. If you can help identify this story for me, I would appreciate it.


Allow low-rep users to post more than one internal link

As a new user on all three sites in the trilogy I am trying to write good questions but find one feature frustrating.  I was in a situation where I was posting  and wanted to link to several other questions on superuser to say, "Answers to these questions are not what I am looking for." But the spam filter blocked me and I was only able to link to one question because my reputation is low. (It would be nice if it had let me know that I could only include one link as soon as I tried to add the second rather than waiting until I hit post--but this is a minor quibble.)  My feature request is to allow more than one link in a question no matter the asker's reputation so long as the links are to other questions on Stack Overflow, Server Fault, or Super User (or meta).


Laravel websockets package connection refused?

I using laravel websocket package aspusher replacement. First this ubuntu was not allowing to access the port 6001 then I add Inboud securoty group rule on aws . Now it is allowing to access the port but still not allowing to flow data thorug these porst and return this error. pusher.min.js:8 WebSocket connection to 'ws://52.64.101.38:6001/app/ABCDEF?protocol=7&client=js&version=4.3.1&flash=false' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED  I think I need to do more settings on aws but what I don't know. It is also giving Authentication errors see screenshot


I am assuming that there is a maximum level in Fallout 4 and because taking perks is tied to leveling, there is a presumable maximum number of perks that you can take.  Is there a maximum level in Fallout 4?  And by extension, is there a maximum number of perks that you can take?


Null object reference when I try to build room

I want to build room in Kotlin using my function getDatabase(context) and I have this error :  W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Package.getName()' on a null object reference W/System.err:     at android.arch.persistence.room.Room.getGeneratedImplementation(Room.java:77)   This is very strange because it's the first time I have this error (I use Room in other project and I don't have this bug). The app don't crash but the database is not working.  I try looking in internet but I don't see nothing about this bug (only this japanese guy :  but I don't understand japanese).  AppDatabase :  @Database(entities = [(Wallet::class), (Historique::class)], version = 1) abstract class AppDatabase : RoomDatabase() {     abstract fun walletDao(): WalletDao     abstract fun historiqueDao(): HistoriqueDao }  private var INSTANCE: AppDatabase? = null  fun getDatabase(context: Context?): AppDatabase {     if (INSTANCE == null)         INSTANCE = context?.let { Room.databaseBuilder(context, AppDatabase::class.java, DATABASE_NAME).build() }     return INSTANCE as AppDatabase }   This is my Gradle :  apply plugin: 'com.android.application' apply plugin: 'kotlin-android' apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'  android {     compileSdkVersion 27     defaultConfig {         applicationId "my.app"         minSdkVersion 19         targetSdkVersion 27         versionCode 1         versionName "1.0"         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"     }     buildTypes {         release {             minifyEnabled false             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'         }     } }  dependencies {     implementation fileTree(dir: 'libs', include: ['*.jar'])     implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"     implementation 'com.android.support:appcompat-v7:27.1.1'     implementation 'com.android.support.constraint:constraint-layout:1.1.0'     implementation 'com.android.support:support-v4:27.1.1'      implementation "android.arch.persistence.room:runtime:1.0.0"     annotationProcessor "android.arch.persistence.room:compiler:1.0.0"     kapt "android.arch.persistence.room:compiler:1.0.0"      implementation "org.jetbrains.anko:anko-commons:0.10.4"     implementation "org.jetbrains.anko:anko-design:0.10.4"     implementation "com.chibatching.kotpref:kotpref:2.5.0"     implementation "com.chibatching.kotpref:initializer:2.5.0"     testImplementation 'junit:junit:4.12'     androidTestImplementation 'com.android.support.test:runner:1.0.1'     androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }


How to move GNOME's Application Launcher from bottom to top in Ubuntu 17.10?

I've just upgraded from Ubuntu 16.04 LTS to Ubuntu 17.10. I was a fan of Unity desktop environment but after upgrading, I saw that GNOME is also a nice one ('cause it is also very similar to Unity). But there is one thing that makes me uneasy is that Application Launcher is in the bottom. Can't I move it to top-left corner (as it was in Unity)?


How to change the output of a command if it has been called already?

I want to create a command that changes its output the second time it gets called. For example, I want it to yield 1 the first time it's called, and 2 the second time:  \newcommand\mycommand { do stuff } \mycommand % yields 1 \mycommand % yields 2   My idea was to define a global variable, something like \hasbeencalled, and globally redefine that variable if the command has been called. Something like:  \def\hasbeencalled{0} \newcommand\mycommand[1] {     \ifnum\hasbeencalled=0         1         \global\def\hasbeencalled{1}     \else          2     \fi }   But this doesn't work. Somehow the global redefinition happens retroactively and changes it so that I get the output  \mycommand % yields 2 \mycommand % yields 2   But if I take away the \global, then I get   \mycommand % yields 1 \mycommand % yields 1   What can I do?


Confusing about passing by refrenece in js object

So, we know that value of variables that contain objects in javascript are passed by reference. for example: let a = {name:'john'}; let b = a; a.name = 'doe'; console.log(b.name)//prints out doe  but: let a = {name:'john'}; let b = a; a = {name: 'not john'} console.log(b.name)//should printing not john, but instead keeps showing john  How this is possible ? Value of variable a are replaced with a new object with a different value. Object with a name property john are gone and variable b should refer to variable a with property value 'not john' but it keeps refering to an objects which doesn't exist !


How do i split my tar.gz into multiple files in a single exec command?

I don't know anything about Unix/Linux. I am primarily a web programmer. I am running the following command in my code: exec("tar -caf '/backups/_structure.tar.gz' --ignore-failed-read -C /source .");  This code makes a file backup of all the contents of my /source directory and stores it in the /backup directory. This code works fine, except for the fact that sometimes my files are HUGE. I would like to split the tar file by 100MB segments. In this single line, what would I add to do that? I've read some things about | split -b 100MB, but I don't know where in the line to put it and I'm very confused.


Calculate $\lim_{n\to\infty}\sqrt{n^2+n} - n$.

Calculate $\lim_{n\to\infty}\hspace{2 pt}a_n$, where $a_n = \sqrt{n^2+n} - n$ is a sequence of complex numbers.  I performed the ratio test:  $$\lim_{n\to\infty}\frac{a_{n+1}}{a_n} = \lim_{n\to\infty}\frac{\sqrt{(n+1)^2 + (n+1)} - (n+1)}{\sqrt{n^2+n} - n} = \lim_{n\to\infty}\frac{\sqrt{n^2+3n+2} - (n+1)}{\sqrt{n^2+n} - n}$$  which ultimately leads to, when multiplied by $\frac{\frac{1}{n}}{\frac{1}{n}}$,  $$\lim_{n\to\infty}\frac{\sqrt{1+\frac{3}{n}+\frac{2}{n^2}} - (1+\frac{1}{n})}{\sqrt{1+\frac{1}{n}} - 1}$$  Should I multiply by the complex conjugate? It leads to a rather messy expression. I am stuck.  How can one perform the root test here? I attempted: $$\lim_{n\to\infty}\sqrt[n]{\sqrt{n^2+n} - n} \Longleftrightarrow \lim_{n\to\infty}((n^2 + n)^{\frac{1}{2}} - n)^{\frac{1}{n}}$$  I have also no idea how to proceed.


How to stream a map with collection using Java 8 streams?

I'd like to stream a map with collection using Java 8 streams.  For example, having the following data:  Map<String, Collection<Integer>> data;   I'd like to go over the elements handling each integer value with the corresponding key strings. For example:  data.keyValueStream((k,v)-> ...)   Any idea how to achieve this? Thanks.  * Regarding the question "Why do you need it?", it could be a bunch of reasons and I'm not sure it's important. Anyhow, I'll "flow" with you... My specific scenario is to batch insert into a DB all the values, under their specific key. Let's keep it a general Java 8 stream question...


Googling amongst the world's online dictionaries produces conflicting results, but on the whole indicates that the answer is "no". However, it feels so natural to say:     The conversants conversed.   Whereas: "the conversationalists conversed" is a bit long.


If $1\leq p < r \leq \infty$ , then $\| x \|_p \geq \| x \|_r $

For $1\leq p \leq \infty$ , let $\| \cdot \|_p $ be the $\mathcal{\ell_p}$ norm on $\mathbb{R}^n$. I need to show that if $1\leq p < r \leq \infty$ , then $\| x \|_p \geq \| x \|_r $.  I have tried Holder's inequality and Minkowski inequality here but they didn't solve my purpose. I am completely stuck at this point.


I have a VPS server on which CentOS 6.5 x64 is installed. Kernel version from uname command is 2.6.18-028stab107.  When I want to use iptables rate limiting like in the following command, I got the error message below.  iptables -I INPUT -p tcp --dport 80 -m state --state NEW -m recent --set iptables: No chain/target/match by that name.   I think required conntrack modules are not installed on system, lsmod command output is empty.  [root@myserver ~]# lsmod Module                  Size  Used by   I try to load modules like below, and got the errors.  [root@myserver ~]# modprobe ip_conntrack FATAL: Module ip_conntrack not found. [root@myserver ~]# modprobe nf_conntrack FATAL: Module nf_conntrack not found.   Finally, I think, I have to install state and conntrack modules, but cant install because yum search result does not include required packages.  [root@myserver ~]# yum search conntrack Loaded plugins: fastestmirror Determining fastest mirrors epel/metalink                                                                                | 5.2 kB     00:00       * base: sg2plmirror01.shr.prod.sin2.secureserver.net  * epel: kartolo.sby.datautama.net.id  * extras: sg2plmirror01.shr.prod.sin2.secureserver.net base                                                                                | 3.7 kB     00:00      base/primary_db                                                                                | 4.4 MB     00:00      epel                                                                                | 4.4 kB     00:00      epel/primary_db                                                                                | 6.1 MB     00:02      extras                                                                                | 3.4 kB     00:00      extras/primary_db                                                                                |  18 kB     00:00      updates                                                                                | 3.4 kB     00:00      updates/primary_db                                                                                | 3.1 MB     00:02      =================================================== N/S Matched: conntrack =================================================== libnetfilter_conntrack.i686 : Netfilter conntrack userspace library libnetfilter_conntrack.x86_64 : Netfilter conntrack userspace library libnetfilter_conntrack-devel.i686 : Netfilter conntrack userspace library libnetfilter_conntrack-devel.x86_64 : Netfilter conntrack userspace library    Name and summary matches only, use "search all" for everything.   How can install these modules and use my iptables commands given at the top?


How to run LaTeX with `--shell-escape` on sharelatex

I'm working with ShareLatex and I'm uploading .pdf image, so it takes a long time to compile because it is a large document. I found it is possible to automatic convert .pdf images to .png using:    \usepackage{graphicx}   \usepackage{epstopdf}   \epstopdfDeclareGraphicsRule{.pdf}{png}{.png}{convert #1 \OutputFile}   \DeclareGraphicsExtensions{.png,.pdf}   which will speed up the compiler but it seems that I need to call pdflatex with the --shell-escape option. The question is, how is it done in Sharelatex?  Here is the info of the webpage of   Thanks


Does this question about the sufficiency of the analyticity of f(z) make sense

Before I ask the question, I know for sure this following question makes sense:  Prove that a necessary condition for $ f(z) $ to be analytic is that the Cauchy-Riemann equations are satisfied.  This question makes sense because if the Cauchy-Riemann equations are satisfied, $f(z)$ need not be analytic. Hence, why it's called a necessary condition.  But in order for $ f(z) $ to be analytic , there are 2 sufficient conditions, the Cauchy-Riemann equations must be satisfied and the partial derivatives must be continuous.  Now for the main question I want to ask:  Prove that a sufficient condition for $ f(z) $ to be analytic is that the Cauchy-Riemann equations are satisfied.  I'm asking this because I had it on my exam yesterday, now how could this make sense, the Cauchy-Riemann equations being satisfied should not be enough, the question did not mention the continuity of the partial derivatives, thus I treated this question as if it was asking "Prove that a sufficient condition for the Cauchy-Riemann equations to be satisfied is that $f(z)$ must be analytic".  So am I right and should I argue with my professor about that?  My question is not about when a function is holomorphic, my question is if the following makes sense as a proof question or not:  Prove that a sufficient condition for f(z) to be analytic is that the Cauchy-Riemann equations are satisfied.


Can any one help me get a free Ubuntu installion disk in Bangladesh?


Preserving the value of a macro outside the local scope

I'm writing a (supposedly) simple financial tracking program using tikz and the fp package.    Within a tabular environment I compute a value using \pgfmathparse{adding some numbers}\pgfmathresult.  The trouble comes when I attempt to access the value of \pgfmathresult outside the tabular environment.  I know that I can use pgfmathsetmacro to assign the value of \pgfmathresult, but the macro is only defined locally, i.e. within the same cell where it was defined. How can I define the macro to be global?  Here is an MWE:  \documentclass{article} \usepackage{tikz} \usepackage{etoolbox} \usepackage[landscape]{geometry} \usepackage{fp} \usetikzlibrary{decorations.text,fixedpointarithmetic} \newcommand{\compute}[1]{%    \pgfmathparse{#1}%    \pgfmathprintnumber{\pgfmathresult} }%  \begin{document} \pgfkeys{/pgf/fixed point arithmetic} \pgfkeys{/pgf/number format/.cd,fixed,fixed zerofill,precision=2}  \begin{tabular}{c}    \compute{1.3+7.5} \gdef\mySum{\pgfmathresult} \end{tabular}  This line should just print the value: \mySum %But I'm told \mysum is undefined  This line should use mySum in a calculation: \pgfmathparse{2*\mySum}\pgfmathresult %Same error  This line should plot a point using mySum: \tikz\draw (0,0) circle (\mySum); %Same error  \end{document}   I have tried variations of the definition of \mySum shown above that used \edef, \xdef, or \let, and tried various placements of \expandafter, all to no avail.  I keep thinking this should be fairly simple....


Open to any and all suggestions / alternative layouts. Need to be able to cleanly circle a number inside of a table. Currently I have this (stolen from elsewhere) and it produces output as attached.    \usepackage{tikz}  \newcommand*\circled[1]{\tikz[baseline=(char.base)]{             \node[shape=circle,draw,inner sep=2pt] (char) {#1};}}  % A completed self assessment sheet (see end of this document). \section{Self Assessment}  \begin{table}[h] \begin{tabular}{llllllllllllll} Level 1 & A & 18 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & \circled{10} \\ Level 2 & V & 12 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & \circled{10} \\ Level 3 & AA & 10 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & \circled{9} & 10 \\ Level 4 & S & 12 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & \circled{8} & 9 & 10 \\ Level 5 & I & 10 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & \circled{8} & 9 & 10 \\ Level 6 & S & 10 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & \circled{8} & 9 & 10 \\ Level 7 & C & 6  & 0 & 1 & 2 & 3 & 4 & 5 & 6 & \circled{7} & 8 & 9 & 10 \\ Level 8 & R & 16 & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & \circled{8} & 9 &    \end{tabular} \end{table}


What is the most secure way for storing user's passwords inside database using PHP?

Which is the most secure and most efficient way for storing passwords inside the database tables using PHP?  So far I have used the md5() and the sha256 algorithm for storing passwords where both of them can be easily hacked using rainbow tables if finally someone gain access on the database.


How to check if mac user uses Time Machine?

I want to know if a mac user uses Time Machine so I can tell him it's a good habit to do backups. So I need to detect if either:   user never activated Time Machine last backup is very old so it's like they are not a regular Time Machine user    I've looked into tmutil but I'm not sure which command would be the most reliable for me to use.   tmutil latestbackup doesnt seems to be a good source of truth for that tmutil listbackups doesnt seems to be a good source of truth for that tmutil destinationinfo maybe? I can't test on a Mac that never used Time Machine to see the output


How to add pictures to the added comments in this website

I asked a question, but I needed to show the person who answered my question a picture of how did I apply what he/she mentioned.  I could not add a picture to the comment and that made me unable to put my comment in shape.


How does an ordinary object become radioactive?

In the 2019 miniseries "Chernobyl", ordinary objects are depicted as being capable of becoming radioactive, such as clothes, water, stones.  How exactly does something composed of a non-radioactive mass, become radioactive?  I'm aware of the differences between alpha, beta, and gamma radiation, and I know how ionizing radiation works.  However, it isn't clear to me how any radiation, including ionizing radiation makes something radioactive in any long-lasting sense of the word.  I can imagine that ionizing radiation excites the atoms in the object, which makes the atom emit a photon until it becomes relaxed again. However, this doesn't sound like something that has a very long lasting effect?  I can also imagine that radioactive particles, such as those from U-235, may stick to clothes or contaminate water. However, this too seems not that plausible, is there really that much U-235 in a nuclear reactor for dust particles to be a considerable problem in this regard?  I'm not arguing that this isn't true, it simply isn't clear to me how the mechanism behind it works. I'm pretty sure this isn't clear to most non-physicists either.


Copy & Pasting from Photoshop to Illustrator loses transparency

I often run into this issue. I'm creating a file in Photoshop with masked layers etc. I want to make the final output available for some mock-ups in Illustrator, so I rasterize the layers and marquee select the entire area, copy and move to Illustrator.  Pasting the area in Illustrator flattens all transparencies, which is quite annoying. I'm left with my object and a flat white background.  Is there a reason for this?


What is the minimum time required to travel 1 light-year from Earth and turn back?

Suppose I have a very powerful and durable rocket that is able to reach speed of light minus $10^{-1000^{1000^{1000}}}$ in $10^{-1000^{1000^{1000}}}$ milliseconds. Very instant acceleration. I can also adjust the amount of acceleration. I want my rocket to travel to a location that is 1 light-year far from earth, and turn back. I want my rocket to come back as soon as possible according to my watch.   Is it approximately 2 years?  How much time would pass according to my rocket's watch? Would the result be different if I want my rocket to come back as soon as possible according to its watch?


If I know the hash function that produced a hash key, how easily can I generate an input to hash to the same key?

The title is pretty descriptive of my question. As an example, say I use the MD5 hash function to create a hash key of the word "hello": 5d41402abc4b2a76b9719d911017c592.  There are two questions I would like to have answered:   How difficult would it be to calculate any new string that would hash to the same key as "hello"?   and    How difficult would it be to calculate a particular new string that would hash to the same key as "hello"?


Bitmap.Clone(Rectangle, PixelFormat) - OutOfMemoryException

Attempting to clone part of an image causes the OutOfMemoryException to be thrown.  The line that causes the error is:  TileImage = TileFileImage.Clone(CloneRect, TileFileImage.PixelFormat);   TileFileImage is 271x271px in size.  CloneRect's upper left corner is at (186, 16) and its lower right corner is at (202, 32) before the exception is thrown.  Both TileImage and TileFileImage are Bitmaps.  CloneRect can never be larger than 271x271px.  Logic in the method the above statement is in prevents the rectangle from exceeding the bounds of the image.  How do I fix this?  UPDATE:  I checked over my logic and found the problem.  Some indices could end up outside the source Bitmap.


How do you add more space to a Fedora (LVM) partition?

In a nutshell, i have a VM that ran out of space. I increased the size of the VM's harddrive to be 4 times bigger but the OS partition is still only using 1x the space. I need to change the LVM partition to take up the extra 4x space but I don't know how to extend the LVM partition.  (NOTE: To make the screenshots given below I had to boot from a live-cd for gnome-partition-manager (aka gparted). .)  Here is what "gparted" shows. Please notice that the "resize" option is not available:      The Problem:  I can't find good directions<1> on how to grow the LVM partition via GUI or command-line! How do you grow a LVM partition that was created by the default Fedora install?  If you are giving command line directions. Please explain what each line of commands does.


Prove inverse of strictly monotone increasing function is continuous over the range of original function

Let $f:[a,b] \rightarrow \Bbb R$ be a strictly monotone increasing. Then $f$ has an inverse function $g:[c,d]\rightarrow \Bbb R,$  where $[c,d]$ is the range of $f$. I'm trying to prove that $g$ is continuous at d.  My intial thoughts for an attempt of a proof:   Strictly monotone functions are injective. So if $\alpha, \beta \in [a,b]$ and  $\alpha \not= \beta  $ then  $\alpha < \beta$. Since $f$ is strictly monotone increasing $f(\alpha) < f(\beta)$ and $f(\alpha) \not= f(\beta)$.   Since $f$ is strictly increasing, so is $f^{-1}$. So if $\alpha < \beta$ then $f^{-1}(f(\alpha)) < f^{-1}(f(\beta))$.   This is because if there exists $\alpha$ and $\beta $ $\in (a,b)$ with $\alpha < \beta$ such that $f^{-1}(\alpha)$ = $\alpha '$ and $f^{-1}(\beta)$ = $\beta '$ and $\alpha ' < \beta '$ then   $\beta = f^{-1}(\beta ') \le f^{-1}(\alpha ') = \alpha$   which is a contradiction if $f$ is strictly increasing.   The remainder of the proof is some form of an epsilon delta proof to show that the inverse function is continuous from the left at the right end point. My attempt:   Let $b$ be the upper limit $ \in [a,b]$ and define $d = f(b)$.   Next, I want to show that $\lim_{x\rightarrow d^{-}}f^{-1}(x) = b$ for any $\epsilon >0$ such that $(b-\epsilon) \subset [a,b]$.  So, $f(b-\epsilon) < f(b)$.   Let $\delta = 1/2 (f(b)-f(b-\epsilon))$  Then $f(x_0-\epsilon) < f(x_0)-\delta$  So if $|x-d| < \delta$, then $|f^{-1}(x)-f^{-1}(d)|<\epsilon$  then continuity holds at $f^{-1}(d)$, which is possible by the Archimedean principle. Currently, I'm having trouble with the epsilon-delta proof. I don't think the argument is strong enough.


Why showing Null Pointer Exception While using JFrame in Eclipse?

Error******************************************************************  Exception in thread "main" java.lang.NullPointerException at java.awt.Window.init(Unknown Source) at java.awt.Window.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source) at java.awt.Frame.<init>(Unknown Source) at javax.swing.JFrame.<init>(Unknown Source) at Main.main(Main.java:12)   Code********************************************************************  import javax.swing.JFrame; import javax.swing.JSlider;  import com.fazecast.jSerialComm.*;  public class Main {      /**      * @param args      */     public static void main(String[] args) {         JFrame w = new JFrame();         JSlider slider = new JSlider();         slider.setMinimum(1023);         w.add(slider);         w.pack();         w.setVisible(true);          } }


Unknown hardware device in driver updates

Attached below is a screenshot of my updates for drivers. I am not sure what this device is and how to fix it. My wifi connection working completely fine so I don't think this is the wifi driver. Please let me know how to fix this. I am using Ubuntu 18.04, laptop model - HP Probook 440 G5


Quite simply; how often do the Team Rocket Balloons spawn, and what, if any, is the limit to how many can spawn per day?


How do I remove the noise on renders?  All my output has noise on the shadows.     This is a png render using cycles renderer.


Can't log into minecraft account when username and password are correct

I have logged into my Minecraft about 2 days ago without any issues, but today I wanted to log in again to play with my friends and I had a problem. The password and the email are correct, but it says that it is not.    I have tried changing my password through the mojang account but no emails came to my email adress, so does that mean that my account does not exist somehow? I just don't get it, someone please help because I really need my Minecraft for my Youtube channel and I really do not want to spend another £18 for another account, my parents just won't let me as I have this account already, someone help please.


SharePoint 2013 server Setup error. Unable to proceed due to the following error(s): This product requires Microsoft .Net Framework 4.5

I found that this problem occurs because the SharePoint Setup and Project Server Setup programs do not recognize the .NET Framework 4.6, 4.6.1, or 4.6.2 as a supported version of the .NET Framework.


I started with Fennikin and finished the game but I guess I never saw Froakie. His second and third evolved forms I have in my pokedex.  I know that people can show you a pokemon that will be added to your pokedex.  How can I find Froakie in order to get him over a trade through the GTS?


Is it possible to join multiple factions in 5e?

I'm playing LMoP with my friends and while I read the adventure I notice there are multiple opportunities to join different factions, so I wonder what happens if a character has an alignment compatible to multiple factions? Can he join all of them? I'm aware that you can gain renown only for one faction at time and if you decide to gain renown on another faction, the one you switch from will go to 0 renown, but it doesn't look like it's harmful to just join several and then decide where to rank or at least I haven't found anything in the rules that would prohibit this.  Am I making any sense here? Thanks


What is the correct punctuation of e.g. when used with a single example?

After e.g. do you always put a comma even if the example is only one thing? DO you write e.g., chicken soup or e.g. chicken soup?  My question refers explicitly to using just a singular example.


Unwanted space around punctuation in copied & pasted listing

When I compile the .tex file below into .pdf using rubber -d mwe.tex and try to copy & paste the contents of the listing, I get spaces around . characters that were not present in the original listing. How do I force listings to preserve spacing (i.e. not add any) and always show exactly what I've typed?  \documentclass{article}     \usepackage{listings}     \lstset{language=sh}     \begin{document}     \title{Lol}     \maketitle     \section{Introduction}     Where does spaces around dot comes from: \begin{lstlisting}       lxc.id_map = g 0 100000 65536 \end{lstlisting}     \end{document}


Parse yaml file without using outside tool

I am new to bash, dragged into a problem where I need to update some dynamic parameters in a yaml file Based on query (search4.subsearch1.name), i need to update name: old_name  into name: new_name   Here is the sample file: search1:     name: name1     pass: pass1     date: date1 #these are just commented texts  search2:   #Adding few more commented lines     myname: somename     name: name2     pass: pass2     someotherparam: param1  search3:     nameAndSurname: NS     namingConv: true     varSet: P3  search4:     #Again adding some special name: strings here         myname: somename1         name: new_name         pass: new_pass         ptherparam1: T3      subsearch1:         #Again adding some special name strings here             myname: somename2             name: old_name             pass: pass2             ptherparam1: param3 search5:     #Again adding some special name strings here         var1: value1         name: some_name         pass: some_pass    So based on query (search4.subsearch1.name), I need to update name: old_name into name: new_name  Expeced output: search4:     #Again adding some special name: strings here         myname: somename1         name: new_name         pass: new_pass         ptherparam1: T3      subsearch1:         #Again adding some special name strings here             myname: somename2             name: new_name             pass: pass2             ptherparam1: param3    Tried with awk and sed but that did not work: lineNR=$(awk "/\<search4:/{f=1} f && /\<name:/ {print NR; exit}" testfile.txt);sed "${lineNR}s/name.*/name: new_name/" testfile.txt


participle phrase or to-infinitive phrase

In response to the long-term measures recommended by the School Board,   the then Principal initiated the Pledge Day on “Clean LA", to encourage   all schools to make the “Clean LA” commitment on that day.   I wonder if it sounds better to replace the to-infinitive clause with a participle clause:      In response to the long-term measures recommended by the School Board,   the then Principal initiated the Pledge Day on “Clean LA", encouraging   all schools to make the “Clean LA” commitment on that day.   because I think it is seldom to use to-infinitive clauses after a comma.


I came across to this: evaluate $$\prod_{k = 1}^{n} \frac {2k - 1} {2k}.$$  I brought it to a closed-form expression in asymptotics but I suspect my asymptotics is bad and I also want to see different solutions, hence the question.  My original solution: Write   $$\begin {eqnarray} \prod_{k = 1}^{n} \frac {2k - 1} {2k} & = & \exp \left (\sum_{k = 1}^{n} \log \left (1 - \frac {1} {2k}\right) \right) \nonumber \\ & = & \exp \left (- \sum_{k = 1}^{n} \sum_{m = 1}^{\infty} \frac {1} {(2k)^m m}\right). \end {eqnarray}$$  Let $$S = \sum_{m = 1}^{\infty} \frac {1} {(2k)^m m} \tag {1}.$$ Multiply both sides of $(1)$ by $2k$ to get $2k S < S + 1$, and by $4k$ to get $4kS > S + 2$. Hence, $$\frac {2} {4k - 1} < S < \frac {1} {2k - 1}.$$ Then, $$\frac {1} {2} \left( \log (4n - 1) - \log 3 \right) - 2 + O \left(\frac {1} {n^2}\right) < \sum_{k = 1}^{n} \sum_{m = 1}^{\infty} \frac {1} {(2k)^m m} < \frac {1} {2} \log (2n - 1) - 1 + O \left(\frac {1} {n^2}\right).$$ Hence, $$\sqrt {\frac {c} {2n - 1}} < \prod_{k = 1}^{n} \frac {2k - 1} {2k} < \sqrt {\frac {3 c^2} {4n - 1}},$$ where $c$ is a constant. Any better approach?


Longtable & \input - Misplaced \noalign and \omit

SOLVED! (see below) I'm trying to create a longtable that uses a generated input file. This is my main file: \documentclass[a4paper]{article}  \usepackage[left=1cm, right=1cm, top=2cm, bottom=2cm]{geometry} \usepackage{ifthen} \usepackage[pdftex]{graphicx} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{longtable}  \pagestyle{empty}  \begin{document}     \begin{longtable}{|l|l|l|}         \hline         Name & First Name & ID \\         \hline\hline                  \input{generated.tex}          \hline     \end{longtable} \end{document}  This is the content of generated.tex: Ebug & Dieter & 515177 \\\hline Mority & Joe & 515192 \\\hline Underland & Barbara & 515211 \\\hline Ebug & Denis & 515230 \\\hline Mustermann & Michelle & 515240 \\\hline Onemore & Karsten & 515253 \\\hline Astone & Leonie & 515271 \\\hline   However, when using \input{generated.tex}, I get the following errors during compilation: ! Misplaced \noalign. \hline ->\noalign                    {\ifnum 0=`}\fi \penalty \@M \futurelet \@let@token \LT@@h... l.25        \hline                  ? H I expect to see \noalign only after the \cr of an alignment. Proceed, and I'll ignore this case.  ?  ! Misplaced \omit. \multispan ->\omit                     \@multispan  l.26    \end           {longtable} ? H I expect to see \omit only after tab marks or the \cr of an alignment. Proceed, and I'll ignore this case.  Note that I'm using to output of the interactive mode here to get more info on the errors. These errors disappear if I remove the last \hline. Apart from those errors, I also get a weird extra row at the end of my table. This also doesn't disappear when removing the last \hline. All the errors and weird last row disappear when I simply add the contents of the generated.tex into the main file. This confuses me because \input is supposed to be the equivalent of simply adding the content of the specified file in its place. Does anyone have any experiences with this? From the error messages it looks like the problem is a carriage return at the end of the generated.tex file. SOLUTION: As Phelype Oleinik mentioned in the comments, this has to do with a change made to \input in fall of 2020. More info can be found . The solution is to define a custom command \expandableinput before the beginning of the document: \ExplSyntaxOn % providing \expandableinput \cs_new:Npn \expandableinput #1 { \use:c { @@input } { \file_full_name:n {#1} } } \ExplSyntaxOff  Then this new command can be used instead of \input.


On Blender , a picture is shown with two Suzannes made of vertical/horizontal lines.    Click to enlarge  How to reproduce this effect with Blender Freestyle? Using modifiers? Custom shaders?


Selecting ARIMA orders based on ACF-PACF vs. auto.arima

I use R to fit an ARIMA model to a time series (yearly granularity):  library(forecast)  beer <- c(150,241,361,403,504,684,706,862,879,806,840,846,1024,1196,1239,1237,1281,1342)  ts_beer = ts(beer, start = c(1980), frequency = 1)  dif.ts_beer <- diff(ts_beer)  acf(dif.ts_beer) pacf(dif.ts_beer)     Based on the ACF and PACF, I fit an ARIMA(4,0,4) model.  dif.ts_beer.fit <- arima(dif.Gas, order = c(4,0,4))  dif.ts_beer.fit   It looks OK. But then I run auto.arima:  auto.arima(dif.ts_beer)   It gives:  Series: dif.ts_beer  ARIMA(0,0,0) with non-zero mean   Coefficients:          mean       70.1176 s.e.  17.0359  sigma^2 estimated as 5242:  log likelihood=-96.4 AIC=196.81   AICc=197.67   BIC=198.48   So the manual ARIMA(4,0,4) is not a good choice for this case? If so, what ARIMA(p,d,q) model should I use?


How to get rid of persistent per-site meta reminder message

I just went on Woodworking SE and this message is at the top of the page, wherever I go.  I find it kind of annoying. I suggest adding a x for dismissing the message.


I am trying to achieve graphics similar to that in this image:   Currently, I'm using pst-asr, which seems like a good tool for the job, however, after scouring the documentation, I'm still not sure how to get past the basic parser. Any help is appreciated!


I logged onto my neighbors wifi one time like a year ago and every single time I close my laptop it will log out of my wifi and try to log-in to my neighbors even though I barely get any signal from theirs. Is it possible to set the default wifi connection? I'm running 14.10 atm.  Thank you.


Problem: Tikz \shadedraw and backward search

I have a problem with forward/backward search in tex. I'm using Miktex, Texniccenter and SumatraPDF and normally the search works just fine. I tried to make a minimal example.  I use one main file (main.tex), where I load my packages, define new commands, etc. and load my single chapter files (1.tex, 2.tex, 3.tex) via \include{}. In some of these files I use tikz-pictures, which are stored in separate tex-files and loaded via \input{*.tex}.  Here is the example:  main.tex:  \documentclass{scrreprt} \usepackage[english]{babel} \usepackage[latin1]{inputenc} \usepackage{tikz}  \begin{document}  \include{1} \include{2} \include{3}  \end{document}   1.tex:  Test 1.1 \input{pic.tex} Test 1.2   2.tex:  Test 2   3.tex:  Test 3   pic.tex:  \begin{tikzpicture}     \shadedraw[top color=yellow,bottom color=black] (0,0) rectangle +(2,1); \end{tikzpicture}   The document compiles just fine and looks the way it is supposed to. But if I try the backward search (clicking in the pdf => jumping to the right line in the tex-file), it does not work for the "Test 2" part (of file 2.tex). I get the error: "no synchronisation info at this point" in SumatraPDF. If I click on "Test 1.1" or "Test 1.2", it directs me to "pic.tex", for whatever reason. Only the backward search used at "Test 3" and the picture itself work correctly.  If I use  \begin{tikzpicture}     \fill[yellow] (0,0) rectangle +(2,1); \end{tikzpicture}   as pic.tex the backward search works just fine.  Any ideas why there is a problem with \shadedraw?  If you need more information, please let me know. Thanks for the help.


Replacing an AC power supply that is 2 volts higher than the original but has the same current rating

I have an audio mixer that requires an AC 16 volt 1 amp external power adapter. I need to know if an 18 volt 1 amp AC external power adapter would work without damaging the audio mixer?


Add Powershell as Administrator to Explorer Context

Presently I have run  in my context menu. I would like to have similar functionality for Powershell as Admin.  Can any one guide me, how do I achieve that?  Simply I tried to change cmd.exe with powershell.exe and change context name. It didn't work. It replaced existing Command Prompt and opened non-usable Powershell


How do entangled states increase computational space for quantum computers compared when only using product states?

My question is:   n-qubit product state. $$|\psi\rangle=(a_1|0\rangle+a_2|1\rangle)\otimes(b_1|0\rangle+b_2|1\rangle)\otimes \cdots$$  n-qubit Entangled state  $$|\psi\rangle=(a_1|000\cdots000\rangle)+(a_2|000\cdots001\rangle)+(a_3|000\cdots010\rangle) \cdots$$  In the entangled states there are $2^n$ different amplitudes which I understand why. My problem lies in if we multiply out the product states we will also get $2^n$ amplitudes (while the correct answer is $2N$) (correct me if i am incorrect)  if we considered it to be three qubits then it will be  $$(a_1|0\rangle+a_2|1\rangle)\otimes(a_3|0\rangle+a_4|1\rangle)\otimes(a_5|0\rangle+a_6|1\rangle) $$  if we multiply them together it will be:  $$a_1a_3a_5|000\rangle+a_1a_3a_6|001\rangle+a_1a_4a_6|011\rangle+a_1a_4a_5|010\rangle+a_2a_4a_6|111\rangle+a_2a_4a_5|110\rangle+a_2a_3a_5|100\rangle+a_2a_3a_6|101\rangle$$  which also gives the same 3 qubit arrangements as a general entangled qubit state $$a_1|000\rangle+a_2|001\rangle+a_3|010\rangle+a_4|100\rangle+a_5|110\rangle+a_6|101\rangle+a_7|111\rangle+a_8|011\rangle$$  So where is the difference? If I made any mistake along the way please point it out for me. This is an assumption i made in an online course on quantum computation and i didnt quite understand what made entangled states increase computational space to 2^n and when using product states computational states was only 2N  Consider that this is my main concern. I am sorry if its a silly question as i am still a beginner in the field.


Is $t\sin\left(\frac1t\right)$ uniformly continuous on $(0,1)$?

Let $f:\mathbb{R}\to (0,1)$, $f=t\sin\left(\frac1t\right)$. I think this function is uniformly continuous, but I don't see how to prove this formally. I can observe that if $s,t\in (0,1)$ and $|s-t|<\delta$, then the smaller $\delta$ we take, the smaller the quantity $$\left|t\sin\left(\frac1t\right)-s\sin\left(\frac1s\right)\right|\mbox{  (*)}$$ becomes. So we can take any $\varepsilon>0$ and any $s,t$, such that (*) is less than $\varepsilon$, and there will necessarily be a $\delta>0$ such that $|s-t|<\delta$.  I would appreciate some suggestions on what approach to take.


Why can't Windows handle an environment variable in Path?

My colleague and I have identical Dell workstations with Windows XP Professional x64 edition installed.  My Path environment variable starts with:  %JAVA_HOME%\bin;...   My colleague's Path variable includes the same directory, specified using the same environment variable, but it is not the first item in his Path.  If I access system properties -> environment variables and change the value of my JAVA_HOME variable, the version of java found from the command-line changes as I expect. This is starting a brand new console window, to be sure to pick up the changes.  But on my colleague's machine, it does not.  He continues to find his previous version of Java until he brings up his Path variable and saves it (even if he makes no changes to it).  (Again, this is when starting a brand new console window.)  I have been observing this inconsistency on Windows for about 6 months now and very curious about it.  We have way too many versions of Windows in our office, so rarely have I had a chance to see this happening on two machines running the exact same OS version, until now.  What is causing this?  Why does his machine not re-evaluate Path, using the new JAVA_HOME, when mine does?  (Is it because it's not the first thing in the Path?  If so, how could that be, and why?  I'd do more tests to check, but I think he's now fed up with it and would like to get back to work.)


Prevent being locked out when configuring SSH and iptables

When you are configuring iptables or SSH over SSH and the data center is thousands of kilometers away (and getting someone there to plug in a KVM is hard), what are some standard practices to prevent locking yourself out?


Multiple sensors on a single serial port

I want to use a single serial UART port on an mcu to communicate with two different sensors. I have connected both the sensors' TX lines together to mcu's RX line and vice versa. I am switching the sensors ON and OFF in such a manner that at no point in time are both the sensors being powered. Would this configuration work?


New to C++ and I get compiler error when using template function

I'm quite new to C++ programming and it seams that I have fundamental problems in understanding how the compiling and linking works. Here is my Minimum example: I have thre files a.hpp, a.cpp and b.cpp.  a.hpp:  namespace A {    template<typename T>    double helpA(T t1,T t2); }   a.cpp:  #include "a.hpp" namespace A {    template<typename T>    double helpA(T t1, T t2){       return(t1 +t2);    } }   b.cpp (main)                                                                          #include <iostream> #include "a.hpp"   int main (int argc, char *argv[]){          double t = A::helpA(1.0,2.3);         std::cout << t << "\n";  }   When I now try to compile the Thing by calling  g++ b.cpp a.cpp   I get the following error:  b.cpp:(.text+0x24): undefined reference to `double A::helpA<double>(double, double)'  collect2: error: ld returned 1 exit status   Every help is appriciated


Given any really large number $x$, such as the busy beaver number $x=BB(BB(99))$, can we construct a proposition such that we know it has a proof or a disproof, but we also know the shortest such proof or disproof is longer then $x$ symbols?


How do you output a list of all man pages in a particular section?

A man page for fork, for example, is in the System Calls section that has number 2:  man 2 fork  How do you see what else is section 2 without resorting to Google?


For which odd positive integer $n$ , is it true that $-1$ is not a positive power of $2$ modulo $n$?

For which odd positive integer $n$ , is it true that $-1$ is not a positive power of $2$ modulo $n$ i.e. $[-1] \ne [2^k] , \forall k >0$ in $\mathbb Z_n$ ? Is there any ( at least sufficient ) characterization for such odd $n$ ?   ( I have only found $n=7$ is such a number ) . Please help . Thanks in advance


Proving $\sum^\infty_{n=1}a_n$ converges absolutely iff each each sub series converges

We have a series $\displaystyle\sum^\infty_{n=1}a_n$ and a sub series $\displaystyle\sum^\infty_{k=1}a_{n_k}$ where $n_k\in\mathbb N$. Prove that $\displaystyle\sum^\infty_{n=1}a_n$ converges absolutely iff each each sub series converges. Hint: choose two converging sub series and use this to prove the original series converge absolutely.  $\Leftarrow$ Let there be two sub series for the odd and one for the even indexes of $a_n$, if both converge than the parant series must converge (but what if only one of them converge ? isn't that a counter example ?). $\Rightarrow$ Suppose $\displaystyle\sum^\infty_{n=1}a_n$ does not converge absolutely, than one of it's sub series diverges, in contradiction to the convergence of both sub series.


Why do people with high reputation get upvoted even for worthless answers?

Please forgive me if I am making some very big mistake by asking a silly question like this. By no means do I want to disrespect any of the intellectual people here on Stack Overflow.  I read a few question and answers on Stack Overflow and found that people with very high reputation get upvotes very easily even if the answers are not worthy to get so many of the upvotes.  An example of such a post is this question:-   I know that the obvious answer could be "yes" but that's just an example.  In this I found that people have  given upvotes and also the answer was accepted, just because it's Jon Skeet, the most reputed and most intelligent guy of the world, who has answered.  If some other guy who had less reputation had answered this in a similar manner, then we can very easily see that people would have downvoted and voted to delete the answer. Or the community or other moderators would have deleted the answer.  Why is this sort of behavior present?  P.S. Jon Skeet: Sir please don't get me wrong. I respect you the most on this planet and by no means do I doubt your intelligence. I took you just because all of us respect and appreciate you, and maybe many can understand what I am trying to convey easily. And if by any means I am disrespecting you then please forgive me. But trust me that's not intentional or personal.  EDIT:-  To mark another example as pointed by someone in comments:-    So how come this answer deserves 117 reps ;) Just becasue the person who is answering it has high reputation.  Trust me there are many more which you people can find as your reputations are higher and I have few restrictions because of less rep. But that's how I have seen it.


What is the difference between $(command) and "$(command)"?

Most of the time I see $(command) used, but I have also seen "$(command)" for example:  if [ "$(command)" ]; then     stuff fi   What is the purpose of the quotes in the second example?


Need to align text to top of cell in table

this is the code I have now:  \begin{tabular}{|l|l|p{8cm}|} \hline NB & Screen & Description\\ \hline \multirow{-40}{*}{1} & \includegraphics[scale=0.4, trim=0 0 0 -5]{CO600_Screenshots/Login-Accounts} & The first view is the Google Login Screen and has 4 buttons. \newline Selecting either of the accounts will take us to Screen 2, 'Add Account' and 'Remove' will take us to further Google screens which have not been documented. \\ \hline \end{tabular}   The large block of text after the \includegraphics is placed automatically at the bottom of the cell - I need to place it at the top.  I've tried to use the multirow package to do this but then the text extends out of the cell and stops wrapping.  Can anyone help?  Thanks!


What download if any should I use on an old Dell dimension B110? I believe it is a 32 bit machine. The old XP software is corrupted and I would like to try a desktop version of Ubuntu or something similar just for online brousing and video streaming. I would be a new/first time user.


How to check if a Java interface has an implementation?

Is it possible in Java to check if an interface has been implemented? If yes:  Is there an official way to do this? How is it possible? And is it possible to check if it is implemented in an external library (jar)?  If no:  Is there a workaround to check this?  An example of my problem can be this: My interface is implemented in an external library(jar), I want to start one of my threads only if this interface has an implementation. (Obviously, I want to check it at runtime without know nothing about the external library.) I accept also suggestion on possible workaround to solve this problem. Note: I can't add framework that help in this task.


I have a C# application required to calculate token same as JavaScript below:  key = CryptoJS.enc.Hex.parse("436574536f667445454d537973576562"); iv = CryptoJS.enc.Hex.parse("1934577290ABCDEF1264147890ACAE45"); text ={userID: 0,tokenTime:'2017-05-06 19:20:22'}; text=JSON.stringify(text); token=CryptoJS.AES.encrypt(text,key,{iv:iv}).toString();   token=9L9qY0fmi3Riysac3YbIciIIJFisPZZC3uBxjriVH1OyARL2ZQ/HVO941/Tod2PT  (JavaScript can not be change)  But,I am confuse by what is include in string "token"?  only ciphertext or whole result of encryption in string?  And,how to convert format of key and iv for CryptoJS to a format which accepted by C#(RijndaelManaged or AesCryptoServiceProvider)?  Most of the question and answer using "CryptoJS.enc.utf8.parse",so I try to convert key and iv from hex to utf-8 ,but only key can be converted.


Demand $z=x+y$ and $x^2/4 + y^2/5 + z^2/25 = 1$. What is the maximum value of $f(x,y,z) = x^2+y^2+z^2$?   I've been attempting this with Lagrange multipliers in a few different ways. However, the resulting system of equations with two lagrangians has so many variables that it becomes very complicated. Can someone show how this is to be done manually?  I also attempted turning it into two unknowns by replacing $z$ with $x+y$. However, this also led nowhere.


How to deal with advisor not allocating time to me?

One of my advisor's students asked me how frequently I have meetings with him. And since at that time we had very few meetings I replied:      "We have a very few meetings and the advisor does not allocate time to me."    The advisor heard it and has started retaliating by reducing those few meetings to zero and complaining about me to other faculty, etc. Do you have suggestions about what I should do now?


I am setting up a script in bash that return some information about a specific dictionary (french for example). I want that this script supports some parameters (4 currently). The issue is how manage the parameters easily than via many conditions ?   For the time being I am testing all the arguments of the script ($1, $2, ..) to be able to know which argument refers to which parameter  # langstat.sh : give statistics on letter occurrences in a specific language # Usage : langstat.sh <dictionary> # -> Display the number of times each letter is used at least once in a word of <dictionary> # Usage : langstat.sh --percentage <dictionary> # -> Display the percentage of times each letter is used at least once in a word of <dictionary> # Usage : langstat.sh --word <word> <dictionary> # -> Return true if <word> is a word of <dictionary> # Usage : langstat.sh --all <dictionary> # -> Display the number of times each letter is used in <dictionary> # Usage : langstat.sh --alphabet <alphabet> <dictionary> # -> Display the number of times each letter is used at least once in a word of <dictionary> using <alphabet> as alphabet   if [[ $# -lt 1 || $# -gt 5 ]] then     echo "Usage : $0 [--percentage] [--all] [--alphabet <alphabet>] <dictionary>"     echo "Usage : $0 --word <word> <dictionary>"     exit fi   ...... ...... ......  # Tests to understand how parameters are ordered if [ $# -eq 1 ] then  elif [ $# -eq 2 ] then     if [ $1 == "--percentage" ]     then      elif [ $1 == "--all" ]     then      fi elif [ $# -eq 3 ] then     if [[ $1 == '--percentage' && $2 == '--all' || $1 == '--all' && $2 == '--percentage' ]]     then      elif [ $1 == '--alphabet' ]     then      elif [ $1 == '--word' ]     then      fi elif [ $# -eq 4 ] then     if        fi elif [ $# -eq 5 ] then     if [[ $1 == '--percentage' && $2 == '--all' && $3 == '--alphabet' ]]     then      fi fi   So my question is do you have some suggestions, maybe do you know any command, that permit to manage easier the parameters ? There are many conditions to test with 4 parameters then how people do when parameters are 10 or 20 ?


How can I solve the folowing Diophantine equation with two unknowns?

Find one integer solution to the following Diophantine equation:   \begin{equation*} \\\forall \,x,y \in \mathbb{Z}\\ 6xy + x - y = 274 \end{equation*}   The resultat ist $x = 9$, $y = 5$ (Obtained with  )  I need to know a method that allows me to reach such a result. How can I calculate the value of these two variables in a Diophantine equation? For example: 6xy + x - y = 458


Transiting Amsterdam with single entry Schengen visa for Norway?

I hold a Fiji Passport and I have obtained a Schengen Visa for Norway. It is a short stay visa and is for single entry only.  I will be transiting Amsterdam while going to Norway; will my Schengen short stay visa for single entry in Norway be sufficient to guarantee me an air-side transit in Amsterdam?


Mapping homotopic to the identity map has a fixed point

Suppose $\phi:\mathbb{S}^2\to\mathbb{S}^2$ is a mapping, homotopic to the identity map.  Show that there is a fixed point $\phi(p)=p$.


set name of table with variables in mysql

I am trying to create a table with a fixed prefix and a variable, something similar as below.   set @id=10; CREATE TABLE Exam_@id(     name varchar(25) not null,     roll int(11) not null     )   But mysql throws some error. can any one suggest me the right way to do?(I am working in phpmyadmin directly).  -thanks


Which is correct when using the word staff?

Which sentence is correct? Call center staff receive the information, or call center staff receives the information? I would consider the use of the word Staff as plural in this usage case.


I just append a number to one list in a list, but why do all lists in the list' change?


No transaction fee ETF trades - what's the catch?

I just noticed TD Ameritrade has program where you can trade from a list of ETFs with zero fees.  Sounds like it could save me a bit of money, but my cynical side wonders how they make money off such a program...  Is it a loss leader? (They entice me to have an account there, and then make money off the other trades I make?)  Or do they simply want to grow the size of their asset base -- what is the mechanism by which they make money on the funds that I have in my account?  Edit: in case it wasn't clear in the original question above, this is an ongoing program for free ETF transactions -- not a one-time deal for some number of free trades when you open an account. I have had an account there for years and I'm eligible to participate -- it's not a program explicitly designed just to gain new accounts.


I want to set the first least common multiple of 2 number(n1 and n2), but my break statement won't work.  I don't want to use a return(which it works).  Is there a way to work around this?  Thanks.  var firstDayTogether,n1,n2;  for(var i=1;i<12345;i++){     for(var j=1;j<12345;j++){         if((s1*i)==(s2*j)){             firstDayTogether=(s1*i);             break;         }     } }


Is there any way to disable core and plugin updates? I am modifying a plugin and bit of WordPress Core (I know its a sin to do so), but can't help it.


What exactly does the '2' mean when someone writes read(2) while specifying the system call?

What does someone mean when they say read(2), or open(1)? What do the numbers in the brackets actually mean?  Edit: Rephrased the title of the question.


I have the following code:  \begin{figure}       \centering \includegraphics[width=1\textwidth]{Fig/cross_section.jpg} \caption{     Photon's total cross section as a function of energy in Lead. Taken from \cite{phys}. Where:     \newline     $\sigma_{p.e.}$ = Atomic photoelectric effect\\     $\sigma_{Rayleigh}$ = Rayleigh (coherent) scattering\\     $\sigma_{compton}$= Compton (incoherent) scattering\\     $\kappa_{nuc}$ = Pair production, nuclear field\\     $\kappa_{e}$ = Pair production, electron field} \label{fig:2.1} \end{figure}   I want to make it so all the text is aligned with respect to the = sign. I tried using align but then my code refused to compile. The same happened when i tried using \hspace and do it manually. Can someone help me out or point out what I am doing wrong?


Update OpenGL on Intel Integrated Graphics?

I'm a little confused on how to update opengl for Intel integrated graphics. I have an old laptop with an i3 M330 processor in it and I'm attempting to run a program that requires at least openGL 3.2. It states that I currently have openGL 2.1 and that 3.2 is the minimum version required, but I have no idea how to update it since it's not a dedicated video card with its own drivers. How would I update opengl to at least 3.2 on intel integrated graphics?


So I was looking into infinite decimals that have patterns and trying to practice turning them into ratios (for example 0.1111...=1/9) and then I thought of this number 0.23571113... with all the primes into infinity I think this number has a name probably related to Euler, if so I would like to know it. my question is this number rational or irrational or hasn't been figured out yet? if so please provide simple proof.


Displaying a different name in django admin

I have  in admin.py:  class PurchaseOrderAdmin(admin.ModelAdmin):     fields = ['product', 'dollar_amount']   in models.py  class PurchaseOrder(models.Model):     product = models.CharField(max_length=256)     dollar_amount = models.FloatField()   I would like to display 'dollar_amount' as 'price'. How would I do that?


POSIX environments provide at least two ways of accessing files.  There's the standard system calls open(), read(), write(), and friends, but there's also the option of using mmap() to map the file into virtual memory.  When is it preferable to use one over the other?  What're their individual advantages that merit including two interfaces?


Object offset of array modifier acting weird

When I am adding object offset to an array modifier he is not using original sizes instead he is transform my object and then add it.


Data augmentation techniques for numeric datasets?

I'm writing a paper about Data Augmentation and I'm looking for some way of increasing the size of a dataset. I'm already aware of the techniques used for images (transformations, PCA, blurs, etc.) but I'm having trouble finding augmentation techniques for classic numeric datasets such as Iris for example.  I already explored some obvious methods which are the following :   Uniform Random Generation : This really naive method consists of creating a new instance based on the min an max of the existing ones, the value of each feature is generated randomly with a uniform probability. (The mins and maxs are calculated from the values of the concerned feature of the concerned class each time) Normal Random Generation : Same as Uniform but the probability function is now a gaussian curve. Which is of course less naive since generated value fit the initial data distribution. Adding Noise : This method is a little different since it consist of cloning initial values, but each time adding some noise to it. This methods aims to strengthen the models and prevent overfitting.   I'm kinda new to ML and data augmentation and these 3 methods can look pretty obvious, i was wondering if anyone had an idea of different methods/algorithms to do such a task.  Thanks for your advices.  DP  NB: Text Augmentation is out of my project scope but if you have any info on that, please share !


When does the serial-voting reverse process happen?

I've been hit with several serial votes and I'm wondering how soon they will be reversed, since I've noticed it used to happen in the past.     The specific site is Code Golf. See the picture below:


Why is the electric dipole moment of the nucleus of an atom equal zero?

I read about the hyperfine interactions which cause the altering of the energy levels of the nuclues of an atom. Under the discussion about the electric monopole and quadrupole interactions, the term of the electric dipole moment interaction was determined to be zero. It was only stated that the nucleus has no electric dipole moment without giving any explicit reason.  My question is, what are the assumptions leading to this result?  It seems like the only assumption that was taken into account was the nucleus being a positive charge distibution and it does not supposed to cause the electric dipole moment of the nucleus to be zero considering the expression of the electric dipole moment.  I would have assumed that some sort of symmetry of the nucleus charge distribution need to be considered as well.


The following tex produces the image below. I want the arrow in the centre of the lines. Is it possible to modify the given tex to fix it? Thanks  \begin{tikzpicture}[grow=right,scale=1,solid node/.style={circle,draw,inner sep=1.5,fill=black}] \draw[{<[scale=2.5,           length=3,           width=3]}-] (0.7,0.7)node[solid node,fill=green]{} -- (1.5,1.5) node[solid node]{};           \draw[{<[scale=2.5,           length=3,           width=3]}-] (1.5,1.5)node[solid node]{} -- (2.5,2)node[solid node]{};           \draw[{<[scale=2.5,           length=3,           width=3]}-] (2.5,2)node[solid node]{} -- (3.4,2.2)node[solid node,fill=red]{}; \end{tikzpicture}


Pull down menus on mobile incorrectly sized

This started occurring only in the last week or so. Only affects portrait layout, but it makes the menus completely unusable:


Table of ybar plots with specific colors

I am trying to use specific coloring in an table of ybar plots. Maybe someone can help me out here. I have read other threads concerning the coloration of ybars but none of them really worked.  This is what I have:    This is what I want:    That the "mean" symbol in the legend has 3 bars is especially tricky. The coloring is just something I can not accomplish.  Here is the code I used.  \documentclass[12pt,a4paper]{memoir} \usepackage{pgfplots} \usepackage{pgfplotstable}  \begin{document} % data1      \pgfplotstableread{          x            y      y-min   y-max A   -9.647  0.524   0.468 B   -12.114 0.089   0.087 C   -14.902 0.483   0.435 }{\TabA}             % data2          \pgfplotstableread{          x      y        y-min   y-max A       -10.185 0.196   0.187 B   -12.656 0.283   0.265 C       -15.307 0.412   0.376 }{\TabB}                     % mean           \pgfplotstableread{          x            y      y-min   y-max A   -9.698  0.775   0.657 B   -13.608 2.495   1.575 C   -14.974 0.564   0.499 }{\TabSijMean}  \pgfplotsset{small} \begin{center} \begin{tabular}{lr} \begin{tikzpicture} \begin{axis}[width=8cm, legend pos=north west, y dir=reverse, enlarge x limits=0.2, ybar=0, xtick=data, bar width=10pt, symbolic x coords={A,B,C}, legend cell align=left ]  \addplot [ybar, fill=black!70]    plot [error bars/.cd, y dir=both, y explicit]   table [y error plus=y-max, y error minus=y-min] {\TabA}; \addplot [ybar, fill=black!50]    plot [error bars/.cd, y dir=both, y explicit]   table [y error plus=y-max, y error minus=y-min] {\TabB};   \addplot [ybar, fill=blue]    plot [error bars/.cd, y dir=both, y explicit]   table [y error plus=y-max, y error minus=y-min] {\TabSijMean};     \legend{\tiny data1,\tiny data2,\tiny mean} \end{axis} \end{tikzpicture} & \begin{tikzpicture} \begin{axis}[width=8cm, ybar, xtick=data, symbolic x coords={A,B,C}, bar width=10pt, enlarge x limits=0.2, ] \addplot[fill=blue,error bars/.cd, y dir=both, y explicit] coordinates{(A,62.37) +-     (0,5.65) (B,67.90) +- (0,5.527) (C,64.04) +- (0,4.654) }; \end{axis} \end{tikzpicture} \\ \end{tabular}% \end{center} \end{document}   I am really getting crazy here. Hopefully someone can help me.  Thanks BR


If $X, Y$ are jointly standard normal with correlation $r$, and $a, b$ are constants, what is $p(Y < b | X < a)$?

The application here is interpreting the correlation coefficient $r$ in terms of $X$'s ability to predict $Y$ for extreme values of $X$. For example, if $r = .8$, then what is $p(Y < 0 | X < -2)$?


Does multiplayer progress carry over between platforms?

I play ME3 on xbox and a friend has it on PC. I know we can't game together between platforms but I was wondering if I bought ME3 on the PC is there any way that I can use the same profile that I use with xbox so I have the same classes and weapons unlocked without having to start over again? I'm thinking not but I thought it worth checking...


Alternative ways to update apps via App Store

So I'm trying to update from Xcode 7.0.1 to Xcode 7.1 from the App Store. Xcode 7.1 is one of the my available updates. I use the latest EL Capitan 10.11.1. I click the UPDATE button for Xcode 7.1 it says "waiting" and PAUSE then a second later it goes back to UPDATE and nothing installs nothing updates, it's not telling me that I have something else open, which I don't. Is something wrong with App store now? Is there an alternative way to update my Mac apps?


Why do changes on a new branch get carried over after switching to a different branch?

I faced this problem working on my fork of a repository. When I would make changes to some file(s) on a new branch and then switch to a different branch, git will not raise the error: You have local changes to "X"; cannot switch branches. error. Instead, it will just move to the new branch and reflect the changes in that branch as well. Please let me know if this a beginner mistake on my part.  Steps to reproduce -   Fork the repository git checkout -b new-branch-name Make changes to any file Switch back to master and those changes would reflect there   This is causing my master to be the same as a branch that I made changes to, which continued to stay after. Committing once to the newly created branch, however, fixes this issue.


How do I prove if a set of operations is complete?

For example $\{\land, \lnot\}$ apparently forms a functionally complete set as it can form any logical expression.  But I don't really know what this means or how you show it. Do we just show that some set is complete and then in the future if we have a new set, show that we can replicate the known operations with the new ones?  Do you have to find these strategically or is there a systematic way?