Proving the cross product matrix tranformation identity with an alternative solution

I'm solving a problem from the book, Mathematics for 3D Game Programming and Computer Graphics, Third Edition, by Eric Lengley. The problem goes:  Let $N$ be the normal vector to a surface at a point $P$, and let $S$ and $T$ be tangent vectors at the point $P$ such that $S \times T = N$. Given an invertible 3 $\times$ 3 matrix $M$, show that $(MS) \times (MT) = (\text{det}M(M^{-1})^{T}(S \times T)$, supporting the fact that normals are correctly transformed by the inverse transpose of the matrix $M$.  The author provided a hint stating we can represent $(MS) \times (MT)$ as $$ (MS) \times (MT) = \begin{bmatrix} 0 & -(MS)_{z} & (MS)_{y} \\  (MS)_{z} & 0 & -(MS)_{x} \\  -(MS)_{y} & (MS)_{x} & 0  \end{bmatrix} MT $$ We then find a matrix $G$ such that $$ GU = \begin{bmatrix} 0 & -(MS)_{z} & (MS)_{y} \\  (MS)_{z} & 0 & -(MS)_{x} \\  -(MS)_{y} & (MS)_{x} & 0  \end{bmatrix} M $$ where $$ U = \begin{bmatrix} 0 & -S_{z} & S_{y} \\  S_{z} & 0 & -S_{x} \\  -S_{y} & S_{x} & 0  \end{bmatrix} $$ and show that $G = (\text{det}M)(M^{-1})^{T}$ to solve the problem. I am aware that there is an  to this problem, but I would like to solve it through the hints provided. Unfortunately, I am only able to go as far doing: $$ G = \begin{bmatrix} 0 & -(MS)_{z} & (MS)_{y} \\  (MS)_{z} & 0 & -(MS)_{x} \\  -(MS)_{y} & (MS)_{x} & 0  \end{bmatrix} M U^{-1} $$ At this point, I do not know how to proceed with showing that $G = (\text{det}M)(M^{-1})^{T}$. How would you proceed? I'd like to ask for hints on solving the problem.


Where can I see the source code of the Sun JDK?

I want to have a look at how Java implements LinkedList. Where should I go to look at the source code?


Find $\lim_{n \to \infty} P(X_n+n = Y_n)$ If $X_n,Y_n$ have Poisson distribution of $Poi(n), Poi(2n)$

We are given a whole number $n \geq 1$ and independent Random variables $X_n$ with distribution $Poi(n)$ and $Y$ with distribution $Poi(2n)$. Determine $\lim_{n \to \infty} P(X_n+n = Y_n)$.  I tried to write the probability as$\sum_{k=0}^{\infty}P(X_n=k)P(Y_n=n+k)$ but I didn't make progress. I suspect I need to use one of the limits laws (Central limit, large numbers, small numbers) but I am not sure how. Suggestions?


Is the Stack Exchange YouTube channel still being updated?

On the Stack Exchange YouTube channel, all of the videos seem to have been uploaded one year ago. Has it been abandoned, or will there be another large video that takes one year to produce posted on it soon?


Find all $n \in \mathbb{Z}$, such that $\phi(2n)=\phi(3n)$?

I know this question has been answered before, but I don't even know how to start this one.   I know  $\phi$ is a multiplicative function, but I'm honestly so lost I don't know what to do.   Could anyone shed some guidance? Forgive my ignorance, please. I want to learn but I feel as though I've been left to fend for myself in this course


How to avoid page break when using \include?

I am writing a book, the format goes like this: Theory -> Answer key -> Hints -> Solutions. I have separate tex files for theory, answer key, hints and solutions. The problem is that when I combine all of them by using \include, I am getting automatic page break which I don't want. How can I avoid it? I am attaching a screenshot for better understanding. Thanks.


authentication and firestore error - NullPointerException

when I added Firestore cloud dependency, my app crashes when the user logs out     kotlin.KotlinNullPointerException             at com.example.proghelp.ProfileActivity$read_write_fire$2.onEvent(ProfileActivity.kt:93)             at com.example.proghelp.ProfileActivity$read_write_fire$2.onEvent(ProfileActivity.kt:35)             at com.google.firebase.firestore.DocumentReference.zza(Unknown Source)             at com.google.firebase.firestore.zzd.onEvent(Unknown Source)             at com.google.android.gms.internal.firebase-firestore.zzkp.zza(Unknown Source)             at com.google.android.gms.internal.firebase-firestore.zzkq.run(Unknown Source)             at android.os.Handler.handleCallback(Handler.java:605)             at android.os.Handler.dispatchMessage(Handler.java:92)             at android.os.Looper.loop(Looper.java:137)             at android.app.ActivityThread.main(ActivityThread.java:4517)             at java.lang.reflect.Method.invokeNative(Native Method)             at java.lang.reflect.Method.invoke(Method.java:511)             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)             at dalvik.system.NativeStart.main(Native Method)   my firebase dependencies    implementation 'com.google.firebase:firebase-core:15.0.0'     implementation 'com.google.firebase:firebase-storage:15.0.0'     implementation 'com.google.firebase:firebase-database:15.0.0'     implementation 'com.google.firebase:firebase-auth:15.0.0'     implementation 'com.google.android.gms:play-services-auth:15.0.0'     implementation 'com.firebaseui:firebase-ui-database:3.1.3'     implementation 'com.firebaseui:firebase-ui-storage:3.2.1'     implementation 'com.google.firebase:firebase-analytics:15.0.0'     implementation 'com.google.firebase:firebase-firestore:15.0.0'     implementation 'com.android.support:multidex:1.0.3'   my log is in tis code:    var db = FirebaseFirestore.getInstance();        val notebookRef3 = db.collection(currentuser.uid)   notebookRef3.document("name").addSnapshotListener { querySnapshot, e ->             var note = querySnapshot!!.toObject(Note2::class.java)            var name = note!!.username             iduserprofile.text = name         }   it says the log is here      var note = querySnapshot!!.toObject(Note2::class.java)


Sum of all products of $k$ members of the set $\{1, 2, 3, \cdots, n\}$

How can I get a closed form for the sum of all products of $k$ distinct members of the set $\{1, 2, 3, \cdots, n\}$? I can see that for $k = 2$, the answer is $$\sum\limits_{i = 1}^{n-1}\sum\limits_{j = i+1}^nij$$ and this can be solved for an explicit formula. Is there a way to get this for arbitrary $k$?


Have a business card file created in AI. Printer is asking for crop marks and we are looking to have 1/4" rounded corners for the cards. How do I create crop marks or setup bleed for this? or is the setup for the 1/4" rounded corners the printers responsibility and I simply supply standard crop marks?  Thanks!


What is the difference between the way a microscope magnifies say a star and a telescope say a cell? Why is it, that the eyepiece of a telescope magnifies stronger when it is smaller and with a microscope it is the other way around?


When I try to run a program, the program screen turns to black.  It occurs also when I do Alt + Ctrl + T to open the Terminal, it's all black color.  I haven't installed anything and the last thing I did was turn off the computer.  The system runs Ubuntu 16.0 with AMD Radeon graphics drivers.


When installing a package using apt-get install, the package is installed but gives the following warning:  W: GPG error: http://12.345.67.890/repo stretch InRelease: The following signatures were invalid: 789B6B7630E9396A52F4D467B646B1C0B99B99E4 W: The repository 'http://12.345.67.890/repo stretch InRelease' is not signed.    Situation:   I am the maintainer of the repository, and don't wish users to need implement workarounds on their side. The repository is being hosted on Centos7. reprepro.x86_64 4.17.0-3.el7 from epel is being used. The receiving machine is a RPi3. Both machine's date show identical times.   Steps taken (mostly from  )   I generated GnuPG keys using default values and a passphrase. I configured Apache I configured reprepro   The Maintainer in repo/dists/stretch/main/binary-armhf/Packages lists the same name and email as was used with my GPG key. In conf/distributions, I've used "SignWith: default" as well as my main public and secondary public key, but no change.  Note that the user I've implemented under has only one GPN key.  I did not use overrides. I added packages to the repository I exported the public GnuPG key   I've tested using both the main public and secondary public key, and they produce an identical key.  I did not attempt to sign the Debian package using dpkg-sig as everything I've read states reprepro will automatically do so. I imported the public GnuPg key described by Step 6.   What can I do to prevent this warning?  If no single answer, I also have sub-questions:   Can the issue be related to installing on Centos7? Is the package’s changelog file the same as repo/dists/stretch/main/binary-armhf/Packages? Does my key somehow have to be sign or hosted by someone else due to web of trust? Do I need to also insert my email when exporting the public GnuPg key (i.e. step 6 above)?  If so, how? How can I manually ensure the key is properly signed on a different machine? Is dpkg-sig or equivalent available for Centos7? Does dpkg-buildpackage also need to be used?  It isn't referenced by  .


Placing controls outside map container with Leaflet?

Can someone tell me how I can place controls outside of the map content with Leaflet?  In this case, I just want to place the layer switch control outside the map object.


This is my database helper class. I am calling createWord methot to create databese. It is working. But when I calling listEnWords method to display on recyclerview I am taking nullpointerexeption. I think my context is wrong. How should I change my context?     java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory, android.database.DatabaseErrorHandler)' on a null object reference   public class WordsDbHelper extends SQLiteOpenHelper {  private static final int DATABASE_VERSION = 3; private static final String DATABASE_NAME = "words.db"; private Context context;  public WordsDbHelper(Context context) {     super(context, DATABASE_NAME, null, DATABASE_VERSION);     this.context=context; }   @Override public void onCreate(SQLiteDatabase db) {     final String SQL_CREATE_BOOKS_TABLE =              "CREATE TABLE " + WordEntry.table_WORDS + " (" +                      WordEntry.word_iD + " INTEGER PRIMARY KEY AUTOINCREMENT, " +                      WordEntry.word_ENG + " TEXT NOT NULL, " +                      WordEntry.word_TR + " TEXT NOT NULL )";      db.execSQL(SQL_CREATE_BOOKS_TABLE);  }  @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {     db.execSQL("DROP TABLE IF EXISTS " + WordEntry.table_WORDS);     onCreate(db); }  public void createWord(Words book) {     String table_WORDS = "words";     String word_ENG = "engWord";     String word_TR = "trWord";      // get reference of the BookDB database     SQLiteDatabase db = this.getWritableDatabase();      // make values to be inserted     ContentValues values = new ContentValues();     values.put(word_ENG, book.getEngWord());     values.put(word_TR, book.getTrWord());      // insert book     db.insertWithOnConflict(table_WORDS, null, values, SQLiteDatabase.CONFLICT_IGNORE);      // close database transaction     db.close(); }  public List<String> listEnWords() {     List<String> dataEng = new ArrayList<>();      SQLiteDatabase db = this.getWritableDatabase(); //Error is here     String[] columns = {WordEntry.word_iD, WordEntry.word_ENG, WordEntry.word_TR};      Cursor cursor = db.query(WordEntry.table_WORDS, columns, null,             null,             null,             null,             null);      while (cursor.moveToNext()) {         dataEng.add(cursor.getString(0) + "-" + cursor.getString(1));      }     return dataEng; }  public List<String> listTrWords() {     List<String> dataTr = new ArrayList<>();      SQLiteDatabase db = this.getWritableDatabase();     String[] columns = {WordEntry.word_iD, WordEntry.word_ENG, WordEntry.word_TR};      Cursor cursor = db.query(WordEntry.table_WORDS, columns,             null,             null,             null,             null,             null);      while (cursor.moveToNext()) {         dataTr.add(cursor.getString(2));      }     return dataTr; }   I am calling list methods from adapter of recyclerviev like this.  @Override public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {     WordListRecyclerItemViewHolder holder = (WordListRecyclerItemViewHolder) viewHolder;      WordsDbHelper helper = new WordsDbHelper(null);      List<String> enWordData = helper.listEnWords();     List<String> trWordData = helper.listTrWords();      String itemEnText = enWordData.get(position);     String itemTrText = trWordData.get(position);      holder.setNewsTitle(itemEnText + ". word");     holder.setNewsDesc(itemTrText + ". kelime"); }


