Attempted Installing Ubuntu on Windows 8.1 UEFI, Confused about booting in UEFI, Legacy Mode

I followed this  to install Ubuntu as dual-boot with Windows 8.1 pre-installed as(UEFI),but I am not able to dual-boot and tried    I first burned an Ubuntu ISO on a blank DVD-R to create the LiveCD. Even with secure boot disabled, when I tried restarting my computer, it never booted to the installation screen, and it just skipped to Windows.  After a lot of skimming, I thought I had to put my computer in Legacy Mode in order to get give my CD/ROM drive priority. I installed Ubuntu and used my existing EFI partition. Ubuntu works, but Windows doesn't, probably because my laptop is stuck in Legacy Mode. I tried switching back to UEFI using boot-repair on the Linux Terminal, and going into Advanced Properties -> Grub Location -> Ticking the checkbox for EFI, but it says I need to be in an EFI session, and now I'm just really lost and confused at what I've all done. I can see my Windows8.1 OS on a partition but I want to dual-boot Windows 8.1 along with Ubuntu?   Did I just brick my computer?


Calculating the gcd of a linear combination

Let $a,b \in \mathbb Z$. I need to calculate the $\mathrm{gcd}$ of a linear combinations of a,b knowing $\mathrm{gcd}(a,b)$.  I know that $a^2 + b^2 = 0 (\mathrm{mod} 4)$ and $5a+7b=2$, I used this info to find that $\mathrm{gcd}(a,b) = 2$ now I am asked to calculate $\mathrm{gcd}(7a+14b, 14a+21b)$. This is as far as I got:   $\mathrm{gcd}(7a+14b, 14a+21b)$ = $\mathrm{gcd}(7(a+2b), 7(2a+3b))$ = $7\cdot\mathrm{gcd}(a+2b, 2a+3b)$


Uniform convergence in a proof of a property of mollifiers in Evans's Partial Differential Equations

Here are some definitions that was taken of PDE Evans book:        Here is a proof of a property of mollifiers:        My (elementary) question is: Why is the convergence uniform on $V$?   Thanks.


What are the differences between 'albeit' and 'although'?

The lexical and direct meaning of albeit seems approximately equal to the meaning of although. I would like to know what the practical differences in usage of the two aforesaid words are in sentence making.


Why do I have segfault in my arm32 assembly program?

I try to write a program in arm assembly, which writes whole char** argv content. In C it would be like so:  #include <stdio.h>  int main(int argc, char** argv) {     for (unsigned int i = 0; argv[i] != 0; i++)         puts(argv[i]);     return 0; }   and I wrote it in assembly like this:   .global main  .data  .bss  .text  .align 4  @r0 = argc @r1 = argv  main:         @prologue         stmfd sp!, {fp, lr}         add fp, sp, #4         sub sp, sp, #8          @i = 0         mov r0, #0         str r0, [fp, #-8]         b loop_begin  loop_content:         bl puts         ldr r0, [fp, #-8]         add r0, r0, #1         str r0, [fp, #-8]  loop_begin:         @r0 = i         ldr r0, [fp, #-8]          @i = i * 4         lsl r0, r0, #2          @r0 = argv + i         add r0, r1, r0          @r3 = argv[i]         ldr r0, [r0]          @argv[i] == 0?         cmp r0, #0          @if arvg[i] != 0 go to ...         bne loop_content          mov r0, #0         sub sp, fp, #4         ldmfd sp!, {fp, lr}         bx lr   but it gives me segfault at           str r0, [fp, #-8]   I have no idea why, do you have any ideas why does it happen?


It seems that when a user’s suggested edit gets rejected they can simply re-suggest it, and given the  of affairs of the suggested review queue the suggested edit is quite likely to be approved (or if not this time, then it will almost certainly be approved if they are persistent).    As an example I saw the following  which was rejected, very shortly after I saw almost the  suggested again, this time it got two approvals.  Should there perhaps be some sort of delay until a user can suggest an edit after their suggestion was rejected for the same post? Perhaps a check can be made how large of a difference there is between the two suggestions (though I’m not sure it’s worth doing just for this, and a delay is probably sufficient)?   I do understand that a user should be able to re-suggest an edit after it was rejected, since after all perhaps they made a better suggestion after seeing that it was rejected, however in cases like these I don’t think that is what is happening.  I did see  saying that after some rejected edits a user cannot suggest any further edits until a week has passed, but as this is clearly not happening here I guess that may have changed since that post.


I saw an article starts with: "A company to launch a new product", in a news paper. I just wonder what does it mean?  Is it a kind of usage of near future? (e.g. is to do something)


By induction showing that $m^3\le2^m$ for $m\ge10$

Show that $m^3\le2^m$ for $m\ge10$  My try:  Base case is true for $m=10$  Inductive Hypothesis: Assume $P(k)$ is true $\implies k^3\le2^k$  Now showing that $P(k+1)$ is true  $(k+1)^3\le2^{k+1}$  $\implies (k+1)^3\le k^3+1+3k^2+3k$  $\le 2^{k+1}+3k^2+3k+1($ from inductive hypothesis$)$  From here I could not proceed.  Can anyone explain how to proceed from here.


The background of this question comes from Pinter's Abstract Algebra, Chapter 27, Exercise J.     Suppose $a(x) \in F[x]$, and $K$ is an extension of $F$. An element $c\in K$ is called a    multiple root of $a(x)$ if $(x-c)^m|a(x)$ for some $m > 1$.       If $x-c$ is a common factor of $a(x)$ and $a'(x)$, then $a(x)$ and $a'(x)$ have a common factor of degree $>1$ in $F[x]$.   Let $a(x) = (x-c)^2q(x) \in K[x]$.  Then $a'(x) = 2(x-c)q(x) + (x-c)^2q'(x)$. Since both $a(x)$ and $a'(x)$ have a common root $c$ in some extension of $F$, they have a common factor $p(x)$ of positive degree in $F[x]$.  Obviously, $\operatorname{deg} p(x) > 1$ if $c\in K$ and $c\not\in F$. However, it seems $\operatorname{deg} p(x)\ge 1$ if $c\in F$.    For example, let $a(x)=(x-1)^2\in\Bbb{Q}[x]$, so $a'(x)=2(x-1)$, and $(x-1)^2|a(x)$. Their common factor is therefore $x-1$ with degree $1$.  Correct?


How to move file(s)/dir to recycle bin in Java instead of deleting it permanently

I am trying to create example of GUI that's delete files and/or directories When user clicks on Button, but I see that files deleted permanently, How to make it moves to recycle bin instead of this    if (File_path.getText().isEmpty()) {         JOptionPane.showMessageDialog(null, "Please select a file or directory", "Info", JOptionPane.INFORMATION_MESSAGE);     } else {         File FileName = new File(File_path.getText());         boolean FileDeleted = FileName.delete();         if (FileDeleted == true) {             JOptionPane.showMessageDialog(null, "File Deleted Successfully", "Info", JOptionPane.INFORMATION_MESSAGE);         } else {             JOptionPane.showMessageDialog(null, "File Not Found", "Info", JOptionPane.INFORMATION_MESSAGE);         }     }


Migrate Sonatype Nexus repo from one machine to another

I am trying to migrate nexus repo. How can I go about it, any pointers?


I want to migrate from windows to Ubuntu, so I decided that I want to install Ubuntu 16.04.  I have a hard drive with 5400 rpm and 16 GB RAM, how big should swap partition be?  I don't know the purpose of swap partition, but I've heard that is a need for hibernate and other stuff.  Thanks in advance for answers!


How to convert a scientific manuscript from LaTeX to Word using Pandoc?

I have a typical scientific manuscript in a LaTeX .tex file, and I need to convert it to MS Word .doc file.  The reason for having to convert to MS Word is I'm submitting the manuscript to an academic journal and they only accept MS Word (I know...)  The manuscript includes title page, figures, tables, equations (inline and in their own align environment), footnotes, bibliography, and an annex.  The tables are in their own separate tables.tex file, which I include using the \include{tables} command.  Most tables take up a whole landscape page, and were generated sing the package pdflscape.  I am using Windows 7 Professional.    My plan is to use pandoc to go from .tex to .odt, open the latter in Libre Office, and convert to .doc.  I have read a related  but it is too general.  Similarly the examples in the Pandoc  are too simple.  I have played around but I am unable to accomplish what I want.  This is surprising since converting a scientific manuscript is probably the most common use case for Pandoc. Here are some sample failures:  Example 1  I open a command line in the project folder, and execute the following:  pandoc -s document.tex -o document.odt   I get this error message:  pandoc: figure1: openFile: does not exist <no such file or directory>   where figure1 is the name of a figure file (e.g. figure1.png) in the project folder referenced in a line as \includegraphics[width=5.8in]{figure1}.  I suspect pandoc expects a .png extension but not sure how to provide it.  Example 2  Next I try .html, and excute the following:  pandoc -s document.tex -o document.html   The program executes fine.  I open HTML file.  Footnotes are there but figures are missing, tables are displayed as LaTeX, bibliography is missing, in-line math displays well, but math in align environment does not, section labels are displayed, and some other minor issues.  So given that mine is probably a typical use case scenario, my question is this: What commands should I use to get the .odt file I want?  I could not find a fully worked out example on the web.    Here is a specific list of errors.  I'll update how I corrected them based on community suggestions:   Figures not rendering.  Solved by adding .png extension to .tex file in \includegraphics command.  Now figures are included but they are huge, with half of each figure outside the page. No bibliography.  Solved. First, I have one huge consolidated Latex .bib file where I keep all my citations.  I manage it using .  This was giving me problems as I do not keep the cleanest .bib file in town.  So I reduced the problem by using a neat trick in JabRef that allows you to subset your master .bib file using the .aux file generated by Latex when compiling your manuscript.  In JabRef click on Tools > New Subdatabase based on AUX file.  This way I generated a much smaller biblio.bib file with only the articles referenced in my manuscript.  Running pandoc -s document.tex -o document.odt --bibliography=biblio.bib did the trick. Display math. Math in \begin{align} environment displayed in verbatim \latex;  (A partial solution is to use the  Libre Office extension.  Copy and paste the latex math code in the .odt file created by Pandoc into the equation editor, and so on.  Surely this could be built into a macro that can post-process all remaining math.)  UPDATE: Display math works very well using --mathjax extension. Inline math. Inline equation do not always render properly.  Bold math is a problem.  E.g. $\Sigma=\sigma^2\bm{I}$ displays as $\Sigma=\sigma^2\bm{I}$; Labels are displayed (e.g. section labels show as [sec:empirical] blah blah]; All tables display as raw latex.


How to Simulate Random Multivariate Correlated Data and Uncorrelated Data for a given correlation coefficient and P value in R?


Movie Identification: Werewolf and molotov cocktails

I've been trying to find the name of a movie.  It was a horror from the 80's most likely.  There was a bad guy that would transform into a werewolf like creature.  The protagonist was a young male about 18 years old.  I only caught the last 20-30 minutes of the movie.  The boy and his family (no dad that I remember) were hiding out in a cabin in the woods.  He was preparing for the bad guy to arrive by making molotov cocktails and other homemade weapons.  He also wields a lever action rifle.  Eventually, the bad guy shows up in his car, transforms, some molotov cocktails were thrown, the werewolf is injured, and the kid tracks him into the woods and kills him.  Anyone have any idea what movie this is?


