In the manual of sudo I need to search for -k so I tried this:  man sudo | grep '\-k'   But it would result a paragraph be half-written on the output:  sudo -h | -K | -k | -V              Similar to the -k option, except that it removes the user's  -k, --reset-timestamp   Instead I tried printing the whole manual and color the search phrase with:  man sudo | grep '\-k\|$'   But since the manual page is too long, I can't scroll up enough to reach the beginning of the output (Note: I don't want to change the Scrollback lines in the profile settings of Terminal).  So I need to use more or less commands, to be able to reveal the output by page, so I tried:  man sudo | grep '\-k\|$' | less   But of course it doesn't work, because pipe runs the 2nd command on the 1st command.  Any idea how to redirect pipe?  Or make grep print whole paragraph instead of one line? (the lines are based on Terminal's window size)


Is there a way to use my smart phone as a second screen of my laptop?

About ten years ago everyone at work started using dual monitors. It was great. But I switched to laptop for most tasks and do not have a second monitor. It occurred to me that I have a second screen right next to me (my phone) that I'm not using.   Is it possible to use it as a second monitor? I can imagine using it to show a training video while I follow along on the main screen.   I have a Mac and my phone is Android Galaxy 6S. I have an older iPhone 4S as well. Funnibly enough, my Android phone has higher resolution than my Macbook.


I'm following  and  example that supposedly is using gnuplot. First, I'm getting results (U15.10, gnuplot 4.6.6, Emacs 24.5, latest Ubuntu texlive) from simply pasting the code into Emacs and hitting "Latex". It produces many files, including a pdf. But upon viewing the pdf I see everything plotted well but the actual plot lines. Not sure what this means or how to correct. Also, how does this involve gnuplot? I don't see it being called.


Given $a,b,c>0$, prove that $$(a+\frac{bc}{a})(b+\frac{ca}{b})(c+\frac{ab}{c})\geq 4 \sqrt[3]{(a^3+b^3)(b^3+c^3)(c^3+a^3)}.$$  I noticed that by AM-GM the LHS $\leq 4[\frac{2(a^3+b^3+c^3)}{3}]^3 =\frac{8}{3}(a^3+b^3+c^3)$ and the RHS $=2abc+\frac{a^2b^2}{c}+\frac{b^2c^2}{a}+\frac{c^2a^2}{b}+a^3+b^3+c^3.$ Therefore proving $2abc+\frac{a^2b^2}{c}+\frac{b^2c^2}{a}+\frac{c^2a^2}{b}\geq \frac{5}{3}(a^3+b^3+c^3)$ would suffice. However, I've found a counterexample to that last inequality. So how could I've done better?


Uniqueness of Artin-Wedderburn decomposition

I am studying Artin-Wedderburn structural decomposition theorem for semisimple rings. I understand that it says that any semisimple ring, $R$ is isomorphic (as rings) to $M_{n_1}(D_1) \times M_{n_2}(D_2)\times\cdots\times M_{n_k}(D_k)$ for some $n_i$ and division rings $D_i$. Is this decomposition unique, i.e., suppose $R$ is also isomorphic to $M_{n'_1}(D'_1) \times M_{n'_2}(D'_2)\times\cdots\times M_{n'_{k'}}(D'_{k'})$, then is $k=k'$ and $n_i$ equal to $n'_i$ and $D_i \approx D'_i$ up to some permutation? If so, how?


Science fiction story where a boy chooses a knife instead of other weapons

What is the name of the book/story where a boy goes to a planet and is offered the choice of  many weapons but chooses a knife.  I read it when I was in secondary school in the seventies.


Another problem I personally struggle with in peer-review publication process is the situation when review takes really, really, really long. The precise definition of "long" is probably very area-specific: for example a paper in Maths will probably took longer to review than one in Physics. Many well-established journals and major publishers, sadly, prefer not to specify the "rules of the game" precisely, particularly how long the review process should normally take. Fortunately, I quite often serve as a referee with the very same journals and know the amount of time I am given to write a review. Unfortunately, when I am an author, I do not observe these deadlines to be always met. For example, a notable U.S. publisher would ask a reviewer to send a review in 2 months; but in practice a first review of my paper once took as long as 8 months.  As a rule of thumb, I usually start writing to editors with questions about "the status of my paper" in X+1 months time, when X is a deadline time for a reviewer to submit a review. This strategy is not particularly successful — what I usually get is a recommendation to be more patient. Since there is no "official" deadline time announced, there is no formal ground for complaints here.  Of course, such delays lead to a whole bunch of funny situations, particularly if a preprint is put online (e.g., on arXiv) and the results are presented in some conferences. Follow-ups with no official paper to cite, grant applications in which you can not justify by a solid publication, good research but bad bibliometrics or CV, to name just a few.   Could you recommend an efficient way to deal with this problem?


The disjoint union of metrizable spaces is metrizable.

Let $\{X\}_{\alpha\in\mathscr{A}}$ be a collection of metrizable spaces and consider their disjoint union $$X:=\bigsqcup_{\alpha\in\mathscr{A}}X_{\alpha}.$$ Show that $X$ is metrizable.  Not sure where to begin. I figured some employment of a theorem is need; such as, the Urysohn Metrization Theorem, but I don't see how that could be used. Any help is appreciated.


Using for loop in tikz to draw repeated shapes

I am trying to create a lenticular pattern like the one in the picture.  I believe the repeated shape can be drawn using a for loop in tikz, but I wasn't able to get it done properly.   Appreciate any help on looping.    Edit: This is a part of a bigger diagram and below is the code.  \begin{document} \begin{tikzpicture}[>={Stealth[inset=0pt,length=10pt,angle'=35,round]}]  \pgfmathsetmacro{\lensRadius}{6} \pgfmathsetmacro{\lensHeight}{3} \pgfmathsetmacro{\startAngle}{asin(\lensHeight/\lensRadius)}  \draw []  (0,\lensHeight) arc[start angle=180-\startAngle,delta  angle=2*\startAngle,radius=\lensRadius]node [below, align=center] {\\  [1em]Main\\[-1ex]lens} arc[start angle=-\startAngle,delta angle=2*\startAngle,radius=\lensRadius] -- cycle;  \draw [line width=1mm ] (-1.5,3) -- (-1.5,-3) node [below, align=center] {\\  [1em]Weak\\[-1ex]diffuser};  \draw []  (6,\lensHeight) arc[start angle=180-\startAngle,delta  angle=2*\startAngle,radius=\lensRadius]node [below, align=center] {\\  [1em]Field\\[-1ex]lens} -- cycle;  \draw[] plot[only marks, mark=*,mark size=10pt,mark options={fill=Sepia}]  coordinates{(-6.5,0)} node[below, align=center]{\\[1em]Object}; \draw[] (-6,0) -- (0,3); \draw[] (-6,0) -- (0,-3);  \draw[] (6.5,0) -- (0,3); \draw[] (6.5,0) -- (0,-3);  %lenticular pattern \pgfmathsetmacro{\lensRadius}{0.2} \pgfmathsetmacro{\lensHeight}{0.2} \pgfmathsetmacro{\startAngle}{asin(\lensHeight/\lensRadius)} \draw []  (8,\lensHeight) arc[start angle=180-\startAngle,delta  angle=2*\startAngle,radius=\lensRadius];  \draw [line width=0.25mm ] (8,3) -- (8,-3) -- (8.2,-3) -- (8.2,3) -- cycle;  \end{tikzpicture} \end{document}   Output:


I'm not able to use wireshark "couldn't run /usr/bin/dumpcap in child process"

