Beamer: Changing the font size of the references using the shrink argument causes an error

I'm trying to change the font size of the references using the shrink of the frame argument. However, if I run this code:  \documentclass{beamer}  \usepackage[american]{babel} \usepackage[utf8]{inputenc} \usepackage{csquotes} \usepackage[style=apa, backend=biber,doi,url]{biblatex} \DeclareLanguageMapping{american}{american-apa}  \begin{filecontents}{literature.bib} @article{foobar,   Author = {An Author},   Journal = {A Journal},   Pages = {1--2},   Title = {Some title},   Volume = {1},   Year = {1900} }  \end{filecontents} \addbibresource{literature.bib}  \begin{document}  \frame{   \textcite{foobar} }  \frame[shrink=50]{   \frametitle{References}   \printbibliography }  \end{document}   I get the following error:  ! Arithmetic overflow. \beamer@shrinkframebox ...\@tempdimc by\@tempcnta                                                    \relax \ifdim \@tempdimc >... l.32 }  ?  ! Emergency stop. \beamer@shrinkframebox ...\@tempdimc by\@tempcnta                                                    \relax \ifdim \@tempdimc >... l.32 }   If I remove the shrink argument it works.  I'm using TexLive 2011 on Debian Squeeze and I updated all my packages ;).


I use the transformation rule $L(f(t)*t^n) = F^{(n)}(s)(-1)^n$ to find out the inverse Laplace of $\sin(s)$.  $F(s) = \sin(s)$  $F''(s)=-F(s)$  $L(f(t)*t^2) = F''(s) = -F(s) = -L(f(t))$  $L(f(t)(1+t^2))= 0$  Here I can only see the trivial solution $f(t) = 0$. Is there any function whose Laplace is zero, other than zero? I mean I wonder where is my error?


What is the significance of the X on people's faces from Shouya's perspective and why does Ueno get the X on and off?

In Koe no Katachi (A Silent Voice) my current interpretation of the X on someone's face is that the protagonist does not wish to acknowledge or socialize with this person. An extension of this could be perhaps that he does not wish to hear their "voice", if we were to stretch somewhat on the themes of the story.   Ueno is the only person I can think of when in the reconciliation phase gets the X on and off. I can understand it being a part of the protagonist's difficulty in attempting to reconcile with her and understand her motives (which interestingly play similarly to his own of attempting to reconcile Shoko with her classmates while she tries to reconcile him with his).   suggests it is his disgust for her.  I'm looking for any other interpretation preferably with evidence of when the X comes on and off. Is there a concrete pattern behind why and when the X is put on a person?  If I have time and can find the images I'll add a few with chapter references to better show examples of what I mean.


DataOutputStream.writeBytes produces null pointer exception