Does Java have any framework similar to WPF( as it has capability of using shaders)

I have been wondering like most of the desktop application which has to deal with the simulation and design stuff has been designed in WPF, So, I wanted to know is there anything similar to WPF in java and which has each & every capability of WPF  " This question may be having similar variants and all question ends up with the answer JavaFX and combination of couple of frameworks". as better explained at this question   So, does java have a single piece of framework which has got each and every capability of WPF Including hardware based rendering(GPGPU programming) and even call pixel shader, vertex shader and geometry shader.


When I do hexdump filename.txt I get the following as output:  00000000 ac5a 5afb c08d 5d15 26d0 2491 e8c9 8917 00000010    When I do <?= bin2hex(file_get_contents('filename.txt')); ?> I get this:  5aacfb5a8dc0155dd0269124c9e81789   So why is hexdump suggesting the contents should be ac5a5afbc08d5d1526d02491e8c98917 when PHP is suggesting they ought to be 5aacfb5a8dc0155dd0269124c9e81789? Am I just not interpreting the output of hexdump correctly?


Group $U(n)$ closed under modular multiplication with every element is its own inverse

With,  $$U(n) = \lbrace k : (k, n) = 1 \space and \space 0 < k < n \rbrace.$$  For some $n$, each element of $U(n)$ will have itself as its own multiplicative inverse. As an example, for $n = 8$:  $$U(8) = \lbrace 1, 3, 5, 7 \rbrace$$ Inverse of $1, 3, 5, 7$ under multiplication modulo $8$ is respectively $1, 3, 5, 7$. And it is very weird, because in this case multiplication of $a$ with $b$ is same as division of $a$ with $b$.  My question is are there infinitely many $n$ such that $U(n)$ satisfies the property above? I wrote a script and tested this for all $n \lt 1000$ and found only the following solutions:  $$n = 1, 2, 3, 4, 6, 8, 12, 24$$  Are there any more solutions, or are they the only ones? How to show that?


Where to recruit people for a roll for shoes game?

I am trying to gather people to host a game of roll for shoes but since i am not very familiar with the people who use the system i don't know where they hang at or how to contact them. Does anyone know where i can gather people with interest in roll for shoes mechanics?  To be more specific i am looking to create a roll for shoes game with the experience only being awarded by the GM. I plan to make it a west marches style campaign so i am not looking for those who just want to play a one shot.


Should I create a corporation, even if I won't make money or receive funding until later?

Suppose I may not be profitable, make any money, or receive funding for another year. Should I still create the business entity now?


What is wrong with this following c# code just trying to find out Length and reverse of a given String

I am just trying to find out the reverse and length of a string. Here is the snippet of the Code:       Console.WriteLine("Please Enter your String: ");         string InputString = Console.ReadLine();          char[] String_Array = InputString.ToCharArray();         int Length = 0;          foreach (char c in String_Array)         {             Length++;         }         char[] String_Reverse = null;         for (int i = Length - 1, j = 0; Length >= 0; Length--, j++)         {             //Here is the error I am facing, Null Reference Exception              String_Reverse[j] = String_Array[i];         }         string Reverse = new string(String_Reverse);          Console.WriteLine("Length of the String " + InputString + " is :" + Length + " and Reverse of the String is :" + Reverse);         Console.ReadLine();


Sections of tensor bundle are tensor product of sections

Given $E,F$ vector bundles over a manifold $M$, I would like to know a proof of $\Gamma(E\otimes F) = \Gamma(E) \otimes_{C^\infty(M)} \Gamma(F)$. Where $\Gamma$ denotes the smooth sections over $M$. Thanks


Illustrations showing up pixelated in Indesign despite huge resolution

Illustrations I create in Procreate show up pixelated at edges despite high resolution when I place them in Indesign.    I'm working on illustrating books for print. It's my first time working on a print project, I usually do digital illustration for the web.  I use Procreate on Ipad Pro for illustrations, and need to place them into Indesign layouts. I do my best to create clean lines in my illustrations, and use a huge resolution as well (each illustration is about 3000x3000px in size), but when I place them in Indesign there's some weird stuff happening with illustration edges. I use 4000x4000 at 300dpi resolution for my canvas. Then export the image as PNG before placing into Indesign.  What am I doing wrong? Maybe it's exactly because the resolution is too high? Or it's a PNG issue?


Is there a log of past threads that are now closed?

Sometimes, I have a rogue Java process which takes up 100% of my CPU and makes it jump about 30C in temperature (usually resulting in a crash if not killed).  Problem is, I can never really identify it (its got a long list of parameters and stuff) or analyze it because I have to kill it so quickly.  Is there a sort of log I can look at to see the identity of past processes I have killed? If not, is there a way for me to catch that process next time it shows up?  If it matters I'm OpenSuse 11.4.


Solutions to $\frac1{\lfloor x\rfloor}+\frac1{\lfloor 2x\rfloor}=\{x\}+\frac13$

Find all solutions to $$\dfrac{1}{\lfloor x\rfloor}+\dfrac{1}{\lfloor 2x\rfloor}=\{x\}+\dfrac{1}{3}$$   $$$$ Unfortunately I have no idea as to how to go about this. On rearranging, I got $$3\lfloor 2x\rfloor = 3\lfloor x\rfloor\{x\}-2\lfloor x\rfloor$$ I'm not sure about what to do with the $3\lfloor 2x\rfloor $ term; I'd prefer to resolve it in terms of $\lfloor x\rfloor $ but am not able to. All that struck me was using the identity for $\lfloor nx\rfloor, n\in \Bbb Z$. However on first glance, it did not strike me as particularly useful.$$$$ I would be grateful for any help. Many thanks!


Interpreting linear regression with NA for estimates

I have 3 variables. Income is the dependent variable(continuous), sex(binomial), workhrs(categorical) i fitted a linear model and obtained the result:  My question is: Is this model usable? The NA values come from the fact that workhrs is missing 4 categories. The fifth one is i think due to coliniarity. The adjusted R squared is pretty high, but is the model Usefull to predict? or the interaction is not useful and should be dropped?  Call: lm(formula = income ~ factor(sex) + factor(workhrs) + factor(sex):factor(workhrs))  Residuals:    Min     1Q Median     3Q    Max  -6.757 -1.261  0.000  1.531  5.690   Coefficients: (5 not defined because of singularities)                                Estimate Std. Error t value Pr(>|t|)     (Intercept)                      31.330      4.645   6.744 8.42e-05 *** factor(sex)1                      0.160      6.569   0.024 0.981101     factor(workhrs)1                  2.930      5.689   0.515 0.618960     factor(workhrs)2                 13.240      8.691   1.523 0.161968     factor(workhrs)4                 10.935      5.689   1.922 0.086773 .   factor(workhrs)5                  6.960      6.569   1.059 0.316997     factor(workhrs)6                 30.045      8.691   3.457 0.007192 **  factor(workhrs)7                 18.315      5.689   3.219 0.010503 *   factor(workhrs)8                 26.947      5.364   5.024 0.000715 *** factor(workhrs)9                 25.340      6.569   3.857 0.003863 **  factor(workhrs)10                38.850      9.291   4.182 0.002370 **  factor(sex)1:factor(workhrs)1     9.160      8.691   1.054 0.319347     factor(sex)1:factor(workhrs)2        NA         NA      NA       NA     factor(sex)1:factor(workhrs)4     9.060      8.046   1.126 0.289276     factor(sex)1:factor(workhrs)5    23.035      8.691   2.651 0.026451 *   factor(sex)1:factor(workhrs)6        NA         NA      NA       NA     factor(sex)1:factor(workhrs)7     3.325      8.691   0.383 0.710895     factor(sex)1:factor(workhrs)8        NA         NA      NA       NA     factor(sex)1:factor(workhrs)9        NA         NA      NA       NA     factor(sex)1:factor(workhrs)10       NA         NA      NA       NA     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Residual standard error: 4.645 on 9 degrees of freedom Multiple R-squared:  0.9263,    Adjusted R-squared:  0.8117  F-statistic: 8.083 on 14 and 9 DF,  p-value: 0.001742


Why is the empty set a subset of every set?

Take for example the set $X=\{a, b\}$. I don't see $\emptyset$ anywhere in $X$, so how can it be a subset?


70s or older story about an outcast that deals with feces

I am presently reading a novel in present-day India about an outcast (Dalit) woman who has to clean the latrines of her neighbors in a small village.  This brought back to my mind a story I read very long ago. In an isolated space colony there is one man who is an outcast because he deals with feces (or the other way round). They have advanced technology so in fact all the "dirty" job is really done by machinery and the guy really only deals with supervising the machinery, but he is an outcast all the same.  I tried to google "science fiction" + outcast + feces and also with "excrement" in 3rd position, and also with a synonym in four letters, to no avail. (SF sends me to San Francisco)  Rings a bell ?


Finding boundary co-ordinates from given set of point co-ordinates?

Given a set of coordinates, How do we find the boundary coordinates.  <== Figure 1 Given the coordinates in the above set, How can I get the coordinates on the red boundary. Boundary is the polygon which is formed by the input coordinates for vertices, in such a way that it maximizes the area.  I am working on an app which searches properties within 'x' miles of a city. What I have is:   Coordinates of all the properties. A set of coordinates for each city (I have one coordinate for each zip. And since most cities have more than one zip, Every city has a set of coordinates)   The reason I am asking for the maximum area is so that I don't come up with a polygon like the one below:      <== Figure 2    What I need is the algorithm to come up with the set of coordinates for the boundary. An algorithm which will allow me to come up with boundary coordinates for Figure 1.


I would like to know why the command to start apache2 server actually starts three processes   Indeed, typing this command:  sudo apache2ctl -k start   then, typing this command:  ps aux | grep apache2   gives three processes corresponding to apache2. Is that normal?


Copy Document library records to other library

In office 365 I have 2 libraries with few columns same columns names in both libraries.  So right now I want to delete first library. I want to copy first document library documents with data to another library.  How to achieve this. I want in CSOM model.


Would you help me understand and possibly fix the problem below?  If I do  \title{\input{toBeIncluded.tex}}  \begin{document}  \maketitle  \section{Test Section 1}  \section{Test Section 2}  \end{document}   I get exactly what I d expect (with no errors), whereas if I do  \title{Test Title}  \begin{document}  \maketitle  \section{\input{toBeIncluded.tex}}  \section{Test Section 2}  \end{document}   I get two errors, even though the pdf is still produced and looks perfect.  toBeIncluded.tex is a file with just one word ("Hello") in it.  Thanks a lot


When to use possessive "'s" or "of the"?

This is one topic that I thought that I have already known well, but sometimes when I am writing a text or something like this it always come up the doubt of what should I use in the sentence to indicate possession. One example (stack in those sentences mean the abstract data type used in computer programming languages):   "The stack's top will have the value "0x3000." "The top of the stack will have the value "0x3000."   Well, for me both are right. However, I don't know what is the best choice. What's the most "polished" way to say that? Is there a real difference between those two options?  I've already searched the web but I couldn't find any trustful information that I can accept as a good answer to my problem. I saw that when you are relating a parto to a whole you should not use "'s", is this really true?  Is there any good way to remember the cases (or the logic) to use one of those forms?  In the cases that you can use both forms, what is the difference? Is there a informal and a formal way to say, or there is no difference at all?  Please correct any mistakes that I may have made in this text.


Running TeX4ht while using biblatex renders empty .html file

The issue I'm facing: Running TeX4ht renders an empty document when using references with biblatex. I'm using TeXmaker 4.1 on a PepperMint 5 OS (based on Ubuntu 14.04).   The preamble of the document looks like this:  \documentclass[]{article} \usepackage{geometry} \geometry{a4paper} \usepackage[english]{babel}  \usepackage{csquotes} \usepackage{hyperref} \usepackage[backend=bibtex, hyperref=true, style=authoryear-icomp, firstinits=true, dashed=false, url=false, isbn=false, doi=false, maxcitenames=2, maxbibnames=6]{biblatex} \bibliography{literature}  \let\citep\cite %\let\cite\footcite %\let\citep\footcite  \usepackage{endnotes} \let\footnote\endnote  \usepackage{verbatim} \usepackage{setspace}  \author{Author} \title{Political Science} \begin{document} Lastly, I have a conclusion (\cite{plato_republic_2005}). \printbibliography \end{document}   This works just fine when rendering a regular pdf, but creates an empty document in TeX4ht. The file produced is empty when opened in a browser, but does contain something when opened with GEDIT.  Message from TeX4ht:     "htlatex"   "/home/dijkman/Dropbox/Studie/Challenges/TeX/presidentpaper.tex" " " "   " " " -interaction=nonstopmode Process exited normally   Content of the .html file (in GEDIT):  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"     "http://www.w3.org/TR/html4/loose.dtd">   <html >  <head><title>Political Science</title>  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">  <meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)">  <!-- html -->  <meta name="src" content="importantpaper.tex">  <meta name="date" content="2015-03-23 17:24:00">  <link rel="stylesheet" type="text/css" href="importantpaper.css">  </head><body  >    <div class="maketitle">   I would be very grateful if someone could help me out with this, since it would allow me to paste the results in a Word document for comments from my supervisor (a)  PS: Relatively new to LaTeX, hope I haven't overlooked something obvious or something already explained. Furthermore, I hope to have posted enough info.  Edit: The .bib file is a biblatex export from Zotero (or BibTeX, both work for the pdf). Example from the file:  @incollection{keane_john_monitory_2011,     location = {Cambridge},     title = {Monitory Democracy?},     pages = {212--235},     booktitle = {The Future of Representative Democracy},     publisher = {Cambridge University Press},     author = {Keane, John},     editor = {Alonso, Sonia and Keane, John and Merkel, Wolfgang},     date = {2011} }  @article{zurn_democracy_2011,     title = {Democracy and representation beyond the nation state},     pages = {258},     journaltitle = {The future of representative democracy},     author = {Zürn, Michael and Walter-Drop, Gregor},     date = {2011} }


Let $\theta=\frac{2 \pi}{67}$ consider the rotation matrix $A$. What is $A^{2010}$?

Let $\theta=\frac{2 \pi}{67}$. Consider the matrix   $$A = \begin{pmatrix} \cos\theta  & \sin\theta\\   -\sin \theta&  \cos \theta \end{pmatrix} $$   Then the matrix $A^{2010}$ is?   My approach $$A^2 = \begin{pmatrix} \cos2\theta  & \sin2\theta\\   -\sin 2\theta&  \cos 2\theta \end{pmatrix} $$  $2010$ is a multiple of $67$. So I'm trying to convert in such format by taking $A$ matrix as power of $2$ and multiplying. But $2048$ is the nearest $2$ power term. So help please. I dont know if you can understand what I did!! Sorry for being not explaining properly


Poisson Distribution of sum of two random independent variables $X$, $Y$

$X \sim \mathcal{P}( \lambda) $ and $Y \sim \mathcal{P}( \mu)$ meaning that $X$ and $Y$ are Poisson distributions. What is the probability distribution law of $X + Y$. I know it is $X+Y \sim \mathcal{P}( \lambda + \mu)$ but I don't understand how to derive it.


How does map difficulty work in Dungeon Defenders?

Does it works like in Mass Effect 3 MP, where no matter how many players are in the party and their levels; or it works by changing enemies level according to the party number and party levels, like in Dead Island?


I'm doing an upgrade with sudo apt-get upgrade  After I press Enter:  do you want to continue [y/n]? y debconf: apt-extracttemplates failed:No such file or directory extracting templates from package: 100% dpkg:error:parsing file '/var/lib/dpkg/status' near line 1146 package 'python-minimal' 'break' field, invalid package name 'python-de~': Character '~' not allowed (only letters,digits and character '-+._') E:Sub-process /usr/bin/dpkg returned an error code (2)   How to fix or edit this???


Evalution of a function where $t = x + \frac{1}{x}$

Consider a function $$y=(x^3+\frac{1}{x^3})-6(x^2+\frac{1}{x^2})+3(x+\frac{1}{x})$$ defined for real $x>0$. Letting $t=x+\frac{1}{x}$ gives: $$y=t^3-6t^2+12$$ Here it holds that $$t=x+\frac{1}{x}\geq2$$ My question is: how do  I know that $t=x+\frac{1}{x}\geq2$  ? I want to know how to get to this point without previouly knowing that $t=x+\frac{1}{x}\geq2$


Gratitudes, Niceties, and Jokes as a comment?

I have been a member of many SE sites for years now, as a result, I am quite familiar with the guidelines and expectations on the platform. However, even after reviewing the help section I can't seem to find much info on this topic.  I saw the topic on jokes (which was answered with ambiguity) but nothing on comments like "thanks for the informative answer" or the like.  I would assume these are likely not a problem but can also see how they might just clutter topics and become excessive.  Is this one of those things where we are supposed to use "common sense"? I hope not, whenever I diverge from a rule-based system I end up in Vegas with 2 $50 hookers.


I am writing an email reply and want to confirm if the punctuation below is correct.  *     In response to your question, if it is available, my answer is “yes!"   *  EDIT: Also, should the exclamation mark be inside the the quotations or after.


What happens when we add equations of two lines?

Suppose I have a line $Ax+By+C=0 $ and another line $ \alpha x +\beta y +\gamma=0$ and I add the two equations, what does the new equation represent geometrically?


What do the constants "4" and "2" in Bhaskara mean and where did they come from?

In bhaskar, the way to get the result, is to get the $\Delta  = b^2 – 4ac$, and then the $X = (–b \pm \sqrt\Delta)/2a)$. But from where come these constants?