SQL query to have a complete geojson feature from PostGIS?

I would like to get a geojson feature with properties from PostGIS. I have found  to have a feature collection but I can't make it works for just a feature.  SELECT row_to_json(fc)  FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features  FROM (SELECT 'Feature' As type     , ST_AsGeoJSON(lg.geog)::json As geometry     , row_to_json(lp) As properties    FROM locations As lg           INNER JOIN (SELECT loc_id, loc_name FROM locations) As lp         ON lg.loc_id = lp.loc_id  ) As f )  As fc;   so far I tryed to modify the feature collection query of the example. but the output is not valid.


IATA rule regarding passenger right to drinking water

As we know, according to IATA passengers allowed to carry no more than 100 ml of liquids on board. Yet when traveling with low-cost airlines, you are not offered any water on board. This is quite harmful, considering the dry air in the cabin. Being used to my country laws and social norms that allow anybody to ask for a free glass of water in any place that serves food, it sounds strange that I don't seem have the official right to ask for a glass of drinking water during the flight. Are there any IATA regulations or subject, or is it based purely on airline good will decision?


I know i am not supposed to ask these types of question here, but I am stucked and cannot figure out the problem. So, I wrote this code which takes root of the tree as input and check if the given tree is BST or not. But i am failing few test cases and i don't understand why ? If someone can tell me what's wrong in my code that would be very much appreciated. This is the link to question   Here is the code.  bool checkBST(Node* root) {     if(root == NULL)         return false;           int d = root->data;         bool r1 = true,r2=true;         if(root->left != NULL){             if(d < root->left->data)                 r1 = false;             else                 r1 = checkBST(root->left);          }          if(root->right != NULL){             if(d > root->right->data)                 r2 = false;             else                 r2 = checkBST(root->right);         }         return r1 && r2;      }


If $f_n, f \in L^p, 1\leq p < +\infty$ and $f_n \rightarrow f$ almost everywhere, and $\|f_n\|_p \rightarrow \|f\|_p$, then $f_n\rightarrow f$ as for the norm.  Could you give me some hints how to show it??   What does convergence as for the norm mean??   EDIT:  From Fatou`s lemma we have that $$\int \lim \inf [2^{p-1}(|f_n|^p+|f|_p)-|f_n-f|^p]d\mu \leq \\ \lim \inf \int [2^{p-1}(|f_n|^p+|f|^p)-|f_n-f|^p]d\mu \\ \Rightarrow 2^{p-1}\int \lim \inf (|f_n|^p+|f|^p)d\mu+\int \lim \inf (-|f_n-f|^p)d\mu \leq 2^{p-1}(\lim \inf \int |f_n|^pd\mu +\lim \inf \int |f|^pd\mu )+\lim \inf (-\int |f_n-f|^p d\mu) \\ \Rightarrow 2^{p-1}[\int \lim \inf |f_n |^pd \mu+\int \lim \inf |f|^pd \mu]-\int \lim \sup |f_n-f|^pd \mu \leq 2^{p-1}[\lim \inf \int |f_n|^pd \mu+\lim \inf \int |f|^p d\mu]-\lim \sup \int |f_n-f|^pd \mu \ \ \ \ \ (*) $$  Knowing that $||f_n||_p\rightarrow ||f||_p \Rightarrow \left ( \int |f_n|^p\right )^{1/p}\rightarrow \left ( \int |f|^p\right )^{1p}$ , we have that $\lim \inf |f_n|^p=|f|^p$  Therefore, $$(*)\Rightarrow 2^{p-1}\int (|f|^pd \mu+\int |f|^pd\mu)-\int \lim \sup |f_n-f|^pd \mu \leq 2^{p-1}(\lim \inf \int |f_n|^pd \mu +\int |f|^pd \mu)-\lim \sup \int |f_n-f|^pd \mu \\ \Rightarrow 2^{p-1}\int |f|^pd \mu-\int \lim \sup |f_n-f|^pd \mu \leq 2^{p-1}\lim \inf ||f_n||^p_p-\lim \sup \int |f_n-f|^pd \mu \\ \Rightarrow 2^{p-1}||f||^p_p-\int \lim \sup |f_n-f|^pd \mu \leq 2^{p-1} ||f||^p_p-\lim \sup \int |f_n-f|^pd \mu \\ \Rightarrow \lim \sup \int |f_n-f|^pd \mu \leq \int \lim\sup |f_n-f|^pd \mu \\ \Rightarrow \lim \sup ||f_n-f||^p_p \leq \int \lim \sup |f_n-f|^pd \mu =0, \text{ since } f_n\rightarrow f \text{ almost everywhere } $$  So, we conclude that $||f_n-f||_p\rightarrow 0$.


I want to show the Fibonacci numbers are cyclic in mod n. I have tried some small values for n and I can see this is the same. In terms of a proof, I'm thinking of using the pigeonhole principle of pair of adjacent Fibonacci numbers but I think I'm going in the wrong direction.....any help will be appreciated.  Many Thanks.


How to install windows software on Android platform

How. Can I install windows software on Android platform ?


Why isn't persistence working on Lubuntu 12.04 Live-USB?

I have used  ever since to install different Linux versions to USB flash drive. But now with Lubuntu 12.04 even though I do the same process by selecting persistence file, it gets created but is never used in Lubuntu. Every time I boot into Lubuntu on flash, it is fresh new Lubuntu without my changes I did last time I have booted it.  Anyone can help me or give me some hints ? Thanks in advance.


What is the optimum length of abstinence for maximum ejaculation volume in humans?

There have been papers discussing this, and whether the abstinence period should be 1 week, 2 weeks or other [1, 2]. Some think the time to maximum ejaculation volume is even longer than this.   doi:  PMID:


Custom script not working as expected in ubuntu

I wrote a java application, want to register it as a service, so wrote a bash script in /etc/init.d/. Here is the script:    #!/bin/sh # # chkconfig: 345 50 83 # ### BEGIN INIT INFO # Short description: Trigger Beamer on system startup # Description: Trigger blupay beamer on system start up ### END INIT INFO  #Source function library . /etc/rc.d/init.d/functions  #targets beamer config file if [ -f /etc/sysconfig/beamer ]; then     /etc/sysconfig/beamer fi   #start httpd in the C locale by default. BEAMER_LANG=${BEAMER_LANG-"java"}  # Path to beamer. beamer=/home/blupayss/Desktop/BeamerApp prog=beamer pidfile=${PIDFILE-/var/run/httpd/beamer.pid} lockfile=${LOCKFILE-/var/lock/subsys/beamer} RETVAL=0  start() {      echo -n "starting $prog"     LANG=${BEAMER_LANG}     RETVAL=$?     java -jar ${beamer}/Beamer.jar     echo         [ $RETVAL = 0 ] && touch ${lockfile}         return $RETVAL } stop() {     echo -n $"Stopping $prog: "         killproc -p ${pidfile} -d  $beamer         RETVAL=$?         echo         [ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile} } reload() {     echo -n $"Reloading $prog: "     if ! LANG=$BEAMER_LANG $beamer $OPTIONS -t >&/dev/null; then         RETVAL=6         echo $"not reloading due to configuration syntax error"         failure $"not reloading $beamer due to configuration syntax error"     else         # Force LSB behaviour from killproc         LSB=1 killproc -p ${pidfile} $beamer -HUP         RETVAL=$?         if [ $RETVAL -eq 7 ]; then             failure $"beamer shutdown"         fi     fi     echo }  # See how we were called. case "$1" in   start)         start         ;;   stop)         stop         ;;   status)         status -p ${pidfile} $beamer         RETVAL=$?         ;;   restart)         stop         start         ;;   force-reload|reload)         reload         ;;   *)         echo $"Usage: $prog {start|stop|restart||force-reload|reload|status}"         RETVAL=2 esac  exit $RETVAL   When I execute it as sudo service beamer start, then java applicaition gets launched successfully. However it returns an error: /etc/sysconfig/beamer: Permission denied How can I make my script access /etc/sysconfig/beamer?


Java -- Why is my authentication program failing to log me in..?

Okay, so I even printed out the values of the variables that will be compared to the username and password.  Username luke Password: password Username Attempt: luke Password Attempt: [C@5e15c325  But I'm attempting to input 'password'.... The JPasswordField holds a character array, so I have to use the 'toCharArray' when comparing the char [] 'passwordAttempt' and the String 'pass' that holds the password that is held in a file. Maybe this is why the password attempt is some strange value? Here's the code of the login() function:  public void login() {     //booleans for error-handling and user authentication      boolean usersInDatabase = true;     boolean userAuthentication = false;     boolean passwordAuthentication = false;     //create the data reader     try {          reader = new Scanner(user1); //user1 is a file     } catch (FileNotFoundException noUsers) {         JOptionPane.showMessageDialog(window, "No users in the database");         usersInDatabase = false;     }       //variables      String user = "";          //variables that will hold the file data which has the      String pass = "";          //username and password     try {      user = reader.nextLine();         pass = reader.nextLine();     }     //you can skip through the error-handling     catch (NoSuchElementException noUsers) {         JOptionPane.showMessageDialog(window, "No users in the database");         usersInDatabase = false;     }     if (usersInDatabase)     {      String userAttempt = usernameField.getText();     String message = ""; //message to display if authentication is unsuccessful     char[] passwordAttempt = passwordField.getPassword();     //okay -- important stuff     //username authentication       if (userAttempt == user) {         userAuthentication = true;      }     else      message += "Incorrect Username -- ";       //password authentication   if (passwordAttempt == pass.toCharArray()) {        //check to see if the input matches the string (a character array) that has the value of the file     passwordAuthentication = true;  } else  message += "Incorrect Password";    if (passwordAuthentication == true && userAuthentication == true) {       JOptionPane.showMessageDialog(window, "Authorization Successful");       cards.show(cardPanel, "documents"); } else if(passwordAuthentication == false && userAuthentication == false)     JOptionPane.showMessageDialog(window, message);        //to print out the values for debugging System.out.println("Username " + user + "\nPassword: " + pass + "\nUsername Attempt: " + userAttempt + "\nPassword Attempt: " + passwordAttempt); }  }


what is the reason ..we say can't? intead of can not

Numerous exceptions r there in English grammar ,why it is so? Like I m still confused between  India HAS/HAVE won the match?


Adaptation of round-robin tournaments for 4 player games.

I am trying to find a "fair" matchup system for a competition where $16$ players participate in a 4- player game. I would like to emulate the advantages of a round-robin system For example if my game were a 2-player one, I could easily make a $15$-round tournament, with each player facing a different opponent on each round. At the end of the tournament, each player would have faced all opponents exactly once, so none of the players faced a stronger opposition than any other player. A total of $120$ games would have been played in total. This simply doesn't work in a game with more players. If I wanted to go through every possible matchup in a 3-player game, I'd need $560$ games (more than $100$ rounds), and with four players, I'd need $1820$ games (in other words, each player would participate in $455$ games). I've considered switching to something based on the "Swiss" format used in chess, but that also has its downsides. My question is, what would be the shortest pairing method that would make each player on the competition face every opponent the same number of times? Does it apply to a different number of competitors? And no a game of $n$ players? It still wouldn't be totally "fair", as a cetain combination of opponents could be tougher than another, but it'd definitely be an improvement. PS: As three opponents are played at each round and there are $15$ opponents for each player. The number of rounds played should  therefore be a multiple of $5$, but I don't know if it would be possible to do it with exactly $5$ rounds (after all, if there were $20$ rather than $16$, you'd defintely need at least $19$ rounds


Finding a player with a certain item and giving them another item

I'm working on a current map and this is the only hitch I'm at so far. I know that I can do a testfor command with a command block to see if anyone is holding a specific item, but I also want to give the person that has that item on them, a new item. For example, if someone has a diamond on them, I want to be able to, through command blocks, find that person and give them a blaze rod. Appreciate all help!


She likes ________(to have/having) the birds is as an expensive hobby.   What should we use here ? Infinitive or Gerund? Why?


How does the Windows 7 compression property weigh in against other compression methods?

I have a 1TB external hard drive of data that I have backed up from my main computer. To save space and give me the option of putting more data on this external HD, I'm considering compressing all of the data.  Windows 7 has the option of compressing a drive (right click on the drive -> Properties -> Compress drive to save space). Is it worth doing this type of compression vs. using something like 7zip to compress all of the contents of the disk? I don't plan on using the data any time soon, the drive is used solely as a back up for emergency situations.


How to stop verification required when installing free apps

I've already done open the billing information , but the thing is "none" doesn't exists , there only "visa , master and Amex"


How to delete all files except one named file from a specific folder

Here is the situation.  I have a directory which contains many files with different extensions. I want to delete all files except one with a specific name.  This could be easily done using the GUI by selecting all and pressing ctrl and deselecting the file in question.  That is exactly what I want to, but how can I do it from the command line?  For example:  dirA contains the following files:  a.txt b.txt c.php d.html a.db b.db e.html   I want to delete all files keeping only the file named a.txt.


Historical airfare prices to understand which month has the lowest airfare

Is there a service (don't mind paying a bit) that will tell me historically which month has the lowest airfare between two travel destinations? The thing is, that I need to fly to India from Canada (return trip) to see my family every year but I am flexible with time of visit.   So it will be helpful if I could get an idea when the airfare for this route is historically low.


I have a Router, and under it, there are many host machines, and every host machine have some IPs, and how can I record the IPs that go through the Router everyday.  Is there a tool for record the IPs which get through the Router? Or how can I realize my requirement ?


Mellin transform of $\sin x$ aka $\int^{\infty}_0 x^{s-1}\sin x dx $

I am trying to find the Mellin transform of $\sin x $, put in other words to solve:  $$\int^{\infty}_0  x^{s-1}\sin x \mathrm{d} x $$  And I know that the answer is:  $$\Gamma(s) \sin \left(\frac{\pi s}{2}\right)$$  From several tables on the internet but I couldn't find any justification.  How can this identity be proven?


I have a level 1 Synthesist Summoner.  Since he has the Quadruped base Eidolon, when fused, my Summoner has a bite attack (Primary). In addition, I have spent evolution points on a tentacle (Secondary). Finally, my Synthesist carries around an Axe, with which he can make weapon attacks.  If I were to use the Full-Attack option, what attacks could I make, and at what penalties? Let's assume I want to always use the Axe, where possible.  How does this interact with the eidolon's natural attack limit? (3 at first level)


I'm sorry if this has been asked and addressed already.   What are the HW pre requisites for Ubuntu 13.04/13.10?  I'm a big fan of Ubuntu and wish to install it on my 9 year old PC. Wondering if it will work.


class java.lang.String cannot be cast to class java.lang.Boolean error in ScreenFlow

We are getting below error in screen flow when we added picklists in lwc and added in screenflow. class java.lang.String cannot be cast to class java.lang.Boolean (java.lang.String and java.lang.Boolean are in module java.base of loader 'bootstrap') any workaround for this


While installing Ubuntu, I accidentally made a NTFS drive into EXT4 drive. Then, all the data of that drive was gone. Can I recover that drive and those data?  While using Windows 10, I have tried some softwares but, they were paid. I just want to recover that drive and those data.


Auto log off on mac even when account is active

is there any way to automatically log off a guest account after 10 minutes of login? I want to log out of the account every 10 minutes immaterial of whether it is active or inactive. Is there a way to accomplish that on Mac?


spotting sql injection vulnerabilities for dummies

I am a beginner at PHP and SQL.  I was asking a question here unrelated to sql injection and user MarcB said that this code was vulnerable to injection.  function create_group($name, $description, $invites){ global $link;   $name = mysqli_real_escape_string($link, $name);   $description = mysqli_real_escape_string($link, $description);   $names = mysqli_query($link, "SELECT `group_name` FROM `groups` WHERE `group_name` = '$name'"); $descriptions = mysqli_query($link, "SELECT `group_description` FROM `groups` WHERE `group_description` = '$description'");   if(mysqli_num_rows($names) == 0 && mysqli_num_rows($descriptions) == 0) {     mysqli_query($link, "INSERT INTO `groups` (`group_name`, `group_description`) VALUES ('$name', '$description')");   } else {     echo 'Group with that name/description already exists.';   }    $result = mysqli_query($link, "SELECT `group_id` FROM `groups` WHERE `group_name` = '$name'");    foreach($result as $resul) {     foreach($resul as $resu) {       $group_id = $resu;     }   } foreach($invites as &$invite) {   $idres = mysqli_query($link, "SELECT `user_id` FROM `users` WHERE `username` = '$invite'");     foreach($idres as $idarr) {       foreach($idarr as $id) {         mysqli_query($link, "INSERT INTO `group_members` (`group_id`, `user_id`, `confirmed?`) VALUES ('$group_id', '$id', 0)");       }     }   } echo 'Group created!'; }   I think I am in the (quite large) set of people who are beginners and know what sql injection is but find it very hard to spot vulnerabilities that are not HUGELY obvious (like a username and password being sent purely over a GET request).  I wondered if anyone could offer tips to these people and also help me with this bit of code.  Obviously, the latter is less important than the former as I, and many others, will want to know how to spot them ourselves.  Thank you in advance.  I hope this is helpful to other people.


Should the top navigation be frozen (optional)?

In Excel, the window can be frozen in place in such a way that you can always see the name of the column even though you go way down below the 'fold' of the screen.  On SE, when you scroll, the whole page goes up (or down). This means the top navigation bar is scrolled off screen. I'm not sure if it would be a good idea or not to fix the top navigation to the top of the screen and let the rest of the content scroll.  What do you think about this, in terms of pros and cons?  [Update]  With the new Top navigation bar, kudos to the design team, I think this question becomes relevant again. I'm aware of the busload of downvotes, but still.  The top navigation bar doesn't occupy much space and has two notification areas:   Inbox Achievements   Having these two notifications visible at all times would be nice, IMO.  [Update]  I've just noticed that I haven't used the word "optional" in this discussion... My bad. In Excel, the Freeze function is controlled by the user. You can optionally Freeze part of the interface, and you can eliminate the Freeze at will.


\documentclass [12pt,a4paper] {article} \usepackage {geometry} \usepackage {graphicx} \usepackage {hyperref} % \begin {document} bapi  \par  \begin {eqnarray} \frac{dy}{dt} &=& -t \\ % \frac{dx}{dt} &=& 1 % \end {eqnarray}  \end {document}   To run the LaTeX file abc.tex, I use the command latex abc.tex. Then an error message will occur:  ! LaTeX Error: File `url.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty) Enter file name:   I am using Ubuntu 14.04 LTS and the version of the TeX compiler in my computer is pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian).  Without \usepackage{hyperref}, there is no error message and the .tex file run smoothly.   What is the problem with \usepackage{hyperref}?