I am creating a an application where a client can send TCP packets  to a server and the server will respond.However, when I flush() my buffered data to an outputstream, it produces a nullpointer exception. For each new client that connects, a new thread with a class is created. Here is the class:   public class clientHandler implements Runnable{     private boolean loggedin = false;     private String username = "";     Socket cs;     OutputStream rawoutput; //for some reason I had to pass the outputstream directly to the constructor rather than get it here, here it would produce a npe     clientHandler(Socket clientSocket, OutputStream bos){         rawoutput = bos;         cs = clientSocket;     }     DataOutputStream output;     {         try {             output = new DataOutputStream(rawoutput);         } catch (Exception e) {             System.out.println("rip OS");             e.printStackTrace();         }     }   //a couple more methods...       private void metaData(String data) throws Exception{         if(data.startsWith("/iusername")){             String[] useful = data.split(";");             System.out.println(useful[0].split(":")[1] + " logged in");             output.writeBytes("logged in");             output.flush();             username = useful[0].split(":")[1];             loggedin = true;         }     } }   I am using netcat as a 'client' until I write my own. Is this perhaps why it causes the NPE? I have tried this all different kinds of outputstreams and writers and they all produce error at either the initialization, the write or the flush.


Is it grammatically correct to say that my hairs are long?

From high school, my English teacher always emphasized on English words which are read the same in their singular and plural form. One of them being hair, yet most people still say hairs for hair. Please help


Checking to see if a one-hour layover is enough time, flying JetBlue from Newark to LAX, code share flight on Hawaiian from LAX to HNL. Would all be on one ticket and bags checked through, but I've never done a connection this short. I always leave more time for any possible problems. Never been to LAX so I don't know the layout of the airport at all.


This question has been asked before, but none of the answers on those threads have helped so far.  Getting the following error when trying to deploy a test class from the sandbox to production in the Force.com IDE:  System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, LeadPerson: execution of AfterInsert caused by: System.Exception: Too many SOQL queries: 101  LeadPerson trigger looks OK, e.g., no SOQL calls inside a loop.  trigger LeadPerson on Lead (after insert) {     Map<Id, Lead> leadMap = new Map<Id, Lead>();     Map<String, Lead> leadEmailMap = new Map<String, Lead>();      for(Lead lead : Trigger.new) {         if (lead.Email != null) {             leadMap.put(lead.Id, lead);             leadEmailMap.put(lead.Email, lead);         }     }      Map<String, Person__c> personMap = new Map<String, Person__c>();     for (Person__c p : [SELECT Id, Email__c FROM Person__c WHERE Email__c IN :leadEmailMap.keySet()]) {         personMap.put(p.Email__c, p);     }      List<Person__c> addPersons = new List<Person__c>();     List<PersonHistory__c> addPersonHistorys = new List<PersonHistory__c>();     List<Lead> addPersonLead = new List<Lead>();     Map<String, String> addPersonEmails = new Map<String, String>();      for(Lead lead : Trigger.new) {         if (lead.Email != null) {             if (personMap.containsKey(lead.Email)) {                 // Create PersonHistory__c record for existing Person__c records                 Person__c getPerson = personMap.get(lead.Email);                 PersonHistory__c newPersonHistory = new PersonHistory__c();                 newPersonHistory.Person__c = getPerson.Id;                 newPersonHistory.RecType__c = 'LEAD';                 newPersonHistory.RecSubType__c = lead.inq_type__c;                 newPersonHistory.SFID__c = lead.Id;                 newPersonHistory.RecTypeStatus__c = 'NEW';                 addPersonHistorys.add(newPersonHistory);             } else {                 // Create Person__c and PersonHistory__c record for NEW Person__c records                 String firstInitial = '';                 if (lead.FirstName != null) {                     firstInitial = lead.FirstName.substring(0, 1);                 }                  if (!addPersonEmails.containsKey(lead.Email)) {                     addPersonEmails.put(lead.Email, 'EMAIL');                     Person__c newPerson = new Person__c();                     newPerson.Email__c = lead.Email;                     newPerson.AltKey__c = firstInitial + lead.LastName + lead.PostalCode;                     newPerson.Current_Status__c = 'NEW';                     addPersons.add(newPerson);                     addPersonLead.add(lead);                 }             }         }     }      // INSERT NEW Person__c records     List<Database.SaveResult> newPersonResult = Database.Insert(addPersons);     for (integer i = 0; i < newPersonResult.size(); i++) {         // Create PersonHistory__c records for new Person__c records         PersonHistory__c newPersonHistory = new PersonHistory__c();         newPersonHistory.Person__c = newPersonResult.get(i).getId();         newPersonHistory.RecType__c = 'LEAD';         newPersonHistory.RecSubType__c = addPersonLead.get(i).inq_type__c;         newPersonHistory.SFID__c = addPersonLead.get(i).Id;         newPersonHistory.RecTypeStatus__c = 'NEW';         addPersonHistorys.add(newPersonHistory);     }     insert addPersonHistorys; }   The debug log doesn't show a transaction having more than 5 out of 100 SOQL queries in the CUMULATIVE_LIMIT_USAGE sections. Not sure where to look next. Any help is appreciated.


movie_list=[] movie_list.extend(movieid[1]) print movieid print movie_list   I got the following output:  (832871, 'Espas en Hollywood') ['E', 's', 'p', 'a', 's', ' ', 'e', 'n', ' ', 'H', 'o', 'l', 'l', 'y', 'w', 'o', 'o', 'd']   Why did I get a character list as a result of append? What should I do if I  'd like to attach the string 'Espas en Hollywood' to movie_list?  i.e desired output:  ['Espas en Hollywood']


I had installed 64 bit Ubuntu 13.04 on my desktop. For first two login It accept my password but from today system can not accept my password. I had not changed the password. Please suggest solution to recover password.


I'm using Ubuntu 20.04 LTS and I noticed this issue recently. I cannot open a terminal in a directory by right clicking in the directory and selecting "Open in Terminal". However, I'm able to launch the terminal from applist and cd to any directory. What can be the issue?


Moderators and users with 10K+ reputations can search for deleted posts on the advanced search page by specifying deleted:yes option. Users with 10K+ also get the following note after search:        For users who have not enough rep this option doesn't work at all and silently ignored. However user can see a list of recently deleted own posts via deleted recent questions/answer links on corresponding sections in the Activity tab of the profile page.  My request is: allow users even with less than 10k to search for own recently deleted posts via advanced search since it can be viewed via profile page.


How does a photon experience space and time?

To an an external observer it appears that time has stopped for photon. But this relation is reflexive, so for an observer travelling with the photon it appears the universe has stopped everywhere.  Is this right?  Space also gets distorted parallel to the direction of motion, but not perpendicular to it.   Does this mean that for an observer travelling with a photon sees spacetime as a flat plane?  Note 1: I'm using language vividly not literally when I say a photon experiences space and time. Not that I'm against idealist or panpyschist interpretations of matter or energy come to that.  Note 2: Since it's been pointed out that an inertial frame can't be boosted into the frame of a photon and moreover there is no limiting behaviour here - no matter what frame you are boosted into, light will always appear to travel at c. Nevertheless, when an external observer watches a train chasing a photon by gradually increasing its speed, he will note that the train speed is approaching the speed of the photon (but will never match it) and when he looks at the clock inside the train he will not too that it is gradually slowing down (but never actually stops). Using this picture, we can attempt the thought experiment - if not one that can be carried out - of what a world looks like to a photon.


If you try to ask a question and a question with the same title exists you get this message:     Your question couldn't be submitted. Please see the error above.   To pass that people do things like putting tags in the title (language/technology, etc.), which on the other hand should be avoided. There could be so many titles you just can't rephrase and keep them simple and concise.  My question is why duplicate titles are not allowed?


How to customize a language input on linux?

I want to customize the Greek alphabet as to be able to depict accent marks for a Greek dialect. Greek keyboard layout is already able to use intonation marks for vowels when you press the ";" key next to L. So ι,ο,ε,α,and etc can get an intonation mark and be depicted as ί,ό,έ,ά. I want to add a "v" mark above the letters χ,σ,ζ also a double dot mark under α (something like ϊ but under α) when I press ";" prior to the letter. I want to do it on an ubuntu laptop but hopefully create a customized Greek input for Linux, Windows, Android and Apple. Does anyone have a clue how I can do that?


Without plotting graph prove that $f: \mathbb{R}\to \mathbb{R}$ $$f(x)=\sin x+x$$ is an Onto function  Let $y_0$ be any number in codomain Then we require atleast one $x_0$ in Domain such that $y_0=\sin x_0 +x_0$  Now since $\sin x_0$ is bounded in $\left[-1 \:\: 1\right]$  we have   $$x_0=y_0-\sin x_0$$  hence there is an $x_0$ in Domain. So $f$ is surjective. But i feel something missing in this proof? Any other way to prove?


Why do academics perform review for free?

Most of the work involved in producing a journal is done by people paid at  than most academics, but the those with the rarest skills, those able to review specific scientific articles, provide their labor for free.  In my fairly limited experience most academics are over worked, under paid and not particularly positive about the closed access journal system or shareholding capitalists.  Most reviews are conducted anonymously, so reviewers do not receive direct credit from the scientific community.  Funders (in my limited experience of the MRC at least) care about papers a group author not those they review.  The big journals at least are profitable companies that  to their shareholders, and I presume that if they were unable to get this work done for free they would pay for it, making the academics better off and the shareholders receive less dividends.  Why do so many academics provide this service for free?    I saw  question, but it does not seem address the economic imbalance or the supposition that if no one did it for free then everyone would get paid.


Show that if a transitive subgroup $G\subset S_n$ of the symmetric group $S_n$ contains a n-1 cycle and transposition,then $G=S_n$.   Firstly, without loss of the genralization, we can assume the n-1 cycle is $(2,   3,4,....,n-1)$, and the transposition is (1,2), but how can we prove that (1,2) and (2,3,...,n-1) generates $S_n$


How can a gravestone and death certificate be a year out?

is a similar question and I was interested in rolling out my own question on this subject.  My family in Spain provided this photo of my Great Great Grandmother's tombstone:    As you can see it clearly states that she died on 27-4-1943. Now, today I received her death certificate directly from the Spain Registry Office and the date that her death was reported was:    This says in part:     ... del dia veintiocho de abril de mil novocientos cuarenta y cuatro, ...   In English that means 28 April 1944. Further down the certificate  it states that she died ayer which means yesterday. This would make her date of death 27 April 1944.  Thus the date of her death is exactly a year out.   How can this kind of major difference come about?


When you email a professor to inquire about an available PhD position is it a good idea to ask if they have any available projects?


All pairs (x,y) that satisfy the equation $xy+(x^3+y^3)/3=2007$

How we can find the all pairs $(x,y)$  from the integers numbers ,that satisfy the equation :  $$xy+\frac{x^3+y^3}{3} =2007$$


Meaning of * character in a struct.pack line?

Can anyone tell me what the * character is doing in this line of python code?  struct.pack(">%df" % numframes, *[frame/fps for frame in xrange(numframes)])   I've look through the  but I can't find that character on it's own.  Thanks!


How to fill the limits of the two curves?

I want to fill the limits of the two curves (as shown). This is my code  \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \definecolor{ttqqcc}{rgb}{0.2,0,0.8} \definecolor{ffqqtt}{rgb}{1,0,0.2} \definecolor{ttqqff}{rgb}{0.2,0,1} \definecolor{uququq}{rgb}{0.25,0.25,0.25} \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm] \draw[->,color=black] (-3.63,0) -- (3.67,0); \foreach \x in {-3,-2,-1,1,2,3} \draw[shift={(\x,0)},color=black] (0pt,2pt) -- (0pt,-2pt) node[below] {\footnotesize $\x$}; \draw[color=black] (3.48,0.07) node [anchor=south west] { $x$}; \draw[->,color=black] (0,-1.93) -- (0,5.57); \foreach \y in {-1,1,2,3,4,5} \draw[shift={(0,\y)},color=black] (2pt,0pt) -- (-2pt,0pt) node[left] {\footnotesize $\y$}; \draw[color=black] (0.06,5.19) node [anchor=west] { $y$}; \draw[color=black] (0pt,-10pt) node[right] {\footnotesize $0$}; \clip(-3.63,-1.93) rectangle (3.67,5.57); \draw[color=ttqqff,fill=ttqqff,fill opacity=0.1, smooth,samples=50,domain=-1.7320508075688772:-1.0] plot(\x,{\x^4-4*\x^2+3}) -- (-1,0) -- (-1.73,0) -- cycle; \draw[color=ffqqtt,fill=ffqqtt,fill opacity=0.1, smooth,samples=50,domain=-1.0:1.0] plot(\x,{\x^4-4*\x^2+3}) -- (1,0) -- (-1,0) -- cycle; \draw[color=ttqqcc,fill=ttqqcc,fill opacity=0.1, smooth,samples=50,domain=1.0:1.7320508075688772] plot(\x,{\x^4-4*\x^2+3}) -- (1.73,0) -- (1,0) -- cycle; \draw[smooth,samples=100,domain=-3.6342419080068153:3.665758091993186] plot(\x,{(\x)^4-4*(\x)^2+3}); \begin{scriptsize} \fill [color=uququq] (-1.73,0) circle (1.5pt); %\draw[color=uququq] (-1.87,-0.33) node {$A$}; \fill [color=uququq] (-1,0) circle (1.5pt); %\draw[color=uququq] (-0.85,-0.35) node {$B$}; \fill [color=uququq] (1,0) circle (1.5pt); %\draw[color=uququq] (1.1,0.25) node {$C$}; \fill [color=uququq] (1.73,0) circle (1.5pt); %\draw[color=uququq] (1.84,0.25) node {$D$}; \end{scriptsize} \end{tikzpicture} \end{document}     I want the fill has the form  Please help me.


How to prove $dim(Ker (A- \lambda I))=dim (Ker(A^t- \lambda I))$?

How to prove $dim(Ker (A- \lambda I))=dim (Ker(A^t- \lambda I))$ ?  We know both $A$ and $A^t$ have same eigenvalues and $Av= \lambda v$ imply $v^tA^t= \lambda v^t$ but this does not imply that there is a one to one association b/w eigenvectors of $A$ and $A^t$.. So how to proceed?


Keyboard shortcuts for each input language

Can I set up keyboard shortcuts for each input language? For example I want to set "Ctrl + 8" for English, "Ctrl + 9" for Ukrainian and "Ctrl + 0" for Russian languages. I don't want to switch and search language I need. It takes time. I want directly to turn language I want. I had this ability  in Windows. Maybe I need to install some plugin?


How can add Contact-Us-form in custom place of page.html.twig file?

I need to add contact-us form in the custom place of page.html.twig file in my themplate, I want to add some code like belove:

Contact Us
     <form action="#" method="post">         <input type="text" name="email" placeholder="Email" />         <textarea name="message" placeholder="Message"></textarea>         <button>Send</button>     </form>


Suppose we have continuous $f_{n} : D \rightarrow \mathbb{R}$   converging to $f : D \rightarrow \mathbb{R}$ uniformly on $D$. Then,   is $f$ continuous?   I know that if we have $f_{n}$ converging to $f$ and $f_{n}$ are all continuous then it is not necessary for $f$ to be continuous. This is shown by   $$x^{n} \hspace{1cm} 0 < x \leq 1 $$  for $n \geq 0$. But, it is the uniformly part that gets me here. Is this statement true?


Can I install the full version of windows 10 from Windows 10 Insider Preview?

I want to install Windows 10 (offered for free) on a separate partition (to dual boot), but it is only available for install through windows update if you are running Windows 7 or 8. I can, however, install Windows 10 Insider Preview on a separate partition on my hard drive. If I do this, will I be able to upgrade from the Win 10 Insider Preview to Win 10 (free through windows update)?


Posting frequencies of the contents of a dictionary in descending order (Python)

I created a dictionary that counts the number of occurrences of each word in a separate text file. So far it looks like this. import sys  def main():     d = dict({})          with open(sys.argv[1], encoding="utf-8") as f:         for line in f:              line = line.strip()              line = line.lower()              words = line.split(" ")             for word in words:                  if word in d:                      d[word] = d[word] + 1                 else:                      d[word] = 1          for key in list(d.keys()):         print(key, ":", d[key])      if __name__ == "__main__":     main()  In the command line, I input a text file for it to count the frequencies of each word (executing "python3 frequencycount.py example.txt"). This code effectively executes a list of all words in the text file and it counts how many times they occur. What I'm trying to do now is print the words in descending order by frequency of occurrence. For example, my text file is a list of vegetables (pepper 5 times, carrot 9 times, peas 8 times, and broccoli 1 time). The list looks like this: Pepper : 5 Carrot : 9 Peas : 8 Broccoli : 1  However, I would want it to print like this: Carrot : 9 Peas : 8 Pepper : 5 Broccoli : 1  How can I make it print in descending order like this? Thanks.


Is it appropriate (as an undergraduate) to email an academic with a question on their publication?

I am currently studying a published article as part of an undergraduate research project I am doing. I am having difficulty understanding specific parts as the article is quite dense and makes some leaps in logic that I am having trouble following. The article is of a mathematical/computer science nature and suppresses many details.  I would like to email the article's author to ask a question or two, and I am wondering, is this appropriate? If I were a post-doc or something I would not hesitate. My concern is that as an undergraduate, perhaps my questions will be silly and/or a waste of time for the author. Or worse yet, I am concerned that it is inappropriate for an undergraduate to email at all. Can anyone offer some comments on this? Some relevant info:  - I have studied the problem and am unable to answer the questions thus far.  - My supervisor does not know the answer either and would have to study the paper (my job) to determine the answer.  As noted, this is nearly identical to a question asked by a Masters student, but I feel it justifies its own responses. My concern here is that I may be asking questions that would be obvious to a Master's student.


How many group homomorphism are there from  $ \mathbb{Z}_{20} $ onto $ \mathbb{Z}_{8} $? How many are there to $ \mathbb{Z}_{8} $ ?  In first question is onto but second question is to what is the difference between two question?


Matlab Regenerating figures: Simulating Brownian Motion via Random Walks

I'm trying to understand the relation between discrete-time random walk process and continuous-time wiener process.   I'm reading  and to understand concepts and proofs I need to regenerate figures in pages 7-10 of this document. These figures simulate random walks with different steps. As the number of steps increases, the trajectory becomes bold. Brownian motion is when the number of steps becomes infinitely large. The following Matlab code trys to show this result:  clc, clear steps = 10000 y=NaN*ones(steps,1); y(1)=10; sig = 1 for t = 1:steps y(t+1) = y(t) + randn(1); end subplot(3,1,1) plot(y) steps = 100 y=NaN*ones(steps,1); y(1)=10; sig = 1 for t = 1:steps y(t+1) = y(t) + randn(1); end subplot(3,1,2) plot(y) steps = 10 y=NaN*ones(steps,1); y(1)=10; sig = 1 for t = 1:steps y(t+1) = y(t) + randn(1); end subplot(3,1,3) plot(y)   However what I try to discover is how to incorporate parameters $\Delta t, \alpha,$ and $\sigma$ in the given document into my plots.  Regenerating this plots help me to understand concepts behind this topic.


I am running Ubuntu 20.04, and when i look in the settings in the top right there is no WIFI option, I use a dual boot with Windows 10 where the WIFI works 100% Edit: i started nm-applet and the settings now show, but i still don't know how to connect. Edit 2: lspci shows this: <snip> 07:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)


I would like to know, what is main by NullPointerException.  My understanding of this error code is that there is a variable with null value being used. But what does it really mean. Kindly seek your enlightenment.  Exception in thread "main" java.lang.NullPointerException  at java.awt.Container.addImpl(Unknown Source)  at java.awt.Container.add(Unknown Source)  at TicTacToe.<init>(TicTacToe.java:29)  at TicTacToe.main(TicTacToe.java:49)  public class TicTacToe {  JPanel t3pan; JButton button1; JButton button2; JButton button3; JButton button4; JButton button5; JButton button6; JButton button7; JButton button8; JButton button9;  TicTacToe() {     t3pan = new JPanel();      GridLayout gl = new GridLayout(3,3);     t3pan.setLayout(gl);        t3pan.add(button1);       t3pan.add(button2);       t3pan.add(button3);       t3pan.add(button4);       t3pan.add(button5);       t3pan.add(button6);       t3pan.add(button7);       t3pan.add(button8);       t3pan.add(button9);       JFrame t3frame = new JFrame();      t3frame.setContentPane(t3pan);     t3frame.pack();     t3frame.setVisible(true); }  public static void main(String[] args) {     new TicTacToe(); }  }


Prove $$\frac{k^7}{7}+\frac{k^5}{5}+\frac{2k^3}{3}-\frac{k}{105}$$ is an integer for every positive integer k.  In proving for (n+1) integer,the expression is integer,I found $(n+1)^7$ term.I use binomial theorem to expand but finally it won't work(some term become integer While some other remaining as rational)  Any hint to solve the problem is appreciated.Thanks.


Urn with an infinite number of balls of finite, uniformly distributed colours

There's an urn with an infinite number of balls, from which one can draw as many times as one wants. The balls have $n$ different colours, and the probability a ball has a certain colour is $1/n$. For instance, if there are two colours, red and green, there's a 50% chance of a ball being red, but problem is that the number of colours is unknown.  Given that a person has made $m$ draws, of which there are $m_1$ occurences of the colour $c_1$, $m_2$ occurences of the colour $c_2$ $\ldots$ $m_n$ occurences of colour $c_n$ (so that $m = m_1+m_2+\cdots+m_n$, not all necessarily non-zero), how can one estimate the total number of colours $n$?  If there's only one colour ($n=1$), one would expect to draw $c_1c_1c_1c_1\cdots$, but after a finite number of draws, one would still only have a probability that there's only one colour, and never be certain. But intuitively, one should be able to exclude large $n$s with a high probability, so how would $\mathbb{P}(n\,|\,\underbrace{c_1,c_1,c_1,\ldots,c_1}_{m})$ be distributed, and how would the general case look like?     $$ \mathbb{P}(n\,|\,\underbrace{c_1,\ldots,c_1}_{m_1},\underbrace{c_2,\ldots,c_2}_{m_2},\underbrace{c_n,\ldots,c_n}_{m_n})\quad\sim\quad? $$   There's a similar question , however, this question doesn't assume that each colour is of equal probability.


I have downloaded the latest ubuntu onto a external hard drive, but i cant seem to figure out how to open it and run that os from the HD. I'm in school so i need to keep my primary OS as windows for conveniency purposes. Is there a way i can have a duel os, pulling one from a External Hard Drive?  John


How did the lead character in predestination movie get born for the first time?

In Predestination, how was the lead character born for the first time?


I try to find midway position on this kind of pathes :    \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc}  \pagestyle{empty}  \begin{document}  \tikzset{pics/.cd,     % Marque ronde     Dot/.style args={#1 and #2}{%         code = {%         \fill[#2] (0,0) circle (#1 pt) ;         }     },     Dot/.default={1.25 and black}, }   \begin{tikzpicture}  \draw (0,0) -- (3,0) pic[midway] {Dot} ;  \draw (0,0) --++ (0,5pt) -| (3,0) pic[midway] {Dot} ;  \draw (0,0) --++ (0,-5pt) pic[midway] {Dot} -| (3,0) ;   \end{tikzpicture} \end{document}


Hope y'all doing fine, My question may be so lame sorry but wanted to know the answer.. how to root a android device I have mobile of Sony Ericsson Xperia Mini (ST15i) I bought that before 3 years, still use the thing it's still good working condition but on the latest update of the software which it sucked all my internal memory now i have only 100 MB to usable and latest update of Facebook alone is 25 MB + extra data 30 + cache 10 MB and total is 65 MB (rough calculation) so thought of removing the unwanted default apps which came with the update which were uninstallable searched for removing,   said that the best bid is to root our device and so can you guys please guide me how to root I checked with SuperOneClick it never worked


I need to solve for $x$ in this congruence:  $$17x+7 \equiv 3 \pmod 6$$


Send variables defined in python script to external program

I need to send the values of some variables from a Python script to a program "a.exe" written on C. To understand, the source of "a.exe" is here:  #include <stdio.h> int main(){ double x1,x2; scanf("%lf  %lf", &x1, &x2); printf("%lf+%lf=%lf", x1,x2,x1+x2); return 0; }   The only thing I managed to find is to send the keyboard input, not variables:  import subprocess p = subprocess.Popen("a.exe", stdout=subprocess.PIPE) print ( p.stdout.read() )   That script works but I need to send to "a.exe" the values of variables xx1,xx2 instead. The script should look something like this:  import subprocess xx1=1.;xx2=2. p = subprocess.Popen("a.exe", stdout=subprocess.PIPE) ############   it seems that there must exist a very simple solution. What to put instead of the line with ############ (or what to do in fact) so as it worked?


Prove $f(x)=g(x)$ has at least 1 solution $c$ in $(a,b)$

If $f$ and $g$ are two continuous functions from $[a,b]$ to real numbers s.t $f(a)\lt g(a)$ and $f(b)\gt g(b)$. Prove that $f(x)=g(x)$ has at least 1 solution $c$ in $(a,b)$.  I tried using intermediate value theorem. It states that if f continuous on [a,b] f(a)< d< f(b) then there exists a point c in (a,b) such that f(c)=d


How do I display the whole desktop in Virtual Box fullscreen mode?

I am running Ubuntu 12.04 in VirtualBox 4.2.6 on a Windows 7 host. After installing Ubuntu I wanted to get the VB interface in fullscreen. I therefore installed guest additions from Virtual Box Manager (devices > install guest additions -> run --> reboot).  But after booting I can only see a part of the desktop without menus. In addition I am asked again to install the guest additions after every reboot (the guest additions CD reappears even though I had removed it).  Editing the resolution in system settings via right click > appearance -> all settings (since I can only partially see the desktop) the actual resolution changes but the whole desktop still does not fit.  Do I have to uninstall/reinstall the guest additions? What other options do I have?


In Ubuntu 16+, for a network interface "ens192", where does the "192" come from?

We have dozens of virtual machines in several data centers around the world. When upgrading an Ubuntu VM from 14 to 16 (as a step toward upgrading them to Ubuntu 18), the network interface names change. I am aware of this, and I know why they change, so that is not my question. My question is where does the number (the 33 in ens33, the 192 in ens192, etc.) come from? I have read many StackExchange questions and answers about what to do to get the server working: that is not the problem. What I want to know is how to predict what the ens### will be before the server is upgraded to Ubuntu 16. I have looked at lshw and lspci, and I can't see any reason why these numbers are chosen.  Please: where does the 192 (or 33, or anything else) come from?


Is there a term for the phenomenon where the same word forms more than one part of speech?

Is there a term for e.g. the lexical symbol "duck"? It is both a verb and a noun, in contemporary use having no apparent connection, and so would appear to be represent two words.    Then, is the a better term than 'lexical symbol' to describe any grouping of letters having some meaning? I just made up lexical symbol because it seemed convenient.


How to run a javascript function when a user hits a certain point on a page?

What is the best way to run a JavaScript function when a user reaches a certain point on a web page?


What are appropriate methods for preparing categorical features for recurrent networks to ensure efficient backpropagation?

Given a 1D sequential categorical input variable, e.g. [rainy, sunny, rainy, cloudy, cloudy], with a small domain {rain, sunny, cloudy}, what encoding methods (e.g. one-hot, dummy, binary) and what scaling methods (e.g. standardisation, min-max scaling) are appropriate specifically for use with RNNs such as LSTM and GRU given their logistic activation functions in comparison to other NNs which tend to use ReLU?  In Yann A. LeCun et al - Efficient BackProp Chapter in Neural Networks: Tricks of the Trade: Second Edition, pages 9–48, LeCunn states that preprocessing of data should be performed in such a way so as to ensure that the activations of the neurons have unit variance and mean zero (which is of course not possible for sigmoid activations) to ensure backprop is efficient, and presumably to ensure that signals to later layers lie approximately in the region [-1, 1] where in the gradient of the logistic functions is greatest.  I believe this is of particular significance to LSTM/GRU RNNs since if one uses one-hot encoding (or some other binary style encoding) the distribution of the responses will not be distributed with unit variance (sigmoid and tanh) as per LeCun's directions.   addendum - This has nothing to do with the convolution operation (as per the tagged duplicate) in the context of a categorical variable. This is a question about what are the appropriate encoding and scaling methods for GRU/LSTM RNNs which are likely specific to these types of networks due to the logistic type activation functions they use.


Proving that $x^4 - 10x^2 + 1$ is not irreducible over $\mathbb{Z}_p$ for any prime $p$.

So I have seen the similar question and answers on here for $x^4 +1$, but I am having trouble extending anything there to this polynomial... I understand it is fairly trivial with Galois theory, but my class has just barely covered Field Extensions, so suffice it to say we have no Galois theory to play with.  I managed to prove it for the primes such that $p \equiv 1, 7 \pmod 8$, by noting that $2$ is a square modulo those primes and thus $x^4 - 2x^2 +1 = (x^2 -1 + 2qx)(x^2 - 1 - 2qx)$ for those $\mathbb{Z}_p$... however, trying to get a similar result for $3 \pmod 8$ and $5 \pmod 8$ has been stumping me for a long time, I am having a hard time making $q^2 = -1$ and $q^2 = -2$ give me something factorable...  I guess the worst part of all of this is that I don't think this solution is even particularly enlightening, in terms of abstract algebra. It's really just some number theory trickery. I don't think my course has prepared me theoretically for this problem, does anyone have an elementary approach to it?


Counterexample of $X_{n}$ and $Y_{n}$ converging in $L^{1}$ but not their product

Could someone give me an example where $X_{n}$ and $Y_{n}$ converge in $L^{1}$ but $X_{n}Y_{n}$ doesn't converge in $L^{1}$?


Suppose $G$ is a group and $N$ is its normal subgroup, such that every subgroup of $N$ is normal in $G$ and $C_G(N)\subset N $. Is $\frac{G}{N}$ always abelian?  I do not know such $G$ and $N$ where it is not, but neither I know general proof of this statement.  Any help will be appreciated.


For a small consulting firm, is it appropriate to use CEO or Managing Director as the owner of the business?


LAN suddenly won't connect for no reason

My sister and I have been playing Minecraft LAN together easily for the last six months. And then suddenly a week ago, it just stopped working. Anytime we try to connect, we get the message: "Connection timed out; no further information."  We don't know what has happened. It was working fine, until it wasn't. I've looked at over 20 different forums and help sites, and I've even tried just trying out my own solutions. Nothing has worked. We're on the same network, in the same room, different player names, Java can get through our firewall, we're on the same version, we're both playing vanilla Minecraft, and we don't know what's gone wrong. All of the forums I've looked at have all just been stuff like "Me too!" or "Have you solved it yet?" or "Woopsie! It couldn't get through our firewall! Thanks!"... Nothing useful to our situation.


i'm not a techie, so I don't want to convert another phone.  I want to buy an "off-the-shelf", ready-to-go, fully supported ubuntu superphone.  where/when can i buy a native ubuntu superphone?


How to extract string within a string in a vector string

Imagine a code like this:  vector<string> lsLineNumbers;     lsLineNumbers.push_back("9, 0xbaadf00d, 3, 4");     lsLineNumbers.push_back("0xcoffee99, 4, 7, 1, 3, 5, 0xdeadbeef, 78");   When you look in the debugger it looks like string array lsLineNumbers[0] = "9, 0xbaadf00d, 3, 4" and lsLineNumbers[1] = "0xcoffee99, 4, 7, 1, 3, 5, 0xdeadbeef, 78"  How to extract these number strings out so that I can do string to integer conversion? I can do it manually but I am sure there is a function for this. I would imagine a something like this ...  for (i = 0; i < lsLineNumbers.size(); i++) [     while((str = getstring(lsLineNumbers[0])) != '\0') {         num = _atoi64(str);         cout << num;     } }


Change figure size and figure format in matplotlib

I  want to obtain fig1 exactly of 4 by 3 inch sized, and in tiff format correcting the program below: import matplotlib.pyplot as plt  list1 = [3,4,5,6,9,12] list2 = [8,12,14,15,17,20]  plt.plot(list1, list2) plt.savefig('fig1.png', dpi = 300) plt.close()


$$\frac{x}{\sqrt{y}}+\frac{y}{\sqrt{x}}\geq\sqrt{x}+\sqrt{y}$$ where $x,y>0$   How should I approach this?


A follow up to this question:    For this 3-tuple: (a, b, c)...  Would it be {{a}, {a, b}, {a, b, c}}?


What could cause the Hot Corners to become inactive?

In System Preferences under Desktop & Screen Saver → Hot Corners I set up ‘Put Display to Sleep’ at one of the corners.  Occasionally, moving the cursor to that corner results in.. nothing. Sometimes all four corners become inactive in this way; at other times it's only the "display to sleep" corner that is inactive and the others (Launchpad, ..) function normally.  How do I debug a problem like this? What might be the cause? The problem disappears eventually on its own, possibly after closing some app (I use Terminal, Emacs, and Firefox/Chrome almost exclusively, but I have been unable to associate the problem with any application by closing it and hitting a corner).


Injective function from reals to irrationals?

Is there a known "standard" injective function $f: \mathbb{R} \to \mathbb{R} \setminus \mathbb{Q}$? Or actually any injective function, doesn't have to be "standard/simple."


I have an electric stove with two sizes of burners.  What is the general temperature in Fahrenheit when the small burners are on medium?


Why can't photons have a mass? Could you explain this to me in a short and mathematical way?


complex conjugates of holomorphic functions

I came across this question whilst doing some research into complex analysis, and I just can't see what to do!  Let $f(z)$ be a holomorphic function on $\mathbb{C}$. Show that $\overline{f(\overline{z})}$ is holomorphic, whilst $f(\overline{z})$ is holomorphic if and only if $f(z)$ is constant.  I know that holomorphic means that the function is differentiable everywhere, and I need to apply the Cauchy-Riemann equations somehow, but I'm not sure how to approach this.


The model has a problem in predicting since the data was not balanced first I used SMOTE for balancing. I have used some other techniques to balance the data like under sampling and performing upper and under sampling together. But the results are almost same. I have selected features using PCA. from sklearn.linear_model import LogisticRegression lr=LogisticRegression(penalty='l1',solver='liblinear',warm_start=True,random_state=109,C=0.9) lr.fit(xtrain_sm,ytrain_sm) pred_lr=lr.predict(pca_test) from sklearn.metrics import accuracy_score,confusion_matrix,classification_report accuracy_lr=round((accuracy_score(ytest,pred_lr)*100),2) print("accuracy : {}".format(accuracy_lr))  This is my classification report : classification_report      precision    recall  f1-score   support             0       0.92      0.61      0.73     17281            1       0.15      0.58      0.24      2079      accuracy                           0.61     19360    macro avg       0.54      0.59      0.49     19360 weighted avg       0.84      0.61      0.68     19360  Second thing I tried was to use Lasso Regression for feature selection but the results are not good. over=SMOTE(sampling_strategy=0.97) under=RandomUnderSampler(sampling_strategy=0.99) steps = [('o', over), ('u', under)] pipeline = Pipeline(steps=steps) xsmote,ysmote=pipeline.fit_resample(xtrain_select,ytrain) counter = Counter(y_smote) print("value after applying SMOTE") print(counter)  Result of Random forest:     precision    recall  f1-score   support             0       0.89      1.00      0.94     25915            1       0.38      0.02      0.04      3125      accuracy                           0.89     29040    macro avg       0.64      0.51      0.49     29040 weighted avg       0.84      0.89      0.84     29040  Can someone suggest me how to proceed with the issue? Also the diagonal values of confusion matrix are not high. array([[25803,   112],        [ 3061,    64]])


How to translate analog inputs at [-15,+15V] to [0,+3.3V] without ±15V rails?

Title says it all, but to provide some context: the goal here is to design a 12-channels ADC system. Input signals varies between -15 and +15V. The acquisition system will probably be a mid/large arduino, but this is not a constraint.  Constraints:   High input impedance (downscaling through resistor networks is excluded) Small footprint (once 12x count taken into consideration), low part count. Trying to keep this as simple as possible to assemble for a hobbyist Only supplies currently present: +3.3V (microcontroller), +5V (USB charger), +12-14V "automotive", non-regulated. Using an 12-to-1 I2C multiplexer as a first stage is an option, and this could free a lot of space, but this is not my preferred option   Exotic ICs easily sourced from major suppliers are fair game.  Goal is ~20 acquisitions per second, with acquisitions on the various channels as synchronous as possible. Accuracy requirement is low: +/- 50mV (on source) would do, in line with an 10-12bit ADC.  I've tried weird configurations with op-amp in summing configuration, but I'm out of ideas.  Thanks


How to create substrings of a string, as each substring is length of an given integer in python?

I have string "Return now" and I have a integer n that changes every time. Suppose that n = 2 I need to slice my string to sub-strings which has length of n. It should give: "Re" "tu" "rn" " n" "ow"  Suppose that n=3 It should give: "Ret" "urn" "now"  As you can see above if one of the words length doesn't equal to n it should add " "(space) on the left side of word for sub-string. How can I slice my string like that?


A differential equation is  if a numerical scheme requires a very small time-step in order to be stable for that equation. However I don't understand why it is called stiff (sometimes rigid). Even the wikipedia page says it's more of a phenomenon than a mathematically definable property. One characterization is the stiffness ratio, defined on the wikipedia page as $$ \frac{|Re\bar{\lambda}|}{|Re\underline{\lambda}|}$$ where I think $\bar{\lambda}$ and $\underline{\lambda}$ refer to the eigenvalues with maximum and minimum real parts. So why is it called this way? I don't know how to interpret this stiffness ratio. I was thinking of stiff as similar to "stringent" or "demanding" as a stiff person would be, which makes sense for the "requiring a small time step" definition. How is the requirement of a small time-step related to the stiffness ratio?


What are the interior and boundary of $\Bbb R^2 - \{(x,sin(1/x))|x>0\}$ in $\Bbb R^2$?

In $\Bbb R^2$, is the interior of $\Bbb R^2 - \{(x,sin(1/x))|x>0\}$ itself? The curve is continuous on $(0,\infty)$ so its graph is closed, and hence the set is open. Moreover, its boundary is $\{(x,sin(1/x))|x>0\}$.  Am I correct?


I have a small table of 10 cities (in one table) that I am snapping to the nearest road (in another table) with the following select and storing the table snapped_cities:  Select b.id, ST_Closestpoint(ST_Collect(a.geom), b.geom) as geom into snapped_cities from roads a inner join cities b on ST_Dwithin(a.geom, b.geom, 1000) group by b.id;   I would however like to have road ids and not just the geom (a.id above). How do I modify the select above to get these?  I use postgresql 9.2 and postgis 2.0  thanks,


Why doesn't the object fall into the other object?

I want my small object to fall inside the shell of the larger sculpture. Why does it just hit the top plane of the object instead? Thanks!


I came across  article discussing why the double-check locking paradigm is broken in Java. Is the paradigm valid for .NET (in particular, C#), if variables are declared volatile?


What sets the size of tmpfs? What happens when its full?

What sets the size of the tmpfs? (On my machine it resides in /dev/shm) I can see its entry in /etc/fstab, but no notation of its size. When checking with df -h, it seems to be half the size of the physical memory installed in the system. Is this the default behavior?  Also, what happens if it gets full? Does it expand dynamically forcing other running programs into swap? Does tmpfs itself moves into swap partition?   Finally, what takes priority into the memory tmpfs or applications? i.e., if I have tmpfs sufficiently full (like 40% of the physical memory) and I have programs that requires 70% of the physical memory, which one gets the priority?


I rendered my youtube intro, but, there is no audio. How can I get blender to output a video with audio?


How does the solar sailing concept work?

Wikipedia describes  as      a form of spacecraft propulsion using a combination of light and high speed ejected gasses from a star to push large ultra-thin mirrors to high speeds.   I understand the part where ejected gasses bump into the sail pushing the spacecraft. On the other hand, I don't understand how light can do this, since light has no mass.  How does that work? Does this mean that if I have a mirror balancing on a needle I would be able to push it over with my flashlight?


Where is the known_hosts file for OpenSSH for Windows?

One of the servers I frequently log into via SSH has changed it's IP address. So, now I'm getting man in the middle attack warnings when I try to use SSH via Windows Powershell and OpenSSH for Windows.   On a linux machine, I would just remove the offending line from ~/.ssh/known_hosts. But, the ~/.ssh directory seems to be empty.  Where is the known_hosts file for Powershell/OpenSSH? I've checked in C:\Program Files\OpenSSH\home\anschauung\.ssh, but that folder is empty as well.


I'm using PiTiVi to edit a long lecture, and I'd like to split it into manageable chunks, then rearrange the pieces. However, I don't see a good way to do that in PiTiVi; apparently, I would have to cut a clip out, discard everything else, and save the clip for each clip I want to extract. Is there an Ubuntu application that's designed to slice videos into clips, or an application that can do it well?


I've got a problem in beamer. When using the fragile option on a frame, the compilation does not work.  For instance:   \documentclass{beamer}  \begin{document}   \begin{frame}[fragile]        Hello World    \end{frame}  \end{document}   I get the following error message:   File ended while scanning use of \next   Do you know why ?  I tried with miktex and Texlive, on windows and Mac.  Many thanks for your help,  Best,  Nicolas


Can macOS Mojave run 64-bit version of Adobe CS6?

I have ordered a new 27" iMac with macOS Mojave. I use 64-bit version of Adobe CS6.  Will macOS Mojave run it?


Ubuntu don't recognize windows7 partitions

I have a MacBookPro9,2 and I have installed windows7 64bits:   "C" partition: Windows7 64bits; "D" partition: NTFS for Data; Free space to install Ubuntu 14.04;   The problem is when I try to install Ubuntu, I am surprised that the hard disk is all free (partitions "C" and "D" don't appear).  I have also tried with Ubuntu 10.10 and I have the same problem.  Thanks for your response!


Mapping "Caps Lock" function to some key, after remapping "Caps Lock" key

In the spirit of , if I've remapped the Caps Lock key itself to be the Win key, can I somehow map some key or combination to the "Caps Lock" functionality? In case I ever wanted to actually lock caps again? I think Scroll Lock or Ctrl + Esc would be great.  I'd like to be able to do this via the registry (see link above), as opposed to installing something. I understand that there are     , but I don't see one suggesting a registry or app-free solution.


Syntax for including header files in C files

I haven’t written much C code, but for a  I am writing to interface with , I needed to write some C code.  My question is about the syntax to include header files in C. I have seen three different variants in other C code that uses Harfbuzz  Variant 1  #include <hb.h>  Variant 2  #include "hb.h"  Variant 3  #include "harfbuzz/hb.h"  My question is – what is the most appropriate/correct/cross-compatible way to specify header files, when I am writing C code.


Group_concat MySQL function's equivalent in MS-SQL SERVER

I am looking for a function same  of mysql in T-SQL(SQL SERVER) or some functionality


Set Android device default install location to external SD card

I have Samsung GalaxyS2. Is there a way to set the default install location to SD card of all downloaded apps from play store.


I know there are a lot of threads on travel photography, I read some, but found that most are out of date, however, manufacturers kept innovating, and that starts to confuse a lot of newbies like me.  I'm going on a trip to Japan soon, and would like your advice, on which equipment to take with me, ideally I'd like to take at most two lenses with me. Let's start with what I already have, as I don't wan't to buy a new lens that overlaps what I already own:   Nikon D5100 The lens kit it came with: Nikkor 18-55mm 1:3.5-5.6 Sigma Telephoto/Macro: 70-300mm 1:4-5.6 (No stabilization :S)   I was thinking about buying an all-in-one lens, or a [ultra] wide angle lens as I found myself having trouble shooting the Cattedrale di Santa Maria del Fiore on a past trip.  I did some research, but the Focus aspect of cameras still puzzles me (for me it's just a matter of how many planes one can shoot) so I would need some advice choosing between the lenses below, or possibly other lens brands/types that you would recommend for traveling (I can go up to $500, but would like something on the $350 range)      It doesn't have to be Sigma, but the prices are good AFAIK, and the quality of the one I already have make me feel safe buying this brand.


What is the classic mode of snap, and why do some snaps not install without it (e.g. MS Visual Studio)?

I tried to install MS Visual Studio Code as snap on Ubuntu 16.04 with the following command:  sudo snap install vscode   but I've got the following error:  error: This revision of snap "vscode" was published using classic confinement and thus may perform        arbitrary system changes outside of the security sandbox that snaps are usually confined to,        which put your system at risk.         If you understand and want to proceed repeat the command including --classic.   I'd like to know what does --classic flag do (not just man page explanation) and why did I get the previous error while I was installing Visual Studio Code.


How to name the supreme power in the universe, in front of various people who believe there is one?

Even in writing this question, I have been deeply embarrassed : should I capitalize some words ?  Although not a believer myself, I wish to perturb nobody, whatever his / her faith could be : my position is "as long as they are happy with their creed, and don't try to convert anyone by force, should they have gained enough power for it, it's all the best for everyone, why should I bother ?".  The problem arises when I have to address several persons of different or unknown creeds : some have specific names, some others resent as a blasphemy to even mention a name. And I heard that there are 700 different Christian denominations in the USA alone, and how many rules apply, with all the non-Christian others ? And lately, that the word used by Muslims should not be used by any non-Muslim ...  In the USA, "in God we trust" is written even on more or less dirty banknotes ; in the UK, you utter the word only in church or for taking an oath. In French "Dieu sait où il est !" means "Nobody knows where he is is", it's absolutely innocent, an atheist could say that, just a way of speaking. Try to translate this word by word ! Some eyebrows would raise.  Have you a global, general solution ? Thank you.


How do you draw a dative bond with chemfig?

How do you draw a dative / coordinate bond with chemfig? I would like to have the bond to appear as an arrow.


I have some e-books in PDF and Kindle, but the font is too small to read on it. I want to make fonts larger in PDF files so that the pictures and other stuff in it is unchanged (therefore I cannot use Calibre to convert it to another format).   Is there any editor for Ubuntu that can manage to change font size in PDF files?


Shortcut to switch  between Analog Stereo output & HDMI audio output

To switch to HDMI audio output (of monitor) and back to normal audio output from system audio jack (for headphones, as my monitor doesn't have audio out), I find myself opening up sound preferences and selecting the right channel everytime. Is there any way I can create a toggle button in the panel or assign some shortcut key to toggle since I do the switching so often.   :aplay -l  **** List of PLAYBACK Hardware Devices **** card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]   Subdevices: 1/1   Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 3: HDMI 0 [HDMI 0]   Subdevices: 0/1   Subdevice #0: subdevice #0 card 0: Intel [HDA Intel], device 7: STAC92xx Digital [STAC92xx Digital]   Subdevices: 1/1   Subdevice #0: subdevice #0


Generating DLL assembly dynamically at run time

Currently I have some code that is being generated dynamically.  In other words, a C# .cs file is created dynamically by the program, and the intention is to include this C# file in another project.  The challenge is that I would like to generate a .DLL file instead of generating a C# .cs file so that it could be referenced by any kind of .NET application (not only C#) and therefore be more useful.


Created a flow in the sandbox to capture a survey.  I have enabled the ability to Pause the flow and added the component to Home page.   All the screens for the flow is complete and when I test run below 2 issues are found.  1. In the last screen I do not find the Finish Button. There is a record update after last screen. When I add a screen after record update It shows the finish screen But if click the previous button present there it moves to the first and create a new record. Is there any possibility to finish without going on the previous screens   When I resume a Paused flow, after clicking on the last screen, instead of redirected to the Account page, the flow is restarting. Appreciate your help.   On pause going to first screen is normal functionality , Is there any modification that can be done.


I was using  and my opponent has a . I attacked Sylvanas, fearing that the Deathrattle will take control of one Hyena. I feel lucky, because it did not happen.  I want to know if there are some general rules of effect precedence.   Has Blizzard published something about this?  Are there articles teaching about precedence?   Please note, I want guidance about effect precedence in general, not just about Deathrattle.


For about a year now, we've used toggle buttons on a couple of segments of our site. We try to be very consistent in our user interfaces, always using the same blue button styles for every clickable button.    However, I've become paranoid of the intuitiveness of this button, realizing that there are two possible trains of thought.     "On is highlighted so it must be turned on"   Which is the default expectation.     "On is clickable, which means I must click it to turn it on"   A fair thought, because to perform an action, one usually clicks a blue button labeled with the action they'll be performing.    This lead to a concept, which addressed by two primary concerns. It removed the fact that the both states had the appearance of buttons, and made the blue button consistent with all our other uses.    It was then suggested to me that "On" and "Off" are more likely to make sense from a non-technical user standpoint. However to label "Off" does not describe an action, making me think it should be prefixed as "Turn Off" and "Turn On" respectively. That is, until I realized the negative connotations to those phrases.    So my question comes down to, what should I put on the button and it's counterpart?   Am I going backwards with this entire thought process by deviating from what is becoming a standard with On/Off toggles?    Update:  Based on the chosen answer bellow, plus a large number of iterations, the following is what I settled on for this use case.     It maintained consistency with other action buttons. Color identification on the state helps quickly determine the status. Strong (active) wording "Running" and "Not Running" help people understand this is the current state over "Enabled" "Disabled" in our testing. Being verbose and explicit on the action button was necessary, some people still assumed "Disable Cron" on a button meant that cron was disabled, even when it said "Running" in green lettering next to it.


Can I import my question from other Stack Exchange site to Stack Overflow?

I had posted a question on  about a wordpress question.I I did't get answer for that. Because the users are less compare to Stack Overflow.   If I put my question on Stack Overflow I think I will get better answers within less time. I think its good idea to ask the question again on Stack Overflow. So I want to import that question to Stack Overflow. Anyway to do that ? Any Ideas?


I need help with this proof. If x $\in$ A ; y $\in$ B and x$\leq$y prove that sup(A)$\leq$inf(B) My attempt was using this: 0 $\lt$ $\epsilon$ sup(A) - $\epsilon$ $\lt$ x $\leq$ sup(A) ; inf(b)  $\leq$ y $\lt$ inf(B) + $\epsilon$ But i end with nothing and i don´t know how to solve this.


What is reasoning behind disallowing edits less than 6 characters

I get that the mods do not want people to abuse the edit system just to rack up the edit counts, but stack overflow is primarily about code. Therefore we must be exact.  I recently came across a post with a missing parenthesis, other than that it was spot on. This may only take someone a few seconds/minutes to find if they copy paste, but why make it hard to correct this.  Maybe a better idea would be to allow edits that are within code tags to be less than 6 char.


Connectedness of A={$(x,y):x \in \mathbb{I}\,$ or$ \, y \in \mathbb{I}$}

i have the following problem about connectedness, prove that in the Euclidean plane  A={$(x,y):x \in \mathbb{I}\,$ or$ \, y \in \mathbb{I}$} is connected  (This is my interpretation of the exercise, since the statement says: “show that the set of points on the plane with at least one irrational coordinate is a connected set in the usual metric.”)  I have tried in several ways, but it causes me a problem, that some of the coordinates have to be irrational


Tunnel an ssh connection through an intermediate machine in a single command

Is there a way, in a single command, to establish a ssh connection from my computer A, through computer B, to computer C, such that I have access to the shell on computer C?  A wrinkle (which seems to rule out simply forwarding the ssh connection using the -L option) is that I have the password to the account on computer B, and the account on computer B is authorized to connect to the account on computer C, but I do not have the password to the account on computer C.


Invalid signature for Kali Linux repositories : "The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository"

I cannot update my Kali Linux, when trying to execute apt-get update I get this error message:  # apt-get update  Get:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease [30.5 kB] Err:1 http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease   The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> Reading package lists... Done W: GPG error: http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease: The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository <devel@kali.org> E: The repository 'http://kali.mirror.garr.it/mirrors/kali kali-rolling InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.   If you need my kernel version:  # uname -a 4.13.0-kali1-amd64 #1 SMP Debian 4.13.10-1kali2 (2017-11-08) x86_64 GNU/Linux   How can I fix this?


I have to make trigger on opportunity whenever new opp is created create a post on account.   my trigger  trigger postOnAcc on Opportunity (after insert) {      List<FeedItem> posts = new List<FeedItem>();  //create a list to hold post      List<Id> oppList=new List<Id>();              //create a list to hold new opportunity     for(Opportunity o:Trigger.new)                  //Iterate for loop on new opportunity     {         oppList.add(o.AccountId);                     //add opportunity account id in opportunity list     }  for(Opportunity opp: [Select id,name ,AccountId from Opportunity where AccountId in:oppList]) //  {      if(opp.AccountId != null){          FeedItem post = new FeedItem();         Post.ParentId = opp.AccountId;         post.body = 'New Opportunity is created with Opportunity Id - '+opp.Id + ' and Opportunity name is equal to - '+opp.Name;         posts.add(post);  //add this post in posts List      }  }  insert posts; }   my test class  @istest private class testclass { static testmethod void testclass() {     Account a=new Account();     a.Name='AK';     insert a;       Opportunity o=new opportunity();     o.Name='AJ';     o.AccountId=a.Id;     insert o;      FeedItem post = new FeedItem();     Post.ParentId = o.AccountId;     post.body = 'New Opportunity is created with Opportunity Id - '+o.Id + ' and Opportunity name is equal to - '+o.Name;     insert post;  } }


How do I scale and rotate around different points in Libgdx?

I'm using a SpriteBatcher to rotate and scale a TextureRegion in libGDX. I'd like to rotate the texture around an origin outside of the region, but have the texture scaled around the region's center.  As far as I'm aware, this has to be performed in one action in the SpriteBatcher.draw() method. The region is scaled to the correct size, but scaled away from the origin.  I could compensate by adjusting the origin location, but is there a better method?


How do I disable the guest user without lightdm?

In versions of ubuntu above 16.04 the default display manager is gdm3. I am attempting to remove the guest user from an ubuntu VM but I don't know how to do it without lightdm. How do I do this? I have tried switching to lightdm but I cannot find the lighdm.conf file, only the lightdm.conf.d file, and it is completely blank. I would really appreciate some help.


When I create 2 arrays of the same contents but different techniques, one acts strange with rows manipulaton


Proving that HK is a subgroup when K is normal

$HK = \{hk: h \in H\text{ and }k \in K\}$  I need to first prove first $e \in HK$. Since $e \in H$ and $e \in K$.  Hence we have $e \cdot e = e \in HK$.  Suppose $hk, h'k' \in HK$.  $hk \cdot (h'k')^{-1} = hkk'^{-1}h'^{-1} = hkh'^{-1}k''^{-1}$   $hkh'^{-1}k''^{-1} = hh'^{-1}k_2k''^{-1} \in HK$.  Hence proved.


Uploading images larger than 4 MB(?) fails ungracefully

Steps to reproduce  Have an image of size at least x on your computer, where x is somewhere between 4088 KB and 4277 KB. (I haven't gone to the trouble of finding the smallest filesize x that triggers this behavior, but I'd imagine it's 4096 or 4097 KB.) Click on the "Image  Ctrl+G" button in the Markdown editor. Select the "From my computer" radio button. Click on "Choose File" and select the image mentioned in step 1. Click on "Add Picture".  What happens  A dialog box pops up that reads "For security reasons, framing is not allowed; click OK to remove the frames."  If you click "OK", and your post contains unsaved work, a "Confirm Navigation" box pops up that reads "You have started writing or editing a post. Are you sure you want to leave this page?", with options "Leave this Page" and "Stay on this Page".  If you click "Leave this Page", you are taken to a very undescriptive error page at . If you click "Stay on this Page", the "Uploading" animation on the "Add Image" box runs forever and does nothing.   If you click "OK", and your post does not contain unsaved work, you are taken to a very undescriptive error page at at . If you cancel out of the dialog box, the "Uploading" animation on the "Add Image" box runs forever and does nothing.    What should happen The user should be shown some sort of useful error message like "You cannot upload images larger than x kilobytes in size", and the "Uploading" animation shouldn't spin forever. (Also, the warning about frames and security looks bizarre if you don't know what's going on.) Sites tested  MSO SO Anime.SE


I've been using Ubuntu for a few years now, but I just installed Version 16.04, and I've been having a lot of issues. I'm not a command line expert, but I tried to install some software last night, and it is creating issues (and also not working properly).   When I run sudo apt-get -f install, I see the following message:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following additional packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody Suggested packages:   lua-zlib lua-dbi-postgresql lua-dbi-mysql lua-dbi-sqlite3 The following packages will be REMOVED:   jitsi-meet-tokens The following NEW packages will be installed:   lua-event lua-expat lua-filesystem lua-sec lua-socket lua5.1 prosody 0 upgraded, 7 newly installed, 1 to remove and 22 not upgraded. 3 not fully installed or removed. Need to get 0 B/413 kB of archives. After this operation, 2,296 kB of additional disk space will be used. Do you want to continue? [Y/n] Y (Reading database ... 176266 files and directories currently installed.) Removing jitsi-meet-tokens (1.0.962-1) ... dpkg: error processing package jitsi-meet-tokens (--remove):  subprocess installed post-removal script returned error exit status 10 Errors were encountered while processing:  jitsi-meet-tokens E: Sub-process /usr/bin/dpkg returned an error code (1)   Can someone help me figure out what I need to do to get this resolved? I'm fine with deleting jitsi, but I'm not sure if that will correct the problem.   Currently there is a red circle with a line through it in the upper right corner that indicates there may be installed packages with unmet dependencies.


I downloaded deb-creator-i386 and it seemed to install. It is supposed to be a GUI for compiling and packaging. After install it says in order to run or execute the program or app, I have to do that with a command in terminal. Tried use ./.  Did not work. I am using Lubuntu 16.04.


How accurate is System.Diagnostics.Stopwatch? I am trying to do some metrics for different code paths and I need it to be exact.  Should I be using stopwatch or is there another solution that is more accurate.  I have been told that sometimes stopwatch gives incorrect information.


Are zombie processes something I should be concerned about?

I run a server. Should I be concerned about zombie processes? Do they consume any system resources (RAM, process table entry, etc.) that I should be concerned about?


Mathematical method to minimize weighted interest rate on a set of student loans for a given payment?

See image attached. I graduated back in May. Even though my loans are in forbearance right now due to COVID and I'm still in my grace period for payments, I wanted to get a head start on figuring out the best way to pay them down in terms of minimizing my weighted average interest rate for a given payment. Is it just to aim for the highest interest rates regardless of total balance outstanding? Looking for most mathematically efficient method. Thanks.


How to export greek characters to Excel from MySQL in PHP

I have the above data in MySQL and I am trying to export them to Excel using:  $Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password) or die("Couldn't connect to MySQL:
" . mysql_error() . "
" . mysql_errno());  //select database    $Db = @mysql_select_db($DB_DBName, $Connect) or die("Couldn't select database:
" . mysql_error(). "
" . mysql_errno());     //iso-8859-7  mysql_query("SET NAMES 'iso-8859-7'", $Connect); mysql_query("SET CHARACTER SET 'iso-8859-7'", $Connect);  //execute query  $sql = "Select * from $DB_TBLName"; $result = @mysql_query($sql,$Connect) or die("Couldn't execute query:
" . mysql_error(). "
" . mysql_errno());      $file_ending = "xls"; //header info for browser //header("Content-Type: application/xls; charset=utf-8");   header("Content-Type: application/vnd.ms-excel;charset=iso-8859-7");   header("Content-Encoding: iso-8859-7");   //header("Content-Disposition: attachment; filename=$filename.xls");   header("Content-Disposition: attachment; filename=$filename.xls");   header("Pragma: no-cache");  header("Expires: 0");  /*******Start of Formatting for Excel*******/    //define separator (defines columns in excel & tabs in word) $sep = "\t"; //tabbed character //start of printing column names as names of MySQL fields for ($i = 0; $i < mysql_num_fields($result); $i++) { echo mysql_field_name($result,$i) . "\t"; } print("\n");     //end of printing column names   //start while loop to get data     while($row = mysql_fetch_row($result))     {         $schema_insert = "";         for($j=0; $j<mysql_num_fields($result);$j++)         {             if(!isset($row[$j]))                 $schema_insert .= "NULL".$sep;             elseif ($row[$j] != "")                 $schema_insert .= "$row[$j]".$sep;             else                 $schema_insert .= "".$sep;         }         $schema_insert = str_replace($sep."$", "", $schema_insert);         $schema_insert = preg_replace("/\r\n|\n\r|\n|\r/", " ", $schema_insert);         $schema_insert .= "\t";         print(trim($schema_insert));         print "\n";     }   All greek characters appear like ?????? when exported to Excel. I have tried several methods but they did not work.  Any answers are welcomed


Java - NullPointerException with initialized ArrayList

I have a custom class "CarSharing", with an attribute "availableCars". An ArrayList availableCars is inizialized in the constuctor . When I create a CarSharing object and try to call the ArrayList in a method I get a java.lang.NullPointerException.   public class CarSharing {        private ArrayList<Car> availableCars;    public CarSharing() {     ArrayList<Car> availableCars = new ArrayList<Car>();       // I can use the List inside of the constructor    }        public void addAvailableCar(Car newCar) {      availableCars.add(newCar);  // Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at CarSharing.addVerfuegbaresAuto(CarSharing.java:12)   }   Any Ideas? Thank you.


I have been issued an overlapping Schengen Visa, would there be an issue?

I have an existing used Schengen visa from the 21-July-2015 to 20-July-2016 issued by Belgium. I recently applied for a Schengen visa from Germany & was issued a visa from the 19-July-2016 to 18-July-2017. As you can see, there's an overlap of 19th & 20th of June. Would this cause an issue when I'm traveling? The agents at VFS assured me that this wouldn't be an issue but can someone please confirm?


Use default values for generic function parameters

Is there a way to limit typing of T to be able to add default values to the function parameters?  public class Identity<T> {     public readonly T Seed;     public readonly T Increment;      public Identity(T seed = 1, T increment = 1)     {         Seed = seed;         Increment = increment;     } }   It is the T seed = 1 that i want to be able to do and maybe limit the T to non decimal numeric types like short, int, long...


Missing entry stamp into USA. Indian Passport with F1 Visa

I Travelled from DEL to EWR in Jan 2021. After Immigration in EWR, I found out that my passport is not stamped. I cross-checked the i-94 and It was updated. I'm sure that I won't face any issues in USA immigration in the future because of the valid i94 and travel records. But I'm worried about Indian Immigration. Can anyone please let me know should I get a stamped or will I face extra scrutiny with Indian Immigration? It would be really helpful to get input from people who have undergone this situation. Thank you


What was the Historical Precursor for .NET Attributes?

What languages or platforms influenced the .NET 1.0 Team to build-in the concept of Attributes from the very start? Was this an Aspect-Oriented thing? Serialization? or something else? I was still in VB6-land at this time, and never used any of the pre-1.0 .NET versions.


Change the site configuration file to block listing out files in the directory - apache2 + Ubuntu

When I access a directory hosted by Apache that does not have a index.php file or similar, Apache lists the content of the directory for me. How can I block this? I'm using Apache2 on Ubuntu.


Looking for a story title- about dimension traveling spaceship that shows alternate versions of the pilot

My girlfriend has been looking for this story for some time now, as it was one of her favorites from her childhood. She says it has a pilot of a spaceship which travels by dimensional jumping, and every time they jump, he sees alternate versions of himself. He begins to see a happier version of himself, and doubts his choices in life. Anyone have any ideas?


Health decreasing for no apparent reason

I am playing Dragonborn DLC. I am currently going through one of the black books quests and even though I am not fighting my health bar keeps going down. I can heal back up to full again but it keeps disappearing. If I do not heal I will die in about 30 seconds.  I have no disease or nothing is visible anyway, no clue as to what's wrong. I can leave the black book quest or fast travel to a different location or rest for 24 hours but still the health disappears.


Identifying Duplicate records from List and make separate list for duplicates and non duplicates

I have a use case where i have a list of orderItems which contains duplicates let us say: OrderItem:{Product2__c=01t6F0000CCXXXXXX, Id=8026F00000EqzYYYYY},  OrderItem:{Product2__c=01t6F00000CCXXXXXX, Id=8026F00000Eqzba2AB},  OrderItem:{Product2__c=01t6F00000CCXXXXXX, Id=8026F00000Eqrbs3AB},  OrderItem:{Product2__c=01t6F000009kSSSSSS, Id=8026F00000Eqzx1RRR}   here first 3 orderitems are duplicate based on the field Product2__c so i want to make a seperate list of id's for duplicate records and unique records i have tried n implemented the below code but its not working as expected.  List<OrderItem> ListOI = new List<OrderItem>();
 Set<String> DuplicateId = new Set<String>();
 List<OrderItem> Item = [Select Id,Product2__c from Orderitem where OrderId =:OrderMap.keySet()];
         for(OrderItem itemm : Item)          {              if(!DuplicateId.contains(itemm.Product2__c ))              {                  ListOI.add(itemm);                  DuplicateId.add(itemm.Id);              } else {                  DuplicateId.add(itemm.Id);              }          }   can any one suggest me how to implement this in proper way


How to retrieve data from dead hard disc

i have a hard disc that is completely dead. dead in the sense the hard disc is not even detecting in computer or neither starting. i had data in that hard disc which is important. How can i take retrieve the data from that drive?


Import a video in a chroma key mask in a video

I try to put a video in a "chroma key" mask in another video. How can I make the size of the video as big as the mask? It is always full sized like the normal video. (Pong shall be in the monitor in the middle :)  Regards, Michael


60s/70s movie with buggies and time-shifting protagonist

I remember as a kid watching something on TV that looked like it was filmed in the late ‘60s or ‘70s. I can’t remember if it was a series or a movie (although I think it may have been a movie) and can only remember a particular scene. There was a chase in tiny electric buggies. The protagonist was chased to an open, urban space. The pursuer then started shooting at the protagonist, but the protagonist seemed to be able to jump time somehow so that the person shooting always missed. They eventually shot away from the protagonist and ended up wounding him in the protagonist’s timeline, and he slumped back (in his buggy I think) with a bullet wound in his chest. I appreciate it’s not a lot of to go on, but it’s just one of those random things that’s stuck in my head since childhood and annoyed me periodically since!


Access violation reading location 0xCDCDCDCD with classes

I have been writing this code and I hit a wall with this access violation. I believed it may have been an issue with running out of the array in the for loop for(int i = 0; i <= this->lastIndex; i++), but I can't figure out what to change in there(if anything). Simplified version of code:  Test.h  class Test { public:     void setID(string ID);     void setName(string name);      virtual void print() = 0;      string getID();     string getName();      Test();     Test(string ID, string name);     ~Test();  protected:     string ID;     string name;   Test.cpp  #include "Test.h" Test::Test() {     this->ID = "";     this->name = ""; }  Test::Test(string ID, string name) {     this->ID = ID;     this->name = name; }  string getID() {     return ID; } string getName() {     return name; } void Test::setID(string ID) {     this->ID; } void Test::setName(string name) {    this->name; }  void Test::print() {     cout << ID;     cout << name; } Test::~Test() {}   RosterTest.h  #include "Test.h"  class RosterTest { private:     int lastIndex;     int capacity;     Test** tests; public:     RosterTest();     RosterTest(int capacity);      void parseThenAdd(string datarow);     void print_All();      ~RosterTest(); }   RosterTest.cpp  #include "RosterTest.h"  RosterTest::RosterTest() {     this->capacity = 0;     this->lastIndex = -1;     this->tests= nullptr; } RosterTest::RosterTest(int capacity) {     this->capacity = capacity;     this->lastIndex = -1;     this->tests= new Test*[capacity]; }  void RosterTests::parseThenAdd(string row) {     if(lastIndex < capacity)     {         lastIndex++;          int rhs = row.find(",");         string ID = row.substr(0, rhs);          int lhs = rhs + 1;         int rhs = row.find(",",lhs);         string name = row.substr(lhs, row.length() - lhs);      } }   void RosterTest::print_All() {     for(int i = 0; i <= this->lastIndex; i++)     {         (this->tests)[i]->print(); // ERROR HERE     } } RosterTest::~RosterTest() {     for(int i = 0; i <=lastIndex; i++)     {         delete this->tests[i];     }     delete tests; }   main.cpp  #include "RosterTest.h"  int main() {     const int numTests= 2;     string testData[numTests] =     {         "test1,name1",         "test2,name2"     };      RosterTest* ros = new RosterTest(numTests);     for (int i = 0; i < numTests; i++);     {         ros->parseThenAdd(testData[i])     }     ros->print_All(); //ERROR HERE   Where I marked //ERROR HERE is where the errors are located as far as I know, using print_All() fails on the first loop and I'm unsure why.


What is the best way to solve a limit of $\log(x)^{\log(x)}$?

I have this function which I need to calculate the limit of $\log(x)^{\log(x)}$ as $x$ approaches 1. While my mind tells me that with logic, $0+^0+$ equals to number to the power of 0, therefore = 1, but I don't know how to prove it.


Show my communities in hamburger menu when browsing a unjoined community

In the desktop view, when we browse a site which we are not a member of, we are shown a list of sites and the reputation and badges shown on it when we click on the hamburger.      This doesn't happen on mobile web.    Joined communities are not shown on mobile web. They show just like when we are logged out. It is difficult back to communities which we are members of.  So, add a list of joined communities list on mobile web like it is on desktop site.


Create a synthesis map ( e.g. climatic vulnerability) in QGIS

My final goal is to create a synthesis map of climatic vulnerabilities composed by different thematic variable with different weights.   I would like to ask for support for the following issues:   For each thematic map  I am creating a vector map with different classes. How to convert this vector map to a raster map, keeping the classification? The second step would be to calculate a raster map as result of a weighted sum of the thematic maps previously generated. How can I do this in QGIS?


Find the value of $ \lim_{n \rightarrow \infty} \sum_{k=1}^{n} \left( \frac{k}{n^2}\right )^{\frac{k}{n^2} +1} $

Compute limit of sum : $$ \lim_{n \rightarrow \infty} \sum_{k=1}^{n} \left( \frac{k}{n^2} \right)^{\dfrac{k}{n^2} +1} $$ My Attempt : $$\Big( \dfrac{k}{n^2} \Big)^{\frac{k}{n^2} +1} = e^{\Big( \frac{k}{n^2} +1 \Big) \log\Big(\frac{k}{n^2}\Big)} = \Big( e^{\Big( \frac{k}{n^2} +1 \Big) }\Big)^{\log\Big(\frac{k}{n^2}\Big)} = \dfrac{1}{n} \cdot \dfrac{k}{n} \Big( e^{\frac{k}{n^2}} \Big)^{\log (\frac{k}{n^2})}  $$ I am unable to move ahead, please help.


What can I do if some moderators delete my comments improperly?

There are many good moderators but the others just delete comments without any reason. At least, they don't show reasons why they delete them. It's quite unfair. Is there any rule to handle this problem?  I will add my experience to help your understanding. One day, I made a comment that is useful. A moderator deleted it without any mention. So I had a chat with the moderator. He said "I'm so sorry. I didn't mean to delete~." It was his mistake. I mean, there is no tools to control moderator's faults. I'm asking if there is that kinds of tools in this site. Or else, I think we need that kinds of tool to penalize moderator's fault.


Create unique cartesian product from a list

How do I create a cartesian product of a list itself with unique elements? For example, lists = ['a', 'b', 'c'], and I want to create [['a', 'b'], ['a','c'], ['b','c']].


What is the difference between the Circle-K and Lawson Power Cube?

Both of these Power Cubes have the same description:     Enhanced Power Cube that provides large XM storage and automatically   recharges Scanner until exhausted.   My Questions:   Is there any difference between these two power cubes? How much Power is initially provided? Is the "automatically recharged" XM limited by time or by XM amount?


I've read that the faster you travel in space, the slower you travel in time. And when you reach the speed of light (which we won't be able to) time will stand still.  So when light travels at the speed of light, it doesn't move in time, so no time will have past when the light arrives at it's "destination". Right?


Is it possible to update a SQL column without actually defining the specific name in the query, but rather using a variable passed through function arguments?   Example  public function ScrubUserContent($db, $DBColunm, $UID, $type) {     if($type == 1){         mysqli_query($db, "UPDATE Users SET $DBColunm = '[ Content Deleted ]' WHERE UserID='$UID'"); // Type 1 updates strings     } elseif($type == 2) {         mysqli_query($db, "UPDATE Users SET $DBColunm = 'default.png' WHERE UserID='$UID'"); // Type 2 updates images     } else {         mysqli_query($db, "UPDATE Users SET $DBColunm = 'Missing Content' WHERE UserID='$UID'"); // Type 3 updates any other content     } }   I know this is possible with PDO & Dynamic SQL, but are there any alternatives?


My goal is to be become a physicist but I am concerned about my math skills (i am pretty decent in maths) ,i know the computational part but I'm not good in geometric or intuitive part of it,so i decided that i must be thorough in both the numbers and the concepts that govern them ,but I don't know where to start,like from which chapter do i need to understand in an intuitive way,can someone suggest a hierarchy/order for learning maths in intuitive way from basics to advanced?,it would be helpful....


Attach every 2 items in an array together

Let's say I have the following code  arr = ["a", "b", "c", "d"...]   I don't know how many items there may be, but I know it'll be a multiple of two. How would I go about appending every pair of items together, leaving me with  arr = ["ab", "cd"...]?


how to redirect domain from www to non www?

I have wabsite called vdo24.com ,it works with both www and non-www prefix. but i want redirect to http://vdo24.com from http://www.vdo24.com  i tried many combination in my .htaccess file : but non of this works ,i don't know why ?  1-->> RewriteCond %{HTTP_HOST} !^vdo24\.com [NC]   RewriteRule (.*) http://vdo24.com/$1 [QSA,R=301,L]`  2-->> RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]


Javascript - Should I create methods inside the class constructor or the prototype

Lets say I have a class:  function Dog(name) {     this.name = name;  } Dog.prototype = {     constructor: Dog }   I would like to add some methods to that class, but I'm confused where I should add them, to the constructor itslef, or to the prototype of that class.   for example I can do:    function Dog(name) {         this.name = name;         this.bark = function() {              console.log(this.name + ' barked!');         }     }   Or I can alternatively do this:  function Dog(name) {         this.name = name;      }     Dog.prototype = {         constructor: Dog,         bark: function() {             console.log(this.name + ' barked');         }     }   What are the differences between the 2 options? which one is better? and which situations should I use each one?  Sidenote: I am aware this question is basic enough to likely have duplicates, but I cannot find any simillar posts, maybe I am constructing the question wrong.


How does manual Label Placement in QGIS 1.9 work?

There are a bunch of questions here related to labeling in QGIS, but it's not clear which version they are referring to, and I know this is something that has changed recently. Hopefully it makes sense to start a new question due to the new labeling functionality.  I'm trying to label a road network so that every street is labelled. I have the 'auto' labeling doing a decent job, but it is not placing a label on every street. How can I (with the minimum of effort) keep the existing auto-placed labels (possibly with a few tweaks/manual moves,) but then also go in and manual 'force' missing labels to appear, and position them myself and/or change font size to make them fit?    The new label tools in the toolbar are not very easy to figure out, and the 'pinning' concept is lost on me. Can anyone explain the steps?


"error while loading shared libraries: libopenal.so.1" while installing Drox Operative

I'm trying to install Drox Operative on a laptop I just converted to running Ubuntu, and I'm getting this error whenever I try to run the game:  sudo ./DroxOperative./DroxOperative: error while loading shared libraries: libopenal.so.1: cannot open shared object file: No such file or directory   From what I can tell, this is a fairly common error to run into, but I can't find how to fix it.  What's going on here and how do I fix this? I know I need to install OpenAL, but I've done that already. From what I can gather, I'm getting an error because the game is a 32-bit application, and I installed 64-bit OpenAL. Where can I find the latest version of 32-bit OpenAL


Regular expression for EDU emails with sub domains

I am attempting to create a regular expression for validating edu emails which may or may not have a sub domain. Some schools have emails like "example@hms.harvard.edu" while other schools have emails like "example@stanford.edu". ([0-9]|[a-z]|[A-Z])+@([0-9]|[a-z]|[A-Z])+([0-9]|[a-z]|[A-Z])\.edu$"  This is the current regular expression that I have but I am not well versed in these. I am looking to create an expression that will validate emails with one domain and emails with a subdomain. Any help would be appreciated. Thanks!


Start of a Schengen visa's validity period

If I have a Schengen visa example starting from 1 August can I take a plane leaving my country at 31 July but reach my destination at 1 August or do I have to also ride the plane from my country 1 August?


Why can ALL quadratic equations be solved by the quadratic formula?

In algebra, all quadratic problems can be solved by using the quadratic formula. I read a couple of books, and they told me only HOW and WHEN to use this formula, but they don't tell me WHY I can use it. I have tried to figure it out by proving these two equations are equal, but I can't.  Why can I use $x = \dfrac{-b\pm \sqrt{b^{2} - 4 ac}}{2a}$ to solve all quadratic equations?


Is it possible to add Wikimedia Commons images?

Is it possible to add  images in the questions/answers without uploading them on imgur? Since the images on Wikimedia Commons are free, it's a waste of hard drive space to upload them on imgur just to be able to show them in a SE question. I've recently asked a question where I provided links to two Wikimedia Commons images but I would prefer to directly include them in the question - without uploading them on imgur.  If not, then I would like to place a feature request to allow this.


Using a Smart Object as a mask for another layer?

Let's say I create a complex smart object containing layers, filters, effects, shapelayers, etc.  Then, in the main comp I want to use that smart object to mask another layer/smart object with.  However, I do not want to see the masking smart object itself.  Is there a configuration, such as blend mode, or similar, that lets me do this, without just adding a layer mask and copying over the visible parts?  Basically, I want to let the smart object (the mask) be fully editable, and make it automatically apply as a mask to another layer/smart object, with no manual steps other than editing the smart object.  Note, I am specifically not asking how to make a "clipping mask", by Alt-clicking on the separator line between two layers. I know about this function, but if the layer above (the one being clipped) is transparent, parts of the layer below (the one masking) will be visible. That's what I want to avoid.  Basically, to reproduce an example comp, create two layers by using the rectangular marquee tool, and creating two solid color layers, of different colors:  +==============+ I              I I              I I      +------------+ I      |            | I      |            | I      |            | +======|            |        |            |        +------------+   Then I want to mask the topmost layer so that only that layer is visible, but only the parts masked by the bottom layer, without the bottom layer being visible, like this:         +-------+        |       I        |       I        |       I        +=======+   With a straight clipping mask, I would still see the underlying layer.


Prove that the union of two subspaces of $V$ is a subspace of $V$ if and only if one of the subspaces of $v$ is contained in the other.  May someone please validate this proof:  Let $V_1,V_2$ be two subspaces of $V$. Suppose $V_1 \cup V_2$ is a subspace of $V$. Then if $x_1 \in V_1$ and $x_2 \in V_2$ then we must have $x_1 \in V_1 \cup V_2$ and $x_2 \in V_1 \cup V_2$ so that we must have $x_1+x_2 \in V_1 \cup V_2$. But this by definition means $x_1+x_2 \in V_1$ or $x_1+x_2 \in V_2$. Either way, by existence of additive inverses and closure properties for subspaces we have:  $$(x_1+x_2)+(-x_1) \in  V_1$$  Or  $$(x_1+x_2)+(-x_2) \in V_2$$  By associative/commutative properties we have:  $x_2 \in V_1,  \text{or} ,x_2  \in V_1$  Edit:  Thus we have shown if $x_1 \in V_1$ and $x_2 \in V_2$ then $x_1 \in V_2$ or $x_2 \in V_1$. If $x_1 \in V_2$ for all $x_1 \in V_1$ then we have $V_1 \subseteq V_2$. If $x_2 \in V_1$ for all $x_2 \in V_2$ then $V_2 \subseteq V_1$. In either case we see one subspace is a subset of the other.


Using shapely to scatter points in an equidistant manner around a MultiPolygon in a Box?

I have a box bounded by min_x, min_y, max_x, max_y, I also have a multipolygon = poly contained in that box. I'm trying to equidistantly scatter points throughout that box, outside of that multipolygon, for the eventual purpose of using a modified A* algorithm to find a route between two points. Right now, I can generate points as such: from shapely.geometry import Point x_range = np.linspace(min_y,max_y,round((max_y - min_y)*2.5),False) y_range = np.linspace(min_x,max_x,round((max_x - min_x)*2.5),False) points = [] point_dict = dict() i = 0 for x in x_range:     j = 0     for y in y_range:         p = Point(y,x)         if not poly.contains(p):             points.append(p)             point_dict[i,j] = p         j+=1     i+=1  They're in an x-y grid along the map, but I think a more efficient way to generate points for a path would be to create this grid then add a repulsion factor so they're all pushed away from each other inversely proportional to their distance from one another AND from the multipolygon and the bounding box. Eventually I imagine this would end up in some solid state equilibrium. Right now I maintain a list of reference for each of the 8 nearest points to each point as follows: edge_list = [] for point in point_dict:     for i in [point[0]-1, point[0], point[0]+1,point[0]+2,point[0]-2]:         for j in [point[1]-1, point[1], point[1]+1,point[1]+2,point[1]-2]:             try: #we already excluded points s.t. poly.contains(point)                 if not point_dict[point].distance(point_dict[i,j]) == 0:                     edge_list.append([point, (i,j), point_dict[point].distance(point_dict[i,j])])             except:                 pass             j+=1         i+=1  Right now I use this edge list so that I can construct a graph and run djikstra's algorithm on it. By constraining it to the <= 8 nearest points, I reduce the number of edges that need to be checked foreach point. My problem here is two-fold:  I have little idea how I would accomplish this repulsion addition computationally I don't know how I would maintain a reference for the n-nearest points to each point after the equilibrium is reached.


How to upgrade from Ubuntu Studio 19.04 to 19.10 or 20.04 now

I want to upgrade from Studio 19.04 to 20.04 but it's not allowed. I've tried to upgrade to 19.10 first but there is no visible way to do it. Help, please


How to know which app is playing a sound?

There are a couple of sounds that my mac makes, which annoy the heck out of me.  However, I don't know which application that's running is making these (perhaps it's the system itself)  Is there a way to identify which app recently caused a sound to play?


Why is $\mathbb{R}^2$ endowed with the taxicab metric isomorphic to the infinity distance model of the cartesian real plane? (Hartshorne exercise 8.9)

My question deals with the following exercise from Hartshorne's Euclid: Geometry and Beyond:     Following our general principles, we say that two models $M,M'$ of our geometry are isomorphic if there exists a 1-to-1 mapping $\phi:M\to M'$ of the set of points of $M$ onto the set of points $M'$, written $\phi(A) = A'$, that sends lines to lines, preserves betweenness, i.e., $A\ast B\ast C$ in M $\iff$ $A'\ast B'\ast C'$ in M', and preserves congruence of line segments, i.e., $AB\cong CD$ in M$ \iff$ $A'B'\cong C'D'$ in $M'$   If $A=(a_1,a_2),B=(b_1,b_2)\in\mathbb{R}^2$, the exercise asks you to first show that $\mathbb{R}^2$ endowed with the taxicab metric: $$d(A,B)=|a_1-b_1|+|a_2-b_2|$$ Is isomorphic to the model of $\mathbb{R}^2$ endowed with the infinity distance: $$d(A,B)=sup\{|a_1-b_1|,|a_2-b_2|\}$$ How can we proceed in order to prove these models are isomorphic? How should we describe our isomorphism $\phi:\mathbb{R}^2\to \mathbb{R}^2$? I'm definitely having trouble with sending congruent lines to congruent lines.  The second part of the exercise claims that the taxicab metric model is not isomorphic to that of the standard model, i.e., the cartesian plane $\mathbb{R}^2$ equipped with the usual Euclidean distance. Hartshorne leaves a hint to this exercise: in order to prove two models are not isomorphic, one just has to find a statement which is true in one model but not in the other. I'm thinking, for example, that the line: $$y=x+1$$ Cuts the circle of center the origin $(0,0)$, and radius $1$ in infinitely many points in the taxicab metric model, a property that never holds in the standard model, which should make it clear that both models are not isomorphic. However, the first part still puzzles me, and I can't imagine how to proceed.  Thanks in advance for your time, any comments will be appreciated.


I do find path/to/folder -name *foo.sh  The utility lists the relevant files. However, if I do find path/to/folder -name *foo*  I receive an error: find: paths must precede expression:  Why? What to do?