Symmetry in time dilation in special relativity

This question is related to this    Suppose we have to observers, $A$ and $B$ so that when they are a distance $d=c\tau$ from each other measured by observer $A$,they agree to set both their clock to zero that is, $t_A=t_B=0$ for distance=$d$. Now suppose that they are approaching, that is they both see each other with a speed $|v|$. Since $A$ sees $B$ moving his clock is faster than the clock of $B$. On the other hand  $B$ sees $A$ moving so his clock is faster than the clock of $A$. My question is when they meet each other ,how their time will be related should we have $t'_A>t'_B$,$t'_A<t'_B$  or $t'_A=t'_B$?


Round double to two decimal places in C++ but the result is not as expected

I want to calculate the lower limit bound for given price(2.65 * 0.9)   2.65 * (1 - 0.1) = 2.385  then round it to 2 decimal places, the result 2.385 -> 2.39   round(2.385) = 2.39  but when I use C++ to implement above: double pclose = 2.65; double range = 0.1; double lmtdown = pclose * (1 - range); double lmtdownAfterRound= std::round( lmtdown * 100 ) / 100;  printf("pclose=%.2f, range=%.2f, limit down before round=%f,\n", pclose, range, lmtdown); printf("limit after round=%f\n", lmtdownAfterRound);  but the result printed is 2.38!!!!!! instead of 2.39 I wanted pclose=2.65, range=0.10, limit down before round=2.385000, limit after round=2.380000  I have tried anohter round method with std::floor: lmtdownAfterRound= std::floor(lmtdown * 100 + 0.5) / 100; printf("limit after round =%f\n", lmtdownAfterRound);  the result is still 2.38: limit after round with floor=2.380000  is there something wrong in my c++ code, How can I get the correct round value?


How much advertising is allowed on userinfo pages?