Do half-elves get the abilities of both their races?

In 5e D&D, do half-elves get elf abilities as well as those listed under parent races abilities?  For example, elves get +2 Dex, keen senses (proficiency in perception), and trance, dark vision, and fey ancestry. Half-elves get +2 Charisma, +1 to 2 other ability attributes, dark vision, and fey ancestry.   Do half-elves get the +2 Dex from their elf side? Do half-elves get trance and keen senses?  If they do get the abilities such as trance and keen senses, would they get the extra abilities of their other parent race? If the elf half is a subclass, such as high elf, do I get +1 int, elf weapons training, cantrip (1 wizard cantrip), 1 extra language?


problem in using 'double' data type in for loops with fractional incrementation

I had a program which requires one to search values from -100.00 to +100.00 with incrementation of 0.01 inside a for loop. But the if conditions arent working properly even if code is correct...  As an example I tried printing a small section i.e if(i==1.5){cout<<"yes...";} it was not working even though the code was attaining the value i=1.5, i verified that by printing each of the values too.  #include<iostream> #include<stdio.h>  using namespace std;    int main() {     double i;      for(i=-1.00; i<1.00; i=i+0.01)     {          if(i>-0.04 && i<0.04)          {              cout<<i;              if(i==0.01)                 cout<<"->yes ";              else                 cout<<"->no ";          }     }         return 0; }   Output:  -0.04->no -0.03->no -0.02->no -0.02->no -0.01->no 7.5287e-016->no 0.01->no 0.02->no 0.03->no  Process returned 0 (0x0) execution time : 1.391   (notice that 0.01 is being attained but still it prints 'no') (also notice that 0.04 is being printed even if it wasn't instructed to do so)


Why were 'Regularization' methods (Lasso, Ridge, Elastic Net) created in the first place?

What problem do regularization methods solve? I thought it was feature selection and to prevent overfitting. However, I was informed that the reason Ridge, Lasso, and Elastic Net were created in the first place was "to deal with colinearity." However, I am not readily finding anything online to support this.   , "Regularization, in mathematics and statistics and particularly in the fields of machine learning and inverse problems, is a process of introducing additional information in order to solve an ill-posed problem or to prevent overfitting."  Where does the linear dependence of columns come into play in regularization? For example, if the columns exhibit multicollinearity, how does regularization know which features to select and which to reduce towards zero?


Can my Dragonborn gain more breath weapon uses per short rest?

Even though the Player's Handbook says a dragonborn only gets one breath weapon per short rest, is there any way outside of rule 0 for a dragonborn to gain multiple uses per short rest, like by using a spell or magic item?


How do i center this lightbox image gallery?

I want to know how to center this lightbox. Here is a link to the code -  . I scaled the image down by changing the width of the column class from 25% to 15% and the lightbox floats to the left. I want it to be centered. Thanks


How long is it till the chicken spoils  I'm trying to Prevent Poising my family an others .how long would it be till the chicken is bad,?


Why didn't the IF want Peter Wiggin?  Ender's Game implies that they didn't want him for being too violent/aggressive (I believe the quote from Graff was something like "doesn't know half the time if he wants to be a human or a jackal").  But this seems to be contradicted by two facts:   They already have specimens like that in school. Bonzo Madrid, for one, is the same except dumber.  Or Bernard, of who Alai said "I'm not Bernard, I never tortured cats for fun.". If you recall, the main signal that Peter was dangerous was his torturing small animals. Less importantly, Peter turned out way non-jackaly. We can write that off on faulty analysis during early years.   I'd prefer answers based on book sources or Card's statements if any are available. Please don't quote Graf's original statement from beginning of Ender's game as an answer - that's what I'm questioning.   IMPORTANT: Any answers that cite Peter as being a possible impediment to Ender should take into account the fact that Peter was rejected before Ender was even authorized to be born.    P.S. Just to clarify - I didn't ask why IF didn't think Peter Wigging was as genius of a commander as Ender. I am asking why he wasn't taken to the School like all the other talented bullies were. They took plenty of other kids who weren't Ender, so why wasn't Peter among them?


