I am writing a bash script to deal with some installations in an automated way... I have the possibility of getting one such program in 32 or 64 bit binary... is it possible to detect the machine architecture from bash so I can select the correct binary?  This will be for Ubuntu machines.
When I type uname -a, it gives the following output.  Linux mars 2.6.9-67.0.15.ELsmp #1 SMP Tue Apr 22 13:50:33 EDT 2008 i686 i686 i386 GNU/Linux   How can I know from this that the given OS is 32 or 64 bit?  This is useful when writing configure scripts, for example: what architecture am I building for?
Average distance between two random points in a square How do I troubleshoot high 'svchost.exe' usage in Windows 7? I'm having a problem with Windows 7 64-bit. I thought it was slow and all, but then I saw that the CPU usage was always around 80% and started searching for a solution.  There are two svchost.exe's consuming around 30% each and in the resources monitor there's a system interrupts consuming 45% all the time. I tried closing the applications, but it makes no difference.  I tried some other things that I've found on Google, like disable system updates, but it didn't work.  I don't know if it will help but here's my specifications:  Core 2 Duo 4400 ATI Radeon 4850 4 GB DDR2 RAM     EDIT  I ran the suggested program and got this information; did I get it right?      EDIT  As you asked here it is, did I get it right now? The other TCP/IP there's nothing.    EDIT  I ran msconfig and took the services that one of the svchost.exe processes was using out of the startup and now my CPU is around 50%, but I still would like to improve it further. I can't lose that much CPU power just because of Windows...    EDIT  Yeah, there's nothing I can do here. I am going to reinstall Windows&nbsp;XP soon, it's really weird... My father in law is travelling to France, for 4 days, (01/07-04/07). Is there a minimum duration for which the travel insurance needed to apply for a Schengen visa must be valid? In other words, can his travel insurance cover just the duration of the trip, or should it last longer? Prove: $|a\sin x+b \cos x|\leq \sqrt{a^2+b^2}$ $$|a\sin x+b \cos x|\leq \sqrt{a^2+b^2}$$   I have tried: $$|a\sin x+b \cos x|\leq |a+b|\leq \sqrt{a^2+b^2}$$  enough to prove: $$|a+b|\leq \sqrt{a^2+b^2}$$  But I can find how to continue from here Infix to postfix not working as expected Is it possible and furthermore constructive to make LaTeX automatically format specific words in specific way? Let's say, for example, I'd like to have every occurrence of the word "hello" in a bold cyan monospaced font, whereas the rest of the document remains normal, sans serif and black.   How can I achieve that without having to do a search&amp;replace to place "hello" into a custom command every time before I compile the .tex file? How to auto populate with conditions? "A few" takes a singular or plural verb in present simple tense? Does "a few" take a singular or plural verb in present simple tense?        A few men lifts the table.   A few men lift the table.   A few frogs jumps out of the lake.   A few frogs jump out of the lake.      I have searched the same question in google, but I see both answers. Which one is correct? How come "a few" is plural? Even though it refers to many, "a" makes "few" a singular, so it should take a singular verb, right?  Should I always put "a" in front of "few"? For example, are the following correct?        Few men lift the table.   Few frogs jump out of the lake. Is there a standard delay for consumer ratings of apps on the App Store? I have an app that's been out for a couple of weeks. Its not exactly selling like hot cakes yet, but I'm pretty sure I've gotten a rating or a review by now. But nothing shows when viewing either in iTunes or directly on the AppStore on the iPhone.  Is there a standard delay as to when ratings/reviews show up, that Apple imposes, especially for new apps? Or do you think there is some problem with Apple's system? What is the real answer to the Birthday question? "How large must a class be to make the probability of finding two people with the same birthday at least 50%?"  I have 360 friends on facebook, and, as expected, the distribution of their birthdays is not uniform at all.  I have one day with that has 9 friends with the same birthday. (9 months after big holidays and valentines day seem to be big ones, lol..)  So, given that some days are more likely for a birthday, I'm assuming the number of 23 is an upperbound.  Has there been a better estimate to this problem? Is it bad practice to return from within a try catch finally block? So I came across some code this morning that looked like this:  try {     x = SomeThingDangerous();     return x; } catch (Exception ex) {     throw new DangerousException(ex); } finally {     CleanUpDangerousStuff(); }   Now this code compiles fine and works as it should, but it just doesn't feel right to return from within a try block, especially if there's an associated finally.  My main issue is what happens if the finally throws an exception of it's own? You've got a returned variable but also an exception to deal with... so I'm interested to know what others think about returning from within a try block? Etymology of "cut someone some slack" Teenagers. All the literature tells you one thing and one thing only – that  whatever they are doing, give them a break, cut them some slack, it's normal.      From the novel, Apple Tree Yard   I'm curious about the origins of . I know slacks are American English for trousers or pants, and a slacker is a lazy person. But what is a slack and how does one "cut" it? Why is one migration showing up as to a blank site? I was just looking at the statistics for migrated questions in the  mod tools, and noticed this oddity:    The actual statistics, as visible to any 10k+ SFF user , are: 6 migrated to Worldbuilding, 2 to Literature, 2 to SFF meta, 1 to Movies &amp; TV, 1 to Writers, and 1 to Aviation.  Why is one of the meta migrations showing up with a blank icon rather than with the other?  Both migrated questions were closed as duplicates on meta. Both were migrated by 5 community members without mod involvement. One of the stubs on main has since been deleted, but so have the stubs for some of the other migrated questions. I can't think of anything to explain this discrepancy. underbrace matrix inside brackets I would like to put an underbrace below the matrix like this:  $$\left(\underbrace{ \left[\begin{array}{ccc}     a&amp;b&amp;c\\     d&amp;e&amp;f\\     g&amp;h&amp;i \end{array}\right]}_{A} \left[\begin{array}{c}     x_1\\     x_2\\     x_3 \end{array}\right]\right)$$     But I don't want the outer brackets \left( and \right) to stretch vertically. I want them to remain as if there was no underbrace. How to achieve that behaviour? Set horizontal width on custom listings environment I want to create a custom listings environment and want to set its width as something like 90% of textwidth, centred.  Per an  for algorithms, the first thing I tried was to embed the listing in a minipage environment. However, . I found a way to still make standard environment work, but it requires to use the escape command every time before ending the environment.  The second thing I tried was this latter command, but as far as I can see, it doesn't offer a feature to set the width of the listing or centre it.  \documentclass{article} \usepackage{listings} \usepackage{lipsum}   \lstnewenvironment{queryl} %% APPROACH 1  {\lstset{frame=shadowbox,escapechar=`}}  {}  \newenvironment{query} %% APPROACH 2  {\begin{minipage}{4cm}\centering\begin{queryl}}  {\end{queryl}\end{minipage}}   \begin{document} %% APPROACH 1 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. \begin{queryl} begin { do nothing } end ; \end{queryl} Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.  %% APPROACH 2 Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis.  \begin{query} begin { do nothing } end ;`%&lt;- needs escape-to-LaTeX character to work \end{query}  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut purus elit, vestibulum ut, placerat ac, adipiscing vitae, felis. \end{document}     One can note that for the first environment, the frame extends beyond the width of the text. Also, puzzlingly the minipage environment doesn't seem to want to centre and swallows space (though I guess I could perhaps at least get that to work with tinkering).  In any case, does anyone have any ideas on how to set a width for a custom listings environment and centre it without requiring use of the escape character each time to end the environment? How to export/backup Notes in macOS in one go I have a lot of Notes on my machine which I don't want to loose. It's not logical to export them one by one. Is there any way to export them in one go, which would make me either use them on my new   I learned that I could backup ~/Library/Group Containers/group.com.apple.notes but I am not really sure if this would be helpful. This is what I get as for this directory.  $ du -sh ./* 4.0K    ./Library 256K    ./NoteStore.sqlite  32K    ./NoteStore.sqlite-shm 3.0M    ./NoteStore.sqlite-wal   I am running macOS Mojave. What do you call an 'unselfish' action made with a selfish reason? There are many examples of this, and I'd like to give a few:   A person who puts a lot of effort to help the community and earns reputation points. But that reputation is the motivation behind helping the community, not because they really want to. A student approaches a professor, and helps them in their teaching and doing research in order to have a good LOR (letter of recommendation). To a SEO, the content of the website must be good (well, this one is a little tricky, but you get the spirit.)   I'm not saying that the reputation/LOR/high-ranked is not deserved. It is. I just want to focus more on the selfish reason(s) behind that.  Any kind of answer can be accepted: single word, phrase, proverb or idiom. How to prove this limit exists: $a_{n+2}=\sqrt{a_{n+1}}+\sqrt{a_{n}}$ Question: Consider a sequence $\{a_{n}\}$ such that $a_{1},a_{2}&gt;0$, and for all $n \in \mathbb{N}$ we have:  $$a_{n+2}=\sqrt{a_{n+1}}+\sqrt{a_{n}}$$  Prove that :  $\displaystyle\lim_{n\to\infty}a_{n}$ exists and find this limit.  My work: If this limit exists, let $\displaystyle\lim_{n\to\infty}a_{n}=x&gt;0$; then we have $$x=\sqrt{x}+\sqrt{x}\Longrightarrow x=4$$ But I can't see how to prove the limit of $\{a_{n}\}$ exists. Thank you for you help! Energy momentum tensor from Noether's theorem in the book Quantum Field Theory by Itzykson and Zuber the following derivation for the stress-energy tensor is proposed (p.22):  Assume a Lagrangian density depending on the spacetime coordinates $x$ only through fields and their gradients. Under a translation we have $$\mathcal L (x+a)=\mathcal L[\phi_i(x+a),\partial_\mu\phi_i(x+a)].$$  Consider an infinitesimal $x$-dependent transformation $$\delta\phi_i=\delta a^\mu(x)\partial_\mu\phi_i(x),$$ $$\delta\partial_u\phi_i(x)=\delta a^\nu \partial_\nu\partial_\mu\phi_i(x)+\partial_\mu[\delta a^\nu (x)]\partial_\nu \phi_i(x).$$  The proof then proceeds with variation of the action and integration by parts. But why do we consider an $x$-dependent local transformation instead of a global transformation? Print LIST of unicode chars without escape characters