Users often put links to their projects on the userinfo pages (for example,  has a link to Amazon selling C# in Depth) and that looks quite allright. However some users push this to the limit creating accounts solely for advertising purposes.  What is the policy for advertising on userinfo pages? How much is too much?


Which of the following sentences is correct?        What medicine should I take for neck pain?   Which medicine should I take for neck pain?


This is an old exam question that I don't have a solution to:  Let $X$, a compact Hausdorff (T2) space, and let $\phi$ a family of closed, non-empty, and connected subsets of $X$, such that for every $A, B \in \phi$, $A \subset B$ or $B \subset A$.  Prove that $Y:= \cap \{A: A \in \phi\}$ is connected.   I tried to solve this question with a friend, and this is what we came up with:   Obviously, $X$ is normal space (T4). We tried to see what happens if $Y = U_1 \cup U_2$, disjoint and open sets (and?) We tried to use nets and maybe see if we can create a net that converges to $x \neq y$ (and contradict X being Hausdorff space). We tried to work with continuous functions, but this idea didn't lead us anywhere either.   I feel like there is a simple observation that we are missing. Any ideas?  Thanks!


When a light ray strikes an interface a part of it gets reflected, a part of it gets absorbed while another part gets refracted. Why does light reflect? Why does it refract?


Memory limiting solutions for greedy applications that can crash OS?

I use my computer for scientific programming. It has a healthy 8GB of RAM and 12GB of swap space. Often, as my problems have gotten larger, I exceed all of the available RAM. Rather than crashing (which would be preferred), it seems Ubuntu starts loading everything into swap, including Unity and any open terminals. If I don't catch a run-away program in time, there is nothing I can do but wait - it takes 4-5 minutes to switch to a command prompt eg. Ctrl-Alt-F2 where I can kill the offending process.  Since my own stupidity is out of scope of this forum, how can I prevent Ubuntu from crashing via thrashing when I use up all of the available memory from a single offending program?  At-home experiment*!  Open a terminal, launch python and if you have numpy installed try this:  >>> import numpy >>> [numpy.zeros((10**4, 10**4)) for _ in xrange(50)]   * Warning: may have adverse effects, monitor the process via iotop or top to kill it in time. If not, I'll see you after your reboot.


Package transparent, tcolorbox and tikz incompability

I had a problem with transparency, it wasn't show in pdf output.  I have a similar problem with some tikz picture, that were not visualized well. I noticed that the problem with this two package (tcolorbox and tikz) was due to another package, I removed it and now the pdf works fine. The package was, weirdly, the "transparent" package. Can someone explain what was going on? I also have an other question, there's a difference from the package pgf and pgfplots? And from tikz to pgf?


Stuck In a command block induced death loop

I made a new world called "Fun With Redstone".   I had a "genius" idea to make a zombie killing mini-game, so I put in the super fast redstone clock /kill @e[Type=Zombie] and shortly after, realized my blunder.   My world is now stuck in a death loop where every time I respawn I just get killed again.   Can anyone help me to get out of that loop? Maybe there are hidden files or something? I don't wanna reset my whole world, since there are other projects there.


Installing mtpro2 (free) for Windows 8.1

I spent many many hours, consulting many blogs and even answers in tex.stackexchange, trying to install mtpro2 into Windows 8.1 with the MikTeX is 2.9.6677. Unfortunately I have been able to do that. I would be very thankful if someone can please explain step by step how to install it assuming I don't know anything about MikTeX.  Thanks


Prove: if $x$ is even, then $x + 5$ is odd.

I am trying to prove or disprove that if $x$ is even, then $x + 5$ is odd.  This is what I have thus far, but I am stuck:   Assume that the chose variable (x) are in the domain: (x) is an integer Assume the IF part of the statement: (x) is even Prove the THEN part:  Let a be a dummy variable that we assume is an integer. $x=2a+1$ (Definition of an Odd Integer)   Now find $x+5$.  $x+5=2a+1+5$ (Because we added the same value to both sides of the equation)  $x+5=2a+6$   $x+5=2(a+3)$ (Because of the Distributive Property of Multiplication over Addition)  Let $z=a+3$;  $x + 5 = 2z,$ but this is the definition of an even integer; where did I mess up?


Is every finite Galois extension of $\mathbb{Q}_p$ the completion of a number field at some valuation?

I've been wondering about this for a while, is it the case that if $K$ is a finite Galois extension of $\mathbb{Q}_p$, then there exists some field $L$ with $$\mathbb{Q} \subset L \subset K,$$ such that $[L:\mathbb{Q}]<\infty$ and $L\cdot \mathbb{Q}_p = K$. I can see that this is true for $K$ unramified, because we can just attach the appropriate roots of unity to $\mathbb{Q}$ so it remains the case where $K$ totally ramifies. I guess it would be enough to show that there exists some $\alpha \in K$ which is algebraic over $\mathbb{Q}$ but not an element of $\mathbb{Q}$. I have tried to use Hensel's lemma but that fails spectacularly because the uniformizer is the root of some Eisenstein polynomial which reduces to be $x^n$.


Can anyone recommend a good SFTP library to use?  Right now I'm looking at products such as SecureBlackbox, IPWorks SSH, WodSFTP, and Rebex SFTP.  However, I have never used any SFTP library before so I'm not sure what I'm looking for.  If anyone has used these before, is there any reason why I should go with product "X" over "Y"?


Function that satisfies $f(x+ y) = f(x) + f(y)$ but not $f(cx)=cf(x)$

Is there a function from $ \Bbb R^3 \to \Bbb R^3$ such that $$f(x + y) = f(x) + f(y)$$ but not $$f(cx) = cf(x)$$ for some scalar $c$?  Is there one such function even in one dimension? I so, what is it? If not, why?  I came across a function from $\Bbb R^3$ to $\Bbb R^3$ such that $$f(cx) = cf(x)$$ but not $$f(x + y) = f(x) + f(y)$$, and I was wondering whether there is one with converse.  Although there is another post titled Overview of the Basic Facts of Cauchy valued functions, I do not understand it. If someone can explain in simplest terms the function that satisfy my question and why, that would be great.


Is it possible to get an entire street via a single Overpass API query?

I'm working on a game () where you build buildings along real world roads. Currently investigating a feature where a player who controls the most buildings along a street gets points based on the streets length.  The problem i'm having is that streets as humans understand them do not exist as data in OSM. The best way to get a street is to traverse the ways with the same names that are connected by nodes, taking some wild cards like roundabouts into account.   The main question is, can i get an entire street via OverpassAPI with a single query using one of it's ways osm_id or similar value? A street in this case is a series of ways with the same name connected by nodes.  Things that need to be considered are that many ways have the same name where we work, Sweden. Almost every major city has a Kungsgatan for example (Kings Street), so it's not simply a matter of getting a list of all the ways with the same name and calling it a street, they need to be connected with nodes.  Another issue is that there is to my knowledge any other reference or value that binds these ways together.   I can without a problem build function in my server that achieves this using multiple queries, but that seems not performance efficient and also i'd like to avoid making my own endpoints and changes to Overpass, if possible. Performance is also the reason i won't be making multiple calls like that from the client which will be running on a mobile device.


Why do parallel plates create a unifrom field?

Uniform fields are created by setting up a potential difference between two conducting plates placed at distance (d) from one another:   The electric field equation is:   $\vec{E}=kQ/r^2$  so if you have 2 plates(+,-) with distance d. then the electric field should be:  $\vec{E_{tot}}=\vec{E_{+}}+\vec{E_{-}}$  $\vec{E_{+}}= k(Q)/(d)^2$  $\vec{E_{-}}= k(-Q)/(1-d)^2$  $\vec{E_{tot}}=k(Q)/(d)^2 + k(-Q)/(1-d)^2 $  but isn't this field proportional to:   $\frac{1}{d^2} +\frac{1}{1-d^2} $  which is not a constant?  I imagine the filed to be stronger near the plates and weakest in the middle.


Showing that $x \frac{\partial f}{\partial x} + y \frac{\partial f}{\partial y} = 0$ implies $f$ is constant.

Let $E \subset \mathbb{R}^2$ be a connected convex open subset with $(0, 0) \in E$, and $f(x, y)$ be a differentiable function on $E$. Suppose $f$ satisfies $$x \frac{\partial f}{\partial x} + y \frac{\partial f}{\partial y} = 0$$ then prove $f$ is constant on $E$.    We are given $E$ is convex and connected with $(0,0) \in E$, so it only seems natural to start with a line from the origin to $(x, y)$. Let this be $\gamma(t) = (tx, ty)$. We wish to show that the derivative across this line is zero so that $f(0,0) = f(x,y)$. So, take $h(t) = f(\gamma(t))$ and $h'(t) = f'(\gamma (t))\gamma'(t)$.  Now  $f'(\gamma (t)) = \frac{\partial f}{\partial x}\frac{\partial x}{\partial t} + \frac{\partial f}{\partial y} \frac{\partial y}{\partial t} = x \frac{\partial f}{\partial x} + y \frac{\partial f}{\partial y} = 0$  $\gamma'(t) = \gamma$ since $\gamma$ is a linear operator.  Now do I just say that the whole thing equals to zero and be done with it?


TikZ "containing square" computation problem for a path (application: pdftooltips)

The "pdftooltip" command from the pdfcomment package requires rectangular trigger regions. This is problematic when annotating figures. Take for example:  \documentclass{article} \usepackage{tikz} \usepackage{pdfcomment} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}  \draw[fill=green] (0,0) -- (3,0) -- (1.5,3) -- cycle    let      \p1 = (current path bounding box.south west),      \p2 = (current path bounding box.north east)    innode at (current path bounding box)     {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%   {Green}};  \draw[fill=blue] (3,0) -- (1.5,3) -- (3,3) -- cycle    let      \p1 = (current path bounding box.south west),      \p2 = (current path bounding box.north east)    innode at (current path bounding box)     {\pdftooltip{\rule{\dimexpr\x2-\x1\relax}{0pt}\rule{0pt}{\dimexpr\y2-\y1\relax}}%   {Blue}};  \end{tikzpicture} \end{document}   As the example describes two triangles, the tooltips overlap. This can lead to the situation that the user hovers over a triangle and gets the tooltip for the other triangle:    How can I use TikZ to compute something like an inner box for the current path and restrict the tooltip to be shown only when hovering over this inner box.   For example, computing the largest squares that still fit into the triangles and displaying the tooltips only when hovering over these squares would be suitable. In this way, all tooltips shown in Acrobat Reader at runtime are correct, and a good part of the triangles act as trigger regions to the tooltips.    The motivation for adding tooltips to figures is to enrich them in the PDFs with seldomly needed additional information that the reader can retrieve by hovering over the respective part of the figure (e.g., where the data points that are represented by the filled path actually come from when merging multiple data sets into a single figure).


I have a word document and want to start numbering of it beginning at page 7. i.e. i want page 7 to show 1, page 8 to show 2,etc. and page 1-page 6 must not be associated with any numbering. How can I do that?


Edited comment doesn't update display immediately

Someone commented on my answer and I just replied to that in a comment. The I immediately edited the comment by selecting it and then pressing edit on action bar.  The edit didn't show up, even after doing a pull to refresh on the question, it was showing the comment in its original form.  It only showed up once I reopened the question from the right drawer (notifications).  The apps says 1.0.60 in about.


OK I am a complete computer science newbie here - purchased "Practical Computing for Biologists" to learn and first thing they have you do is set up Ubuntu on VirtualBox within Windows to allow access to Unix command line - seems a bit of a steep learning curve since I do not know what any of that means yet, but...  Anyway, I managed to install VirtualBox and download Ubuntu - when trying to set-up virtual machine, I get stuck at several steps - any pointers?


how would I be able to answer this question?  The first box contains 3 white and 7 black balls, and the second box contains 6 white and 3 black balls, A ball is chosen at random from the first box, and, without looking at its colour, put into the second box. Then a ball is chosen at random from the second box, and it is white. Is it more likely that the ball moved from the first box to the second was black?


Can Mid 2015 Macbook Pro Run 3 External Monitors?

I have a mid 2015 MacBook Pro, and I want to run three external monitors - it only seems to power 2 of them. I can seem to run any combination but only two. I am powering them through 1 X thunderbolt to dvi, 1 X thunderbolt to VGA, and 1 XHDMI.    Can this be done?


I want to make a button to change layout from wide to boxed, from class="container" to class="container-fluid", is it possible to change them by Javascript? If yes, how can i do that?


I have an image that I want to change via jquery:

   the problem is, I want just to change the IMAGE (.imageprofile) and allow, after it, the onclick function to be called again.  If I change like this:  $("#imagepr").html(data);   it will destroy the onclick; and this:  $(".imageprofile").html(data);   is not working.  what is wrong? how can I change just the image keeping the onclick after it?


Analytic map with two fixed points on a simply connected domain is the identity

Let $f:U\rightarrow U$  be analytic, where $U \subsetneqq \mathbb{C}$ is a simply connected domain. Suppose that $f$ has at least two fixed points. Prove that $f$ is the indentity map.  I am able to prove the theorem in the case where $U = \mathbb{D}$ is the unit disc (the proof uses Schwarz lemma, and is discussed ).  The proof however skips the (rigorous) details of how the Riemann Mapping Theorem allows us to reduce from $U$ to $\mathbb{D}$. Any details are appreciated.


How are the themes and songs picked for a particular series?

Are the opening/ending themes, insert songs, and background music created specifically for the series they represent, or are they just picked by the producers/production committee based on how well they would fit their series?   What typically happens? What exceptions are there? How much have things changed now compared to the past?