My /var/log/messages file gets flooded every minute with the following messages:    Dec 15 13:55:01 www systemd: Started Session 31 of user root. Dec 15 13:55:01 www systemd: Starting Session 31 of user root. Dec 15 13:55:01 www systemd: Removed slice User Slice of root. Dec 15 13:55:01 www systemd: Stopping User Slice of root.   What do these messages mean? Is there a problem with the server? Is there a way to stop them from flooding the log?


For an object to create different EM waves, it needs to increase the temperature, so what if we or some material could be so hot, that it would emit ultraviolet light, and thanks to that be invisible for the human eye.   I have a lot of questions about this and I would like you to answer me.   At which temperature does an object emit UV light? If an object emits UV light, we wouldn't see anything or we would see some type of violet light? Is there any material that can get to that temperature without melting? Is there any powerful insulator?   Thanks for reading this, and for breaking my dream of making someone invisible, I invite you to day-dream and imagine stupid questions.


find all self-complementary graphs on five vertices

I know that the two complements should have an equal number of edges, namely $\binom{5}{2}/2=5$. Since there are 10 possible edges, there are at least $\binom{10}{5}/2=126$ possible pairs of graph-complement pairs.  But after making drawings for the same problem with four vertices, I know many of them are isomorphic and can be obtained from by rotations and reflections.  How should I proceed in eliminating these isomorphic graphs?  In the first place, am I taking the right approach, or is their a more effective solution?


Show that $A[X]/(aX+b)$ is an integral domain

Let $A$ be an integral domain, $a$ and $b \in A-\{0\}$, and let $B = A[X]/(aX+b)$. Show that, if $Aa \cap Ab=Aab$, then $B$ is an integral domain.   My attempt at proof (following a hint). Denote by $K$ the field of fractions of $A$. Let $\phi: A[X] \to K$, with $\phi(X)=-b/a$ and $\phi(y)=y, y \in A$.  Then $\phi(aX+b)=-b+b=0$. If $p(X) \in A[X]$ and $p(X) \not \in (aX+b)$, then $p(X)=q(X)(aX+b)+r$, $r \in A$. Therefore, $\phi(p(X))=\phi(r)=r$, so $p(X) \in \ker(\phi) \iff r=0 \iff p(X) \in (aX+b)$.   Hence $\ker(\phi)=(aX+b)$; by the first isomorphism theorem, $A[X]/(aX+b)$ must be isomorphic to Im$(\phi)$. In conclusion $B$ is isomorphic to a subfield of $K$, so it's an integral domain.  The problem is, I don't know where I used the condition $Aa \cap Ab=Aab$. Am I doing something wrong?


Why does this identity hold for Fejér Kernels?

I'm trying to read a proof for the existence of an $(\epsilon , \delta)$ approximation to the identity that is a trigonometric polynomial. For this, the Fejér Kernel is defined as $$F_N = \sum_{n = -N}^{N} (1 - \frac{|n|}{N})e_n$$  The author of the text also asserts that the following identity holds: $$F_N = \frac{1}{N} |\sum_{n = 0}^{N-1} e_n|^2$$   However, no proof is provided for this identity (since I suspect it should be easy to prove). I can't come up with my own proof for this nor could I find it by googling.   Is there any identity involving the characters $e_n$ that I should be using?  Thanks in advance


How to insert the current date into a Google Spreadsheet?

I've got a spreadsheet in Google Drive and one column is meant for the date the entry is made. Is there a button to do this? I'm aware of the functions =NOW() and =TODAY() but their description says "the value is updated when the document recalculates". However I reopened the document a few minutes latter and it still had the same time. Why is this?  It would be even easier that when I start typing in a new row the column for the date auto-populates.


I am trying to understand below code - What is the use of below anonymous block   {     Console.WriteLine("Hello World2"); }   Above code is available inside a method - I am new to c# and trying to understand it .


How much of digital sensor noise is thermal?

Is all digital sensor noise thermal?  And what is the relationship between temperature and noise?  For example, as we cooled a CMOS towards absolute zero, would we discover that high-ISO images would be less noisy?  Would they converge towards a truly noiseless image at maximum ISO and absolute zero?


I have a database setup with the following schema:   CREATE TABLE siteInfo (     siteID             SERIAL  NOT NULL,     siteName           TEXT    NOT NULL,     siteHost           TEXT    NOT NULL,     notes              TEXT    NOT NULL,     allowableCountries TEXT    NOT NULL,     displayChance      INT     NOT NULL,     imagePath          TEXT    NOT NULL,     PRIMARY KEY (siteID) );  CREATE TABLE siteLinks (     siteID             SERIAL  NOT NULL,     URL                TEXT    NOT NULL,     FOREIGN KEY (siteID) REFERENCES siteInfo(siteID) ON DELETE CASCADE );  CREATE TABLE siteDemographicLinks (     siteID             SERIAL  NOT NULL,     URL                TEXT    NOT NULL,     country            TEXT    NOT NULL,     chance             INT     NOT NULL,     FOREIGN KEY (siteID) REFERENCES siteInfo(siteID) ON DELETE CASCADE );  CREATE TABLE linkVisits (     siteID             SERIAL  NOT NULL,     rawVisit           BIGINT  NOT NULL,     redirects          BIGINT  NOT NULL,     FOREIGN KEY (siteID) REFERENCES siteInfo(siteID) ON DELETE CASCADE );   Data from my form is in the following format:  array(7) { ["siteName"]=>string(9) "Site Name" ["siteHost"]=>string(9) "SIte Host" ["notes"]=>string(5) "Notes" ["links"]=>array(2) {[0]=>string(6) "Link 1" [1]=>string(6) "Link 2"} ["countries"]=>string(4) "None" ["displayChance"]=>string(2) "15" ["extraLink"]=>array(2) {    [0]=>array(3) {       ["url"]=>string(7) "dSite 1"       ["countries"]=>string(4) "NONE"       ["chance"]=>string(2) "11"       }    [1]=>array(3) {       ["url"]=>string(6) "dSite2"       ["countries"]=>string(4) "None"       ["chance"]=>string(2) "13"       }    } }   How would I go abound inserting data into the many type tables so they reference tuples inserted into the one type table?  I have this query constructed:  INSERT INTO siteInfo (siteName, siteHost, notes, allowableCountries, displayChance, imagePath) VALUES ('Sample', 'sample.com', 'note', 'NONE', '50', '../var');   I would then need to insert data into the siteLinks table, which is related to the entry already in the siteInfo table.  INSERT INTO siteLinks (siteID, URL) VALUES ((SELECT siteid FROM siteinfo WHERE sitename='Sample'), 'test');   Is there a better way of doing this?


Is there any tool that can convert Latex documents to HTML documents, so that all math is presented with ?  (Obviously, it is fairly easy to hack together a quick Perl script that is able to do a crude conversion, but I am interested in a bit more robust solutions — at least it should get all cross-references right automatically.)


Minecraft PE just got the ender update, so how do I make the portal? I have tried using a 3x3 frame, but it still won't work.


Prove that $q$ divides (${}_q \mathrm{C}_x$) where $q$ is an odd prime and $x \in \Bbb{Z}$ is such that $1\lt x \lt q$.

I believe I need to show that $\frac{q!}{x!(q-x)!} = aq $ where  $a\in \mathbb{Z}$ How can I show this?


Why do we want probabilities to be *countably* additive?

In probability theory, it is (as far as I am aware) universal to equate "probability" with a probabilistic measure in the sense of measure theory (possibly a particularly well behaved measure, but never mind). In particular, we do assume $\sigma$-additivity, but not anything more (say, additivity with respect to families with cardinality $\mathfrak{c}$ [which would of course make things break down]).  For me, as a mathematician, this is completely satisfactory, and until recently I hardly realised that it may not be entirely obvious that probability should behave thus. A sufficiently convincing justification  for working with measures would be that integration theory is precious, and we want to be able to make use of integrals to compute expected values, variances, moments and so on. And we can't require any "stronger" kind of additivity, since then things fall apart already for a uniform random distribution on $[0,1]$.  However, recently I have had some interactions with non-mathematicians, who approach "higher" mathematics with some understandable uncertainty, but who still find the notion of probability relevant. One of the things it made me realise is that I am not myself fully aware why, in principle, we define things thus and not otherwise. Hence, after this overlong introduction, here is the question. Is there a fundamental reason why measure theory is the "only right way" to deal with probabilities (as opposed to e.g. declaring probabilities to be just finitely additive)? If so, is there a "spectacular" example showing why any other approach would not work? If not, then is there an alternative approach (with any research behind it)?