This message appears:  No interface can be used for capturing in this system with the current configuration.  (couldn't run /usr/bin/dumpcap in child process: permission denied)   Tell me how to avoid it.


I have an application that goes by that passes for my PHP a variable (nomecardapioBD and which received and recorded in the variable :nomecardapioBD) which is the table name that I want to select all rows and columns.  But to receive the variable via post can not make the appointment. Can anyone tell me what was wrong with this part of my code ?  $query = "Select * FROM :nomecardapioBD ";    $query_params = array(         ':nomecardapioBD' => $_POST['nomecardapioBD']     );  //execute query try {     $stmt   = $db->prepare($query);     $result = $stmt->execute($query_params); } catch (PDOException $ex) {     $response["success"] = 0;     $response["message"] = "Database Error!";     die(json_encode($response)); }  // Finally, we can retrieve all of the found rows into an array using fetchAll  $rows = $stmt->fetchAll();


Load MrSID file in QGIS 2.2 on Ubuntu 13.10

Is there a way to do this? I have tried a number of the write ups on this, and it appears that libgdal-mrsid-src no longer exists. Is there any other workaround? USDA NAIP imagery is sent as MrSID.


I've tried that example   In a new document and I get gnuplottex package working, however, when I include gnuplottex package in my project doesn't work properly and it is the package because when I remove it does work fine. With package loaded I get that message:  ! Package catchfile Error: File `<projectname>.gnuploterrors' not found.   and this one:  Runaway argument? \ifx \gnuploterrors@ \@empty \else \PackageWarningNoLine {gnuplottex}\ETC. ! File ended while scanning use of \gnuploterrors@eatpar.   Does anyone use gnuplottex usually? Thank you so much!


What is the difference between the following pair of sentences?     He formed a resolution not to speculate any more.      He formed a resolution to not speculate any more


Prove that any rational can be expressed in the form $\sum\limits_{k=1}^n{\frac{1}{a_k}}$, $a_k\in\mathbb N^*$

Let $x\in\mathbb{Q}$ with $x>0$.  Prove that we can find $n\in\mathbb{N}^*$ and distinct $a_1,...,a_n \in \mathbb{N}^*$ such that $$x=\sum_{k=1}^n{\frac{1}{a_k}}$$


How do I get the bibliography in alphabetic order when using å, ä and ö?

I write in APA and my bibliography is also in APA but the order in the bibliography turns out as if "ä" were "a". "Ä" should be in the bottom instead of the top. \usepackage{sectsty} \usepackage{graphicx} \usepackage[swedish, english]{babel} \usepackage[utf8]{inputenc} \usepackage[nottoc,notlot,notlof]{tocbibind} \usepackage{mathptmx} \usepackage{csquotes} \usepackage{apacite} \usepackage{url} \usepackage{appendix} \setcounter{secnumdepth}{4}  \bibliographystyle{apacite} \bibliography{bib.bib}  my .bib looks like this @book{ Saljo2015, author={S{\"a}lj{\"o}, Roger}, title={L{\"a}rande : en introduktion till perspektiv och metaforer}, publisher={Gleerup}, address={Malm{\"o}}, year={2015}, edition={1. uppl.}, ISBN={9789140688262}, keywords={Inl{\"a}rning}, } @booklet{ LGR11, author={Skolverket}, title={L{\"a}roplan f{\"o}r grundskolan, f{\"o}rskoleklassen och fritidshemmet 2011 : reviderad 2019}, publisher={Skolverket}, address={[Stockholm]}, year={2019}, edition={Sj{\"a}tte upplagan}, ISBN={9789138327500}, keywords={Grundskolan F{\"o}rskoleklass Fritidshem}, } @book{ Stensmo2007, author={Stensmo, Christer}, title={Pedagogisk filosofi : en introduktion}, publisher={Studentlitteratur}, address={Lund}, year={2007}, edition={2., [rev.] uppl.}, ISBN={9789144018904}, keywords={Pedagogik -- teori, filosofi}, }  this is what my biblioagrapfy look like, the last two are in the right order but the first one should be last instead of first.  Säljö, R. (2015).Lärande : en introduktion till perspektiv och metaforer(1. uppl. utgåvan). Malmö:Gleerup. Skolverket. (2019).Läroplan för grundskolan, förskoleklassen och fritidshemmet 2011 : reviderad2019(Sjätte upplagan utgåvan). [Stockholm]: Författare. Stensmo, C. (2007).Pedagogisk filosofi : en introduktion(2., [rev.] uppl. utgåvan). Lund: Student-litteratur.


Part of my post was replaced with random gibberish

that I posted on Meta.Programmers was rather broken, with a block quote replaced by apparently random letters and numbers. Aarthi fixed it with a non-breaking space, but I don't understand what went wrong.  When I opened the post for editing, the displayed text was what I intended to go there. It only happens when the post is viewed in the reading mode. The preview also displayed the text correctly.


Which spelling is preferred: "retriable" or "retryable"?

I've seen both spellings. The meaning I intend is, "an action which is capable of being tried again."  Example usage: "A database operation is retriable/retryable if it is idempotent."


Why is not a good practice to store files in a database table?

It's recommended to store file into a directory on web server. Why not use a BLOB data type for a column where store files? There are security and consistency advantages and it's easier to manage files doing that. What are the cons?


How to prove the sum of squares larger than 1/n without induction?

known that: $1\geq R_1 \geq R_2 \geq \dots \geq R_n \geq 0$ and $\sum_{i=1}^n R_i=1$ To prove: $\sum_{i=1}^n R_i^2 \geq \frac{1}{n}$    Using induction, the problem can be easily proved. I'd like to know is there any other ways can prove this?


How to insert text between two figures or images in LaTeX? I have this code  \begin{figure}[htbp]   \centering     \includegraphics[width=0.5\textwidth]{1.jpg}     \caption{Resala's Donation Page.} \end{figure}  and for the volunteering activities, they do record all their activities...  \begin{figure}[htbp]   \centering     \includegraphics[width=1\textwidth]{2.jpg}     \caption{Resala's Project Page.} \end{figure}   but what happens is the text is placed before the first image and all images are placed at the end of the page.


How can I reserve a block of memory from the Linux kernel?

I have a device that needs a block of memory that is reserved solely for it, without the OS intervening.  Is there any way to tell BIOS or the OS that a block of memory is reserved, and it must not use it?  I am using this device on an openSUSE machine.


I'm having trouble with my hamburger buns cracking in the oven.   click to expand  In this photo you can see a a bun with the crust cap cracking, isolating the bottom portion and exposing the crumbs. I used to have Hamilton Beach mixer for kneading and never had any issues. I set the Hamilton Beach mixer on speed 4 for 10 minutes. But now I got a KitchenAid Artisan mixer, and am having trouble with the exact same recipe.  I first tried to follow the KitchenAid instructions to knead only for two minutes at speed 3 which didn't work out well and the dough failed the window pane test. I then searched and found some advice to knead at speed 4 for about 10 minutes. I did and my dough passed the window pane test but somehow after rising during the shaping the crust/surface of the buns show a non-smooth surface (happens a lot more on whole wheat). What are some of the reasons this happens? The same recipe works perfectly with the Hamilton Beach mixer. Any advice on the technicalities would be appreciated.   I've read  (and I appreciate people citing that). But that question is about a loaf, and it's normal for loaves to crack like that, and normal to score loaves. Hamburger buns, in contrast, are not generally scored, and the recipe I'm making is not supposed to require it. It's worked fine without scoring sometimes, so there's something else going wrong besides the lack of scoring.


Populating values in field based off of another sorted field?

I'm working with a dataset of center pivot irrigation sites for my work and I have a unique ID for each land owner (Land_Owner_ID) as well as a number of center pivots associated with each owner (CP_ID). Ignore the certificate number, as it is irrelevant to my issue.     For each unique Land_Owner_ID I need to reset my CP_ID to 1 for the 1st instance of the unique Land_Owner_ID, then add 1 to CP_ID and set that as the next CP_ID for the same instance of Land_Owner_ID.   As a result, in the case of Land_Owner_ID 3 I should have CP_ID's 1, 2, and 3, and then again for Land_Owner_ID 4 I should have CP_ID's 1, 2, and 3.   I am somewhat of a python beginner, but I've been trying to do as much of my work via python scripts/tools as possible to flesh out my knowledge and experience.   Here is what I have come up with so far:  #This script sorts the field LandOwner_ID low to high and then populates the  # CP_ID and CP_LandOwner_ID_Combined fields  import arcpy import os from arcpy import env env.overwriteOutput = True arcpy.env.workspace = r"D:/Irrigation_Data/WaterUseData.gdb"  CP_shp = "All_CP_With_Masterlist_Version1_Copy" out_path = arcpy.env.workspace  out_shp = os.path.join(out_path,"  {}".format("All_CP_With_Masterlist_Version1_SortedCopy")) sort_field = [["Land_Owner_ID","ASCENDING"]]  #Sort Land_Owner_ID from low to high arcpy.Sort_management(CP_shp,out_shp,sort_field)  landOwner_ID_Field = "Land_Owner_ID" CP_ID_Field = "CP_ID" updateFields = (landOwner_ID_Field,CP_ID_Field)   with arcpy.da.UpdateCursor(out_shp,updateFields) as cursor:   for row in cursor:      #Reset the CP_ID for each new landOwner_ID to 1      CP_ID_Count = 1      #Store owner_ID in a variable      landOwner_ID_Storage = 1      landOwner_ID = row[0]   If current landOwnerID equals the ID I am testing for, while that condition is true, set the current CP ID and count up 1, continue to do so until a new landOwner_ID is registered. I'm sure I have some syntax or arrangement of my code out of whack here.        if landOwner_ID == landOwner_ID_Storage:          while landOwner_ID == landOwner_ID_Storage:              row[1] = CP_ID_Count              CP_ID_Count += 1              cursor.updateRow(row)       else:          landOwner_ID_Storage += 1


I am quite aware of  for editing questions and answers, but there are several cases that I would find useful to just copy the raw text of another question/answer. Some examples are:  Complex  entries about math formulas that I might want to integrate, modify, or copy. On the spot quick reminder of a special uncommon attribute (e.g., HTML)  Is this an already existing functionality?


Cannot reference to figure in overprint of beamer

I have some figures that should take turn showing up below itemized text. The problem is referencing to these figures later on becomes impossible no matter how many recompilation. How should i correct it?  \documentclass{beamer}  \setbeamertemplate{caption}[numbered] \begin{document}  \begin{frame}     \frametitle{Title}     \begin{itemize}[<+->]         \item ABC         \item XYZ         \item DEF     \end{itemize}     \begin{overprint}         \onslide<1>             \begin{figure}[h]                 \centering                 \caption{ABC}                 \label{fig:ABC}                 \includegraphics[width=\textwidth]{ABC}             \end{figure}         \onslide<2>             \begin{figure}[h]                 \centering                 \caption{XYZ}                 \label{fig:XYZ}                 \includegraphics[width=\textwidth]{XYZ}             \end{figure}     \end{overprint} \end{frame}  \end{document}


what is the best way to keep the Ubuntu system clean?

In Windows, there are some apps which detect unnecessary files and remove them periodically.  I want to know what are the ways in which I can keep my Linux OS (mostly Ubuntu) clean? Like uninstalling apps which are not used over the last month, clearing the temporary files. Are there any apps for such to get it automatically done?


I want to enable debug logs for rest API which is exposed via force.com site.  I have looked into how to set logs for guest user in this . But I can't able to find for rest API.   PS: I am using postman to make the request.


I have a String as vsc-nigulp-25.00.00-200.tar , I have to get two set of outputs as vsc-nigulp and 25.00.00-200 from the given string.  What Regex conditions would be giving these two set of outputs?


Possible Duplicate:          Since so many thousands of tags and topics exist, it would be really useful to visually browse through tags by organizing them into a , or hierarchical map. This drill-down map would make it easier to find the tag/subtopic you want or just generally browse within the topics you're interested in.  So we could nest all "visual-studio-2008" and "visual-studio-2003" tags into "visual-studio", which would be under "dev-tools". Something like how Wikipedia's categories have sub-categories.


Implementing RESTful Architecture on ZOO Project?

I read in the  on Open GIS webpage that WPS 2.0 can be implemented with a RESTful architecture. I am working on a project using ZOO WPS.   Is there some way to incorporate the RESTful architecture in this?   According to my understanding so far, it seems that the framework is suitable only for SOAP architecture as all message formats are in xml.


Show that:          a) The field Extension $\mathbb{F_p}(X,Y)|\mathbb{F_p}(X^p,Y^p)$ is not simple.          b)Find a primitive element of the field extension $\mathbb{Q}(\sqrt2+i,\sqrt3-i)|\mathbb{Q}$          c) Let $L|K$ be a separable field extension and there exists a $n\in \mathbb{N}$ so that $[K(x):K]\le n$ for all $x \in L$. Show that: $|L:K| \le n$.      Now in a) I don't have a clue. For be I could find the minimal polynoms, but I don't know how to continue... .  It would be nice if you gave me some advice how to start. Thank you for taking your time.


Is it possible to render an equirectangular image in Blender Internal?

Hear me out. I know there's a "panoramic" mode for cameras now. Thing is, it only works with Cycles. Cycles does not support some things, like particles (halo, line). I need particles, I also need to render an equirectangular render of the scene.  What can I do? Even some mulitple camera setup + external tool would work. Note that I need animations though, an image editor won't do.


In a finite ring extension there are only finitely many prime ideals lying over a given prime ideal

I'm trying to solve the exercise 6.7 of Miles Reid's Undergraduate Commutative Algebra (pag 93).      How can I prove that if $B$ is a finite ring extension of $A$, there are only finitely many prime ideals of $B$ whose intersection with $A$ is a given prime ideal of $A$?    Thank you!


Mold is growing on my cheese, what is common practice?

I love cheese and I am always buying and trying new types. Because of this, my cheese stash starts to grow faster than I can eat all of it. Sometimes mold starts to grow around the outside before I get to it, particularly the cheddar.    I practice good storage techniques to no avail, still the mold eventually shows up.  So when this happens, I just trim the mold off and move on, but some of my friends think this is "so gross" and I should just throw it away.    What do you think?


I KNOW this has been asked but for the love of God someone please tell me a way around it! My first playthrough she lived. Did not have Wrex from ME1 because it was before I had downloaded the patch to import to ME2. the 3rd play through I had Wrex, paragon'd Eve, saved Maelon's data and let him live and had full paragon and she died. I have replayed ME2 2x hoping it was just a corrupt file but still she is about to die. So I have everything right, have replayed ME2 multiple times and STILL she is too stressed and Mordin says I don't have the data. Also, I did select BOTH options on how to save the data, the one for "Just in case" and they "you should help the Krogan" option. Didn't change. I don't understand. Especially since my first playthrough I didn't have it happen. I know it's a glitch, but there has to be SOME way around it. Because now the glitch carries over in EVERY game.


Assigning integer to finite CW complex such that following hold.

For each $n \in \mathbb{Z}$, is there a unique function $\varphi$ assigning an integer to each finite CW complex, such that the following hold?   $\varphi(X) = \varphi(Y)$ if $X$ and $Y$ are homeomorphic. $\varphi(X) = \varphi(A) + \varphi(X/A)$ if $A$ is a subcomplex of $X$. $\varphi(S^0) = n$.


$ d_1,d_2\mid n\iff {\rm lcm}(d_1,d_2)\mid n\ $ [LCM Universal Property]

Is $$d_1\mid n,d_2\mid n\iff [d_1,d_2]\mid n$$ true ? And if yes, how can I prove it ? I recall that $[d_1,d_2]$ is the least common multiple.  My tries  For the implication : Let $d_1\mid n$ and $d_2\mid n$. Then, $d_1d_2\mid n^2$. By the way, since $d_1,d_2\mid n$, we have that $(d_1,d_2)\mid n$ where $(d_1,d_2)=:\gcd(d_1,d_2)$  and thus $$[d_1,d_2](d_1,d_2)\mid n^2.$$  Question: How can I get $[d_1,d_2]\mid n$ from this?  For the converse, since $d_1,d_2\mid [d_1,d_2]\mid n$, the claim follow.


Help me with a proof syntax in Probabilities, min() in R.Vs

Given U,V independent exponential R.Vs. Find the law of min(U,V).   I understand some of the basics, but I need exact formal proof at the beginning since I've seen very few of these questions. I will write the beginning which I hesitate of. Could you correct my mistakes? Or approve my 100% correctness.  My solution:   U and V are Random Variables. Thus we are looking for  $P\{\{t<U\} \bigcap \{t<V\}\}$  U, V are independent. Hence  $=P\{t<U\}\bigcap P\{t<V\}$  Which is in turn:  $=F_U(t)F_V(t)$  And then we calculate and differentiate.  Did I write it wrong somewhere? Is everything correct?


Is it safe to use a power adapter with different input power for my router?

My old adapter input is 100-240 V and 0.6 Amps;  output is 12V and 0.5 amps  My new adapter input is 90-270V and 0.7 amps;  output is 12V and 1.5 amps  polarity matches  Is it safe to use? I know that output is OK, but what about the input? Is it required to be the same?


How to encrypt android device without screen lock?

I want to encrypt my phone to protect sensitive information. But I do not want to enter a password every time I pick up my phone. That seriously hampers the usability. Particularly because the password must be of sufficient complexity for the encryption to be secure.  What I want is a boot time only password.  Most thieves switch off the phone after stealing it. Or remove the battery to change the SIM (so it won't get tracked). When he starts it again it'll be locked. There is a risk that he may mail my sensitive information to himself before switching off the phone but that is a risk I'm willing to live with.  How do I encrypt my phone with only a boot time password?


How can I remove live patch notification?

I just upgraded the packages on my 18.04 machine and after reboot I see a new symbol in my top right that looks like a shield with a red "denied" symbol on it.   After further investigation this turns out to be the icon for the "livepatch" feature. It is notifying me that "livepatch" is off, and urges me to register to enable it.  I have zero interest in livepatch. I never opted to install this feature. I guess if I don't do something this shield will stay annoying and in-my-face 24/7-365?  Anyway I need help to remove it permanently like it never existed in the first place. Like completely deleted from my OS. Any help is much appreciated.  EDIT-1: Clarification in case you think I want to simply hide the notification. I actually want to COMPLETELY OBLITERATE IT and leave behind only unlinked inodes.  EDIT-2: I don't have livepatch installed. In fact look at this screenshot:


Problem. Show that $$\sum_{n=1}^\infty\frac{n}{3\cdot5\cdot\cdots\cdot(2n+1)}={1\over2}$$   The given series can be re-expressed as: $$\sum_{n=1}^\infty\frac{n}{3\cdot5\cdot\cdots\cdot(2n+1)}=\sum_{n=1}^\infty\frac{2^nn!n}{(2n+1)!}$$  I first attempted with binomial series but it was difficult to change the form of binomial. Could you please give me some ideas? Thanks.


Tips for designing tiny icons? (16px x 16px)

I googled, but didn't seem to be anything out there.    I need to design a set of icons that will be functional at really tiny size (16px x 16px).  I realized that a lot of the icons I designed starts out looking nice, but will look unrecognizable when I resize it at 16px x 16px.    I'm just wondering if anyone has any tips in the dos and don'ts for designing tiny things?  To make it icons look good and functional at 16 x 16.


$0 in taxes if stock losses from previous year exceeds stock profits from this year?

Let's use this example for US taxes: let's say someone losses $50,000 in the stock market one year, then makes $50,000 the next year. Do they pay $0 in taxes for the latter year?  I see that you can deduct $3,000 per year from losses with a schedule D. But, I heard somewhere that you don't pay taxes on any stock profits until you break even on losses from previous years. Is this true?


How to calculate confidence interval for autocorrelation- and cross correlation functions?

I would like to calculate the confidence interval for my autocorrelation function. Does this calculation differ in any way from the normal way of calculating confidence intervals? How would I calculate the CF for cross correlation between two time series?  Thank you for any help =)


Phrase for a situation where a problem disappears when you are about to fix it, but reappears later

For example, the car mechanic can't replicate the problem you are having every day, but when you drive it off the service dept, there it is again. Or, when seeing the dentist, the tooth ache goes away, and comes back when you leave.


I make my class generic.The T - can be string or int.  I have this feature class:    public class Feature<T>// : IComparable {     public T CurrentFeatureCode { get; set; }      public T StreetCode1 { get; set; }     public T BuildingNumber1 { get; set; }     public string BuildingLetter1 { get; set; }      public T StreetCode2 { get; set; }     public T BuildingNumber2 { get; set; }     public string BuildingLetter2 { get; set; }      public double CoordinateX { get; set; }     public double CoordinateY { get; set; }      public string Filter { get; set; }      public string ToString(T streetCode)     {         return StreetCode2 == streetCode ? String.Format("{0}{1}", BuildingNumber2, BuildingLetter2) : String.Format("{0}{1}", BuildingNumber1, BuildingLetter1);     } }   As you can see I have ToString method inside Feature class that compares two values:  StreetCode2 == streetCode ? String.Format("{0}{1}", BuildingNumber2, BuildingLetter2) : String.Format("{0}{1}", BuildingNumber1, BuildingLetter1);   I  get error on this row:  Error   11  Operator '==' cannot be applied to operands of type 'T' and 'T' .   My question is how can I compare two values of T type?


Is it possible to authorize the device while it's in Recovery Mode (Stock Recovery)?  My device has Marshmallow 6.0 and is authorized in normal boot mode, but unfortunately, it can't be authorized when reboot to recovery.  When i type in Recovery  adb shell   it keeps saying:  error: device unauthorized. Please check the confirmation dialog on your device.   there is an option in recovery menu called "Mount System", and I want to use adb in order to delete some system apps maybe!


On the password_confirm widget, how do I change the text of "Password"?

By default, the password change form on the user account page looks like this:  Current password Password Confirm password  This is bad usability because it is not clear to users that "Password" means "New password". So I want to change the strings to this:  Current password New password Confirm new password  Under interface translation, it's easy to change "Confirm password" to "Confirm new password" because that string is only used for the confirm password form.  However, I cannot change "Password" to "New password" using the translation interface because this is the same "Password" used on the user login form. So, I tried to alter this in hook_form_alter() targeting the user account page, but  $form['account']['pass'] does not contain the strings "Password" and "Confirm password":  How do I change the text "Password" only on the Password Confirmation widget?


I would want to do something like:  >>> lst = [1, 2, 3, 4, 5] >>> lst.find(lambda x: x % 2 == 0) 2 >>> lst.findall(lambda x: x % 2 == 0) [2, 4]   Is there anything nearing such behavior in Python's standard libraries?  I know it's very easy to roll-your-own here, but I'm looking for a more standard way.


I'm considering moving from stock Ubuntu to Ubuntu Studio. My only concern is the low latency kernel. I've looked into what exactly it is, and know it will be great for my audio work, but I am wondering if it has any downsides?  Does it cause compatibility issues? Does it reduce the lifespan of my hardware?  Basically I am aware of the pros of the low latency kernel, I just want to know what the cons are so I can make an informed decision.  Thanks in advance :)


How does the SQL injection from the "Bobby Tables" XKCD comic work?

Just looking at:   (Source: )  What does this SQL do:  Robert'); DROP TABLE STUDENTS; --   I know both ' and -- are for comments, but doesn't the word DROP get commented as well since it is part of the same line?


Get Minecraft server seed with location of structures?

So I'm trying to figure out a way to get the seed from a Minecraft server using the location of existing structures, or possibly the way blocks are in a single un-modified chunk. This can be brute force, probably because it's the only thing that will possibly work.  I've seen previous posts where someone said they had made a tool to do it. Is it possible to get the seed using , perhaps?


At school, I really struggled to understand the concept of imaginary numbers.  My teacher told us that an imaginary number is a number that has something to do with the square root of $-1$.  When I tried to calculate the square root of $-1$ on my calculator, it gave me an error.  To this day I still do not understand imaginary numbers.  It makes no sense to me at all.  Is there someone here who totally gets it and can explain it?  Why is the concept even useful?


Apache with mod_jk with glassfish instances, large number of established connections for low number of users

I making a tuning for our production servers for a portal, we have 4 servers, 2 for web and 2 for app, and there is a firewall before and after web servers (so yes there is a firewall between app and web servers) the issue here started from dropping idle connections between app servers and web servers by firewall, tried with a lot of solutions and now seemed that issue moved from stuck broken connections that was in app because dropping from firewall, this issue was happens when I have low load to portal, and to solve it I need to restart all app servers, now I have issue with high load days instead, and urgent solution was simply a quick restart Apache web servers, how to solve this issue.  I made changes by helping of Jboss loadbalancing configuration generator :    And monitoring connections in both servers using netstat command and with google analytics Real Time overview, I got the following stats with ~ 40 visitors after 3 days of last restart:  Web side (2 servers but connections her "for each" not total):  ESTABLISHED ~700 - 750 TIME_WAIT: 100-200 (big jumbs for one second 150 another 200 another 170 and then 120 and so)   App Side (here I counted all connections, most of them ESTABLISHED and few CLOSE_WAIT 0 - 5 each time I check):   S1 (4 instances running) : 900-950 S2 (5 instances running) : 1000-1100   Servers details :    On web 2x servers: Apache 2.2.14 / mod_jk 1.2.37  on app 2x servers: Clustered Glassfish 2.1.1 with ajp13 (6 instances / each server) All servers Solaris SPARC 64 V-CPUs 32GB ram.   My configurations :  Mostly like the generator gave me (u can see link) :  httpd.conf:  KeepAlive On ServerLimit         12800 StartServers        5 MinSpareServers     5 MaxSpareServers     20 MaxClients          12800 MaxRequestsPerChild 5000  ExtendedStatus Off   worker.properties:  worker.maintain=30 worker.template.type=ajp13 worker.template.session_cookie=JSESSIONID worker.template.lbfactor=1 worker.template.ping_timeout=10000 worker.template.connection_pool_timeout=10 worker.template.socket_keepalive=True worker.template.socket_timeout=600 worker.template.connect_timeout=10000 worker.template.prepost_timeout=10000 worker.template.connection_ping_interval=20 worker.template.ping_mode=A worker.template.socket_connect_timeout=600000   From glassfish side time-outs 10 seconds from cluster configuration side, I have:  HTTP service property :    connectionTimeout= 10000   Request Processing:    Thread Count: 2133 Initial Thread Count : 20 Thread Increment : 10    Keep Alive (enabled):    Thread Count: 400 Max Connections 256 Time out : 10 seconds   Connection Pool:    Max Pending Count 4096 connections   So:   So Is my configurations is correct ? How to solve high number of established connections or its safe?, I don't want down time again for apache if got high load again.


PHP: multiple SQL queries in one mysql_query statement

So I have an SQL dump file that needs to be loaded using mysql_query(). Unfortunately, it's not possible to execute multiple queries with it.  -> It cannot be assumed that the mysql command-line client (mysql --help) is installed -- for loading the SQL file directly  -> It cannot be assumed that the mysqli extension is installed  /* contents of dump.sql, including comments */ DELETE FROM t3 WHERE body = 'some text; with semicolons; scattered; throughout'; DELETE FROM t2 WHERE name = 'hello'; DELETE FROM t1 WHERE id = 1;   The explode() below won't work because some of the dump content's values contain semicolons.  $sql = explode(';', file_get_contents('dump.sql')); foreach ($sql as $key => $val) {     mysql_query($val); }   What's the best way to load the SQL without modifying the dump file?


Please explain to me why this does not assign a copy, but a pointer? C#

This is the program in question:  namespace TestStuff {     public class Test     {         public int x;     }     class Program     {         static void Main(string[] args)         {             Test firstClass = new Test();             firstClass.x = 5;             Test secondClass = firstClass;             firstClass.x = 6;             Console.WriteLine(secondClass.x);          }     } }   The output of this program is 6, I assume this is because Test secondClass = firstClass;, makes secondClass point to firstClass instead of making a copy of firstClass. If i want to make secondClass a copy of firstClass, how would I go about that ?


Install QGIS 3 and QGIS 2.0 Ubuntu 18.04

I have successfully installed  QGIS-3 on my ubuntu 18.04. I want to install QGIS-2 as well along with QGSI-3. How can i install QGIS-2.18 as well. So that QGIS 2 and QGIS 3 both would be running on my Ubuntu 18.04.


Let $f$ be a concave function and D a metric of $M$. Prove that $f(D)$ is also a metric of $M$.

Let $f(x)$ be a real valued function of real variable, define for all $x \geq 0$. $f$ is said to be concave if for any nonnegative real numbers a,b with $a+b=1$ we have $$f(ax+by)\geq af(x)+bf(y)$$ Suppose that $f(x)$ is concave, that $f(0)=0$, that $f(x)>0$ for $x>0$, and that $f$ is monotone in the weak sense ($x\leq y \Rightarrow f(x) \leq f(y)$). Let $M$ be a metric space with metric $d$. Prove that $f(d)$ is also a metric of $M$. I'd like some hints on how to prove the triangular inequality for $f(d)$, I've tried to apply $f$ in the triangular inequality for $d$ getting $f(d(a,b))\leq f(d(a,c)+d(b,c)$, but I don't know how to proceed.


MySQL tables in Collation latin1_swedish_ci can I just change without impacting PHP code?

I setup a MySQL table using Collation latin1_swedish_ci. I have coded my PHP scripts in the UTF-8 character-set. It all worked out well until I discovered that a person entered their first name with a non-swedish character. The name Helén looked strange in the database but looked OK on the webpages.  My question is, can I simply change the Collation of my table from latin1_swedish_ci to UTF-8?  Will it actually cause any problems?


I ran into notes for a server I used to work on back in the day but the redirection does not look right. Maybe someone can confim?  These were entries in my crontab entered by a third-party vendor who maintained the app/database that ran in this HP-UX server.  15 21 * * 0-6 /usr/sys/bin/stop  q  >/stopout   2<&1 # 30 21 * * 0-6 /usr/sys/force     q  >/out       2<&1 # 55 23 * * 0-6 /usr/sys/start     q  >/startout  2<&1 #   I found this in the Bash manual but this means that stderr and stdout is going out to >/{stopout,out,startout} while stderr is copying stdout (which means stdout is twice being written to stopout,out,startout?)? I'm confused :)  3.6.8 Duplicating File Descriptors The redirection operator  [n]<&word is used to duplicate input file descriptors. If word expands to one or more  digits, the file descriptor denoted by n is made to be a copy of that file  descriptor. If the digits in word do not specify a file descriptor open for  input, a redirection error occurs. If word evaluates to ‘-’, file descriptor n  is closed. If n is not specified, the standard input (file descriptor 0) is  used.


How to make the color fade in to another one on the same object? (Like Pic below)

The explosion how it is orange on the inside then on the edge it fades to reddish orange


Is there a way to return multiple values from a function? In a program I'm working on, I wish to return 4 different int variables to the main function, from a separate function, all stats needed to continue through the program. I've found no way to really do this. Any help would be greatly appreciated, thanks.


How did Nunnally know that Lelouch did what he did for good?

In the last episode of Code Geass R2, after Lelouch died, Nunally touched his hand and she suddenly knew what he did and what the Zero Requiem was. Was this a power of Geass?


How do the Weird Sisters' Instruments Work?

, which I found on the Harry Potter wiki, is of the Weird Sisters, the wizarding band from the Yule Ball.  In the picture, you can see that one of them at least is playing what seems to be an electric guitar.  Indon't know what all of their instruments are, but they look exactly like a Muggle band, including their electric guitars and maybe other stuff.  But everyone knows that,  1) Wizards are clueless to Muggle technology (I myself don't even know what electri--I mean, Arthur Weasley), and 2) Muggle technology doesn't work on the Hogwarts grounds.  Note: this is mostly about the movies, since I found this passage in the books:     A set of drums, several guitars, a lute, a cello, and some bagpipes were upon it [the stage]


Is incorrect to have the HTTPS version of the sitemaps.org URL in the xmlns sitemap schema?

I have the schema with this:  <sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">   Is it correct or should be:  <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">   if all my web pages are on HTTPS?


Why has my reputation decreased while nothing changed?

My reputation on Stack Overflow was lessened by 105 points today.  Does anybody know why?


I want to know the array representaion of this code,   int []x[]={{1,2},{3,4,5},{6,7,8,9}};   The program is:   class Testsss   {     public static void main(String[] args)      {        int []x[]={{1,2},{3,4,5},{6,7,8,9}};        int [][]y=x;        System.out.println(y[2][1]);     }   }   Output is 7, as I executed. How can the values are represented in array form.


I'm facing a huge 4-columns file. I'd like to display the sorted file in stdout based on its 3rd column:   cat myFile | sort -u -k3   Is that enough to perform the trick?


Can I downgrade to macOS Mojave if I buy the new 2019 MacBook Pro?

I plan to buy a MacBook Pro. But my work relies heavily on 32 bit apps for music production, which are not supported in Catalina. Can I downgrade to macOS Mojave if I buy the new MacBook Pro?


What's the difference between ConcurrentHashMap and Collections.synchronizedMap(Map)?

I have a Map which is to be modified by several threads concurrently.   There seem to be three different synchronized Map implementations in the Java API:   Hashtable Collections.synchronizedMap(Map) ConcurrentHashMap   From what I understand, Hashtable is an old implementation (extending the obsolete Dictionary class), which has been adapted later to fit the Map interface. While it is synchronized, it seems to have serious  and is discouraged for new projects.  But what about the other two? What are the differences between Maps returned by Collections.synchronizedMap(Map) and ConcurrentHashMaps? Which one fits which situation?


Bijection between set of all binary sequences and power set of $\mathbb N$.

I found a problem in which I had to construct a bijection between set of all binary sequences and set of all subsets of $\mathbb N$. Is my solution correct? $\phi : 2^{\mathbb N}\to \{0,1\}^{\mathbb N}$ is defined by, $\phi(\{n_1,n_2,.....\})=$Binary sequence with $1$ only at the positions $n_k$ and $0 $ elsewhere.Is this correct?


Easy way to turn JavaScript array into comma-separated list?

I have a one-dimensional array of strings in JavaScript that I'd like to turn into a comma-separated list. Is there a simple way in garden-variety JavaScript (or jQuery) to turn that into a comma-separated list? (I know how to iterate through the array and build the string myself by concatenation if that's the only way.)


Will Android Lollipop be pushed to Nexus 7 device again

I received a push update for android 5 and was not installed as selected later as the timing of the notification wasn't the right time.  My device now says the system is up to date  Just wondering, will the update to android 5 be pushed again and when is likely timing?  Thanks for help.


Is there a latex package that can be used to produce a language grammar similar to the following figure? If yes, which package?


What is the best way of creating an alphabetically sorted list in Python?


How can I change the title of a new tab with Javascript?

Hello this is my first time asking a question.  I am very new to Javascript and would like to know if it is possible to open a site in a new tab and then change the title of that tab.  The company I work for supports phone systems that are accessible through a web management console.  I got tired of looking up the URL, username, and password for each phone system whenever a client called so I consolidated all of it into a web page with links to the individual phone systems that open in new tabs.  That works great but the new tabs all have the same title.  I always go to the new tab and change the title to whichever client that phone system belongs to using document.title = "";, but I want to share this page with some of my co-workers and I don't want to have to teach them all how to change the title of a web page.  I would prefer to have a script that runs on the new tab after it loads that will change the title.  Is this even possible to do, and if so how?


In my current project, Lua scripts are called by the C++ functions on the server side. After that, the scripts again call the C++ functions still in that solution. Why should we do such things and not call the C++ function directly? What are the situations in which scripts are needed?


I have question, is it possible to get header of website by using telnet? Website looks like this domain.name.server.com/~USER (just example). And I want to get it header by telnet.  telnet domain.name.server.com/~USER 80 <-- doesn't work  telnet domain.name.server.com 80 works but I neet to get ~user. Is there any possibility to do this?


Probability of Independent Normal Random Variables

There are two Random Variables X and Y. Both of them are Normally distributed with 0 mean and variance a and b respectively. X and Y are independent of each other.  What is the probability of   What should be the easiest way to do this?


Windows 8: How do I get an error message or log of failed wifi connection?

Occasionally, I'll try to connect to Wifi and it'll give me the "Checking Network Requirements" screen, then finally end with a "Cannot Connect" message and an offer to use a useless troubleshooting tool:  This gives me essentially no information about the problem - could be the signal is bad, could be an authentication problem, could be anything. Is there a way to get an actually informative error message from this, or, even better, a log of what's happening? I tried their diagnostic tool, and it basically just chugs away for a bit and says, "Hey, did you know your wifi is broken?" Edit: I did see the , but when I went to Events Viewer, Applications and Services Log did not populate and gave no indication of loading (so I thought that the logs had moved or something). Eventually it did populate and the logs turned out to be in Microsoft > Windows > WLAN-AutoConfig.


Auctex support for building using makefile in subdirectory?

I am editing my PhD thesis using Emacs & Auctex, but my elisp is quite weak. Additionally, I build my thesis in a subdirectory, using makefiles generated by CMake and the UseLATEX CMake package, which I highly recommend.  I can’t figure out how to tell auctex that when I build the document it should do something like: make -C build/digital and that the pdf file being output is going to be at build/digital/thesis.pdf even though the source is at ./thesis.tex  p.s. I HIGHLY recommend checking out UseLATEX, the CMake package for easily compiling LaTeX documents.


Why does electron orbital circumference have to be in multiples of de Broglie wavelengths?

Electron orbit circumferences have to be in multiples of its , but what do those 2 have in common?


In a 2 class problem how do I compute the normalization constant for finding the posterior distributions?

I have a two-class problem. Let's call the first class W1 and the second W2. I am trying to find the posterior distributions of both W1 and W2. I know I can use the following formula to do so... $$ P(W_j|X) = \frac{P(X|W_j)P(W_j)}{P(X)} $$ where $$ P(X) = \sum_{i=1}^{2}P(X|W_i)P(W_i) $$ So if I was trying to find the posterior distribution of W1, I would do the following $$ P(W_1|X) = \frac{P(X|W_1)P(W_1)}{P(X|W_1)P(W_1)+P(X|W_2)P(W_2)} $$ I know the denominator is supposed to be a constant... but looking at this formula I don't understand how the denominator would become a constant. Aren't $P(X|W_1)P(W_1)$ and $P(X|W_2)P(W_2)$ both distributions. Would I have to sum all the values of both distributions together? Thanks for any help and I apologize if this is a silly question. Code attempt is below: P_w1_likelihood <- rnorm(n = 1000,mean = 4,sd = 2) P_w1_prior <- 0.5  P_w2_likelihood <- rnorm(n = 1000,mean = 6,sd = 3) P_w2_prior <- 0.5  P_w1_posterior <- P_w1_likelihood*P_w1_prior/(sum(P_w1_likelihood*P_w1_prior)+sum(P_w2_likelihood*P_w2_prior)) P_w2_posterior <- P_w2_likelihood*P_w2_prior/(sum(P_w1_likelihood*P_w1_prior)+sum(P_w2_likelihood*P_w2_prior))  Posteriors <- data.frame(   "Posterior" = c(P_w1_posterior,P_w2_posterior),   "Distribution" = c(rep("W1|X",times = 1000),rep("W2|X",times = 1000)) )  ggplot(Posteriors,aes(x = Posterior,group = Distribution,fill = Distribution))+   geom_histogram(alpha = 0.7)+   scale_fill_manual(values = c("orangered","darkorchid2"))


An easy way to create a desktop shortcut?

I wonder, isn't still there  an easy way to create a desktop shortcut in Ubuntu 14.04 (or Unity)? There is no context menu on desktop doing this.   So I tried the following: I looked for an app I want to create a shortcut for in the dash, then I tried to drag it to the desktop. And guess what? I got the error:


Core java Multi Threading - Thread is not Ending

Have created the below class with global variable.  But why my thread is not ending or become dead.  public class MTTest {   private static boolean isRequestToStop = false;    public static void main(String [] args) throws Exception{       Thread T = new Thread (new Runnable(){       public void run(){          while(!getRequestToStop()) {         //System.out.println(" Value is " +getRequestToStop() );         //System.out.println("Thread");         }       }      });     T.start();     Thread.sleep(1000);     setRequestToStop();     //isRequestToStop =  true;   }   public static void setRequestToStop(){     System.out.println("--- setRequestToStop()--- Called");     isRequestToStop =  true;    }   public static boolean getRequestToStop(){     return isRequestToStop;    } }


Show that if series $a_n$ converges then series $(-1)^n a_n$ converges - True or false?

Show that if series $a_n$ converges then series $(-1)^n a_n$ converges.    Is that true? A quick proof is highly appreciated.Thanks


Remove the default browser header and footer when printing HTML

I got an HTML with the <body onload="window.print()">.   The question I'm trying to ask is:   Is there any way to remove the strings that the web browsers add to the printed page? Such as:   Web site from where the page was printed Page count Title of the web page Date of printing


Wifi connectivity issues in Ubuntu 14.04 [HP pavilion 15 series]

I am very much new to ubuntu and this communtiy and i recently installed Ubuntu 14.04 (alongside windows 10) on my newly purchased laptop(hp pavilion 15-ab032tx).  There's some serious issues with the wifi connections in ubuntu.   If I am sitting very close(1 -2 feet) to my router it diplays the connection but gives a very low connection speed.  If I go to a distance more than say 5 feet, it shows the connection to be out of range. I followed some previous threads regarding this issue but i haven't been able to solve the problem.  I also made some changes to the power management of my wireless card( as instructed in another thread) but it also didn't work.  (NOTE: WiFi works perfectly fine on windows 10)  here's some information regarding my wireless card:-    ***-network        description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:08:00.0        logical name: wlan0        version: 00        serial: 70:77:81:12:70:59        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=3.16.0-45-generic firmware=N/A ip=192.168.1.12 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn        resources: irq:18 ioport:5000(size=256) memory:c6100000-c6103fff   *-network        description: Ethernet interface        product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:09:00.0        logical name: eth0        version: 0a        serial: 3c:a8:2a:ae:32:43        size: 100Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.1.13 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:64 ioport:4000(size=256) memory:c6004000-c6004fff memory:c6000000-c6003fff**


How do I transfer files from my Android smartphone to my Windows laptop?

How do I transfer files from my android smartphone to windows laptop? NOTE: Bluetooth is working fine on both the devices and is in ON mode.


Proving $x^4+y^4=z^2$ has no integer solutions

I need solution check to see if I overlooked something:  If $x^4+y^4=z^2$ has an integer solution then $(\frac{x}{y})^4+1=(\frac{z}{y^2})^2$ has a solution in rationals.   Second equation is equivalent to $X^4+1=Y^2$ which can be written as cubic Weierstrass form $$v^2=u^3-4u$$ where $u=\frac{2(Y+1)}{X^2}$ and $v=\frac{4(Y+1)}{X^3}$.  By using SAGE we can see that Mordell-Weil group of this elliptic curve is empty (SAGE returns empty set, but I'm not sure if that is enough to conclude this), so we can conclude that there are no rational solutions to the second equation and no integer solution to the first one.   edit: No integer solution in positive integers.


If there were two charges placed at a large distance, won't their (say) magnetic fields interact? What if that large distance is something like close to infinity? Even if they experience a feeble force from each other, doesn't that imply that the magnetic field lines are not closed, as the particle could have been placed anywhere around the source charge at any distance?  Would not this generally say that every electrically charged particle in the universe is part of an infinitely large magnetic field?


Java get nice toString for Object reference to some array type

If I have a reference of type Object and I know that this is an array, but I don't know what kind of array, what is the best way to generate a nice String?  Or in other words, what is the best / nicest implementation for the following method:  private static String anyArrayToString(Object someArray) {     if (!someArray.getClass().isArray()) {         throw new IllegalArgumentException("someArray is not an array!");     }     return ???; }   I am aware of the methods from Arrays, namely Arrays.toString(int[]), Arrays.toString(double[]), etc. These do not work here because they are strongly typed and I don't feel like having a big if-else-if cascade. (although this is my plan B if no better solution can be found)  Ideally I would want a method that works on Object references such as System.arraycopy which checks dynamically if the passed reference is an array or not.  why do I not know what kind of array it is?  Because I get the object reference via reflection after iterating over all get-methods of a different object. It is part of a utility method that finds arbitrary differences between two complex objects even if these differences are nested deep.  Thank you very much.  Edit:  This is NOT a duplicate of  because here the element type of the array is unknown and we only have a reference to Object rather than some specific array type.


Is there a command to copy all of your inventory into a chest?

I'm creating an adventure map with many levels. You can chose which level to do and can walk out of one anytime. When you walk out of the level your inventory will be cleared. Is there a way to make it so that when you walk back into the level you will get your old items back?


None of ,  nor  worked in setting my default editor. Haven't tried , I'm afraid it won't work either.  So how do I set the default editor to emacs or possibly emacsclient in 13.04 through the CLI/terminal?  Double-clicking on a text file still opens up to gedit.  I specifically say 13.04 because I had no problem in doing so in 11.04 from which I recently upgraded from.


Im trying to automate export chrome history to a file. Ive learned google keep changing the mechanism for keeping history, while they used SQLLite i see in the version of chrome im using (88.X...) i cannot open the History file in that way, all of my searches for this issue are not updated to this time, does anyone have information about this?


Does anyone know what exactly does Google backup (and restore) when you enable that option?  Also, are we able to see this list somewhere? (Maybe hidden n-levels deep in Google Account information?)  Reason I ask is I've had the unfortunate experience of my SD Card dying on me, put in a temporary SD Card and allowed Google to do the auto-restore.  Some things that were restored:   Saved wireless networks Background Some apps - strangely enough only a subset of my apps were restored (some with data, some without). All previous apps were installed via Android Market.   Then finally got my new SD Card, put that in and the following were restored   Saved wireless networks Some apps - again, same problem... only a subset (different subset, even fewer apps). This time no data seemed to have been restored either.   I think it would be very helpful to be able to view/manage a list of what is backed up, and thus would be restored (but I have yet to find this list... if it even exists).


How can I prove that the following summation converges? $$\sum_{n=0}^\infty \sum_{k=0}^n \frac{(-1)^n}{(k+1)\times (n-k+1)}$$  I tried to prove that by proving that the following summation in in absolute value converges so the original one converges too, but that's incorrect.  Any other ideas?  Note: I found that if it converges then it converges to ln(2)^2 but that doesn't help since I want to prove the it converges at first place.


I miss you like I (have) never missed someone else

Which one of the following phrases is correct? I'm unsure about using present perfect or not.     I miss you like I've never missed someone else.      I miss you like I never missed someone else.


How to select X.Org instead of Wayland from the command line?

After some apt upgrades my Wayland session seems broken, the mouse moves but I can't click on anything. I want to try if X.Org works, but as the UI is broken, I must change the session type in the text console.  How do I configure X.Org to start instead of Wayland when the desktop UI is unusable, in the text console?  I got a workaround by using the keyboard: type win, log out and change focus with TAB. From there I could switch to X.Org using keyboard.


I am auto generating an HTML page and would like to do a diff between the newly generated HTML page and a previously generated HTML page.  I want to do this by letting the user enter a the filename of the old HTML page into the new HTML page which will then load it as an IFRAME and do a diff on the DOM trees, modifying my current tree in order to display the results.  My page consists of a table, which has a subtable in each cell.  I am using JQuery.  Are there any existing tools/libraries that I should be using?  At the moment I'm working on implementing this myself but I'm sure someone else has already done this...  Clarification: I am not asking for diffs of text. I am asking for tools that can do a diff of DOM objects. Meaning, diffing the contents of HTML tables based on the contents of the tables them selves, text diff tools will not suffice.


I took complex analysis but I want to re-study it. When I took the class I studied the book written by stein( princeton series).  The book was quite good but the problems were too tough and I had no idea I was solving them in a right way.  I once read a intro. to the complex analysis by Silverman; the problems were not too hard but I think it lacks some rigor.  So anyone would recommend a very good book on the complex analysis? I would really appreciate it.


If $A\ B$ are symmetric positive definite matrices then $A>B$ iff $\sqrt{A}>\sqrt{B}$

My guess is, it only holds one way i.e. $A>B$ then $\sqrt{A}>\sqrt{B}$ but not otherwise. Any proof or counterexample would be appreciated.


Is there any way to define a \newcommand that behaves like a normal word?  I have a few names for Objects, that might change later.   To keep my flexibility i use \newcommand{\superprod}{superPRODUCT}. If later on the name of "superPRODUCT" has to be changed to "uberPr0duct", I just have to change the new command. But it really bothers me, that i have always have to type \superprod\or \superprod{} in my text.  Is there any way to make latex realise that a space has to be inserted after the word (except at the end of a sentence)?  Edit: No real solution, best way:  \newcommand{\superprod}{}% To make sure that \naive isn't already defined     \def\superprod/{superPRODUCT}  in text: Lorem \superprod/ ipsum \superprod/.


computing fundamental group of $S^1 \times S^1$

How to find $\pi_{1}(S^{1}\times S^{1})$ ?  I know $\pi_1(S^1)$ but ho to do this ?


Recursively copy files from one directory to another

I have all my music in a folder /media/kalenpw/MyBook/Music/ABunchOfOtherFoldersWithFilesInside. I want to copy all of the mp3s to /media/kalenpw/HDD/Music so I used:  cp -R /media/kalenpw/MyBook/Music/*.mp3 /media/kalenpw/HDD/Music   however this only copied the mp3s in the root music folder and did not open any of the artist subdirectories and copy those files.  I was under the impression -R would recursively copy all the files. How can I achieve said goal?


Can I add a second 100A service panel alongside the existing one on the same feeder lines?

I want to install central air conditioning in my home but my current service is 100 A, I believe. If I were to upgrade to the 200 Amp service, could the breakers be configured where I have two 100 Amp main breakers? One will be the already existing breaker box servicing the house as usual, and the other would be just for the central air conditioning. Is this possible to configure like this?


Recommendations for probability text books?

I am trying to learn probability. Although I tried a few courses (Stat 110 Harvard for example), I felt the progression was fast and I kind of lost interest. However, I am dead-set on learning probability, right from the basics. Although I have some idea, I feel my absolute basics are not strong enough. Would the good people of Mathstackexchange suggest me a good book? I am looking for books that have a story approach, building an interest and not a book that gets into the brass stacks right away.   I did check the common names, like Sheldon M Ross and a couple more. I am not sure which one fits me.   Edit: I have completed a course on probability during my undergrad which covered probability, but it was more of a pass grade. I can solve mechanically but I do not under the basics and the whys.   Thanks!


I was given the advice to open a terminal & type in some commands to try & repair my computer but don't know what a terminal is.Can someone explain please?


Travel Macau and back to China with single-entry Chinese visa

My friend holds an Indian passport and is travelling via Hong Kong to Zhuhai (China) on a single-entry Chinese visa.  Is it possible for him to travel to Macau from Zhuhai and back to China with the same visa, or if not what's the procedure?


macos wakes up from sleep very slowly when internet connection is also slow

I have the latest macos (BigSur or Catalina I think) on a new Macbook Air. When I have poor wifi reception (e.g. I go to garden and I'm too far from the rooter) or if the internet connection is slow then when I open the lid of the mac I see the screen later than normally and the keyboard and mouse are unresponsive for a minute - sometimes even mac notices that and asks if I would like to connect a bluetooth keyboard. Everything is normal when I'm on a normal internet connection. SO basically, WTF? I heard that Apple introduced some software that validates hashes of running programs before they are allowed to run, and it does it over the internet. So it sounds like this is the issue. Any solutions to that (besides speeding up the connection)? EDIT: OK, now I know, this is called notarization and not only I have such issues:  Are there any workarounds?


I have a problem:  $(5x + 3e^x)(15x^2+e^x)$  My answer is:  $75x^3+5xe^x+45x^2e^x+3e^{2x} $  is this correct?


Why does using the remainder operator with a double return false?

public static void main(String[] args) {     double s = 0; //Position     double v = 100; //Velocity     double g = 9.81; //Gravitational Force      for(double time = 0.01; time < 100; time = time + 0.01){        double DELTA_T = 0.01;         s = s + (v * DELTA_T);         v = v - (g * DELTA_T);          if(time % 1 == 0) { //I want to print this out, but it seems to end the program with no output             System.out.println("Seconds: " + time);             System.out.println("Position: " + s);             System.out.println("Velocity: " + v);         }     } }   I want to output the calculations when (time % 1 == 0). But when I run this, it doesn't print anything out. When I remove the if statement, and leave in the print statements, it will print.   I was wondering what is wrong with my if statement and how would I go about trying to print "s", "v", and "time" every time (time % 1 == 0)


Limit point versus limit and implications for convergence

I understand that similar questions to this have been asked  and  but I believe my question is different because with regards to (1) I am not asking about the set $X$ that contains the points of my sequence and with regard to (2) because I have the distinct definitions of limit and limit point in mind. That said:  My Question: My textbook, Fundamental Ideas of Analysis by Michael Reed, defines a limit point as:     Definition: Let $(a_n)$ be a sequence of real numbers. A number $d$ is called a limit point if, given $\epsilon > 0$ and an integer $N$, there exists $\color{red}{\mathrm{ an }} \ n \ge N$ so that $|a_n - d| \le \epsilon$.    The definition of a limit is as follows:     Definition: We say that a sequence $(a_n)$ converges to a limit $a$ if, for every $\epsilon \ge 0$, there is an integer $N(\epsilon)$ so that $|a_n - a| \le \epsilon \color{red}{\text{  for all  }} n \ge N$.    From these definitions, and given this question:     If a sequence converges it has exactly one limit point. Is the converse true? If not, provide a counterexample   Can I conclude that the converse is indeed true simply by appealing to the definitions, or do I need a tighter proof. And if I do, I'm a little stuck on how to refine this proof.


Get a views result using PHP code, and iterate the proper way

I have a view called all_projects_list. This view fetches Fields (not nodes), and i'd like to get it by code, and iterate on it. I managed to do this by using:  $view = views_get_view_result('all_projects_list', 'default'); foreach($view as $project){     print_r($project->_field_data['nid']['entity']->field_project_code['und'][0]['value']); }   Which as you can see is very, very dirty. Is there a Drupal way of doing this ? Thanks in advance.


Prove that a transformation with certain specifications is linear

Given transformation $f:\mathbb{R}^2 \to \mathbb{R}^2 $  such that $f(0,0)=(0,0)$  and $||f(x,y)||=||(x,y)||$ —which (if I'm not mistaken) implies that $f$ is an isometry  How can I prove that this transformation is linear?


Ubuntu 20.04.1: No ability to use sudo and su

I just installed Ubuntu 20.04.1 and I must have screwed up. I have just one user account and with this account I'm unable to use sudo and su. This obviously prevents me from running apt-get and doing other things. I've seen some posts on this - people being unable to use sudo and a workaround with su, but I can't seem to use either command. Here is what I see after issuing each command and entering the password for skip33 $ sudo -i skip33 is not in the sudoers group. This incident will be reported $ su - su: Authentication failure $ usermod -aG sudo skip33 usermod: Permission denied. $ sudo su skip33 is not in sudoers group.  Ok, is there any way to fix this without reinstalling the OS? I hope to hear back from you guys. Thanks.


How do I use a comma-separated list of values with SQL IN clause

I want to apply the SQL IN clause in my query for a names column. I know there is an option 'like' but, in the UI the user selects the names of customer from a multi-select dropdown, so I have a comma-separated list of names like 'rocky,joni,david' and to use SQL IN the list needs to be like 'rocky','joni','david'. Let me know if something is not clear in my question.


Aura Component: Using Map for Lightning Datatable

In an Aura Component, how would you display the following data type in a ? Map<String, Map<String, String> The Map has a key, and the value is a Map of fields and values. The field and value correspond to the columns in the table. Here is where I populate a aura attribute for a datatable using the response from an Apex method: var docs = response.getReturnValue(); var docList = []; for(var key in docs){     docList.push({value:docs[key], key:key}); }  I know that I can access fields in the inner map using dot-notation. If an example field is "doc_name," I tried setting v.mycolumns like this: cmp.set('v.mycolumns', [     { label: 'Form Name', fieldName: 'value.doc_name', type: 'text'},     { label: 'Document Type', fieldName: 'value.doc_type', type: 'text'},     { label: 'Created Date', fieldName: 'value.doc_created', type: 'date'},     {type: "button", typeAttributes: {             label: 'View',             name: 'View',             title: 'View',             disabled: false,             value: 'view',             iconPosition: 'left'         }} ]);  This is the datatable in my Aura component: <lightning:datatable data="{! v.docList }"     columns="{! v.mycolumns }"     keyField="key"     hideCheckboxColumn="true"     onrowaction="{!c.viewRecord}"     resizeColumnDisabled="true"     sortedBy="doc_created"     sortedByDirection="desc"/>  I was hoping the "value." might do the trick, but it didn't make a difference. I know I can switch to aura:iteration and make a table manually using SLDS, but that's a last resort.


Which one of three styles is the most correct?

which one of three styles is the most correct ?   first example: 1- The algorithm's running time. 2- The algorithm running time. 3- The running time of the algorithm.    second example: 1- The Transmitter's energy consumption. 2- The Transmitter energy consumption. 3- The energy consumption of the transmitter.  Honestly, I am confused about them :), I am not sure what the difference is. Is there any grammar for such situation? Thank you in advance.


Understanding the field of fractions of $F[[x]]$ (the ring of formal power series in the indeterminate x with coefficents in F)

Let $F[[x]]$ be the ring of formal power series in the indeterminate x with coefficients in F. Show that the field of fractions of $F[[x]]$ is the ring $F((x))$ of formal Laurent series.   I've been going in circles on this one for what seems like ever now! If anyone could lend me some insight I would be exceedingly grateful! Thanks!


I'm trying to completely uninstall mysql to reinstall it later, after uninstalling all mysql-related packages, mysql-common seems to remain in a broken state.  $ sudo dpkg -l | grep mysql pc  mysql-common                                  5.6.28-0ubuntu0.15.10.1                      all          MySQL database common files, e.g. /etc/mysql/my.cnf   But running apt-get remove  $ sudo apt-get remove mysql-common Reading package lists... Done Building dependency tree        Reading state information... Done Package 'mysql-common' is not installed, so not removed 0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.   Or with --purge  $ sudo apt-get remove --purge mysql-common Reading package lists... Done Building dependency tree        Reading state information... Done The following packages will be REMOVED:   mysql-common* 0 upgraded, 0 newly installed, 1 to remove and 36 not upgraded. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 199090 files and directories currently installed.) Removing mysql-common (5.6.28-0ubuntu0.15.10.1) ... Purging configuration files for mysql-common (5.6.28-0ubuntu0.15.10.1) ... update-alternatives: error: no alternatives for my.cnf dpkg: error processing package mysql-common (--purge):  subprocess installed post-removal script returned error exit status 2 Errors were encountered while processing:  mysql-common E: Sub-process /usr/bin/dpkg returned an error code (1)   Additionally, I've removed all mysql related directories and files.  How can I get rid of this lingering broken package?


Why is Bishop in cryosleep despite being an android?

In Aliens, it appears that Bishop awakes from being frozen. But why should he have been frozen in the first place? I can understand Ash being frozen, this was necessary to allay fears that he was actually an android. There was no need for such subterfuge in Aliens, since it is readily understood (with no issues) that Bishop was an android (until Ripley found out).


Proton and Antiproton decaying into positive and negative pions

A proton and an antiproton annihilate at rest (or in a $p\bar{p}$ atom in an S state) into pions.  Show that the decay into a $\pi^+\pi^-$ final state is possible from a $^3S_1$ state, but not from a $^1S_0$ state. (Here we use the spectroscopic notation $^{2S+1}L_J$.) Consider C, P, and CP, where C is the charge conjugation operator, and P is the parity operator.  I deduced that $P_{\pi^+\pi^-}=1$ and $C_{\pi^+\pi^-}=1$, and that $P_{p\bar{p}}=-1$, $C_{p\bar{p}}=-1$ for $S=1$ and $C_{p\bar{p}}=1$ for $S=0$.  It does not seem like the proposal given in the problem is true, given what I found, so I am not sure where I have gone wrong and how to proceed.  Note: I asked this question already, but cannot edit it. I have made a better attempt.


Ungoliant was the mother of all spiders, most famously Shelob. Ungoliant and Melkor teamed up to suck the life out of Telperion and Laurelin and escaped under darkness, then Melkor refused to give her the silmarils and balrogs came to Melkor's aid and she fled somewhere south of Beleriand.  My question is: How exactly did she die if she did?


Terminology question about global variables and global scope

Is the following true: For something to be in the global scope means it can be accessed anywhere in all files. All global variables have global scope. Therefore, the global object (and its properties) is a type of global variable. P.s. This is a genuine question I find it useful getting terminology down and maybe it might help me be able to read the docs later.


Do I risk destroying the fan if I use a vacuum cleaner on my laptop?

To get rid of dust that had gathered near the fan, I put a vacuum cleaner to the air intake (with the computer turned off).  This removed the dust.  It also caused the fan to rotate at a fairly high speed. Quite faster than normal speed, judging from the sound.  Do I risk destroying stuff by doing this?


Is exactly one of $a, a + b^n, ..., a + b^{p - 1}$ divisible by $p$?

Consider the following structure over $\mathbb{N_0}$: $2, 2 + 3^n, 2 + 3^{n + 1}, ..., 2 + 3^{n + 3}$. Here we have five numbers and it's not hard to prove that exactly one if them is divisible by $5$. What about general result? Consider a general structure over $\mathbb{N_0}$: $a, b, p \in \mathbb{N}$): $a, a + b^n, a + b^{n + 1}, ..., a + b^{n + p - 2}.$ Of course, assume $a \not\equiv 0 \pmod p.$ My hypothesis is that exactly one of $a + b^i, i = n, n + 1, ..., n + p - 2$ is divisible by $p$, but does this property holds for any $p, b$? Or maybe just if $(b, p) = 1$ or one of them (or both?) is a prime? How to prove this?


Is there an comparison of the various mapping libraries for Android?

I am currently looking at the various libraries that I can use to show a map in my custom Android App. I have found several like Mapsforge, OSMDroid, ArcGIS runtime for Android, Google Maps for Android and so on. I'm sure that I am missing a few.   Is there a comparison chart somewhere about the differences in functionalities and pros and cons of each one?   If there isn't one, we could make this question community wiki, to serve alongside  & .


I need to place the figure under a specific paragraph but it appears at a randome position. Can you please modify my code using the appropriate command? Thanks  \begin{figure}   \centering   \graphicspath{Figures/}   \includegraphics[width=0.75\textwidth]{Figures/capacitor.jpg}   \caption{Capacitor...}   \label{Capacitor 1}   \end{figure}


My UK visa has been refused please help I want to re apply

every month in my bank statement I transferred money to my cousin to save and he transferred it back before my visa....


How to give an emulation the right speed?

I want to write an emulator for a particulary slow CPU which runs at 600 or so kilohertz. If I were to write an emulator for the CPU in the naïve way (i.e. emulating one instruction at a time without anything else), the emulation would be much faster than 600 kilohertz.  How do I program an emulator to emulate a CPU at the correct speed, regardless of host's speed? What technique is usually used by real-world emulators to do this? How do I avoid jitter slowing down the emulation?


I need an example of a sequence of rationals with subsequences converging to every real number but I can't think of any.  I think the fact that Q is dense in R comes into play but I'm confused.


Just a quick question.   How does Beryllium 8 decay into 2 alpha particles?  Beryllium 8 has a binding energy of 56.499508 Mev An alpha particle has a binding energy of 28.3 so two of these would have 56.6 Mev  So how does this reaction happen?   Beryllium doesn't have enough energy.


Currently I am trying to create a database design that is long lasting. But I hit a point where I not know how to continue.  I have a object table in my database. That tables stores one unique object (With a incremental ID). However for the application I am creating attributes about that object are required (extra information so a sort of metadata for that object).  These are now five different attributes per object. But I already know in the upcoming future they want more attributes added to a object so they can get more information about it.  If it would have stayed with those five attributes a would create extra columns in the object table.  But now I am thinking to create seperate attributes table where I store that data. And I was thinking in the sorts of:  Table: attributes  Columns: object_id, object_type, object_data. Is this the best practice or what are your thoughts on the matter?


How do I cross-compile my application for Ubuntu 12.04 armhf architecture on a Ubuntu 12.04 i386 host?

I have a large application I have written. I can successfully compile the application in the following scenarios:   in a native compilation for the i386 host running Ubuntu 12.04 natively on a PandaBoard running Ubuntu 12.04 (this takes a long time) using Qemu and a chroot on the host PC for the armhf PandaBoard target (this takes a very long time)    I would like to cross-compile the application on the i386 host to run on a target such as the PandaBoard to complete builds in a timely fashion. So far attempts made using the arm-linux-gnueabihf tool chain in the repositories has produced binaries that do not run correctly. At this stage, I have no plans to package the software.  What is the recommended way to achieve a successful cross-compile?


Equal, opposite forces in Newton's third law

For every action, there is an equal and opposite reaction.   Look at this free body diagram from an exercise where a man pushes a box up an inclined platform:    I don't see all those "equal and opposite" reactions here. If the man pushes on the box, the box pushes on the man as well, and if the platform pushes on the box, the box also pushes on the platform, so why aren't those forces drawn here? The box also pushes on the air (P) and the air on the box but if those forces were equal wouldn't the box not move? I mean, if A pushes on B with force F and B pushes back on A with force -F, how come anything moves? Is it because the have different masses? Would that make this "opposite and equal reaction" not equal then? I'm confused.


attribute contains selector not working for dynamically added attribute

I have the following piece of code:    $(document).ready(function() {   $("a[href*='window']").on("mouseover", function() {     $(this).css('color', 'green');   });   $("a:eq(2)").click(function() {     $(this).attr("href", "#window_1");   }); }); a {   padding-left: 20px; }  link 1 link 2 link 3 (click to add substring "window")     Here I'm basically trying to apply some css to a tags having the substring 'window' in their 'href' attribute on 'mouseover' event.  The code works fine for ones with predefined attribute (having the specified substring) but fails for dynamically added attributes.  How do I solve this issue?


Home directroy files displayed in Desktop

For a presentation I had to temprorary clear my Desktop , so I ran  mv Desktop Desktop1 after which desktop was cleared But after a reboot my HOME directory files started to appear in Desktop I tried to run  mv Desktop1 Desktop  and restarted the PC yet the problem wasn't solved I also noticed that the Desktop shortcut in Nautilus File manager's side panel too disappeared  How do I fix this?


Array.forEach() and Array.slice() together doesn't work correctly

it's supposed to Array.slice() let me to make a copy of an array, and then I can modify that copy without modifying the original array, but when I use Array.forEach() over the copy for delete some values this values also are removed from the original array. Does anybody have an idea why this happens? Here is the code that I've used:  var originalArray = [     { id: 1, name: 'Sales', datasources: [         { id:1 , name: 'datasource1', fields: [] },         { id:2 , name: 'datasource2', fields: [] },     ] },     { id: 4, name: 'Accounts', datasources: [         { id:3 , name: 'datasource3', fields: [] },         { id:4 , name: 'datasource4', fields: [] },     ] },     { id: 123, name: 'my datasources', datasources: [         { id:1 , name: 'datasource1', fields: [] },         { id:2 , name: 'datasource2', fields: [] },         { id:3 , name: 'datasource3', fields: [] },         { id:4 , name: 'datasource4', fields: [] },     ] },     { id: 12, name: 'shared datasources', datasources: [         { id:13 , name: 'myshared datasource', fields: [] },         { id:16 , name: 'hello test', fields: [] },     ] }, ];  var copyOfOriginalArray = originalArray.slice();  copyOfOriginalArray.forEach((folder, index) => {     folder.datasources = folder.datasources.filter((o) => { return o.name.trim().toLowerCase().includes('hello'); }); });  JSON.stringify(originalArray); JSON.stringify(copyOfOriginalArray);


the origin of "to spoil" to mean "to be eager for"

I am curious of the origin of "to spoil" meaning "to be eager for".   does not even have this definition, since the Latin root of "to spoil" is "to destroy."  Merriam-Webster and Oxford English Dictionary both provide the same example "to spoil for a fight" under the meaning of "to be eager for". Is this definition a set phrase? Where did it come from?


I'm using Ubuntu Mate and my time is unconfiguring when I turn on my note. I dual boot and only this OS is this happening, my time zone is correct and in some cases, it sets the time automatically after a notebook on-time. Does anyone know how I solve?


Ways to fetched the credentials of the logged in user in Salesforce SDK iOS

Is there a way to get the details/credentials (email, password, name, etc.) of the logged in user using salesforce SDK or even third party libraries?. After allot of googling and searching, i found this link but doesn't work on me:


Prove $\forall K > 0: \lim_{n\rightarrow\infty} \sqrt[n]{K} = 1$

Alright, so I've already proven that both $\forall n \in \mathbb{N}:\lim_{n\rightarrow\infty}\sqrt[n]{n} = 1$ and $\forall K\geq 1:\lim_{n\rightarrow\infty}\sqrt[n]{K}=1$.   I got the feeling, that I can prove $\forall  K \in \mathbb{R}> 0: \lim_{n\rightarrow\infty} \sqrt[n]{K} = 1$ with a simple limit comparison test but I can't figure out how exactly.


"I have never said" versus "I never said"

I have never said this.   I never said this.    Is the usage of have in the first sentence justified or grammatically correct?   What is the difference in meaning?   When should I use one form over the other?


Story of twins separated by the relativistic near light speed effects, myth of hyperspace travel?

I am looking for a book I read in the late 80's about twin brothers, one jumped ship and remained behind on Earth, the other on a slow-ship to another star. Hyperspace travel is considered a myth, starship crew are alienated from the rest of humanity due to the relativistic effects of near light-speed travel, returning after each cargo run to an Earth that has advanced by 20-100 (?) years or so, depending on which star they traveled to.   The starship brother jumps ship in order to find his twin, effectively kidnap him in order to return him to the starship, while he remains on earth to search for clues to a mysterious eccentric who claimed to have cracked the secret of hyperspace travel, yet disappeared without a trace and is presumed dead, idolized by the brother.   Over-oxygenation features as a danger later on in the story as the one twin brother is tracking down the clues to his scientific hero.


I want to make an enumerated list in the following format:  [1] foo foo [2] foo foo ...    How I can do that using enumerated lists? I have tried the following:  \begin{enumerate}[\left[ 1 \right]]   but it does not work.


MikTeX difference between Maintenance and Maintenance (Admin)

What's the difference between this to options to install and manage packages?  And which one is better to use for regular LaTeX typesetting?


I want to bend my plane in y-axis but it's not happening. I have been facing this problem from many days


Time Traveler mistaken for senile, put in VR

I'm trying to find a story where a time traveler goes into the future and, attempting to explain himself, people think he is senile or has mental problems.   In the future he's arrived in, people can retire to VR scenarios like being a pirate or living in a harem, but it involves a non-reversible operation on the spinal cord or brain. He's tranquilized and retired out of pity for his mental condition.  This was a short story. I think it was written before 1980 though I probably read it around 2000.


Lost pictures on Samsung Galaxy S3 internal memory

I just hooked my Samsung Galaxy S3 up to my PC via USB to transfer some photos from one folder to another on the device itself.  Well, the USB cable got accidentally unplugged during the process, and I lost all the photos that didn't have a chance to transfer before the device got unplugged.  Is there a way to retrieve these photos as I cannot get a drive letter when I plug it in, and Samsung does not offer a Mass Storage Device option for this phone.  I really need to recover these photos. Any help would be greatly appreciated!


I'm trying to make a URL with a tilde character (~) in it:  \usepackage{url} ... \url{http://lyle.smu.edu/~tspell/jaws}   It looks right in the resulting PDF, but when clicking on it the browser goes to a wrong URL: http://lyle.smu.edu/%18tspell/jaws  If I type in the browser %7e (escape code for '~') instead of %18 the browser then goes to the correct URL.  Any idea how to get a correct link in the PDF?


Have a 2017 quad core processor, 8gb ddr4 ram but 1tb hdd. How to create a triple-boot with Win 10, Ubuntu 18.04 & Tails (or any other highly recommended distro)?


Ubuntu 14.04 problems with Bluetooth [105b:e065] on Lenovo laptop

i have ubuntu 14.04 on my Lenovo G500. I don't know why, but when I activate bluetooth in the control panel or in blueman nothing happen. Help me please, TY!  Sry for duplicate question, I'm newbee in "Linux World" and can't understand what I should to do...  Mb it can help  dmesg | grep Bluetooth [    5.408892] Bluetooth: Core ver 2.20 [    5.408913] Bluetooth: HCI device and connection manager initialized [    5.408916] Bluetooth: HCI socket layer initialized [    5.408920] Bluetooth: L2CAP socket layer initialized [    5.408927] Bluetooth: SCO socket layer initialized [    5.414020] Bluetooth: RFCOMM TTY layer initialized [    5.414027] Bluetooth: RFCOMM socket layer initialized [    5.414031] Bluetooth: RFCOMM ver 1.11 [    5.418647] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [    5.418650] Bluetooth: BNEP filters: protocol multicast [    5.418654] Bluetooth: BNEP socket layer initialized   and  lsmod | grep bluetooth bluetooth             491520  11 bnep,btusb,rfcomm   and mb that  uname -a; lsusb Linux inyellowbus-laptop 3.19.0-39-generic #44~14.04.1-Ubuntu SMP Wed Dec 2 10:00:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 003 Device 007: ID 105b:e065   Bus 003 Device 003: ID 12d1:1051 Huawei Technologies Co., Ltd.  Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 004: ID 0bda:5728 Realtek Semiconductor Corp.  Bus 001 Device 003: ID 09da:3010 A4 Tech Co., Ltd  Bus 001 Device 005: ID 1a2c:0c23 China Resource Semico Co., Ltd  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


How many irreducible monic quadratic polynomials are there in $\mathbb{F}_p[X]$?

Can some of you help me with my homework?     I had to count the irreducible, quadratic, monic polynomials in $\mathbb{F}_p[X]$ for arbitrary $p$.    I will show you what I tried myself.  Research effort  First of all the set $\{X^ 2 + bX +c : b, c \in \mathbb{F}_p \}$ contains $p^2$ elemenst. We need to substract the amount of elements that is reducible. These elements are exactly the set $A = \{(X+c)(X+d) : c, d \in \mathbb{F}_p \}$. There are $p(p-1)$ pairs of $(a,b) \in \mathbb{F}_p \times \mathbb{F}_p$ such that $a \neq b$, and there are $p$ pairs such that $a=b$.     When $a$ and $b$ are unequal, whe know that $a$ and $b$ can be swapped without changing anything to the polynomial $(X+a)(X+b)$, so I obtained that $|A| \leq p +(p-1)- \frac{1}{2}(p-1)=p-\frac{1}{2}(p-1)$.  In other to find out these are the elements, or that there are still less, I thought I had to assume that $(X+c)(X+d) = (X+\gamma)(X+\delta)$, to deduce some information about the realation between $(c,d)$ and $(\gamma, \delta)$, but this led to taking square roots in $\mathbb{F}_p$, and I am not familiar with that.  Could you please provide me some more information?


How can I increase the size of /tmp on Fedora 25?

I'm running Fedora 25 on a VirtualBox VM with 4GB of RAM.  I need to increase the size of the /tmp folder, but I do not see any entry in /etc/fstab for that folder.  Is is possible to increase the size of /tmp?


How to avoid same/duplicate MAC address for Huawei E3372h-607 4G modems?

I have four Huawei E3372h-607 4G modems in HiLink mode which means they are detected as 4 ethernet adapters:  ... [ 1378.768228] cdc_ether 2-1:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-1, CDC Ethernet Device, 0c:5b:8f:27:9a:64 ... [ 1378.803419] cdc_ether 2-1:1.0 enx0c5b8f279a64: renamed from eth0 ... [ 1409.056051] cdc_ether 2-2:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-2, CDC Ethernet Device, 0c:5b:8f:27:9a:64 ... [ 1409.076039] cdc_ether 2-2:1.0 rename9: renamed from eth0 ... [ 1409.056051] cdc_ether 2-3:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-3, CDC Ethernet Device, 0c:5b:8f:27:9a:64 ... [ 1409.076039] cdc_ether 2-3:1.0 rename10: renamed from eth0 ... [ 1409.056051] cdc_ether 2-4:1.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-4, CDC Ethernet Device, 0c:5b:8f:27:9a:64 ... [ 1409.076039] cdc_ether 2-4:1.0 rename11: renamed from eth0  $ lsusb Bus 001 Device 002: ID 8087:8000 Intel Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 010: ID 12d1:14dc Huawei Technologies Co., Ltd. Bus 002 Device 008: ID 12d1:14dc Huawei Technologies Co., Ltd. Bus 002 Device 006: ID 12d1:14dc Huawei Technologies Co., Ltd. Bus 002 Device 004: ID 12d1:14dc Huawei Technologies Co., Ltd. Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  $ ip link ... 17: enx0c5b8f279a64: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff 18: rename18: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff 19: rename19: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff 20: rename20: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether 0c:5b:8f:27:9a:64 brd ff:ff:ff:ff:ff:ff   There are two problems:   They have the same MAC addresses which cause problems when I want to bridge them to be used in a KVM virtual machine ( VM). The name are changing for the second ethernet onwards after unplugging and replugging.   Based on 's , I wrote the following /etc/systemd/network/01-huawei-e3372h.link file:  [Match] MACAddress=0c:5b:8f:27:9a:64 Driver=cdc_ether  [Link] Description=Huawei E3372h-607 in HiLink mode NamePolicy=path MACAddressPolicy=random   EDIT:  $ ip link ... 14: enp0s20u4: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether ea:af:69:01:3e:0d brd ff:ff:ff:ff:ff:ff 15: enp0s20u3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether 76:4a:48:f0:bb:a6 brd ff:ff:ff:ff:ff:ff 20: enp0s20u1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether f6:2e:3d:9a:49:b0 brd ff:ff:ff:ff:ff:ff 21: enp0s20u2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000     link/ether d6:33:ba:8a:08:95 brd ff:ff:ff:ff:ff:ff   Ok, so after checking ip link, the random MAC actually works. And after following :  sudo ln -s /lib/udev/rules.d/80-net-setup-link.rules /etc/udev/rules.d/80-net-setup-link.rules   The rename also works. This question can be closed.


Return derived object through base class reference parameter

I have a function that takes a reference to a base object (used as an output parameter).  That function must create a derived object and pass it back to the caller through that reference.  The caller calls that function by dereferencing a pointer to base (in this case a smart ptr), and passing it as the argument to the function.    The problem is that even though the function changes the underlying object, the caller still can't cast the pointer to the derived object:  #include <iostream> #include <memory> using namespace std;  struct Base {   virtual void id() { cout << "Base" << endl; } };  struct Derived: Base {   void id() override { cout << "Derived" << endl; } };  void get_derived(Base &b) {   b = Derived();   b.id();         //Still prints "Base" }  int main() {    auto b = make_shared<Base>();   b->id(); //prints "Base"   get_derived(*b);   b->id(); //prints "Base" still    auto f = dynamic_pointer_cast<Derived>(b);   if(!f) cout << "cast failed" << endl; //this branch taken   else cout << "cast succeeded" << endl; }   Why is it that after b = Derived(), the pointer to id() in the virtual table of b still points to Base's id() function instead of Derived's vtable?  And how do I change get_derived() to make the b reference refer to a Derived object? Note: I can't change the signature of get_derived()


Book suggestion for quantum mechanics for a noob

I am a high schooler who's really interested in quantum mechanics. I just need a few suggestions as to the books I can refer to to give me an idea about the equations and theories about quantum mechanics.   I understand that this is a stupid question to ask on aplatform where everyone who has something to say generally literally has a phd in that subject but any guidance as to how to go about it would really help.