How to prove this inequality $3^{n}\geq n^{2}$ for $n\geq 1$ with mathematical induction?

Prove this inequality $3^{n}\geq n^{2}$ for  $n\geq 1$ with mathematical induction.  Base step: When $n=1$  $3^{1}\geq1^{2}$, statement is true.   Inductive step: We need to prove that this statement $3^{n+1}\geq (n+1)^{2}$ is true.   So, to get the left side of this statement is easy. We can get it by multiplying $3^{n}\geq n^{2}$ with $3$.  After this step we have $3^{n+1}\geq 3n^{2}$.  What we now have to get is the right side and we can transform it like this:  $3n^{2}=  (n^{2}+2n+1)+(2n^{2}-2n-1)$ which is same as  $(n+1)^{2}+(2n^{2}-2n-1)$.  So now we have $(n+1)^{2}$ and $(2n^{2}-2n-1)$ and my question is how should i use this to prove inequality?


Omitting the hypotheses of finiteness of the measure in Egorov theorem

I want to prove that if I omit the fact that $\mu (X) < \infty$ in Egorov theorem and place instead that our functions $|f_n| <g$ and $g$ is integrable, we still get the result of Egorov's theorem.  Fix $m$ a natural number.  I took $ w_{n} = |f_n-f|$ and thus by DCT $\int |f_{n} - f|$ goes to zero.  Then I took $\bigcup_n {( w_{n} \geq 1/m)}$. I need its measure to be finite. Its measure is less than the sum of the measures of each $ w_n\geq 1/m)$ varying $n$, and by Tchebychev, this is less than $m\int|f_{n} - f|$.  But I got stuck here.  Any help is appreciated. Thanks!


How to take notes using LaTeX during a lecture

I'm a Windows 10 user and I wanna use LaTeX to make notes during lectures. But, as you know, it is not very efficient. So, after looking up on the internet, I found this ...    The author is a Vim user and he created snippets to make writing on LaTeX efficient.  My question is that is there any way to make snippets in windows too, in an editor other than Vim?


Proof explanation $A\setminus B = A \setminus B \cap A$

$A\setminus B = A \setminus B \cap A$  Proof $A\setminus B \subseteq A \setminus B \cap A$:  $x\in A\setminus B \to x\in A \land x \notin B$  $x\in A \land (x \notin B \color{red}{\lor x\notin A})$  $x \in A \land (x\notin B \cap A)$  $x \in A\setminus B\cap A$  Proof $A \setminus B \cap A \subseteq A\setminus B$:  $x \in A \setminus B \cap A \to x\in A \land x\notin B \cap A$  $x \in A \land (x\notin B \color{red}{\lor x\notin A})$  $x \in A \land x \notin B$  $x \in A \setminus B $  Therefore $A\setminus B = A \setminus B \cap A$  I am confused how the stuff in the red is formed. Can we add an or statement to anything and ignore if its true or not if the first part of the or is true?


Sign text color: Can't enter the § symbol

I'm trying to change sign text color in Java Edition on Windows 10. According to , this is done using the § symbol:  To enter "§" on Windows with most US/UK English keyboards type ALT + NUMPAD_2 NUMPAD_1  This works for me inside Notepad or this browser. However, when I enter this sequence in the sign input dialog, nothing happens. What could be causing this?


What is the correct English; "one and one is two" or "one and one are two"?  Likewise for "two and three is five" or "two and three are five"?


I have just marked few tags as my favourite. As given below it highlights all the questions related to my Favourite tag. However, it does not highlight which is my favourite tag in that particular question.   My suggestion is to highlight the user's favourite tag for those particular questions. Isn't it good to have some color surronding the favourite tag, so I know which is my favourite tag for such questions?


I have a question about MediaWiki formatting. Since this is similar to LaTeX questions, I figured it would have a nice, happy home on Stack Overflow. I'm not quite sure if it's programmer related enough though.  What does the community think?


What is the difference between have been and went?

I found this question and its answer on internet-  Q. Can I use "I have been to Hong Kong" instead of "I went to Hong Kong"? A. Not when you are specifically talking about your first trip abroad (in the past).  But I do not understand what it means. Could you please let me know the difference?


What happened to Bobbi and Hunter in "Parting Shot" (Agents of SHIELD S3E13) and why?    What happened with the whole interrogation thing?    There didn't seem to be any logical progression to the way things unfolded. At one point it was like they decided they actually wanted to go in front of the Russian firing squad for.. some reason.. but then all of a sudden the political assassination charges are spontaneously dropped, but wait; that somehow means they're never allowed to go back to their super secret, clandestine intelligence agency. In all honesty; it seemed like the actors were leaving the show and the film crew just sort of smashed this scene together in a hurry and ran with it, despite the fact that it made no sense.


trying to identify SF anime film shown on British TV in 1980s or '90s

I've been trying for years to identify a full-length SF anime film which was shown on British TV two or three times in quick succession in the late 1980s or 1990s.  I'm 90% sure it was Japanese, although the figures had normal human proportions and faces, with no cuteness or big eyes. The style, as I remember it, used very clean hard-edged lines and colours, with no scribbled lines and not much shading.  The story centred around a little boy, maybe eight years old, who had ended up stranded on his own on a planet where all the "creatures" were kind-of plants, but behaved to some extent as if they were animals.  I remember a scene of him being carried across a lake by a giant water-lily which behaved like a semi-sentient boat.  Meanwhile, a large cast of characters were flying a starship to rescue this boy, but there was a lot of personal and political struggle on board.  One of the characters iirc was an aristocrat with long white hair, a bit like the film version of Lucius Malfoy.  One of the characters - possibly the aristocrat - turned out to be plotting against the others.  At the end, you learn that there is a time-slip involved, and that the little boy on the planet is the childhood self of one of the adult characters on the ship.


pre tags are super-useful for code blocks in HTML and for debugging output while writing scripts, but how do I make the text word-wrap instead of printing out one long line?


Using the simple example below, what is the best way to return results from multiple tables using Linq to SQL?  Say I have two tables:  Dogs:   Name, Age, BreedId Breeds: BreedId, BreedName   I want to return all dogs with their BreedName.  I should get all dogs using something like this with no problems:  public IQueryable<Dog> GetDogs() {     var db = new DogDataContext(ConnectString);     var result = from d in db.Dogs                  join b in db.Breeds on d.BreedId equals b.BreedId                  select d;     return result; }   But if I want dogs with breeds and try this I have problems:  public IQueryable<Dog> GetDogsWithBreedNames() {     var db = new DogDataContext(ConnectString);     var result = from d in db.Dogs                  join b in db.Breeds on d.BreedId equals b.BreedId                  select new                         {                             Name = d.Name,                             BreedName = b.BreedName                         };     return result; }   Now I realize that the compiler won't let me return a set of anonymous types since it's expecting Dogs, but is there a way to return this without having to create a custom type?  Or do I have to create my own class for DogsWithBreedNames and specify that type in the select?  Or is there another easier way?


C++ setting value of derived parameterlized ctor

Hey guys. I dont know how i suppose to do about setting values to derived classes ctor. And here is my code. I remember something like that build in my class. But i know that we can write something like that build ( xxx():yyy(){,,,};). Check the main's second object.      #include <iostream>  using namespace std;  class vehicle { protected:     string brand;     int wheelNumber;     double maxSpeed=0; public:     vehicle(){cout<<"default ctor for vehicle"<<endl;}     vehicle(string br1, int wn1, double ms1)     {brand=br1; wheelNumber=wn1; maxSpeed=ms1;}      void setbrand(string br){brand=br;}     string getbrand(string br){return brand;}     void setWN(int wn){wheelNumber=wn;}     int getWN(int wn){return wheelNumber;}     void setMaxS(double ms){maxSpeed=ms;}     double getMaxS(double ms){return maxSpeed;}     ~vehicle(){cout<<"dtor for vehicle."<<endl;} }; class car: public vehicle { private:     int numberOfDoors;     string fuelType; public:     car(){cout<<"default ctor for car"<<endl;}     car(int nOD,string fT){numberOfDoors=nOD; fuelType=fT;}      void setnOD(int nOD){numberOfDoors=nOD;}     int getnOD(int nOD){return numberOfDoors;}     void setfT(string fT){fuelType=fT;}     string getfT(string fT){return fuelType;}      void printFeatures()     {         cout<<endl;         cout<<"brand:"<<brand<<endl;         cout<<"wheelNumber:"<<wheelNumber<<endl;         cout<<"MaxSpeed:"<<maxSpeed<<endl;         cout<<"NumberOfDoors:"<<numberOfDoors<<endl;         cout<<"FuelType:"<<fuelType<<endl<<endl;     }     ~car(){cout<<"dtor for car."<<endl;} };  int main() {     car *cc;     cc= new car;     cc->setbrand("bmw");     cc->setfT("diesel");     cc->setMaxS(333.25);     cc->setWN(4);     cc->setnOD(6);     cc->printFeatures();     delete cc;      car *xx;     xx= new car;     car(5,"gasoline"):vehicle("mercedes",4,489.12);//Part that i cant figure it out.     xx->printFeatures();     delete xx; }


Parameters of beta distribution with a given HDI

Is there some way to calculate the parameters of a beta distribution, if the highest density interval is known. That is, given $a,b,x$ I want to have a beta distribution such that the probability of the interval $[a,b]$ is $x$.  The reason I need this is that I want to use beta priors in a Bayesian analysis, to show how beliefs are updated by the data. So if someone is 95% certain that the true probability is between $a$ and $b$, then I want to construct a beta distribution that captures this belief as a prior.


(base) spirit@SML:~$ wine '/home/spirit/Downloads/KindleForPC-installer-1.28.57030.exe'  (base) spirit@SML:~$ [ERROR][VersionInfo] Build version is not of the form major.minor.patch.revision [INFO][CMetricsManager] Reporting the following metric 200608:144816 Mazama: I Application:MZMA_OpenAfterFirstTimeInstall: ^C (base) spirit@SML:~$ wine KindleForPc 0009:err:module:__wine_process_init L"C:\\windows\\system32\\KindleForPc.exe" not found   How do I get Kindle for PC to work with wine on my Ubuntu(20.04) machine.


Eigenvectors of 3D image data (eigenfaces)

This is in regards to  with $M$ images of size $N \times N$.  In short: My question lies in the following statement (bottom of page 4 in above link): "If the number of data points in the image space is less than the dimension of the space $(M<N^2)$, there will be only $M-1$, rather than $N^2$, meaningful eigenvectors". Essentially, if there are 30 images, we can simply use the $M \times M$ COV matrix, rather than the $N^2 \times N^2$ COV matrix to find the meaningful eigevectors. I am assuming this is a simple linear algebra result, which I have long forgotten.  Let's suppose we have a matrix A of size 256 x 256 x 30 (i.e. 30 images). As a Casorati matrix the size is now 65536 x 30.  The covariance matrix can be calculated as $C = A A^T$, which results in a matrix of 65536 x 65536, yielding 65536 eigenvectors.  As outlined in the paper linked above (bottom of page 4), we can instead use the following form to find $M = 30 - 1$ meaningful eigenvectors:  $$A \, A^{T} \, A \,\, \vec{v} = \lambda \, A \, \vec{v}$$  such that $A \vec{v}$ are the eigenvectors of $A \, A^T$.  My question lies in the following statement: "If the number of data points in the image space is less than the dimension of the space $(M<N^2)$, there will be only $M-1$, rather than $N^2$, meaningful eigenvectors.  I am having difficulty understanding why the above statement is true. It makes sense, when I think about having $M$ images, but how does this relate to the 65536 eigenvectors that would be calculated using the traditional COV formalism?  I hope my question is clearly stated.