I am having a weird problem in this code. When I execute the code with the first if condition, it all works fine and as expected. However, when I comment that if statement and use the other if condition (the one already commented), it gives an . Both the getUserIP() and getPhoneNumber() are just normal getters for private Strings. And both values are being set before by normal setters. Why is this happening? public void sendBroadcast(final String broadcast) {     System.out.println("entered sendBroadcast");          String fullPeep = broadcast;         System.out.println("fullPeep: " + fullPeep);         String array[] = fullPeep.split("<!!>");          for(User tempUser: friends)         {             if(tempUser.getUserIP().equals(this.getUserIP()))             {             System.out.println("tempuser:" + tempUser.getPhoneNumber() + " user: " + array[1]);             //if(tempUser.getPhoneNumber().equals(array[1]))             //{                 System.out.println("tempuser:" + tempUser.getPhoneNumber() + " user: " + array[1]);                 System.out.println("if statement of broadcast method");              try {                 DataOutputStream out2 = new DataOutputStream(socket.getOutputStream());                 out2 = tempUser.getUserDataOutputStream();                 out2.writeUTF(fullPeep + "\n");                 out2.flush();             }             catch (IOException e) {                 e.printStackTrace();             }         }         //}     } }  Exception in thread "Thread-6" java.lang.NullPointerException at User.sendBroadcast(User.java:180) at Server$ServerThread.run(Server.java:394)   I figured out what is causing the exception and why tempUser.getPhoneNumber() was returning null at some point.


How/why is Yongnuo allowed to copy Canon?

How is Yongnuo allowed to copy Canon, and why does Canon allow it? Does Canon see a significant loss in sales to Yongnuo?


What is a word to describe holding two opposites at the same time as truth. To believe  and hold opposing truths or doctrines both as true at the same time, though they are completely in opposition.  Example.  "I believe that  women are  equal to men even though they are inferior to men."


What's the recommended approach when you ask a question and you don't actually get valid answers?  It'd normally leave the question as unanswered but, of course, that leads to getting a low acceptance rate, which seems unfair. Asking in forums is normally my last resort so I tend to ask difficult questions and I understand some of them do not actually have a positive answer (for instance, when you ask whether there's a tool to do X and the only answer is "there isn't, you'd have to write it yourself").


What is the maximum height a settlement can reach in Fallout 4?

See title. Obviously the maximum base is determined by the perimeter, but the maximum height is not specified.


What am I doing wrong with the .get command in ArrayLists

I've been working on some code to try to make sure I understand all of the ways to use ArrayLists and just some things I've been working on when I compile this code I get three errors for each "girlsNames.get(#)" on the girlsNames variable. I only get errors when I use the .get command and not when I use .add. tried assigning each "girlsNames.get()" to a variable then using that in the main method instead but it still doesn't work... I can't figure out the problem!  import java.util.ArrayList;  class List {   public void babyNames(){     ArrayList<String> girlsNames = new ArrayList<String>(3);     girlsNames.add("Jennifer");     girlsNames.add("Blorjek");     girlsNames.add("Robby");     }   public static void main(String[] args) {     if(args[0] == girlsNames.get(0))     { System.out.println("Hello guardian of Jennifer");     }     else if(args[0] == girlsNames.get(1))     { System.out.println("Hello guardian of Blorjek");     }     else if(args[0] == girlsNames.get(2))     { System.out.println("Hello guardian of Robby");     }     else System.out.println("you may not enter the sanctuary");   }  }


How to merge video and audio files without loosing original caracteristics

I have video.mp4 only file, and audio.m4a file. I need to merge them both, and I need the output to be the same video without creating new resolution or modifing caracteristics.  OS: windows 10  Thank you.


How to split a long string in a variable?

I would like to split a long string (as in the example below) when this string is in a variable:  \documentclass[a4paper]{article} \def\parametre{0azertyuiopqsdfghjklmwxcvbn1azertyuiopqsdfghjklmwxcvbn2azertyuiopqsdfghjklmwxcvbn3azertyuiopqsdfghjklmwxcvbn} \usepackage{seqsplit}  \begin{document}  \begin{minipage}{10cm} \seqsplit{\parametre} %not correct \end{minipage}  \begin{minipage}{10cm} \seqsplit{0azertyuiopqsdfghjklmwxcvbn1azertyuiopqsdfghjklmwxcvbn2azertyuiopqsdfghjklmwxcvbn3azertyuiopqsdfghjklmwxcvbn} %correct \end{minipage}  \end{document}


Showing that $\frac{z^n}{1+z^{2n}}$ is real for $|z|=1$.

Can you help me to prove that $$\frac{z^n}{1+z^{2n}}$$ is a real number, given that $z$ is a complex number with modulus $1$ and $n$ a positive integer, such that $z^{2n}$ is not equal to $-1$.


Disable PIN Unlock with Certificates and WPA2 Enterprise

I want to use a Samsung device (4.1.2) within WPA2-Enterprise. When I install a certificate in order to connect to the RADIUS server, the phone immediately wants me to set up a PIN to lock it. I can't disable this setting afterwards, only by removing the certificate. Which locks me out of the wifi.  Is there any way to deactivate this behaviour of android and to keep the phone usable without entering a PIN to unlock it?


Got error invalid number while search average time in oracle

I would like to count average time from data like this sample : ID     CREATED_DATE                      LAST_MODIFIED_DATE 1      09-10-2020 00.48.30,241000000     20-01-2021 11.45.07,575000000 2      27-01-2021 14.42.26,209000000     27-01-2021 14.42.26,209000000 3      04-02-2021 13.35.27,994000000     04-02-2021 13.36.00,477000000 4      19-02-2021 15.56.58,617000000     19-02-2021 15.57.29,018000000  i run this query : SELECT id, created_date AS post_time,  last_modified_date AS updated_table_time,  last_modified_date-created_date AS count_time FROM table_time  and then show this result : ID     CREATED_DATE                      LAST_MODIFIED_DATE.               count_time 1      09-10-2020 00.48.30,241000000     20-01-2021 11.45.07,575000000     +00 00:00:35.364000 2      27-01-2021 14.42.26,209000000     27-01-2021 14.42.26,209000000     +00 00:00:35.098000 3      04-02-2021 13.35.27,994000000     04-02-2021 13.36.00,477000000     +00 00:00:32.483000 4      19-02-2021 15.56.58,617000000     19-02-2021 15.57.29,018000000     +00 00:00:30.401000  so my goals is i want to find avarage time in count_time column so i have run this query :     with time_new_table as  (     SELECT id, created_date AS post_time,      last_modified_date AS updated_table_time,      last_modified_date-created_date AS count_time     FROM table_time )     SELECT avg(to_number(to_char(count_time,'SSSSS'))) atim       from time_new_table  but i got an error :     ORA-01722: invalid number     01722. 00000 -  "invalid number"     *Cause:    The specified number was invalid.     *Action:   Specify a valid number  which script i could be improve since i have convert to number in line avg(to_number(to_char(count_time,'SSSSS')))


What is the electrostatic force between charges if they separated by a combination of dielectric media?

How does the combination of different medium affect the force? How do we calculate the equivalent dielectric constant? Say, two charges are separated by 100 cm, first 10 cm is a slab of dielectric constant 100, the last 10 cm is another slab of constant 50, rest is air.


Recursively delete empty directories in Windows

I have a directory on my Windows 7 machine that has hundreds if not thousands of sub-directories.  Some of them have files, some do not.  I want to delete all the empty directories.  Looking at the del and rmdir DOS command, it does not look like you can recursively do this without deleting all the files.  Is there a way to do this from the command line?


Should I say I work "for" or "with" my supervisor?

I have heard people saying both "I work for him" and "I work with him" when they are talking about their supervisors. But, since these people were not native English speakers, I could not figure out which one was the correct one.  I'd really appreciate it if someone could explain this to me.


How to compare two Pearson correlation coefficients

Since a few days I do not get ahead when trying to compare two Pearson correlation coefficients. Imagine that I've got two datasets where on each I do a correlation between Land Surface Temperature and an urban metric. The datasets are different in their length, so the first one has round about 160.000 observables and the second one has about 2400 observables. For the correlation on the first dataset I get a Pearson of -0.74 and for the second I get -0.885. Now I want to find out whether these coefficients are significantly different from each other. Is there any appropriate method you could suggest?  I already played around with the Fisher-Z-Transformation, but from my point of view with no purposeful results. When I calculate the Fisher-Z on my coefficients, it results in 20.95 (Fisher-Z).  I would be very happy about suitable advices.


Getting list of followed sites for a specific user with Graph API

There is an undocumented API /_vti_bin/homeapi.ashx/sites/followed that returns the list of followed sites for the currently logged in user. This one does not seem to be useful due to permission-related limitations.  There is also a Graph API endpoint: https://graph.microsoft.com/beta/users/Admin@Contoso.onmicrosoft.com/followedSites  But it gives me access denied:   PnP SharePoint PowerShell Script  $AppSecret = 'XXXXX*[ZLq9Q3VFOwXGRm2NSP' $appId = 'fb32c27b-XXXXX-4824-8af0-e8d303553d9e' $AADDomain = 'contosoTenant.onmicrosoft.com'  Connect-PnPOnline -AppId $AppId -AppSecret $AppSecret -AADDomain $AADDomain $accesstoken = Get-PnPAccessToken $response = Invoke-RestMethod -Uri 'https://graph.microsoft.com/beta/users/Admin@contosoTenant.onmicrosoft.com/followedSites' -ContentType "application/json" -Headers @{Authorization = "Bearer $accesstoken"} -Method Get   Permissions assigned to the AAD App:    Question   Is there a way to retrieve the list of followed sites for a specific user using REST API, Graph or some other way?   Explanation  We are going to need to write a crawler that runs every day and for every user in Office 365, gets the list of followed sites. This will later be used for a separate email notifications feature. But first, I am trying to understand if it's even possible to get users' followed sites.  Any help will be greatly appreciated!  Edit There is a , but we are using Office 365, which makes this question different.


What is the best way to store a file in application, database of filesystem?

I am curently developping a java/jee app in which i need to store files.I tried storing files as blob in the DB but i got a problem in size of files which must be configured in the application server so i am thinking about storing those files directly in the server disk.So i want to know what is better storing files as blob or directly in the disk.


Proof that $2^k+3^m=5^n$ has only a finite number of solutions?

$2^1+3^1=5^1$  $2^4+3^2=5^2$  In these cases a power of $2$ plus a power of $3$ is a power of $5$. If I understand the abc conjecture correctly, this is only finitely often the case.  Question 1: Is there an easy proof for this?  Question 2: Are there other known solutions of $2^k+3^m=5^n$?


See number of views for a posted question

I am using the iOS Stack Overflow app. I often use the app on the go to view answers to the question I have posted. I also use it to post new questions whenever something pops up in my mind when I am on the go.  And as a curious Stack Overflow user, I like to monitor the progress of my questions. One way to do that is see the number of views for my questions. But unfortunately, I don't see this stat on the Stack Overflow iOS app.  I therefore request you to update the app to show the number of views for a question when you visit that question on the app.   I would also like to take this opportunity to ask you to make the app full screen for iPhone X onwards! Utilizing the whole viewport will definitely give a better user experience.


How can (easily) superimpose different text over odd/even pages of an included PDF file?

I have a series of pdf files that I'm trying to combine. That much I can do without any problem.  What I also need to do is add a small amount of text to the top 'outside' corner of each page, essentially identifying the original document that each page came from. I've managed so far to put the text in the upper left corner of each page - there are other questions on Stack Exchange which address that.  However, none of them deal with putting the text in a different position on odd and even pages - i.e. the upper left corner of even pages, and the upper right corner of odd pages. How can this be achieved?  \documentclass{article}  \usepackage[a4paper]{geometry} \usepackage{pdfpages} \usepackage{tikz} \renewcommand{\contentsname}{My combined file} \setlength\parindent{0pt}  \begin{document}  \includepdf[pages=-]{cover.pdf} \includepdf[pages=2-4,pagecommand={\begin{tikzpicture}[remember picture, overlay]     \node[right] at (-2, 2.5) {\LARGE{doc1}};     \end{tikzpicture}}]{doc1.pdf} % More files included here \end{document}   For extra credit, is there a way to (automatically) use the filename of the included document as the inserted text?


How to connect more than one monitor to Windows 7

I have a Windows 7 laptop which has one HDMI connection. I connect one monitor via HDMI to this laptop no problem. Can I connect more than one monitor to this laptop and achieve HDMI quality even though I have just one HDMI port ?


Use of the word "literally" in the definition of literally

Recently, the word literally has come to be used for emphasis, rather than to express that something definitely happened.  If you look up the definition of literally on Google, the second definition is:     used for emphasis while not being literally true.   It feels wrong to me that the word literally is in the definition. It seems like this could be interpreted as circular logic since we don't know which definition of literally the definition refers—it could refer to itself.  I am not aware of any such convention where if you use the word you are attempting to define in the second definition, then you use the first definition.  It seems to me that it would be perfectly valid to leave out the word literally from the second definition altogether, and everything would be fine, i.e.:     used for emphasis while not being necessarily true.   Is it wrong that the word literally has been used in its own definition?


Base-2 (Binary) Representation Using Python

Building on , I was thinking about sensible, intuitive ways to do that Programming 101 chestnut of displaying integers in base-2 form.  This is the best I came up with, but I'd like to replace it with a better algorithm, or at least one that should have screaming-fast performance.    def num_bin(N, places=8):     def bit_at_p(N, p):         ''' find the bit at place p for number n '''         two_p = 1 << p   # 2 ^ p, using bitshift, will have exactly one                          # bit set, at place p         x = N & two_p    # binary composition, will be one where *both* numbers                          # have a 1 at that bit.  this can only happen                           # at position p.  will yield  two_p if  N has a 1 at                           # bit p         return int(x > 0)      bits =  ( bit_at_p(N,x) for x in xrange(places))     return "".join( (str(x) for x in bits) )      # or, more consisely      # return "".join([str(int((N & 1 << x)>0)) for x in xrange(places)])


Compare two files and display the output with matches,duplicates and nomatches

I have 2 files,  file1 ->   abc=3 abc=3 dfg=6 ggg=7   file2 ->   abc=3 dfg=4 sdf=9   I want the output in file3 as,  File2,File1,Result abc=3,abc=3,Match dfg=4,dfg=6,NoMatch sdf=9,,NotPresent ,abc=3,Duplicate   I currently have a script,  grep -E 'abc|dfg|sdf' file1 >> file3 comm  <( sort -n file2 ) <( sort -n file3 ) |awk -F$'\t' 'BEGIN { OFS="," } $3 { print $3, $3, "MATCH"; next } { print $1, $2, "NO MATCH" }' > final_result.txt   The output looks like,  abc=3,abc=3,MATCH ,abc=3,NO MATCH dfg=4,,NO MATCH ,dfg=6,NO MATCH sdf=9,,NO MATCH   The output displays a blank if the value in file2 does not match the value in file1. For example, the only difference between dfg=4,,NO MATCH and ,dfg=6,NO MATCH is that the value has changed from 4 to 6. I would like the output to be    dfg=4,dfg=6,NoMatch    instead of   dfg=4,,NO MATCH ,dfg=6,NO MATCH   And also,   abc=3   appears twice, but is displayed as   ,abc=3,NO MATCH   I would like to have it as,  abc=3,,Duplicate   Any help is greatly appreciated.


How can I save the gif "Graph of Tangent from Unit circle" on:    ?  Thank you.


Mind spike while concentrating in another spell

The warlock in my party is planning to learn Shadow blade and Mind spike spells (both require concentration). As far I know, you lose your concentration in a given spell if you cast another spell that requires concentration. Let's say the Warlock cast Shadow blade and the following round he cast Mind spike. He is interested in the direct damage (3d8). Could he opt to no concentrate in the Mind Spike and keep concentrating in the Shadow Blade?


How to prioritize en1 AirPort of MacBook Pro 2017?

I have a Macbook Pro 2017 base model with 2 thunderbolt ports. I just bought a Xiaomi AX1800 router for its 5G capability. Unfortunately, my Macbook cannot connect to the channels provided by the router, because they are 36, 40, 44, and 48; while my Macbook's en0 channels are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 149, 153, 157, 161. After a few minutes tinkering, suddenly my Macbook picked up the 5G wifi of the router, and when I look into system report, the channel it listed now includes my router channel and the interface is now en1 (idk why it switched to that.) Several minutes later, my Mac went into sleep mode, and the 5G connection was lost. I tried SMC and NVRAM reset, removing and adding a thunderbolt bridge, all with no luck. The 5G can no longer be detected by my Macbook. The router is not damaged btw, since my phone and iPad can pick the 5G immediately just fine. I ran sudo networksetup -listallhardwarereports, but it returns the list of possible commands, with ** Error: The command is not recognized. at the bottom. Also tried: sudo ifconfig en1 up, but it's still inactive afterward when trying to check with sudo ifconfig -a. So I think, if I am able to force en1, then it will pick 5G again just fine. Where do you think the problem lies?


Why am I seeing two nm-applets in Xubuntu panel?

Here is the screenshot of it.  I am seeing this problem after I rebooted my PC. Xubuntu Version 20.04.1


The only endomorphism of $\mathbb{R}$ is identity

How to prove that the only endomorphism of $\mathbb{R}$ is identity?   Any hints are appreciated. Thanks.


I find it very strange that $$ e^x \geq x^e \, \quad \forall x \in \mathbb{R}^+.$$   I have scratched my head for a long time, but could not find any logical reason. Can anybody explain what is the reason behind the above inequality? I know this is math community, but I'd appreciate a more intuitive explanation than a technical one.


What's the common name for this GUI element? (left-right box, assignmentbox, relationbox)

You often see the following element to assign objects of a certain type to another object. We call it relationbox, but I can't find anything at all about relationboxes on the internet... It's such a simple and well known element, there's got to be a well known name!  Here is an example (source: ):


I have several calendar views and I would like to point them to different page views I have created.   Is there a way of doing this? If so how would I go about doing this? It currently points to  DispForm.aspx  Please note SharePoint is fairly new to me.  I will appreciate any help on this.


2000s (or earlier) book: farmer sent to prison planet but crash lands on dangerous world instead

I am looking for a book that I would have read about 17 years ago (not sure how old it was by that point).  Would have been published prior to 2002 I believe.  The book begins with the main character being some sort of farmer or tradesman who is very strong.  His dad is sick and he is bringing him to a hospital (carrying him actually, recurring mentions of how strong this guy is) but when he arrives the dad dies or is already dead. In his grief he accidentally kills someone or is framed (can't remember that part well) and is shipped to a prison planet along with other folks.  I believe everybody was cryogenically frozen but I can't be sure on that. The ship crash lands along the way, on a dangerous planet with dangerous fauna.  He bands together with his fellow prisoners to fight both the creatures/fauna and other inmates. One inmate was genetically- or cybernetically-engineered and is super dangerous. He beats him because he was strong.  Forces are sent to kill the crash landed inmates and they overpower them, and possibly return to Earth to start some sort of revolution.  I think the forces had some gnarly fire guns or plasma rifles of some sort.  I remember thinking they were excessively powerful.  I believe this is actually a series and not just a single book.  If I remember right it had pretty neat cover art.  The main character also may have gotten romantic with the main girl in the story too.  The beginning antagonist in the story which was the dangerous genetically engineered guy was also covered in tattoos I think.  I also think they eventually reconciled when they had a common enemy which was the Earth armed forces.  I might be thinking of a different book but I believe when the earth forces first landed they used a weapon called a "sun gun" that vaporized people and was rather destructive.


I was reading a book on compressive sensing wherein they mentioned that in the limit, the zero'th norm of a vector is the number of non-zero elements in that vector. That is,  $$\lim_{p\rightarrow 0} ||x||_p = ||x||_0 = | \text{supp}(x) |$$  where $\text{supp}(x)$ is the number of non-zero elements in $x$.  I could not prove this. Any help would be greatly appreciated.


Eclipse + MinGW : undefined reference to `myClass::myInternalVar'

I just installed MinGW and Eclipse and tried to program a very simple Demo, I jst used the Project for Building an executable and added two files for a Class. It acturally generates two objects, text.o(the function with main) and the MyClass.o. But I get the Error, there seems something wrong with the linking I guess:  12:23:24 **** Incremental Build of configuration Debug for project test **** Info: Internal Builder is used for build  g++ -O0 -g3 -Wall -c -fmessage-length=0 -o "src\MyClass.o" "..\src\MyClass.cpp"   g++ -O0 -g3 -Wall -c -fmessage-length=0 -o "src\test.o" "..\src\test.cpp"   g++ -o test.exe "src\test.o" "src\MyClass.o"   src\MyClass.o:MyClass.cpp:(.rdata$.refptr._ZN7myClass13myInternalVarE[.refptr._ZN7myClass13myInternalVarE]+0x0): undefined reference to `myClass::myInternalVar'  collect2.exe: error: ld returned 1 exit status  MyClass Headerfile:  #ifndef MYCLASS_HPP_ #define MYCLASS_HPP_  class myClass{  private:    static int myInternalVar;  protected:  public:    myClass();    myClass(int initVal);    ~myClass();    void set(int value);    int get();  };  #endif /* MYCLASS_HPP_ */   MyClass Sourcefile:  #include "MyClass.hpp"     myClass::myClass()   {    }    myClass::myClass(int initVal)   {    }    myClass::~myClass()   {    }    void myClass::set(int value)   {     myClass::myInternalVar = value;   }    int myClass::get()   {     return myClass::myInternalVar;   }   Test Source:  using namespace std; #include <iostream> #include "MyClass.hpp"   int main() {     myClass* myClass_object = new myClass( 33 );   int i = 0;   cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!    i = myClass_object->get();    cout << "Value is: " << i << endl;      return 0; }   I tried to find a solution; I don't think it's the Code that's wrong, but the setting within eclipse. Can anyone help, I just started programming with MinGW and eclipse and it's frustrating that such an easy example fails.  Thank you very much,  Sebastian


Our statistical inference course material states the following:     The principle of mean square error can be derived from the principle   of maximum likelihood (after we set a linear model where errors are   normally distributed)   After that the material apparently shows this derivation over several pages of math equations with little explanation.  As I understand it, by 'principle' they mean the reason why MSE is a particularly good loss function. On another page they even explicitly state that in practice it's the most important loss function (within some context, I suppose).  Is it possible to explain without heavy math why MSE is a particularly good loss function? For example, which property makes it more important than mean absolute error (MAE)? Intuitively I would guess that MAE would be superior to MSE in most practical applications.


I recently tried to install a custom ROM in my samsung j6+ but halfway through it my PC turned off. Then the problem starts i decided to reboot my phone but it shows this error "No command" " #Reboot recovery cause is [[check_bootmode]RebootRecoveryWithKey]# Block-based OTA Supported API: 3 # MANUAL MODE v1.0.0# E:Failed to mount / cache: Invalid argument  The error message keeps appearing for just a fraction of a second then disappear and appear again I tried to go to recovery mode but no luck i cant get to it I drained the battery to turn off the device then go download mode but after get to it, it also keep restarting help me please. thank you


Why is charge not taken as a fundamental unit?

According to the definition of electric current, it appears to be a derived quantity. Charge on the other hand seems more fundamental than electric current.  Then why is current taken as fundamental quantity instead of charge?   Is it arbitrary choice? Is it because we can measure current more efficiently than charge or some other reason?


How do I install third-party packages in MacTeX?

I would like to know how I can install third-party packages that are not included in the standard MacTeX distribution.   I am interested in using jecon.bst in particular.  The current situation is:   The .bst file works fine when I put the file in the same folder as the main .tex file. I am using TeXShop. The manual of jecon.bst file suggests that I put the file in the folder where jplain.bst is located, and I did that. In addition to this, I copy pasted jecon folder into bibtex/bst folder as well. However the engine upbibtex cannot locate jecon.bst.   did not solve my problem. I could locate the texmf hidden folder without any problem, as I indicated above.   Is there anything else I have to do for upbibtex to recognize jecon.bst?


GIS 3.12.2 Error after installing; Could not load qgis_app.ddl

After installing QGis, I got the following error:     Does anyone have a solution to get QGis working?


A  bijective function $f:\Bbb R\to [0, \infty)$  has infinitely many discontinuities.   Suppose that $f$ has finitely many discontinuities say $\{x_1,x_2,\ldots ,x_n\}$.Then $f$ is continuous on $(-\infty,x_1)\cup (x_1,x_2)\cup \ldots \cup (x_{n-1},x_n)\cup (x_n,\infty)$.  So $f$ is monotone on each of the sub-intervals.  Obviously $f(x_i,x_j)\cap f(x_j,x_k)=\emptyset$ since $f$ is bijective.  Now $f(x_i,x_j)$ will be an interval since $f$ is injective.Also it will be an open interval since $f$ is continuous.  Now $[0,\infty)\setminus\cup \{(f(x_i,x_j))\}\cup f(-\infty ,x_1)\cup f(x_n,\infty)$ must have $n+1$ points since $f(x)\neq 0\forall x$ and $f(x)\neq f(x_1),f(x_2)\ldots f(x_n)\forall x$  But $\Bbb R\setminus \{x_i\}$ has $ n$ points.  So we have a contradiction.  Is the proof correct?Please suggest required edits


I did this using trial and error, but I was just wandering if there is an algebraic way of solving this?  I thought about double angle formula but that doesn't work properly does it?  I then tried writing it in the form $x \cdot 2 \cot(x) = 1$ but even then, I can't solve it properly by re-writing $\cot(x)$ because of the $x$ outside the brackets.  Anybody know how I would do this algebraically?


I am trying to write a simple encryption program (Caesar cipher) and I am running into a snag. I am relatively new to the world of C and pointers, coming from Java originally.  Whenever I run the following code, it will give me the error message Segmentation fault and terminate.   I have done a little reading about what that means, but I still don't fully understand it, or what is wrong with my code, or how to remedy the issue.  If you could help with any of those things that would be greatly appreciated.  #include <stdio.h> #include <ctype.h> #include <string.h>  void encrypt(char *input);  int main() {     char *instructions = "pipi";      encrypt(instructions);      printf("Here are your secret instructions:\n%s\n", instructions);      return (0); }  void encrypt(char *input) {     while (*input != '\0') {         if (isalpha(*input)) {             *input += 1;             if (!isalpha(*input)) {                 *input -= 26;             }         }         input++;     } }


Export Email from Thunderbird to Microsoft Outlook

Export Mail from Thunderbird to Microsoft Outlook  There is no default export feature in the application


Pullback of a Volume Form Under a Diffeomorphism.

I have an exercise here, which I have no idea how to do.     Problem: Let $ U $ and $ V $ be open sets in $ \mathbb{R}^{n} $ and $ f: U \to V $ an orientation-preserving diffeomorphism. Then show that   $$   {f^{*}}(\text{vol}_{V}) = \sqrt{\det \! \left( \left[   \left\langle {\partial_{i} f}(\bullet),{\partial_{j} f}(\bullet) \right\rangle   \right]_{i,j = 1}^{n} \right)} \cdot   \text{vol}_{U}. $$   Notation:         $ \text{vol}_{U} $ and $ \text{vol}_{V} $ denote the volume forms on $ U $ and $ V $ respectively.   $ f^{*}: {\Lambda^{n}}(T^{*} V) \to {\Lambda^{n}}(T^{*} U) $ denotes the pullback operation on differential $ n $-forms corresponding to $ f $.


Let $G$ be a group and $H$ and $N$ be subgroups of $G$. I wonder what the canonical meaning of "$H$ normalizes $N$" in literature is: (1) $\forall h\in H$, $h N h^{-1}=N$. (2) $H=\{h\in G: hNh^{-1}=N\}$, namely $H$ is the normalization of $N$. I wonder which of the two "definitions" above is more standard in the math literature.


I don't know what should to write with I would think you were bluffing if it, should it be wasn't or weren't for?


Is the Series Sin(k)/k Absolutely Convergent?

I know that the series $\sum_{k=1}^\infty \frac{\sin k}{k}$ converges (to $\frac{\pi - 1}{2}$), though by crazy stuff with Dirichlet Kernels or by reverse-engineering $\frac{\pi - x}{2} = \sum \frac{\sin (kx)}{k}$ using Fourier Series.  My question instead: Is $\sum_{k=1}^\infty \frac{\sin k}{k}$ absolutely convergent?  My gut instinct is no: It behaves not-much-better than $\sum \frac1k$, but that's certainly not a rigorous proof.


I am new to C++, I was trying to deallocate an object with different ways. Here is my code:  class foo{ public:     int* bar;      foo(int N){         bar = new int[N];     }      ~foo(void){         delete[] bar;     } };  int main(int argc, char* argv[]){     foo* F = new foo(10);     delete F;     return 0; }   This works perfectly, but if I write main like this:  int main(int argc, char* argv[]){     foo F = foo(10);     F.~foo();     return 0; }   I will end up with an "glibc detected". I guess I should somehow deallocate the "bar" pointer since it was allocated during construction.  Thus my question is how can I deallocate an object like this? Thanks.


I want to include implementation of a function inside an .h file.  I know I would rather separate declaration and implementation to .h and .c file accordingly, this is not a part of my question.  When I implement the function inside the class, I receive no errors:  class Foo {   public:     // Class constructor     Foo() { } };   When I implement the function outside the class (still in the .h file):  class Foo {   public:     // Class constructor     Foo(); };  Foo::Foo() { }   I receive the following error:    multiple definition of Foo:Foo()  Can someone explain me the logic behind this? Thanks.


Well the title says it all.  Why is there no link to share on LinkedIn anymore?    [I realized this from an ]


jquery - parent element not being removed

The code:     $('.del').click(function(e){         $(this).parents('.order-item').remove();         if($('.order-item').length == 0){             $('#order-items').append(Data.order_item_clone)         }     })  What am I doing wrong? As you can see, I am trying to remove the parent element '.order-item' based on the '.del' element clicked. Nothing is happening. This is what the html looks like:

             <button class="del" style="width:100%; height:77px"> Del </button>

             <button class="print" style="width:100%; height:77px"> Print </button>

  For the most part, this html is generated dynamically with javascript/jquery. Can anyone help? Thanks in advance Edit: When I do $('.del').eq(0).parents('.order-item').remove() things work find, so there is something wrong with $(this)


A word for a symbol which has outlived its origin

I am quite sure that there is a word for a symbol which was originated by a real-life, physical prototype but has since then outlived its origin.  Most notable example: the save button with floppy drive on it. Also, to a lesser degree, envelopes in email clients, and so on.  The "anachronism" or "metonymy" are close, but not exactly what I'm searching for.


The exception is NullPointerException. There is wrong somethings about searchview. When i run this program doesn't work. Mostly people's exception about xml's "android" to "app" but mine still not working       Process: com.mcht.mynotes, PID: 24583                                                java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.SearchView.setSearchableInfo(android.app.SearchableInfo)' on a null object reference                                                    at com.mcht.mynotes.MainActivity.onCreateOptionsMenu(MainActivity.java:61)                                                    at android.app.Activity.onCreatePanelMenu(Activity.java:3142)                                                    at android.support.v4.app.FragmentActivity.onCreatePanelMenu(FragmentActivity.java:328)                                                    at android.support.v7.view.WindowCallbackWrapper.onCreatePanelMenu(WindowCallbackWrapper.java:93)                                                    at android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.onCreatePanelMenu(AppCompatDelegateImplBase.java:332)                                                    at android.support.v7.app.AppCompatDelegateImplV9.preparePanel(AppCompatDelegateImplV9.java:1370)                                                    at android.support.v7.app.AppCompatDelegateImplV9.doInvalidatePanelMenu(AppCompatDelegateImplV9.java:1650)                                                    at android.support.v7.app.AppCompatDelegateImplV9$1.run(AppCompatDelegateImplV9.java:134)                                                    at android.os.Handler.handleCallback(Handler.java:751)                                                    at android.os.Handler.dispatchMessage(Handler.java:95)                                                    at android.os.Looper.loop(Looper.java:154)                                                    at android.app.ActivityThread.main(ActivityThread.java:6119)                                                    at java.lang.reflect.Method.invoke(Native Method)                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)   there is faulty code ;      @Override     public boolean onCreateOptionsMenu(Menu menu) {     MenuInflater inflater = getMenuInflater();     inflater.inflate(R.menu.main_menu, menu);       //search     SearchView searchView = (SearchView)this.findViewById(R.id.app_bar_search);     SearchManager searchManager = (SearchManager)getSystemService(Context.SEARCH_SERVICE);     searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));//line 61     searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {         @Override         public boolean onQueryTextSubmit(String s) {             Toast.makeText(MainActivity.this, s, Toast.LENGTH_SHORT).show();             return false;         }          @Override         public boolean onQueryTextChange(String s) {             return false;         }     });       return true; }   and xml file , I have icc_search_black_24dp.png . if you ask why i am not using "ic_search_black_24dp" its only for testing purposes;  <?xml version="1.0" encoding="utf-8"?>     xmlns:android="http://schemas.android.com/apk/res/android">  <item     android:id="@+id/newNote"     android:icon="@drawable/ic_note_add_black_24dp"     android:title="@string/item"     app:showAsAction="ifRoom" /> <item     android:id="@+id/app_bar_search"     android:checkable="false"     android:enabled="false"     android:icon="@drawable/icc_search_black_24dp"     android:title="Search"     app:actionViewClass="android.support.v7.widget.SearchView"     app:showAsAction="always" />


What is the Ubuntu "built in virus protection"?

At  there is this "only in ubuntu" that says "Built in virus protection":  What is the Ubuntu built it protection? What is the program in charge of this and how does it work?


So last week I was trying to install Ant, and accidentally deleted my environmental variable Path. I dont really know what I am doing. What effect will this have/what can I do to fix it?


How to add 48 hours or 2 days to a Date timestamp in html

I want to add to a Date timestamp 48 hours or 2 Days in html.   E.g. 04.10.2019 + 2days = 06.10.2019. I don't know if this is possible with html.   Here is that part of my code:
         {{date.startDate | date:'dd.MM.yyyy'}}	         {{date.endDate | date:'dd.MM.yyyy'}}
   The date.startDate is of type Date.  The date.endDate is of type Date too.   I'm want to do something like this:
             {{date.startDate | date:'dd.MM.yyyy'}}	             {{date.endDate =(date.startDate + 2days) |date:'dd.MM.yyyy'}}
   I would appreciate any suggestion of how to do this, or any source to read about it.


What is the difference between  "I'll go to the sea." and  "I will be going to the sea."  If it's ok with you, could you tell me how to use these?


Please put the cup there. Is "Please" an adverb in this sentence

As per my understanding there is adverb in above sentence, but my English teacher is saying Please is the adverb in this sentence. If Please is the actual adverb in the sentence then what there will be?


Let $X$ be a Banach space and let $A\colon X\to X^*$ be a linear operator satisfying $$(Ax)(x)\geq 0\quad\forall x\in X.$$ Show that $A\in L(X,X^*)$.  Here, $L(X,X^*)$ stands for the set of bounded linear transformations from $X$ to $X^*$ (the set of bounded linear functionals on $X$). By considering the identity $(A(x+y))(x+y) \geq 0$ and $(A(x-y))(x-y) \geq 0$ (I think) I was able to show that $A$ was bounded if and only if the expression $(Ax)(x)$ was bounded (across $|x| \leq 1$). But this doesn't seem to help much as I don't know how to show this expression is bounded. Does anyone have any ideas of how I could solve this one? EDIT: I asked this question on Reddit as well and someone proposed the following counter example that I cannot find fault in.  Let bₙ, n ∈ ℕ, be a countable set of linear independent vectors and bⁿ their duals. Complete bₙ to an algebraic basis of X. Set Abₙ = n⋅bⁿ and 0 on the other basis vectors  It'd be nice if someone could help explain what's wrong with this logic (or confirm that this question is in fact faulty as stated).


A conversation between 2 persons in two different languages

If you've seen the first Star Wars trilogy (meaning Episodes 4 - 6), in the original Star Wars movie, Han Solo is in the cantina talking with Greedo (and yes, darnit, Han shot first! no shame in that, Greedo posed a mortal danger to him).  But each is speaking in his own language, Han in English (Empirish?) and Greedo in his native language.  Yet the conversation proceeded normally -- for a little while, at least.  I have a personal experience with this phenomenon, having once been in the US Army in the Netherlands attending a NATO class on how to maintain a particular kind of microwave radio, and for the lab portion of the class I was paired with a German soldier. It happened that we were both bilingual in English and German, and so rather than both of us using one or the other language, I proposed that we speak our native languages, and see how that would work -- both of us understood each other's language better than we spoke it.  So we did and it worked out really well.  I imagine that it sounded darned funny to some of the other US soldiers in the room who overheard our conversation (the class was taught in English, so non-US and -Brit soldiers had to have English as an additional language to attend).  Designating one's native language as A, and a second language as B, is there a word for this kind of conversation where the two participants speak their own language A while understanding in their language B?


Questions auto bumped by the Community User even though they are locked

This question on Server Fault was just bumped to the front page like any other question that has no upvoted answers and is a bit old. The thing is, it's been locked. Shouldn't these be treated as "closed" questions and not be poked to the front page? The  says that locked and closed questions aren't bumped.  As of today, the question has been bumped every month, and received its last bump 2 days ago.  The whole point of bumping these posts is to get new contributions, but a locked post can't have any content added or revised.      Edited: as of today, 2017-03-30, the same question is yet again bumped:


Identify new iPhone model on xcode (5, 5c, 5s)

I'm writing an app that has different functionality depending on the model of iPhone. Is there a way to distinguish between iPhone 5, and 5c 5s? I can not do a check on the display because it is identical. Thanks in advance.


Is there something like a Root Mean Square Percentage Error (RMSPE)? Or: What is the name of this error?

\begin{equation} \text{RMSPE} = \sqrt{\frac{1}{n} \cdot \sum_{i=1}^n \Delta X^2_{\text{rel},i}}\cdot 100\% \end{equation} with  \begin{equation}  \Delta X_{\text{rel},i}=\frac{X_i}{T_i}-1, \end{equation} where $T_i$ is the desired value and $X_i$ is the actual value.  If this error actually exists, then a citable source for it would be greatly appreciated. If it does not exist, then why so?  Thanks in advance.


What other uses are there for Prime numbers?

Simple question out of curiosity...  Beside the use of cryptographic safety and prime factorization, what other uses are there for prime numbers?  Thank you.  Edit:  To clarify and not confusing with a possible 'duplicate' post. I'm asking for other uses than cryptographic-like applications. (this include cryptography (ex. RSA), hashes, pseudo random, etc.) It doesn't necessary have to be something with engineering either. But knowing the innovative uses of primes in programs would be nice to know.  Another frequent answer is Cicadas, because they emerge every 13 or 17 years. For me that is something up for debate as it could also be just a coincidence. I am comparing this example with petals, where you can see a repeated form of Fibonacci sequence with all different types of petals. All the while, doing some more research there are Cicadas that emerge every year as well.  I'm just curious as what else there is out there that could benefit from the use of primes.


Need help on this math question about operations on magnitudes

Let $z$ and $w$ be complex numbers satisfying $|z| = 5, |w| = 2,$ and $z\overline{w} = 6+8i.$ Then enter in the numbers $$\left[|z+w|^2, |zw|^2, |z-w|^2, \left| \dfrac{z}{w} \right|^2 \right]$$ below, in the order listed above. If any of these cannot be uniquely determined from the information given, enter in a question mark. By plugging in numbers ($z=5$ and $w=2$), I got the following: I got 49 for the first one, 100 for the second one, 9 for the 3rd one, and 6.25 for the 4th one. But it was wrong, so I don't know how to do this question.


Story where Earth is saved by sending nuclear bomb to alien race controlling it

I read a science fiction story as teenager, over 20 years ago, these are the details I remember:   Earth is controlled by an alien race who conquered it. The situation is really desperate, the technology gap is huge. Earth people became mostly slaves, sending materials to the home planet of the invaders.  The small resistance group on Earth succeeds to send a nuclear bomb to the invader's home planet, causing them to retreat from Earth after it caused major damage, maybe even destroyed the whole planet in a chain reaction of some kind.   I think this was written by Robert Heinlein, but not sure about it.  Can anyone help me remember what story this might be?


I upgraded to Cosmic through tonight, and now I have no audio: neither my laptop speakers nor the ehadphone jack seem to do anything. The audio settings menu shows only a "dummy audio" option.  Below are the outputs of aplay and lspci, which I have seen asked for in the Ubuntu forums (on three year old threads, but whatever).  What can I do to get the sound working? My only idea would be to reinstall  18.04, which worked fine.  $ lspci | grep -i audio 00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)  $ aplay -l **** Lista di PLAYBACK dispositivi hardware **** scheda 0: PCH [HDA Intel PCH], dispositivo 0: ALC269VC Analog [ALC269VC Analog]   Sottoperiferiche: 0/1   Sottoperiferica #0: subdevice #0 scheda 0: PCH [HDA Intel PCH], dispositivo 3: HDMI 0 [HDMI 0]   Sottoperiferiche: 1/1   Sottoperiferica #0: subdevice #0 scheda 0: PCH [HDA Intel PCH], dispositivo 7: HDMI 1 [HDMI 1]   Sottoperiferiche: 1/1   Sottoperiferica #0: subdevice #0 scheda 0: PCH [HDA Intel PCH], dispositivo 8: HDMI 2 [HDMI 2]   Sottoperiferiche: 1/1   Sottoperiferica #0: subdevice #0 scheda 0: PCH [HDA Intel PCH], dispositivo 9: HDMI 3 [HDMI 3]   Sottoperiferiche: 1/1   Sottoperiferica #0: subdevice #0 scheda 0: PCH [HDA Intel PCH], dispositivo 10: HDMI 4 [HDMI 4]   Sottoperiferiche: 1/1   Sottoperiferica #0: subdevice #0  $ sudo lshw -C sound sudo: impossibile risolvere l'host riccardo-laptop: Argomento non valido   *-multimedia                      description: Audio device        product: Sunrise Point-LP HD Audio        vendor: Intel Corporation        physical id: 1f.3        bus info: pci@0000:00:1f.3        version: 21        width: 64 bits        clock: 33MHz        capabilities: pm msi bus_master cap_list        configuration: driver=snd_hda_intel latency=32        resources: irq:129 memory:dc228000-dc22bfff memory:dc200000-dc20ffff


Does leavened bread made with yeast require gluten to rise?

I want to understand which flours can and can't be used with yeast to get a rise for baking bread. From what I understand, yeast consumes sugar and produces carbon dioxide, which gets trapped inside the dough and causes it to expand during proving.   Does gluten have any special properties for trapping carbon dioxide that make it uniquely capable of trapping CO2 or can I perform this process with a variety of flours?   Flours I'm interested in are soy flour, defatted peanut flour, brown rice flour,  dark rye flour, chickpea flour, sorghum flour, oat flour, and several varieties of corn flour.


We have proved that the universe is expanding by observing distant planets and stars going away from each other.  So can we predict our location in the universe by observing the different propotions of distance of sepration of planets arounds us taking in mind the different distance of those objects, if we are in the center all objects will seperate at the same rate.


Newborn photography - Lens for crop Nikon D7200

I want to start photograph newborns. But know I am pretty comfused which lens would be good on my Nikon D7200 crop camera.? Everywhere i look for information all suggestions are for full frame camera. At start I wanted 24-70mm lens, bur now I dont know.  So maybe you can help me decide. Which lens could give me sharp pictures and beautiful bokeh?  :)


What is the best place to save a xindy style file (.xdy)? I read about XINDY_SEARCHPATH but what if I can’t change it because I’m only the developer and have no access to the users settings or when I want to publish a style via CTAN. Is there any place for such files?  Furthermore the file should not be deleted if the distribution is updated.


Create a Symbolic link to the merged contents of 3 folders

I have 3 folders with large amount of data in each which has to be maintained seperately. Can I create a sym link or shortcut.in windows which should show me the merged contents of the 3 folders. I am not looking for library conf in Win7.   Any suggestion is highly appreciated.


How to prove a commutative, with unit, Noetherian ring $A$ only has finitely many minimal prime ideals via the following step?   I have proved:     Step. All radical ideals of Noetherian ring $A$ can be expressed as an intersection of finitely many prime ideals.   How to continue?


Photoshop/Illustrator difference in blend modes

I have used photoshop for some time and am now trying to learn Illustrator (Both version CS5) I would like to know if there is a difference in the way the blend modes work between these two apps, specifically "Hard Light", I have included an example of the results of using the hard light blend mode on a white to black gradient square on a block of solid colour.  The left image is what I would expect from Photoshop and on the right is what Illustrator displayed, is there anything I'm missing here?  Comparison of Photoshop and Illustrator Hard Light blend mode:


I am trying to implement a view similar to facebook news feed. I need to display a text like "USER_NAME posted a video on PAGE_NAME" . page name needs to be an uibutton that goes to the pageview when the user clicks on it. so the problem here is, the page name text is not breaking into next line if it's too long to fit in one line. I have tried NSLineBreakByWordWrapping but it's not helping.   EDIT : NSLineBreakByWordWrapping and setting numberOfLines to 0, just breaks the text to bottom of the PAGE_NAME button itself. but i need it to go to the bottom of username's.   Refer the image here to know how I'm supposed to implement


Can I blow up my 15-year-old photos to good quality 30″x40″ prints?

I want to blow up some old prints of my children. They were taken 15 years ago on a Nikon camera. I want to blow them up to 30x40" but the photo lab gives me the warning that the resolution is not high enough for a good quality print.   So I looked into maybe ordering the "blow up 3" app, which also means I need to get a subscription to Photoshop. I would be okay with all this investment if I were sure that it would result in good quality blow ups, but I'm not sure. Does anyone have any advice for me? I'm not a photographer at all, but I've taken some awesome photos in my past!


Prove that the integral operator is bounded

Prove that the following operator is bounded on $L^{2}(0, \infty)$:  $Af(x)$ = $\frac{1}{\pi} \int_{0}^{\infty} \frac{f(y)}{x+y}dy$  with $||A|| \le 1$.  Attempt at Solution  It can be shown that:  $\int_{0}^{\infty} \frac{|f(y)|}{|x+y|}dy \le [\omega(x)\int_{0}^{\infty} \frac{|f(y)|^{2}}{|x+y|}\omega(y)^{-1}dy]^{\frac{1}{2}}$  I am trying to show that:  $\int_{0}^{\infty}\frac{1}{\pi}\omega(x)\int_{0}^{\infty} \frac{|f(y)|^{2}}{|x+y|}\omega(y)^{-1}dy = \frac{1}{\pi}\int_{0}^{\infty} \frac{1}{(1+y)y^{\frac{1}{2}}}\int_{0}^{\infty}|f(y)|^{2} = \int_{0}^{\infty}|f(y)|^{2}$  I can't seem to find a suitable choice of $\omega(x)$ such that result holds.


Is there a way to pass a call back function in a Java method?  The behavior I'm trying to mimic is a .Net Delegate being passed to a function.  I've seen people suggesting creating a separate object but that seems overkill, however I am aware that sometimes overkill is the only way to do things.