How to constrain the camera to look at an object in python script

The function i have created thus far:  def CameraLock(self):     bpy.ops.object.select_pattern(pattern="Camera")     bpy.ops.object.constraint_add(type='TRACK_TO')     #c = bpy.data.objects["Camera"].constraints["Track to"]     #c.target = bpy.data.objects["Cube"]     #c.track_axis = "-Z"   The code firstly selects the camera to be the active object which allows me to add a constraint.However when i uncomment the next two lines to track the cube the code fails and blender closes.   i have been trying to read up other ways of adding the constraint but thus far have failed to find another solution.


I'm working on a short with a CGI robot. I found this:   I'm trying to achieve a similar look with the scratches. The node setup he has in the video, looks quiet complex and I'm not sure how to go about doing this.  Is the best approach to add metal scratches is to create a UV map, that I can add to the metal, sort of like what I did on the face? Is there a different approach?


Rendered image is blank, or white, or shows as a text file in the filebrowser

First image is render setting. And second image is output file. That file should be png file but, it is not.


Change of basis matrix for $B_2\{a_1=(1,-1,0),a_2=(1,0,-1)\}$ to $B_1\{b_1=(0,1,-1),b_2=(1,1,-2)\}$, where $B_{1,2}$ are bases of $V=\{(x,y,z)|x+y+z=0\}$.  I haven't practiced that for a very long time and the definitions are a rather formal, total and loaded. I think I got the idea right, but I think I should have it checked:  I know that $b_1=-a_1+a_2,b_2=-a_1+2a_2$. Hence, for $P=\begin{pmatrix}-1&-1\\1&2\\ \end{pmatrix}$, $[b_1]_{B_1}=P[b_1]_{B_2}$ and the same goes for $b_2$. How do I arrive at the requested matrix from here? What about the standard basis? Is $B_2$ the standard basis here? I am confused, and could use some help.


Let's complete the proof of the above question. For any two ideals $A$ and $B$ in any arbitrary ring R it is clear that $AB \subset A \cap B$. This result is also true for $M_n(A)$ and $M_n(B)$. Now how proceed to show the  equality?


I am trying to install pip3 on ubuntu 20. I get this message: The following packages were automatically installed and are no longer required:   gir1.2-packagekitglib-1.0 libappstream4 libglib2.0-bin libnetplan0 libpackagekit-glib2-18 libplymouth5   libpolkit-agent-1-0 libpython3.8-dev libstemmer0d python3-software-properties python3.8 python3.8-dev   python3.8-minimal python3.8-venv squashfs-tools unattended-upgrades Use 'sudo apt autoremove' to remove them. E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success E: Could not read response to hello message from hook [ ! -f /usr/bin/snap ] || /usr/bin/snap advise-snap --from-apt 2>/dev/null || true: Success  Can someone help me Thanks Translated with  (free version)


I am a kid. I have a loose tooth where the part is off but the other part isn't. I can see my new tooth underneath. Should i just suck it up and push with my tongue?  It's a bottom left molar


Currently, (classical) gravity (General Relativity) is NOT a gauge theory (at least in the sense of a Yang-Mills theory).   Why should "classical" gravity be some (non-trivial or "special" or extended) gauge theory? Should quantum gravity be a gauge theory?  Remark: There are some contradictory claims in the literature to this issue. To what extent gravity is "a gauge" theory?Obviously, GR is not a YM theory. So, why do some people say that gravity "IS" a gauge theory? I found this question relevant, e.g., then we handle GR in the Einstein-Cartan theory or any other theory beyond GR, like teleparallel theories or higher-derivative gravitational theories. So I think it could be useful to discuss the "gauge flavor" of gravity here.


Is a whole chicken still safe after 5 days marinating in the fridge?

I marinated a whole chicken and put it in the fridge for 5 days--can I still cook and eat it?


I want to call ajax to fetch notifications in a bootstrap dropdown on clicking the bell (icon). In the code below, it works only when I click on the bell first on loading the page. If I click anywhere else and then click on the bell, the click event does not fire (and thus the AJAX). Why is it happening? PS. I am using .NET Razor views and Partials. All the notifications should load inside the class "notifications" HTML:

  JS: $(document).on('click', 'a.nav-link', function (e) {         $.ajax({             cache: false,             url: "/Notification/NotificationList",             type: 'GET',             traditional: true,             data: {                 selectedNot: checkedIds             },             contentType: 'application/json;',             success: function (response) {                 if (response.success != false) {                     if (response.message == 0) {     //If no notifications                         //append no notifications landing page                     }                     else {                         //append notifications in HTML                     }                 }             },         }); });


Why do magnetic field lines point towards the north pole on the inside of a solenoid?

The magnetic field lines for a solenoid look like this:    As one can determine from the right-hand rule, the left side of the diagram contains the north pole and the right part the south pole. It makes sense to me that, near the north pole, the north pole of another magnet would move towards the solenoid's south pole. However, can somebody explain why the magnetic field lines inside the solenoid point towards the north pole? Does this mean if another magnet's north pole was placed inside, it would be attracted to the north pole of the solenoid?


Clarify what "score" means in badge descriptions

I've seen several cases where newcomers are confused about not receiving badges like  and , even though they have posts with "scores" that seem to justify the achievement (or tags where they seem to have earned the badge). A couple of examples:          I suggest the wording be updated to say something other than "score" since it is currently ambiguous whether it means rep or number of votes, and also whether it is net or gross, e.g. if I get 10 up-votes and then a down-vote, did I earn a badge? What about if I get 9 up-votes, then a down-vote, then a 10th up-vote? Does order matter? Is this calculated once daily, or as soon as my post receives 10 (or 25, or 100) up-votes?  I realize that we can't encompass all of that text into a simple badge description, but how about instead of:     Answer score of 25 or more.    It says:     Answer with net up-votes of 25 or more.    This will help eliminate any confusion that users have, thinking that "score" means "reputation."


Should we @Override an interface's method implementation?

Should a method that implements an interface method be annotated with @Override?  The  says:      Indicates that a method declaration is intended to override a method declaration in a superclass. If a method is annotated with this annotation type but does not override a superclass method, compilers are required to generate an error message.   I don't think that an interface is technically a superclass. Or is it?


Moderator election ballot: Different default images for candidates

If a moderator candidate has not customized his/her profile picture, the image shown for that candidate on a user's ballot is different than the image shown in the candidate list and elsewhere on the site.  This might lead voters to believe something is going wrong when casting their ballot or indicating preferences among these candidates. Examples (all candidates still using default images on the only site with an active election):    EDIT:  This is what I see when I  here:


A question I've always had when watching the Star Wars franchise is: Why use laser guns? I understand it's a different galaxy and technology may have advanced differently than on earth, but surely at some point they could have developed something similar to traditional guns.  Especially against the Jedi, where lasers move slow enough such that they can be stopped real time by a beam of light. Or against anyone really with decent reaction time and good eyesight.  It just seems to me that the super slow speed of lasers is constantly getting people killed and is just impractical. Snipers would be almost useless in Star Wars.  Also it's not like their laser guns are massively more powerful than a bullet; we see them hit walls and unarmored people and it doesn't seem to do more damage than a typical rifle round.  So why are they using such an ineffective weapon? Or why can't they at least make the lasers move faster?


So I have the GW10 icon in my notification area icons menu, where I can select from the drop down menu one of three options. When selecting the "show icon and notifications" option, I get a response stating that this icon is not active. How do I get it to become active so that I may register to DL windows 10?


Is there another desktop environment similar to Unity?

I found out that Unity will be discontinued by Ubuntu so I want to know if there's an available replacement for it. I'm mainly interested in the universal menu bar at the top of Unity (like in macOS), is there another desktop environment that does this?


Prove by induction that $$(a_{1}+a_{2}+\cdots+a_{n})\left(\frac{1}{a_{1}}+\frac{1}{a_{2}}+\cdots+\frac{1}{a_{n}}\right)\geq n^{2}$$  where $n$ is a positive integer and $a_1, a_2,\dots, a_n$ are real positive numbers   Hence, show that  $$\csc^{2}\theta +\sec^{2}\theta +\cot^{2}\theta \geq 9\cos^{2}\theta$$  Please help me.  Thank you!


About the definite and zero article meaning generic concepts

I have been having a trouble with the idea of the definite article meaning generic concepts.   Recently, I came upon a question asking which one is correct between " The Chines invented the paper" and "The Chinese invented paper.  All of the commentators said the second one is correct because you are indicating paper in general, which I totally agree with. But, the definite article "the" also has a function to indicate the generic concept of something as in "The lion is big". So I assumed using "the" in the sentence would be okay, implying the generic idea of paper not a specific kind of paper. But it apparently seems not right from English natives' perspectives.  So, I concluded that general things expressed by nouns with zero article and general things expressed by nouns with definite articles are different.     How are they different?


I need some help getting the find command to work right in a script working on. I need to be able to exclude some directories. Below I have what I'm doing as a work around.  sudo find / ( -name firefox -o -name thunderbird -o -name seamonkey \) -type f 2>/dev/null|grep -v '(10_Recommended|repo)'   I would like to exclude some directories so the script or find command doesn't take so long.  In the example above I want to exclude /export/repo, which is an NFS mount and  /10_Recommended* which is the start of a patchset used on Solaris server. The current one being an example like: /10_Recommended_CPU_2014-01.  I have tried using -prune and ! statements and it's just not working. Can someone give me a hand with this?  I'm tuning this command on Solaris 10, RHEL 5, SLES 11 SP2.


I was wondering if you could tell me about some self-learning resources for linear model theories. My professor has been using "A First Course in Linear Model Theory, Ravishanker and Dey. Publisher: CRC." I found this kinda difficult. My major is mathematics. Thank you so much for your time!


Exporting geodatabase layer to shapefile fails in QGIS

I'm attempting to export a single layer from a geodatabase to a shapefile. The export fails at the same point, 71%, with this message (I'm only displaying the first few lines),   Export to vector file failed. Error: Feature write errors: Feature creation error (OGR error: Failed to write shape object.  File size cannot reach 4294815324 + 162344.)   The export operation does produce a shapefile, but with only about 70% of the content of the original geodatabase layer.   I'm using a MacBook Pro, operating OS 10.15.2 and QGIS 3.4.15.


How do I wire a three way switch with two lights?

My "power in"  box has its black/white and ground and also the three wire cable( black /white /red and ground)  and also the first light wires ( black/white).    how do I wire this.  It is going to two lights--  the first light is pretty simple - just black and white-- ends at fixture--- also the cable feeding light # 2  and then moving on to the second three way box. It seems I have an extra black wire in the initial "power in" box...  Do I hook the black power in with the black cable and let the current circulate?   or attach the power in to the dark screw.  and then what do I do with the other two black wires? black cable to black first light?    white cable to single light screw side,( as traveler) and red to double screw light screw side?   I have seen a couple photos and nothing is crystal clear.


Is there a single word denoting "field of interest", or perhaps "field of expertise"?  E.g.: I'm looking for a mentor in my new field of interest.


a[i] denote number of friends i-th student has. c[j] denote frequency having at least j friends. Show that: ∑a[i]=∑c[j].

Q. A class has 100 students. Let a[i], 1≤i≤100, denote the number of friends the i-th student has in the class. For each 0≤j≤99, let c[j] denote the number of students having at least j friends. Show that ∑a[i] = ∑c[j].   1≤i≤100 and 0≤j≤99  My attempt: if we consider a class of 2 students, A and B, such that both are friends of each other. a[1]=1 and a[2]=1. Therefore, ∑a[i]=2, 1≤i≤2. And, c[0]=2 and c[1]=2. Therefore, ∑c[j]=4, 0≤j≤1 so, ∑a[i] ≠ ∑c[j]. Am I making any mistake in my attempt. Please help me out.


Checking that U(n) is a set that is closed under multiplication modulo n

In Joseph Gallian's Contemporary Abstract Algebra, example 11 of chapter 2, the author leaves it to the reader to check closure for U(n), so I am trying to figure out if my solution is correct, or what I did incorrectly. My roadmap is to Take $a,b\in U(n)$ and use the fact that $gcd(a,n)=gcd(b,n)=1$. Since a and b are elements of $U(n)$, we have that $a mod n = b mod n$, thus $a=q_1n+1$ and $b=q_2n+1$. Let $r=(ab) mod n$, so $ab=pn+r$. We want to show that $r\in U(n)$ by showing that $gcd(r,n)=1$. What is did was to multiply a and b, and through cumbersome steps, I got $nl+1=r$, where $l$ contains terms like $q_1,q_2,p,n$. From that, I concluded that $r mod n =1$, so $gcd(r,n)=1$. But this looks very inelegant. I'm sure there is a better way, but I can't think of it.


It does not allow me to enter my choice whether I want to enter another grade or not, It should allow me to enter my choice of either yes or no and if I enter yes it should allow me to enter another grade except it simply refuses to take user input?  import java.util.Scanner;  public class ExaminationGrades {      public static void main(String[] args) {         Scanner scan = new Scanner (System.in);         double grade;         String ch;          do {             System.out.println("Enter your grade: ");             grade = scan.nextDouble();              if (grade <40) {                 System.out.println("you failed");             } else if (grade >=40 && grade <50) {                 System.out.println("Pass");             } else if (grade >=50 && grade <60) {                 System.out.println("2:2");             } else if (grade >=60 && grade <70){                 System.out.println("2:1");             } else if (grade >=70 && grade <=100){                 System.out.println("1:1");             } else                 System.out.println("invalid entry");              System.out.println("Would you like to enter another?");             ch = scan.nextLine();          } while(ch =="no");          scan.close();     }  }


Modifying root beer recipe to alcoholic variant?

I recently obtained a bottle caper, some sassafrass bark chips, and some root beer extract flavoring from a coupling moving out. It also contained a recipe for rootbeer(non-alcoholic), listed below:  Beginners Quick Bottling Recipe: Uses 2 used 2-L plastic soda bottles   1/8 teaspoon dry yeast, in a 6oz cup of warm water 2 & 1/4 cups sugar, 1 tablespoon extract Mix in 1 gallon container Pour 1/2 mixture in each soda bottle Top off each bottle with plain water to within 1 & 1/2 inches of top use resealable cap and shake store at room temp in the 70's for 4-6 days   How would I modify this recipe to allow for the soda to be alcoholic AND also be stored in smaller used beer glass bottles?  Doing some of my own research, and only having made "hooch" before I assume that I could simply add more yeast and sugar to allow for more alcohol, but then regardless how would I deal with a loss of carbonation when decanting my product from the 2 L bottles to the smaller glass bottles, or the possible risk of still active yeast? I do not have access to alot of fancy equipment like kegs or carbonators, not even a siphon.


What does the red x icon mean next to a user in folder permissions (Windows 7)

In trying to debug various strange issues on a machine, I found something strange - when I go to C:\Users\administrator and get properties, security tab, it lists the users (the local admin account, system, and 'administrator' which is the domain administrator account).  It all looks fine in terms of permissions (full control, etc.) compared to other machines.  The one difference is there is a small red circle with an X to the left of the user icon/name.    Additionally, there are various folders where it says access denied under there - for example, my documents!  Even logged in as the local machine administrator account (which is not named administrator), I am unable to change the permissions - it says access denied.  Any ideas what this means and how to fix it?  I even tried re-joining the machine to the domain.


I am aware that the "Eye of Sauron" in Peter Jackson's movies was not Sauron's actual physical form.  What the answers at '' don't indicate is, despite this, what abilities of vision Sauron may have had.  Did he have the ability to see from afar? If so, what are his limitations or details of this power? Is it some kind of Elvish-sight like Legolas but stronger? Was it a magical power? Or perhaps with the help of the Palantir (I'm not sure of this last one because I dont remember if the Palantir could only see what other Palantíri were seeing or anything he wanted)?


How to fix unresolved externals error in my pointers and arrays function - LNK2019 and LNK1120

I am building a Visual Studio C++ function for a school project.  It is giving me error codes LNK1120 and LNK2019, my program is:  #include "stdafx.h" #define m 40  int max_zero_len(int arr[], int x, int* max_len);  void _main() {     int arr[m];     int i, x=40, place,Mlen=0;     srand((unsigned int)time(NULL));     for (i = 0; i < m; i++)     {         arr[i] = rand() % 3;         printf("%d ", arr[i]);     }     place = max_zero_len(arr, x,&Mlen);     if (Mlen)     printf("the max zero is:%d and the position is:%d\n", Mlen,place);     else printf("an array does not sequence of zero\n"); }  int max_zero_len(int arr[], int x, int* max_len) {     int zcounter = 0, j,place=0;     for (j= 0; j< m; j++)     {         if (!arr[j])             zcounter++;         else         {             if (zcounter > *max_len)             {                 *max_len = zcounter;                 place = j - zcounter + 1;       //position of sequence             }             zcounter = 0;         }     }     return place; }   The errors are:  Error   1   error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup   E:\c++\lab8\tar3\tar3\MSVCRTD.lib(crtexe.obj)   tar3  Error   2   error LNK1120: 1 unresolved externals   E:\c++\lab8\tar3\Debug\tar3.exe 1   1   tar3   When I debug there are no errors. The errors only occur when I run the program. How can I fix the errors?


I need to write a script that will use document.write to produce some output, but I need to know what element it is contained, example:  <p>     paragraph 1     <script src="test.js" type="text/javascript"></script> </p>   I need to get a reference to the p tag...  thanks!


How to export data from c# console application to Excel

i have some rows and columns in c# console output, i want to export this to excel.any advice? Thanks


How can one upgrade Ubuntu 19.04 to 20.04?

With the new release of 20.04 LTS. How can I upgrade my 19.04 to this newest version? Or do I have to upgrade to 19.10 first?


My house has electric outlets in both orientations.  Which one is correct?  Should the ground hole be at the bottom or the top?    OR


Elected moderators can nominate themselves

, and I can nominate myself again, despite having won the first round of election.    I understand this isn't going to be easy to fix, given that SE only knows about community mods, employees and developer roles, and pro-tempore mods need to be able to nominate themselves.


Textbook recommendation on group theory for graduate.

During studies I took a course on abstract algebra that involved elements of group, ring and field theories. Unfortunately the course was really basic and currently I'm searching for a book that maybe expand it a little bit more. Are there any good books that talk about these subjects focusing on more "advanced" topics? And by "advanced" I mean book for someone that already knows the basic definitions and theorems but want to explore that field of math a little bit more. I'm primary interested in group theory - in particular group actions on a sets. The basic idea is to learn something that would be useful in other parts on mathematics - for example in topology or geometry.


Does GTA V Online Network Merge Xbox 360 and PS3 players?

Can GTA V  Online Network Merge Xbox 360 and PS3 players, or is it two individual networks? (Can crews cross platform)


I do not like Paypal. Any alternatives to support Ubuntu?

I want to help with a donation to you good people but cannot understand why you support the worst payment system in the world.   Kindly give me an alternative.


Getting QGIS Server GetCapabilities working on Windows?

I followed this tutorial:  but nothing happens.    And when I try to open it this error message appears   So I tried to follow httpd_qgis.conf edition step from  but it gives me the same error.    I think I didn't need that step because I can see "mod_fcgid" in my apache modules directory    What am I doing wrong?


Freshly installed Ubuntu 14.04 and is very slow

I installed Ubuntu 14.04 on my desktop It's an Intel Pentium 4 processor (Single Core) at 2.80Ghz, 1GB RAM, and for the Graphics its Intel 865G x86/MMX/SSE2 OS is 32 bit.  Boot up is quick and fast, but running anything is slow, it fades in/out slow. I did have 9.4 Jaunty installed but I figured why not upgrade to the latest version. Big mistake. :P  Windows 7 Operated faster than this on this desktop. ahaha.   Is there anyway it could just be graphics? I'm new to this version, but I've used 8,9, and 12, and I found that 12 thus far has been nice to use. But would LOVE to try this Version.  I do have a laptop (Using right now)  It's a Dell Inspiron 1501 (Yes my computers are old, but the laptop I got for free and the desktop I got for $40. :P) 3GB DDR2 RAM, AMD Turion 64 X2 2.00GHz, ATI Radeon Xpress, which is running Windows 7 Ultimate x86.   Would 14.04 benefit on the laptop? :P  Thanks. :)


Visibility of variables declared inside main block to functions declared in main block?

Why is it that a variable declared inside the main block is not visible to a function declared inside that same main block?  And what should I do to make code that is structured like this work as intended?  if __name__ == "__main__":     foo = 0     def bar():         foo +=1     bar()     Traceback (most recent call last):   File "C:\Users\Mark\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2881, in run_code     exec(code_obj, self.user_global_ns, self.user_ns)   File "<ipython-input-3-fa3c4c1d4159>", line 5, in <module>     bar()   File "<ipython-input-3-fa3c4c1d4159>", line 4, in bar     foo +=1 UnboundLocalError: local variable 'foo' referenced before assignment


What is the largest planar clique in n-dimensions?

In other words, what is the largest clique that can be drawn without any crossing edges in $\mathbb{R}^n$?  It's trivial in $\mathbb{R}$: 2.  In $\mathbb{R}^2$: 4, as we know that $K_5$ is non-planar  But what if we take it further to $\mathbb{R}^3$ and beyond? I can imagine at least a planar clique of size 6 in $\mathbb{R}^3$ by adding a vertex "above" and "below" the planar form of $K_4$ and adding edges appropriately. But is that the limit? Is there a general law for $\mathbb{R}^n$?


Force-carrying particles for electrostatic force

As I understand, Nuclear Fusion occurs when the nuclear forces overcome the electrostatic forces that act repulsively. But, what are these electrostatic forces? Are there force-carrying particles just photons?


There are wrong answer when cout the long double value, C++

#include <iostream> #include <iomanip> #include <limits>  using namespace std;  int main() {     const long double longDoublePI = 3.141592653589793238;     cout << setw(16) << "longDoublePI = " << setprecision(numeric_limits<long double>::digits10 + 1) << longDoublePI << endl;      return 0; }   But the result output is:   longDoublePI = 3.141592653589793116  Why the answer is wrong?


If $A, B, C$ are sets prove that $(A\setminus B)\setminus C\subseteq A\setminus(B\setminus C)$. Find a description of when it is that we have equality, and give an example where the inclusion is strict.   I'm not sure how to do this one I know that to prove that two sets $X$ and $Y$ are equal, we need to show that if $x$ is any element of $X$, then $x\in Y$, and that if $x$ is any element of $Y$, then $x\in X$: the first of these means that $X\subseteq Y$ and the second that $Y\subseteq X$, so the two together establish that $X=Y$. I'm not sure how to use this for a question and how to finish it.


Is Boolean Satisfiability Problem for CNF is NP? What about DNF?

Is it try what SAT for a boolean formula in CNF in NP-full?   And for DNF it is trivial?   But can we just transform any CNF to DNF?


International Targeting "no return tags"

Google Webmaster Tools has added an International Targeting Report to show hreflang errors. There's a section that reports "no return tags" errors with Originating URL & Alternate URL columns.    What do I need to do to fix these errors? Is there a way to "Mark as Fixed" once that's done like we can for Crawl Errors?


Do web designers need to know how to code?

As a web developer, both front-end and back end architect, I work with many different designers and sometimes find it frustrating working with design comps where no thought was put into how to accomplish the design in basic CSS and HTML.  On the other hand as a developer I'm expected to be able to produce code from any design.  Do web designers need to know basic modern CSS and HTML techniques?  Why or why not is this important for a well rounded web designer?  Some general thoughts:   Front end web developers should be skilled enough to code up any design. Web designers should have an understanding of how users will actually interact with their design. Design shops would rather have designers design and leave all the coding up to the developers.


Install the latest version of the Adobe Reader in Ubuntu or wine

In Ubuntu, I want to open a PDF document generated for Adobe Reader 10. Apparently the latest version which I can install is Adobe Reader 9.5.5. Is there a way to install version 10?  I installed Wine, but I don't know how to install acroread using Wine.


c# How fields are initialized when not provide a constructor by yourself?

//CodeSample1 //declare class fileds but not initialize them. public class Cat {     public int Age;     public string Name; }  Cat aCat = new Cat();   Check the result, aCat.Age is 0, aCat.Name is null.  How the fields are initialized? The above code just declare fields and not initialize them.  If you do not provide a constructor for your object, C# will create one by default that instantiates the object and sets member variables to the default values as listed in Default Values Table.(From )  So it's the compiler generated default constructor initialize fields. Is it right?  Changed Code, initialize fields when declare them.  //CodeSample2 //declare class fields and initialize them at same time. public class Cat {     public int Age = 4;     public string Name = "Black"; }  Cat aCat = new Cat();   This time the Result is that aCat.Age is 4, and aCat.Name is "Black".  I know the result is as expected. But do not understand how it works.  Fields are initialized immediately before the constructor for the object instance is called. (From )  Combine  and , CodeSample1 and CodeSample2 should have the same results (I know it strange).   My understanding is, in CodeSample2, firstly Age field is initialize to 4, then the compiler generated default constructor is called and set the age to default value (0).  Have I misunderstood the documents, or the documents are somewhat wrong?  If there are more accurate documents, please show me.


Why was Mom never sent to the Near Death Star?

Throughout the series we see that Mom and the Peofessor worked together and had a relationship. This would make Mom either the same age has the Professor, or older (she's looked as ancient in the flashbacks as current time). So why hasn't Mom been summoned to the big retirement home in the sky?


I have an assignment in college and I would like to ask some questions:  You are to design a Mealy state diagram for a safety device. Assume that two debounced push-buttons, A and B, are available to enter the combination. An electromechanical interlock guarantees that the buttons cannot be activated simultaneously. The lock should have the following features: The combination is A-A-B-A-B-A. If this sequence is correctly entered, an output signal is asserted that causes the lock to open. For any state, three B pulses in a row should guarantee to reset the control to its initial state. When any out-of-sequence use of the A push-button occurs, an output is asserted that rings a bell to warn that the lock is being tampered with. Once the lock is open, pressing either A or B will cause the lock to close without signaling an error. Draw a Mealy state diagram for this finite state machine. Indicate what each state represents and what input conditions cause state and output changes. Not everything may have been specified, so write down any assumptions you make.  I have to implement this Mealy machine using D flip-flops and MUX'es. I have 10 states for my machine: S0 -> "Input Start" // Nothing happened S1 -> A S2 -> AA S3 -> AAB S4 -> AABA S5 -> AABAB S6 -> AABABA -> this means EXIT S7 -> B S8 -> BB S9 -> A -> "ALARM ON"  *****EDIT to add machine pic   My questions are:  From what should I start in creating the truth table (on this specific assignment -- How can I think the necesarry flip-flops and MUX'es)? How can I create this specific diagram? Using only MUX'es and D-Flipflops?


How do I make a 2D game resolution independent?

I'm working on a simple 2D game. I've finished the mobile phone version.  However, my boss wants the game to works on his RT. I'm doing the "conversion" but my buttons are in the wrong places, because I hard-coded the screen size, like this:   texture = game.Content.Load<Texture2D>("StartScreen");  mainFrame = new Rectangle(0, 0, game.GraphicsDevice.Viewport.Width, game.GraphicsDevice.Viewport.Height);   // button definitions  startbrect = new Rectangle(300, 258, 88, 88);  startbtext = game.Content.Load<Texture2D>("bplay");   In this example, mainframe is fine, but startbrect isn't, because I defined the size to match a Windows phone's screen. How can I handle responsive design when all Windows 8 phones' screens are different? Is there a formula or macro to calculate each time the good size?


I had a quick question about altering fonts in Windows 7 I was hoping someone could give me a hand with. I have a touch of OCD when it comes to consistency and am having trouble changing the system fonts globally on my machine. I have changed 80% or so of them through the registry entry (found here):  Windows Registry Editor Version 5.00   ; Created by: Shawn Brink   ; http://www.sevenforums.com   ; Tutorial: Fonts - Change    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]   "Segoe UI (TrueType)"=""   "Segoe UI Bold (TrueType)"=""   "Segoe UI Italic (TrueType)"=""   "Segoe UI Bold Italic (TrueType)"=""   "Segoe UI Semibold (TrueType)"=""   "Segoe UI Light (TrueType)"=""   "Segoe UI Symbol (TrueType)"=""    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]   "Segoe UI"="CUSTOM_FONT_NAME"   The only issue I’m having is that the font is not adjusted in a few other places. For example, if I right-click on a file and look at the properties window, the font is still the default system font. The following is an example:    I’ve changed both the registry entry and the window fonts under “Personalization” to what I want but can’t seem to figure out how to change this font. I’d be eternally (or close to it) grateful to anyone who knows how to alter this font.  Edit: Shortly after posting this I found the exact registry edit I was looking for:  Windows Registry Editor Version 5.00  ; Created by: Shawn Brink ; http://www.sevenforums.com ; Tutorial: http://www.sevenforums.com/tutorials/1175-fonts-change.html   [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes] "MS Shell Dlg 2"="Tahoma" "MS Shell Dlg"="Tahoma"


Is finding a three way hash collision infeasible

Is there an equivalent to the birthday paradox for more than 2 messages.  Solving Hash(x) = 0 takes $2^{bits}$ steps on average  Solving Hash(x) XOR Hash(y) = 0 takes around $2 ^{bits/2}$ due to the birthday paradox.  Is there an algorithm that can solve Hash(x) XOR Hash(y) XOR Hash(z) = 0 in $2^{bits/3}$ steps (or similar)?  If so, does it get easier to find a solution if you add more terms?  [edit] The second post by Squeamish Ossifrage is what I was looking for, thanks.


No references or bibliography is appearing for Thesis format

This is my code, where after searching a lot and working around. I couldn't seem to resolve my problem.  Really sorry for this trivial problem  \documentclass[12pt,twoside]{report} \usepackage[utf8]{inputenc} \usepackage{graphicx} \graphicspath{ {images/} } \usepackage{mathtools} \usepackage[caption=false]{subfig} %\usepackage{caption} %\usepackage{subcaption} %\usepackage[a4paper]{geometry} \usepackage{graphicx,bm} \usepackage{physics} \usepackage{dsfont} \usepackage{xcolor} \usepackage{breqn}   \colorlet{linkequation}{red} \usepackage[colorlinks,linkcolor=red]{hyperref} \newcommand*{\field}[1]{\mathbb{#1}}%  \usepackage[style=authoryear]{biblatex} \addbibresource{thesisbib.bib} \title{     {My most productive work}\\     {\large Institute}\\     {} } \author{Name} \date{Day Month Year}  \begin{document}      \maketitle \chapter*{Abstract} Abstract goes here  \chapter*{Dedication} To mum and dad  \chapter*{Declaration} I declare this and that..  \chapter*{Acknowledgements} I want to thank you all...  \tableofcontents  \chapter{Introduction} \input{introduction}  \chapter{Experiments} \input{chapter02/chapter02}  \chapter{Theory 1} \input{chapter03/chapter03}  \chapter{Theory 2} \input{chapter04/chapter04}  \chapter{Theory 3} \input{chapter05/chapter05}  \chapter{Conclusion} \input{conclusion}  \printbibliography \end{document}   Output doesn't seem to give any bibliography. I'm using \parencite in order to cite my references.  The error I'm getting.       This is BibTeX, Version 0.99d (TeX Live 2018) The top-level auxiliary file: Thesis.aux I found no \citation commands---while reading file Thesis.aux I found no \bibdata command---while reading file Thesis.aux I found no \bibstyle command---while reading file Thesis.aux (There were 3 error messages)


How to add a text file to a zip in one single command?

I want a put a text file in a encrypted zip archive. I would currently use:  echo "<my text>" > file.txt zip --encrypt myarchive.zip file.txt   Is there a way to do the same thing in one single command without having to save a file?


Reformulating problem with 'at least one of the following constraints must hold' to an integer programming problem

I have been giving the following question    Consider the following problem with alternative constraints: max $2x_1-79x_2$ subject to $0\le x_1\le 20, 0\le x_2 \le 30$ and at least one of the following inequalities holds: $-2x_1+3x_2\ge0$ (1) $5x_1-4x_2\ge0$ (2) $7x_1+8x_2\le40$ (3) Formulate this problem as an integer programming problem.   My answer to this is    max $2x_1-79x_2$ subject to $0\le x_1\le 20, 0\le x_2 \le 30$ $2x_1-3x_2\le M_1 (1-y_1)$ $4x_2-5x_1\le M_2(1-y_2)$ $7x_1+8x_2-40\le M_3 (1-y_3)$ $\sum^3_{j=1}y_j\ge1$ $y_j\in \{0,1\}$ for $j=1,2,3$ Choose $M_j$ so ignored constraints will not be binding.    Is this an acceptable answer? Have I made any mistakes? If yes, where abouts? Thank you:)


Name of animated series from recent past

When I was little (about 8-9 years ago), I watched an animated series whose name I can't remember, but I really liked the series so I want help to find its name. I can't remember the media source, but I watched them in Bulgarian.  In the series there was a purple boy (he wore loose purple trousers and had purple hair), I think his name was Strack or something like that, and there were some kind of monsters, that could be summoned by gems. There were other kids too and they were Strack's friends and еach one had a gem. I remember a big forest too.   It's not much information, but I hope it helps.